From e3af77d3b3e1d6561ae8aa0ca902946a5d30f840 Mon Sep 17 00:00:00 2001 From: kilee1230 Date: Fri, 27 Dec 2024 06:43:50 +0000 Subject: [PATCH] deploy: 7beeab180a7c6db445a3f0ef055ab3dffa2269ba --- assets/index-BhxFwYh7.js | 350 --------------------------------------- assets/index-cFjgi2un.js | 350 +++++++++++++++++++++++++++++++++++++++ index.html | 2 +- 3 files changed, 351 insertions(+), 351 deletions(-) delete mode 100644 assets/index-BhxFwYh7.js create mode 100644 assets/index-cFjgi2un.js diff --git a/assets/index-BhxFwYh7.js b/assets/index-BhxFwYh7.js deleted file mode 100644 index 9b6780a..0000000 --- a/assets/index-BhxFwYh7.js +++ /dev/null @@ -1,350 +0,0 @@ -function Nw(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 xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Py={exports:{}},Il={},Ey={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"),Ww=Symbol.for("react.portal"),Uw=Symbol.for("react.fragment"),Hw=Symbol.for("react.strict_mode"),Kw=Symbol.for("react.profiler"),Gw=Symbol.for("react.provider"),Xw=Symbol.for("react.context"),Yw=Symbol.for("react.forward_ref"),qw=Symbol.for("react.suspense"),Qw=Symbol.for("react.memo"),Zw=Symbol.for("react.lazy"),qp=Symbol.iterator;function Jw(e){return e===null||typeof e!="object"?null:(e=qp&&e[qp]||e["@@iterator"],typeof e=="function"?e:null)}var $y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ay=Object.assign,Ry={};function Uo(e,t,n){this.props=e,this.context=t,this.refs=Ry,this.updater=n||$y}Uo.prototype.isReactComponent={};Uo.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")};Uo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function My(){}My.prototype=Uo.prototype;function wf(e,t,n){this.props=e,this.context=t,this.refs=Ry,this.updater=n||$y}var kf=wf.prototype=new My;kf.constructor=wf;Ay(kf,Uo.prototype);kf.isPureReactComponent=!0;var Qp=Array.isArray,zy=Object.prototype.hasOwnProperty,Cf={current:null},Dy={key:!0,ref:!0,__self:!0,__source:!0};function Iy(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)zy.call(t,r)&&!Dy.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(qo,N))lto(cr,qo)?(z[pe]=cr,z[lt]=N,pe=lt):(z[pe]=qo,z[Kt]=N,pe=Kt);else if(lto(cr,N))z[pe]=cr,z[lt]=N,pe=lt;else break e}}return V}function o(z,V){var N=z.sortIndex-V.sortIndex;return N!==0?N: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(T);else{var V=n(u);V!==null&&xe(b,V.startTime-z)}}function T(z,V){v=!1,S&&(S=!1,p(A),A=-1),y=!0;var N=f;try{for(m(V),d=n(l);d!==null&&(!(d.expirationTime>V)||z&&!O());){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=N,y=!1}}var E=!1,k=null,A=-1,D=5,M=-1;function O(){return!(e.unstable_now()-Mz||125pe?(z.sortIndex=N,t(u,z),n(l)===null&&z===n(u)&&(S?(p(A),A=-1):S=!0,xe(b,N-pe))):(z.sortIndex=Te,t(l,z),v||y||(v=!0,Nr(T))),z},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(z){var V=f;return function(){var N=f;f=V;try{return z.apply(this,arguments)}finally{f=N}}}})(Oy);Vy.exports=Oy;var ck=Vy.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 dk=C,gt=ck;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"),Wc=Object.prototype.hasOwnProperty,fk=/^[: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]*$/,em={},tm={};function hk(e){return Wc.call(tm,e)?!0:Wc.call(em,e)?!1:fk.test(e)?tm[e]=!0:(em[e]=!0,!1)}function pk(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 mk(e,t,n,r){if(t===null||typeof t>"u"||pk(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 _f=/[\-:]([a-z])/g;function Pf(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(_f,Pf);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(_f,Pf);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(_f,Pf);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 Ef(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{Fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gi(e):""}function gk(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=Bu(e.type,!1),e;case 11:return e=Bu(e.type.render,!1),e;case 1:return e=Bu(e.type,!0),e;default:return""}}function Gc(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 Xr:return"Fragment";case Gr:return"Portal";case Uc:return"Profiler";case $f:return"StrictMode";case Hc:return"Suspense";case Kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Uy:return(e.displayName||"Context")+".Consumer";case Wy:return(e._context.displayName||"Context")+".Provider";case Af:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rf:return t=e.displayName||null,t!==null?t:Gc(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Gc(e(t))}catch{}}return null}function yk(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 Gc(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 Ky(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vk(e){var t=Ky(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 Xs(e){e._valueTracker||(e._valueTracker=vk(e))}function Gy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ky(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 Xc(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rm(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 Xy(e,t){t=t.checked,t!=null&&Ef(e,"checked",t,!1)}function Yc(e,t){Xy(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")?qc(e,t.type,n):t.hasOwnProperty("defaultValue")&&qc(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function om(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 qc(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 yo(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 qi(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},Sk=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){Sk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function Zy(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 Jy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Zy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bk=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 Jc(e,t){if(t){if(bk[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 ed(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 td=null;function Mf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nd=null,vo=null,So=null;function am(e){if(e=_s(e)){if(typeof nd!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Vl(t),nd(e.stateNode,e.type,t))}}function ev(e){vo?So?So.push(e):So=[e]:vo=e}function tv(){if(vo){var e=vo,t=So;if(So=vo=null,am(e),t)for(e=0;e>>=0,e===0?32:31-(Rk(e)/Mk|0)|0}var qs=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 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=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-Nt(t),e[t]=n}function Lk(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),gm=" ",ym=!1;function xv(e,t){switch(e){case"keyup":return cC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yr=!1;function fC(e,t){switch(e){case"compositionend":return wv(t);case"keypress":return t.which!==32?null:(ym=!0,gm);case"textInput":return e=t.data,e===gm&&ym?null:e;default:return null}}function hC(e,t){if(Yr)return e==="compositionend"||!Vf&&xv(e,t)?(e=Sv(),_a=jf=Kn=null,Yr=!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=xm(n)}}function _v(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_v(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pv(){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 Of(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 wC(e){var t=Pv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_v(n.ownerDocument.documentElement,n)){if(r!==null&&Of(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=wm(n,i);var s=wm(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,ld=null,zi=null,ud=!1;function km(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ud||qr==null||qr!==Qa(r)||(r=qr,"selectionStart"in r&&Of(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}),zi&&ns(zi,r)||(zi=r,r=ol(ld,"onSelect"),0Jr||(e.current=md[Jr],md[Jr]=null,Jr--)}function re(e,t){Jr++,md[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 Am(e,t,n){if(Ge.current!==rr)throw Error(R(168));re(Ge,t),re(ot,n)}function Lv(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,yk(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 Rm(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Lv(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=e,ae(ot),ae(Ge),re(Ge,e)):ae(ot),re(ot,n)}var pn=null,Ol=!1,Ju=!1;function jv(e){pn===null?pn=[e]:pn.push(e)}function DC(e){Ol=!0,jv(e)}function lr(){if(!Ju&&pn!==null){Ju=!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?T=M:E.sibling=M,E=M,k=D}if(A===m.length)return n(p,k),fe&&gr(p,A),T;if(k===null){for(;AA?(D=k,k=null):D=k.sibling;var O=f(p,k,M.value,b);if(O===null){k===null&&(k=D);break}e&&k&&O.alternate===null&&t(p,k),h=i(O,h,A),E===null?T=O:E.sibling=O,E=O,k=D}if(M.done)return n(p,k),fe&&gr(p,A),T;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?T=M:E.sibling=M,E=M);return fe&&gr(p,A),T}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?T=M:E.sibling=M,E=M);return e&&k.forEach(function(he){return t(p,he)}),fe&&gr(p,A),T}function _(p,h,m,b){if(typeof m=="object"&&m!==null&&m.type===Xr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Gs:e:{for(var T=m.key,E=h;E!==null;){if(E.key===T){if(T=m.type,T===Xr){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===T||typeof T=="object"&&T!==null&&T.$$typeof===Vn&&Dm(T)===E.type){n(p,E.sibling),h=o(E,m.props),h.ref=si(p,E,m),h.return=p,p=h;break e}n(p,E);break}else t(p,E);E=E.sibling}m.type===Xr?(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=si(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=ac(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(yi(m))return v(p,h,m,b);if(ti(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=sc(m,p.mode,b),h.return=p,p=h),s(p)):n(p,h)}return _}var Mo=Ov(!0),Nv=Ov(!1),cl=ar(null),dl=null,no=null,Hf=null;function Kf(){Hf=no=dl=null}function Gf(e){var t=cl.current;ae(cl),e._currentValue=t}function vd(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,Hf=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(Hf!==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 Xf(e){wr===null?wr=[e]:wr.push(e)}function Wv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Xf(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 Yf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uv(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,Xf(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,Df(e,n)}}function Im(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 Lm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=tc.transition;tc.transition={};try{e(!1),t()}finally{ee=n,tc.transition=r}}function a1(){return zt().memoizedState}function FC(e,t,n){var r=er(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},l1(e))u1(t,n);else if(n=Wv(e,t,n,r),n!==null){var o=Qe();Wt(n,e,r,o),c1(n,t,r)}}function BC(e,t,n){var r=er(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(l1(e))u1(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,Xf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Wv(e,t,o,r),n!==null&&(o=Qe(),Wt(n,e,r,o),c1(n,t,r))}}function l1(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function u1(e,t){Di=pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function c1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Df(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},VC={readContext:Mt,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Fm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Aa(4194308,4,n1.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=FC.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:jm,useDebugValue:rh,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=jm(!1),t=e[0];return e=jC.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||Xv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Fm(qv.bind(null,r,i,e),[e]),r.flags|=2048,cs(9,Yv.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=ls++,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[is]=r,b1(e,t,!1,!1),t.stateNode=e;e:{switch(s=ed(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,ai(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),ai(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,ai(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 uh(),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 XC(e,t){switch(Wf(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),Zf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qf(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 Gf(t.type._context),null;case 22:case 23:return uh(),null;case 24:return null;default:return null}}var sa=!1,He=!1,YC=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 Pd(e,t,n){try{n()}catch(r){be(e,t,r)}}var Ym=!1;function qC(e,t){if(cd=nl,e=Pv(),Of(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(dd={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=Ym,Ym=!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&&Pd(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 Ed(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 k1(e){var t=e.alternate;t!==null&&(e.alternate=null,k1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tn],delete t[is],delete t[pd],delete t[MC],delete t[zC])),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 C1(e){return e.tag===5||e.tag===3||e.tag===4}function qm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C1(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 $d(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($d(e,t,n),e=e.sibling;e!==null;)$d(e,t,n),e=e.sibling}function Ad(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(Ad(e,t,n),e=e.sibling;e!==null;)Ad(e,t,n),e=e.sibling}var Le=null,Bt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)T1(e,t,n),n=n.sibling}function T1(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?Zu(e.parentNode,n):e.nodeType===1&&Zu(e,n),es(e)):Zu(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)&&Pd(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 Qm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YC),t.forEach(function(r){var o=i2.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*ZC(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()-ah?_r(e,0):sh|=n),st(e,t)}function z1(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 o2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),z1(e,n)}function i2(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),z1(e,n)}var D1;D1=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,KC(e,t,n);rt=!!(e.flags&131072)}else rt=!1,fe&&t.flags&1048576&&Fv(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=eh(null,t,r,e,o,n);var i=th();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,Yf(t),o.updater=Wl,t.stateNode=o,o._reactInternals=t,bd(t,r,e,n),t=kd(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Nf(t),Ye(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=a2(r),e=Ft(r,e),o){case 0:t=wd(null,t,r,e,n);break e;case 1:t=Km(null,t,r,e,n);break e;case 11:t=Um(null,t,r,e,n);break e;case 14:t=Hm(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),wd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Km(e,t,r,o,n);case 3:e:{if(y1(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Uv(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=Gm(e,t,r,n,o);break e}else if(r!==o){o=Do(Error(R(424)),t),t=Gm(e,t,r,n,o);break e}else for(dt=Qn(t.stateNode.containerInfo.firstChild),ft=t,fe=!0,Vt=null,n=Nv(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}Ye(e,t,r,n)}t=t.child}return t;case 5:return Hv(t),e===null&&yd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,fd(r,o)?s=null:i!==null&&fd(r,i)&&(t.flags|=32),g1(e,t),Ye(e,t,s,n),t.child;case 6:return e===null&&yd(t),null;case 13:return v1(e,t,n);case 4:return qf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mo(t,null,r,n):Ye(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Um(e,t,r,o,n);case 7:return Ye(e,t,t.pendingProps,n),t.child;case 8:return Ye(e,t,t.pendingProps.children,n),t.child;case 12:return Ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,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),vd(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),vd(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}Ye(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,Ye(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),Hm(e,t,r,o,n);case 15:return p1(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),d1(t,r,o),bd(t,r,o,n),kd(null,t,r,!0,e,n);case 19:return S1(e,t,n);case 22:return m1(e,t,n)}throw Error(R(156,t.tag))};function I1(e,t){return lv(e,t)}function s2(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 s2(e,t,n,r)}function dh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function a2(e){if(typeof e=="function")return dh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Af)return 11;if(e===Rf)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")dh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xr:return Pr(n.children,o,i,t);case $f:s=8,o|=8;break;case Uc:return e=Et(12,n,t,o|2),e.elementType=Uc,e.lanes=i,e;case Hc:return e=Et(13,n,t,o),e.elementType=Hc,e.lanes=i,e;case Kc:return e=Et(19,n,t,o),e.elementType=Kc,e.lanes=i,e;case Hy:return Kl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wy:s=10;break e;case Uy:s=9;break e;case Af:s=11;break e;case Rf: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=Hy,e.lanes=n,e.stateNode={isHidden:!1},e}function sc(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function ac(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 l2(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=Ou(0),this.expirationTimes=Ou(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ou(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function fh(e,t,n,r,o,i,s,a,l){return e=new l2(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},Yf(i),e}function u2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B1)}catch(e){console.error(e)}}B1(),By.exports=vt;var gh=By.exports,V1,ig=gh;V1=ig.createRoot,ig.hydrateRoot;const $n={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let p2=0;function Ql(e,t){const n=`atom${++p2}`,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=m2,r.write=g2),t&&(r.write=t),r}function m2(e){return e(this)}function g2(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const sg=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,Id=e=>"init"in e,lc=e=>!!e.write,xl=new WeakMap,Ld=e=>{var t;return jd(e)&&!((t=xl.get(e))!=null&&t[1])},y2=(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")},v2=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)}},jd=e=>typeof(e==null?void 0:e.then)=="function",ag=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},O1=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},lg=(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),Ld(n.v)&&O1(t,n.v,o),(i=o.m)==null||i.t.add(t),e&&S2(e,r,t)},ui=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),Fi=(e,t,n)=>{e[t].add(n)},ug=(e,t,n)=>{e.D.has(t)||(e.D.set(t,new Set),Fi(e,"M",()=>{var r;(r=n.m)==null||r.l.forEach(o=>Fi(e,"M",o))}))},S2=(e,t,n)=>{const r=e.D.get(t);r&&r.add(n)},b2=(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},N1=(...[e,t,n,r])=>{const o=(p,h,m)=>{const b="v"in h,T=h.v,E=Ld(h.v)?h.v:null;if(jd(m)){v2(m);for(const k of h.d.keys())O1(p,m,e(k));h.v=m}else h.v=m;delete h.e,delete h.x,(!b||!Object.is(T,h.v))&&(++h.n,E&&y2(E,m))},i=(p,h)=>{var m;const b=e(h);if(ag(b)&&(b.m&&!b.x||Array.from(b.d).every(([M,O])=>i(p,M).n===O)))return b;b.d.clear();let T=!0;const E=M=>{if(sg(h,M)){const he=e(M);if(!ag(he))if(Id(M))o(M,he,M.init);else throw new Error("no atom init");return ua(he)}const O=i(p,M);try{return ua(O)}finally{if(T)lg(p,h,b,M,O);else{const he=ui();lg(he,h,b,M,O),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"&&!lc(h)&&console.warn("setSelf function cannot be used with read-only atom"),!A&&lc(h)&&(A=(...M)=>{if(($n?"production":void 0)!=="production"&&T&&console.warn("setSelf function cannot be called in sync"),!T)return c(h,...M)}),A}};try{const M=t(h,E,D);if(o(h,b,M),jd(M)){(m=M.onCancel)==null||m.call(M,()=>k==null?void 0:k.abort());const O=()=>{if(b.m){const he=ui();d(he,h,b),pr(he)}};M.then(O,O)}return b}catch(M){return delete b.v,b.e=M,delete b.x,++b.n,b}finally{T=!1}},s=p=>ua(i(void 0,p)),a=(p,h,m)=>{var b,T;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(T=b2(p,h))==null||T.forEach(k=>{E.set(k,e(k))}),E},l=(p,h,m)=>{const b=[],T=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(T.has(A)){b.push([A,D,D.n]),E.add(A),D.x=!0,k.pop();continue}T.add(A);for(const[M,O]of a(p,A,D))A!==M&&!T.has(M)&&k.push([M,O])}Fi(p,"H",()=>{const A=new Set([h]);for(let D=b.length-1;D>=0;--D){const[M,O,he]=b[D];let xt=!1;for(const Ht of O.d.keys())if(Ht!==M&&A.has(Ht)){xt=!0;break}xt&&(i(p,M),d(p,M,O),he!==O.n&&(ug(p,M,O),A.add(M))),delete O.x}})},u=(p,h,...m)=>{let b=!0;const T=k=>ua(i(p,k)),E=(k,...A)=>{const D=e(k);try{if(sg(h,k)){if(!Id(k))throw new Error("atom not writable");const M=D.n,O=A[0];o(k,D,O),d(p,k,D),M!==D.n&&(ug(p,k,D),l(p,k,D));return}else return u(p,k,...A)}finally{b||pr(p)}};try{return n(h,T,E,...m)}finally{b=!1}},c=(p,...h)=>{const m=ui();try{return u(m,p,...h)}finally{pr(m)}},d=(p,h,m)=>{if(m.m&&!Ld(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 T=y(p,b,e(b));T==null||T.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},lc(h)){const b=m.m;let T;const E=(k,A)=>{let D=!0;T=(...M)=>{try{return u(k,h,...M)}finally{D||pr(k)}};try{return A()}finally{D=!1}};Fi(p,"L",()=>{const k=E(p,()=>r(h,(...A)=>T(...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 T;return(T=e(b).m)==null?void 0:T.d.has(h)})){const b=m.m.u;b&&Fi(p,"L",()=>b(p)),delete m.m;for(const T of m.d.keys()){const E=y(p,T,e(T));E==null||E.t.delete(h)}return}return m.m};return{get:s,set:c,sub:(p,h)=>{const m=ui(),b=e(p),E=f(m,p,b).l;return E.add(h),pr(m),()=>{E.delete(h);const k=ui();y(k,p,b),pr(k)}},unstable_derive:p=>N1(...p(e,t,n,r))}},x2=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)Id(f)&&d(f,y)}finally{--o}}})}})},w2=()=>{const e=new WeakMap,n=N1(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"?x2(n):n};let ci;const k2=()=>(ci||(ci=w2(),($n?"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),W1={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},C2=C.createContext(void 0),U1=e=>C.useContext(C2)||k2(),H1=e=>typeof(e==null?void 0:e.then)=="function",T2=e=>{e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})},_2=jy.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(T2(e),e)}),uc=new WeakMap,P2=e=>{let t=uc.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((W1?"production":void 0)!=="production"&&u===l)throw new Error("[Bug] p is not updated even after cancelation");H1(u)?(uc.set(u,t),o=u,u.then(i(u),s(u)),a(u)):n(u)})};e.then(i(e),s(e)),a(e)}),uc.set(e,t)),t};function E2(e,t){const n=U1(),[[r,o,i],s]=C.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)),C.useEffect(()=>{const u=n.sub(e,()=>{s()});return s(),u},[n,e,void 0]),C.useDebugValue(a),H1(a)){const u=P2(a);return _2(u)}return a}function Fd(e,t){const n=U1();return C.useCallback((...o)=>{if((W1?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}function Bd(e,t){return[E2(e),Fd(e)]}function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;tnull;function A2(){return!!(globalThis!=null&&globalThis.document)}function R2(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,cc=e=>e?!0:void 0;function M2(e){return Array.isArray(e)}function Rt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!M2(e)}function z2(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function D2(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Vd(e){if(e==null)return e;const{unitless:t}=D2(e);return t||typeof e=="number"?`${e}px`:e}const K1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,yh=e=>Object.fromEntries(Object.entries(e).sort(K1));function cg(e){const t=yh(e);return Object.assign(Object.values(t),t)}function I2(e){const t=Object.keys(yh(e));return new Set(t)}function dg(e){if(!e)return e;e=Vd(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: ${Vd(e)})`),t&&n.push("and",`(max-width: ${Vd(t)})`),n.join(" ")}function L2(e){if(!e)return null;e.base=e.base??"0px";const t=cg(e),n=Object.entries(e).sort(K1).map(([i,s],a,l)=>{let[,u]=l[a+1]??[];return u=parseFloat(u)>0?dg(u):void 0,{_minW:dg(s),breakpoint:i,minW:s,maxW:u,maxWQuery:bi(null,u),minWQuery:bi(s),minMaxQuery:bi(s,u)}}),r=I2(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:yh(e),asArray:cg(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>bi(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(;z2(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 fg(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function j2(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}function vh(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function F2(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=C.createContext(s);a.displayName=t;function l(){var c;const u=C.useContext(a);if(!u&&n){const d=new Error(i??F2(r,o));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}const Xe=(...e)=>e.filter(Boolean).join(" ");function B2(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}},G1=V2(B2),O2=e=>e.default||e;function X1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function N2(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function W2(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 U2=e=>typeof e=="function";function $t(e,...t){return U2(e)?e(...t):e}function H2(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 hg(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]",T="[object Set]",E="[object String]",k="[object Undefined]",A="[object WeakMap]",D="[object ArrayBuffer]",M="[object DataView]",O="[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]",N=/[\\^$.*+?()[\]{}|]/g,pe=/^\[object .+?Constructor\]$/,Te=/^(?:0|[1-9]\d*)$/,J={};J[O]=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[T]=J[E]=J[A]=!1;var Kt=typeof Hs=="object"&&Hs&&Hs.Object===Object&&Hs,qo=typeof self=="object"&&self&&self.Object===Object&&self,lt=Kt||qo||Function("return this")(),cr=t&&!t.nodeType&&t,Qo=cr&&!0&&e&&!e.nodeType&&e,$p=Qo&&Qo.exports===cr,Cu=$p&&Kt.process,Ap=function(){try{var g=Qo&&Qo.require&&Qo.require("util").types;return g||Cu&&Cu.binding&&Cu.binding("util")}catch{}}(),Rp=Ap&&Ap.isTypedArray;function $x(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 Ax(g,w){for(var $=-1,L=Array(g);++$-1}function Zx(g,w){var $=this.__data__,L=Os($,g);return L<0?(++this.size,$.push([g,w])):$[L][1]=w,this}dn.prototype.clear=Xx,dn.prototype.delete=Yx,dn.prototype.get=qx,dn.prototype.has=Qx,dn.prototype.set=Zx;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 Jx(){this.size=0,this.__data__={hash:new fr,map:new(Bp||dn),string:new fr}}function ew(g){var w=Ws(this,g).delete(g);return this.size-=w?1:0,w}function tw(g){return Ws(this,g).get(g)}function nw(g){return Ws(this,g).has(g)}function rw(g,w){var $=Ws(this,g),L=$.size;return $.set(g,w),this.size+=$.size==L?0:1,this}Wr.prototype.clear=Jx,Wr.prototype.delete=ew,Wr.prototype.get=tw,Wr.prototype.has=nw,Wr.prototype.set=rw;function Ur(g){var w=this.__data__=new dn(g);this.size=w.size}function ow(){this.__data__=new dn,this.size=0}function iw(g){var w=this.__data__,$=w.delete(g);return this.size=w.size,$}function sw(g){return this.__data__.get(g)}function aw(g){return this.__data__.has(g)}function lw(g,w){var $=this.__data__;if($ instanceof dn){var L=$.__data__;if(!Bp||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&&Pw($[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 Iw(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 Au=Vp(function(){return arguments}())?Vp:function(g){return Jo(g)&&In.call(g,"callee")&&!Fx.call(g,"callee")},Ru=Array.isArray;function Mu(g){return g!=null&&Hp(g.length)&&!zu(g)}function Lw(g){return Jo(g)&&Mu(g)}var Up=Vx||Ow;function zu(g){if(!hr(g))return!1;var w=Ns(g);return w==y||w==v||w==u||w==m}function Hp(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 Jo(g){return g!=null&&typeof g=="object"}function jw(g){if(!Jo(g)||Ns(g)!=h)return!1;var w=Lp(g);if(w===null)return!0;var $=In.call(w,"constructor")&&w.constructor;return typeof $=="function"&&$ instanceof $&&Fs.call($)==Lx}var Kp=Rp?Rx(Rp):hw;function Fw(g){return ww(g,Gp(g))}function Gp(g){return Mu(g)?uw(g):pw(g)}var Bw=kw(function(g,w,$,L){Op(g,w,$,L)});function Vw(g){return function(){return g}}function Xp(g){return g}function Ow(){return!1}e.exports=Bw})(kl,kl.exports);var K2=kl.exports;const rn=xf(K2);function G2(e,t=[]){const n=C.useRef(e);return C.useEffect(()=>{n.current=e}),C.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}const Od=globalThis!=null&&globalThis.document?C.useLayoutEffect:C.useEffect,pg=(e,t)=>{const n=C.useRef(!1),r=C.useRef(!1);C.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),C.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function X2(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 Nd(...e){return t=>{e.forEach(n=>{X2(n,t)})}}function Y2(...e){return C.useMemo(()=>Nd(...e),e)}function q2(e,t){const n=G2(e);C.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}`},Xt=e=>Y1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),fn=e=>Y1(t=>e(t,"~ &"),"[data-peer]",".peer"),Y1=(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:Xt(Ee.open),_groupClosed:Xt(Ee.closed),_groupHover:Xt(Ee.hover),_peerHover:fn(Ee.hover),_groupFocus:Xt(Ee.focus),_peerFocus:fn(Ee.focus),_groupFocusVisible:Xt(Ee.focusVisible),_peerFocusVisible:fn(Ee.focusVisible),_groupActive:Xt(Ee.active),_peerActive:fn(Ee.active),_groupDisabled:Xt(Ee.disabled),_peerDisabled:fn(Ee.disabled),_groupInvalid:Xt(Ee.invalid),_peerInvalid:fn(Ee.invalid),_groupChecked:Xt(Ee.checked),_peerChecked:fn(Ee.checked),_groupFocusWithin:Xt(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]"},q1=Object.keys(ko),Q2=e=>/!(important)?$/.test(e),mg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Z2=(e,t)=>n=>{const r=String(t),o=Q2(r),i=mg(r),s=e?`${e}.${i}`:i;let a=Rt(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=mg(a),o?`${a} !important`:a};function Sh(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=Z2(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=Sh({scale:e,transform:t}),r}}const J2=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function eT(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:J2(t),transform:n?Sh({scale:n,compose:r}):r}}const Q1=["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 tT(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Q1].join(" ")}function nT(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Q1].join(" ")}const rT={"--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(" ")},oT={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 iT(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 sT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Wd={"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"},aT=new Set(Object.values(Wd)),Ud=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),lT=e=>e.trim();function uT(e,t){if(e==null||Ud.has(e))return e;if(!(Hd(e)||Ud.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(lT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Wd?Wd[l]:l;u.unshift(c);const d=u.map(f=>{if(aT.has(f))return f;const y=f.indexOf(" "),[v,S]=y!==-1?[f.substr(0,y),f.substr(y+1)]:[f],_=Hd(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 Hd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),cT=(e,t)=>uT(e,t??{});function dT(e){return/^var\(--.+\)$/.test(e)}const fT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Yt=e=>t=>`${e}(${t})`,U={filter(e){return e!=="auto"?e:rT},backdropFilter(e){return e!=="auto"?e:oT},ring(e){return iT(U.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?tT():e==="auto-gpu"?nT():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=fT(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(dT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:cT,blur:Yt("blur"),opacity:Yt("opacity"),brightness:Yt("brightness"),contrast:Yt("contrast"),dropShadow:Yt("drop-shadow"),grayscale:Yt("grayscale"),hueRotate:e=>Yt("hue-rotate")(U.degree(e)),invert:Yt("invert"),saturate:Yt("saturate"),sepia:Yt("sepia"),bgImage(e){return e==null||Hd(e)||Ud.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}=sT[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:Sh({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:eT,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 X={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(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 hT={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 pT={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)},mT={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")},gT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:U.outline},outlineOffset:!0,outlineColor:x.colors("outlineColor")},Z1={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 yT(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}},ST=vT(yT),bT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},xT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},dc=(e,t,n)=>{const r={},o=ST(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},wT={srOnly:{transform(e){return e===!0?bT:e==="focusable"?xT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>dc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>dc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>dc(t,e,n)}},Bi={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(Bi,{insetStart:Bi.insetInlineStart,insetEnd:Bi.insetInlineEnd});const Kd={boxShadow:x.shadows("boxShadow"),mixBlendMode:!0,blendMode:x.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:x.prop("backgroundBlendMode"),opacity:!0};Object.assign(Kd,{shadow:Kd.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 kT={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"])},CT={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"}},TT={textDecorationColor:x.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:x.shadows("textShadow")},_T={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")},PT={listStyleType:!0,listStylePosition:!0,listStylePos:x.prop("listStylePosition"),listStyleImage:!0,listStyleImg:x.prop("listStyleImage")},ET={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")},bh=rn({},Ia,X,hT,Cl,Ct,pT,mT,gT,Z1,wT,Bi,Kd,se,kT,CT,TT,_T,PT,ET);Object.assign({},se,Ct,Cl,Z1,Bi);const $T=[...Object.keys(bh),...q1],AT={...bh,...ko},RT=e=>e in AT,MT=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"&&!DT(t),LT=(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]=zT(t);return t=n(o)??r(i)??r(t),t};function jT(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var c;const a=$t(i,r),l=MT(a)(r);let u={};for(let d in l){const f=l[d];let y=$t(f,r);d in n&&(d=n[d]),IT(d,y)&&(y=LT(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 J1=e=>t=>jT({theme:t,pseudos:ko,configs:bh})(e);function oe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function FT(e,t){if(Array.isArray(e))return e;if(Rt(e))return t(e);if(e!=null)return[e]}function BT(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 OT(e){return t=>{const{variant:n,size:r,theme:o}=t,i=VT(o);return rn({},$t(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function Dn(e){return X1(e,["styleConfig","size","variant","colorScheme"])}function eS(e){return Rt(e)&&e.reference?e.reference:String(e)}const Zl=(e,...t)=>t.map(eS).join(` ${e} `).replace(/calc/g,""),gg=(...e)=>`calc(${Zl("+",...e)})`,yg=(...e)=>`calc(${Zl("-",...e)})`,Gd=(...e)=>`calc(${Zl("*",...e)})`,vg=(...e)=>`calc(${Zl("/",...e)})`,Sg=e=>{const t=eS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Gd(t,-1)},mn=Object.assign(e=>({add:(...t)=>mn(gg(e,...t)),subtract:(...t)=>mn(yg(e,...t)),multiply:(...t)=>mn(Gd(e,...t)),divide:(...t)=>mn(vg(e,...t)),negate:()=>mn(Sg(e)),toString:()=>e.toString()}),{add:gg,subtract:yg,multiply:Gd,divide:vg,negate:Sg});function NT(e,t="-"){return e.replace(/\s+/g,t)}function WT(e){const t=NT(e.toString());return HT(UT(t))}function UT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function HT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function KT(e,t=""){return[t,e].filter(Boolean).join("-")}function GT(e,t){return`var(${e}${t?`, ${t}`:""})`}function XT(e,t=""){return WT(`--${KT(e,t)}`)}function F(e,t,n){const r=XT(e,n);return{variable:r,reference:GT(r,t)}}function YT(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 qT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function QT(e){return N2(e,qT)}function ZT(e){return e.semanticTokens}function JT(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function e_(e){const t=QT(e),n=ZT(e),r=i=>q1.includes(i)||i==="default",o={};return hg(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),hg(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function bg(e,t){return F(String(e).replace(/\./g,"-"),void 0,t)}function t_(e){var s;const t=e_(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}=bg(c,n);return f}for(const[a,l]of Object.entries(t)){const{isSemantic:u,value:c}=l,{variable:d,reference:f}=bg(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 n_(e){const t=JT(e),{cssMap:n,cssVars:r}=t_(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:L2(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 r_=Z("accordion").parts("root","container","button","panel","icon"),o_=Z("alert").parts("title","description","container","icon","spinner"),i_=Z("avatar").parts("label","badge","container","excessLabel","group"),s_=Z("breadcrumb").parts("link","item","container","separator");Z("button").parts();const a_=Z("checkbox").parts("control","icon","container","label");Z("progress").parts("track","filledTrack","label");const l_=Z("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),u_=Z("editable").parts("preview","input","textarea"),c_=Z("form").parts("container","requiredIndicator","helperText"),d_=Z("formError").parts("text","icon"),f_=Z("input").parts("addon","field","element","group"),h_=Z("list").parts("container","item","icon"),p_=Z("menu").parts("button","list","item","groupTitle","icon","command","divider"),m_=Z("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),g_=Z("numberinput").parts("root","field","stepperGroup","stepper");Z("pininput").parts("field");const y_=Z("popover").parts("content","header","body","footer","popper","arrow","closeButton"),v_=Z("progress").parts("label","filledTrack","track"),S_=Z("radio").parts("container","control","label"),b_=Z("select").parts("field","icon"),x_=Z("slider").parts("container","track","thumb","filledTrack","mark"),w_=Z("stat").parts("container","label","helpText","number","icon"),k_=Z("switch").parts("container","track","thumb","label"),C_=Z("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),T_=Z("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),__=Z("tag").parts("container","label","closeButton"),P_=Z("card").parts("container","header","body","footer");Z("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:E_,defineMultiStyleConfig:$_}=oe(r_.keys),A_={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},R_={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},M_={pt:"2",px:"4",pb:"5"},z_={fontSize:"1.25em"},D_=E_({container:A_,button:R_,panel:M_,icon:z_}),I_=$_({baseStyle:D_});function Cr(e,t,n){return Math.min(Math.max(e,n),t)}class L_ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var xi=L_;function xh(e){if(typeof e!="string")throw new xi(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=U_.test(e)?B_(e):e;const n=V_.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(fs(a,2),16)),parseInt(fs(s[3]||"f",2),16)/255]}const r=O_.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=N_.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=W_.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Cr(0,100,a)!==a)throw new xi(e);if(Cr(0,100,l)!==l)throw new xi(e);return[...H_(s,a,l),Number.isNaN(u)?1:u]}throw new xi(e)}function j_(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const xg=e=>parseInt(e.replace(/_/g,""),36),F_="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=xg(t.substring(0,3)),r=xg(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 B_(e){const t=e.toLowerCase().trim(),n=F_[j_(t)];if(!n)throw new xi(e);return`#${n}`}const fs=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),V_=new RegExp(`^#${fs("([a-f0-9])",3)}([a-f0-9])?$`,"i"),O_=new RegExp(`^#${fs("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),N_=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${fs(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),W_=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,U_=/^[a-z]+$/i,wg=e=>Math.round(e*255),H_=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(wg);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(wg)};function K_(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 G_(e,t){const[n,r,o,i]=xh(e);return K_(n,r,o,i-t)}function X_(e){const[t,n,r,o]=xh(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 Y_=e=>Object.keys(e).length===0;function q_(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=q_(e,`colors.${t}`,t);try{return X_(r),r}catch{return"#000000"}},Q_=e=>{const[t,n,r]=xh(e);return(t*299+n*587+r*114)/1e3},Z_=e=>t=>{const n=qe(t,e);return Q_(n)<128?"dark":"light"},J_=e=>t=>Z_(e)(t)==="dark",Lo=(e,t)=>n=>{const r=qe(n,e);return G_(r,1-t)};function kg(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 eP=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function tP(e){const t=eP();return!e||Y_(e)?t:e.string&&e.colors?rP(e.string,e.colors):e.string&&!e.colors?nP(e.string):e.colors&&!e.string?oP(e.colors):t}function nP(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 rP(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function wh(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function tS(e){return Rt(e)&&e.reference?e.reference:String(e)}const Jl=(e,...t)=>t.map(tS).join(` ${e} `).replace(/calc/g,""),Cg=(...e)=>`calc(${Jl("+",...e)})`,Tg=(...e)=>`calc(${Jl("-",...e)})`,Xd=(...e)=>`calc(${Jl("*",...e)})`,_g=(...e)=>`calc(${Jl("/",...e)})`,Pg=e=>{const t=tS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Xd(t,-1)},gn=Object.assign(e=>({add:(...t)=>gn(Cg(e,...t)),subtract:(...t)=>gn(Tg(e,...t)),multiply:(...t)=>gn(Xd(e,...t)),divide:(...t)=>gn(_g(e,...t)),negate:()=>gn(Pg(e)),toString:()=>e.toString()}),{add:Cg,subtract:Tg,multiply:Xd,divide:_g,negate:Pg});function iP(e){return!Number.isInteger(parseFloat(e.toString()))}function sP(e,t="-"){return e.replace(/\s+/g,t)}function nS(e){const t=sP(e.toString());return t.includes("\\.")?e:iP(e)?t.replace(".","\\."):e}function aP(e,t=""){return[t,nS(e)].filter(Boolean).join("-")}function lP(e,t){return`var(${nS(e)}${t?`, ${t}`:""})`}function uP(e,t=""){return`--${aP(e,t)}`}function Re(e,t){const n=uP(e,t==null?void 0:t.prefix);return{variable:n,reference:lP(n,cP(t==null?void 0:t.fallback))}}function cP(e){return e==null?void 0:e.reference}const{definePartsStyle:Es,defineMultiStyleConfig:dP}=oe(o_.keys),ht=F("alert-fg"),An=F("alert-bg"),fP=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 kh(e){const{theme:t,colorScheme:n}=e,r=Lo(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const hP=Es(e=>{const{colorScheme:t}=e,n=kh(e);return{container:{[ht.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[ht.variable]:`colors.${t}.200`,[An.variable]:n.dark}}}}),pP=Es(e=>{const{colorScheme:t}=e,n=kh(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}}}),mP=Es(e=>{const{colorScheme:t}=e,n=kh(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}}}),gP=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}}}),yP={subtle:hP,"left-accent":pP,"top-accent":mP,solid:gP},vP=dP({baseStyle:fP,variants:yP,defaultProps:{variant:"subtle",colorScheme:"blue"}}),rS={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"},SP={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"},bP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},oS={...rS,...SP,container:bP},xP=e=>typeof e=="function";function Ze(e,...t){return xP(e)?e(...t):e}const{definePartsStyle:iS,defineMultiStyleConfig:wP}=oe(i_.keys),Co=F("avatar-border-color"),Vi=F("avatar-bg"),hs=F("avatar-font-size"),jo=F("avatar-size"),kP={borderRadius:"full",border:"0.2em solid",borderColor:Co.reference,[Co.variable]:"white",_dark:{[Co.variable]:"colors.gray.800"}},CP={bg:Vi.reference,fontSize:hs.reference,width:jo.reference,height:jo.reference,lineHeight:"1",[Vi.variable]:"colors.gray.200",_dark:{[Vi.variable]:"colors.whiteAlpha.400"}},TP=e=>{const{name:t,theme:n}=e,r=t?tP({string:t}):"colors.gray.400",o=J_(r)(n);let i="white";return o||(i="gray.800"),{bg:Vi.reference,fontSize:hs.reference,color:i,borderColor:Co.reference,verticalAlign:"top",width:jo.reference,height:jo.reference,"&:not([data-loaded])":{[Vi.variable]:r},[Co.variable]:"colors.white",_dark:{[Co.variable]:"colors.gray.800"}}},_P={fontSize:hs.reference,lineHeight:"1"},PP=iS(e=>({badge:Ze(kP,e),excessLabel:Ze(CP,e),container:Ze(TP,e),label:_P}));function jn(e){const t=e!=="100%"?oS[e]:void 0;return iS({container:{[jo.variable]:t??e,[hs.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[jo.variable]:t??e,[hs.variable]:`calc(${t??e} / 2.5)`}})}const EP={"2xs":jn(4),xs:jn(6),sm:jn(8),md:jn(12),lg:jn(16),xl:jn(24),"2xl":jn(32),full:jn("100%")},$P=wP({baseStyle:PP,sizes:EP,defaultProps:{size:"md"}}),Ce=YT("badge",["bg","color","shadow"]),AP={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},RP=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"}}},MP=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`}}},zP=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}`}},DP={solid:RP,subtle:MP,outline:zP},Oi={baseStyle:AP,variants:DP,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:IP,definePartsStyle:LP}=oe(s_.keys),fc=F("breadcrumb-link-decor"),jP={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:fc.reference,[fc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[fc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},FP=LP({link:jP}),BP=IP({baseStyle:FP}),VP={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"}}},sS=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)}}},OP=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(sS,e)}},NP={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},WP=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`}=NP[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)}}},UP=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)}}},HP={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},KP={ghost:sS,outline:OP,solid:WP,link:UP,unstyled:HP},GP={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"}},XP={baseStyle:VP,variants:KP,sizes:GP,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Er,defineMultiStyleConfig:YP}=oe(P_.keys),Tl=F("card-bg"),wn=F("card-padding"),aS=F("card-shadow"),La=F("card-radius"),lS=F("card-border-width","0"),uS=F("card-border-color"),qP=Er({container:{[Tl.variable]:"colors.chakra-body-bg",backgroundColor:Tl.reference,boxShadow:aS.reference,borderRadius:La.reference,color:"chakra-body-text",borderWidth:lS.reference,borderColor:uS.reference},body:{padding:wn.reference,flex:"1 1 0%"},header:{padding:wn.reference},footer:{padding:wn.reference}}),QP={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"}})},ZP={elevated:Er({container:{[aS.variable]:"shadows.base",_dark:{[Tl.variable]:"colors.gray.700"}}}),outline:Er({container:{[lS.variable]:"1px",[uS.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}}},JP=YP({baseStyle:qP,variants:ZP,sizes:QP,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:ja,defineMultiStyleConfig:eE}=oe(a_.keys),Ni=F("checkbox-size"),tE=e=>{const{colorScheme:t}=e;return{w:Ni.reference,h:Ni.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)}}},nE={_disabled:{cursor:"not-allowed"}},rE={userSelect:"none",_disabled:{opacity:.4}},oE={transitionProperty:"transform",transitionDuration:"normal"},iE=ja(e=>({icon:oE,container:nE,control:Ze(tE,e),label:rE})),sE={sm:ja({control:{[Ni.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ja({control:{[Ni.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ja({control:{[Ni.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Nn=eE({baseStyle:iE,sizes:sE,defaultProps:{size:"md",colorScheme:"blue"}}),Wi=Re("close-button-size"),di=Re("close-button-bg"),aE={w:[Wi.reference],h:[Wi.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},lE={lg:{[Wi.variable]:"sizes.10",fontSize:"md"},md:{[Wi.variable]:"sizes.8",fontSize:"xs"},sm:{[Wi.variable]:"sizes.6",fontSize:"2xs"}},uE={baseStyle:aE,sizes:lE,defaultProps:{size:"md"}},{variants:cE,defaultProps:dE}=Oi,fE={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},hE={baseStyle:fE,variants:cE,defaultProps:dE},pE={w:"100%",mx:"auto",maxW:"prose",px:"4"},mE={baseStyle:pE},gE={opacity:.6,borderColor:"inherit"},yE={borderStyle:"solid"},vE={borderStyle:"dashed"},SE={solid:yE,dashed:vE},bE={baseStyle:gE,variants:SE,defaultProps:{variant:"solid"}},{definePartsStyle:Yd,defineMultiStyleConfig:xE}=oe(l_.keys),hc=F("drawer-bg"),pc=F("drawer-box-shadow");function Kr(e){return Yd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const wE={bg:"blackAlpha.600",zIndex:"modal"},kE={display:"flex",zIndex:"modal",justifyContent:"center"},CE=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[hc.variable]:"colors.white",[pc.variable]:"shadows.lg",_dark:{[hc.variable]:"colors.gray.700",[pc.variable]:"shadows.dark-lg"},bg:hc.reference,boxShadow:pc.reference}},TE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},_E={position:"absolute",top:"2",insetEnd:"3"},PE={px:"6",py:"2",flex:"1",overflow:"auto"},EE={px:"6",py:"4"},$E=Yd(e=>({overlay:wE,dialogContainer:kE,dialog:Ze(CE,e),header:TE,closeButton:_E,body:PE,footer:EE})),AE={xs:Kr("xs"),sm:Kr("md"),md:Kr("lg"),lg:Kr("2xl"),xl:Kr("4xl"),full:Kr("full")},RE=xE({baseStyle:$E,sizes:AE,defaultProps:{size:"xs"}}),{definePartsStyle:ME,defineMultiStyleConfig:zE}=oe(u_.keys),DE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},IE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},LE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},jE=ME({preview:DE,input:IE,textarea:LE}),FE=zE({baseStyle:jE}),{definePartsStyle:BE,defineMultiStyleConfig:VE}=oe(c_.keys),To=F("form-control-color"),OE={marginStart:"1",[To.variable]:"colors.red.500",_dark:{[To.variable]:"colors.red.300"},color:To.reference},NE={mt:"2",[To.variable]:"colors.gray.600",_dark:{[To.variable]:"colors.whiteAlpha.600"},color:To.reference,lineHeight:"normal",fontSize:"sm"},WE=BE({container:{width:"100%",position:"relative"},requiredIndicator:OE,helperText:NE}),UE=VE({baseStyle:WE}),{definePartsStyle:HE,defineMultiStyleConfig:KE}=oe(d_.keys),_o=F("form-error-color"),GE={[_o.variable]:"colors.red.500",_dark:{[_o.variable]:"colors.red.300"},color:_o.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},XE={marginEnd:"0.5em",[_o.variable]:"colors.red.500",_dark:{[_o.variable]:"colors.red.300"},color:_o.reference},YE=HE({text:GE,icon:XE}),qE=KE({baseStyle:YE}),QE={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},ZE={baseStyle:QE},JE={fontFamily:"heading",fontWeight:"bold"},e5={"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}},t5={baseStyle:JE,sizes:e5,defaultProps:{size:"xl"}},{definePartsStyle:bn,defineMultiStyleConfig:n5}=oe(f_.keys),io=F("input-height"),so=F("input-font-size"),ao=F("input-padding"),lo=F("input-border-radius"),r5=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"}},o5={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 Ch(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 i5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ch(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)}}}),s5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ch(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)}}}),a5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ch(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"}}}),l5=bn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),u5={outline:i5,filled:s5,flushed:a5,unstyled:l5},Q=n5({baseStyle:r5,sizes:o5,variants:u5,defaultProps:{size:"md",variant:"outline"}}),mc=F("kbd-bg"),c5={[mc.variable]:"colors.gray.100",_dark:{[mc.variable]:"colors.whiteAlpha.100"},bg:mc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},d5={baseStyle:c5},f5={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},h5={baseStyle:f5},{defineMultiStyleConfig:p5,definePartsStyle:m5}=oe(h_.keys),g5={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},y5=m5({icon:g5}),v5=p5({baseStyle:y5}),{defineMultiStyleConfig:S5,definePartsStyle:b5}=oe(p_.keys),Zt=F("menu-bg"),gc=F("menu-shadow"),x5={[Zt.variable]:"#fff",[gc.variable]:"shadows.sm",_dark:{[Zt.variable]:"colors.gray.700",[gc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Zt.reference,boxShadow:gc.reference},w5={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},k5={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},C5={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},T5={opacity:.6},_5={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},P5={transitionProperty:"common",transitionDuration:"normal"},E5=b5({button:P5,list:x5,item:w5,groupTitle:k5,icon:C5,command:T5,divider:_5}),$5=S5({baseStyle:E5}),{defineMultiStyleConfig:A5,definePartsStyle:qd}=oe(m_.keys),yc=F("modal-bg"),vc=F("modal-shadow"),R5={bg:"blackAlpha.600",zIndex:"modal"},M5=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"}},z5=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,[yc.variable]:"colors.white",[vc.variable]:"shadows.lg",_dark:{[yc.variable]:"colors.gray.700",[vc.variable]:"shadows.dark-lg"},bg:yc.reference,boxShadow:vc.reference}},D5={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},I5={position:"absolute",top:"2",insetEnd:"3"},L5=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},j5={px:"6",py:"4"},F5=qd(e=>({overlay:R5,dialogContainer:Ze(M5,e),dialog:Ze(z5,e),header:D5,closeButton:I5,body:Ze(L5,e),footer:j5}));function Lt(e){return qd(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const B5={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")},V5=A5({baseStyle:F5,sizes:B5,defaultProps:{size:"md"}}),cS={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:O5,definePartsStyle:dS}=oe(g_.keys),Th=Re("number-input-stepper-width"),fS=Re("number-input-input-padding"),N5=gn(Th).add("0.5rem").toString(),Sc=Re("number-input-bg"),bc=Re("number-input-color"),xc=Re("number-input-border-color"),W5={[Th.variable]:"sizes.6",[fS.variable]:N5},U5=e=>{var t;return((t=Ze(Q.baseStyle,e))==null?void 0:t.field)??{}},H5={width:Th.reference},K5={borderStart:"1px solid",borderStartColor:xc.reference,color:bc.reference,bg:Sc.reference,[bc.variable]:"colors.chakra-body-text",[xc.variable]:"colors.chakra-border-color",_dark:{[bc.variable]:"colors.whiteAlpha.800",[xc.variable]:"colors.whiteAlpha.300"},_active:{[Sc.variable]:"colors.gray.200",_dark:{[Sc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},G5=dS(e=>({root:W5,field:Ze(U5,e)??{},stepperGroup:H5,stepper:K5}));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=cS.fontSizes[r];return dS({field:{...t.field,paddingInlineEnd:fS.reference,verticalAlign:"top"},stepper:{fontSize:gn(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const X5={xs:da("xs"),sm:da("sm"),md:da("md"),lg:da("lg")},Y5=O5({baseStyle:G5,sizes:X5,variants:Q.variants,defaultProps:Q.defaultProps});var cy;const q5={...(cy=Q.baseStyle)==null?void 0:cy.field,textAlign:"center"},Q5={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 dy;const Z5={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:((dy=Q.variants)==null?void 0:dy.unstyled.field)??{}},J5={baseStyle:q5,sizes:Q5,variants:Z5,defaultProps:Q.defaultProps},{defineMultiStyleConfig:e$,definePartsStyle:t$}=oe(y_.keys),fa=Re("popper-bg"),n$=Re("popper-arrow-bg"),Eg=Re("popper-arrow-shadow-color"),r$={zIndex:"popover"},o$={[fa.variable]:"colors.white",bg:fa.reference,[n$.variable]:fa.reference,[Eg.variable]:"colors.gray.200",_dark:{[fa.variable]:"colors.gray.700",[Eg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},i$={px:3,py:2,borderBottomWidth:"1px"},s$={px:3,py:2},a$={px:3,py:2,borderTopWidth:"1px"},l$={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},u$=t$({popper:r$,content:o$,header:i$,body:s$,footer:a$,closeButton:l$}),c$=e$({baseStyle:u$}),{defineMultiStyleConfig:d$,definePartsStyle:wi}=oe(v_.keys),f$=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=j(kg(),kg("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}}},h$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},p$=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),m$=e=>({transitionProperty:"common",transitionDuration:"slow",...f$(e)}),g$=wi(e=>({label:h$,filledTrack:m$(e),track:p$(e)})),y$={xs:wi({track:{h:"1"}}),sm:wi({track:{h:"2"}}),md:wi({track:{h:"3"}}),lg:wi({track:{h:"4"}})},v$=d$({sizes:y$,baseStyle:g$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:S$,definePartsStyle:Fa}=oe(S_.keys),b$=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"}}}},x$=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:b$(e)}}),w$={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"}})},k$=S$({baseStyle:x$,sizes:w$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:C$,definePartsStyle:T$}=oe(b_.keys),ha=F("select-bg");var fy;const _$={...(fy=Q.baseStyle)==null?void 0:fy.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}},P$={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},E$=T$({field:_$,icon:P$}),pa={paddingInlineEnd:"8"};var hy,py,my,gy,yy,vy,Sy,by;const $$={lg:{...(hy=Q.sizes)==null?void 0:hy.lg,field:{...(py=Q.sizes)==null?void 0:py.lg.field,...pa}},md:{...(my=Q.sizes)==null?void 0:my.md,field:{...(gy=Q.sizes)==null?void 0:gy.md.field,...pa}},sm:{...(yy=Q.sizes)==null?void 0:yy.sm,field:{...(vy=Q.sizes)==null?void 0:vy.sm.field,...pa}},xs:{...(Sy=Q.sizes)==null?void 0:Sy.xs,field:{...(by=Q.sizes)==null?void 0:by.xs.field,...pa},icon:{insetEnd:"1"}}},A$=C$({baseStyle:E$,sizes:$$,variants:Q.variants,defaultProps:Q.defaultProps}),wc=F("skeleton-start-color"),kc=F("skeleton-end-color"),R$={[wc.variable]:"colors.gray.100",[kc.variable]:"colors.gray.400",_dark:{[wc.variable]:"colors.gray.800",[kc.variable]:"colors.gray.600"},background:wc.reference,borderColor:kc.reference,opacity:.7,borderRadius:"sm"},M$={baseStyle:R$},Cc=F("skip-link-bg"),z$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Cc.variable]:"colors.white",_dark:{[Cc.variable]:"colors.gray.700"},bg:Cc.reference}},D$={baseStyle:z$},{defineMultiStyleConfig:I$,definePartsStyle:eu}=oe(x_.keys),jr=F("slider-thumb-size"),ps=F("slider-track-size"),Hn=F("slider-bg"),L$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...wh({orientation:t,vertical:{h:"100%",px:mn(jr.reference).divide(2).toString()},horizontal:{w:"100%",py:mn(jr.reference).divide(2).toString()}})}},j$=e=>({...wh({orientation:e.orientation,horizontal:{h:ps.reference},vertical:{w:ps.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}),F$=e=>{const{orientation:t}=e;return{...wh({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"}}},B$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Hn.variable]:`colors.${t}.500`,_dark:{[Hn.variable]:`colors.${t}.200`},bg:Hn.reference}},V$=eu(e=>({container:L$(e),track:j$(e),thumb:F$(e),filledTrack:B$(e)})),O$=eu({container:{[jr.variable]:"sizes.4",[ps.variable]:"sizes.1"}}),N$=eu({container:{[jr.variable]:"sizes.3.5",[ps.variable]:"sizes.1"}}),W$=eu({container:{[jr.variable]:"sizes.2.5",[ps.variable]:"sizes.0.5"}}),U$={lg:O$,md:N$,sm:W$},H$=I$({baseStyle:V$,sizes:U$,defaultProps:{size:"md",colorScheme:"blue"}}),br=Re("spinner-size"),K$={width:[br.reference],height:[br.reference]},G$={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"}},X$={baseStyle:K$,sizes:G$,defaultProps:{size:"md"}},{defineMultiStyleConfig:Y$,definePartsStyle:hS}=oe(w_.keys),q$={fontWeight:"medium"},Q$={opacity:.8,marginBottom:"2"},Z$={verticalAlign:"baseline",fontWeight:"semibold"},J$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},eA=hS({container:{},label:q$,helpText:Q$,number:Z$,icon:J$}),tA={md:hS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},nA=Y$({baseStyle:eA,sizes:tA,defaultProps:{size:"md"}}),{defineMultiStyleConfig:rA,definePartsStyle:ki}=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"),Ci=F("stepper-description-font-size"),fi=F("stepper-accent-color"),oA=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:co.reference,fontWeight:"medium"},description:{fontSize:Ci.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: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% - ${yn.reference} - 8px)`,top:`calc(${yn.reference} + 4px)`,insetStart:`calc(${yn.reference} / 2 - 1px)`}}})),iA=rA({baseStyle:oA,sizes:{xs:ki({stepper:{[yn.variable]:"sizes.4",[uo.variable]:"sizes.3",[co.variable]:"fontSizes.xs",[Ci.variable]:"fontSizes.xs"}}),sm:ki({stepper:{[yn.variable]:"sizes.6",[uo.variable]:"sizes.4",[co.variable]:"fontSizes.sm",[Ci.variable]:"fontSizes.xs"}}),md:ki({stepper:{[yn.variable]:"sizes.8",[uo.variable]:"sizes.5",[co.variable]:"fontSizes.md",[Ci.variable]:"fontSizes.sm"}}),lg:ki({stepper:{[yn.variable]:"sizes.10",[uo.variable]:"sizes.6",[co.variable]:"fontSizes.lg",[Ci.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:sA,definePartsStyle:Ba}=oe(k_.keys),Ui=Re("switch-track-width"),$r=Re("switch-track-height"),Tc=Re("switch-track-diff"),aA=gn.subtract(Ui,$r),Qd=Re("switch-thumb-x"),hi=Re("switch-bg"),lA=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ui.reference],height:[$r.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}},uA={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[$r.reference],height:[$r.reference],_checked:{transform:`translateX(${Qd.reference})`}},cA=Ba(e=>({container:{[Tc.variable]:aA,[Qd.variable]:Tc.reference,_rtl:{[Qd.variable]:gn(Tc).negate().toString()}},track:lA(e),thumb:uA})),dA={sm:Ba({container:{[Ui.variable]:"1.375rem",[$r.variable]:"sizes.3"}}),md:Ba({container:{[Ui.variable]:"1.875rem",[$r.variable]:"sizes.4"}}),lg:Ba({container:{[Ui.variable]:"2.875rem",[$r.variable]:"sizes.6"}})},fA=sA({baseStyle:cA,sizes:dA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:hA,definePartsStyle:Po}=oe(C_.keys),pA=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"}},mA=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}}}}}}),gA=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}}}}}}),yA={simple:mA,striped:gA,unstyled:{}},vA={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"}})},SA=hA({baseStyle:pA,variants:yA,sizes:vA,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),nt=F("tabs-color"),Ot=F("tabs-bg"),ma=F("tabs-border-color"),{defineMultiStyleConfig:bA,definePartsStyle:an}=oe(T_.keys),xA=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},wA=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}}},kA=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},CA={p:4},TA=an(e=>({root:xA(e),tab:wA(e),tablist:kA(e),tabpanel:CA})),_A={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}})},PA=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}}}),EA=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"}}}),$A=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"}}}),AA=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`)}}}}),RA=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}}}),MA=an({}),zA={line:PA,enclosed:EA,"enclosed-colored":$A,"soft-rounded":AA,"solid-rounded":RA,unstyled:MA},DA=bA({baseStyle:TA,sizes:_A,variants:zA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:IA,definePartsStyle:Ar}=oe(__.keys),$g=F("tag-bg"),Ag=F("tag-color"),_c=F("tag-shadow"),Va=F("tag-min-height"),Oa=F("tag-min-width"),Na=F("tag-font-size"),Wa=F("tag-padding-inline"),LA={fontWeight:"medium",lineHeight:1.2,outline:0,[Ag.variable]:Ce.color.reference,[$g.variable]:Ce.bg.reference,[_c.variable]:Ce.shadow.reference,color:Ag.reference,bg:$g.reference,boxShadow:_c.reference,borderRadius:"md",minH:Va.reference,minW:Oa.reference,fontSize:Na.reference,px:Wa.reference,_focusVisible:{[_c.variable]:"shadows.outline"}},jA={lineHeight:1.2,overflow:"visible"},FA={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}},BA=Ar({container:LA,label:jA,closeButton:FA}),VA={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"}})},OA={subtle:Ar(e=>{var t;return{container:(t=Oi.variants)==null?void 0:t.subtle(e)}}),solid:Ar(e=>{var t;return{container:(t=Oi.variants)==null?void 0:t.solid(e)}}),outline:Ar(e=>{var t;return{container:(t=Oi.variants)==null?void 0:t.outline(e)}})},NA=IA({variants:OA,baseStyle:BA,sizes:VA,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var xy;const WA={...(xy=Q.baseStyle)==null?void 0:xy.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var wy;const UA={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:((wy=Q.variants)==null?void 0:wy.unstyled.field)??{}};var ky,Cy,Ty,_y;const HA={xs:((ky=Q.sizes)==null?void 0:ky.xs.field)??{},sm:((Cy=Q.sizes)==null?void 0:Cy.sm.field)??{},md:((Ty=Q.sizes)==null?void 0:Ty.md.field)??{},lg:((_y=Q.sizes)==null?void 0:_y.lg.field)??{}},KA={baseStyle:WA,sizes:HA,variants:UA,defaultProps:{size:"md",variant:"outline"}},ga=Re("tooltip-bg"),Pc=Re("tooltip-fg"),GA=Re("popper-arrow-bg"),XA={bg:ga.reference,color:Pc.reference,[ga.variable]:"colors.gray.700",[Pc.variable]:"colors.whiteAlpha.900",_dark:{[ga.variable]:"colors.gray.300",[Pc.variable]:"colors.gray.900"},[GA.variable]:ga.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},YA={baseStyle:XA},qA={Accordion:I_,Alert:vP,Avatar:$P,Badge:Oi,Breadcrumb:BP,Button:XP,Checkbox:Nn,CloseButton:uE,Code:hE,Container:mE,Divider:bE,Drawer:RE,Editable:FE,Form:UE,FormError:qE,FormLabel:ZE,Heading:t5,Input:Q,Kbd:d5,Link:h5,List:v5,Menu:$5,Modal:V5,NumberInput:Y5,PinInput:J5,Popover:c$,Progress:v$,Radio:k$,Select:A$,Skeleton:M$,SkipLink:D$,Slider:H$,Spinner:X$,Stat:nA,Switch:fA,Table:SA,Tabs:DA,Tag:NA,Textarea:KA,Tooltip:YA,Card:JP,Stepper:iA},QA={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},ZA={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},JA={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"}},eR={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},tR={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"},nR={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"},rR={"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)"},oR={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},iR={property:nR,easing:rR,duration:oR},sR={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},aR={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},lR={breakpoints:ZA,zIndices:sR,radii:eR,blur:aR,colors:JA,...cS,sizes:oS,shadows:tR,space:rS,borders:QA,transition:iR},uR={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"}}},cR={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"}}},dR="ltr",fR={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},hR={semanticTokens:uR,direction:dR,...lR,components:qA,styles:cR,config:fR};var pR=!1;function mR(e){if(e.sheet)return e.sheet;for(var t=0;t0?Fe(Go,--at):0,Fo--,_e===10&&(Fo=1,nu--),_e}function pt(){return _e=at2||gs(_e)>3?"":" "}function ER(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 Jd(e){for(;pt();)switch(_e){case e:return at;case 34:case 39:e!==34&&e!==39&&Jd(_e);break;case 40:e===41&&Jd(e);break;case 92:pt();break}return at}function $R(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 AR(e){for(;!gs(ln());)pt();return $s(e,at)}function RR(e){return SS(Ka("",null,null,null,[""],e=vS(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,T=i,E=r,k=m;_;)switch(v=h,h=pt()){case 40:if(v!=108&&Fe(k,d-1)==58){Zd(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+=PR(v);break;case 92:k+=ER(Ua()-1,7);continue;case 47:switch(ln()){case 42:case 47:ya(MR($R(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?Mg(k+";",r,n,d-1):Mg(q(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ya(E=Rg(k,t,n,u,c,o,a,m,b=[],T=[],d),i),h===123)if(c===0)Ka(k,t,E,E,b,i,d,a,T);else switch(f===99&&Fe(k,3)===110?100:f){case 100:case 108:case 109:case 115:Ka(e,E,E,r&&ya(Rg(e,E,E,0,0,o,a,m,o,b=[],d),T),o,T,d,a,r?b:T);break;default:Ka(k,E,E,E,[""],T,0,a,T)}}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&&_R()==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+=AR(Ua())),h++;break;case 45:v===45&&Jt(k)==2&&(S=0)}}return i}function Rg(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],y=Eh(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?_h:a,l,u,c)}function MR(e,t,n){return ru(e,t,n,pS,tu(TR()),ms(e,2,-2),0)}function Mg(e,t,n,r){return ru(e,t,n,Ph,ms(e,0,r),ms(e,r+1,-1),r)}function Eo(e,t){for(var n="",r=Eh(e),o=0;o6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+Pl+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zd(e,"stretch")?xS(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-(~Zd(e,"!important")&&10))){case 107:return q(e,":",":"+Y)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(Fe(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+We+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return Y+e+We+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+We+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+We+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+We+e+e}return e}var OR=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ph:t.return=xS(t.value,t.length);break;case mS:return Eo([pi(t,{value:q(t.value,"@","@"+Y)})],o);case _h:if(t.length)return CR(t.props,function(i){switch(kR(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eo([pi(t,{props:[q(i,/:(read-\w+)/,":"+Pl+"$1")]})],o);case"::placeholder":return Eo([pi(t,{props:[q(i,/:(plac\w+)/,":"+Y+"input-$1")]}),pi(t,{props:[q(i,/:(plac\w+)/,":"+Pl+"$1")]}),pi(t,{props:[q(i,/:(plac\w+)/,We+"input-$1")]})],o)}return""})}},NR=[OR],WR=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||NR,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=[BR,VR];{var c,d=[zR,IR(function(S){c.insert(S)})],f=DR(u.concat(o,d)),y=function(_){return Eo(RR(_),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 yR({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},wS={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,Ah=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,Rh=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,UR=De?Symbol.for("react.suspense_list"):60120,fu=De?Symbol.for("react.memo"):60115,hu=De?Symbol.for("react.lazy"):60116,HR=De?Symbol.for("react.block"):60121,KR=De?Symbol.for("react.fundamental"):60117,GR=De?Symbol.for("react.responder"):60118,XR=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 Rh: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 Ah:return t}}}function kS(e){return bt(e)===uu}te.AsyncMode=Rh;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=Ah;te.Profiler=su;te.StrictMode=iu;te.Suspense=du;te.isAsyncMode=function(e){return kS(e)||bt(e)===Rh};te.isConcurrentMode=kS;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)===Ah};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===UR||typeof e=="object"&&e!==null&&(e.$$typeof===hu||e.$$typeof===fu||e.$$typeof===au||e.$$typeof===lu||e.$$typeof===cu||e.$$typeof===KR||e.$$typeof===GR||e.$$typeof===XR||e.$$typeof===HR)};te.typeOf=bt;wS.exports=te;var YR=wS.exports,CS=YR,qR={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},QR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TS={};TS[CS.ForwardRef]=qR;TS[CS.Memo]=QR;var ZR=!0;function _S(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Mh=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||ZR===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},zh=function(t,n,r){Mh(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 JR(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 eM={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},tM=!1,nM=/[A-Z]|^ms/g,rM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PS=function(t){return t.charCodeAt(1)===45},Ig=function(t){return t!=null&&typeof t!="boolean"},Ec=bS(function(e){return PS(e)?e:e.replace(nM,"-$&").toLowerCase()}),Lg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(rM,function(r,o,i){return en={name:o,styles:i,next:en},o})}return eM[t]!==1&&!PS(t)&&typeof n=="number"&&n!==0?n+"px":n},oM="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ys(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 iM(e,t,n)}case"function":{if(e!==void 0){var l=en,u=n(e);return en=l,ys(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function iM(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 vM="chakra-ui-color-mode";function SM(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 bM=SM(vM),Vg=()=>{},xM=A2()?C.useLayoutEffect:C.useEffect;function Og(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const RS=mu(function(t,n){const{value:r,children:o,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:l=bM}=t,u=s==="dark"?"dark":"light",[c,d]=C.useState(()=>Og(l,u)),[f,y]=C.useState(()=>Og(l)),{getSystemTheme:v,setClassName:S,setDataset:_,addListener:p}=C.useMemo(()=>yM({preventTransition:a,nonce:n==null?void 0:n.nonce}),[a,n==null?void 0:n.nonce]),h=s==="system"&&!c?f:c,m=C.useCallback(E=>{const k=E==="system"?v():E;d(k),S(k==="dark"),_(k),l.set(k)},[l,v,S,_]);xM(()=>{s==="system"&&y(v())},[]),C.useEffect(()=>{const E=l.get();if(E){m(E);return}if(s==="system"){m("system");return}m(u)},[l,u,s,m]);const b=C.useCallback(()=>{m(h==="dark"?"light":"dark")},[h,m]);C.useEffect(()=>{if(i)return p(m)},[i,p,m]);const T=C.useMemo(()=>({colorMode:r??h,toggleColorMode:r?Vg:b,setColorMode:r?Vg:m,forced:r!==void 0}),[h,b,m,r]);return P.jsx(Ih.Provider,{value:T,children:o})});RS.displayName="ColorModeProvider";const MS=String.raw,zS=MS` - :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; - } - } -`,wM=()=>P.jsx(gu,{styles:zS}),kM=({scope:e=""})=>P.jsx(gu,{styles:MS` - 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; - } - - ${zS} - `});function CM(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=C.useMemo(()=>n_(n),[n]);return P.jsxs(cM,{theme:o,children:[P.jsx(TM,{root:t}),r]})}function TM({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return P.jsx(gu,{styles:n=>({[t]:n.__cssVars})})}zn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function _M(){const{colorMode:e}=yu();return P.jsx(gu,{styles:t=>{const n=G1(t,"styles.global"),r=$t(n,{theme:t,colorMode:e});return r?J1(r)(t):void 0}})}const[PM,EM]=zn({strict:!1,name:"PortalManagerContext"});function DS(e){const{children:t,zIndex:n}=e;return P.jsx(PM,{value:{zIndex:n},children:t})}DS.displayName="PortalManager";const IS=C.createContext({getDocument(){return document},getWindow(){return window}});IS.displayName="EnvironmentContext";function LS(e){const{children:t,environment:n,disabled:r}=e,o=C.useRef(null),i=C.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(IS.Provider,{value:i,children:[t,s&&P.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}LS.displayName="EnvironmentProvider";const $M=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(LS,{environment:a,disabled:u,children:t});return P.jsx(CM,{theme:s,cssVarsRoot:l,children:P.jsxs(RS,{colorModeManager:n,options:s.config,children:[i?P.jsx(kM,{scope:o}):P.jsx(wM,{}),!c&&P.jsx(_M,{}),r?P.jsx(DS,{zIndex:r,children:d}):d]})})};function AM(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 vu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const tf=e=>Array.isArray(e);function jS(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 Lh(e,t,n,r){if(typeof t=="function"){const[o,i]=Ng(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]=Ng(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Su(e,t,n){const r=e.getProps();return Lh(r,t,n!==void 0?n:r.custom,e)}const jh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fh=["initial",...jh],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,RM={type:"spring",stiffness:500,damping:25,restSpeed:10},MM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zM={type:"keyframes",duration:.8},DM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IM=(e,{keyframes:t})=>t.length>2?zM:Vr.has(e)?e.startsWith("scale")?MM(t[1]):RM:DM;function Bh(e,t){return e?e[t]||e.default||e:void 0}const LM={skipAnimations:!1,useManualTiming:!1},jM=e=>e!==null;function bu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(jM),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const mt=e=>e;let nf=mt;function FM(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"],BM=40;function FS(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]=FM(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,BM),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,T=!1,E=!1)=>(n||v(),m.schedule(b,T,E)),p},{}),cancel:p=>{for(let h=0;h(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,VM=1e-7,OM=12;function NM(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=BS(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>VM&&++aNM(i,0,1,e,n);return i=>i===0||i===1?i:BS(o(i),t,r)}const VS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,OS=e=>t=>1-e(1-t),NS=Rs(.33,1.53,.69,.99),Vh=OS(NS),WS=VS(Vh),US=e=>(e*=2)<1?.5*Vh(e):.5*(2-Math.pow(2,-10*(e-1))),Oh=e=>1-Math.sin(Math.acos(e)),HS=OS(Oh),KS=VS(Oh),GS=e=>/^0[^.\s]+$/u.test(e);function WM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||GS(e):!0}const XS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),YS=e=>t=>typeof t=="string"&&t.startsWith(e),qS=YS("--"),UM=YS("var(--"),Nh=e=>UM(e)?HM.test(e.split("/*")[0].trim()):!1,HM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,KM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function GM(e){const t=KM.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function QS(e,t,n=1){const[r,o]=GM(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return XS(s)?parseFloat(s):s}return Nh(o)?QS(o,t,n+1):o}const Rn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ss={...Xo,transform:e=>Rn(0,1,e)},ba={...Xo,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"),XM=Ms("vh"),YM=Ms("vw"),Wg={...un,parse:e=>un.parse(e)/100,transform:e=>un.transform(e*100)},qM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ug=e=>e===Xo||e===B,Hg=(e,t)=>parseFloat(e.split(", ")[t]),Kg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Hg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Hg(i[1],e):0}},QM=new Set(["x","y","z"]),ZM=As.filter(e=>!QM.has(e));function JM(e){const t=[];return ZM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Vo={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:Kg(4,13),y:Kg(5,14)};Vo.translateX=Vo.x;Vo.translateY=Vo.y;const ZS=e=>t=>t.test(e),ez={test:e=>e==="auto",parse:e=>e},JS=[Xo,B,un,Bn,YM,XM,ez],Gg=e=>JS.find(ZS(e)),Rr=new Set;let rf=!1,of=!1;function eb(){if(of){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=JM(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)})}of=!1,rf=!1,Rr.forEach(e=>e.complete()),Rr.clear()}function tb(){Rr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(of=!0)})}function tz(){tb(),eb()}class Wh{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),rf||(rf=!0,le.read(tb),le.resolveKeyframes(eb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,Uh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nz(e){return e==null}const rz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hh=(e,t)=>n=>!!(typeof n=="string"&&rz.test(n)&&n.startsWith(e)||t&&!nz(n)&&Object.prototype.hasOwnProperty.call(n,t)),nb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Uh);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},oz=e=>Rn(0,255,e),Ac={...Xo,transform:e=>Math.round(oz(e))},Tr={test:Hh("rgb","red"),parse:nb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ac.transform(e)+", "+Ac.transform(t)+", "+Ac.transform(n)+", "+Hi(Ss.transform(r))+")"};function iz(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 sf={test:Hh("#"),parse:iz,transform:Tr.transform},fo={test:Hh("hsl","hue"),parse:nb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+un.transform(Hi(t))+", "+un.transform(Hi(n))+", "+Hi(Ss.transform(r))+")"},Ue={test:e=>Tr.test(e)||sf.test(e)||fo.test(e),parse:e=>Tr.test(e)?Tr.parse(e):fo.test(e)?fo.parse(e):sf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Tr.transform(e):fo.transform(e)},sz=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function az(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Uh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(sz))===null||n===void 0?void 0:n.length)||0)>0}const rb="number",ob="color",lz="var",uz="var(",Xg="${}",cz=/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(cz,l=>(Ue.test(l)?(r.color.push(i),o.push(ob),n.push(Ue.parse(l))):l.startsWith(uz)?(r.var.push(i),o.push(lz),n.push(l)):(r.number.push(i),o.push(rb),n.push(parseFloat(l))),++i,Xg)).split(Xg);return{values:n,split:a,indexes:r,types:o}}function ib(e){return bs(e).values}function sb(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 fz(e){const t=ib(e);return sb(e)(t.map(dz))}const ir={test:az,parse:ib,createTransformer:sb,getAnimatableNone:fz},hz=new Set(["brightness","contrast","saturate","opacity"]);function pz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Uh)||[];if(!r)return e;const o=n.replace(r,"");let i=hz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const mz=/\b([a-z-]*)\(.*?\)/gu,af={...ir,getAnimatableNone:e=>{const t=e.match(mz);return t?t.map(pz).join(" "):e}},gz={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},yz={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:Wg,originY:Wg,originZ:B},Yg={...Xo,transform:Math.round},Kh={...gz,...yz,zIndex:Yg,size:B,fillOpacity:Ss,strokeOpacity:Ss,numOctaves:Yg},vz={...Kh,color:Ue,backgroundColor:Ue,outlineColor:Ue,fill:Ue,stroke:Ue,borderColor:Ue,borderTopColor:Ue,borderRightColor:Ue,borderBottomColor:Ue,borderLeftColor:Ue,filter:af,WebkitFilter:af},Gh=e=>vz[e];function ab(e,t){let n=Gh(e);return n!==af&&(n=ir),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Sz=new Set(["auto","none","0"]);function bz(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Xh(e){return typeof e=="function"}let Ga;function xz(){Ga=void 0}const cn={now:()=>(Ga===void 0&&cn.set(je.isProcessing||LM.useManualTiming?je.timestamp:performance.now()),Ga),set:e=>{Ga=e,queueMicrotask(xz)}},qg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ir.test(e)||e==="0")&&!e.startsWith("url("));function wz(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nCz?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&tz(),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&&!kz(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(bu(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 Oo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},cb=(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=lf(u,s),v=Math.exp(-d);return Rc-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=lf(Math.pow(u,2),s);return(-o(u)+Rc>0?-1:1)*((f-y)*v)/S}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Rc+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=Ez(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 Pz=12;function Ez(e,t,n){let r=n;for(let o=1;o=uf?1/0:t}const $z=["duration","bounce"],Az=["stiffness","damping","mass"];function Qg(e,t){return t.some(n=>e[n]!==void 0)}function Rz(e){let t={velocity:Se.velocity,stiffness:Se.stiffness,damping:Se.damping,mass:Se.mass,isResolvedFromDuration:!1,...e};if(!Qg(e,Az)&&Qg(e,$z))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=_z(e);t={...t,...n,mass:Se.mass},t.isResolvedFromDuration=!0}return t}function pb(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}=Rz({...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 T=lf(p,S);m=E=>{const k=Math.exp(-S*p*E);return s-k*((v+S*p*_)/T*Math.sin(T*E)+_*Math.cos(T*E))}}else if(S===1)m=T=>s-Math.exp(-p*T)*(_+(v+p*_)*T);else{const T=p*Math.sqrt(S*S-1);m=E=>{const k=Math.exp(-S*p*E),A=Math.min(T*E,300);return s-k*((v+S*p*_)*Math.sinh(A)+T*_*Math.cosh(A))/T}}const b={calculatedDuration:y&&d||null,next:T=>{const E=m(T);if(y)a.done=T>=d;else{let k=0;S<1&&(k=T===0?kn(v):fb(m,T,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 T=Math.min(hb(b),uf),E=cb(k=>b.next(T*k).value,T,30);return T+"ms "+E}};return b}function Zg({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 T,E;const k=A=>{y(f.value)&&(T=A,E=pb({keyframes:[f.value,v(f.value)],velocity:fb(m,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:A=>{let D=!1;return!E&&T===void 0&&(D=!0,b(A),k(A)),T!==void 0&&A>=T?E.next(A-T):(!D&&b(A),f)}}}const Mz=Rs(.42,0,1,1),zz=Rs(0,0,.58,1),mb=Rs(.42,0,.58,1),Dz=e=>Array.isArray(e)&&typeof e[0]!="number",Yh=e=>Array.isArray(e)&&typeof e[0]=="number",Jg={linear:mt,easeIn:Mz,easeInOut:mb,easeOut:zz,circIn:Oh,circInOut:KS,circOut:HS,backIn:Vh,backInOut:WS,backOut:NS,anticipate:US},e0=e=>{if(Yh(e)){nf(e.length===4);const[t,n,r,o]=e;return Rs(t,n,r,o)}else if(typeof e=="string")return nf(Jg[e]!==void 0),Jg[e];return e},Iz=(e,t)=>n=>t(e(n)),zs=(...e)=>e.reduce(Iz),ge=(e,t,n)=>e+(t-e)*n;function Mc(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 Lz({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=Mc(l,a,e+1/3),i=Mc(l,a,e),s=Mc(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 zc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},jz=[sf,Tr,fo],Fz=e=>jz.find(t=>t.test(e));function t0(e){const t=Fz(e);if(!t)return!1;let n=t.parse(e);return t===fo&&(n=Lz(n)),n}const n0=(e,t)=>{const n=t0(e),r=t0(t);if(!n||!r)return El(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),Tr.transform(o))},cf=new Set(["none","hidden"]);function Bz(e,t){return cf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Vz(e,t){return n=>ge(e,t,n)}function qh(e){return typeof e=="number"?Vz:typeof e=="string"?Nh(e)?El:Ue.test(e)?n0:Wz:Array.isArray(e)?gb:typeof e=="object"?Ue.test(e)?n0:Oz:El}function gb(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>qh(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function Nz(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?cf.has(e)&&!o.values.length||cf.has(t)&&!r.values.length?Bz(e,t):zs(gb(Nz(r,o),o.values),n):El(e,t)};function yb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ge(e,t,n):qh(e)(e,t)}function Uz(e,t,n){const r=[],o=n||yb,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=Uz(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 Kz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Oo(0,t,r);e.push(ge(n,1,o))}}function Gz(e){const t=[0];return Kz(t,e.length-1),t}function Xz(e,t){return e.map(n=>n*t)}function Yz(e,t){return e.map(()=>t||mb).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Dz(r)?r.map(e0):e0(r),i={done:!1,value:t[0]},s=Xz(n&&n.length===t.length?n:Gz(t),e),a=Hz(s,t,{ease:Array.isArray(o)?o:Yz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const qz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>le.update(t,!0),stop:()=>or(t),now:()=>je.isProcessing?je.timestamp:cn.now()}},Qz={decay:Zg,inertia:Zg,tween:$l,keyframes:$l,spring:pb},Zz=e=>e/100;class Qh extends ub{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)||Wh,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=Xh(n)?n:Qz[n]||$l;let l,u;a!==$l&&typeof t[0]!="number"&&(l=zs(Zz,yb(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=hb(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 T=h?{done:!1,value:l[0]}:b.next(m);a&&(T.value=a(T.value));let{done:E}=T;!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&&(T.value=bu(l,this.options,o)),_&&_(T.value),k&&this.finish(),T}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=qz,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 Jz=new Set(["opacity","clipPath","filter","transform"]);function Zh(e){let t;return()=>(t===void 0&&(t=e()),t)}const e3={linearEasing:void 0};function t3(e,t){const n=Zh(e);return()=>{var r;return(r=e3[t])!==null&&r!==void 0?r:n()}}const Al=t3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function vb(e){return!!(typeof e=="function"&&Al()||!e||typeof e=="string"&&(e in df||Al())||Yh(e)||Array.isArray(e)&&e.every(vb))}const Ti=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,df={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 Sb(e,t){if(e)return typeof e=="function"&&Al()?cb(e,t):Yh(e)?Ti(e):Array.isArray(e)?e.map(n=>Sb(n,t)||df.easeOut):df[e]}function n3(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=Sb(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 r0(e,t){e.timeline=t,e.onfinish=null}const r3=Zh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rl=10,o3=2e4;function i3(e){return Xh(e.type)||e.type==="spring"||!vb(e.ease)}function s3(e,t){const n=new Qh({...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()&&a3(s)&&(s=bb[s]),i3(this.options)){const{onComplete:f,onUpdate:y,motionValue:v,element:S,..._}=this.options,p=s3(t,_);t=p.keyframes,t.length===1&&(t[1]=t[0]),o=p.duration,i=p.times,s=p.ease,a="keyframes"}const d=n3(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(r0(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(bu(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;r0(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 Qh({...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 r3()&&r&&Jz.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const l3=Zh(()=>window.ScrollTimeline!==void 0);class u3{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;rl3()&&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 c3({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 Jh=(e,t,n,r={},o,i)=>s=>{const a=Bh(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};c3(a)||(c={...c,...IM(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=bu(c.keyframes,a);if(f!==void 0)return le.update(()=>{c.onUpdate(f),c.onComplete()}),new u3([])}return!i&&o0.supports(c)?new o0(c):new Qh(c)},d3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),f3=e=>tf(e)?e[e.length-1]||0:e;function ep(e,t){e.indexOf(t)===-1&&e.push(t)}function tp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class np{constructor(){this.subscriptions=[]}add(t){return ep(this.subscriptions,t),()=>tp(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 p3{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=h3(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 np);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>i0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,i0);return db(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 p3(e,t)}function m3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xs(n))}function g3(e,t){const n=Su(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=f3(i[s]);m3(e,s,a)}}const rp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),y3="framerAppearId",xb="data-"+rp(y3);function wb(e){return e.props[xb]}const Ke=e=>!!(e&&e.getVelocity);function v3(e){return!!(Ke(e)&&e.add)}function ff(e,t){const n=e.getValue("willChange");if(v3(n))return n.add(t)}function S3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function kb(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&&S3(c,d))continue;const v={delay:n,...Bh(s||{},d)};let S=!1;if(window.MotionHandoffAnimation){const p=wb(e);if(p){const h=window.MotionHandoffAnimation(p,d,le);h!==null&&(v.startTime=h,S=!0)}}ff(e,d),f.start(Jh(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&&g3(e,a)})}),u}function hf(e,t,n={}){var r;const o=Su(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(kb(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return b3(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 b3(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(x3).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(hf(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function x3(e,t){return e.sortNodePosition(t)}function w3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>hf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=hf(e,t,n);else{const o=typeof t=="function"?Su(e,t,n.custom):t;r=Promise.all(kb(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const k3=Fh.length;function Cb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Cb(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})=>w3(e,n,r)))}function P3(e){let t=_3(e),n=s0(),r=!0;const o=l=>(u,c)=>{var d;const f=Su(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=Cb(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 O=M.reduce(o(p),{});T===!1&&(O={});const{prevResolvedValues:he={}}=h,xt={...he,...O},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=O[xe],V=he[xe];if(y.hasOwnProperty(xe))continue;let N=!1;tf(z)&&tf(V)?N=!jS(z,V):N=z!==V,N?z!=null?Ht(xe):f.add(xe):z!==void 0&&f.has(xe)?Ht(xe):h.protectedKeys[xe]=!0}h.prevProp=m,h.prevResolvedValues=O,h.isActive&&(y={...y,...O}),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=s0(),r=!0}}}function E3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jS(t,e):!1}function mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function s0(){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 $3 extends ur{constructor(t){super(t),t.animationState||(t.animationState=P3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();vu(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 A3=0;class R3 extends ur{constructor(){super(...arguments),this.id=A3++}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 M3={animation:{Feature:$3},exit:{Feature:R3}},jt={x:!1,y:!1};function Tb(){return jt.x||jt.y}function z3(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 _b(e,t){const n=z3(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function a0(e){return t=>{t.pointerType==="touch"||Tb()||e(t)}}function D3(e,t,n={}){const[r,o,i]=_b(e,n),s=a0(a=>{const{target:l}=a,u=t(a);if(!u||!l)return;const c=a0(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,o)});return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const op=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_i=new WeakSet;function l0(e){return t=>{t.key==="Enter"&&e(t)}}function Dc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const I3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=l0(()=>{if(_i.has(n))return;Dc(n,"down");const o=l0(()=>{Dc(n,"up")}),i=()=>Dc(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)},L3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function j3(e){return L3.has(e.tagName)||e.tabIndex!==-1}const Pb=(e,t)=>t?e===t?!0:Pb(e,t.parentElement):!1;function u0(e){return op(e)&&!Tb()}function F3(e,t,n={}){const[r,o,i]=_b(e,n),s=a=>{const l=a.currentTarget;if(!u0(a)||_i.has(l))return;_i.add(l);const u=t(a),c=(y,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!u0(y)||!_i.has(l))&&(_i.delete(l),u&&u(y,{success:v}))},d=y=>{c(y,n.useGlobalTarget||Pb(l,y.target))},f=y=>{c(y,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{j3(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),a.addEventListener("focus",u=>I3(u,o),o)}),i}function B3(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 V3=e=>t=>op(t)&&e(t,Ds(t));function ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ki(e,t,n,r){return ws(e,t,V3(n),r)}const c0=(e,t)=>Math.abs(e-t);function O3(e,t){const n=c0(e.x,t.x),r=c0(e.y,t.y);return Math.sqrt(n**2+r**2)}class Eb{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=Lc(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=O3(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=Ic(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 _=Lc(d.type==="pointercancel"?this.lastMoveEventInfo:Ic(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,_),v&&v(d,_)},!op(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ds(t),a=Ic(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=je;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Lc(a,this.history)),this.removeListeners=zs(Ki(this.contextWindow,"pointermove",this.handlePointerMove),Ki(this.contextWindow,"pointerup",this.handlePointerUp),Ki(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),or(this.updatePoint)}}function Ic(e,t){return t?{point:t(e.point)}:e}function d0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lc({point:e},t){return{point:e,delta:d0(e,$b(t)),offset:d0(e,N3(t)),velocity:W3(t,.1)}}function N3(e){return e[0]}function $b(e){return e[e.length-1]}function W3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=$b(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 Ab=1e-4,U3=1-Ab,H3=1+Ab,Rb=.01,K3=0-Rb,G3=0+Rb;function yt(e){return e.max-e.min}function X3(e,t,n){return Math.abs(e-t)<=n}function f0(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>=U3&&e.scale<=H3||isNaN(e.scale))&&(e.scale=1),(e.translate>=K3&&e.translate<=G3||isNaN(e.translate))&&(e.translate=0)}function Gi(e,t,n,r){f0(e.x,t.x,n.x,r?r.originX:void 0),f0(e.y,t.y,n.y,r?r.originY:void 0)}function h0(e,t,n){e.min=n.min+t.min,e.max=e.min+yt(t)}function Y3(e,t,n){h0(e.x,t.x,n.x),h0(e.y,t.y,n.y)}function p0(e,t,n){e.min=t.min-n.min,e.max=e.min+yt(t)}function Xi(e,t,n){p0(e.x,t.x,n.x),p0(e.y,t.y,n.y)}function q3(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ge(n,e,r.max):Math.min(e,n)),e}function m0(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 Q3(e,{top:t,left:n,bottom:r,right:o}){return{x:m0(e.x,n,o),y:m0(e.y,t,r)}}function g0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Oo(t.min,t.max-r,e.min):r>o&&(n=Oo(e.min,e.max-o,t.min)),Rn(0,1,n)}function e4(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 pf=.35;function t4(e=pf){return e===!1?e=0:e===!0&&(e=pf),{x:y0(e,"left","right"),y:y0(e,"top","bottom")}}function y0(e,t,n){return{min:v0(e,t),max:v0(e,n)}}function v0(e,t){return typeof e=="number"?e:e[t]||0}const S0=()=>({translate:0,scale:1,origin:0,originPoint:0}),po=()=>({x:S0(),y:S0()}),b0=()=>({min:0,max:0}),we=()=>({x:b0(),y:b0()});function Tt(e){return[e("x"),e("y")]}function Mb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function n4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function r4(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 mf({scale:e,scaleX:t,scaleY:n}){return!jc(e)||!jc(t)||!jc(n)}function vr(e){return mf(e)||zb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zb(e){return x0(e.x)||x0(e.y)}function x0(e){return e&&e!=="0%"}function Ml(e,t,n){const r=e-n,o=t*r;return n+o}function w0(e,t,n,r,o){return o!==void 0&&(e=Ml(e,o,r)),Ml(e,n,r)+t}function gf(e,t=0,n=1,r,o){e.min=w0(e.min,t,n,r,o),e.max=w0(e.max,t,n,r,o)}function Db(e,{x:t,y:n}){gf(e.x,t.translate,t.scale,t.originPoint),gf(e.y,n.translate,n.scale,n.originPoint)}const k0=.999999999999,C0=1.0000000000001;function o4(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;ak0&&(t.x=1),t.yk0&&(t.y=1)}function mo(e,t){e.min=e.min+t,e.max=e.max+t}function T0(e,t,n,r,o=.5){const i=ge(e.min,e.max,o);gf(e,t,n,i,r)}function go(e,t){T0(e.x,t.x,t.scaleX,t.scale,t.originX),T0(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ib(e,t){return Mb(r4(e.getBoundingClientRect(),t))}function i4(e,t,n){const r=Ib(e,n),{scroll:o}=t;return o&&(mo(r.x,o.offset.x),mo(r.y,o.offset.y)),r}const Lb=({current:e})=>e?e.ownerDocument.defaultView:null,s4=new WeakMap;class a4{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=B3(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)),ff(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=l4(_),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 Eb(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Lb(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=q3(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=Q3(o.layoutBox,n):this.constraints=!1,this.elastic=t4(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Tt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=e4(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=i4(r,o.root,this.visualElement.getTransformPagePoint());let s=Z3(o.layout.layoutBox,i);if(n){const a=n(n4(s));this.hasMutatedConstraints=!!a,a&&(s=Mb(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 ff(this.visualElement,t),r.start(Jh(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]=J3({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;s4.set(this.visualElement,this);const t=this.visualElement.current,n=Ki(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=pf,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 l4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class u4 extends ur{constructor(t){super(t),this.removeGroupControls=mt,this.removeListeners=mt,this.controls=new a4(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 _0=e=>(t,n)=>{e&&le.postRender(()=>e(t,n))};class c4 extends ur{constructor(){super(...arguments),this.removePointerDownListener=mt}onPointerDown(t){this.session=new Eb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Lb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:_0(t),onStart:_0(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&le.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Ki(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=C.createContext(null);function d4(){const e=C.useContext(Is);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=C.useId();C.useEffect(()=>r(o),[]);const i=C.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}function f4(){return h4(C.useContext(Is))}function h4(e){return e===null?!0:e.isPresent}const ip=C.createContext({}),jb=C.createContext({}),Xa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function P0(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=P0(e,t.target.x),r=P0(e,t.target.y);return`${n}% ${r}%`}},p4={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 m4(e){Object.assign(zl,e)}const{schedule:sp,cancel:PL}=FS(queueMicrotask,!1);class g4 extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;m4(y4),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()})),Xa.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(),sp.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 Fb(e){const[t,n]=d4(),r=C.useContext(ip);return P.jsx(g4,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(jb),isPresent:t,safeToRemove:n})}const y4={borderRadius:{...mi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mi,borderTopRightRadius:mi,borderBottomLeftRadius:mi,borderBottomRightRadius:mi,boxShadow:p4},Bb=["TopLeft","TopRight","BottomLeft","BottomRight"],v4=Bb.length,E0=e=>typeof e=="string"?parseFloat(e):e,$0=e=>typeof e=="number"||B.test(e);function S4(e,t,n,r,o,i){o?(e.opacity=ge(0,n.opacity!==void 0?n.opacity:1,b4(r)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,x4(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(Oo(e,t,r))}function R0(e,t){e.min=t.min,e.max=t.max}function kt(e,t){R0(e.x,t.x),R0(e.y,t.y)}function M0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function z0(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 w4(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=z0(e.min,t,n,a,o),e.max=z0(e.max,t,n,a,o)}function D0(e,t,[n,r,o],i,s){w4(e,t[n],t[r],t[o],t.scale,i,s)}const k4=["x","scaleX","originX"],C4=["y","scaleY","originY"];function I0(e,t,n,r){D0(e.x,t,k4,n?n.x:void 0,r?r.x:void 0),D0(e.y,t,C4,n?n.y:void 0,r?r.y:void 0)}function L0(e){return e.translate===0&&e.scale===1}function Ob(e){return L0(e.x)&&L0(e.y)}function j0(e,t){return e.min===t.min&&e.max===t.max}function T4(e,t){return j0(e.x,t.x)&&j0(e.y,t.y)}function F0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Nb(e,t){return F0(e.x,t.x)&&F0(e.y,t.y)}function B0(e){return yt(e.x)/yt(e.y)}function V0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _4{constructor(){this.members=[]}add(t){ep(this.members,t),t.scheduleRender()}remove(t){if(tp(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 P4(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 E4=(e,t)=>e.depth-t.depth;class $4{constructor(){this.children=[],this.isDirty=!1}add(t){ep(this.children,t),this.isDirty=!0}remove(t){tp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(E4),this.isDirty=!1,this.children.forEach(t)}}function Ya(e){const t=Ke(e)?e.get():e;return d3(t)?t.toValue():t}function A4(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 R4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function M4(e,t,n){const r=Ke(e)?e:xs(e);return r.start(Jh("",r,t,n)),r.animation}const Sr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Pi=typeof window<"u"&&window.MotionDebug!==void 0,Fc=["","X","Y","Z"],z4={visibility:"hidden"},O0=1e3;let D4=0;function Bc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Wb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=wb(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&&Wb(r)}function Ub({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=D4++,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&&(Sr.totalNodes=Sr.resolvedTargetDeltas=Sr.recalculatedProjection=0),this.nodes.forEach(j4),this.nodes.forEach(N4),this.nodes.forEach(W4),this.nodes.forEach(F4),Pi&&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=A4(f,250),Xa.hasAnimatedSinceResize&&(Xa.hasAnimatedSinceResize=!1,this.nodes.forEach(W0))})}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()||X4,{onLayoutAnimationStart:_,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!Nb(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={...Bh(S,"layout"),onPlay:_,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||W0(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(U4),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&&Wb(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 T=b/1e3;U0(d.x,s.x,T),U0(d.y,s.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),K4(this.relativeTarget,this.relativeTargetOrigin,f,T),m&&T4(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=we()),kt(m,this.relativeTarget)),S&&(this.animationValues=c,S4(c,u,this.latestValues,T,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},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(()=>{Xa.hasAnimatedSinceResize=!0,this.currentAnimation=M4(0,O0,{...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(O0),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&&Hb(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),Gi(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new _4),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&&Bc("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(N0),this.root.sharedNodes.clear()}}}function I4(e){e.updateLayout()}function L4(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}):Hb(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();Gi(a,r,n.layoutBox);const l=po();s?Gi(l,e.applyTransform(o,!0),n.measuredBox):Gi(l,r,n.layoutBox);const u=!Ob(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();Xi(v,n.layoutBox,f.layoutBox);const S=we();Xi(S,r,y.layoutBox),Nb(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 j4(e){Pi&&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 F4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function B4(e){e.clearSnapshot()}function N0(e){e.clearMeasurements()}function V4(e){e.isLayoutDirty=!1}function O4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function W0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function N4(e){e.resolveTargetDelta()}function W4(e){e.calcProjection()}function U4(e){e.resetSkewAndRotation()}function H4(e){e.removeLeadSnapshot()}function U0(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 H0(e,t,n,r){e.min=ge(t.min,n.min,r),e.max=ge(t.max,n.max,r)}function K4(e,t,n,r){H0(e.x,t.x,n.x,r),H0(e.y,t.y,n.y,r)}function G4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const X4={duration:.45,ease:[.4,0,.1,1]},K0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),G0=K0("applewebkit/")&&!K0("chrome/")?Math.round:mt;function X0(e){e.min=G0(e.min),e.max=G0(e.max)}function Y4(e){X0(e.x),X0(e.y)}function Hb(e,t,n){return e==="position"||e==="preserve-aspect"&&!X3(B0(t),B0(n),.2)}function q4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Q4=Ub({attachResizeListener:(e,t)=>ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vc={current:void 0},Kb=Ub({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vc.current){const e=new Q4({});e.mount(window),e.setOptions({layoutScroll:!0}),Vc.current=e}return Vc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Z4={pan:{Feature:c4},drag:{Feature:u4,ProjectionNode:Kb,MeasureLayout:Fb}};function Y0(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 J4 extends ur{mount(){const{current:t}=this.node;t&&(this.unmount=D3(t,n=>(Y0(this.node,n,"Start"),r=>Y0(this.node,r,"End"))))}unmount(){}}class eD 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 q0(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 tD extends ur{mount(){const{current:t}=this.node;t&&(this.unmount=F3(t,n=>(q0(this.node,n,"Start"),(r,{success:o})=>q0(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yf=new WeakMap,Oc=new WeakMap,nD=e=>{const t=yf.get(e.target);t&&t(e)},rD=e=>{e.forEach(nD)};function oD({root:e,...t}){const n=e||document;Oc.has(n)||Oc.set(n,{});const r=Oc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(rD,{root:e,...t})),r[o]}function iD(e,t,n){const r=oD(t);return yf.set(e,n),r.observe(e),()=>{yf.delete(e),r.unobserve(e)}}const sD={some:0,all:1};class aD 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:sD[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 iD(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(lD(t,n))&&this.startObserver()}unmount(){}}function lD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const uD={inView:{Feature:aD},tap:{Feature:tD},focus:{Feature:eD},hover:{Feature:J4}},cD={layout:{ProjectionNode:Kb,MeasureLayout:Fb}},ap=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xu=C.createContext({}),lp=typeof window<"u",Gb=lp?C.useLayoutEffect:C.useEffect,Xb=C.createContext({strict:!1});function dD(e,t,n,r,o){var i,s;const{visualElement:a}=C.useContext(xu),l=C.useContext(Xb),u=C.useContext(Is),c=C.useContext(ap).reducedMotion,d=C.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=C.useContext(jb);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&fD(d.current,n,o,y);const v=C.useRef(!1);C.useInsertionEffect(()=>{f&&v.current&&f.update(n,u)});const S=n[xb],_=C.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 Gb(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),sp.render(f.render),_.current&&f.animationState&&f.animationState.animateChanges())}),C.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 fD(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:Yb(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 Yb(e){if(e)return e.options.allowProjection!==!1?e.projection:Yb(e.parent)}function hD(e,t,n){return C.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 wu(e){return vu(e.animate)||Fh.some(t=>vs(e[t]))}function qb(e){return!!(wu(e)||e.variants)}function pD(e,t){if(wu(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 mD(e){const{initial:t,animate:n}=pD(e,C.useContext(xu));return C.useMemo(()=>({initial:t,animate:n}),[Q0(t),Q0(n)])}function Q0(e){return Array.isArray(e)?e.join(" "):e}const Z0={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"]},No={};for(const e in Z0)No[e]={isEnabled:t=>Z0[e].some(n=>!!t[n])};function gD(e){for(const t in e)No[t]={...No[t],...e[t]}}const yD=Symbol.for("motionComponentSymbol");function vD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&gD(e);function i(a,l){let u;const c={...C.useContext(ap),...a,layoutId:SD(a)},{isStatic:d}=c,f=mD(a),y=r(a,d);if(!d&&lp){bD();const v=xD(c);u=v.MeasureLayout,f.visualElement=dD(o,y,c,t,v.ProjectionNode)}return P.jsxs(xu.Provider,{value:f,children:[u&&f.visualElement?P.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,hD(y,f.visualElement,l),y,d,f.visualElement)]})}const s=C.forwardRef(i);return s[yD]=o,s}function SD({layoutId:e}){const t=C.useContext(ip).id;return t&&e!==void 0?t+"-"+e:e}function bD(e,t){C.useContext(Xb).strict}function xD(e){const{drag:t,layout:n}=No;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 wD=["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 up(e){return typeof e!="string"||e.includes("-")?!1:!!(wD.indexOf(e)>-1||/[A-Z]/u.test(e))}function Qb(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 Zb=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 Jb(e,t,n,r){Qb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Zb.has(o)?o:rp(o),t.attrs[o])}function ex(e,{layout:t,layoutId:n}){return Vr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function cp(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ke(o[s])||t.style&&Ke(t.style[s])||ex(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 tx(e,t,n){const r=cp(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 dp(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}function kD({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:CD(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const nx=e=>(t,n)=>{const r=C.useContext(xu),o=C.useContext(Is),i=()=>kD(e,t,r,o);return n?i():dp(i)};function CD(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=wu(e),u=qb(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"&&!vu(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y({style:{},transform:{},transformOrigin:{},vars:{}}),rx=()=>({...fp(),attrs:{}}),ox=(e,t)=>t&&typeof e=="number"?t.transform(e):e,TD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_D=As.length;function PD(e,t,n){let r="",o=!0;for(let i=0;i<_D;i++){const s=As[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=ox(a,Kh[s]);if(!l){o=!1;const c=TD[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function hp(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Vr.has(l)){s=!0;continue}else if(qS(l)){o[l]=u;continue}else{const c=ox(u,Kh[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=PD(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}function J0(e,t,n){return typeof e=="string"?e:B.transform(t+n*e)}function ED(e,t,n){const r=J0(t,e.x,e.width),o=J0(n,e.y,e.height);return`${r} ${o}`}const $D={offset:"stroke-dashoffset",array:"stroke-dasharray"},AD={offset:"strokeDashoffset",array:"strokeDasharray"};function RD(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?$D:AD;e[i.offset]=B.transform(-r);const s=B.transform(t),a=B.transform(n);e[i.array]=`${s} ${a}`}function pp(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(hp(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:y,dimensions:v}=e;f.transform&&(v&&(y.transform=f.transform),delete f.transform),v&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=ED(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&RD(f,s,a,l,!1)}const mp=e=>typeof e=="string"&&e.toLowerCase()==="svg",MD={useVisualState:nx({scrapeMotionValuesFromProps:tx,createRenderState:rx,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(()=>{pp(n,r,mp(t.tagName),e.transformTemplate),Jb(t,n)})}})},zD={useVisualState:nx({scrapeMotionValuesFromProps:cp,createRenderState:fp})};function ix(e,t,n){for(const r in t)!Ke(t[r])&&!ex(r,n)&&(e[r]=t[r])}function DD({transformTemplate:e},t){return C.useMemo(()=>{const n=fp();return hp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ID(e,t){const n=e.style||{},r={};return ix(r,n,e),Object.assign(r,DD(e,t)),r}function LD(e,t){const n={},r=ID(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 jD=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")||jD.has(e)}let sx=e=>!Dl(e);function FD(e){e&&(sx=t=>t.startsWith("on")?!Dl(t):e(t))}try{FD(require("@emotion/is-prop-valid").default)}catch{}function BD(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(sx(o)||n===!0&&Dl(o)||!t&&!Dl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function VD(e,t,n,r){const o=C.useMemo(()=>{const i=rx();return pp(i,t,mp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ix(i,e.style,e),o.style={...i,...o.style}}return o}function OD(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(up(n)?VD:LD)(r,i,s,n),u=BD(r,typeof n=="string",e),c=n!==C.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=C.useMemo(()=>Ke(d)?d.get():d,[d]);return C.createElement(n,{...c,children:f})}}function ND(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...up(r)?MD:zD,preloadedFeatures:e,useRender:OD(o),createVisualElement:t,Component:r};return vD(s)}}const vf={current:null},ax={current:!1};function WD(){if(ax.current=!0,!!lp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vf.current=e.matches;e.addListener(t),t()}else vf.current=!1}function UD(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 ey=new WeakMap,HD=[...JS,Ue,ir],KD=e=>HD.find(ZS(e)),ty=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class GD{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=Wh,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)),ax.current||WD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ey.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 No){const n=No[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"&&(XS(o)||GS(o))?o=parseFloat(o):!KD(o)&&ir.test(n)&&(o=ab(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=Lh(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 np),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class lx extends GD{constructor(){super(...arguments),this.KeyframeResolver=lb}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 XD(e){return window.getComputedStyle(e)}class YD extends lx{constructor(){super(...arguments),this.type="html",this.renderInstance=Qb}readValueFromInstance(t,n){if(Vr.has(n)){const r=Gh(n);return r&&r.default||0}else{const r=XD(t),o=(qS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ib(t,n)}build(t,n,r){hp(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return cp(t,n,r)}}class qD extends lx{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=Gh(n);return r&&r.default||0}return n=Zb.has(n)?n:rp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return tx(t,n,r)}build(t,n,r){pp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Jb(t,n,r,o)}mount(t){this.isSVGTag=mp(t.tagName),super.mount(t)}}const QD=(e,t)=>up(e)?new qD(t):new YD(t,{allowProjection:e!==C.Fragment}),ZD=ND({...M3,...uD,...Z4,...cD},QD),ux=AM(ZD);class JD extends C.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 eI({children:e,isPresent:t}){const n=C.useId(),r=C.useRef(null),o=C.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=C.useContext(ap);return C.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(JD,{isPresent:t,childRef:r,sizeRef:o,children:C.cloneElement(e,{ref:r})})}const tI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=dp(nI),l=C.useId(),u=C.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),c=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 C.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),C.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=P.jsx(eI,{isPresent:n,children:e})),P.jsx(Is.Provider,{value:c,children:e})};function nI(){return new Map}const wa=e=>e.key||"";function ny(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const rI=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=C.useMemo(()=>ny(e),[e]),l=a.map(wa),u=C.useRef(!0),c=C.useRef(a),d=dp(()=>new Map),[f,y]=C.useState(a),[v,S]=C.useState(a);Gb(()=>{u.current=!1,c.current=a;for(let h=0;h{const m=wa(h),b=a===v||l.includes(m),T=()=>{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(tI,{isPresent:b,initial:!u.current||r?void 0:!1,custom:b?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:b?void 0:T,children:h},m)})})},oI=(e,t)=>e.find(n=>n.id===t);function ry(e,t){const n=cx(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function cx(e,t){for(const[n,r]of Object.entries(e))if(oI(r,t))return n}function iI(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 sI(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 aI=/^((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|fetchpriority|fetchPriority|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)-.*))$/,lI=bS(function(e){return aI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uI=!1,cI=lI,dI=function(t){return t!=="theme"},oy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?cI:dI},iy=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},fI=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Mh(n,r,o),$S(function(){return zh(n,r,o)}),null},hI=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=iy(t,n,r),l=a||oy(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{var f=c[0];d.push(f[0]);for(var y=c.length,v=1;vt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=H2(s,RT),l=$t(e,t),u=R2({},o,l,vh(a),i),c=J1(u)(t.theme);return r?[c,r]:c};function Nc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=yI);const o=SI({baseStyle:n}),i=vI(e,r)(o);return C.forwardRef(function(l,u){const{children:c,...d}=l,{colorMode:f,forced:y}=yu(),v=y?f:void 0;return C.createElement(i,{ref:u,"data-theme":v,...d},c)})}function bI(){const e=new Map;return new Proxy(Nc,{apply(t,n,r){return Nc(...r)},get(t,n){return e.has(n)||e.set(n,Nc(n)),e.get(n)}})}const ue=bI(),xI={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]}}},dx=C.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=xI,toastSpacing:c="0.5rem"}=e,[d,f]=C.useState(a),y=f4();pg(()=>{y||r==null||r()},[y]),pg(()=>{f(a)},[a]);const v=()=>f(null),S=()=>f(a),_=()=>{y&&o()};C.useEffect(()=>{y&&i&&o()},[y,i,o]),q2(_,d);const p=C.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=C.useMemo(()=>iI(s),[s]);return P.jsx(ux.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:_})})})});dx.displayName="ToastComponent";function Ie(e){return C.forwardRef(e)}var wI=typeof Element<"u",kI=typeof Map=="function",CI=typeof Set=="function",TI=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(kI&&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(CI&&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(TI&&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(wI&&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 _I=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 PI=xf(_I);function EI(){const e=C.useContext(Bo);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function fx(){const e=yu(),t=EI();return{...e,theme:t}}function hx(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=fx(),s=e?G1(o,`components.${e}`):void 0,a=n||s,l=rn({theme:o,colorMode:i},(a==null?void 0:a.defaultProps)??{},vh(X1(r,["children"])),(c,d)=>c?void 0:d),u=C.useRef({});if(a){const d=OT(a)(l);PI(u.current,d)||(u.current=d)}return u.current}function Or(e,t={}){return hx(e,t)}function gp(e,t={}){return hx(e,t)}const sy={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=Xe("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??sy.viewBox;if(n&&typeof n!="string")return P.jsx(ue.svg,{as:n,...y,...u});const S=s??sy.path;return P.jsx(ue.svg,{verticalAlign:"middle",viewBox:v,...y,...u,children:S})});Yo.displayName="Icon";function $I(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 AI(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 ay(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 RI=gM({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),yp=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=Xe("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${RI} ${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})})});yp.displayName="Spinner";const[MI,vp]=zn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[zI,Sp]=zn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),px={info:{icon:AI,colorScheme:"blue"},warning:{icon:ay,colorScheme:"orange"},success:{icon:$I,colorScheme:"green"},error:{icon:ay,colorScheme:"red"},loading:{icon:yp,colorScheme:"blue"}};function DI(e){return px[e].colorScheme}function II(e){return px[e].icon}const mx=Ie(function(t,n){const{status:r="info",addRole:o=!0,...i}=Dn(t),s=t.colorScheme??DI(r),a=gp("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return P.jsx(MI,{value:{status:r},children:P.jsx(zI,{value:a,children:P.jsx(ue.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:Xe("chakra-alert",t.className),__css:l})})})});mx.displayName="Alert";function gx(e){const{status:t}=vp(),n=II(t),r=Sp(),o=t==="loading"?r.spinner:r.icon;return P.jsx(ue.span,{display:"inherit","data-status":t,...e,className:Xe("chakra-alert__icon",e.className),__css:o,children:e.children||P.jsx(n,{h:"100%",w:"100%"})})}gx.displayName="AlertIcon";const yx=Ie(function(t,n){const r=Sp(),{status:o}=vp();return P.jsx(ue.div,{ref:n,"data-status":o,...t,className:Xe("chakra-alert__title",t.className),__css:r.title})});yx.displayName="AlertTitle";const vx=Ie(function(t,n){const{status:r}=vp(),o=Sp(),i={display:"inline",...o.description};return P.jsx(ue.div,{ref:n,"data-status":r,...t,className:Xe("chakra-alert__desc",t.className),__css:i})});vx.displayName="AlertDescription";function LI(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 Sx=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(LI,{width:"1em",height:"1em"})})});Sx.displayName="CloseButton";const jI=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(mx,{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(gx,{children:u}),P.jsxs(ue.div,{flex:"1",maxWidth:"100%",children:[o&&P.jsx(yx,{id:c==null?void 0:c.title,children:o}),a&&P.jsx(vx,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&P.jsx(Sx,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function bx(e={}){const{render:t,toastComponent:n=jI}=e;return o=>typeof t=="function"?t({...o,...e}):P.jsx(n,{...o,...e})}const FI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},nn=BI(FI);function BI(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=VI(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}=ry(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:bx(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=cx(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!ry(nn.getState(),o).position}}let ly=0;function VI(e,t={}){ly+=1;const n=t.id??ly,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[xx,OI]=zn({strict:!1,name:"PortalContext"}),bp="chakra-portal",NI=".chakra-portal",WI=e=>P.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),UI=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=C.useState(null),i=C.useRef(null),[,s]=C.useState({});C.useEffect(()=>s({}),[]);const a=OI(),l=EM();Od(()=>{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=bp,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(WI,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?gh.createPortal(P.jsx(xx,{value:i.current,children:u}),i.current):P.jsx("span",{ref:c=>{c&&o(c)}})},HI=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=C.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=bp),l},[o]),[,a]=C.useState({});return Od(()=>a({}),[]),Od(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?gh.createPortal(P.jsx(xx,{value:r?s:null,children:t}),s):null};function ku(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?P.jsx(HI,{containerRef:n,...r}):P.jsx(UI,{...r})}ku.className=bp;ku.selector=NI;ku.displayName="Portal";const[KI,GI]=zn({name:"ToastOptionsContext",strict:!1}),XI=e=>{const t=C.useSyncExternalStore(nn.subscribe,nn.getState,nn.getState),{motionVariants:n,component:r=dx,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:sI(l),children:P.jsx(rI,{...i,initial:!1,children:u.map(c=>P.jsx(r,{motionVariants:n,...c},c.id))})},l)});return P.jsx(ku,{...o,children:a})},YI=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return P.jsxs($M,{theme:r,...i,children:[P.jsx(KI,{value:o==null?void 0:o.defaultOptions,children:n}),P.jsx(XI,{...o})]})},qI=YI(hR),wx=Ie(function(t,n){const r=Or("Badge",t),{className:o,...i}=Dn(t);return P.jsx(ue.span,{ref:n,className:Xe("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});wx.displayName="Badge";const[$L,QI]=zn({strict:!1,name:"ButtonGroupContext"});function Ei(e){const{children:t,className:n,...r}=e,o=C.isValidElement(t)?C.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Xe("chakra-button__icon",n);return P.jsx(ue.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Ei.displayName="ButtonIcon";function bf(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=P.jsx(yp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Xe("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=C.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})}bf.displayName="ButtonSpinner";function ZI(e){const[t,n]=C.useState(!e);return{ref:C.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const xp=Ie((e,t)=>{const n=QI(),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=C.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:T}=ZI(_),E={rightIcon:u,leftIcon:l,iconSpacing:d,children:a,shouldWrapChildren:p};return P.jsxs(ue.button,{disabled:o||i,ref:Y2(t,b),as:_,type:f??T,"data-active":Qt(s),"data-loading":Qt(i),__css:m,className:Xe("chakra-button",S),...h,children:[i&&v==="start"&&P.jsx(bf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:y}),i?c||P.jsx(ue.span,{opacity:0,children:P.jsx(uy,{...E})}):P.jsx(uy,{...E}),i&&v==="end"&&P.jsx(bf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:y})]})});xp.displayName="Button";function uy(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(Ei,{marginEnd:o,children:t}),r,n&&P.jsx(Ei,{marginStart:o,children:n})]}):P.jsxs(P.Fragment,{children:[t&&P.jsx(Ei,{marginEnd:o,children:t}),r,n&&P.jsx(Ei,{marginStart:o,children:n})]})}const wp=Ie((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=C.isValidElement(a)?C.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return P.jsx(xp,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});wp.displayName="IconButton";const[JI,eL]=zn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[tL,kx]=zn({strict:!1,name:"FormControlContext"});function nL(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=C.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,y]=C.useState(!1),[v,S]=C.useState(!1),[_,p]=C.useState(!1),h=C.useCallback((k={},A=null)=>({id:d,...k,ref:Nd(A,D=>{D&&S(!0)})}),[d]),m=C.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=C.useCallback((k={},A=null)=>({id:c,...k,ref:Nd(A,D=>{D&&y(!0)}),"aria-live":"polite"}),[c]),T=C.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=C.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:T,getLabelProps:m,getRequiredIndicatorProps:E}}const rL=Ie(function(t,n){const r=gp("Form",t),o=Dn(t),{getRootProps:i,htmlProps:s,...a}=nL(o),l=Xe("chakra-form-control",t.className);return P.jsx(tL,{value:a,children:P.jsx(JI,{value:r,children:P.jsx(ue.div,{...i({},n),className:l,__css:r.container})})})});rL.displayName="FormControl";const oL=Ie(function(t,n){const r=kx(),o=eL(),i=Xe("chakra-form__helper-text",t.className);return P.jsx(ue.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});oL.displayName="FormHelperText";function iL(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=sL(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":cc(n),"aria-required":cc(o),"aria-readonly":cc(r)}}function sL(e){const t=kx(),{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:fg(t==null?void 0:t.onFocus,c),onBlur:fg(t==null?void 0:t.onBlur,d)}}const aL=new Set(["dark","light","system"]);function lL(e){let t=e;return aL.has(t)||(t="light"),t}function uL(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=lL(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 cL(e={}){const{nonce:t}=e;return P.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:uL(e)}})}function kp(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=C.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 Cp=Ie(function(t,n){const{htmlSize:r,...o}=t,i=gp("Input",o),s=Dn(o),a=iL(s),l=Xe("chakra-input",t.className);return P.jsx(ue.input,{size:r,...a,__css:i.field,ref:n,className:l})});Cp.displayName="Input";Cp.id="Input";const Cx=ue("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Cx.displayName="Spacer";const Tx=e=>P.jsx(ue.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Tx.displayName="StackItem";function dL(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{"&":W2(n,o=>r[o])}}const Tp=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=C.useMemo(()=>dL({spacing:s,direction:y}),[s,y]),S=!!u,_=!d&&!S,p=C.useMemo(()=>{const m=j2(l);return _?m:m.map((b,T)=>{const E=typeof b.key<"u"?b.key:T,k=T+1===m.length,D=d?P.jsx(Tx,{children:b},E):b;if(!S)return D;const M=C.cloneElement(u,{__css:v}),O=k?null:M;return P.jsxs(C.Fragment,{children:[D,O]},E)})},[u,v,S,_,d,l]),h=Xe("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})});Tp.displayName="Stack";const _p=Ie((e,t)=>P.jsx(Tp,{align:"center",...e,direction:"row",ref:t}));_p.displayName="HStack";const _x=e=>P.jsx(ue.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});_x.displayName="StackDivider";const Pp=Ie((e,t)=>P.jsx(Tp,{align:"center",...e,direction:"column",ref:t}));Pp.displayName="VStack";function fL(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 hL(e,t){const n=o=>({...t,...o,position:fL((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),s=bx(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 pL(e){const{theme:t}=fx(),n=GI();return C.useMemo(()=>hL(t.direction,{...n,...e}),[e,t.direction,n])}const Px=Ie(function(t,n){const r=Or("Heading",t),{className:o,...i}=Dn(t);return P.jsx(ue.h2,{ref:n,className:Xe("chakra-heading",t.className),...i,__css:r})});Px.displayName="Heading";const Ex=Ie(function(t,n){const r=Or("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Dn(t),u=vh({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return P.jsx(ue.p,{ref:n,className:Xe("chakra-text",t.className),...u,...l,__css:r})});Ex.displayName="Text";const mL=({addTodo:e})=>{const t=C.useRef(null),n=pL(),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(_p,{m:"8",children:[P.jsx(Cp,{variant:"filled",placeholder:"Add new todo",ref:t}),P.jsx(xp,{type:"submit",colorScheme:"green",px:"8",children:"Add"})]})})},gL=kp({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"}),yL=kp({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"})]})}),vL=kp({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"})})}),SL=({todos:e,deleteTodo:t})=>{if(e.length===0)return P.jsx(wx,{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(_x,{})};return P.jsx(Pp,{...n,children:e.map(r=>P.jsxs(_p,{children:[P.jsx(Ex,{children:r.body}),P.jsx(Cx,{}),P.jsx(wp,{"aria-label":"Delete todo",icon:P.jsx(vL,{}),onClick:()=>t(r.id)})]},r.id))})},bL=({toggleTheme:e,theme:t})=>{const n={size:"lg",isRound:!0,variant:"ghost",icon:t==="light"?P.jsx(gL,{}):P.jsx(yL,{}),"aria-label":"Switch DarkMode"};return P.jsx(ux.div,{whileTap:{rotate:180},style:{display:"flex",alignSelf:"flex-end"},children:P.jsx(wp,{onClick:e,...n})})},Ep=Ql("light");Ep.debugLabel="themeAtom";const xL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let wL=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=xL[n[e]&63];return t};const Wo=Ql([]);Wo.debugLabel="todosAtom";const kL=Ql(null,(e,t,n)=>{const r={id:wL(),body:n};t(Wo,[...e(Wo),r])}),CL=Ql(null,(e,t,n)=>{const o=e(Wo).filter(i=>i.id!==n);t(Wo,o)});function TL(){const{colorMode:e,toggleColorMode:t}=yu(),[n,r]=Bd(Ep),[o]=Bd(Wo),i=Fd(kL),s=Fd(CL);C.useEffect(()=>{r(e)},[e,r]);const a=()=>{r(l=>l==="light"?"dark":"light"),t()};return P.jsxs(Pp,{p:4,children:[P.jsx(bL,{toggleTheme:a,theme:n}),P.jsx(Px,{size:"2xl",children:"Jotai-Todos App"}),P.jsx(mL,{addTodo:i}),P.jsx(SL,{todos:o,deleteTodo:s})]})}const _L=()=>{const[e]=Bd(Ep);return P.jsxs(qI,{children:[P.jsx(cL,{initialColorMode:e}),P.jsx(TL,{})]})};V1(document.getElementById("root")).render(P.jsxs(C.StrictMode,{children:[P.jsx($2,{}),P.jsx(_L,{})]})); diff --git a/assets/index-cFjgi2un.js b/assets/index-cFjgi2un.js new file mode 100644 index 0000000..c329169 --- /dev/null +++ b/assets/index-cFjgi2un.js @@ -0,0 +1,350 @@ +function zx(e,n){for(var o=0;os[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function o(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=o(a);fetch(a.href,u)}})();var ql=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nd={exports:{}},Bs={},Od={exports:{}},be={};/** + * @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 Lg;function Mx(){if(Lg)return be;Lg=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function S(M){return M===null||typeof M!="object"?null:(M=v&&M[v]||M["@@iterator"],typeof M=="function"?M:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,P={};function D(M,U,ne){this.props=M,this.context=U,this.refs=P,this.updater=ne||C}D.prototype.isReactComponent={},D.prototype.setState=function(M,U){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,U,"setState")},D.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function k(){}k.prototype=D.prototype;function R(M,U,ne){this.props=M,this.context=U,this.refs=P,this.updater=ne||C}var $=R.prototype=new k;$.constructor=R,A($,D.prototype),$.isPureReactComponent=!0;var N=Array.isArray,z=Object.prototype.hasOwnProperty,W={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function q(M,U,ne){var ge,ke={},Se=null,De=null;if(U!=null)for(ge in U.ref!==void 0&&(De=U.ref),U.key!==void 0&&(Se=""+U.key),U)z.call(U,ge)&&!O.hasOwnProperty(ge)&&(ke[ge]=U[ge]);var xe=arguments.length-2;if(xe===1)ke.children=ne;else if(1>>1,U=Y[M];if(0>>1;Ma(ke,Q))Sea(De,ke)?(Y[M]=De,Y[Se]=Q,M=Se):(Y[M]=ke,Y[ge]=Q,M=ge);else if(Sea(De,Q))Y[M]=De,Y[Se]=Q,M=Se;else break e}}return ae}function a(Y,ae){var Q=Y.sortIndex-ae.sortIndex;return Q!==0?Q:Y.id-ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var p=[],m=[],g=1,v=null,S=3,C=!1,A=!1,P=!1,D=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(Y){for(var ae=o(m);ae!==null;){if(ae.callback===null)s(m);else if(ae.startTime<=Y)s(m),ae.sortIndex=ae.expirationTime,n(p,ae);else break;ae=o(m)}}function N(Y){if(P=!1,$(Y),!A)if(o(p)!==null)A=!0,pt(z);else{var ae=o(m);ae!==null&&me(N,ae.startTime-Y)}}function z(Y,ae){A=!1,P&&(P=!1,k(q),q=-1),C=!0;var Q=S;try{for($(ae),v=o(p);v!==null&&(!(v.expirationTime>ae)||Y&&!pe());){var M=v.callback;if(typeof M=="function"){v.callback=null,S=v.priorityLevel;var U=M(v.expirationTime<=ae);ae=e.unstable_now(),typeof U=="function"?v.callback=U:v===o(p)&&s(p),$(ae)}else s(p);v=o(p)}if(v!==null)var ne=!0;else{var ge=o(m);ge!==null&&me(N,ge.startTime-ae),ne=!1}return ne}finally{v=null,S=Q,C=!1}}var W=!1,O=null,q=-1,se=5,J=-1;function pe(){return!(e.unstable_now()-JY||125M?(Y.sortIndex=Q,n(m,Y),o(p)===null&&Y===o(m)&&(P?(k(q),q=-1):P=!0,me(N,Q-M))):(Y.sortIndex=U,n(p,Y),A||C||(A=!0,pt(z))),Y},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(Y){var ae=S;return function(){var Q=S;S=ae;try{return Y.apply(this,arguments)}finally{S=Q}}}}(Hd)),Hd}var Wg;function Lx(){return Wg||(Wg=1,Ud.exports=jx()),Ud.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 Ug;function Fx(){if(Ug)return Nt;Ug=1;var e=gh(),n=Lx();function o(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=1;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,g={},v={};function S(t){return p.call(v,t)?!0:p.call(g,t)?!1:m.test(t)?v[t]=!0:(g[t]=!0,!1)}function C(t,r,i,l){if(i!==null&&i.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:i!==null?!i.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function A(t,r,i,l){if(r===null||typeof r>"u"||C(t,r,i,l))return!0;if(l)return!1;if(i!==null)switch(i.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function P(t,r,i,l,d,h,y){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=d,this.mustUseProperty=i,this.propertyName=t,this.type=r,this.sanitizeURL=h,this.removeEmptyString=y}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){D[t]=new P(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];D[r]=new P(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){D[t]=new P(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){D[t]=new P(t,2,!1,t,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(t){D[t]=new P(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){D[t]=new P(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){D[t]=new P(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){D[t]=new P(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){D[t]=new P(t,5,!1,t.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function R(t){return t[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(t){var r=t.replace(k,R);D[r]=new P(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(k,R);D[r]=new P(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(k,R);D[r]=new P(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){D[t]=new P(t,1,!1,t.toLowerCase(),null,!1,!1)}),D.xlinkHref=new P("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){D[t]=new P(t,1,!1,t.toLowerCase(),null,!0,!0)});function $(t,r,i,l){var d=D.hasOwnProperty(r)?D[r]:null;(d!==null?d.type!==0:l||!(2x||d[y]!==h[x]){var w=` +`+d[y].replace(" at new "," at ");return t.displayName&&w.includes("")&&(w=w.replace("",t.displayName)),w}while(1<=y&&0<=x);break}}}finally{ne=!1,Error.prepareStackTrace=i}return(t=t?t.displayName||t.name:"")?U(t):""}function ke(t){switch(t.tag){case 5:return U(t.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return t=ge(t.type,!1),t;case 11:return t=ge(t.type.render,!1),t;case 1:return t=ge(t.type,!0),t;default:return""}}function Se(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case W:return"Portal";case se:return"Profiler";case q:return"StrictMode";case nt:return"Suspense";case it:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case pe:return(t.displayName||"Context")+".Consumer";case J:return(t._context.displayName||"Context")+".Provider";case Ie:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ut:return r=t.displayName||null,r!==null?r:Se(t.type)||"Memo";case pt:r=t._payload,t=t._init;try{return Se(t(r))}catch{}}return null}function De(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Se(r);case 8:return r===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function xe(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Le(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function mt(t){var r=Le(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var d=i.get,h=i.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return d.call(this)},set:function(y){l=""+y,h.call(this,y)}}),Object.defineProperty(t,r,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Jr(t){t._valueTracker||(t._valueTracker=mt(t))}function Ki(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),l="";return t&&(l=Le(t)?t.checked?"true":"false":t.value),t=l,t!==i?(r.setValue(t),!0):!1}function Io(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Gi(t,r){var i=r.checked;return Q({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??t._wrapperState.initialChecked})}function za(t,r){var i=r.defaultValue==null?"":r.defaultValue,l=r.checked!=null?r.checked:r.defaultChecked;i=xe(r.value!=null?r.value:i),t._wrapperState={initialChecked:l,initialValue:i,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Ma(t,r){r=r.checked,r!=null&&$(t,"checked",r,!1)}function qi(t,r){Ma(t,r);var i=xe(r.value),l=r.type;if(i!=null)l==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+i):t.value!==""+i&&(t.value=""+i);else if(l==="submit"||l==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?Xi(t,r.type,i):r.hasOwnProperty("defaultValue")&&Xi(t,r.type,xe(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Da(t,r,i){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var l=r.type;if(!(l!=="submit"&&l!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,i||r===t.value||(t.value=r),t.defaultValue=r}i=t.name,i!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,i!==""&&(t.name=i)}function Xi(t,r,i){(r!=="number"||Io(t.ownerDocument)!==t)&&(i==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+i&&(t.defaultValue=""+i))}var $n=Array.isArray;function zn(t,r,i,l){if(t=t.options,r){r={};for(var d=0;d"+r.valueOf().toString()+"",r=Zn.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function wr(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var kr={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},ja=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(t){ja.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),kr[r]=kr[t]})});function La(t,r,i){return r==null||typeof r=="boolean"||r===""?"":i||typeof r!="number"||r===0||kr.hasOwnProperty(t)&&kr[t]?(""+r).trim():r+"px"}function Fa(t,r){t=t.style;for(var i in r)if(r.hasOwnProperty(i)){var l=i.indexOf("--")===0,d=La(i,r[i],l);i==="float"&&(i="cssFloat"),l?t.setProperty(i,d):t[i]=d}}var Jn=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Cr(t,r){if(r){if(Jn[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(o(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(o(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(o(61))}if(r.style!=null&&typeof r.style!="object")throw Error(o(62))}}function es(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){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 jo=null;function ts(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Lo=null,Jt=null,Tr=null;function Mn(t){if(t=Cs(t)){if(typeof Lo!="function")throw Error(o(280));var r=t.stateNode;r&&(r=ul(r),Lo(t.stateNode,t.type,r))}}function Ba(t){Jt?Tr?Tr.push(t):Tr=[t]:Jt=t}function Va(){if(Jt){var t=Jt,r=Tr;if(Tr=Jt=null,Mn(t),r)for(t=0;t>>=0,t===0?32:31-(cc(t)/dc|0)|0}var Oo=64,Wo=4194304;function oo(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Uo(t,r){var i=t.pendingLanes;if(i===0)return 0;var l=0,d=t.suspendedLanes,h=t.pingedLanes,y=i&268435455;if(y!==0){var x=y&~d;x!==0?l=oo(x):(h&=y,h!==0&&(l=oo(h)))}else y=i&~d,y!==0?l=oo(y):h!==0&&(l=oo(h));if(l===0)return 0;if(r!==0&&r!==l&&!(r&d)&&(d=l&-l,h=r&-r,d>=h||d===16&&(h&4194240)!==0))return r;if(l&4&&(l|=i&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=l;0i;i++)r.push(t);return r}function io(t,r,i){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Ht(r),t[r]=i}function hc(t,r){var i=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var l=t.eventTimes;for(t=t.expirationTimes;0=ms),Rp=" ",$p=!1;function zp(t,r){switch(t){case"keyup":return Eb.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Qo=!1;function Rb(t,r){switch(t){case"compositionend":return Mp(r);case"keypress":return r.which!==32?null:($p=!0,Rp);case"textInput":return t=r.data,t===Rp&&$p?null:t;default:return null}}function $b(t,r){if(Qo)return t==="compositionend"||!xc&&zp(t,r)?(t=xt(),bt=je=ye=null,Qo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:i,offset:r-t};t=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Vp(i)}}function Op(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Op(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Wp(){for(var t=window,r=Io();r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=Io(t.document)}return r}function Cc(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function Vb(t){var r=Wp(),i=t.focusedElem,l=t.selectionRange;if(r!==i&&i&&i.ownerDocument&&Op(i.ownerDocument.documentElement,i)){if(l!==null&&Cc(i)){if(r=l.start,t=l.end,t===void 0&&(t=r),"selectionStart"in i)i.selectionStart=r,i.selectionEnd=Math.min(t,i.value.length);else if(t=(r=i.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var d=i.textContent.length,h=Math.min(l.start,d);l=l.end===void 0?h:Math.min(l.end,d),!t.extend&&h>l&&(d=l,l=h,h=d),d=Np(i,h);var y=Np(i,l);d&&y&&(t.rangeCount!==1||t.anchorNode!==d.node||t.anchorOffset!==d.offset||t.focusNode!==y.node||t.focusOffset!==y.offset)&&(r=r.createRange(),r.setStart(d.node,d.offset),t.removeAllRanges(),h>l?(t.addRange(r),t.extend(y.node,y.offset)):(r.setEnd(y.node,y.offset),t.addRange(r)))}}for(r=[],t=i;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,Zo=null,Tc=null,Ss=null,_c=!1;function Up(t,r,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;_c||Zo==null||Zo!==Io(l)||(l=Zo,"selectionStart"in l&&Cc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ss&&vs(Ss,l)||(Ss=l,l=sl(Tc,"onSelect"),0ri||(t.current=Fc[ri],Fc[ri]=null,ri--)}function Be(t,r){ri++,Fc[ri]=t.current,t.current=r}var Dr={},kt=Mr(Dr),jt=Mr(!1),uo=Dr;function oi(t,r){var i=t.type.contextTypes;if(!i)return Dr;var l=t.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===r)return l.__reactInternalMemoizedMaskedChildContext;var d={},h;for(h in i)d[h]=r[h];return l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=d),d}function Lt(t){return t=t.childContextTypes,t!=null}function cl(){We(jt),We(kt)}function im(t,r,i){if(kt.current!==Dr)throw Error(o(168));Be(kt,r),Be(jt,i)}function sm(t,r,i){var l=t.stateNode;if(r=r.childContextTypes,typeof l.getChildContext!="function")return i;l=l.getChildContext();for(var d in l)if(!(d in r))throw Error(o(108,De(t)||"Unknown",d));return Q({},i,l)}function dl(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Dr,uo=kt.current,Be(kt,t),Be(jt,jt.current),!0}function am(t,r,i){var l=t.stateNode;if(!l)throw Error(o(169));i?(t=sm(t,r,uo),l.__reactInternalMemoizedMergedChildContext=t,We(jt),We(kt),Be(kt,t)):We(jt),Be(jt,i)}var nr=null,fl=!1,Bc=!1;function lm(t){nr===null?nr=[t]:nr.push(t)}function Zb(t){fl=!0,lm(t)}function Ir(){if(!Bc&&nr!==null){Bc=!0;var t=0,r=Te;try{var i=nr;for(Te=1;t>=y,d-=y,rr=1<<32-Ht(r)+d|i<he?(ft=ue,ue=null):ft=ue.sibling;var _e=H(j,ue,L[he],X);if(_e===null){ue===null&&(ue=ft);break}t&&ue&&_e.alternate===null&&r(j,ue),T=h(_e,T,he),le===null?ie=_e:le.sibling=_e,le=_e,ue=ft}if(he===L.length)return i(j,ue),Ge&&fo(j,he),ie;if(ue===null){for(;hehe?(ft=ue,ue=null):ft=ue.sibling;var Ur=H(j,ue,_e.value,X);if(Ur===null){ue===null&&(ue=ft);break}t&&ue&&Ur.alternate===null&&r(j,ue),T=h(Ur,T,he),le===null?ie=Ur:le.sibling=Ur,le=Ur,ue=ft}if(_e.done)return i(j,ue),Ge&&fo(j,he),ie;if(ue===null){for(;!_e.done;he++,_e=L.next())_e=G(j,_e.value,X),_e!==null&&(T=h(_e,T,he),le===null?ie=_e:le.sibling=_e,le=_e);return Ge&&fo(j,he),ie}for(ue=l(j,ue);!_e.done;he++,_e=L.next())_e=Z(ue,j,he,_e.value,X),_e!==null&&(t&&_e.alternate!==null&&ue.delete(_e.key===null?he:_e.key),T=h(_e,T,he),le===null?ie=_e:le.sibling=_e,le=_e);return t&&ue.forEach(function($x){return r(j,$x)}),Ge&&fo(j,he),ie}function Je(j,T,L,X){if(typeof L=="object"&&L!==null&&L.type===O&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case z:e:{for(var ie=L.key,le=T;le!==null;){if(le.key===ie){if(ie=L.type,ie===O){if(le.tag===7){i(j,le.sibling),T=d(le,L.props.children),T.return=j,j=T;break e}}else if(le.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===pt&&pm(ie)===le.type){i(j,le.sibling),T=d(le,L.props),T.ref=Ts(j,le,L),T.return=j,j=T;break e}i(j,le);break}else r(j,le);le=le.sibling}L.type===O?(T=bo(L.props.children,j.mode,X,L.key),T.return=j,j=T):(X=Vl(L.type,L.key,L.props,null,j.mode,X),X.ref=Ts(j,T,L),X.return=j,j=X)}return y(j);case W:e:{for(le=L.key;T!==null;){if(T.key===le)if(T.tag===4&&T.stateNode.containerInfo===L.containerInfo&&T.stateNode.implementation===L.implementation){i(j,T.sibling),T=d(T,L.children||[]),T.return=j,j=T;break e}else{i(j,T);break}else r(j,T);T=T.sibling}T=jd(L,j.mode,X),T.return=j,j=T}return y(j);case pt:return le=L._init,Je(j,T,le(L._payload),X)}if($n(L))return re(j,T,L,X);if(ae(L))return oe(j,T,L,X);gl(j,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,T!==null&&T.tag===6?(i(j,T.sibling),T=d(T,L),T.return=j,j=T):(i(j,T),T=Id(L,j.mode,X),T.return=j,j=T),y(j)):i(j,T)}return Je}var li=mm(!0),gm=mm(!1),yl=Mr(null),vl=null,ui=null,Hc=null;function Kc(){Hc=ui=vl=null}function Gc(t){var r=yl.current;We(yl),t._currentValue=r}function qc(t,r,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),t===i)break;t=t.return}}function ci(t,r){vl=t,Hc=ui=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&r&&(Ft=!0),t.firstContext=null)}function un(t){var r=t._currentValue;if(Hc!==t)if(t={context:t,memoizedValue:r,next:null},ui===null){if(vl===null)throw Error(o(308));ui=t,vl.dependencies={lanes:0,firstContext:t}}else ui=ui.next=t;return r}var ho=null;function Xc(t){ho===null?ho=[t]:ho.push(t)}function ym(t,r,i,l){var d=r.interleaved;return d===null?(i.next=i,Xc(r)):(i.next=d.next,d.next=i),r.interleaved=i,ir(t,l)}function ir(t,r){t.lanes|=r;var i=t.alternate;for(i!==null&&(i.lanes|=r),i=t,t=t.return;t!==null;)t.childLanes|=r,i=t.alternate,i!==null&&(i.childLanes|=r),i=t,t=t.return;return i.tag===3?i.stateNode:null}var jr=!1;function Yc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vm(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function sr(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function Lr(t,r,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,Ce&2){var d=l.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),l.pending=r,ir(t,i)}return d=l.interleaved,d===null?(r.next=r,Xc(l)):(r.next=d.next,d.next=r),l.interleaved=r,ir(t,i)}function Sl(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194240)!==0)){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,ls(t,i)}}function Sm(t,r){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var d=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var y={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};h===null?d=h=y:h=h.next=y,i=i.next}while(i!==null);h===null?d=h=r:h=h.next=r}else d=h=r;i={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:l.shared,effects:l.effects},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}function bl(t,r,i,l){var d=t.updateQueue;jr=!1;var h=d.firstBaseUpdate,y=d.lastBaseUpdate,x=d.shared.pending;if(x!==null){d.shared.pending=null;var w=x,B=w.next;w.next=null,y===null?h=B:y.next=B,y=w;var K=t.alternate;K!==null&&(K=K.updateQueue,x=K.lastBaseUpdate,x!==y&&(x===null?K.firstBaseUpdate=B:x.next=B,K.lastBaseUpdate=w))}if(h!==null){var G=d.baseState;y=0,K=B=w=null,x=h;do{var H=x.lane,Z=x.eventTime;if((l&H)===H){K!==null&&(K=K.next={eventTime:Z,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var re=t,oe=x;switch(H=r,Z=i,oe.tag){case 1:if(re=oe.payload,typeof re=="function"){G=re.call(Z,G,H);break e}G=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=oe.payload,H=typeof re=="function"?re.call(Z,G,H):re,H==null)break e;G=Q({},G,H);break e;case 2:jr=!0}}x.callback!==null&&x.lane!==0&&(t.flags|=64,H=d.effects,H===null?d.effects=[x]:H.push(x))}else Z={eventTime:Z,lane:H,tag:x.tag,payload:x.payload,callback:x.callback,next:null},K===null?(B=K=Z,w=G):K=K.next=Z,y|=H;if(x=x.next,x===null){if(x=d.shared.pending,x===null)break;H=x,x=H.next,H.next=null,d.lastBaseUpdate=H,d.shared.pending=null}}while(!0);if(K===null&&(w=G),d.baseState=w,d.firstBaseUpdate=B,d.lastBaseUpdate=K,r=d.shared.interleaved,r!==null){d=r;do y|=d.lane,d=d.next;while(d!==r)}else h===null&&(d.shared.lanes=0);go|=y,t.lanes=y,t.memoizedState=G}}function bm(t,r,i){if(t=r.effects,r.effects=null,t!==null)for(r=0;ri?i:4,t(!0);var l=td.transition;td.transition={};try{t(!1),r()}finally{Te=i,td.transition=l}}function Bm(){return cn().memoizedState}function nx(t,r,i){var l=Nr(t);if(i={lane:l,action:i,hasEagerState:!1,eagerState:null,next:null},Vm(t))Nm(r,i);else if(i=ym(t,r,i,l),i!==null){var d=zt();Pn(i,t,l,d),Om(i,r,l)}}function rx(t,r,i){var l=Nr(t),d={lane:l,action:i,hasEagerState:!1,eagerState:null,next:null};if(Vm(t))Nm(r,d);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=r.lastRenderedReducer,h!==null))try{var y=r.lastRenderedState,x=h(y,i);if(d.hasEagerState=!0,d.eagerState=x,wn(x,y)){var w=r.interleaved;w===null?(d.next=d,Xc(r)):(d.next=w.next,w.next=d),r.interleaved=d;return}}catch{}finally{}i=ym(t,r,d,l),i!==null&&(d=zt(),Pn(i,t,l,d),Om(i,r,l))}}function Vm(t){var r=t.alternate;return t===Xe||r!==null&&r===Xe}function Nm(t,r){As=kl=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function Om(t,r,i){if(i&4194240){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,ls(t,i)}}var _l={readContext:un,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useInsertionEffect:Ct,useLayoutEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useMutableSource:Ct,useSyncExternalStore:Ct,useId:Ct,unstable_isNewReconciler:!1},ox={readContext:un,useCallback:function(t,r){return Fn().memoizedState=[t,r===void 0?null:r],t},useContext:un,useEffect:$m,useImperativeHandle:function(t,r,i){return i=i!=null?i.concat([t]):null,Cl(4194308,4,Dm.bind(null,r,t),i)},useLayoutEffect:function(t,r){return Cl(4194308,4,t,r)},useInsertionEffect:function(t,r){return Cl(4,2,t,r)},useMemo:function(t,r){var i=Fn();return r=r===void 0?null:r,t=t(),i.memoizedState=[t,r],t},useReducer:function(t,r,i){var l=Fn();return r=i!==void 0?i(r):r,l.memoizedState=l.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=nx.bind(null,Xe,t),[l.memoizedState,t]},useRef:function(t){var r=Fn();return t={current:t},r.memoizedState=t},useState:Am,useDebugValue:ld,useDeferredValue:function(t){return Fn().memoizedState=t},useTransition:function(){var t=Am(!1),r=t[0];return t=tx.bind(null,t[1]),Fn().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,i){var l=Xe,d=Fn();if(Ge){if(i===void 0)throw Error(o(407));i=i()}else{if(i=r(),dt===null)throw Error(o(349));mo&30||Cm(l,r,i)}d.memoizedState=i;var h={value:i,getSnapshot:r};return d.queue=h,$m(_m.bind(null,l,h,t),[t]),l.flags|=2048,zs(9,Tm.bind(null,l,h,i,r),void 0,null),i},useId:function(){var t=Fn(),r=dt.identifierPrefix;if(Ge){var i=or,l=rr;i=(l&~(1<<32-Ht(l)-1)).toString(32)+i,r=":"+r+"R"+i,i=Rs++,0<\/script>",t=t.removeChild(t.firstChild)):typeof l.is=="string"?t=y.createElement(i,{is:l.is}):(t=y.createElement(i),i==="select"&&(y=t,l.multiple?y.multiple=!0:l.size&&(y.size=l.size))):t=y.createElementNS(t,i),t[jn]=r,t[ks]=l,lg(t,r,!1,!1),r.stateNode=t;e:{switch(y=es(i,l),i){case"dialog":Oe("cancel",t),Oe("close",t),d=l;break;case"iframe":case"object":case"embed":Oe("load",t),d=l;break;case"video":case"audio":for(d=0;dmi&&(r.flags|=128,l=!0,Ms(h,!1),r.lanes=4194304)}else{if(!l)if(t=xl(y),t!==null){if(r.flags|=128,l=!0,i=t.updateQueue,i!==null&&(r.updateQueue=i,r.flags|=4),Ms(h,!0),h.tail===null&&h.tailMode==="hidden"&&!y.alternate&&!Ge)return Tt(r),null}else 2*Ne()-h.renderingStartTime>mi&&i!==1073741824&&(r.flags|=128,l=!0,Ms(h,!1),r.lanes=4194304);h.isBackwards?(y.sibling=r.child,r.child=y):(i=h.last,i!==null?i.sibling=y:r.child=y,h.last=y)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=Ne(),r.sibling=null,i=qe.current,Be(qe,l?i&1|2:i&1),r):(Tt(r),null);case 22:case 23:return zd(),l=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==l&&(r.flags|=8192),l&&r.mode&1?qt&1073741824&&(Tt(r),r.subtreeFlags&6&&(r.flags|=8192)):Tt(r),null;case 24:return null;case 25:return null}throw Error(o(156,r.tag))}function fx(t,r){switch(Nc(r),r.tag){case 1:return Lt(r.type)&&cl(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return di(),We(jt),We(kt),ed(),t=r.flags,t&65536&&!(t&128)?(r.flags=t&-65537|128,r):null;case 5:return Zc(r),null;case 13:if(We(qe),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(o(340));ai()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return We(qe),null;case 4:return di(),null;case 10:return Gc(r.type._context),null;case 22:case 23:return zd(),null;case 24:return null;default:return null}}var Rl=!1,_t=!1,hx=typeof WeakSet=="function"?WeakSet:Set,te=null;function hi(t,r){var i=t.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(l){Qe(t,r,l)}else i.current=null}function bd(t,r,i){try{i()}catch(l){Qe(t,r,l)}}var dg=!1;function px(t,r){if(zc=b,t=Wp(),Cc(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var d=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var y=0,x=-1,w=-1,B=0,K=0,G=t,H=null;t:for(;;){for(var Z;G!==i||d!==0&&G.nodeType!==3||(x=y+d),G!==h||l!==0&&G.nodeType!==3||(w=y+l),G.nodeType===3&&(y+=G.nodeValue.length),(Z=G.firstChild)!==null;)H=G,G=Z;for(;;){if(G===t)break t;if(H===i&&++B===d&&(x=y),H===h&&++K===l&&(w=y),(Z=G.nextSibling)!==null)break;G=H,H=G.parentNode}G=Z}i=x===-1||w===-1?null:{start:x,end:w}}else i=null}i=i||{start:0,end:0}}else i=null;for(Mc={focusedElem:t,selectionRange:i},b=!1,te=r;te!==null;)if(r=te,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,te=t;else for(;te!==null;){r=te;try{var re=r.alternate;if(r.flags&1024)switch(r.tag){case 0:case 11:case 15:break;case 1:if(re!==null){var oe=re.memoizedProps,Je=re.memoizedState,j=r.stateNode,T=j.getSnapshotBeforeUpdate(r.elementType===r.type?oe:Cn(r.type,oe),Je);j.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var L=r.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(X){Qe(r,r.return,X)}if(t=r.sibling,t!==null){t.return=r.return,te=t;break}te=r.return}return re=dg,dg=!1,re}function Ds(t,r,i){var l=r.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var d=l=l.next;do{if((d.tag&t)===t){var h=d.destroy;d.destroy=void 0,h!==void 0&&bd(r,i,h)}d=d.next}while(d!==l)}}function $l(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var l=i.create;i.destroy=l()}i=i.next}while(i!==r)}}function xd(t){var r=t.ref;if(r!==null){var i=t.stateNode;switch(t.tag){case 5:t=i;break;default:t=i}typeof r=="function"?r(t):r.current=t}}function fg(t){var r=t.alternate;r!==null&&(t.alternate=null,fg(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[jn],delete r[ks],delete r[Lc],delete r[Yb],delete r[Qb])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function hg(t){return t.tag===5||t.tag===3||t.tag===4}function pg(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||hg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function wd(t,r,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?i.nodeType===8?i.parentNode.insertBefore(t,r):i.insertBefore(t,r):(i.nodeType===8?(r=i.parentNode,r.insertBefore(t,i)):(r=i,r.appendChild(t)),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=ll));else if(l!==4&&(t=t.child,t!==null))for(wd(t,r,i),t=t.sibling;t!==null;)wd(t,r,i),t=t.sibling}function kd(t,r,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(l!==4&&(t=t.child,t!==null))for(kd(t,r,i),t=t.sibling;t!==null;)kd(t,r,i),t=t.sibling}var gt=null,Tn=!1;function Fr(t,r,i){for(i=i.child;i!==null;)mg(t,r,i),i=i.sibling}function mg(t,r,i){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(ro,i)}catch{}switch(i.tag){case 5:_t||hi(i,r);case 6:var l=gt,d=Tn;gt=null,Fr(t,r,i),gt=l,Tn=d,gt!==null&&(Tn?(t=gt,i=i.stateNode,t.nodeType===8?t.parentNode.removeChild(i):t.removeChild(i)):gt.removeChild(i.stateNode));break;case 18:gt!==null&&(Tn?(t=gt,i=i.stateNode,t.nodeType===8?jc(t.parentNode,i):t.nodeType===1&&jc(t,i),Er(t)):jc(gt,i.stateNode));break;case 4:l=gt,d=Tn,gt=i.stateNode.containerInfo,Tn=!0,Fr(t,r,i),gt=l,Tn=d;break;case 0:case 11:case 14:case 15:if(!_t&&(l=i.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){d=l=l.next;do{var h=d,y=h.destroy;h=h.tag,y!==void 0&&(h&2||h&4)&&bd(i,r,y),d=d.next}while(d!==l)}Fr(t,r,i);break;case 1:if(!_t&&(hi(i,r),l=i.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=i.memoizedProps,l.state=i.memoizedState,l.componentWillUnmount()}catch(x){Qe(i,r,x)}Fr(t,r,i);break;case 21:Fr(t,r,i);break;case 22:i.mode&1?(_t=(l=_t)||i.memoizedState!==null,Fr(t,r,i),_t=l):Fr(t,r,i);break;default:Fr(t,r,i)}}function gg(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var i=t.stateNode;i===null&&(i=t.stateNode=new hx),r.forEach(function(l){var d=kx.bind(null,t,l);i.has(l)||(i.add(l),l.then(d,d))})}}function _n(t,r){var i=r.deletions;if(i!==null)for(var l=0;ld&&(d=y),l&=~h}if(l=d,l=Ne()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*gx(l/1960))-l,10t?16:t,Vr===null)var l=!1;else{if(t=Vr,Vr=null,jl=0,Ce&6)throw Error(o(331));var d=Ce;for(Ce|=4,te=t.current;te!==null;){var h=te,y=h.child;if(te.flags&16){var x=h.deletions;if(x!==null){for(var w=0;wNe()-_d?vo(t,0):Td|=i),Vt(t,r)}function Ag(t,r){r===0&&(t.mode&1?(r=Wo,Wo<<=1,!(Wo&130023424)&&(Wo=4194304)):r=1);var i=zt();t=ir(t,r),t!==null&&(io(t,r,i),Vt(t,i))}function wx(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),Ag(t,i)}function kx(t,r){var i=0;switch(t.tag){case 13:var l=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:l=t.stateNode;break;default:throw Error(o(314))}l!==null&&l.delete(r),Ag(t,i)}var Rg;Rg=function(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps||jt.current)Ft=!0;else{if(!(t.lanes&i)&&!(r.flags&128))return Ft=!1,cx(t,r,i);Ft=!!(t.flags&131072)}else Ft=!1,Ge&&r.flags&1048576&&um(r,pl,r.index);switch(r.lanes=0,r.tag){case 2:var l=r.type;Al(t,r),t=r.pendingProps;var d=oi(r,kt.current);ci(r,i),d=rd(null,r,l,t,d,i);var h=od();return r.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Lt(l)?(h=!0,dl(r)):h=!1,r.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Yc(r),d.updater=Pl,r.stateNode=d,d._reactInternals=r,cd(r,l,t,i),r=pd(null,r,l,!0,h,i)):(r.tag=0,Ge&&h&&Vc(r),$t(null,r,d,i),r=r.child),r;case 16:l=r.elementType;e:{switch(Al(t,r),t=r.pendingProps,d=l._init,l=d(l._payload),r.type=l,d=r.tag=Tx(l),t=Cn(l,t),d){case 0:r=hd(null,r,l,t,i);break e;case 1:r=ng(null,r,l,t,i);break e;case 11:r=Qm(null,r,l,t,i);break e;case 14:r=Zm(null,r,l,Cn(l.type,t),i);break e}throw Error(o(306,l,""))}return r;case 0:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:Cn(l,d),hd(t,r,l,d,i);case 1:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:Cn(l,d),ng(t,r,l,d,i);case 3:e:{if(rg(r),t===null)throw Error(o(387));l=r.pendingProps,h=r.memoizedState,d=h.element,vm(t,r),bl(r,l,null,i);var y=r.memoizedState;if(l=y.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},r.updateQueue.baseState=h,r.memoizedState=h,r.flags&256){d=fi(Error(o(423)),r),r=og(t,r,l,i,d);break e}else if(l!==d){d=fi(Error(o(424)),r),r=og(t,r,l,i,d);break e}else for(Gt=zr(r.stateNode.containerInfo.firstChild),Kt=r,Ge=!0,kn=null,i=gm(r,null,l,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(ai(),l===d){r=ar(t,r,i);break e}$t(t,r,l,i)}r=r.child}return r;case 5:return xm(r),t===null&&Wc(r),l=r.type,d=r.pendingProps,h=t!==null?t.memoizedProps:null,y=d.children,Dc(l,d)?y=null:h!==null&&Dc(l,h)&&(r.flags|=32),tg(t,r),$t(t,r,y,i),r.child;case 6:return t===null&&Wc(r),null;case 13:return ig(t,r,i);case 4:return Qc(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=li(r,null,l,i):$t(t,r,l,i),r.child;case 11:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:Cn(l,d),Qm(t,r,l,d,i);case 7:return $t(t,r,r.pendingProps,i),r.child;case 8:return $t(t,r,r.pendingProps.children,i),r.child;case 12:return $t(t,r,r.pendingProps.children,i),r.child;case 10:e:{if(l=r.type._context,d=r.pendingProps,h=r.memoizedProps,y=d.value,Be(yl,l._currentValue),l._currentValue=y,h!==null)if(wn(h.value,y)){if(h.children===d.children&&!jt.current){r=ar(t,r,i);break e}}else for(h=r.child,h!==null&&(h.return=r);h!==null;){var x=h.dependencies;if(x!==null){y=h.child;for(var w=x.firstContext;w!==null;){if(w.context===l){if(h.tag===1){w=sr(-1,i&-i),w.tag=2;var B=h.updateQueue;if(B!==null){B=B.shared;var K=B.pending;K===null?w.next=w:(w.next=K.next,K.next=w),B.pending=w}}h.lanes|=i,w=h.alternate,w!==null&&(w.lanes|=i),qc(h.return,i,r),x.lanes|=i;break}w=w.next}}else if(h.tag===10)y=h.type===r.type?null:h.child;else if(h.tag===18){if(y=h.return,y===null)throw Error(o(341));y.lanes|=i,x=y.alternate,x!==null&&(x.lanes|=i),qc(y,i,r),y=h.sibling}else y=h.child;if(y!==null)y.return=h;else for(y=h;y!==null;){if(y===r){y=null;break}if(h=y.sibling,h!==null){h.return=y.return,y=h;break}y=y.return}h=y}$t(t,r,d.children,i),r=r.child}return r;case 9:return d=r.type,l=r.pendingProps.children,ci(r,i),d=un(d),l=l(d),r.flags|=1,$t(t,r,l,i),r.child;case 14:return l=r.type,d=Cn(l,r.pendingProps),d=Cn(l.type,d),Zm(t,r,l,d,i);case 15:return Jm(t,r,r.type,r.pendingProps,i);case 17:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:Cn(l,d),Al(t,r),r.tag=1,Lt(l)?(t=!0,dl(r)):t=!1,ci(r,i),Um(r,l,d),cd(r,l,d,i),pd(null,r,l,!0,t,i);case 19:return ag(t,r,i);case 22:return eg(t,r,i)}throw Error(o(156,r.tag))};function $g(t,r){return Ga(t,r)}function Cx(t,r,i,l){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(t,r,i,l){return new Cx(t,r,i,l)}function Dd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Tx(t){if(typeof t=="function")return Dd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Ie)return 11;if(t===Ut)return 14}return 2}function Wr(t,r){var i=t.alternate;return i===null?(i=fn(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&14680064,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i}function Vl(t,r,i,l,d,h){var y=2;if(l=t,typeof t=="function")Dd(t)&&(y=1);else if(typeof t=="string")y=5;else e:switch(t){case O:return bo(i.children,d,h,r);case q:y=8,d|=8;break;case se:return t=fn(12,i,r,d|2),t.elementType=se,t.lanes=h,t;case nt:return t=fn(13,i,r,d),t.elementType=nt,t.lanes=h,t;case it:return t=fn(19,i,r,d),t.elementType=it,t.lanes=h,t;case me:return Nl(i,d,h,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case J:y=10;break e;case pe:y=9;break e;case Ie:y=11;break e;case Ut:y=14;break e;case pt:y=16,l=null;break e}throw Error(o(130,t==null?t:typeof t,""))}return r=fn(y,i,r,d),r.elementType=t,r.type=l,r.lanes=h,r}function bo(t,r,i,l){return t=fn(7,t,l,r),t.lanes=i,t}function Nl(t,r,i,l){return t=fn(22,t,l,r),t.elementType=me,t.lanes=i,t.stateNode={isHidden:!1},t}function Id(t,r,i){return t=fn(6,t,null,r),t.lanes=i,t}function jd(t,r,i){return r=fn(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function _x(t,r,i,l,d){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ko(0),this.expirationTimes=Ko(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ko(0),this.identifierPrefix=l,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function Ld(t,r,i,l,d,h,y,x,w){return t=new _x(t,r,i,x,w),r===1?(r=1,h===!0&&(r|=8)):r=0,h=fn(3,null,null,r),t.current=h,h.stateNode=t,h.memoizedState={element:l,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yc(h),t}function Px(t,r,i){var l=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Wd.exports=Fx(),Wd.exports}var Kg;function Bx(){if(Kg)return Xl;Kg=1;var e=xv();return Xl.createRoot=e.createRoot,Xl.hydrateRoot=e.hydrateRoot,Xl}var Vx=Bx();let Nx=0;function Fu(e,n){const o=`atom${++Nx}`,s={toString(){return o}};return typeof e=="function"?s.read=e:(s.init=e,s.read=Ox,s.write=Wx),n&&(s.write=n),s}function Ox(e){return e(this)}function Wx(e,n,o){return n(this,typeof o=="function"?o(e(this)):o)}const Gg=(e,n)=>e.unstable_is?e.unstable_is(n):n===e,qg=e=>"init"in e,Xg=e=>!!e.write,Tu=new WeakMap,$f=e=>{var n;return zf(e)&&!((n=Tu.get(e))!=null&&n[1])},Ux=(e,n)=>{const o=Tu.get(e);o&&(o[1]=!0,o[0].forEach(s=>s(n)))},Hx=e=>{if(Tu.has(e))return;const n=[new Set,!1];Tu.set(e,n);const o=()=>{n[1]=!0};e.then(o,o),e.onCancel=s=>{n[0].add(s)}},zf=e=>typeof(e==null?void 0:e.then)=="function",Yg=e=>"v"in e||"e"in e,Yl=e=>{if("e"in e)throw e.e;return e.v},wv=(e,n,o)=>{o.p.has(e)||(o.p.add(e),n.then(()=>{o.p.delete(e)},()=>{o.p.delete(e)}))},Qg=(e,n,o,s,a)=>{var u;o.d.set(s,a.n),$f(o.v)&&wv(n,o.v,a),(u=a.m)==null||u.t.add(n),e&&Kx(e,s,n)},Vs=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),na=(e,n,o)=>{e[n].add(o)},Zg=(e,n,o)=>{e.D.has(n)||(e.D.set(n,new Set),na(e,"M",()=>{var s;(s=o.m)==null||s.l.forEach(a=>na(e,"M",a))}))},Kx=(e,n,o)=>{const s=e.D.get(n);s&&s.add(o)},Gx=(e,n)=>e.D.get(n),xo=e=>{let n,o=!1;const s=a=>{try{a()}catch(u){o||(n=u,o=!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(s),e.H.clear(),e.M.forEach(s),e.M.clear(),e.L.forEach(s),e.L.clear();if(o)throw n},kv=(...[e,n,o,s])=>{const a=(k,R,$)=>{const N="v"in R,z=R.v,W=$f(R.v)?R.v:null;if(zf($)){Hx($);for(const O of R.d.keys())wv(k,$,e(O));R.v=$}else R.v=$;delete R.e,delete R.x,(!N||!Object.is(z,R.v))&&(++R.n,W&&Ux(W,$))},u=(k,R)=>{var $;const N=e(R);if(Yg(N)&&(N.m&&!N.x||Array.from(N.d).every(([J,pe])=>u(k,J).n===pe)))return N;N.d.clear();let z=!0;const W=J=>{if(Gg(R,J)){const Ie=e(J);if(!Yg(Ie))if(qg(J))a(J,Ie,J.init);else throw new Error("no atom init");return Yl(Ie)}const pe=u(k,J);try{return Yl(pe)}finally{if(z)Qg(k,R,N,J,pe);else{const Ie=Vs();Qg(Ie,R,N,J,pe),v(Ie,R,N),xo(Ie)}}};let O,q;const se={get signal(){return O||(O=new AbortController),O.signal},get setSelf(){return!q&&Xg(R)&&(q=(...J)=>{if(!z)return g(R,...J)}),q}};try{const J=n(R,W,se);if(a(R,N,J),zf(J)){($=J.onCancel)==null||$.call(J,()=>O==null?void 0:O.abort());const pe=()=>{if(N.m){const Ie=Vs();v(Ie,R,N),xo(Ie)}};J.then(pe,pe)}return N}catch(J){return delete N.v,N.e=J,delete N.x,++N.n,N}finally{z=!1}},c=k=>Yl(u(void 0,k)),f=(k,R,$)=>{var N,z;const W=new Map;for(const O of((N=$.m)==null?void 0:N.t)||[]){const q=e(O);q.m&&W.set(O,q)}for(const O of $.p)W.set(O,e(O));return(z=Gx(k,R))==null||z.forEach(O=>{W.set(O,e(O))}),W},p=(k,R,$)=>{const N=[],z=new Set,W=new Set,O=[[R,$]];for(;O.length>0;){const[q,se]=O[O.length-1];if(W.has(q)){O.pop();continue}if(z.has(q)){N.push([q,se,se.n]),W.add(q),se.x=!0,O.pop();continue}z.add(q);for(const[J,pe]of f(k,q,se))q!==J&&!z.has(J)&&O.push([J,pe])}na(k,"H",()=>{const q=new Set([R]);for(let se=N.length-1;se>=0;--se){const[J,pe,Ie]=N[se];let nt=!1;for(const it of pe.d.keys())if(it!==J&&q.has(it)){nt=!0;break}nt&&(u(k,J),v(k,J,pe),Ie!==pe.n&&(Zg(k,J,pe),q.add(J))),delete pe.x}})},m=(k,R,...$)=>{let N=!0;const z=O=>Yl(u(k,O)),W=(O,...q)=>{const se=e(O);try{if(Gg(R,O)){if(!qg(O))throw new Error("atom not writable");const J=se.n,pe=q[0];a(O,se,pe),v(k,O,se),J!==se.n&&(Zg(k,O,se),p(k,O,se));return}else return m(k,O,...q)}finally{N||xo(k)}};try{return o(R,z,W,...$)}finally{N=!1}},g=(k,...R)=>{const $=Vs();try{return m($,k,...R)}finally{xo($)}},v=(k,R,$)=>{if($.m&&!$f($.v)){for(const N of $.d.keys())$.m.d.has(N)||(S(k,N,e(N)).t.add(R),$.m.d.add(N));for(const N of $.m.d||[])if(!$.d.has(N)){$.m.d.delete(N);const z=C(k,N,e(N));z==null||z.t.delete(R)}}},S=(k,R,$)=>{if(!$.m){u(k,R);for(const N of $.d.keys())S(k,N,e(N)).t.add(R);if($.m={l:new Set,d:new Set($.d.keys()),t:new Set},Xg(R)){const N=$.m;let z;const W=(O,q)=>{let se=!0;z=(...J)=>{try{return m(O,R,...J)}finally{se||xo(O)}};try{return q()}finally{se=!1}};na(k,"L",()=>{const O=W(k,()=>s(R,(...q)=>z(...q)));O&&(N.u=q=>W(q,O))})}}return $.m},C=(k,R,$)=>{if($.m&&!$.m.l.size&&!Array.from($.m.t).some(N=>{var z;return(z=e(N).m)==null?void 0:z.d.has(R)})){const N=$.m.u;N&&na(k,"L",()=>N(k)),delete $.m;for(const z of $.d.keys()){const W=C(k,z,e(z));W==null||W.t.delete(R)}return}return $.m};return{get:c,set:g,sub:(k,R)=>{const $=Vs(),N=e(k),W=S($,k,N).l;return W.add(R),xo($),()=>{W.delete(R);const O=Vs();C(O,k,N),xo(O)}},unstable_derive:k=>kv(...k(e,n,o,s))}},qx=()=>{const e=new WeakMap;return kv(s=>{let a=e.get(s);return a||(a={d:new Map,p:new Set,n:0},e.set(s,a)),a},(s,...a)=>s.read(...a),(s,...a)=>s.write(...a),(s,...a)=>{var u;return(u=s.onMount)==null?void 0:u.call(s,...a)})};let Kd;const Xx=()=>(Kd||(Kd=qx()),Kd),Yx=I.createContext(void 0),Cv=e=>I.useContext(Yx)||Xx(),Tv=e=>typeof(e==null?void 0:e.then)=="function",Qx=e=>{e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n})},Zx=bv.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(Qx(e),e)}),Gd=new WeakMap,Jx=e=>{let n=Gd.get(e);return n||(n=new Promise((o,s)=>{let a=e;const u=p=>m=>{a===p&&o(m)},c=p=>m=>{a===p&&s(m)},f=p=>{"onCancel"in p&&typeof p.onCancel=="function"&&p.onCancel(m=>{Tv(m)?(Gd.set(m,n),a=m,m.then(u(m),c(m)),f(m)):o(m)})};e.then(u(e),c(e)),f(e)}),Gd.set(e,n)),n};function ew(e,n){const o=Cv(),[[s,a,u],c]=I.useReducer(m=>{const g=o.get(e);return Object.is(m[0],g)&&m[1]===o&&m[2]===e?m:[g,o,e]},void 0,()=>[o.get(e),o,e]);let f=s;if((a!==o||u!==e)&&(c(),f=o.get(e)),I.useEffect(()=>{const m=o.sub(e,()=>{c()});return c(),m},[o,e,void 0]),I.useDebugValue(f),Tv(f)){const m=Jx(f);return Zx(m)}return f}function Mf(e,n){const o=Cv();return I.useCallback((...a)=>o.set(e,...a),[o,e])}function Df(e,n){return[ew(e),Mf(e)]}var _v=xv();function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var n=1;nnull;function nw(){return!!(globalThis!=null&&globalThis.document)}function rw(e,...n){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const o={...e};for(const s of n)if(s!=null)for(const a in s)Object.prototype.hasOwnProperty.call(s,a)&&(a in o&&delete o[a],o[a]=s[a]);return o}const On=e=>e?"":void 0,qd=e=>e?!0:void 0;function ow(e){return Array.isArray(e)}function vn(e){const n=typeof e;return e!=null&&(n==="object"||n==="function")&&!ow(e)}function iw(e){const n=e==null?0:e.length;return n?e[n-1]:void 0}function sw(e){const n=parseFloat(e.toString()),o=e.toString().replace(String(n),"");return{unitless:!o,value:n,unit:o}}function If(e){if(e==null)return e;const{unitless:n}=sw(e);return n||typeof e=="number"?`${e}px`:e}const Pv=(e,n)=>parseInt(e[1],10)>parseInt(n[1],10)?1:-1,yh=e=>Object.fromEntries(Object.entries(e).sort(Pv));function Jg(e){const n=yh(e);return Object.assign(Object.values(n),n)}function aw(e){const n=Object.keys(yh(e));return new Set(n)}function e0(e){if(!e)return e;e=If(e)??e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,o=>`${parseFloat(o)+n}`)}function Ks(e,n){const o=["@media screen"];return e&&o.push("and",`(min-width: ${If(e)})`),n&&o.push("and",`(max-width: ${If(n)})`),o.join(" ")}function lw(e){if(!e)return null;e.base=e.base??"0px";const n=Jg(e),o=Object.entries(e).sort(Pv).map(([u,c],f,p)=>{let[,m]=p[f+1]??[];return m=parseFloat(m)>0?e0(m):void 0,{_minW:e0(c),breakpoint:u,minW:c,maxW:m,maxWQuery:Ks(null,m),minWQuery:Ks(c),minMaxQuery:Ks(c,m)}}),s=aw(e),a=Array.from(s.values());return{keys:s,normalized:n,isResponsive(u){const c=Object.keys(u);return c.length>0&&c.every(f=>s.has(f))},asObject:yh(e),asArray:Jg(e),details:o,get(u){return o.find(c=>c.breakpoint===u)},media:[null,...n.map(u=>Ks(u)).slice(1)],toArrayValue(u){if(!vn(u))throw new Error("toArrayValue: value must be an object");const c=a.map(f=>u[f]??null);for(;iw(c)===null;)c.pop();return c},toObjectValue(u){if(!Array.isArray(u))throw new Error("toObjectValue: value must be an array");return u.reduce((c,f,p)=>{const m=a[p];return m!=null&&f!=null&&(c[m]=f),c},{})}}}function t0(...e){return function(o){e.some(s=>(s==null||s(o),o==null?void 0:o.defaultPrevented))}}function uw(e){return I.Children.toArray(e).filter(n=>I.isValidElement(n))}function vh(e){const n=Object.assign({},e);for(let o in n)n[o]===void 0&&delete n[o];return n}function cw(e,n){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${n}`}function Sr(e={}){const{name:n,strict:o=!0,hookName:s="useContext",providerName:a="Provider",errorMessage:u,defaultValue:c}=e,f=I.createContext(c);f.displayName=n;function p(){var g;const m=I.useContext(f);if(!m&&o){const v=new Error(u??cw(s,a));throw v.name="ContextError",(g=Error.captureStackTrace)==null||g.call(Error,v,p),v}return m}return[f.Provider,p,f]}const Rt=(...e)=>e.filter(Boolean).join(" ");function dw(e,n,o,s){const a=typeof n=="string"?n.split("."):[n];for(s=0;s{const n=new WeakMap;return(s,a,u,c)=>{if(typeof s>"u")return e(s,a,u);n.has(s)||n.set(s,new Map);const f=n.get(s);if(f.has(a))return f.get(a);const p=e(s,a,u,c);return f.set(a,p),p}},Ev=fw(dw),hw=e=>e.default||e;function Av(e,n=[]){const o=Object.assign({},e);for(const s of n)s in o&&delete o[s];return o}function pw(e,n){const o={};for(const s of n)s in e&&(o[s]=e[s]);return o}function mw(e,n){return Array.isArray(e)?e.map(o=>o===null?null:n(o)):vn(e)?Object.keys(e).reduce((o,s)=>(o[s]=n(e[s]),o),{}):e!=null?n(e):null}const gw=e=>typeof e=="function";function yn(e,...n){return gw(e)?e(...n):e}function yw(e,...n){const o=Object.getOwnPropertyDescriptors(e),s=Object.keys(o),a=c=>{const f={};for(let p=0;pa(Array.isArray(c)?c:s.filter(c));return n.map(u).concat(a(s))}function n0(e,n,o={}){const{stop:s,getKey:a}=o;function u(c,f=[]){if(vn(c)||Array.isArray(c)){const p={};for(const[m,g]of Object.entries(c)){const v=(a==null?void 0:a(m))??m,S=[...f,v];if(s!=null&&s(c,S))return n(c,f);p[v]=u(g,S)}return p}return n(c,f)}return u(e)}var Gs={exports:{}};Gs.exports;var r0;function vw(){return r0||(r0=1,function(e,n){var o=200,s="__lodash_hash_undefined__",a=800,u=16,c=9007199254740991,f="[object Arguments]",p="[object Array]",m="[object AsyncFunction]",g="[object Boolean]",v="[object Date]",S="[object Error]",C="[object Function]",A="[object GeneratorFunction]",P="[object Map]",D="[object Number]",k="[object Null]",R="[object Object]",$="[object Proxy]",N="[object RegExp]",z="[object Set]",W="[object String]",O="[object Undefined]",q="[object WeakMap]",se="[object ArrayBuffer]",J="[object DataView]",pe="[object Float32Array]",Ie="[object Float64Array]",nt="[object Int8Array]",it="[object Int16Array]",Ut="[object Int32Array]",pt="[object Uint8Array]",me="[object Uint8ClampedArray]",Y="[object Uint16Array]",ae="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,ne={};ne[pe]=ne[Ie]=ne[nt]=ne[it]=ne[Ut]=ne[pt]=ne[me]=ne[Y]=ne[ae]=!0,ne[f]=ne[p]=ne[se]=ne[g]=ne[J]=ne[v]=ne[S]=ne[C]=ne[P]=ne[D]=ne[R]=ne[N]=ne[z]=ne[W]=ne[q]=!1;var ge=typeof ql=="object"&&ql&&ql.Object===Object&&ql,ke=typeof self=="object"&&self&&self.Object===Object&&self,Se=ge||ke||Function("return this")(),De=n&&!n.nodeType&&n,xe=De&&!0&&e&&!e.nodeType&&e,Le=xe&&xe.exports===De,mt=Le&&ge.process,Jr=function(){try{var b=xe&&xe.require&&xe.require("util").types;return b||mt&&mt.binding&&mt.binding("util")}catch{}}(),Ki=Jr&&Jr.isTypedArray;function Io(b,E,V){switch(V.length){case 0:return b.call(E);case 1:return b.call(E,V[0]);case 2:return b.call(E,V[0],V[1]);case 3:return b.call(E,V[0],V[1],V[2])}return b.apply(E,V)}function Gi(b,E){for(var V=-1,ee=Array(b);++V-1}function no(b,E){var V=this.__data__,ee=Vo(V,b);return ee<0?(++this.size,V.push([b,E])):V[ee][1]=E,this}en.prototype.clear=eo,en.prototype.delete=rs,en.prototype.get=to,en.prototype.has=tc,en.prototype.set=no;function bn(b){var E=-1,V=b==null?0:b.length;for(this.clear();++E1?V[ve-1]:void 0,Fe=ve>2?V[2]:void 0;for(Pe=b.length>3&&typeof Pe=="function"?(ve--,Pe):void 0,Fe&&io(V[0],V[1],Fe)&&(Pe=ve<3?void 0:Pe,ve=1),E=Object(E);++ee-1&&b%1==0&&b0){if(++E>=a)return arguments[0]}else E=0;return b.apply(void 0,arguments)}}function cs(b){if(b!=null){try{return xr.call(b)}catch{}try{return b+""}catch{}}return""}function er(b,E){return b===E||b!==b&&E!==E}var nn=is(function(){return arguments}())?is:function(b){return xn(b)&&Sn.call(b,"callee")&&!La.call(b,"callee")},rn=Array.isArray;function on(b){return b!=null&&el(b.length)&&!sn(b)}function so(b){return xn(b)&&on(b)}var Pr=es||Ar;function sn(b){if(!Dn(b))return!1;var E=_r(b);return E==C||E==A||E==m||E==$}function el(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=c}function Dn(b){var E=typeof b;return b!=null&&(E=="object"||E=="function")}function xn(b){return b!=null&&typeof b=="object"}function pc(b){if(!xn(b)||_r(b)!=R)return!1;var E=kr(b);if(E===null)return!0;var V=Sn.call(E,"constructor")&&E.constructor;return typeof V=="function"&&V instanceof V&&xr.call(V)==Ia}var ds=Ki?za(Ki):lc;function qo(b){return Wo(b,fs(b))}function fs(b){return on(b)?Ga(b):qa(b)}var mc=oo(function(b,E,V,ee){ro(b,E,V,ee)});function ao(b){return function(){return b}}function Er(b){return b}function Ar(){return!1}e.exports=mc}(Gs,Gs.exports)),Gs.exports}var Sw=vw();const Gn=mh(Sw);function bw(e,n=[]){const o=I.useRef(e);return I.useEffect(()=>{o.current=e}),I.useCallback((...s)=>{var a;return(a=o.current)==null?void 0:a.call(o,...s)},n)}const jf=globalThis!=null&&globalThis.document?I.useLayoutEffect:I.useEffect,o0=(e,n)=>{const o=I.useRef(!1),s=I.useRef(!1);I.useEffect(()=>{if(o.current&&s.current)return e();s.current=!0},n),I.useEffect(()=>(o.current=!0,()=>{o.current=!1}),[])};function xw(e,n){if(e!=null){if(typeof e=="function"){e(n);return}try{e.current=n}catch{throw new Error(`Cannot assign value '${n}' to ref '${e}'`)}}}function Lf(...e){return n=>{e.forEach(o=>{xw(o,n)})}}function ww(...e){return I.useMemo(()=>Lf(...e),e)}function kw(e,n){const o=bw(e);I.useEffect(()=>{if(n==null)return;let s=null;return s=window.setTimeout(()=>{o()},n),()=>{s&&window.clearTimeout(s)}},[n,o])}const lt={open:(e,n)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${n}`,closed:(e,n)=>`${e}[data-closed], ${e}[data-state=closed] ${n}`,hover:(e,n)=>`${e}:hover ${n}, ${e}[data-hover] ${n}`,focus:(e,n)=>`${e}:focus ${n}, ${e}[data-focus] ${n}`,focusVisible:(e,n)=>`${e}:focus-visible ${n}`,focusWithin:(e,n)=>`${e}:focus-within ${n}`,active:(e,n)=>`${e}:active ${n}, ${e}[data-active] ${n}`,disabled:(e,n)=>`${e}:disabled ${n}, ${e}[data-disabled] ${n}`,invalid:(e,n)=>`${e}:invalid ${n}, ${e}[data-invalid] ${n}`,checked:(e,n)=>`${e}:checked ${n}, ${e}[data-checked] ${n}`,indeterminate:(e,n)=>`${e}:indeterminate ${n}, ${e}[aria-checked=mixed] ${n}, ${e}[data-indeterminate] ${n}`,readOnly:(e,n)=>`${e}:read-only ${n}, ${e}[readonly] ${n}, ${e}[data-read-only] ${n}`,expanded:(e,n)=>`${e}:read-only ${n}, ${e}[aria-expanded=true] ${n}, ${e}[data-expanded] ${n}`,placeholderShown:(e,n)=>`${e}:placeholder-shown ${n}`},Vn=e=>Rv(n=>e(n,"&"),"[role=group]","[data-group]",".group"),ur=e=>Rv(n=>e(n,"~ &"),"[data-peer]",".peer"),Rv=(e,...n)=>n.map(e).join(", "),Ai={_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:Vn(lt.open),_groupClosed:Vn(lt.closed),_groupHover:Vn(lt.hover),_peerHover:ur(lt.hover),_groupFocus:Vn(lt.focus),_peerFocus:ur(lt.focus),_groupFocusVisible:Vn(lt.focusVisible),_peerFocusVisible:ur(lt.focusVisible),_groupActive:Vn(lt.active),_peerActive:ur(lt.active),_groupDisabled:Vn(lt.disabled),_peerDisabled:ur(lt.disabled),_groupInvalid:Vn(lt.invalid),_peerInvalid:ur(lt.invalid),_groupChecked:Vn(lt.checked),_peerChecked:ur(lt.checked),_groupFocusWithin:Vn(lt.focusWithin),_peerFocusWithin:ur(lt.focusWithin),_peerPlaceholderShown:ur(lt.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]"},$v=Object.keys(Ai),Cw=e=>/!(important)?$/.test(e),i0=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Tw=(e,n)=>o=>{const s=String(n),a=Cw(s),u=i0(s),c=e?`${e}.${u}`:u;let f=vn(o.__cssMap)&&c in o.__cssMap?o.__cssMap[c].varRef:n;return f=i0(f),a?`${f} !important`:f};function Sh(e){const{scale:n,transform:o,compose:s}=e;return(u,c)=>{const f=Tw(n,u)(c);let p=(o==null?void 0:o(f,c))??f;return s&&(p=s(p,c)),p}}const Ql=(...e)=>n=>e.reduce((o,s)=>s(o),n);function hn(e,n){return o=>{const s={property:o,scale:e};return s.transform=Sh({scale:e,transform:n}),s}}const _w=({rtl:e,ltr:n})=>o=>o.direction==="rtl"?e:n;function Pw(e){const{property:n,scale:o,transform:s}=e;return{scale:o,property:_w(n),transform:o?Sh({scale:o,compose:s}):s}}const zv=["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 Ew(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...zv].join(" ")}function Aw(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...zv].join(" ")}const Rw={"--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(" ")},$w={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 zw(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 Mw={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Ff={"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"},Dw=new Set(Object.values(Ff)),Bf=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Iw=e=>e.trim();function jw(e,n){if(e==null||Bf.has(e))return e;if(!(Vf(e)||Bf.has(e)))return`url('${e}')`;const a=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),u=a==null?void 0:a[1],c=a==null?void 0:a[2];if(!u||!c)return e;const f=u.includes("-gradient")?u:`${u}-gradient`,[p,...m]=c.split(",").map(Iw).filter(Boolean);if((m==null?void 0:m.length)===0)return e;const g=p in Ff?Ff[p]:p;m.unshift(g);const v=m.map(S=>{if(Dw.has(S))return S;const C=S.indexOf(" "),[A,P]=C!==-1?[S.substr(0,C),S.substr(C+1)]:[S],D=Vf(P)?P:P&&P.split(" "),k=`colors.${A}`,R=k in n.__cssMap?n.__cssMap[k].varRef:A;return D?[R,...Array.isArray(D)?D:[D]].join(" "):R});return`${f}(${v.join(", ")})`}const Vf=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Lw=(e,n)=>jw(e,n??{});function Fw(e){return/^var\(--.+\)$/.test(e)}const Bw=e=>{const n=parseFloat(e.toString()),o=e.toString().replace(String(n),"");return{unitless:!o,value:n,unit:o}},Nn=e=>n=>`${e}(${n})`,we={filter(e){return e!=="auto"?e:Rw},backdropFilter(e){return e!=="auto"?e:$w},ring(e){return zw(we.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Ew():e==="auto-gpu"?Aw():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:n}=Bw(e);return n||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,n){const o={left:"right",right:"left"};return n.direction==="rtl"?o[e]:e},degree(e){if(Fw(e)||e==null)return e;const n=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||n?`${e}deg`:e},gradient:Lw,blur:Nn("blur"),opacity:Nn("opacity"),brightness:Nn("brightness"),contrast:Nn("contrast"),dropShadow:Nn("drop-shadow"),grayscale:Nn("grayscale"),hueRotate:e=>Nn("hue-rotate")(we.degree(e)),invert:Nn("invert"),saturate:Nn("saturate"),sepia:Nn("sepia"),bgImage(e){return e==null||Vf(e)||Bf.has(e)?e:`url(${e})`},outline(e){const n=String(e)==="0"||String(e)==="none";return e!==null&&n?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:n,divide:o}=Mw[e]??{},s={flexDirection:e};return n&&(s[n]=1),o&&(s[o]=1),s}},_={borderWidths:hn("borderWidths"),borderStyles:hn("borderStyles"),colors:hn("colors"),borders:hn("borders"),gradients:hn("gradients",we.gradient),radii:hn("radii",we.px),space:hn("space",Ql(we.vh,we.px)),spaceT:hn("space",Ql(we.vh,we.px)),degreeT(e){return{property:e,transform:we.degree}},prop(e,n,o){return{property:e,scale:n,...n&&{transform:Sh({scale:n,transform:o})}}},propT(e,n){return{property:e,transform:n}},sizes:hn("sizes",Ql(we.vh,we.px)),sizesT:hn("sizes",Ql(we.vh,we.fraction)),shadows:hn("shadows"),logical:Pw,blur:hn("blur",we.blur)},cu={background:_.colors("background"),backgroundColor:_.colors("backgroundColor"),backgroundImage:_.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:we.bgClip},bgSize:_.prop("backgroundSize"),bgPosition:_.prop("backgroundPosition"),bg:_.colors("background"),bgColor:_.colors("backgroundColor"),bgPos:_.prop("backgroundPosition"),bgRepeat:_.prop("backgroundRepeat"),bgAttachment:_.prop("backgroundAttachment"),bgGradient:_.gradients("backgroundImage"),bgClip:{transform:we.bgClip}};Object.assign(cu,{bgImage:cu.backgroundImage,bgImg:cu.backgroundImage});const Ee={border:_.borders("border"),borderWidth:_.borderWidths("borderWidth"),borderStyle:_.borderStyles("borderStyle"),borderColor:_.colors("borderColor"),borderRadius:_.radii("borderRadius"),borderTop:_.borders("borderTop"),borderBlockStart:_.borders("borderBlockStart"),borderTopLeftRadius:_.radii("borderTopLeftRadius"),borderStartStartRadius:_.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:_.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:_.radii("borderTopRightRadius"),borderStartEndRadius:_.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:_.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:_.borders("borderRight"),borderInlineEnd:_.borders("borderInlineEnd"),borderBottom:_.borders("borderBottom"),borderBlockEnd:_.borders("borderBlockEnd"),borderBottomLeftRadius:_.radii("borderBottomLeftRadius"),borderBottomRightRadius:_.radii("borderBottomRightRadius"),borderLeft:_.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:_.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:_.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:_.borders(["borderLeft","borderRight"]),borderInline:_.borders("borderInline"),borderY:_.borders(["borderTop","borderBottom"]),borderBlock:_.borders("borderBlock"),borderTopWidth:_.borderWidths("borderTopWidth"),borderBlockStartWidth:_.borderWidths("borderBlockStartWidth"),borderTopColor:_.colors("borderTopColor"),borderBlockStartColor:_.colors("borderBlockStartColor"),borderTopStyle:_.borderStyles("borderTopStyle"),borderBlockStartStyle:_.borderStyles("borderBlockStartStyle"),borderBottomWidth:_.borderWidths("borderBottomWidth"),borderBlockEndWidth:_.borderWidths("borderBlockEndWidth"),borderBottomColor:_.colors("borderBottomColor"),borderBlockEndColor:_.colors("borderBlockEndColor"),borderBottomStyle:_.borderStyles("borderBottomStyle"),borderBlockEndStyle:_.borderStyles("borderBlockEndStyle"),borderLeftWidth:_.borderWidths("borderLeftWidth"),borderInlineStartWidth:_.borderWidths("borderInlineStartWidth"),borderLeftColor:_.colors("borderLeftColor"),borderInlineStartColor:_.colors("borderInlineStartColor"),borderLeftStyle:_.borderStyles("borderLeftStyle"),borderInlineStartStyle:_.borderStyles("borderInlineStartStyle"),borderRightWidth:_.borderWidths("borderRightWidth"),borderInlineEndWidth:_.borderWidths("borderInlineEndWidth"),borderRightColor:_.colors("borderRightColor"),borderInlineEndColor:_.colors("borderInlineEndColor"),borderRightStyle:_.borderStyles("borderRightStyle"),borderInlineEndStyle:_.borderStyles("borderInlineEndStyle"),borderTopRadius:_.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:_.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:_.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:_.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ee,{rounded:Ee.borderRadius,roundedTop:Ee.borderTopRadius,roundedTopLeft:Ee.borderTopLeftRadius,roundedTopRight:Ee.borderTopRightRadius,roundedTopStart:Ee.borderStartStartRadius,roundedTopEnd:Ee.borderStartEndRadius,roundedBottom:Ee.borderBottomRadius,roundedBottomLeft:Ee.borderBottomLeftRadius,roundedBottomRight:Ee.borderBottomRightRadius,roundedBottomStart:Ee.borderEndStartRadius,roundedBottomEnd:Ee.borderEndEndRadius,roundedLeft:Ee.borderLeftRadius,roundedRight:Ee.borderRightRadius,roundedStart:Ee.borderInlineStartRadius,roundedEnd:Ee.borderInlineEndRadius,borderStart:Ee.borderInlineStart,borderEnd:Ee.borderInlineEnd,borderTopStartRadius:Ee.borderStartStartRadius,borderTopEndRadius:Ee.borderStartEndRadius,borderBottomStartRadius:Ee.borderEndStartRadius,borderBottomEndRadius:Ee.borderEndEndRadius,borderStartRadius:Ee.borderInlineStartRadius,borderEndRadius:Ee.borderInlineEndRadius,borderStartWidth:Ee.borderInlineStartWidth,borderEndWidth:Ee.borderInlineEndWidth,borderStartColor:Ee.borderInlineStartColor,borderEndColor:Ee.borderInlineEndColor,borderStartStyle:Ee.borderInlineStartStyle,borderEndStyle:Ee.borderInlineEndStyle});const Vw={color:_.colors("color"),textColor:_.colors("color"),fill:_.colors("fill"),stroke:_.colors("stroke"),accentColor:_.colors("accentColor"),textFillColor:_.colors("textFillColor")},Pu={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:we.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:_.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:_.space("gap"),rowGap:_.space("rowGap"),columnGap:_.space("columnGap")};Object.assign(Pu,{flexDir:Pu.flexDirection});const mn={width:_.sizesT("width"),inlineSize:_.sizesT("inlineSize"),height:_.sizes("height"),blockSize:_.sizes("blockSize"),boxSize:_.sizes(["width","height"]),minWidth:_.sizes("minWidth"),minInlineSize:_.sizes("minInlineSize"),minHeight:_.sizes("minHeight"),minBlockSize:_.sizes("minBlockSize"),maxWidth:_.sizes("maxWidth"),maxInlineSize:_.sizes("maxInlineSize"),maxHeight:_.sizes("maxHeight"),maxBlockSize:_.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,n)=>{var a,u;return{[`@media screen and (min-width: ${((u=(a=n.__breakpoints)==null?void 0:a.get(e))==null?void 0:u.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,n)=>{var a,u;return{[`@media screen and (max-width: ${((u=(a=n.__breakpoints)==null?void 0:a.get(e))==null?void 0:u._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:_.propT("float",we.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(mn,{w:mn.width,h:mn.height,minW:mn.minWidth,maxW:mn.maxWidth,minH:mn.minHeight,maxH:mn.maxHeight,overscroll:mn.overscrollBehavior,overscrollX:mn.overscrollBehaviorX,overscrollY:mn.overscrollBehaviorY});const Nw={filter:{transform:we.filter},blur:_.blur("--chakra-blur"),brightness:_.propT("--chakra-brightness",we.brightness),contrast:_.propT("--chakra-contrast",we.contrast),hueRotate:_.propT("--chakra-hue-rotate",we.hueRotate),invert:_.propT("--chakra-invert",we.invert),saturate:_.propT("--chakra-saturate",we.saturate),dropShadow:_.propT("--chakra-drop-shadow",we.dropShadow),backdropFilter:{transform:we.backdropFilter},backdropBlur:_.blur("--chakra-backdrop-blur"),backdropBrightness:_.propT("--chakra-backdrop-brightness",we.brightness),backdropContrast:_.propT("--chakra-backdrop-contrast",we.contrast),backdropHueRotate:_.propT("--chakra-backdrop-hue-rotate",we.hueRotate),backdropInvert:_.propT("--chakra-backdrop-invert",we.invert),backdropSaturate:_.propT("--chakra-backdrop-saturate",we.saturate)},Ow={ring:{transform:we.ring},ringColor:_.colors("--chakra-ring-color"),ringOffset:_.prop("--chakra-ring-offset-width"),ringOffsetColor:_.colors("--chakra-ring-offset-color"),ringInset:_.prop("--chakra-ring-inset")},Ww={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:we.outline},outlineOffset:!0,outlineColor:_.colors("outlineColor")},Mv={gridGap:_.space("gridGap"),gridColumnGap:_.space("gridColumnGap"),gridRowGap:_.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 Uw(e,n,o,s){const a=typeof n=="string"?n.split("."):[n];for(s=0;s{const n=new WeakMap;return(s,a,u,c)=>{if(typeof s>"u")return e(s,a,u);n.has(s)||n.set(s,new Map);const f=n.get(s);if(f.has(a))return f.get(a);const p=e(s,a,u,c);return f.set(a,p),p}},Kw=Hw(Uw),Gw={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},qw={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Xd=(e,n,o)=>{const s={},a=Kw(e,n,{});for(const u in a)u in o&&o[u]!=null||(s[u]=a[u]);return s},Xw={srOnly:{transform(e){return e===!0?Gw:e==="focusable"?qw:{}}},layerStyle:{processResult:!0,transform:(e,n,o)=>Xd(n,`layerStyles.${e}`,o)},textStyle:{processResult:!0,transform:(e,n,o)=>Xd(n,`textStyles.${e}`,o)},apply:{processResult:!0,transform:(e,n,o)=>Xd(n,e,o)}},ra={position:!0,pos:_.prop("position"),zIndex:_.prop("zIndex","zIndices"),inset:_.spaceT("inset"),insetX:_.spaceT(["left","right"]),insetInline:_.spaceT("insetInline"),insetY:_.spaceT(["top","bottom"]),insetBlock:_.spaceT("insetBlock"),top:_.spaceT("top"),insetBlockStart:_.spaceT("insetBlockStart"),bottom:_.spaceT("bottom"),insetBlockEnd:_.spaceT("insetBlockEnd"),left:_.spaceT("left"),insetInlineStart:_.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:_.spaceT("right"),insetInlineEnd:_.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ra,{insetStart:ra.insetInlineStart,insetEnd:ra.insetInlineEnd});const Nf={boxShadow:_.shadows("boxShadow"),mixBlendMode:!0,blendMode:_.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:_.prop("backgroundBlendMode"),opacity:!0};Object.assign(Nf,{shadow:Nf.boxShadow});const Ue={margin:_.spaceT("margin"),marginTop:_.spaceT("marginTop"),marginBlockStart:_.spaceT("marginBlockStart"),marginRight:_.spaceT("marginRight"),marginInlineEnd:_.spaceT("marginInlineEnd"),marginBottom:_.spaceT("marginBottom"),marginBlockEnd:_.spaceT("marginBlockEnd"),marginLeft:_.spaceT("marginLeft"),marginInlineStart:_.spaceT("marginInlineStart"),marginX:_.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:_.spaceT("marginInline"),marginY:_.spaceT(["marginTop","marginBottom"]),marginBlock:_.spaceT("marginBlock"),padding:_.space("padding"),paddingTop:_.space("paddingTop"),paddingBlockStart:_.space("paddingBlockStart"),paddingRight:_.space("paddingRight"),paddingBottom:_.space("paddingBottom"),paddingBlockEnd:_.space("paddingBlockEnd"),paddingLeft:_.space("paddingLeft"),paddingInlineStart:_.space("paddingInlineStart"),paddingInlineEnd:_.space("paddingInlineEnd"),paddingX:_.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:_.space("paddingInline"),paddingY:_.space(["paddingTop","paddingBottom"]),paddingBlock:_.space("paddingBlock")};Object.assign(Ue,{m:Ue.margin,mt:Ue.marginTop,mr:Ue.marginRight,me:Ue.marginInlineEnd,marginEnd:Ue.marginInlineEnd,mb:Ue.marginBottom,ml:Ue.marginLeft,ms:Ue.marginInlineStart,marginStart:Ue.marginInlineStart,mx:Ue.marginX,my:Ue.marginY,p:Ue.padding,pt:Ue.paddingTop,py:Ue.paddingY,px:Ue.paddingX,pb:Ue.paddingBottom,pl:Ue.paddingLeft,ps:Ue.paddingInlineStart,paddingStart:Ue.paddingInlineStart,pr:Ue.paddingRight,pe:Ue.paddingInlineEnd,paddingEnd:Ue.paddingInlineEnd});const Yw={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:_.spaceT("scrollMargin"),scrollMarginTop:_.spaceT("scrollMarginTop"),scrollMarginBottom:_.spaceT("scrollMarginBottom"),scrollMarginLeft:_.spaceT("scrollMarginLeft"),scrollMarginRight:_.spaceT("scrollMarginRight"),scrollMarginX:_.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:_.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:_.spaceT("scrollPadding"),scrollPaddingTop:_.spaceT("scrollPaddingTop"),scrollPaddingBottom:_.spaceT("scrollPaddingBottom"),scrollPaddingLeft:_.spaceT("scrollPaddingLeft"),scrollPaddingRight:_.spaceT("scrollPaddingRight"),scrollPaddingX:_.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:_.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},Qw={fontFamily:_.prop("fontFamily","fonts"),fontSize:_.prop("fontSize","fontSizes",we.px),fontWeight:_.prop("fontWeight","fontWeights"),lineHeight:_.prop("lineHeight","lineHeights"),letterSpacing:_.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"}},Zw={textDecorationColor:_.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:_.shadows("textShadow")},Jw={clipPath:!0,transform:_.propT("transform",we.transform),transformOrigin:!0,translateX:_.spaceT("--chakra-translate-x"),translateY:_.spaceT("--chakra-translate-y"),skewX:_.degreeT("--chakra-skew-x"),skewY:_.degreeT("--chakra-skew-y"),scaleX:_.prop("--chakra-scale-x"),scaleY:_.prop("--chakra-scale-y"),scale:_.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:_.degreeT("--chakra-rotate")},ek={listStyleType:!0,listStylePosition:!0,listStylePos:_.prop("listStylePosition"),listStyleImage:!0,listStyleImg:_.prop("listStyleImage")},tk={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:_.prop("transitionDuration","transition.duration"),transitionProperty:_.prop("transitionProperty","transition.property"),transitionTimingFunction:_.prop("transitionTimingFunction","transition.easing")},bh=Gn({},cu,Ee,Vw,Pu,mn,Nw,Ow,Ww,Mv,Xw,ra,Nf,Ue,Yw,Qw,Zw,Jw,ek,tk);Object.assign({},Ue,mn,Pu,Mv,ra);const nk=[...Object.keys(bh),...$v],rk={...bh,...Ai},ok=e=>e in rk,ik=e=>n=>{if(!n.__breakpoints)return e;const{isResponsive:o,toArrayValue:s,media:a}=n.__breakpoints,u={};for(const c in e){let f=yn(e[c],n);if(f==null)continue;if(f=vn(f)&&o(f)?s(f):f,!Array.isArray(f)){u[c]=f;continue}const p=f.slice(0,a.length).length;for(let m=0;me.startsWith("--")&&typeof n=="string"&&!ak(n),uk=(e,n)=>{if(n==null)return n;const o=c=>{var f,p;return(p=(f=e.__cssMap)==null?void 0:f[c])==null?void 0:p.varRef},s=c=>o(c)??c,[a,u]=sk(n);return n=o(a)??s(u)??s(n),n};function ck(e){const{configs:n={},pseudos:o={},theme:s}=e,a=(u,c=!1)=>{var g;const f=yn(u,s),p=ik(f)(s);let m={};for(let v in p){const S=p[v];let C=yn(S,s);v in o&&(v=o[v]),lk(v,C)&&(C=uk(s,C));let A=n[v];if(A===!0&&(A={property:v}),vn(C)){m[v]=m[v]??{},m[v]=Gn({},m[v],a(C,!0));continue}let P=((g=A==null?void 0:A.transform)==null?void 0:g.call(A,C,s,f))??C;P=A!=null&&A.processResult?a(P,!0):P;const D=yn(A==null?void 0:A.property,s);if(!c&&(A!=null&&A.static)){const k=yn(A.static,s);m=Gn({},m,k)}if(D&&Array.isArray(D)){for(const k of D)m[k]=P;continue}if(D){D==="&"&&vn(P)?m=Gn({},m,P):m[D]=P;continue}if(vn(P)){m=Gn({},m,P);continue}m[v]=P}return m};return a}const Dv=e=>n=>ck({theme:n,pseudos:Ai,configs:bh})(e);function Ve(e){return{definePartsStyle(n){return n},defineMultiStyleConfig(n){return{parts:e,...n}}}}function dk(e,n){if(Array.isArray(e))return e;if(vn(e))return n(e);if(e!=null)return[e]}function fk(e,n){for(let o=n+1;o{Gn(f,{[$]:g?R[$]:{[k]:R[$]}})});continue}if(!v){g?Gn(f,R):f[k]=R;continue}f[k]=R}}return f}}function pk(e){return n=>{const{variant:o,size:s,theme:a}=n,u=hk(a);return Gn({},yn(e.baseStyle??{},n),u(e,"sizes",s,n),u(e,"variants",o,n))}}function br(e){return Av(e,["styleConfig","size","variant","colorScheme"])}function Iv(e){return vn(e)&&e.reference?e.reference:String(e)}const Bu=(e,...n)=>n.map(Iv).join(` ${e} `).replace(/calc/g,""),s0=(...e)=>`calc(${Bu("+",...e)})`,a0=(...e)=>`calc(${Bu("-",...e)})`,Of=(...e)=>`calc(${Bu("*",...e)})`,l0=(...e)=>`calc(${Bu("/",...e)})`,u0=e=>{const n=Iv(e);return n!=null&&!Number.isNaN(parseFloat(n))?String(n).startsWith("-")?String(n).slice(1):`-${n}`:Of(n,-1)},cr=Object.assign(e=>({add:(...n)=>cr(s0(e,...n)),subtract:(...n)=>cr(a0(e,...n)),multiply:(...n)=>cr(Of(e,...n)),divide:(...n)=>cr(l0(e,...n)),negate:()=>cr(u0(e)),toString:()=>e.toString()}),{add:s0,subtract:a0,multiply:Of,divide:l0,negate:u0});function mk(e,n="-"){return e.replace(/\s+/g,n)}function gk(e){const n=mk(e.toString());return vk(yk(n))}function yk(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function vk(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Sk(e,n=""){return[n,e].filter(Boolean).join("-")}function bk(e,n){return`var(${e}${n?`, ${n}`:""})`}function xk(e,n=""){return gk(`--${Sk(e,n)}`)}function de(e,n,o){const s=xk(e,o);return{variable:s,reference:bk(s,n)}}function wk(e,n){const o={};for(const s of n){if(Array.isArray(s)){const[a,u]=s;o[a]=de(`${e}-${a}`,u);continue}o[s]=de(`${e}-${s}`)}return o}const kk=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Ck(e){return pw(e,kk)}function Tk(e){return e.semanticTokens}function _k(e){const{__cssMap:n,__cssVars:o,__breakpoints:s,...a}=e;return a}function Pk(e){const n=Ck(e),o=Tk(e),s=u=>$v.includes(u)||u==="default",a={};return n0(n,(u,c)=>{u!=null&&(a[c.join(".")]={isSemantic:!1,value:u})}),n0(o,(u,c)=>{u!=null&&(a[c.join(".")]={isSemantic:!0,value:u})},{stop:u=>Object.keys(u).every(s)}),a}function c0(e,n){return de(String(e).replace(/\./g,"-"),void 0,n)}function Ek(e){var c;const n=Pk(e),o=(c=e.config)==null?void 0:c.cssVarPrefix;let s={};const a={};function u(f,p){const g=[String(f).split(".")[0],p].join(".");if(!n[g])return p;const{reference:S}=c0(g,o);return S}for(const[f,p]of Object.entries(n)){const{isSemantic:m,value:g}=p,{variable:v,reference:S}=c0(f,o);if(!m){if(f.startsWith("space")){const A=f.split("."),[P,...D]=A,k=`${P}.-${D.join(".")}`,R=cr.negate(g),$=cr.negate(S);a[k]={value:R,var:v,varRef:$}}s[v]=g,a[f]={value:g,var:v,varRef:S};continue}const C=vn(g)?g:{default:g};s=Gn(s,Object.entries(C).reduce((A,[P,D])=>{if(!D)return A;const k=u(f,`${D}`);if(P==="default")return A[v]=k,A;const R=(Ai==null?void 0:Ai[P])??P;return A[R]={[v]:k},A},{})),a[f]={value:S,var:v,varRef:S}}return{cssVars:s,cssMap:a}}function Ak(e){const n=_k(e),{cssMap:o,cssVars:s}=Ek(n);return Object.assign(n,{__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"},...s},__cssMap:o,__breakpoints:lw(n.breakpoints)}),n}function ze(e,n={}){let o=!1;function s(){if(!o){o=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function a(...g){s();for(const v of g)n[v]=p(v);return ze(e,n)}function u(...g){for(const v of g)v in n||(n[v]=p(v));return ze(e,n)}function c(){return Object.fromEntries(Object.entries(n).map(([v,S])=>[v,S.selector]))}function f(){return Object.fromEntries(Object.entries(n).map(([v,S])=>[v,S.className]))}function p(g){const C=`chakra-${(["container","root"].includes(g??"")?[e]:[e,g]).filter(Boolean).join("__")}`;return{className:C,selector:`.${C}`,toString:()=>g}}return{parts:a,toPart:p,extend:u,selectors:c,classnames:f,get keys(){return Object.keys(n)},__type:{}}}const Rk=ze("accordion").parts("root","container","button","panel","icon"),$k=ze("alert").parts("title","description","container","icon","spinner"),zk=ze("avatar").parts("label","badge","container","excessLabel","group"),Mk=ze("breadcrumb").parts("link","item","container","separator");ze("button").parts();const Dk=ze("checkbox").parts("control","icon","container","label");ze("progress").parts("track","filledTrack","label");const Ik=ze("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),jk=ze("editable").parts("preview","input","textarea"),Lk=ze("form").parts("container","requiredIndicator","helperText"),Fk=ze("formError").parts("text","icon"),Bk=ze("input").parts("addon","field","element","group"),Vk=ze("list").parts("container","item","icon"),Nk=ze("menu").parts("button","list","item","groupTitle","icon","command","divider"),Ok=ze("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),Wk=ze("numberinput").parts("root","field","stepperGroup","stepper");ze("pininput").parts("field");const Uk=ze("popover").parts("content","header","body","footer","popper","arrow","closeButton"),Hk=ze("progress").parts("label","filledTrack","track"),Kk=ze("radio").parts("container","control","label"),Gk=ze("select").parts("field","icon"),qk=ze("slider").parts("container","track","thumb","filledTrack","mark"),Xk=ze("stat").parts("container","label","helpText","number","icon"),Yk=ze("switch").parts("container","track","thumb","label"),Qk=ze("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Zk=ze("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Jk=ze("tag").parts("container","label","closeButton"),eC=ze("card").parts("container","header","body","footer");ze("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:tC,defineMultiStyleConfig:nC}=Ve(Rk.keys),rC={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},oC={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},iC={pt:"2",px:"4",pb:"5"},sC={fontSize:"1.25em"},aC=tC({container:rC,button:oC,panel:iC,icon:sC}),lC=nC({baseStyle:aC});function _o(e,n,o){return Math.min(Math.max(e,o),n)}class uC extends Error{constructor(n){super(`Failed to parse color: "${n}"`)}}var qs=uC;function xh(e){if(typeof e!="string")throw new qs(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let n=e.trim();n=yC.test(e)?fC(e):e;const o=hC.exec(n);if(o){const c=Array.from(o).slice(1);return[...c.slice(0,3).map(f=>parseInt(ha(f,2),16)),parseInt(ha(c[3]||"f",2),16)/255]}const s=pC.exec(n);if(s){const c=Array.from(s).slice(1);return[...c.slice(0,3).map(f=>parseInt(f,16)),parseInt(c[3]||"ff",16)/255]}const a=mC.exec(n);if(a){const c=Array.from(a).slice(1);return[...c.slice(0,3).map(f=>parseInt(f,10)),parseFloat(c[3]||"1")]}const u=gC.exec(n);if(u){const[c,f,p,m]=Array.from(u).slice(1).map(parseFloat);if(_o(0,100,f)!==f)throw new qs(e);if(_o(0,100,p)!==p)throw new qs(e);return[...vC(c,f,p),Number.isNaN(m)?1:m]}throw new qs(e)}function cC(e){let n=5381,o=e.length;for(;o;)n=n*33^e.charCodeAt(--o);return(n>>>0)%2341}const d0=e=>parseInt(e.replace(/_/g,""),36),dC="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,n)=>{const o=d0(n.substring(0,3)),s=d0(n.substring(3)).toString(16);let a="";for(let u=0;u<6-s.length;u++)a+="0";return e[o]=`${a}${s}`,e},{});function fC(e){const n=e.toLowerCase().trim(),o=dC[cC(n)];if(!o)throw new qs(e);return`#${o}`}const ha=(e,n)=>Array.from(Array(n)).map(()=>e).join(""),hC=new RegExp(`^#${ha("([a-f0-9])",3)}([a-f0-9])?$`,"i"),pC=new RegExp(`^#${ha("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),mC=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ha(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),gC=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,yC=/^[a-z]+$/i,f0=e=>Math.round(e*255),vC=(e,n,o)=>{let s=o/100;if(n===0)return[s,s,s].map(f0);const a=(e%360+360)%360/60,u=(1-Math.abs(2*s-1))*(n/100),c=u*(1-Math.abs(a%2-1));let f=0,p=0,m=0;a>=0&&a<1?(f=u,p=c):a>=1&&a<2?(f=c,p=u):a>=2&&a<3?(p=u,m=c):a>=3&&a<4?(p=c,m=u):a>=4&&a<5?(f=c,m=u):a>=5&&a<6&&(f=u,m=c);const g=s-u/2,v=f+g,S=p+g,C=m+g;return[v,S,C].map(f0)};function SC(e,n,o,s){return`rgba(${_o(0,255,e).toFixed()}, ${_o(0,255,n).toFixed()}, ${_o(0,255,o).toFixed()}, ${parseFloat(_o(0,1,s).toFixed(3))})`}function bC(e,n){const[o,s,a,u]=xh(e);return SC(o,s,a,u-n)}function xC(e){const[n,o,s,a]=xh(e);let u=c=>{const f=_o(0,255,c).toString(16);return f.length===1?`0${f}`:f};return`#${u(n)}${u(o)}${u(s)}${a<1?u(Math.round(a*255)):""}`}const wC=e=>Object.keys(e).length===0;function kC(e,n,o,s,a){for(n=n.split?n.split("."):n,s=0;s{const s=kC(e,`colors.${n}`,n);try{return xC(s),s}catch{return"#000000"}},CC=e=>{const[n,o,s]=xh(e);return(n*299+o*587+s*114)/1e3},TC=e=>n=>{const o=Mt(n,e);return CC(o)<128?"dark":"light"},_C=e=>n=>TC(e)(n)==="dark",Ii=(e,n)=>o=>{const s=Mt(o,e);return bC(s,1-n)};function h0(e="1rem",n="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${n} 25%, + transparent 25%, + transparent 50%, + ${n} 50%, + ${n} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}const PC=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function EC(e){const n=PC();return!e||wC(e)?n:e.string&&e.colors?RC(e.string,e.colors):e.string&&!e.colors?AC(e.string):e.colors&&!e.string?$C(e.colors):n}function AC(e){let n=0;if(e.length===0)return n.toString();for(let s=0;s>s*8&255;o+=`00${a.toString(16)}`.substr(-2)}return o}function RC(e,n){let o=0;if(e.length===0)return n[0];for(let s=0;so.colorMode==="dark"?n:e}function wh(e){const{orientation:n,vertical:o,horizontal:s}=e;return n?n==="vertical"?o:s:{}}function jv(e){return vn(e)&&e.reference?e.reference:String(e)}const Vu=(e,...n)=>n.map(jv).join(` ${e} `).replace(/calc/g,""),p0=(...e)=>`calc(${Vu("+",...e)})`,m0=(...e)=>`calc(${Vu("-",...e)})`,Wf=(...e)=>`calc(${Vu("*",...e)})`,g0=(...e)=>`calc(${Vu("/",...e)})`,y0=e=>{const n=jv(e);return n!=null&&!Number.isNaN(parseFloat(n))?String(n).startsWith("-")?String(n).slice(1):`-${n}`:Wf(n,-1)},dr=Object.assign(e=>({add:(...n)=>dr(p0(e,...n)),subtract:(...n)=>dr(m0(e,...n)),multiply:(...n)=>dr(Wf(e,...n)),divide:(...n)=>dr(g0(e,...n)),negate:()=>dr(y0(e)),toString:()=>e.toString()}),{add:p0,subtract:m0,multiply:Wf,divide:g0,negate:y0});function zC(e){return!Number.isInteger(parseFloat(e.toString()))}function MC(e,n="-"){return e.replace(/\s+/g,n)}function Lv(e){const n=MC(e.toString());return n.includes("\\.")?e:zC(e)?n.replace(".","\\."):e}function DC(e,n=""){return[n,Lv(e)].filter(Boolean).join("-")}function IC(e,n){return`var(${Lv(e)}${n?`, ${n}`:""})`}function jC(e,n=""){return`--${DC(e,n)}`}function ut(e,n){const o=jC(e,n==null?void 0:n.prefix);return{variable:o,reference:IC(o,LC(n==null?void 0:n.fallback))}}function LC(e){return e==null?void 0:e.reference}const{definePartsStyle:Ca,defineMultiStyleConfig:FC}=Ve($k.keys),Xt=de("alert-fg"),yr=de("alert-bg"),BC=Ca({container:{bg:yr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Xt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Xt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function kh(e){const{theme:n,colorScheme:o}=e,s=Ii(`${o}.200`,.16)(n);return{light:`colors.${o}.100`,dark:s}}const VC=Ca(e=>{const{colorScheme:n}=e,o=kh(e);return{container:{[Xt.variable]:`colors.${n}.600`,[yr.variable]:o.light,_dark:{[Xt.variable]:`colors.${n}.200`,[yr.variable]:o.dark}}}}),NC=Ca(e=>{const{colorScheme:n}=e,o=kh(e);return{container:{[Xt.variable]:`colors.${n}.600`,[yr.variable]:o.light,_dark:{[Xt.variable]:`colors.${n}.200`,[yr.variable]:o.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Xt.reference}}}),OC=Ca(e=>{const{colorScheme:n}=e,o=kh(e);return{container:{[Xt.variable]:`colors.${n}.600`,[yr.variable]:o.light,_dark:{[Xt.variable]:`colors.${n}.200`,[yr.variable]:o.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Xt.reference}}}),WC=Ca(e=>{const{colorScheme:n}=e;return{container:{[Xt.variable]:"colors.white",[yr.variable]:`colors.${n}.600`,_dark:{[Xt.variable]:"colors.gray.900",[yr.variable]:`colors.${n}.200`},color:Xt.reference}}}),UC={subtle:VC,"left-accent":NC,"top-accent":OC,solid:WC},HC=FC({baseStyle:BC,variants:UC,defaultProps:{variant:"subtle",colorScheme:"blue"}}),Fv={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"},KC={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"},GC={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Bv={...Fv,...KC,container:GC},qC=e=>typeof e=="function";function Dt(e,...n){return qC(e)?e(...n):e}const{definePartsStyle:Vv,defineMultiStyleConfig:XC}=Ve(zk.keys),Ri=de("avatar-border-color"),oa=de("avatar-bg"),pa=de("avatar-font-size"),ji=de("avatar-size"),YC={borderRadius:"full",border:"0.2em solid",borderColor:Ri.reference,[Ri.variable]:"white",_dark:{[Ri.variable]:"colors.gray.800"}},QC={bg:oa.reference,fontSize:pa.reference,width:ji.reference,height:ji.reference,lineHeight:"1",[oa.variable]:"colors.gray.200",_dark:{[oa.variable]:"colors.whiteAlpha.400"}},ZC=e=>{const{name:n,theme:o}=e,s=n?EC({string:n}):"colors.gray.400",a=_C(s)(o);let u="white";return a||(u="gray.800"),{bg:oa.reference,fontSize:pa.reference,color:u,borderColor:Ri.reference,verticalAlign:"top",width:ji.reference,height:ji.reference,"&:not([data-loaded])":{[oa.variable]:s},[Ri.variable]:"colors.white",_dark:{[Ri.variable]:"colors.gray.800"}}},JC={fontSize:pa.reference,lineHeight:"1"},e2=Vv(e=>({badge:Dt(YC,e),excessLabel:Dt(QC,e),container:Dt(ZC,e),label:JC}));function Hr(e){const n=e!=="100%"?Bv[e]:void 0;return Vv({container:{[ji.variable]:n??e,[pa.variable]:`calc(${n??e} / 2.5)`},excessLabel:{[ji.variable]:n??e,[pa.variable]:`calc(${n??e} / 2.5)`}})}const t2={"2xs":Hr(4),xs:Hr(6),sm:Hr(8),md:Hr(12),lg:Hr(16),xl:Hr(24),"2xl":Hr(32),full:Hr("100%")},n2=XC({baseStyle:e2,sizes:t2,defaultProps:{size:"md"}}),tt=wk("badge",["bg","color","shadow"]),r2={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:tt.bg.reference,color:tt.color.reference,boxShadow:tt.shadow.reference},o2=e=>{const{colorScheme:n,theme:o}=e,s=Ii(`${n}.500`,.6)(o);return{[tt.bg.variable]:`colors.${n}.500`,[tt.color.variable]:"colors.white",_dark:{[tt.bg.variable]:s,[tt.color.variable]:"colors.whiteAlpha.800"}}},i2=e=>{const{colorScheme:n,theme:o}=e,s=Ii(`${n}.200`,.16)(o);return{[tt.bg.variable]:`colors.${n}.100`,[tt.color.variable]:`colors.${n}.800`,_dark:{[tt.bg.variable]:s,[tt.color.variable]:`colors.${n}.200`}}},s2=e=>{const{colorScheme:n,theme:o}=e,s=Ii(`${n}.200`,.8)(o);return{[tt.color.variable]:`colors.${n}.500`,_dark:{[tt.color.variable]:s},[tt.shadow.variable]:`inset 0 0 0px 1px ${tt.color.reference}`}},a2={solid:o2,subtle:i2,outline:s2},ia={baseStyle:r2,variants:a2,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:l2,definePartsStyle:u2}=Ve(Mk.keys),Yd=de("breadcrumb-link-decor"),c2={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Yd.reference,[Yd.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Yd.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},d2=u2({link:c2}),f2=l2({baseStyle:d2}),h2={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"}}},Nv=e=>{const{colorScheme:n,theme:o}=e;if(n==="gray")return{color:ce("gray.800","whiteAlpha.900")(e),_hover:{bg:ce("gray.100","whiteAlpha.200")(e)},_active:{bg:ce("gray.200","whiteAlpha.300")(e)}};const s=Ii(`${n}.200`,.12)(o),a=Ii(`${n}.200`,.24)(o);return{color:ce(`${n}.600`,`${n}.200`)(e),bg:"transparent",_hover:{bg:ce(`${n}.50`,s)(e)},_active:{bg:ce(`${n}.100`,a)(e)}}},p2=e=>{const{colorScheme:n}=e,o=ce("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:n==="gray"?o:"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"},...Dt(Nv,e)}},m2={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},g2=e=>{const{colorScheme:n}=e;if(n==="gray"){const f=ce("gray.100","whiteAlpha.200")(e);return{bg:f,color:ce("gray.800","whiteAlpha.900")(e),_hover:{bg:ce("gray.200","whiteAlpha.300")(e),_disabled:{bg:f}},_active:{bg:ce("gray.300","whiteAlpha.400")(e)}}}const{bg:o=`${n}.500`,color:s="white",hoverBg:a=`${n}.600`,activeBg:u=`${n}.700`}=m2[n]??{},c=ce(o,`${n}.200`)(e);return{bg:c,color:ce(s,"gray.800")(e),_hover:{bg:ce(a,`${n}.300`)(e),_disabled:{bg:c}},_active:{bg:ce(u,`${n}.400`)(e)}}},y2=e=>{const{colorScheme:n}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ce(`${n}.500`,`${n}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ce(`${n}.700`,`${n}.500`)(e)}}},v2={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},S2={ghost:Nv,outline:p2,solid:g2,link:y2,unstyled:v2},b2={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"}},x2={baseStyle:h2,variants:S2,sizes:b2,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Eo,defineMultiStyleConfig:w2}=Ve(eC.keys),Eu=de("card-bg"),pr=de("card-padding"),Ov=de("card-shadow"),du=de("card-radius"),Wv=de("card-border-width","0"),Uv=de("card-border-color"),k2=Eo({container:{[Eu.variable]:"colors.chakra-body-bg",backgroundColor:Eu.reference,boxShadow:Ov.reference,borderRadius:du.reference,color:"chakra-body-text",borderWidth:Wv.reference,borderColor:Uv.reference},body:{padding:pr.reference,flex:"1 1 0%"},header:{padding:pr.reference},footer:{padding:pr.reference}}),C2={sm:Eo({container:{[du.variable]:"radii.base",[pr.variable]:"space.3"}}),md:Eo({container:{[du.variable]:"radii.md",[pr.variable]:"space.5"}}),lg:Eo({container:{[du.variable]:"radii.xl",[pr.variable]:"space.7"}})},T2={elevated:Eo({container:{[Ov.variable]:"shadows.base",_dark:{[Eu.variable]:"colors.gray.700"}}}),outline:Eo({container:{[Wv.variable]:"1px",[Uv.variable]:"colors.chakra-border-color"}}),filled:Eo({container:{[Eu.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[pr.variable]:0},header:{[pr.variable]:0},footer:{[pr.variable]:0}}},_2=w2({baseStyle:k2,variants:T2,sizes:C2,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:fu,defineMultiStyleConfig:P2}=Ve(Dk.keys),sa=de("checkbox-size"),E2=e=>{const{colorScheme:n}=e;return{w:sa.reference,h:sa.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ce(`${n}.500`,`${n}.200`)(e),borderColor:ce(`${n}.500`,`${n}.200`)(e),color:ce("white","gray.900")(e),_hover:{bg:ce(`${n}.600`,`${n}.300`)(e),borderColor:ce(`${n}.600`,`${n}.300`)(e)},_disabled:{borderColor:ce("gray.200","transparent")(e),bg:ce("gray.200","whiteAlpha.300")(e),color:ce("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ce(`${n}.500`,`${n}.200`)(e),borderColor:ce(`${n}.500`,`${n}.200`)(e),color:ce("white","gray.900")(e)},_disabled:{bg:ce("gray.100","whiteAlpha.100")(e),borderColor:ce("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ce("red.500","red.300")(e)}}},A2={_disabled:{cursor:"not-allowed"}},R2={userSelect:"none",_disabled:{opacity:.4}},$2={transitionProperty:"transform",transitionDuration:"normal"},z2=fu(e=>({icon:$2,container:A2,control:Dt(E2,e),label:R2})),M2={sm:fu({control:{[sa.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:fu({control:{[sa.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:fu({control:{[sa.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},qr=P2({baseStyle:z2,sizes:M2,defaultProps:{size:"md",colorScheme:"blue"}}),aa=ut("close-button-size"),Ns=ut("close-button-bg"),D2={w:[aa.reference],h:[aa.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ns.variable]:"colors.blackAlpha.100",_dark:{[Ns.variable]:"colors.whiteAlpha.100"}},_active:{[Ns.variable]:"colors.blackAlpha.200",_dark:{[Ns.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ns.reference},I2={lg:{[aa.variable]:"sizes.10",fontSize:"md"},md:{[aa.variable]:"sizes.8",fontSize:"xs"},sm:{[aa.variable]:"sizes.6",fontSize:"2xs"}},j2={baseStyle:D2,sizes:I2,defaultProps:{size:"md"}},{variants:L2,defaultProps:F2}=ia,B2={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:tt.bg.reference,color:tt.color.reference,boxShadow:tt.shadow.reference},V2={baseStyle:B2,variants:L2,defaultProps:F2},N2={w:"100%",mx:"auto",maxW:"prose",px:"4"},O2={baseStyle:N2},W2={opacity:.6,borderColor:"inherit"},U2={borderStyle:"solid"},H2={borderStyle:"dashed"},K2={solid:U2,dashed:H2},G2={baseStyle:W2,variants:K2,defaultProps:{variant:"solid"}},{definePartsStyle:Uf,defineMultiStyleConfig:q2}=Ve(Ik.keys),Qd=de("drawer-bg"),Zd=de("drawer-box-shadow");function yi(e){return Uf(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const X2={bg:"blackAlpha.600",zIndex:"modal"},Y2={display:"flex",zIndex:"modal",justifyContent:"center"},Q2=e=>{const{isFullHeight:n}=e;return{...n&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Qd.variable]:"colors.white",[Zd.variable]:"shadows.lg",_dark:{[Qd.variable]:"colors.gray.700",[Zd.variable]:"shadows.dark-lg"},bg:Qd.reference,boxShadow:Zd.reference}},Z2={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},J2={position:"absolute",top:"2",insetEnd:"3"},eT={px:"6",py:"2",flex:"1",overflow:"auto"},tT={px:"6",py:"4"},nT=Uf(e=>({overlay:X2,dialogContainer:Y2,dialog:Dt(Q2,e),header:Z2,closeButton:J2,body:eT,footer:tT})),rT={xs:yi("xs"),sm:yi("md"),md:yi("lg"),lg:yi("2xl"),xl:yi("4xl"),full:yi("full")},oT=q2({baseStyle:nT,sizes:rT,defaultProps:{size:"xs"}}),{definePartsStyle:iT,defineMultiStyleConfig:sT}=Ve(jk.keys),aT={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},lT={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},uT={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},cT=iT({preview:aT,input:lT,textarea:uT}),dT=sT({baseStyle:cT}),{definePartsStyle:fT,defineMultiStyleConfig:hT}=Ve(Lk.keys),$i=de("form-control-color"),pT={marginStart:"1",[$i.variable]:"colors.red.500",_dark:{[$i.variable]:"colors.red.300"},color:$i.reference},mT={mt:"2",[$i.variable]:"colors.gray.600",_dark:{[$i.variable]:"colors.whiteAlpha.600"},color:$i.reference,lineHeight:"normal",fontSize:"sm"},gT=fT({container:{width:"100%",position:"relative"},requiredIndicator:pT,helperText:mT}),yT=hT({baseStyle:gT}),{definePartsStyle:vT,defineMultiStyleConfig:ST}=Ve(Fk.keys),zi=de("form-error-color"),bT={[zi.variable]:"colors.red.500",_dark:{[zi.variable]:"colors.red.300"},color:zi.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},xT={marginEnd:"0.5em",[zi.variable]:"colors.red.500",_dark:{[zi.variable]:"colors.red.300"},color:zi.reference},wT=vT({text:bT,icon:xT}),kT=ST({baseStyle:wT}),CT={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},TT={baseStyle:CT},_T={fontFamily:"heading",fontWeight:"bold"},PT={"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}},ET={baseStyle:_T,sizes:PT,defaultProps:{size:"xl"}},{definePartsStyle:hr,defineMultiStyleConfig:AT}=Ve(Bk.keys),vi=de("input-height"),Si=de("input-font-size"),bi=de("input-padding"),xi=de("input-border-radius"),RT=hr({addon:{height:vi.reference,fontSize:Si.reference,px:bi.reference,borderRadius:xi.reference},field:{width:"100%",height:vi.reference,fontSize:Si.reference,px:bi.reference,borderRadius:xi.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Kr={lg:{[Si.variable]:"fontSizes.lg",[bi.variable]:"space.4",[xi.variable]:"radii.md",[vi.variable]:"sizes.12"},md:{[Si.variable]:"fontSizes.md",[bi.variable]:"space.4",[xi.variable]:"radii.md",[vi.variable]:"sizes.10"},sm:{[Si.variable]:"fontSizes.sm",[bi.variable]:"space.3",[xi.variable]:"radii.sm",[vi.variable]:"sizes.8"},xs:{[Si.variable]:"fontSizes.xs",[bi.variable]:"space.2",[xi.variable]:"radii.sm",[vi.variable]:"sizes.6"}},$T={lg:hr({field:Kr.lg,group:Kr.lg}),md:hr({field:Kr.md,group:Kr.md}),sm:hr({field:Kr.sm,group:Kr.sm}),xs:hr({field:Kr.xs,group:Kr.xs})};function Ch(e){const{focusBorderColor:n,errorBorderColor:o}=e;return{focusBorderColor:n||ce("blue.500","blue.300")(e),errorBorderColor:o||ce("red.500","red.300")(e)}}const zT=hr(e=>{const{theme:n}=e,{focusBorderColor:o,errorBorderColor:s}=Ch(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ce("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Mt(n,s),boxShadow:`0 0 0 1px ${Mt(n,s)}`},_focusVisible:{zIndex:1,borderColor:Mt(n,o),boxShadow:`0 0 0 1px ${Mt(n,o)}`}},addon:{border:"1px solid",borderColor:ce("inherit","whiteAlpha.50")(e),bg:ce("gray.100","whiteAlpha.300")(e)}}}),MT=hr(e=>{const{theme:n}=e,{focusBorderColor:o,errorBorderColor:s}=Ch(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ce("gray.100","whiteAlpha.50")(e),_hover:{bg:ce("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Mt(n,s)},_focusVisible:{bg:"transparent",borderColor:Mt(n,o)}},addon:{border:"2px solid",borderColor:"transparent",bg:ce("gray.100","whiteAlpha.50")(e)}}}),DT=hr(e=>{const{theme:n}=e,{focusBorderColor:o,errorBorderColor:s}=Ch(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Mt(n,s),boxShadow:`0px 1px 0px 0px ${Mt(n,s)}`},_focusVisible:{borderColor:Mt(n,o),boxShadow:`0px 1px 0px 0px ${Mt(n,o)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),IT=hr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),jT={outline:zT,filled:MT,flushed:DT,unstyled:IT},$e=AT({baseStyle:RT,sizes:$T,variants:jT,defaultProps:{size:"md",variant:"outline"}}),Jd=de("kbd-bg"),LT={[Jd.variable]:"colors.gray.100",_dark:{[Jd.variable]:"colors.whiteAlpha.100"},bg:Jd.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},FT={baseStyle:LT},BT={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},VT={baseStyle:BT},{defineMultiStyleConfig:NT,definePartsStyle:OT}=Ve(Vk.keys),WT={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},UT=OT({icon:WT}),HT=NT({baseStyle:UT}),{defineMultiStyleConfig:KT,definePartsStyle:GT}=Ve(Nk.keys),Wn=de("menu-bg"),ef=de("menu-shadow"),qT={[Wn.variable]:"#fff",[ef.variable]:"shadows.sm",_dark:{[Wn.variable]:"colors.gray.700",[ef.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Wn.reference,boxShadow:ef.reference},XT={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Wn.variable]:"colors.gray.100",_dark:{[Wn.variable]:"colors.whiteAlpha.100"}},_active:{[Wn.variable]:"colors.gray.200",_dark:{[Wn.variable]:"colors.whiteAlpha.200"}},_expanded:{[Wn.variable]:"colors.gray.100",_dark:{[Wn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Wn.reference},YT={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},QT={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},ZT={opacity:.6},JT={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},e_={transitionProperty:"common",transitionDuration:"normal"},t_=GT({button:e_,list:qT,item:XT,groupTitle:YT,icon:QT,command:ZT,divider:JT}),n_=KT({baseStyle:t_}),{defineMultiStyleConfig:r_,definePartsStyle:Hf}=Ve(Ok.keys),tf=de("modal-bg"),nf=de("modal-shadow"),o_={bg:"blackAlpha.600",zIndex:"modal"},i_=e=>{const{isCentered:n,scrollBehavior:o}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:n?"center":"flex-start",overflow:o==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},s_=e=>{const{isCentered:n,scrollBehavior:o}=e;return{borderRadius:"md",color:"inherit",my:n?"auto":"16",mx:n?"auto":void 0,zIndex:"modal",maxH:o==="inside"?"calc(100% - 7.5rem)":void 0,[tf.variable]:"colors.white",[nf.variable]:"shadows.lg",_dark:{[tf.variable]:"colors.gray.700",[nf.variable]:"shadows.dark-lg"},bg:tf.reference,boxShadow:nf.reference}},a_={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},l_={position:"absolute",top:"2",insetEnd:"3"},u_=e=>{const{scrollBehavior:n}=e;return{px:"6",py:"2",flex:"1",overflow:n==="inside"?"auto":void 0}},c_={px:"6",py:"4"},d_=Hf(e=>({overlay:o_,dialogContainer:Dt(i_,e),dialog:Dt(s_,e),header:a_,closeButton:l_,body:Dt(u_,e),footer:c_}));function En(e){return Hf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const f_={xs:En("xs"),sm:En("sm"),md:En("md"),lg:En("lg"),xl:En("xl"),"2xl":En("2xl"),"3xl":En("3xl"),"4xl":En("4xl"),"5xl":En("5xl"),"6xl":En("6xl"),full:En("full")},h_=r_({baseStyle:d_,sizes:f_,defaultProps:{size:"md"}}),Hv={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:p_,definePartsStyle:Kv}=Ve(Wk.keys),Th=ut("number-input-stepper-width"),Gv=ut("number-input-input-padding"),m_=dr(Th).add("0.5rem").toString(),rf=ut("number-input-bg"),of=ut("number-input-color"),sf=ut("number-input-border-color"),g_={[Th.variable]:"sizes.6",[Gv.variable]:m_},y_=e=>{var n;return((n=Dt($e.baseStyle,e))==null?void 0:n.field)??{}},v_={width:Th.reference},S_={borderStart:"1px solid",borderStartColor:sf.reference,color:of.reference,bg:rf.reference,[of.variable]:"colors.chakra-body-text",[sf.variable]:"colors.chakra-border-color",_dark:{[of.variable]:"colors.whiteAlpha.800",[sf.variable]:"colors.whiteAlpha.300"},_active:{[rf.variable]:"colors.gray.200",_dark:{[rf.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},b_=Kv(e=>({root:g_,field:Dt(y_,e)??{},stepperGroup:v_,stepper:S_}));function Zl(e){var u,c;const n=(u=$e.sizes)==null?void 0:u[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=((c=n.field)==null?void 0:c.fontSize)??"md",a=Hv.fontSizes[s];return Kv({field:{...n.field,paddingInlineEnd:Gv.reference,verticalAlign:"top"},stepper:{fontSize:dr(a).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}const x_={xs:Zl("xs"),sm:Zl("sm"),md:Zl("md"),lg:Zl("lg")},w_=p_({baseStyle:b_,sizes:x_,variants:$e.variants,defaultProps:$e.defaultProps});var rv;const k_={...(rv=$e.baseStyle)==null?void 0:rv.field,textAlign:"center"},C_={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 ov;const T_={outline:e=>{var n,o;return((o=Dt((n=$e.variants)==null?void 0:n.outline,e))==null?void 0:o.field)??{}},flushed:e=>{var n,o;return((o=Dt((n=$e.variants)==null?void 0:n.flushed,e))==null?void 0:o.field)??{}},filled:e=>{var n,o;return((o=Dt((n=$e.variants)==null?void 0:n.filled,e))==null?void 0:o.field)??{}},unstyled:((ov=$e.variants)==null?void 0:ov.unstyled.field)??{}},__={baseStyle:k_,sizes:C_,variants:T_,defaultProps:$e.defaultProps},{defineMultiStyleConfig:P_,definePartsStyle:E_}=Ve(Uk.keys),Jl=ut("popper-bg"),A_=ut("popper-arrow-bg"),v0=ut("popper-arrow-shadow-color"),R_={zIndex:"popover"},$_={[Jl.variable]:"colors.white",bg:Jl.reference,[A_.variable]:Jl.reference,[v0.variable]:"colors.gray.200",_dark:{[Jl.variable]:"colors.gray.700",[v0.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},z_={px:3,py:2,borderBottomWidth:"1px"},M_={px:3,py:2},D_={px:3,py:2,borderTopWidth:"1px"},I_={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},j_=E_({popper:R_,content:$_,header:z_,body:M_,footer:D_,closeButton:I_}),L_=P_({baseStyle:j_}),{defineMultiStyleConfig:F_,definePartsStyle:Xs}=Ve(Hk.keys),B_=e=>{const{colorScheme:n,theme:o,isIndeterminate:s,hasStripe:a}=e,u=ce(h0(),h0("1rem","rgba(0,0,0,0.1)"))(e),c=ce(`${n}.500`,`${n}.200`)(e),f=`linear-gradient( + to right, + transparent 0%, + ${Mt(o,c)} 50%, + transparent 100% + )`;return{...!s&&a&&u,...s?{bgImage:f}:{bgColor:c}}},V_={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},N_=e=>({bg:ce("gray.100","whiteAlpha.300")(e)}),O_=e=>({transitionProperty:"common",transitionDuration:"slow",...B_(e)}),W_=Xs(e=>({label:V_,filledTrack:O_(e),track:N_(e)})),U_={xs:Xs({track:{h:"1"}}),sm:Xs({track:{h:"2"}}),md:Xs({track:{h:"3"}}),lg:Xs({track:{h:"4"}})},H_=F_({sizes:U_,baseStyle:W_,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:K_,definePartsStyle:hu}=Ve(Kk.keys),G_=e=>{var o;const n=(o=Dt(qr.baseStyle,e))==null?void 0:o.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},q_=hu(e=>{var n,o;return{label:(n=qr.baseStyle)==null?void 0:n.call(qr,e).label,container:(o=qr.baseStyle)==null?void 0:o.call(qr,e).container,control:G_(e)}}),X_={md:hu({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:hu({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:hu({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Y_=K_({baseStyle:q_,sizes:X_,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Q_,definePartsStyle:Z_}=Ve(Gk.keys),eu=de("select-bg");var iv;const J_={...(iv=$e.baseStyle)==null?void 0:iv.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:eu.reference,[eu.variable]:"colors.white",_dark:{[eu.variable]:"colors.gray.700"},"> option, > optgroup":{bg:eu.reference}},eP={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},tP=Z_({field:J_,icon:eP}),tu={paddingInlineEnd:"8"};var sv,av,lv,uv,cv,dv,fv,hv;const nP={lg:{...(sv=$e.sizes)==null?void 0:sv.lg,field:{...(av=$e.sizes)==null?void 0:av.lg.field,...tu}},md:{...(lv=$e.sizes)==null?void 0:lv.md,field:{...(uv=$e.sizes)==null?void 0:uv.md.field,...tu}},sm:{...(cv=$e.sizes)==null?void 0:cv.sm,field:{...(dv=$e.sizes)==null?void 0:dv.sm.field,...tu}},xs:{...(fv=$e.sizes)==null?void 0:fv.xs,field:{...(hv=$e.sizes)==null?void 0:hv.xs.field,...tu},icon:{insetEnd:"1"}}},rP=Q_({baseStyle:tP,sizes:nP,variants:$e.variants,defaultProps:$e.defaultProps}),af=de("skeleton-start-color"),lf=de("skeleton-end-color"),oP={[af.variable]:"colors.gray.100",[lf.variable]:"colors.gray.400",_dark:{[af.variable]:"colors.gray.800",[lf.variable]:"colors.gray.600"},background:af.reference,borderColor:lf.reference,opacity:.7,borderRadius:"sm"},iP={baseStyle:oP},uf=de("skip-link-bg"),sP={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[uf.variable]:"colors.white",_dark:{[uf.variable]:"colors.gray.700"},bg:uf.reference}},aP={baseStyle:sP},{defineMultiStyleConfig:lP,definePartsStyle:Nu}=Ve(qk.keys),zo=de("slider-thumb-size"),ma=de("slider-track-size"),Xr=de("slider-bg"),uP=e=>{const{orientation:n}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...wh({orientation:n,vertical:{h:"100%",px:cr(zo.reference).divide(2).toString()},horizontal:{w:"100%",py:cr(zo.reference).divide(2).toString()}})}},cP=e=>({...wh({orientation:e.orientation,horizontal:{h:ma.reference},vertical:{w:ma.reference}}),overflow:"hidden",borderRadius:"sm",[Xr.variable]:"colors.gray.200",_dark:{[Xr.variable]:"colors.whiteAlpha.200"},_disabled:{[Xr.variable]:"colors.gray.300",_dark:{[Xr.variable]:"colors.whiteAlpha.300"}},bg:Xr.reference}),dP=e=>{const{orientation:n}=e;return{...wh({orientation:n,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:zo.reference,h:zo.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"}}},fP=e=>{const{colorScheme:n}=e;return{width:"inherit",height:"inherit",[Xr.variable]:`colors.${n}.500`,_dark:{[Xr.variable]:`colors.${n}.200`},bg:Xr.reference}},hP=Nu(e=>({container:uP(e),track:cP(e),thumb:dP(e),filledTrack:fP(e)})),pP=Nu({container:{[zo.variable]:"sizes.4",[ma.variable]:"sizes.1"}}),mP=Nu({container:{[zo.variable]:"sizes.3.5",[ma.variable]:"sizes.1"}}),gP=Nu({container:{[zo.variable]:"sizes.2.5",[ma.variable]:"sizes.0.5"}}),yP={lg:pP,md:mP,sm:gP},vP=lP({baseStyle:hP,sizes:yP,defaultProps:{size:"md",colorScheme:"blue"}}),To=ut("spinner-size"),SP={width:[To.reference],height:[To.reference]},bP={xs:{[To.variable]:"sizes.3"},sm:{[To.variable]:"sizes.4"},md:{[To.variable]:"sizes.6"},lg:{[To.variable]:"sizes.8"},xl:{[To.variable]:"sizes.12"}},xP={baseStyle:SP,sizes:bP,defaultProps:{size:"md"}},{defineMultiStyleConfig:wP,definePartsStyle:qv}=Ve(Xk.keys),kP={fontWeight:"medium"},CP={opacity:.8,marginBottom:"2"},TP={verticalAlign:"baseline",fontWeight:"semibold"},_P={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},PP=qv({container:{},label:kP,helpText:CP,number:TP,icon:_P}),EP={md:qv({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},AP=wP({baseStyle:PP,sizes:EP,defaultProps:{size:"md"}}),{defineMultiStyleConfig:RP,definePartsStyle:Ys}=Ve(["stepper","step","title","description","indicator","separator","icon","number"]),fr=de("stepper-indicator-size"),wi=de("stepper-icon-size"),ki=de("stepper-title-font-size"),Qs=de("stepper-description-font-size"),Os=de("stepper-accent-color"),$P=Ys(({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"},[Os.variable]:`colors.${e}.500`,_dark:{[Os.variable]:`colors.${e}.200`}},title:{fontSize:ki.reference,fontWeight:"medium"},description:{fontSize:Qs.reference,color:"chakra-subtle-text"},number:{fontSize:ki.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:wi.reference,height:wi.reference},indicator:{flexShrink:0,borderRadius:"full",width:fr.reference,height:fr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Os.reference},"&[data-status=complete]":{bg:Os.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Os.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${fr.reference} - 8px)`,top:`calc(${fr.reference} + 4px)`,insetStart:`calc(${fr.reference} / 2 - 1px)`}}})),zP=RP({baseStyle:$P,sizes:{xs:Ys({stepper:{[fr.variable]:"sizes.4",[wi.variable]:"sizes.3",[ki.variable]:"fontSizes.xs",[Qs.variable]:"fontSizes.xs"}}),sm:Ys({stepper:{[fr.variable]:"sizes.6",[wi.variable]:"sizes.4",[ki.variable]:"fontSizes.sm",[Qs.variable]:"fontSizes.xs"}}),md:Ys({stepper:{[fr.variable]:"sizes.8",[wi.variable]:"sizes.5",[ki.variable]:"fontSizes.md",[Qs.variable]:"fontSizes.sm"}}),lg:Ys({stepper:{[fr.variable]:"sizes.10",[wi.variable]:"sizes.6",[ki.variable]:"fontSizes.lg",[Qs.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:MP,definePartsStyle:pu}=Ve(Yk.keys),la=ut("switch-track-width"),Ao=ut("switch-track-height"),cf=ut("switch-track-diff"),DP=dr.subtract(la,Ao),Kf=ut("switch-thumb-x"),Ws=ut("switch-bg"),IP=e=>{const{colorScheme:n}=e;return{borderRadius:"full",p:"0.5",width:[la.reference],height:[Ao.reference],transitionProperty:"common",transitionDuration:"fast",[Ws.variable]:"colors.gray.300",_dark:{[Ws.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Ws.variable]:`colors.${n}.500`,_dark:{[Ws.variable]:`colors.${n}.200`}},bg:Ws.reference}},jP={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ao.reference],height:[Ao.reference],_checked:{transform:`translateX(${Kf.reference})`}},LP=pu(e=>({container:{[cf.variable]:DP,[Kf.variable]:cf.reference,_rtl:{[Kf.variable]:dr(cf).negate().toString()}},track:IP(e),thumb:jP})),FP={sm:pu({container:{[la.variable]:"1.375rem",[Ao.variable]:"sizes.3"}}),md:pu({container:{[la.variable]:"1.875rem",[Ao.variable]:"sizes.4"}}),lg:pu({container:{[la.variable]:"2.875rem",[Ao.variable]:"sizes.6"}})},BP=MP({baseStyle:LP,sizes:FP,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:VP,definePartsStyle:Mi}=Ve(Qk.keys),NP=Mi({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"}}),Au={"&[data-is-numeric=true]":{textAlign:"end"}},OP=Mi(e=>{const{colorScheme:n}=e;return{th:{color:ce("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ce(`${n}.100`,`${n}.700`)(e),...Au},td:{borderBottom:"1px",borderColor:ce(`${n}.100`,`${n}.700`)(e),...Au},caption:{color:ce("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),WP=Mi(e=>{const{colorScheme:n}=e;return{th:{color:ce("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ce(`${n}.100`,`${n}.700`)(e),...Au},td:{borderBottom:"1px",borderColor:ce(`${n}.100`,`${n}.700`)(e),...Au},caption:{color:ce("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ce(`${n}.100`,`${n}.700`)(e)},td:{background:ce(`${n}.100`,`${n}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),UP={simple:OP,striped:WP,unstyled:{}},HP={sm:Mi({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:Mi({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Mi({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},KP=VP({baseStyle:NP,variants:UP,sizes:HP,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Ot=de("tabs-color"),Rn=de("tabs-bg"),nu=de("tabs-border-color"),{defineMultiStyleConfig:GP,definePartsStyle:qn}=Ve(Zk.keys),qP=e=>{const{orientation:n}=e;return{display:n==="vertical"?"flex":"block"}},XP=e=>{const{isFitted:n}=e;return{flex:n?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},YP=e=>{const{align:n="start",orientation:o}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[n],flexDirection:o==="vertical"?"column":"row"}},QP={p:4},ZP=qn(e=>({root:qP(e),tab:XP(e),tablist:YP(e),tabpanel:QP})),JP={sm:qn({tab:{py:1,px:4,fontSize:"sm"}}),md:qn({tab:{fontSize:"md",py:2,px:4}}),lg:qn({tab:{fontSize:"lg",py:3,px:4}})},eE=qn(e=>{const{colorScheme:n,orientation:o}=e,s=o==="vertical",a=s?"borderStart":"borderBottom",u=s?"marginStart":"marginBottom";return{tablist:{[a]:"2px solid",borderColor:"inherit"},tab:{[a]:"2px solid",borderColor:"transparent",[u]:"-2px",_selected:{[Ot.variable]:`colors.${n}.600`,_dark:{[Ot.variable]:`colors.${n}.300`},borderColor:"currentColor"},_active:{[Rn.variable]:"colors.gray.200",_dark:{[Rn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Ot.reference,bg:Rn.reference}}}),tE=qn(e=>{const{colorScheme:n}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[nu.variable]:"transparent",_selected:{[Ot.variable]:`colors.${n}.600`,[nu.variable]:"colors.white",_dark:{[Ot.variable]:`colors.${n}.300`,[nu.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:nu.reference},color:Ot.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),nE=qn(e=>{const{colorScheme:n}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Rn.variable]:"colors.gray.50",_dark:{[Rn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Rn.variable]:"colors.white",[Ot.variable]:`colors.${n}.600`,_dark:{[Rn.variable]:"colors.gray.800",[Ot.variable]:`colors.${n}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Ot.reference,bg:Rn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),rE=qn(e=>{const{colorScheme:n,theme:o}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Mt(o,`${n}.700`),bg:Mt(o,`${n}.100`)}}}}),oE=qn(e=>{const{colorScheme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Ot.variable]:"colors.gray.600",_dark:{[Ot.variable]:"inherit"},_selected:{[Ot.variable]:"colors.white",[Rn.variable]:`colors.${n}.600`,_dark:{[Ot.variable]:"colors.gray.800",[Rn.variable]:`colors.${n}.300`}},color:Ot.reference,bg:Rn.reference}}}),iE=qn({}),sE={line:eE,enclosed:tE,"enclosed-colored":nE,"soft-rounded":rE,"solid-rounded":oE,unstyled:iE},aE=GP({baseStyle:ZP,sizes:JP,variants:sE,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:lE,definePartsStyle:Ro}=Ve(Jk.keys),S0=de("tag-bg"),b0=de("tag-color"),df=de("tag-shadow"),mu=de("tag-min-height"),gu=de("tag-min-width"),yu=de("tag-font-size"),vu=de("tag-padding-inline"),uE={fontWeight:"medium",lineHeight:1.2,outline:0,[b0.variable]:tt.color.reference,[S0.variable]:tt.bg.reference,[df.variable]:tt.shadow.reference,color:b0.reference,bg:S0.reference,boxShadow:df.reference,borderRadius:"md",minH:mu.reference,minW:gu.reference,fontSize:yu.reference,px:vu.reference,_focusVisible:{[df.variable]:"shadows.outline"}},cE={lineHeight:1.2,overflow:"visible"},dE={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}},fE=Ro({container:uE,label:cE,closeButton:dE}),hE={sm:Ro({container:{[mu.variable]:"sizes.5",[gu.variable]:"sizes.5",[yu.variable]:"fontSizes.xs",[vu.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ro({container:{[mu.variable]:"sizes.6",[gu.variable]:"sizes.6",[yu.variable]:"fontSizes.sm",[vu.variable]:"space.2"}}),lg:Ro({container:{[mu.variable]:"sizes.8",[gu.variable]:"sizes.8",[yu.variable]:"fontSizes.md",[vu.variable]:"space.3"}})},pE={subtle:Ro(e=>{var n;return{container:(n=ia.variants)==null?void 0:n.subtle(e)}}),solid:Ro(e=>{var n;return{container:(n=ia.variants)==null?void 0:n.solid(e)}}),outline:Ro(e=>{var n;return{container:(n=ia.variants)==null?void 0:n.outline(e)}})},mE=lE({variants:pE,baseStyle:fE,sizes:hE,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var pv;const gE={...(pv=$e.baseStyle)==null?void 0:pv.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var mv;const yE={outline:e=>{var n;return((n=$e.variants)==null?void 0:n.outline(e).field)??{}},flushed:e=>{var n;return((n=$e.variants)==null?void 0:n.flushed(e).field)??{}},filled:e=>{var n;return((n=$e.variants)==null?void 0:n.filled(e).field)??{}},unstyled:((mv=$e.variants)==null?void 0:mv.unstyled.field)??{}};var gv,yv,vv,Sv;const vE={xs:((gv=$e.sizes)==null?void 0:gv.xs.field)??{},sm:((yv=$e.sizes)==null?void 0:yv.sm.field)??{},md:((vv=$e.sizes)==null?void 0:vv.md.field)??{},lg:((Sv=$e.sizes)==null?void 0:Sv.lg.field)??{}},SE={baseStyle:gE,sizes:vE,variants:yE,defaultProps:{size:"md",variant:"outline"}},ru=ut("tooltip-bg"),ff=ut("tooltip-fg"),bE=ut("popper-arrow-bg"),xE={bg:ru.reference,color:ff.reference,[ru.variable]:"colors.gray.700",[ff.variable]:"colors.whiteAlpha.900",_dark:{[ru.variable]:"colors.gray.300",[ff.variable]:"colors.gray.900"},[bE.variable]:ru.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},wE={baseStyle:xE},kE={Accordion:lC,Alert:HC,Avatar:n2,Badge:ia,Breadcrumb:f2,Button:x2,Checkbox:qr,CloseButton:j2,Code:V2,Container:O2,Divider:G2,Drawer:oT,Editable:dT,Form:yT,FormError:kT,FormLabel:TT,Heading:ET,Input:$e,Kbd:FT,Link:VT,List:HT,Menu:n_,Modal:h_,NumberInput:w_,PinInput:__,Popover:L_,Progress:H_,Radio:Y_,Select:rP,Skeleton:iP,SkipLink:aP,Slider:vP,Spinner:xP,Stat:AP,Switch:BP,Table:KP,Tabs:aE,Tag:mE,Textarea:SE,Tooltip:wE,Card:_2,Stepper:zP},CE={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},TE={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},_E={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"}},PE={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},EE={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"},AE={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"},RE={"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)"},$E={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},zE={property:AE,easing:RE,duration:$E},ME={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},DE={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},IE={breakpoints:TE,zIndices:ME,radii:PE,blur:DE,colors:_E,...Hv,sizes:Bv,shadows:EE,space:Fv,borders:CE,transition:zE},jE={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"}}},LE={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"}}},FE="ltr",BE={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},VE={semanticTokens:jE,direction:FE,...IE,components:kE,styles:LE,config:BE};var NE=!1;function OE(e){if(e.sheet)return e.sheet;for(var n=0;n0?St(Wi,--Wt):0,Li--,ot===10&&(Li=1,Wu--),ot}function Yt(){return ot=Wt2||ya(ot)>3?"":" "}function t5(e,n){for(;--n&&Yt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return Ta(e,Su()+(n<6&&Xn()==32&&Yt()==32))}function qf(e){for(;Yt();)switch(ot){case e:return Wt;case 34:case 39:e!==34&&e!==39&&qf(ot);break;case 40:e===41&&qf(e);break;case 92:Yt();break}return Wt}function n5(e,n){for(;Yt()&&e+ot!==57;)if(e+ot===84&&Xn()===47)break;return"/*"+Ta(n,Wt-1)+"*"+Ou(e===47?e:Yt())}function r5(e){for(;!ya(Xn());)Yt();return Ta(e,Wt)}function o5(e){return e1(xu("",null,null,null,[""],e=Jv(e),0,[0],e))}function xu(e,n,o,s,a,u,c,f,p){for(var m=0,g=0,v=c,S=0,C=0,A=0,P=1,D=1,k=1,R=0,$="",N=a,z=u,W=s,O=$;D;)switch(A=R,R=Yt()){case 40:if(A!=108&&St(O,v-1)==58){Gf(O+=Re(bu(R),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:O+=bu(R);break;case 9:case 10:case 13:case 32:O+=e5(A);break;case 92:O+=t5(Su()-1,7);continue;case 47:switch(Xn()){case 42:case 47:ou(i5(n5(Yt(),Su()),n,o),p);break;default:O+="/"}break;case 123*P:f[m++]=Un(O)*k;case 125*P:case 59:case 0:switch(R){case 0:case 125:D=0;case 59+g:k==-1&&(O=Re(O,/\f/g,"")),C>0&&Un(O)-v&&ou(C>32?w0(O+";",s,o,v-1):w0(Re(O," ","")+";",s,o,v-2),p);break;case 59:O+=";";default:if(ou(W=x0(O,n,o,m,g,a,f,$,N=[],z=[],v),u),R===123)if(g===0)xu(O,n,W,W,N,u,v,f,z);else switch(S===99&&St(O,3)===110?100:S){case 100:case 108:case 109:case 115:xu(e,W,W,s&&ou(x0(e,W,W,0,0,a,f,$,a,N=[],v),z),a,z,v,f,s?N:z);break;default:xu(O,W,W,W,[""],z,0,f,z)}}m=g=C=0,P=k=1,$=O="",v=c;break;case 58:v=1+Un(O),C=A;default:if(P<1){if(R==123)--P;else if(R==125&&P++==0&&JE()==125)continue}switch(O+=Ou(R),R*P){case 38:k=g>0?1:(O+="\f",-1);break;case 44:f[m++]=(Un(O)-1)*k,k=1;break;case 64:Xn()===45&&(O+=bu(Yt())),S=Xn(),g=v=Un($=O+=r5(Su())),R++;break;case 45:A===45&&Un(O)==2&&(P=0)}}return u}function x0(e,n,o,s,a,u,c,f,p,m,g){for(var v=a-1,S=a===0?u:[""],C=Eh(S),A=0,P=0,D=0;A0?S[k]+" "+R:Re(R,/&\f/g,S[k])))&&(p[D++]=$);return Uu(e,n,o,a===0?_h:f,p,m,g)}function i5(e,n,o){return Uu(e,n,o,Xv,Ou(ZE()),ga(e,2,-2),0)}function w0(e,n,o,s){return Uu(e,n,o,Ph,ga(e,0,s),ga(e,s+1,-1),s)}function Di(e,n){for(var o="",s=Eh(e),a=0;a6)switch(St(e,n+1)){case 109:if(St(e,n+4)!==45)break;case 102:return Re(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+Ru+(St(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~Gf(e,"stretch")?n1(Re(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(St(e,n+1)!==115)break;case 6444:switch(St(e,Un(e)-3-(~Gf(e,"!important")&&10))){case 107:return Re(e,":",":"+Ae)+e;case 101:return Re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(St(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(St(e,n+11)){case 114:return Ae+e+Pt+Re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+Pt+Re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+Pt+Re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ae+e+Pt+e+e}return e}var p5=function(n,o,s,a){if(n.length>-1&&!n.return)switch(n.type){case Ph:n.return=n1(n.value,n.length);break;case Yv:return Di([Us(n,{value:Re(n.value,"@","@"+Ae)})],a);case _h:if(n.length)return QE(n.props,function(u){switch(YE(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Di([Us(n,{props:[Re(u,/:(read-\w+)/,":"+Ru+"$1")]})],a);case"::placeholder":return Di([Us(n,{props:[Re(u,/:(plac\w+)/,":"+Ae+"input-$1")]}),Us(n,{props:[Re(u,/:(plac\w+)/,":"+Ru+"$1")]}),Us(n,{props:[Re(u,/:(plac\w+)/,Pt+"input-$1")]})],a)}return""})}},m5=[p5],g5=function(n){var o=n.key;if(o==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(P){var D=P.getAttribute("data-emotion");D.indexOf(" ")!==-1&&(document.head.appendChild(P),P.setAttribute("data-s",""))})}var a=n.stylisPlugins||m5,u={},c,f=[];c=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(P){for(var D=P.getAttribute("data-emotion").split(" "),k=1;k=4;++s,a-=4)o=e.charCodeAt(s)&255|(e.charCodeAt(++s)&255)<<8|(e.charCodeAt(++s)&255)<<16|(e.charCodeAt(++s)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,n=(o&65535)*1540483477+((o>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(a){case 3:n^=(e.charCodeAt(s+2)&255)<<16;case 2:n^=(e.charCodeAt(s+1)&255)<<8;case 1:n^=e.charCodeAt(s)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var w5={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},k5=/[A-Z]|^ms/g,C5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,o1=function(n){return n.charCodeAt(1)===45},E0=function(n){return n!=null&&typeof n!="boolean"},mf=t1(function(e){return o1(e)?e:e.replace(k5,"-$&").toLowerCase()}),A0=function(n,o){switch(n){case"animation":case"animationName":if(typeof o=="string")return o.replace(C5,function(s,a,u){return Hn={name:a,styles:u,next:Hn},a})}return w5[n]!==1&&!o1(n)&&typeof o=="number"&&o!==0?o+"px":o};function va(e,n,o){if(o==null)return"";var s=o;if(s.__emotion_styles!==void 0)return s;switch(typeof o){case"boolean":return"";case"object":{var a=o;if(a.anim===1)return Hn={name:a.name,styles:a.styles,next:Hn},a.name;var u=o;if(u.styles!==void 0){var c=u.next;if(c!==void 0)for(;c!==void 0;)Hn={name:c.name,styles:c.styles,next:Hn},c=c.next;var f=u.styles+";";return f}return T5(e,n,o)}case"function":{if(e!==void 0){var p=Hn,m=o(e);return Hn=p,va(e,n,m)}break}}var g=o;if(n==null)return g;var v=n[g];return v!==void 0?v:g}function T5(e,n,o){var s="";if(Array.isArray(o))for(var a=0;a{const u=n?s.preventTransition():void 0;document.documentElement.dataset.theme=a,document.documentElement.style.colorScheme=a,u==null||u()},setClassName(a){document.body.classList.add(a?iu.dark:iu.light),document.body.classList.remove(a?iu.light:iu.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(a){return s.query().matches??a==="dark"?"dark":"light"},addListener(a){const u=s.query(),c=f=>{a(f.matches?"dark":"light")};return typeof u.addListener=="function"?u.addListener(c):u.addEventListener("change",c),()=>{typeof u.removeListener=="function"?u.removeListener(c):u.removeEventListener("change",c)}},preventTransition(){const a=document.createElement("style");return a.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),o!==void 0&&(a.nonce=o),document.head.appendChild(a),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(a)})})}}};return s}const B5="chakra-ui-color-mode";function V5(e){return{ssr:!1,type:"localStorage",get(n){if(!(globalThis!=null&&globalThis.document))return n;let o;try{o=localStorage.getItem(e)||n}catch{}return o||n},set(n){try{localStorage.setItem(e,n)}catch{}}}}const N5=V5(B5),z0=()=>{},O5=nw()?I.useLayoutEffect:I.useEffect;function M0(e,n){return e.type==="cookie"&&e.ssr?e.get(n):n}const l1=Ku(function(n,o){const{value:s,children:a,options:{useSystemColorMode:u,initialColorMode:c,disableTransitionOnChange:f}={},colorModeManager:p=N5}=n,m=c==="dark"?"dark":"light",[g,v]=I.useState(()=>M0(p,m)),[S,C]=I.useState(()=>M0(p)),{getSystemTheme:A,setClassName:P,setDataset:D,addListener:k}=I.useMemo(()=>F5({preventTransition:f,nonce:o==null?void 0:o.nonce}),[f,o==null?void 0:o.nonce]),R=c==="system"&&!g?S:g,$=I.useCallback(W=>{const O=W==="system"?A():W;v(O),P(O==="dark"),D(O),p.set(O)},[p,A,P,D]);O5(()=>{c==="system"&&C(A())},[]),I.useEffect(()=>{const W=p.get();if(W){$(W);return}if(c==="system"){$("system");return}$(m)},[p,m,c,$]);const N=I.useCallback(()=>{$(R==="dark"?"light":"dark")},[R,$]);I.useEffect(()=>{if(u)return k($)},[u,k,$]);const z=I.useMemo(()=>({colorMode:s??R,toggleColorMode:s?z0:N,setColorMode:s?z0:$,forced:s!==void 0}),[R,N,$,s]);return F.jsx(zh.Provider,{value:z,children:a})});l1.displayName="ColorModeProvider";const u1=String.raw,c1=u1` + :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; + } + } +`,W5=()=>F.jsx(Gu,{styles:c1}),U5=({scope:e=""})=>F.jsx(Gu,{styles:u1` + 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; + } + + ${c1} + `});function H5(e){const{cssVarsRoot:n,theme:o,children:s}=e,a=I.useMemo(()=>Ak(o),[o]);return F.jsxs(R5,{theme:a,children:[F.jsx(K5,{root:n}),s]})}function K5({root:e=":host, :root"}){const n=[e,"[data-theme]"].join(",");return F.jsx(Gu,{styles:o=>({[n]:o.__cssVars})})}Sr({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function G5(){const{colorMode:e}=qu();return F.jsx(Gu,{styles:n=>{const o=Ev(n,"styles.global"),s=yn(o,{theme:n,colorMode:e});return s?Dv(s)(n):void 0}})}const[q5,X5]=Sr({strict:!1,name:"PortalManagerContext"});function d1(e){const{children:n,zIndex:o}=e;return F.jsx(q5,{value:{zIndex:o},children:n})}d1.displayName="PortalManager";const f1=I.createContext({getDocument(){return document},getWindow(){return window}});f1.displayName="EnvironmentContext";function h1(e){const{children:n,environment:o,disabled:s}=e,a=I.useRef(null),u=I.useMemo(()=>o||{getDocument:()=>{var f;return((f=a.current)==null?void 0:f.ownerDocument)??document},getWindow:()=>{var f;return((f=a.current)==null?void 0:f.ownerDocument.defaultView)??window}},[o]),c=!s||!o;return F.jsxs(f1.Provider,{value:u,children:[n,c&&F.jsx("span",{id:"__chakra_env",hidden:!0,ref:a})]})}h1.displayName="EnvironmentProvider";const Y5=e=>{const{children:n,colorModeManager:o,portalZIndex:s,resetScope:a,resetCSS:u=!0,theme:c={},environment:f,cssVarsRoot:p,disableEnvironment:m,disableGlobalStyle:g}=e,v=F.jsx(h1,{environment:f,disabled:m,children:n});return F.jsx(H5,{theme:c,cssVarsRoot:p,children:F.jsxs(l1,{colorModeManager:o,options:c.config,children:[u?F.jsx(U5,{scope:a}):F.jsx(W5,{}),!g&&F.jsx(G5,{}),s?F.jsx(d1,{zIndex:s,children:v}):v]})})};function Q5(e){if(typeof Proxy>"u")return e;const n=new Map,o=(...s)=>e(...s);return new Proxy(o,{get:(s,a)=>a==="create"?e:(n.has(a)||n.set(a,e(a)),n.get(a))})}function Xu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Yf=e=>Array.isArray(e);function p1(e,n){if(!Array.isArray(n))return!1;const o=n.length;if(o!==e.length)return!1;for(let s=0;s{n[0][s]=o.get(),n[1][s]=o.getVelocity()}),n}function Mh(e,n,o,s){if(typeof n=="function"){const[a,u]=D0(s);n=n(o!==void 0?o:e.custom,a,u)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[a,u]=D0(s);n=n(o!==void 0?o:e.custom,a,u)}return n}function Yu(e,n,o){const s=e.getProps();return Mh(s,n,o!==void 0?o:s.custom,e)}const Dh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ih=["initial",...Dh],_a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mo=new Set(_a),mr=e=>e*1e3,gr=e=>e/1e3,Z5={type:"spring",stiffness:500,damping:25,restSpeed:10},J5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),eA={type:"keyframes",duration:.8},tA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nA=(e,{keyframes:n})=>n.length>2?eA:Mo.has(e)?e.startsWith("scale")?J5(n[1]):Z5:tA;function jh(e,n){return e?e[n]||e.default||e:void 0}const rA={skipAnimations:!1,useManualTiming:!1},oA=e=>e!==null;function Qu(e,{repeat:n,repeatType:o="loop"},s){const a=e.filter(oA),u=n&&o!=="loop"&&n%2===1?0:a.length-1;return!u||s===void 0?a[u]:s}const Qt=e=>e;let Qf=Qt;function iA(e){let n=new Set,o=new Set,s=!1,a=!1;const u=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(m){u.has(m)&&(p.schedule(m),e()),m(c)}const p={schedule:(m,g=!1,v=!1)=>{const C=v&&s?n:o;return g&&u.add(m),C.has(m)||C.add(m),m},cancel:m=>{o.delete(m),u.delete(m)},process:m=>{if(c=m,s){a=!0;return}s=!0,[n,o]=[o,n],n.forEach(f),n.clear(),s=!1,a&&(a=!1,p.process(m))}};return p}const su=["read","resolveKeyframes","update","preRender","render","postRender"],sA=40;function m1(e,n){let o=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},u=()=>o=!0,c=su.reduce((k,R)=>(k[R]=iA(u),k),{}),{read:f,resolveKeyframes:p,update:m,preRender:g,render:v,postRender:S}=c,C=()=>{const k=performance.now();o=!1,a.delta=s?1e3/60:Math.max(Math.min(k-a.timestamp,sA),1),a.timestamp=k,a.isProcessing=!0,f.process(a),p.process(a),m.process(a),g.process(a),v.process(a),S.process(a),a.isProcessing=!1,o&&n&&(s=!1,e(C))},A=()=>{o=!0,s=!0,a.isProcessing||e(C)};return{schedule:su.reduce((k,R)=>{const $=c[R];return k[R]=(N,z=!1,W=!1)=>(o||A(),$.schedule(N,z,W)),k},{}),cancel:k=>{for(let R=0;R(((1-3*o+3*n)*e+(3*o-6*n))*e+3*n)*e,aA=1e-7,lA=12;function uA(e,n,o,s,a){let u,c,f=0;do c=n+(o-n)/2,u=g1(c,s,a)-e,u>0?o=c:n=c;while(Math.abs(u)>aA&&++fuA(u,0,1,e,o);return u=>u===0||u===1?u:g1(a(u),n,s)}const y1=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,v1=e=>n=>1-e(1-n),S1=Pa(.33,1.53,.69,.99),Lh=v1(S1),b1=y1(Lh),x1=e=>(e*=2)<1?.5*Lh(e):.5*(2-Math.pow(2,-10*(e-1))),Fh=e=>1-Math.sin(Math.acos(e)),w1=v1(Fh),k1=y1(Fh),C1=e=>/^0[^.\s]+$/u.test(e);function cA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||C1(e):!0}const T1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),_1=e=>n=>typeof n=="string"&&n.startsWith(e),P1=_1("--"),dA=_1("var(--"),Bh=e=>dA(e)?fA.test(e.split("/*")[0].trim()):!1,fA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pA(e){const n=hA.exec(e);if(!n)return[,];const[,o,s,a]=n;return[`--${o??s}`,a]}function E1(e,n,o=1){const[s,a]=pA(e);if(!s)return;const u=window.getComputedStyle(n).getPropertyValue(s);if(u){const c=u.trim();return T1(c)?parseFloat(c):c}return Bh(a)?E1(a,n,o+1):a}const vr=(e,n,o)=>o>n?n:otypeof e=="number",parse:parseFloat,transform:e=>e},ba={...Ui,transform:e=>vr(0,1,e)},au={...Ui,default:1},Ea=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),Gr=Ea("deg"),Yn=Ea("%"),fe=Ea("px"),mA=Ea("vh"),gA=Ea("vw"),I0={...Yn,parse:e=>Yn.parse(e)/100,transform:e=>Yn.transform(e*100)},yA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),j0=e=>e===Ui||e===fe,L0=(e,n)=>parseFloat(e.split(", ")[n]),F0=(e,n)=>(o,{transform:s})=>{if(s==="none"||!s)return 0;const a=s.match(/^matrix3d\((.+)\)$/u);if(a)return L0(a[1],n);{const u=s.match(/^matrix\((.+)\)$/u);return u?L0(u[1],e):0}},vA=new Set(["x","y","z"]),SA=_a.filter(e=>!vA.has(e));function bA(e){const n=[];return SA.forEach(o=>{const s=e.getValue(o);s!==void 0&&(n.push([o,s.get()]),s.set(o.startsWith("scale")?1:0))}),n}const Bi={width:({x:e},{paddingLeft:n="0",paddingRight:o="0"})=>e.max-e.min-parseFloat(n)-parseFloat(o),height:({y:e},{paddingTop:n="0",paddingBottom:o="0"})=>e.max-e.min-parseFloat(n)-parseFloat(o),top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:F0(4,13),y:F0(5,14)};Bi.translateX=Bi.x;Bi.translateY=Bi.y;const A1=e=>n=>n.test(e),xA={test:e=>e==="auto",parse:e=>e},R1=[Ui,fe,Yn,Gr,gA,mA,xA],B0=e=>R1.find(A1(e)),$o=new Set;let Zf=!1,Jf=!1;function $1(){if(Jf){const e=Array.from($o).filter(s=>s.needsMeasurement),n=new Set(e.map(s=>s.element)),o=new Map;n.forEach(s=>{const a=bA(s);a.length&&(o.set(s,a),s.render())}),e.forEach(s=>s.measureInitialState()),n.forEach(s=>{s.render();const a=o.get(s);a&&a.forEach(([u,c])=>{var f;(f=s.getValue(u))===null||f===void 0||f.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Jf=!1,Zf=!1,$o.forEach(e=>e.complete()),$o.clear()}function z1(){$o.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jf=!0)})}function wA(){z1(),$1()}class Vh{constructor(n,o,s,a,u,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...n],this.onComplete=o,this.name=s,this.motionValue=a,this.element=u,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?($o.add(this),Zf||(Zf=!0,He.read(z1),He.resolveKeyframes($1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:o,element:s,motionValue:a}=this;for(let u=0;uMath.round(e*1e5)/1e5,Nh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function kA(e){return e==null}const CA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oh=(e,n)=>o=>!!(typeof o=="string"&&CA.test(o)&&o.startsWith(e)||n&&!kA(o)&&Object.prototype.hasOwnProperty.call(o,n)),M1=(e,n,o)=>s=>{if(typeof s!="string")return s;const[a,u,c,f]=s.match(Nh);return{[e]:parseFloat(a),[n]:parseFloat(u),[o]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},TA=e=>vr(0,255,e),yf={...Ui,transform:e=>Math.round(TA(e))},Po={test:Oh("rgb","red"),parse:M1("red","green","blue"),transform:({red:e,green:n,blue:o,alpha:s=1})=>"rgba("+yf.transform(e)+", "+yf.transform(n)+", "+yf.transform(o)+", "+ua(ba.transform(s))+")"};function _A(e){let n="",o="",s="",a="";return e.length>5?(n=e.substring(1,3),o=e.substring(3,5),s=e.substring(5,7),a=e.substring(7,9)):(n=e.substring(1,2),o=e.substring(2,3),s=e.substring(3,4),a=e.substring(4,5),n+=n,o+=o,s+=s,a+=a),{red:parseInt(n,16),green:parseInt(o,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const eh={test:Oh("#"),parse:_A,transform:Po.transform},Ci={test:Oh("hsl","hue"),parse:M1("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:o,alpha:s=1})=>"hsla("+Math.round(e)+", "+Yn.transform(ua(n))+", "+Yn.transform(ua(o))+", "+ua(ba.transform(s))+")"},Et={test:e=>Po.test(e)||eh.test(e)||Ci.test(e),parse:e=>Po.test(e)?Po.parse(e):Ci.test(e)?Ci.parse(e):eh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Po.transform(e):Ci.transform(e)},PA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function EA(e){var n,o;return isNaN(e)&&typeof e=="string"&&(((n=e.match(Nh))===null||n===void 0?void 0:n.length)||0)+(((o=e.match(PA))===null||o===void 0?void 0:o.length)||0)>0}const D1="number",I1="color",AA="var",RA="var(",V0="${}",$A=/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 xa(e){const n=e.toString(),o=[],s={color:[],number:[],var:[]},a=[];let u=0;const f=n.replace($A,p=>(Et.test(p)?(s.color.push(u),a.push(I1),o.push(Et.parse(p))):p.startsWith(RA)?(s.var.push(u),a.push(AA),o.push(p)):(s.number.push(u),a.push(D1),o.push(parseFloat(p))),++u,V0)).split(V0);return{values:o,split:f,indexes:s,types:a}}function j1(e){return xa(e).values}function L1(e){const{split:n,types:o}=xa(e),s=n.length;return a=>{let u="";for(let c=0;ctypeof e=="number"?0:e;function MA(e){const n=j1(e);return L1(e)(n.map(zA))}const Qr={test:EA,parse:j1,createTransformer:L1,getAnimatableNone:MA},DA=new Set(["brightness","contrast","saturate","opacity"]);function IA(e){const[n,o]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[s]=o.match(Nh)||[];if(!s)return e;const a=o.replace(s,"");let u=DA.has(n)?1:0;return s!==o&&(u*=100),n+"("+u+a+")"}const jA=/\b([a-z-]*)\(.*?\)/gu,th={...Qr,getAnimatableNone:e=>{const n=e.match(jA);return n?n.map(IA).join(" "):e}},LA={borderWidth:fe,borderTopWidth:fe,borderRightWidth:fe,borderBottomWidth:fe,borderLeftWidth:fe,borderRadius:fe,radius:fe,borderTopLeftRadius:fe,borderTopRightRadius:fe,borderBottomRightRadius:fe,borderBottomLeftRadius:fe,width:fe,maxWidth:fe,height:fe,maxHeight:fe,top:fe,right:fe,bottom:fe,left:fe,padding:fe,paddingTop:fe,paddingRight:fe,paddingBottom:fe,paddingLeft:fe,margin:fe,marginTop:fe,marginRight:fe,marginBottom:fe,marginLeft:fe,backgroundPositionX:fe,backgroundPositionY:fe},FA={rotate:Gr,rotateX:Gr,rotateY:Gr,rotateZ:Gr,scale:au,scaleX:au,scaleY:au,scaleZ:au,skew:Gr,skewX:Gr,skewY:Gr,distance:fe,translateX:fe,translateY:fe,translateZ:fe,x:fe,y:fe,z:fe,perspective:fe,transformPerspective:fe,opacity:ba,originX:I0,originY:I0,originZ:fe},N0={...Ui,transform:Math.round},Wh={...LA,...FA,zIndex:N0,size:fe,fillOpacity:ba,strokeOpacity:ba,numOctaves:N0},BA={...Wh,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:th,WebkitFilter:th},Uh=e=>BA[e];function F1(e,n){let o=Uh(e);return o!==th&&(o=Qr),o.getAnimatableNone?o.getAnimatableNone(n):void 0}const VA=new Set(["auto","none","0"]);function NA(e,n,o){let s=0,a;for(;s{o.getValue(p).set(m)}),this.resolveNoneKeyframes()}}function Hh(e){return typeof e=="function"}let wu;function OA(){wu=void 0}const Qn={now:()=>(wu===void 0&&Qn.set(vt.isProcessing||rA.useManualTiming?vt.timestamp:performance.now()),wu),set:e=>{wu=e,queueMicrotask(OA)}},O0=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qr.test(e)||e==="0")&&!e.startsWith("url("));function WA(e){const n=e[0];if(e.length===1)return!0;for(let o=0;oHA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&wA(),this._resolved}onKeyframesResolved(n,o){this.resolvedAt=Qn.now(),this.hasAttemptedResolve=!0;const{name:s,type:a,velocity:u,delay:c,onComplete:f,onUpdate:p,isGenerator:m}=this.options;if(!m&&!UA(n,s,a,u))if(c)this.options.duration=0;else{p==null||p(Qu(n,this.options,o)),f==null||f(),this.resolveFinishedPromise();return}const g=this.initPlayback(n,o);g!==!1&&(this._resolved={keyframes:n,finalKeyframe:o,...g},this.onPostResolved())}onPostResolved(){}then(n,o){return this.currentFinishedPromise.then(n,o)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(n=>{this.resolveFinishedPromise=n})}}const Vi=(e,n,o)=>{const s=n-e;return s===0?1:(o-e)/s},N1=(e,n,o=10)=>{let s="";const a=Math.max(Math.round(n/o),2);for(let u=0;u{const g=m*c,v=g*e,S=g-o,C=nh(m,c),A=Math.exp(-v);return vf-S/C*A},u=m=>{const v=m*c*e,S=v*o+o,C=Math.pow(c,2)*Math.pow(m,2)*e,A=Math.exp(-v),P=nh(Math.pow(m,2),c);return(-a(m)+vf>0?-1:1)*((S-C)*A)/P}):(a=m=>{const g=Math.exp(-m*e),v=(m-o)*e+1;return-vf+g*v},u=m=>{const g=Math.exp(-m*e),v=(o-m)*(e*e);return g*v});const f=5/e,p=XA(a,u,f);if(e=mr(e),isNaN(p))return{stiffness:Ze.stiffness,damping:Ze.damping,duration:e};{const m=Math.pow(p,2)*s;return{stiffness:m,damping:c*2*Math.sqrt(s*m),duration:e}}}const qA=12;function XA(e,n,o){let s=o;for(let a=1;a=rh?1/0:n}const YA=["duration","bounce"],QA=["stiffness","damping","mass"];function W0(e,n){return n.some(o=>e[o]!==void 0)}function ZA(e){let n={velocity:Ze.velocity,stiffness:Ze.stiffness,damping:Ze.damping,mass:Ze.mass,isResolvedFromDuration:!1,...e};if(!W0(e,QA)&&W0(e,YA))if(e.visualDuration){const o=e.visualDuration,s=2*Math.PI/(o*1.2),a=s*s,u=2*vr(.05,1,1-e.bounce)*Math.sqrt(a);n={...n,mass:Ze.mass,stiffness:a,damping:u}}else{const o=GA(e);n={...n,...o,mass:Ze.mass},n.isResolvedFromDuration=!0}return n}function H1(e=Ze.visualDuration,n=Ze.bounce){const o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:s,restDelta:a}=o;const u=o.keyframes[0],c=o.keyframes[o.keyframes.length-1],f={done:!1,value:u},{stiffness:p,damping:m,mass:g,duration:v,velocity:S,isResolvedFromDuration:C}=ZA({...o,velocity:-gr(o.velocity||0)}),A=S||0,P=m/(2*Math.sqrt(p*g)),D=c-u,k=gr(Math.sqrt(p/g)),R=Math.abs(D)<5;s||(s=R?Ze.restSpeed.granular:Ze.restSpeed.default),a||(a=R?Ze.restDelta.granular:Ze.restDelta.default);let $;if(P<1){const z=nh(k,P);$=W=>{const O=Math.exp(-P*k*W);return c-O*((A+P*k*D)/z*Math.sin(z*W)+D*Math.cos(z*W))}}else if(P===1)$=z=>c-Math.exp(-k*z)*(D+(A+k*D)*z);else{const z=k*Math.sqrt(P*P-1);$=W=>{const O=Math.exp(-P*k*W),q=Math.min(z*W,300);return c-O*((A+P*k*D)*Math.sinh(q)+z*D*Math.cosh(q))/z}}const N={calculatedDuration:C&&v||null,next:z=>{const W=$(z);if(C)f.done=z>=v;else{let O=0;P<1&&(O=z===0?mr(A):W1($,z,W));const q=Math.abs(O)<=s,se=Math.abs(c-W)<=a;f.done=q&&se}return f.value=f.done?c:W,f},toString:()=>{const z=Math.min(U1(N),rh),W=N1(O=>N.next(z*O).value,z,30);return z+"ms "+W}};return N}function U0({keyframes:e,velocity:n=0,power:o=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:p,restDelta:m=.5,restSpeed:g}){const v=e[0],S={done:!1,value:v},C=q=>f!==void 0&&qp,A=q=>f===void 0?p:p===void 0||Math.abs(f-q)-P*Math.exp(-q/s),$=q=>k+R(q),N=q=>{const se=R(q),J=$(q);S.done=Math.abs(se)<=m,S.value=S.done?k:J};let z,W;const O=q=>{C(S.value)&&(z=q,W=H1({keyframes:[S.value,A(S.value)],velocity:W1($,q,S.value),damping:a,stiffness:u,restDelta:m,restSpeed:g}))};return O(0),{calculatedDuration:null,next:q=>{let se=!1;return!W&&z===void 0&&(se=!0,N(q),O(q)),z!==void 0&&q>=z?W.next(q-z):(!se&&N(q),S)}}}const JA=Pa(.42,0,1,1),eR=Pa(0,0,.58,1),K1=Pa(.42,0,.58,1),tR=e=>Array.isArray(e)&&typeof e[0]!="number",Kh=e=>Array.isArray(e)&&typeof e[0]=="number",H0={linear:Qt,easeIn:JA,easeInOut:K1,easeOut:eR,circIn:Fh,circInOut:k1,circOut:w1,backIn:Lh,backInOut:b1,backOut:S1,anticipate:x1},K0=e=>{if(Kh(e)){Qf(e.length===4);const[n,o,s,a]=e;return Pa(n,o,s,a)}else if(typeof e=="string")return Qf(H0[e]!==void 0),H0[e];return e},nR=(e,n)=>o=>n(e(o)),Aa=(...e)=>e.reduce(nR),Ye=(e,n,o)=>e+(n-e)*o;function Sf(e,n,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(n-e)*6*o:o<1/2?n:o<2/3?e+(n-e)*(2/3-o)*6:e}function rR({hue:e,saturation:n,lightness:o,alpha:s}){e/=360,n/=100,o/=100;let a=0,u=0,c=0;if(!n)a=u=c=o;else{const f=o<.5?o*(1+n):o+n-o*n,p=2*o-f;a=Sf(p,f,e+1/3),u=Sf(p,f,e),c=Sf(p,f,e-1/3)}return{red:Math.round(a*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:s}}function $u(e,n){return o=>o>0?n:e}const bf=(e,n,o)=>{const s=e*e,a=o*(n*n-s)+s;return a<0?0:Math.sqrt(a)},oR=[eh,Po,Ci],iR=e=>oR.find(n=>n.test(e));function G0(e){const n=iR(e);if(!n)return!1;let o=n.parse(e);return n===Ci&&(o=rR(o)),o}const q0=(e,n)=>{const o=G0(e),s=G0(n);if(!o||!s)return $u(e,n);const a={...o};return u=>(a.red=bf(o.red,s.red,u),a.green=bf(o.green,s.green,u),a.blue=bf(o.blue,s.blue,u),a.alpha=Ye(o.alpha,s.alpha,u),Po.transform(a))},oh=new Set(["none","hidden"]);function sR(e,n){return oh.has(e)?o=>o<=0?e:n:o=>o>=1?n:e}function aR(e,n){return o=>Ye(e,n,o)}function Gh(e){return typeof e=="number"?aR:typeof e=="string"?Bh(e)?$u:Et.test(e)?q0:cR:Array.isArray(e)?G1:typeof e=="object"?Et.test(e)?q0:lR:$u}function G1(e,n){const o=[...e],s=o.length,a=e.map((u,c)=>Gh(u)(u,n[c]));return u=>{for(let c=0;c{for(const u in s)o[u]=s[u](a);return o}}function uR(e,n){var o;const s=[],a={color:0,var:0,number:0};for(let u=0;u{const o=Qr.createTransformer(n),s=xa(e),a=xa(n);return s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length?oh.has(e)&&!a.values.length||oh.has(n)&&!s.values.length?sR(e,n):Aa(G1(uR(s,a),a.values),o):$u(e,n)};function q1(e,n,o){return typeof e=="number"&&typeof n=="number"&&typeof o=="number"?Ye(e,n,o):Gh(e)(e,n)}function dR(e,n,o){const s=[],a=o||q1,u=e.length-1;for(let c=0;cn[0];if(u===2&&e[0]===e[1])return()=>n[1];e[0]>e[u-1]&&(e=[...e].reverse(),n=[...n].reverse());const c=dR(n,s,a),f=c.length,p=m=>{let g=0;if(f>1)for(;gp(vr(e[0],e[u-1],m)):p}function hR(e,n){const o=e[e.length-1];for(let s=1;s<=n;s++){const a=Vi(0,n,s);e.push(Ye(o,1,a))}}function pR(e){const n=[0];return hR(n,e.length-1),n}function mR(e,n){return e.map(o=>o*n)}function gR(e,n){return e.map(()=>n||K1).splice(0,e.length-1)}function zu({duration:e=300,keyframes:n,times:o,ease:s="easeInOut"}){const a=tR(s)?s.map(K0):K0(s),u={done:!1,value:n[0]},c=mR(o&&o.length===n.length?o:pR(n),e),f=fR(c,n,{ease:Array.isArray(a)?a:gR(n,a)});return{calculatedDuration:e,next:p=>(u.value=f(p),u.done=p>=e,u)}}const yR=e=>{const n=({timestamp:o})=>e(o);return{start:()=>He.update(n,!0),stop:()=>Yr(n),now:()=>vt.isProcessing?vt.timestamp:Qn.now()}},vR={decay:U0,inertia:U0,tween:zu,keyframes:zu,spring:H1},SR=e=>e/100;class qh extends V1{constructor(n){super(n),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:p}=this.options;p&&p()};const{name:o,motionValue:s,element:a,keyframes:u}=this.options,c=(a==null?void 0:a.KeyframeResolver)||Vh,f=(p,m)=>this.onKeyframesResolved(p,m);this.resolver=new c(u,f,o,s,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(n){const{type:o="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:u,velocity:c=0}=this.options,f=Hh(o)?o:vR[o]||zu;let p,m;f!==zu&&typeof n[0]!="number"&&(p=Aa(SR,q1(n[0],n[1])),n=[0,100]);const g=f({...this.options,keyframes:n});u==="mirror"&&(m=f({...this.options,keyframes:[...n].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=U1(g));const{calculatedDuration:v}=g,S=v+a,C=S*(s+1)-a;return{generator:g,mirroredGenerator:m,mapPercentToKeyframes:p,calculatedDuration:v,resolvedDuration:S,totalDuration:C}}onPostResolved(){const{autoplay:n=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!n?this.pause():this.state=this.pendingPlayState}tick(n,o=!1){const{resolved:s}=this;if(!s){const{keyframes:q}=this.options;return{done:!0,value:q[q.length-1]}}const{finalKeyframe:a,generator:u,mirroredGenerator:c,mapPercentToKeyframes:f,keyframes:p,calculatedDuration:m,totalDuration:g,resolvedDuration:v}=s;if(this.startTime===null)return u.next(0);const{delay:S,repeat:C,repeatType:A,repeatDelay:P,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-g/this.speed,this.startTime)),o?this.currentTime=n:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(n-this.startTime)*this.speed;const k=this.currentTime-S*(this.speed>=0?1:-1),R=this.speed>=0?k<0:k>g;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let $=this.currentTime,N=u;if(C){const q=Math.min(this.currentTime,g)/v;let se=Math.floor(q),J=q%1;!J&&q>=1&&(J=1),J===1&&se--,se=Math.min(se,C+1),!!(se%2)&&(A==="reverse"?(J=1-J,P&&(J-=P/v)):A==="mirror"&&(N=c)),$=vr(0,1,J)*v}const z=R?{done:!1,value:p[0]}:N.next($);f&&(z.value=f(z.value));let{done:W}=z;!R&&m!==null&&(W=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&W);return O&&a!==void 0&&(z.value=Qu(p,this.options,a)),D&&D(z.value),O&&this.finish(),z}get duration(){const{resolved:n}=this;return n?gr(n.calculatedDuration):0}get time(){return gr(this.currentTime)}set time(n){n=mr(n),this.currentTime=n,this.holdTime!==null||this.speed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.speed)}get speed(){return this.playbackSpeed}set speed(n){const o=this.playbackSpeed!==n;this.playbackSpeed=n,o&&(this.time=gr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:n=yR,onPlay:o,startTime:s}=this.options;this.driver||(this.driver=n(u=>this.tick(u))),o&&o();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var n;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(n=this.currentTime)!==null&&n!==void 0?n:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:n}=this.options;n&&n()}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(n){return this.startTime=0,this.tick(n,!0)}}const bR=new Set(["opacity","clipPath","filter","transform"]);function Xh(e){let n;return()=>(n===void 0&&(n=e()),n)}const xR={linearEasing:void 0};function wR(e,n){const o=Xh(e);return()=>{var s;return(s=xR[n])!==null&&s!==void 0?s:o()}}const Mu=wR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function X1(e){return!!(typeof e=="function"&&Mu()||!e||typeof e=="string"&&(e in ih||Mu())||Kh(e)||Array.isArray(e)&&e.every(X1))}const Zs=([e,n,o,s])=>`cubic-bezier(${e}, ${n}, ${o}, ${s})`,ih={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zs([0,.65,.55,1]),circOut:Zs([.55,0,1,.45]),backIn:Zs([.31,.01,.66,-.59]),backOut:Zs([.33,1.53,.69,.99])};function Y1(e,n){if(e)return typeof e=="function"&&Mu()?N1(e,n):Kh(e)?Zs(e):Array.isArray(e)?e.map(o=>Y1(o,n)||ih.easeOut):ih[e]}function kR(e,n,o,{delay:s=0,duration:a=300,repeat:u=0,repeatType:c="loop",ease:f="easeInOut",times:p}={}){const m={[n]:o};p&&(m.offset=p);const g=Y1(f,a);return Array.isArray(g)&&(m.easing=g),e.animate(m,{delay:s,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"})}function X0(e,n){e.timeline=n,e.onfinish=null}const CR=Xh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Du=10,TR=2e4;function _R(e){return Hh(e.type)||e.type==="spring"||!X1(e.ease)}function PR(e,n){const o=new qh({...n,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const a=[];let u=0;for(;!s.done&&uthis.onKeyframesResolved(c,f),o,s,a),this.resolver.scheduleResolve()}initPlayback(n,o){var s;let{duration:a=300,times:u,ease:c,type:f,motionValue:p,name:m,startTime:g}=this.options;if(!(!((s=p.owner)===null||s===void 0)&&s.current))return!1;if(typeof c=="string"&&Mu()&&ER(c)&&(c=Q1[c]),_R(this.options)){const{onComplete:S,onUpdate:C,motionValue:A,element:P,...D}=this.options,k=PR(n,D);n=k.keyframes,n.length===1&&(n[1]=n[0]),a=k.duration,u=k.times,c=k.ease,f="keyframes"}const v=kR(p.owner.current,m,n,{...this.options,duration:a,times:u,ease:c});return v.startTime=g??this.calcStartTime(),this.pendingTimeline?(X0(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:S}=this.options;p.set(Qu(n,this.options,o)),S&&S(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:a,times:u,type:f,ease:c,keyframes:n}}get duration(){const{resolved:n}=this;if(!n)return 0;const{duration:o}=n;return gr(o)}get time(){const{resolved:n}=this;if(!n)return 0;const{animation:o}=n;return gr(o.currentTime||0)}set time(n){const{resolved:o}=this;if(!o)return;const{animation:s}=o;s.currentTime=mr(n)}get speed(){const{resolved:n}=this;if(!n)return 1;const{animation:o}=n;return o.playbackRate}set speed(n){const{resolved:o}=this;if(!o)return;const{animation:s}=o;s.playbackRate=n}get state(){const{resolved:n}=this;if(!n)return"idle";const{animation:o}=n;return o.playState}get startTime(){const{resolved:n}=this;if(!n)return null;const{animation:o}=n;return o.startTime}attachTimeline(n){if(!this._resolved)this.pendingTimeline=n;else{const{resolved:o}=this;if(!o)return Qt;const{animation:s}=o;X0(s,n)}return Qt}play(){if(this.isStopped)return;const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.playState==="finished"&&this.updateFinishedPromise(),o.play()}pause(){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:n}=this;if(!n)return;const{animation:o,keyframes:s,duration:a,type:u,ease:c,times:f}=n;if(o.playState==="idle"||o.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:g,onComplete:v,element:S,...C}=this.options,A=new qh({...C,keyframes:s,duration:a,type:u,ease:c,times:f,isGenerator:!0}),P=mr(this.time);m.setWithVelocity(A.sample(P-Du).value,A.sample(P).value,Du)}const{onStop:p}=this.options;p&&p(),this.cancel()}complete(){const{resolved:n}=this;n&&n.animation.finish()}cancel(){const{resolved:n}=this;n&&n.animation.cancel()}static supports(n){const{motionValue:o,name:s,repeatDelay:a,repeatType:u,damping:c,type:f}=n;return CR()&&s&&bR.has(s)&&o&&o.owner&&o.owner.current instanceof HTMLElement&&!o.owner.getProps().onUpdate&&!a&&u!=="mirror"&&c!==0&&f!=="inertia"}}const AR=Xh(()=>window.ScrollTimeline!==void 0);class RR{constructor(n){this.stop=()=>this.runAll("stop"),this.animations=n.filter(Boolean)}then(n,o){return Promise.all(this.animations).then(n).catch(o)}getAll(n){return this.animations[0][n]}setAll(n,o){for(let s=0;sAR()&&a.attachTimeline?a.attachTimeline(n):o(a));return()=>{s.forEach((a,u)=>{a&&a(),this.animations[u].stop()})}}get time(){return this.getAll("time")}set time(n){this.setAll("time",n)}get speed(){return this.getAll("speed")}set speed(n){this.setAll("speed",n)}get startTime(){return this.getAll("startTime")}get duration(){let n=0;for(let o=0;oo[n]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function $R({when:e,delay:n,delayChildren:o,staggerChildren:s,staggerDirection:a,repeat:u,repeatType:c,repeatDelay:f,from:p,elapsed:m,...g}){return!!Object.keys(g).length}const Yh=(e,n,o,s={},a,u)=>c=>{const f=jh(s,e)||{},p=f.delay||s.delay||0;let{elapsed:m=0}=s;m=m-mr(p);let g={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:n.getVelocity(),...f,delay:-m,onUpdate:S=>{n.set(S),f.onUpdate&&f.onUpdate(S)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:n,element:u?void 0:a};$R(f)||(g={...g,...nA(e,g)}),g.duration&&(g.duration=mr(g.duration)),g.repeatDelay&&(g.repeatDelay=mr(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(v=!0)),v&&!u&&n.get()!==void 0){const S=Qu(g.keyframes,f);if(S!==void 0)return He.update(()=>{g.onUpdate(S),g.onComplete()}),new RR([])}return!u&&Y0.supports(g)?new Y0(g):new qh(g)},zR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),MR=e=>Yf(e)?e[e.length-1]||0:e;function Qh(e,n){e.indexOf(n)===-1&&e.push(n)}function Zh(e,n){const o=e.indexOf(n);o>-1&&e.splice(o,1)}class Jh{constructor(){this.subscriptions=[]}add(n){return Qh(this.subscriptions,n),()=>Zh(this.subscriptions,n)}notify(n,o,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](n,o,s);else for(let u=0;u!isNaN(parseFloat(e));class IR{constructor(n,o={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,a=!0)=>{const u=Qn.now();this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(n),this.owner=o.owner}setCurrent(n){this.current=n,this.updatedAt=Qn.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=DR(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,o){this.events[n]||(this.events[n]=new Jh);const s=this.events[n].add(o);return n==="change"?()=>{s(),He.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,o){this.passiveEffect=n,this.stopPassiveEffect=o}set(n,o=!0){!o||!this.passiveEffect?this.updateAndNotify(n,o):this.passiveEffect(n,this.updateAndNotify)}setWithVelocity(n,o,s){this.set(o),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-s}jump(n,o=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=Qn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>Q0)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,Q0);return O1(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(n){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=n(o),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 wa(e,n){return new IR(e,n)}function jR(e,n,o){e.hasValue(n)?e.getValue(n).set(o):e.addValue(n,wa(o))}function LR(e,n){const o=Yu(e,n);let{transitionEnd:s={},transition:a={},...u}=o||{};u={...u,...s};for(const c in u){const f=MR(u[c]);jR(e,c,f)}}const ep=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),FR="framerAppearId",Z1="data-"+ep(FR);function J1(e){return e.props[Z1]}const At=e=>!!(e&&e.getVelocity);function BR(e){return!!(At(e)&&e.add)}function sh(e,n){const o=e.getValue("willChange");if(BR(o))return o.add(n)}function VR({protectedKeys:e,needsAnimating:n},o){const s=e.hasOwnProperty(o)&&n[o]!==!0;return n[o]=!1,s}function eS(e,n,{delay:o=0,transitionOverride:s,type:a}={}){var u;let{transition:c=e.getDefaultTransition(),transitionEnd:f,...p}=n;s&&(c=s);const m=[],g=a&&e.animationState&&e.animationState.getState()[a];for(const v in p){const S=e.getValue(v,(u=e.latestValues[v])!==null&&u!==void 0?u:null),C=p[v];if(C===void 0||g&&VR(g,v))continue;const A={delay:o,...jh(c||{},v)};let P=!1;if(window.MotionHandoffAnimation){const k=J1(e);if(k){const R=window.MotionHandoffAnimation(k,v,He);R!==null&&(A.startTime=R,P=!0)}}sh(e,v),S.start(Yh(v,S,C,e.shouldReduceMotion&&Mo.has(v)?{type:!1}:A,e,P));const D=S.animation;D&&m.push(D)}return f&&Promise.all(m).then(()=>{He.update(()=>{f&&LR(e,f)})}),m}function ah(e,n,o={}){var s;const a=Yu(e,n,o.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:u=e.getDefaultTransition()||{}}=a||{};o.transitionOverride&&(u=o.transitionOverride);const c=a?()=>Promise.all(eS(e,a,o)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:g=0,staggerChildren:v,staggerDirection:S}=u;return NR(e,n,g+m,v,S,o)}:()=>Promise.resolve(),{when:p}=u;if(p){const[m,g]=p==="beforeChildren"?[c,f]:[f,c];return m().then(()=>g())}else return Promise.all([c(),f(o.delay)])}function NR(e,n,o=0,s=0,a=1,u){const c=[],f=(e.variantChildren.size-1)*s,p=a===1?(m=0)=>m*s:(m=0)=>f-m*s;return Array.from(e.variantChildren).sort(OR).forEach((m,g)=>{m.notify("AnimationStart",n),c.push(ah(m,n,{...u,delay:o+p(g)}).then(()=>m.notify("AnimationComplete",n)))}),Promise.all(c)}function OR(e,n){return e.sortNodePosition(n)}function WR(e,n,o={}){e.notify("AnimationStart",n);let s;if(Array.isArray(n)){const a=n.map(u=>ah(e,u,o));s=Promise.all(a)}else if(typeof n=="string")s=ah(e,n,o);else{const a=typeof n=="function"?Yu(e,n,o.custom):n;s=Promise.all(eS(e,a,o))}return s.then(()=>{e.notify("AnimationComplete",n)})}const UR=Ih.length;function tS(e){if(!e)return;if(!e.isControllingVariants){const o=e.parent?tS(e.parent)||{}:{};return e.props.initial!==void 0&&(o.initial=e.props.initial),o}const n={};for(let o=0;oPromise.all(n.map(({animation:o,options:s})=>WR(e,o,s)))}function qR(e){let n=GR(e),o=Z0(),s=!0;const a=p=>(m,g)=>{var v;const S=Yu(e,g,p==="exit"?(v=e.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if(S){const{transition:C,transitionEnd:A,...P}=S;m={...m,...P,...A}}return m};function u(p){n=p(e)}function c(p){const{props:m}=e,g=tS(e.parent)||{},v=[],S=new Set;let C={},A=1/0;for(let D=0;DA&&N,se=!1;const J=Array.isArray($)?$:[$];let pe=J.reduce(a(k),{});z===!1&&(pe={});const{prevResolvedValues:Ie={}}=R,nt={...Ie,...pe},it=me=>{q=!0,S.has(me)&&(se=!0,S.delete(me)),R.needsAnimating[me]=!0;const Y=e.getValue(me);Y&&(Y.liveStyle=!1)};for(const me in nt){const Y=pe[me],ae=Ie[me];if(C.hasOwnProperty(me))continue;let Q=!1;Yf(Y)&&Yf(ae)?Q=!p1(Y,ae):Q=Y!==ae,Q?Y!=null?it(me):S.add(me):Y!==void 0&&S.has(me)?it(me):R.protectedKeys[me]=!0}R.prevProp=$,R.prevResolvedValues=pe,R.isActive&&(C={...C,...pe}),s&&e.blockInitialAnimation&&(q=!1),q&&(!(W&&O)||se)&&v.push(...J.map(me=>({animation:me,options:{type:k}})))}if(S.size){const D={};S.forEach(k=>{const R=e.getBaseTarget(k),$=e.getValue(k);$&&($.liveStyle=!0),D[k]=R??null}),v.push({animation:D})}let P=!!v.length;return s&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(P=!1),s=!1,P?n(v):Promise.resolve()}function f(p,m){var g;if(o[p].isActive===m)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(S=>{var C;return(C=S.animationState)===null||C===void 0?void 0:C.setActive(p,m)}),o[p].isActive=m;const v=c(p);for(const S in o)o[S].protectedKeys={};return v}return{animateChanges:c,setActive:f,setAnimateFunction:u,getState:()=>o,reset:()=>{o=Z0(),s=!0}}}function XR(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!p1(n,e):!1}function wo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Z0(){return{animate:wo(!0),whileInView:wo(),whileHover:wo(),whileTap:wo(),whileDrag:wo(),whileFocus:wo(),exit:wo()}}class Zr{constructor(n){this.isMounted=!1,this.node=n}update(){}}class YR extends Zr{constructor(n){super(n),n.animationState||(n.animationState=qR(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();Xu(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:o}=this.node.prevProps||{};n!==o&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)===null||n===void 0||n.call(this)}}let QR=0;class ZR extends Zr{constructor(){super(...arguments),this.id=QR++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:o}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===s)return;const a=this.node.animationState.setActive("exit",!n);o&&!n&&a.then(()=>o(this.id))}mount(){const{register:n}=this.node.presenceContext||{};n&&(this.unmount=n(this.id))}unmount(){}}const JR={animation:{Feature:YR},exit:{Feature:ZR}},An={x:!1,y:!1};function nS(){return An.x||An.y}function e$(e,n,o){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const u=(s=void 0)!==null&&s!==void 0?s:a.querySelectorAll(e);return u?Array.from(u):[]}return Array.from(e)}function rS(e,n){const o=e$(e),s=new AbortController,a={passive:!0,...n,signal:s.signal};return[o,a,()=>s.abort()]}function J0(e){return n=>{n.pointerType==="touch"||nS()||e(n)}}function t$(e,n,o={}){const[s,a,u]=rS(e,o),c=J0(f=>{const{target:p}=f,m=n(f);if(!m||!p)return;const g=J0(v=>{m(v),p.removeEventListener("pointerleave",g)});p.addEventListener("pointerleave",g,a)});return s.forEach(f=>{f.addEventListener("pointerenter",c,a)}),u}const tp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Js=new WeakSet;function ey(e){return n=>{n.key==="Enter"&&e(n)}}function xf(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const n$=(e,n)=>{const o=e.currentTarget;if(!o)return;const s=ey(()=>{if(Js.has(o))return;xf(o,"down");const a=ey(()=>{xf(o,"up")}),u=()=>xf(o,"cancel");o.addEventListener("keyup",a,n),o.addEventListener("blur",u,n)});o.addEventListener("keydown",s,n),o.addEventListener("blur",()=>o.removeEventListener("keydown",s),n)},r$=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function o$(e){return r$.has(e.tagName)||e.tabIndex!==-1}const oS=(e,n)=>n?e===n?!0:oS(e,n.parentElement):!1;function ty(e){return tp(e)&&!nS()}function i$(e,n,o={}){const[s,a,u]=rS(e,o),c=f=>{const p=f.currentTarget;if(!ty(f)||Js.has(p))return;Js.add(p);const m=n(f),g=(C,A)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",S),!(!ty(C)||!Js.has(p))&&(Js.delete(p),m&&m(C,{success:A}))},v=C=>{g(C,o.useGlobalTarget||oS(p,C.target))},S=C=>{g(C,!1)};window.addEventListener("pointerup",v,a),window.addEventListener("pointercancel",S,a)};return s.forEach(f=>{o$(f)||(f.tabIndex=0),(o.useGlobalTarget?window:f).addEventListener("pointerdown",c,a),f.addEventListener("focus",m=>n$(m,a),a)}),u}function s$(e){return e==="x"||e==="y"?An[e]?null:(An[e]=!0,()=>{An[e]=!1}):An.x||An.y?null:(An.x=An.y=!0,()=>{An.x=An.y=!1})}function Ra(e){return{point:{x:e.pageX,y:e.pageY}}}const a$=e=>n=>tp(n)&&e(n,Ra(n));function ka(e,n,o,s={passive:!0}){return e.addEventListener(n,o,s),()=>e.removeEventListener(n,o)}function ca(e,n,o,s){return ka(e,n,a$(o),s)}const ny=(e,n)=>Math.abs(e-n);function l$(e,n){const o=ny(e.x,n.x),s=ny(e.y,n.y);return Math.sqrt(o**2+s**2)}class iS{constructor(n,o,{transformPagePoint:s,contextWindow:a,dragSnapToOrigin:u=!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 v=kf(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,C=l$(v.offset,{x:0,y:0})>=3;if(!S&&!C)return;const{point:A}=v,{timestamp:P}=vt;this.history.push({...A,timestamp:P});const{onStart:D,onMove:k}=this.handlers;S||(D&&D(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,v)},this.handlePointerMove=(v,S)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=wf(S,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(v,S)=>{this.end();const{onEnd:C,onSessionEnd:A,resumeAnimation:P}=this.handlers;if(this.dragSnapToOrigin&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=kf(v.type==="pointercancel"?this.lastMoveEventInfo:wf(S,this.transformPagePoint),this.history);this.startEvent&&C&&C(v,D),A&&A(v,D)},!tp(n))return;this.dragSnapToOrigin=u,this.handlers=o,this.transformPagePoint=s,this.contextWindow=a||window;const c=Ra(n),f=wf(c,this.transformPagePoint),{point:p}=f,{timestamp:m}=vt;this.history=[{...p,timestamp:m}];const{onSessionStart:g}=o;g&&g(n,kf(f,this.history)),this.removeListeners=Aa(ca(this.contextWindow,"pointermove",this.handlePointerMove),ca(this.contextWindow,"pointerup",this.handlePointerUp),ca(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),Yr(this.updatePoint)}}function wf(e,n){return n?{point:n(e.point)}:e}function ry(e,n){return{x:e.x-n.x,y:e.y-n.y}}function kf({point:e},n){return{point:e,delta:ry(e,sS(n)),offset:ry(e,u$(n)),velocity:c$(n,.1)}}function u$(e){return e[0]}function sS(e){return e[e.length-1]}function c$(e,n){if(e.length<2)return{x:0,y:0};let o=e.length-1,s=null;const a=sS(e);for(;o>=0&&(s=e[o],!(a.timestamp-s.timestamp>mr(n)));)o--;if(!s)return{x:0,y:0};const u=gr(a.timestamp-s.timestamp);if(u===0)return{x:0,y:0};const c={x:(a.x-s.x)/u,y:(a.y-s.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function Ti(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const aS=1e-4,d$=1-aS,f$=1+aS,lS=.01,h$=0-lS,p$=0+lS;function Zt(e){return e.max-e.min}function m$(e,n,o){return Math.abs(e-n)<=o}function oy(e,n,o,s=.5){e.origin=s,e.originPoint=Ye(n.min,n.max,e.origin),e.scale=Zt(o)/Zt(n),e.translate=Ye(o.min,o.max,e.origin)-e.originPoint,(e.scale>=d$&&e.scale<=f$||isNaN(e.scale))&&(e.scale=1),(e.translate>=h$&&e.translate<=p$||isNaN(e.translate))&&(e.translate=0)}function da(e,n,o,s){oy(e.x,n.x,o.x,s?s.originX:void 0),oy(e.y,n.y,o.y,s?s.originY:void 0)}function iy(e,n,o){e.min=o.min+n.min,e.max=e.min+Zt(n)}function g$(e,n,o){iy(e.x,n.x,o.x),iy(e.y,n.y,o.y)}function sy(e,n,o){e.min=n.min-o.min,e.max=e.min+Zt(n)}function fa(e,n,o){sy(e.x,n.x,o.x),sy(e.y,n.y,o.y)}function y$(e,{min:n,max:o},s){return n!==void 0&&eo&&(e=s?Ye(o,e,s.max):Math.min(e,o)),e}function ay(e,n,o){return{min:n!==void 0?e.min+n:void 0,max:o!==void 0?e.max+o-(e.max-e.min):void 0}}function v$(e,{top:n,left:o,bottom:s,right:a}){return{x:ay(e.x,o,a),y:ay(e.y,n,s)}}function ly(e,n){let o=n.min-e.min,s=n.max-e.max;return n.max-n.mins?o=Vi(n.min,n.max-s,e.min):s>a&&(o=Vi(e.min,e.max-a,n.min)),vr(0,1,o)}function x$(e,n){const o={};return n.min!==void 0&&(o.min=n.min-e.min),n.max!==void 0&&(o.max=n.max-e.min),o}const lh=.35;function w$(e=lh){return e===!1?e=0:e===!0&&(e=lh),{x:uy(e,"left","right"),y:uy(e,"top","bottom")}}function uy(e,n,o){return{min:cy(e,n),max:cy(e,o)}}function cy(e,n){return typeof e=="number"?e:e[n]||0}const dy=()=>({translate:0,scale:1,origin:0,originPoint:0}),_i=()=>({x:dy(),y:dy()}),fy=()=>({min:0,max:0}),et=()=>({x:fy(),y:fy()});function gn(e){return[e("x"),e("y")]}function uS({top:e,left:n,right:o,bottom:s}){return{x:{min:n,max:o},y:{min:e,max:s}}}function k$({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function C$(e,n){if(!n)return e;const o=n({x:e.left,y:e.top}),s=n({x:e.right,y:e.bottom});return{top:o.y,left:o.x,bottom:s.y,right:s.x}}function Cf(e){return e===void 0||e===1}function uh({scale:e,scaleX:n,scaleY:o}){return!Cf(e)||!Cf(n)||!Cf(o)}function ko(e){return uh(e)||cS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cS(e){return hy(e.x)||hy(e.y)}function hy(e){return e&&e!=="0%"}function Iu(e,n,o){const s=e-o,a=n*s;return o+a}function py(e,n,o,s,a){return a!==void 0&&(e=Iu(e,a,s)),Iu(e,o,s)+n}function ch(e,n=0,o=1,s,a){e.min=py(e.min,n,o,s,a),e.max=py(e.max,n,o,s,a)}function dS(e,{x:n,y:o}){ch(e.x,n.translate,n.scale,n.originPoint),ch(e.y,o.translate,o.scale,o.originPoint)}const my=.999999999999,gy=1.0000000000001;function T$(e,n,o,s=!1){const a=o.length;if(!a)return;n.x=n.y=1;let u,c;for(let f=0;fmy&&(n.x=1),n.ymy&&(n.y=1)}function Pi(e,n){e.min=e.min+n,e.max=e.max+n}function yy(e,n,o,s,a=.5){const u=Ye(e.min,e.max,a);ch(e,n,o,u,s)}function Ei(e,n){yy(e.x,n.x,n.scaleX,n.scale,n.originX),yy(e.y,n.y,n.scaleY,n.scale,n.originY)}function fS(e,n){return uS(C$(e.getBoundingClientRect(),n))}function _$(e,n,o){const s=fS(e,o),{scroll:a}=n;return a&&(Pi(s.x,a.offset.x),Pi(s.y,a.offset.y)),s}const hS=({current:e})=>e?e.ownerDocument.defaultView:null,P$=new WeakMap;class E${constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=et(),this.visualElement=n}start(n,{snapToCursor:o=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),o&&this.snapToCursor(Ra(g).point)},u=(g,v)=>{const{drag:S,dragPropagation:C,onDragStart:A}=this.getProps();if(S&&!C&&(this.openDragLock&&this.openDragLock(),this.openDragLock=s$(S),!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),gn(D=>{let k=this.getAxisMotionValue(D).get()||0;if(Yn.test(k)){const{projection:R}=this.visualElement;if(R&&R.layout){const $=R.layout.layoutBox[D];$&&(k=Zt($)*(parseFloat(k)/100))}}this.originPoint[D]=k}),A&&He.postRender(()=>A(g,v)),sh(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},c=(g,v)=>{const{dragPropagation:S,dragDirectionLock:C,onDirectionLock:A,onDrag:P}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:D}=v;if(C&&this.currentDirection===null){this.currentDirection=A$(D),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",v.point,D),this.updateAxis("y",v.point,D),this.visualElement.render(),P&&P(g,v)},f=(g,v)=>this.stop(g,v),p=()=>gn(g=>{var v;return this.getAnimationState(g)==="paused"&&((v=this.getAxisMotionValue(g).animation)===null||v===void 0?void 0:v.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new iS(n,{onSessionStart:a,onStart:u,onMove:c,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:hS(this.visualElement)})}stop(n,o){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:u}=this.getProps();u&&He.postRender(()=>u(n,o))}cancel(){this.isDragging=!1;const{projection:n,animationState:o}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(n,o,s){const{drag:a}=this.getProps();if(!s||!lu(n,a,this.currentDirection))return;const u=this.getAxisMotionValue(n);let c=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(c=y$(c,this.constraints[n],this.elastic[n])),u.set(c)}resolveConstraints(){var n;const{dragConstraints:o,dragElastic:s}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(n=this.visualElement.projection)===null||n===void 0?void 0:n.layout,u=this.constraints;o&&Ti(o)?this.constraints||(this.constraints=this.resolveRefConstraints()):o&&a?this.constraints=v$(a.layoutBox,o):this.constraints=!1,this.elastic=w$(s),u!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&gn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=x$(a.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:o}=this.getProps();if(!n||!Ti(n))return!1;const s=n.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const u=_$(s,a.root,this.visualElement.getTransformPagePoint());let c=S$(a.layout.layoutBox,u);if(o){const f=o(k$(c));this.hasMutatedConstraints=!!f,f&&(c=uS(f))}return c}startAnimation(n){const{drag:o,dragMomentum:s,dragElastic:a,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),p=this.constraints||{},m=gn(g=>{if(!lu(g,o,this.currentDirection))return;let v=p[g]||{};c&&(v={min:0,max:0});const S=a?200:1e6,C=a?40:1e7,A={type:"inertia",velocity:s?n[g]:0,bounceStiffness:S,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...u,...v};return this.startAxisValueAnimation(g,A)});return Promise.all(m).then(f)}startAxisValueAnimation(n,o){const s=this.getAxisMotionValue(n);return sh(this.visualElement,n),s.start(Yh(n,s,0,o,this.visualElement,!1))}stopAnimation(){gn(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){gn(n=>{var o;return(o=this.getAxisMotionValue(n).animation)===null||o===void 0?void 0:o.pause()})}getAnimationState(n){var o;return(o=this.getAxisMotionValue(n).animation)===null||o===void 0?void 0:o.state}getAxisMotionValue(n){const o=`_drag${n.toUpperCase()}`,s=this.visualElement.getProps(),a=s[o];return a||this.visualElement.getValue(n,(s.initial?s.initial[n]:void 0)||0)}snapToCursor(n){gn(o=>{const{drag:s}=this.getProps();if(!lu(o,s,this.currentDirection))return;const{projection:a}=this.visualElement,u=this.getAxisMotionValue(o);if(a&&a.layout){const{min:c,max:f}=a.layout.layoutBox[o];u.set(n[o]-Ye(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:o}=this.getProps(),{projection:s}=this.visualElement;if(!Ti(o)||!s||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};gn(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const p=f.get();a[c]=b$({min:p,max:p},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),gn(c=>{if(!lu(c,n,null))return;const f=this.getAxisMotionValue(c),{min:p,max:m}=this.constraints[c];f.set(Ye(p,m,a[c]))})}addListeners(){if(!this.visualElement.current)return;P$.set(this.visualElement,this);const n=this.visualElement.current,o=ca(n,"pointerdown",p=>{const{drag:m,dragListener:g=!0}=this.getProps();m&&g&&this.start(p)}),s=()=>{const{dragConstraints:p}=this.getProps();Ti(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,u=a.addEventListener("measure",s);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),He.read(s);const c=ka(window,"resize",()=>this.scalePositionWithinConstraints()),f=a.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(gn(g=>{const v=this.getAxisMotionValue(g);v&&(this.originPoint[g]+=p[g].translate,v.set(v.get()+p[g].translate))}),this.visualElement.render())});return()=>{c(),o(),u(),f&&f()}}getProps(){const n=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:s=!1,dragPropagation:a=!1,dragConstraints:u=!1,dragElastic:c=lh,dragMomentum:f=!0}=n;return{...n,drag:o,dragDirectionLock:s,dragPropagation:a,dragConstraints:u,dragElastic:c,dragMomentum:f}}}function lu(e,n,o){return(n===!0||n===e)&&(o===null||o===e)}function A$(e,n=10){let o=null;return Math.abs(e.y)>n?o="y":Math.abs(e.x)>n&&(o="x"),o}class R$ extends Zr{constructor(n){super(n),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new E$(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const vy=e=>(n,o)=>{e&&He.postRender(()=>e(n,o))};class $$ extends Zr{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(n){this.session=new iS(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hS(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:o,onPan:s,onPanEnd:a}=this.node.getProps();return{onSessionStart:vy(n),onStart:vy(o),onMove:s,onEnd:(u,c)=>{delete this.session,a&&He.postRender(()=>a(u,c))}}}mount(){this.removePointerDownListener=ca(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const $a=I.createContext(null);function z$(){const e=I.useContext($a);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:s}=e,a=I.useId();I.useEffect(()=>s(a),[]);const u=I.useCallback(()=>o&&o(a),[a,o]);return!n&&o?[!1,u]:[!0]}function M$(){return D$(I.useContext($a))}function D$(e){return e===null?!0:e.isPresent}const np=I.createContext({}),pS=I.createContext({}),ku={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Sy(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const Hs={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(fe.test(e))e=parseFloat(e);else return e;const o=Sy(e,n.target.x),s=Sy(e,n.target.y);return`${o}% ${s}%`}},I$={correct:(e,{treeScale:n,projectionDelta:o})=>{const s=e,a=Qr.parse(e);if(a.length>5)return s;const u=Qr.createTransformer(e),c=typeof a[0]!="number"?1:0,f=o.x.scale*n.x,p=o.y.scale*n.y;a[0+c]/=f,a[1+c]/=p;const m=Ye(f,p,.5);return typeof a[2+c]=="number"&&(a[2+c]/=m),typeof a[3+c]=="number"&&(a[3+c]/=m),u(a)}},ju={};function j$(e){Object.assign(ju,e)}const{schedule:rp,cancel:U3}=m1(queueMicrotask,!1);class L$ extends I.Component{componentDidMount(){const{visualElement:n,layoutGroup:o,switchLayoutGroup:s,layoutId:a}=this.props,{projection:u}=n;j$(F$),u&&(o.group&&o.group.add(u),s&&s.register&&a&&s.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),ku.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:o,visualElement:s,drag:a,isPresent:u}=this.props,c=s.projection;return c&&(c.isPresent=u,a||n.layoutDependency!==o||o===void 0?c.willUpdate():this.safeToRemove(),n.isPresent!==u&&(u?c.promote():c.relegate()||He.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),rp.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:o,switchLayoutGroup:s}=this.props,{projection:a}=n;a&&(a.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(a),s&&s.deregister&&s.deregister(a))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function mS(e){const[n,o]=z$(),s=I.useContext(np);return F.jsx(L$,{...e,layoutGroup:s,switchLayoutGroup:I.useContext(pS),isPresent:n,safeToRemove:o})}const F$={borderRadius:{...Hs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hs,borderTopRightRadius:Hs,borderBottomLeftRadius:Hs,borderBottomRightRadius:Hs,boxShadow:I$},gS=["TopLeft","TopRight","BottomLeft","BottomRight"],B$=gS.length,by=e=>typeof e=="string"?parseFloat(e):e,xy=e=>typeof e=="number"||fe.test(e);function V$(e,n,o,s,a,u){a?(e.opacity=Ye(0,o.opacity!==void 0?o.opacity:1,N$(s)),e.opacityExit=Ye(n.opacity!==void 0?n.opacity:1,0,O$(s))):u&&(e.opacity=Ye(n.opacity!==void 0?n.opacity:1,o.opacity!==void 0?o.opacity:1,s));for(let c=0;csn?1:o(Vi(e,n,s))}function ky(e,n){e.min=n.min,e.max=n.max}function pn(e,n){ky(e.x,n.x),ky(e.y,n.y)}function Cy(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}function Ty(e,n,o,s,a){return e-=n,e=Iu(e,1/o,s),a!==void 0&&(e=Iu(e,1/a,s)),e}function W$(e,n=0,o=1,s=.5,a,u=e,c=e){if(Yn.test(n)&&(n=parseFloat(n),n=Ye(c.min,c.max,n/100)-c.min),typeof n!="number")return;let f=Ye(u.min,u.max,s);e===u&&(f-=n),e.min=Ty(e.min,n,o,f,a),e.max=Ty(e.max,n,o,f,a)}function _y(e,n,[o,s,a],u,c){W$(e,n[o],n[s],n[a],n.scale,u,c)}const U$=["x","scaleX","originX"],H$=["y","scaleY","originY"];function Py(e,n,o,s){_y(e.x,n,U$,o?o.x:void 0,s?s.x:void 0),_y(e.y,n,H$,o?o.y:void 0,s?s.y:void 0)}function Ey(e){return e.translate===0&&e.scale===1}function vS(e){return Ey(e.x)&&Ey(e.y)}function Ay(e,n){return e.min===n.min&&e.max===n.max}function K$(e,n){return Ay(e.x,n.x)&&Ay(e.y,n.y)}function Ry(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function SS(e,n){return Ry(e.x,n.x)&&Ry(e.y,n.y)}function $y(e){return Zt(e.x)/Zt(e.y)}function zy(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}class G${constructor(){this.members=[]}add(n){Qh(this.members,n),n.scheduleRender()}remove(n){if(Zh(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(n){const o=this.members.findIndex(a=>n===a);if(o===0)return!1;let s;for(let a=o;a>=0;a--){const u=this.members[a];if(u.isPresent!==!1){s=u;break}}return s?(this.promote(s),!0):!1}promote(n,o){const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.instance&&s.scheduleRender(),n.scheduleRender(),n.resumeFrom=s,o&&(n.resumeFrom.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:a}=n.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:o,resumingFrom:s}=n;o.onExitComplete&&o.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function q$(e,n,o){let s="";const a=e.x.translate/n.x,u=e.y.translate/n.y,c=(o==null?void 0:o.z)||0;if((a||u||c)&&(s=`translate3d(${a}px, ${u}px, ${c}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),o){const{transformPerspective:m,rotate:g,rotateX:v,rotateY:S,skewX:C,skewY:A}=o;m&&(s=`perspective(${m}px) ${s}`),g&&(s+=`rotate(${g}deg) `),v&&(s+=`rotateX(${v}deg) `),S&&(s+=`rotateY(${S}deg) `),C&&(s+=`skewX(${C}deg) `),A&&(s+=`skewY(${A}deg) `)}const f=e.x.scale*n.x,p=e.y.scale*n.y;return(f!==1||p!==1)&&(s+=`scale(${f}, ${p})`),s||"none"}const X$=(e,n)=>e.depth-n.depth;class Y${constructor(){this.children=[],this.isDirty=!1}add(n){Qh(this.children,n),this.isDirty=!0}remove(n){Zh(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(X$),this.isDirty=!1,this.children.forEach(n)}}function Cu(e){const n=At(e)?e.get():e;return zR(n)?n.toValue():n}function Q$(e,n){const o=Qn.now(),s=({timestamp:a})=>{const u=a-o;u>=n&&(Yr(s),e(u-n))};return He.read(s,!0),()=>Yr(s)}function Z$(e){return e instanceof SVGElement&&e.tagName!=="svg"}function J$(e,n,o){const s=At(e)?e:wa(e);return s.start(Yh("",s,n,o)),s.animation}const Co={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ea=typeof window<"u"&&window.MotionDebug!==void 0,Tf=["","X","Y","Z"],ez={visibility:"hidden"},My=1e3;let tz=0;function _f(e,n,o,s){const{latestValues:a}=n;a[e]&&(o[e]=a[e],n.setStaticValue(e,0),s&&(s[e]=0))}function bS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const o=J1(n);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:a,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(o,"transform",He,!(a||u))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&bS(s)}function xS({attachResizeListener:e,defaultParent:n,measureScroll:o,checkIsScrollRoot:s,resetTransform:a}){return class{constructor(c={},f=n==null?void 0:n()){this.id=tz++,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,ea&&(Co.totalNodes=Co.resolvedTargetDeltas=Co.recalculatedProjection=0),this.nodes.forEach(oz),this.nodes.forEach(uz),this.nodes.forEach(cz),this.nodes.forEach(iz),ea&&window.MotionDebug.record(Co)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let p=0;pthis.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=Q$(S,250),ku.hasAnimatedSinceResize&&(ku.hasAnimatedSinceResize=!1,this.nodes.forEach(Iy))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:S,hasRelativeTargetChanged:C,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const P=this.options.transition||g.getDefaultTransition()||mz,{onLayoutAnimationStart:D,onLayoutAnimationComplete:k}=g.getProps(),R=!this.targetLayout||!SS(this.targetLayout,A)||C,$=!S&&C;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||$||S&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(v,$);const N={...jh(P,"layout"),onPlay:D,onComplete:k};(g.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N)}else S||Iy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Yr(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(dz),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&bS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g{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 p=0;p{const z=N/1e3;jy(v.x,c.x,z),jy(v.y,c.y,z),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fa(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hz(this.relativeTarget,this.relativeTargetOrigin,S,z),$&&K$(this.relativeTarget,$)&&(this.isProjectionDirty=!1),$||($=et()),pn($,this.relativeTarget)),P&&(this.animationValues=g,V$(g,m,this.latestValues,z,R,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Yr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{ku.hasAnimatedSinceResize=!0,this.currentAnimation=J$(0,My,{...c,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(My),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:p,layout:m,latestValues:g}=c;if(!(!f||!p||!m)){if(this!==c&&this.layout&&m&&wS(this.options.animationType,this.layout.layoutBox,m.layoutBox)){p=this.target||et();const v=Zt(this.layout.layoutBox.x);p.x.min=c.target.x.min,p.x.max=p.x.min+v;const S=Zt(this.layout.layoutBox.y);p.y.min=c.target.y.min,p.y.max=p.y.min+S}pn(f,p),Ei(f,g),da(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new G$),this.sharedNodes.get(c).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:f}=this.options;return f?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:f}=this.options;return f?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:p}={}){const m=this.getStack();m&&m.promote(this,p),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:p}=c;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(f=!0),!f)return;const m={};p.z&&_f("z",c,m,this.animationValues);for(let g=0;g{var f;return(f=c.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(Dy),this.root.sharedNodes.clear()}}}function nz(e){e.updateLayout()}function rz(e){var n;const o=((n=e.resumeFrom)===null||n===void 0?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:a}=e.layout,{animationType:u}=e.options,c=o.source!==e.layout.source;u==="size"?gn(v=>{const S=c?o.measuredBox[v]:o.layoutBox[v],C=Zt(S);S.min=s[v].min,S.max=S.min+C}):wS(u,o.layoutBox,s)&&gn(v=>{const S=c?o.measuredBox[v]:o.layoutBox[v],C=Zt(s[v]);S.max=S.min+C,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+C)});const f=_i();da(f,s,o.layoutBox);const p=_i();c?da(p,e.applyTransform(a,!0),o.measuredBox):da(p,s,o.layoutBox);const m=!vS(f);let g=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:S,layout:C}=v;if(S&&C){const A=et();fa(A,o.layoutBox,S.layoutBox);const P=et();fa(P,s,C.layoutBox),SS(A,P)||(g=!0),v.options.layoutRoot&&(e.relativeTarget=P,e.relativeTargetOrigin=A,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:p,layoutDelta:f,hasLayoutChanged:m,hasRelativeTargetChanged:g})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function oz(e){ea&&Co.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 iz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sz(e){e.clearSnapshot()}function Dy(e){e.clearMeasurements()}function az(e){e.isLayoutDirty=!1}function lz(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function Iy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uz(e){e.resolveTargetDelta()}function cz(e){e.calcProjection()}function dz(e){e.resetSkewAndRotation()}function fz(e){e.removeLeadSnapshot()}function jy(e,n,o){e.translate=Ye(n.translate,0,o),e.scale=Ye(n.scale,1,o),e.origin=n.origin,e.originPoint=n.originPoint}function Ly(e,n,o,s){e.min=Ye(n.min,o.min,s),e.max=Ye(n.max,o.max,s)}function hz(e,n,o,s){Ly(e.x,n.x,o.x,s),Ly(e.y,n.y,o.y,s)}function pz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mz={duration:.45,ease:[.4,0,.1,1]},Fy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),By=Fy("applewebkit/")&&!Fy("chrome/")?Math.round:Qt;function Vy(e){e.min=By(e.min),e.max=By(e.max)}function gz(e){Vy(e.x),Vy(e.y)}function wS(e,n,o){return e==="position"||e==="preserve-aspect"&&!m$($y(n),$y(o),.2)}function yz(e){var n;return e!==e.root&&((n=e.scroll)===null||n===void 0?void 0:n.wasRoot)}const vz=xS({attachResizeListener:(e,n)=>ka(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Pf={current:void 0},kS=xS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Pf.current){const e=new vz({});e.mount(window),e.setOptions({layoutScroll:!0}),Pf.current=e}return Pf.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Sz={pan:{Feature:$$},drag:{Feature:R$,ProjectionNode:kS,MeasureLayout:mS}};function Ny(e,n,o){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",o==="Start");const a="onHover"+o,u=s[a];u&&He.postRender(()=>u(n,Ra(n)))}class bz extends Zr{mount(){const{current:n}=this.node;n&&(this.unmount=t$(n,o=>(Ny(this.node,o,"Start"),s=>Ny(this.node,s,"End"))))}unmount(){}}class xz extends Zr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Aa(ka(this.node.current,"focus",()=>this.onFocus()),ka(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Oy(e,n,o){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",o==="Start");const a="onTap"+(o==="End"?"":o),u=s[a];u&&He.postRender(()=>u(n,Ra(n)))}class wz extends Zr{mount(){const{current:n}=this.node;n&&(this.unmount=i$(n,o=>(Oy(this.node,o,"Start"),(s,{success:a})=>Oy(this.node,s,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const dh=new WeakMap,Ef=new WeakMap,kz=e=>{const n=dh.get(e.target);n&&n(e)},Cz=e=>{e.forEach(kz)};function Tz({root:e,...n}){const o=e||document;Ef.has(o)||Ef.set(o,{});const s=Ef.get(o),a=JSON.stringify(n);return s[a]||(s[a]=new IntersectionObserver(Cz,{root:e,...n})),s[a]}function _z(e,n,o){const s=Tz(n);return dh.set(e,o),s.observe(e),()=>{dh.delete(e),s.unobserve(e)}}const Pz={some:0,all:1};class Ez extends Zr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:o,margin:s,amount:a="some",once:u}=n,c={root:o?o.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:Pz[a]},f=p=>{const{isIntersecting:m}=p;if(this.isInView===m||(this.isInView=m,u&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:g,onViewportLeave:v}=this.node.getProps(),S=m?g:v;S&&S(p)};return _z(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:o}=this.node;["amount","margin","root"].some(Az(n,o))&&this.startObserver()}unmount(){}}function Az({viewport:e={}},{viewport:n={}}={}){return o=>e[o]!==n[o]}const Rz={inView:{Feature:Ez},tap:{Feature:wz},focus:{Feature:xz},hover:{Feature:bz}},$z={layout:{ProjectionNode:kS,MeasureLayout:mS}},op=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Zu=I.createContext({}),ip=typeof window<"u",CS=ip?I.useLayoutEffect:I.useEffect,TS=I.createContext({strict:!1});function zz(e,n,o,s,a){var u,c;const{visualElement:f}=I.useContext(Zu),p=I.useContext(TS),m=I.useContext($a),g=I.useContext(op).reducedMotion,v=I.useRef(null);s=s||p.renderer,!v.current&&s&&(v.current=s(e,{visualState:n,parent:f,props:o,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:g}));const S=v.current,C=I.useContext(pS);S&&!S.projection&&a&&(S.type==="html"||S.type==="svg")&&Mz(v.current,o,a,C);const A=I.useRef(!1);I.useInsertionEffect(()=>{S&&A.current&&S.update(o,m)});const P=o[Z1],D=I.useRef(!!P&&!(!((u=window.MotionHandoffIsComplete)===null||u===void 0)&&u.call(window,P))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,P)));return CS(()=>{S&&(A.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),rp.render(S.render),D.current&&S.animationState&&S.animationState.animateChanges())}),I.useEffect(()=>{S&&(!D.current&&S.animationState&&S.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var k;(k=window.MotionHandoffMarkAsComplete)===null||k===void 0||k.call(window,P)}),D.current=!1))}),S}function Mz(e,n,o,s){const{layoutId:a,layout:u,drag:c,dragConstraints:f,layoutScroll:p,layoutRoot:m}=n;e.projection=new o(e.latestValues,n["data-framer-portal-id"]?void 0:_S(e.parent)),e.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!c||f&&Ti(f),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:p,layoutRoot:m})}function _S(e){if(e)return e.options.allowProjection!==!1?e.projection:_S(e.parent)}function Dz(e,n,o){return I.useCallback(s=>{s&&e.mount&&e.mount(s),n&&(s?n.mount(s):n.unmount()),o&&(typeof o=="function"?o(s):Ti(o)&&(o.current=s))},[n])}function Ju(e){return Xu(e.animate)||Ih.some(n=>Sa(e[n]))}function PS(e){return!!(Ju(e)||e.variants)}function Iz(e,n){if(Ju(e)){const{initial:o,animate:s}=e;return{initial:o===!1||Sa(o)?o:void 0,animate:Sa(s)?s:void 0}}return e.inherit!==!1?n:{}}function jz(e){const{initial:n,animate:o}=Iz(e,I.useContext(Zu));return I.useMemo(()=>({initial:n,animate:o}),[Wy(n),Wy(o)])}function Wy(e){return Array.isArray(e)?e.join(" "):e}const Uy={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"]},Ni={};for(const e in Uy)Ni[e]={isEnabled:n=>Uy[e].some(o=>!!n[o])};function Lz(e){for(const n in e)Ni[n]={...Ni[n],...e[n]}}const Fz=Symbol.for("motionComponentSymbol");function Bz({preloadedFeatures:e,createVisualElement:n,useRender:o,useVisualState:s,Component:a}){e&&Lz(e);function u(f,p){let m;const g={...I.useContext(op),...f,layoutId:Vz(f)},{isStatic:v}=g,S=jz(f),C=s(f,v);if(!v&&ip){Nz();const A=Oz(g);m=A.MeasureLayout,S.visualElement=zz(a,C,g,n,A.ProjectionNode)}return F.jsxs(Zu.Provider,{value:S,children:[m&&S.visualElement?F.jsx(m,{visualElement:S.visualElement,...g}):null,o(a,f,Dz(C,S.visualElement,p),C,v,S.visualElement)]})}const c=I.forwardRef(u);return c[Fz]=a,c}function Vz({layoutId:e}){const n=I.useContext(np).id;return n&&e!==void 0?n+"-"+e:e}function Nz(e,n){I.useContext(TS).strict}function Oz(e){const{drag:n,layout:o}=Ni;if(!n&&!o)return{};const s={...n,...o};return{MeasureLayout:n!=null&&n.isEnabled(e)||o!=null&&o.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Wz=["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 sp(e){return typeof e!="string"||e.includes("-")?!1:!!(Wz.indexOf(e)>-1||/[A-Z]/u.test(e))}function ES(e,{style:n,vars:o},s,a){Object.assign(e.style,n,a&&a.getProjectionStyles(s));for(const u in o)e.style.setProperty(u,o[u])}const AS=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 RS(e,n,o,s){ES(e,n,void 0,s);for(const a in n.attrs)e.setAttribute(AS.has(a)?a:ep(a),n.attrs[a])}function $S(e,{layout:n,layoutId:o}){return Mo.has(e)||e.startsWith("origin")||(n||o!==void 0)&&(!!ju[e]||e==="opacity")}function ap(e,n,o){var s;const{style:a}=e,u={};for(const c in a)(At(a[c])||n.style&&At(n.style[c])||$S(c,e)||((s=o==null?void 0:o.getValue(c))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(u[c]=a[c]);return u}function zS(e,n,o){const s=ap(e,n,o);for(const a in e)if(At(e[a])||At(n[a])){const u=_a.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[u]=e[a]}return s}function lp(e){const n=I.useRef(null);return n.current===null&&(n.current=e()),n.current}function Uz({scrapeMotionValuesFromProps:e,createRenderState:n,onMount:o},s,a,u){const c={latestValues:Hz(s,a,u,e),renderState:n()};return o&&(c.mount=f=>o(s,f,c)),c}const MS=e=>(n,o)=>{const s=I.useContext(Zu),a=I.useContext($a),u=()=>Uz(e,n,s,a);return o?u():lp(u)};function Hz(e,n,o,s){const a={},u=s(e,{});for(const S in u)a[S]=Cu(u[S]);let{initial:c,animate:f}=e;const p=Ju(e),m=PS(e);n&&m&&!p&&e.inherit!==!1&&(c===void 0&&(c=n.initial),f===void 0&&(f=n.animate));let g=o?o.initial===!1:!1;g=g||c===!1;const v=g?f:c;if(v&&typeof v!="boolean"&&!Xu(v)){const S=Array.isArray(v)?v:[v];for(let C=0;C({style:{},transform:{},transformOrigin:{},vars:{}}),DS=()=>({...up(),attrs:{}}),IS=(e,n)=>n&&typeof e=="number"?n.transform(e):e,Kz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Gz=_a.length;function qz(e,n,o){let s="",a=!0;for(let u=0;utypeof e=="string"&&e.toLowerCase()==="svg",Jz={useVisualState:MS({scrapeMotionValuesFromProps:zS,createRenderState:DS,onMount:(e,n,{renderState:o,latestValues:s})=>{He.read(()=>{try{o.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{o.dimensions={x:0,y:0,width:0,height:0}}}),He.render(()=>{dp(o,s,fp(n.tagName),e.transformTemplate),RS(n,o)})}})},eM={useVisualState:MS({scrapeMotionValuesFromProps:ap,createRenderState:up})};function jS(e,n,o){for(const s in n)!At(n[s])&&!$S(s,o)&&(e[s]=n[s])}function tM({transformTemplate:e},n){return I.useMemo(()=>{const o=up();return cp(o,n,e),Object.assign({},o.vars,o.style)},[n])}function nM(e,n){const o=e.style||{},s={};return jS(s,o,e),Object.assign(s,tM(e,n)),s}function rM(e,n){const o={},s=nM(e,n);return e.drag&&e.dragListener!==!1&&(o.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(o.tabIndex=0),o.style=s,o}const oM=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 Lu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oM.has(e)}let LS=e=>!Lu(e);function iM(e){e&&(LS=n=>n.startsWith("on")?!Lu(n):e(n))}try{iM(require("@emotion/is-prop-valid").default)}catch{}function sM(e,n,o){const s={};for(const a in e)a==="values"&&typeof e.values=="object"||(LS(a)||o===!0&&Lu(a)||!n&&!Lu(a)||e.draggable&&a.startsWith("onDrag"))&&(s[a]=e[a]);return s}function aM(e,n,o,s){const a=I.useMemo(()=>{const u=DS();return dp(u,n,fp(s),e.transformTemplate),{...u.attrs,style:{...u.style}}},[n]);if(e.style){const u={};jS(u,e.style,e),a.style={...u,...a.style}}return a}function lM(e=!1){return(o,s,a,{latestValues:u},c)=>{const p=(sp(o)?aM:rM)(s,u,c,o),m=sM(s,typeof o=="string",e),g=o!==I.Fragment?{...m,...p,ref:a}:{},{children:v}=s,S=I.useMemo(()=>At(v)?v.get():v,[v]);return I.createElement(o,{...g,children:S})}}function uM(e,n){return function(s,{forwardMotionProps:a}={forwardMotionProps:!1}){const c={...sp(s)?Jz:eM,preloadedFeatures:e,useRender:lM(a),createVisualElement:n,Component:s};return Bz(c)}}const fh={current:null},FS={current:!1};function cM(){if(FS.current=!0,!!ip)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>fh.current=e.matches;e.addListener(n),n()}else fh.current=!1}function dM(e,n,o){for(const s in n){const a=n[s],u=o[s];if(At(a))e.addValue(s,a);else if(At(u))e.addValue(s,wa(a,{owner:e}));else if(u!==a)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(s);e.addValue(s,wa(c!==void 0?c:a,{owner:e}))}}for(const s in o)n[s]===void 0&&e.removeValue(s);return n}const Ky=new WeakMap,fM=[...R1,Et,Qr],hM=e=>fM.find(A1(e)),Gy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class pM{scrapeMotionValuesFromProps(n,o,s){return{}}constructor({parent:n,props:o,presenceContext:s,reducedMotionConfig:a,blockInitialAnimation:u,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vh,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 S=Qn.now();this.renderScheduledAtthis.bindToMotionValue(s,o)),FS.current||cM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ky.delete(this.current),this.projection&&this.projection.unmount(),Yr(this.notifyUpdate),Yr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const o=this.features[n];o&&(o.unmount(),o.isMounted=!1)}this.current=null}bindToMotionValue(n,o){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const s=Mo.has(n),a=o.on("change",f=>{this.latestValues[n]=f,this.props.onUpdate&&He.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),u=o.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,n,o)),this.valueSubscriptions.set(n,()=>{a(),u(),c&&c(),o.owner&&o.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in Ni){const o=Ni[n];if(!o)continue;const{isEnabled:s,Feature:a}=o;if(!this.features[n]&&a&&s(this.props)&&(this.features[n]=new a(this)),this.features[n]){const u=this.features[n];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,o){this.latestValues[n]=o}update(n,o){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let s=0;so.variantChildren.delete(n)}addValue(n,o){const s=this.values.get(n);o!==s&&(s&&this.removeValue(n),this.bindToMotionValue(n,o),this.values.set(n,o),this.latestValues[n]=o.get())}removeValue(n){this.values.delete(n);const o=this.valueSubscriptions.get(n);o&&(o(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,o){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&o!==void 0&&(s=wa(o===null?void 0:o,{owner:this}),this.addValue(n,s)),s}readValue(n,o){var s;let a=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:(s=this.getBaseTargetFromProps(this.props,n))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,n,this.options);return a!=null&&(typeof a=="string"&&(T1(a)||C1(a))?a=parseFloat(a):!hM(a)&&Qr.test(o)&&(a=F1(n,o)),this.setBaseTarget(n,At(a)?a.get():a)),At(a)?a.get():a}setBaseTarget(n,o){this.baseTarget[n]=o}getBaseTarget(n){var o;const{initial:s}=this.props;let a;if(typeof s=="string"||typeof s=="object"){const c=Mh(this.props,s,(o=this.presenceContext)===null||o===void 0?void 0:o.custom);c&&(a=c[n])}if(s&&a!==void 0)return a;const u=this.getBaseTargetFromProps(this.props,n);return u!==void 0&&!At(u)?u:this.initialValues[n]!==void 0&&a===void 0?void 0:this.baseTarget[n]}on(n,o){return this.events[n]||(this.events[n]=new Jh),this.events[n].add(o)}notify(n,...o){this.events[n]&&this.events[n].notify(...o)}}class BS extends pM{constructor(){super(...arguments),this.KeyframeResolver=B1}sortInstanceNodePosition(n,o){return n.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(n,o){return n.style?n.style[o]:void 0}removeValueFromRenderState(n,{vars:o,style:s}){delete o[n],delete s[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;At(n)&&(this.childSubscription=n.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}function mM(e){return window.getComputedStyle(e)}class gM extends BS{constructor(){super(...arguments),this.type="html",this.renderInstance=ES}readValueFromInstance(n,o){if(Mo.has(o)){const s=Uh(o);return s&&s.default||0}else{const s=mM(n),a=(P1(o)?s.getPropertyValue(o):s[o])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(n,{transformPagePoint:o}){return fS(n,o)}build(n,o,s){cp(n,o,s.transformTemplate)}scrapeMotionValuesFromProps(n,o,s){return ap(n,o,s)}}class yM extends BS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(n,o){return n[o]}readValueFromInstance(n,o){if(Mo.has(o)){const s=Uh(o);return s&&s.default||0}return o=AS.has(o)?o:ep(o),n.getAttribute(o)}scrapeMotionValuesFromProps(n,o,s){return zS(n,o,s)}build(n,o,s){dp(n,o,this.isSVGTag,s.transformTemplate)}renderInstance(n,o,s,a){RS(n,o,s,a)}mount(n){this.isSVGTag=fp(n.tagName),super.mount(n)}}const vM=(e,n)=>sp(e)?new yM(n):new gM(n,{allowProjection:e!==I.Fragment}),SM=uM({...JR,...Rz,...Sz,...$z},vM),VS=Q5(SM);class bM extends I.Component{getSnapshotBeforeUpdate(n){const o=this.props.childRef.current;if(o&&n.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=o.offsetHeight||0,s.width=o.offsetWidth||0,s.top=o.offsetTop,s.left=o.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function xM({children:e,isPresent:n}){const o=I.useId(),s=I.useRef(null),a=I.useRef({width:0,height:0,top:0,left:0}),{nonce:u}=I.useContext(op);return I.useInsertionEffect(()=>{const{width:c,height:f,top:p,left:m}=a.current;if(n||!s.current||!c||!f)return;s.current.dataset.motionPopId=o;const g=document.createElement("style");return u&&(g.nonce=u),document.head.appendChild(g),g.sheet&&g.sheet.insertRule(` + [data-motion-pop-id="${o}"] { + position: absolute !important; + width: ${c}px !important; + height: ${f}px !important; + top: ${p}px !important; + left: ${m}px !important; + } + `),()=>{document.head.removeChild(g)}},[n]),F.jsx(bM,{isPresent:n,childRef:s,sizeRef:a,children:I.cloneElement(e,{ref:s})})}const wM=({children:e,initial:n,isPresent:o,onExitComplete:s,custom:a,presenceAffectsLayout:u,mode:c})=>{const f=lp(kM),p=I.useId(),m=I.useCallback(v=>{f.set(v,!0);for(const S of f.values())if(!S)return;s&&s()},[f,s]),g=I.useMemo(()=>({id:p,initial:n,isPresent:o,custom:a,onExitComplete:m,register:v=>(f.set(v,!1),()=>f.delete(v))}),u?[Math.random(),m]:[o,m]);return I.useMemo(()=>{f.forEach((v,S)=>f.set(S,!1))},[o]),I.useEffect(()=>{!o&&!f.size&&s&&s()},[o]),c==="popLayout"&&(e=F.jsx(xM,{isPresent:o,children:e})),F.jsx($a.Provider,{value:g,children:e})};function kM(){return new Map}const uu=e=>e.key||"";function qy(e){const n=[];return I.Children.forEach(e,o=>{I.isValidElement(o)&&n.push(o)}),n}const CM=({children:e,exitBeforeEnter:n,custom:o,initial:s=!0,onExitComplete:a,presenceAffectsLayout:u=!0,mode:c="sync"})=>{const f=I.useMemo(()=>qy(e),[e]),p=f.map(uu),m=I.useRef(!0),g=I.useRef(f),v=lp(()=>new Map),[S,C]=I.useState(f),[A,P]=I.useState(f);CS(()=>{m.current=!1,g.current=f;for(let R=0;R{const $=uu(R),N=f===A||p.includes($),z=()=>{if(v.has($))v.set($,!0);else return;let W=!0;v.forEach(O=>{O||(W=!1)}),W&&(k==null||k(),P(g.current),a&&a())};return F.jsx(wM,{isPresent:N,initial:!m.current||s?void 0:!1,custom:N?void 0:o,presenceAffectsLayout:u,mode:c,onExitComplete:N?void 0:z,children:R},$)})})},TM=(e,n)=>e.find(o=>o.id===n);function Xy(e,n){const o=NS(e,n),s=o?e[o].findIndex(a=>a.id===n):-1;return{position:o,index:s}}function NS(e,n){for(const[o,s]of Object.entries(e))if(TM(s,n))return o}function _M(e){const n=e.includes("right"),o=e.includes("left");let s="center";return n&&(s="flex-end"),o&&(s="flex-start"),{display:"flex",flexDirection:"column",alignItems:s}}function PM(e){const o=e==="top"||e==="bottom"?"0 auto":void 0,s=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,a=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,u=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",c=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:o,top:s,bottom:a,right:u,left:c}}var EM=/^((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|fetchpriority|fetchPriority|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)-.*))$/,AM=t1(function(e){return EM.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),RM=AM,$M=function(n){return n!=="theme"},Yy=function(n){return typeof n=="string"&&n.charCodeAt(0)>96?RM:$M},Qy=function(n,o,s){var a;if(o){var u=o.shouldForwardProp;a=n.__emotion_forwardProp&&u?function(c){return n.__emotion_forwardProp(c)&&u(c)}:u}return typeof a!="function"&&s&&(a=n.__emotion_forwardProp),a},zM=function(n){var o=n.cache,s=n.serialized,a=n.isStringTag;return Ah(o,s,a),s1(function(){return Rh(o,s,a)}),null},MM=function e(n,o){var s=n.__emotion_real===n,a=s&&n.__emotion_base||n,u,c;o!==void 0&&(u=o.label,c=o.target);var f=Qy(n,o,s),p=f||Yy(a),m=!p("as");return function(){var g=arguments,v=s&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(u!==void 0&&v.push("label:"+u+";"),g[0]==null||g[0].raw===void 0)v.push.apply(v,g);else{var S=g[0];v.push(S[0]);for(var C=g.length,A=1;An=>{const{theme:o,css:s,__css:a,sx:u,...c}=n,[f]=yw(c,ok),p=yn(e,n),m=rw({},a,p,vh(f),u),g=Dv(m)(n.theme);return s?[g,s]:g};function Af(e,n){const{baseStyle:o,...s}=n??{};s.shouldForwardProp||(s.shouldForwardProp=LM);const a=BM({baseStyle:o}),u=FM(e,s)(a);return I.forwardRef(function(p,m){const{children:g,...v}=p,{colorMode:S,forced:C}=qu(),A=C?S:void 0;return I.createElement(u,{ref:m,"data-theme":A,...v},g)})}function VM(){const e=new Map;return new Proxy(Af,{apply(n,o,s){return Af(...s)},get(n,o){return e.has(o)||e.set(o,Af(o)),e.get(o)}})}const Ke=VM(),NM={initial:e=>{const{position:n}=e,o=["top","bottom"].includes(n)?"y":"x";let s=["top-right","bottom-right"].includes(n)?1:-1;return n==="bottom"&&(s=1),{opacity:0,[o]:s*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]}}},OS=I.memo(e=>{const{id:n,message:o,onCloseComplete:s,onRequestRemove:a,requestClose:u=!1,position:c="bottom",duration:f=5e3,containerStyle:p,motionVariants:m=NM,toastSpacing:g="0.5rem"}=e,[v,S]=I.useState(f),C=M$();o0(()=>{C||s==null||s()},[C]),o0(()=>{S(f)},[f]);const A=()=>S(null),P=()=>S(f),D=()=>{C&&a()};I.useEffect(()=>{C&&u&&a()},[C,u,a]),kw(D,v);const k=I.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:g,...p}),[p,g]),R=I.useMemo(()=>_M(c),[c]);return F.jsx(VS.div,{layout:!0,className:"chakra-toast",variants:m,initial:"initial",animate:"animate",exit:"exit",onHoverStart:A,onHoverEnd:P,custom:{position:c},style:R,children:F.jsx(Ke.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:k,children:yn(o,{id:n,onClose:D})})})});OS.displayName="ToastComponent";function ht(e){return I.forwardRef(e)}var Rf,Zy;function OM(){if(Zy)return Rf;Zy=1;var e=typeof Element<"u",n=typeof Map=="function",o=typeof Set=="function",s=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(u,c){if(u===c)return!0;if(u&&c&&typeof u=="object"&&typeof c=="object"){if(u.constructor!==c.constructor)return!1;var f,p,m;if(Array.isArray(u)){if(f=u.length,f!=c.length)return!1;for(p=f;p--!==0;)if(!a(u[p],c[p]))return!1;return!0}var g;if(n&&u instanceof Map&&c instanceof Map){if(u.size!==c.size)return!1;for(g=u.entries();!(p=g.next()).done;)if(!c.has(p.value[0]))return!1;for(g=u.entries();!(p=g.next()).done;)if(!a(p.value[1],c.get(p.value[0])))return!1;return!0}if(o&&u instanceof Set&&c instanceof Set){if(u.size!==c.size)return!1;for(g=u.entries();!(p=g.next()).done;)if(!c.has(p.value[0]))return!1;return!0}if(s&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(c)){if(f=u.length,f!=c.length)return!1;for(p=f;p--!==0;)if(u[p]!==c[p])return!1;return!0}if(u.constructor===RegExp)return u.source===c.source&&u.flags===c.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof c.valueOf=="function")return u.valueOf()===c.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof c.toString=="function")return u.toString()===c.toString();if(m=Object.keys(u),f=m.length,f!==Object.keys(c).length)return!1;for(p=f;p--!==0;)if(!Object.prototype.hasOwnProperty.call(c,m[p]))return!1;if(e&&u instanceof Element)return!1;for(p=f;p--!==0;)if(!((m[p]==="_owner"||m[p]==="__v"||m[p]==="__o")&&u.$$typeof)&&!a(u[m[p]],c[m[p]]))return!1;return!0}return u!==u&&c!==c}return Rf=function(c,f){try{return a(c,f)}catch(p){if((p.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw p}},Rf}var WM=OM();const UM=mh(WM);function HM(){const e=I.useContext(Fi);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function WS(){const e=qu(),n=HM();return{...e,theme:n}}function US(e,n={}){const{styleConfig:o,...s}=n,{theme:a,colorMode:u}=WS(),c=e?Ev(a,`components.${e}`):void 0,f=o||c,p=Gn({theme:a,colorMode:u},(f==null?void 0:f.defaultProps)??{},vh(Av(s,["children"])),(g,v)=>g?void 0:v),m=I.useRef({});if(f){const v=pk(f)(p);UM(m.current,v)||(m.current=v)}return m.current}function Do(e,n={}){return US(e,n)}function hp(e,n={}){return US(e,n)}const Jy={path:F.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[F.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"}),F.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"}),F.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Hi=ht((e,n)=>{const{as:o,viewBox:s,color:a="currentColor",focusable:u=!1,children:c,className:f,__css:p,...m}=e,g=Rt("chakra-icon",f),v=Do("Icon",e),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a,...p,...v},C={ref:n,focusable:u,className:g,__css:S},A=s??Jy.viewBox;if(o&&typeof o!="string")return F.jsx(Ke.svg,{as:o,...C,...m});const P=c??Jy.path;return F.jsx(Ke.svg,{verticalAlign:"middle",viewBox:A,...C,...m,children:P})});Hi.displayName="Icon";function KM(e){return F.jsx(Hi,{viewBox:"0 0 24 24",...e,children:F.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 GM(e){return F.jsx(Hi,{viewBox:"0 0 24 24",...e,children:F.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 ev(e){return F.jsx(Hi,{viewBox:"0 0 24 24",...e,children:F.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 qM=L5({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),pp=ht((e,n)=>{const o=Do("Spinner",e),{label:s="Loading...",thickness:a="2px",speed:u="0.45s",emptyColor:c="transparent",className:f,...p}=br(e),m=Rt("chakra-spinner",f),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:a,borderBottomColor:c,borderLeftColor:c,animation:`${qM} ${u} linear infinite`,...o};return F.jsx(Ke.div,{ref:n,__css:g,className:m,...p,children:s&&F.jsx(Ke.span,{srOnly:!0,children:s})})});pp.displayName="Spinner";const[XM,mp]=Sr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[YM,gp]=Sr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),HS={info:{icon:GM,colorScheme:"blue"},warning:{icon:ev,colorScheme:"orange"},success:{icon:KM,colorScheme:"green"},error:{icon:ev,colorScheme:"red"},loading:{icon:pp,colorScheme:"blue"}};function QM(e){return HS[e].colorScheme}function ZM(e){return HS[e].icon}const KS=ht(function(n,o){const{status:s="info",addRole:a=!0,...u}=br(n),c=n.colorScheme??QM(s),f=hp("Alert",{...n,colorScheme:c}),p={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...f.container};return F.jsx(XM,{value:{status:s},children:F.jsx(YM,{value:f,children:F.jsx(Ke.div,{"data-status":s,role:a?"alert":void 0,ref:o,...u,className:Rt("chakra-alert",n.className),__css:p})})})});KS.displayName="Alert";function GS(e){const{status:n}=mp(),o=ZM(n),s=gp(),a=n==="loading"?s.spinner:s.icon;return F.jsx(Ke.span,{display:"inherit","data-status":n,...e,className:Rt("chakra-alert__icon",e.className),__css:a,children:e.children||F.jsx(o,{h:"100%",w:"100%"})})}GS.displayName="AlertIcon";const qS=ht(function(n,o){const s=gp(),{status:a}=mp();return F.jsx(Ke.div,{ref:o,"data-status":a,...n,className:Rt("chakra-alert__title",n.className),__css:s.title})});qS.displayName="AlertTitle";const XS=ht(function(n,o){const{status:s}=mp(),a=gp(),u={display:"inline",...a.description};return F.jsx(Ke.div,{ref:o,"data-status":s,...n,className:Rt("chakra-alert__desc",n.className),__css:u})});XS.displayName="AlertDescription";function JM(e){return F.jsx(Hi,{focusable:"false","aria-hidden":!0,...e,children:F.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 YS=ht(function(n,o){const s=Do("CloseButton",n),{children:a,isDisabled:u,__css:c,...f}=br(n),p={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return F.jsx(Ke.button,{type:"button","aria-label":"Close",ref:o,disabled:u,__css:{...p,...s,...c},...f,children:a||F.jsx(JM,{width:"1em",height:"1em"})})});YS.displayName="CloseButton";const e3=e=>{const{status:n,variant:o="solid",id:s,title:a,isClosable:u,onClose:c,description:f,colorScheme:p,icon:m}=e,g=s?{root:`toast-${s}`,title:`toast-${s}-title`,description:`toast-${s}-description`}:void 0;return F.jsxs(KS,{addRole:!1,status:n,variant:o,id:g==null?void 0:g.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:p,children:[F.jsx(GS,{children:m}),F.jsxs(Ke.div,{flex:"1",maxWidth:"100%",children:[a&&F.jsx(qS,{id:g==null?void 0:g.title,children:a}),f&&F.jsx(XS,{id:g==null?void 0:g.description,display:"block",children:f})]}),u&&F.jsx(YS,{size:"sm",onClick:c,position:"absolute",insetEnd:1,top:1})]})};function QS(e={}){const{render:n,toastComponent:o=e3}=e;return a=>typeof n=="function"?n({...a,...e}):F.jsx(o,{...a,...e})}const t3={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Kn=n3(t3);function n3(e){let n=e;const o=new Set,s=a=>{n=a(n),o.forEach(u=>u())};return{getState:()=>n,subscribe:a=>(o.add(a),()=>{s(()=>e),o.delete(a)}),removeToast:(a,u)=>{s(c=>({...c,[u]:c[u].filter(f=>f.id!=a)}))},notify:(a,u)=>{const c=r3(a,u),{position:f,id:p}=c;return s(m=>{const v=f.includes("top")?[c,...m[f]??[]]:[...m[f]??[],c];return{...m,[f]:v}}),p},update:(a,u)=>{a&&s(c=>{const f={...c},{position:p,index:m}=Xy(f,a);return p&&m!==-1&&(f[p][m]={...f[p][m],...u,message:QS(u)}),f})},closeAll:({positions:a}={})=>{s(u=>(a??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((p,m)=>(p[m]=u[m].map(g=>({...g,requestClose:!0})),p),{...u}))},close:a=>{s(u=>{const c=NS(u,a);return c?{...u,[c]:u[c].map(f=>f.id==a?{...f,requestClose:!0}:f)}:u})},isActive:a=>!!Xy(Kn.getState(),a).position}}let tv=0;function r3(e,n={}){tv+=1;const o=n.id??tv,s=n.position??"bottom";return{id:o,message:e,position:s,duration:n.duration,onCloseComplete:n.onCloseComplete,onRequestRemove:()=>Kn.removeToast(String(o),s),status:n.status,requestClose:!1,containerStyle:n.containerStyle}}const[ZS,o3]=Sr({strict:!1,name:"PortalContext"}),yp="chakra-portal",i3=".chakra-portal",s3=e=>F.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),a3=e=>{const{appendToParentPortal:n,children:o}=e,[s,a]=I.useState(null),u=I.useRef(null),[,c]=I.useState({});I.useEffect(()=>c({}),[]);const f=o3(),p=X5();jf(()=>{if(!s)return;const g=s.ownerDocument,v=n?f??g.body:g.body;if(!v)return;u.current=g.createElement("div"),u.current.className=yp,v.appendChild(u.current),c({});const S=u.current;return()=>{v.contains(S)&&v.removeChild(S)}},[s]);const m=p!=null&&p.zIndex?F.jsx(s3,{zIndex:p==null?void 0:p.zIndex,children:o}):o;return u.current?_v.createPortal(F.jsx(ZS,{value:u.current,children:m}),u.current):F.jsx("span",{ref:g=>{g&&a(g)}})},l3=e=>{const{children:n,containerRef:o,appendToParentPortal:s}=e,a=o.current,u=a??(typeof window<"u"?document.body:void 0),c=I.useMemo(()=>{const p=a==null?void 0:a.ownerDocument.createElement("div");return p&&(p.className=yp),p},[a]),[,f]=I.useState({});return jf(()=>f({}),[]),jf(()=>{if(!(!c||!u))return u.appendChild(c),()=>{u.removeChild(c)}},[c,u]),u&&c?_v.createPortal(F.jsx(ZS,{value:s?c:null,children:n}),c):null};function ec(e){const n={appendToParentPortal:!0,...e},{containerRef:o,...s}=n;return o?F.jsx(l3,{containerRef:o,...s}):F.jsx(a3,{...s})}ec.className=yp;ec.selector=i3;ec.displayName="Portal";const[u3,c3]=Sr({name:"ToastOptionsContext",strict:!1}),d3=e=>{const n=I.useSyncExternalStore(Kn.subscribe,Kn.getState,Kn.getState),{motionVariants:o,component:s=OS,portalProps:a,animatePresenceProps:u}=e,f=Object.keys(n).map(p=>{const m=n[p];return F.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${p}`,id:`chakra-toast-manager-${p}`,style:PM(p),children:F.jsx(CM,{...u,initial:!1,children:m.map(g=>F.jsx(s,{motionVariants:o,...g},g.id))})},p)});return F.jsx(ec,{...a,children:f})},f3=e=>function({children:o,theme:s=e,toastOptions:a,...u}){return F.jsxs(Y5,{theme:s,...u,children:[F.jsx(u3,{value:a==null?void 0:a.defaultOptions,children:o}),F.jsx(d3,{...a})]})},h3=f3(VE),JS=ht(function(n,o){const s=Do("Badge",n),{className:a,...u}=br(n);return F.jsx(Ke.span,{ref:o,className:Rt("chakra-badge",n.className),...u,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...s}})});JS.displayName="Badge";const[K3,p3]=Sr({strict:!1,name:"ButtonGroupContext"});function ta(e){const{children:n,className:o,...s}=e,a=I.isValidElement(n)?I.cloneElement(n,{"aria-hidden":!0,focusable:!1}):n,u=Rt("chakra-button__icon",o);return F.jsx(Ke.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...s,className:u,children:a})}ta.displayName="ButtonIcon";function ph(e){const{label:n,placement:o,spacing:s="0.5rem",children:a=F.jsx(pp,{color:"currentColor",width:"1em",height:"1em"}),className:u,__css:c,...f}=e,p=Rt("chakra-button__spinner",u),m=o==="start"?"marginEnd":"marginStart",g=I.useMemo(()=>({display:"flex",alignItems:"center",position:n?"relative":"absolute",[m]:n?s:0,fontSize:"1em",lineHeight:"normal",...c}),[c,n,m,s]);return F.jsx(Ke.div,{className:p,...f,__css:g,children:a})}ph.displayName="ButtonSpinner";function m3(e){const[n,o]=I.useState(!e);return{ref:I.useCallback(u=>{u&&o(u.tagName==="BUTTON")},[]),type:n?"button":void 0}}const vp=ht((e,n)=>{const o=p3(),s=Do("Button",{...o,...e}),{isDisabled:a=o==null?void 0:o.isDisabled,isLoading:u,isActive:c,children:f,leftIcon:p,rightIcon:m,loadingText:g,iconSpacing:v="0.5rem",type:S,spinner:C,spinnerPlacement:A="start",className:P,as:D,shouldWrapChildren:k,...R}=br(e),$=I.useMemo(()=>{const O={...s==null?void 0:s._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...s,...!!o&&{_focus:O}}},[s,o]),{ref:N,type:z}=m3(D),W={rightIcon:m,leftIcon:p,iconSpacing:v,children:f,shouldWrapChildren:k};return F.jsxs(Ke.button,{disabled:a||u,ref:ww(n,N),as:D,type:S??z,"data-active":On(c),"data-loading":On(u),__css:$,className:Rt("chakra-button",P),...R,children:[u&&A==="start"&&F.jsx(ph,{className:"chakra-button__spinner--start",label:g,placement:"start",spacing:v,children:C}),u?g||F.jsx(Ke.span,{opacity:0,children:F.jsx(nv,{...W})}):F.jsx(nv,{...W}),u&&A==="end"&&F.jsx(ph,{className:"chakra-button__spinner--end",label:g,placement:"end",spacing:v,children:C})]})});vp.displayName="Button";function nv(e){const{leftIcon:n,rightIcon:o,children:s,iconSpacing:a,shouldWrapChildren:u}=e;return u?F.jsxs("span",{style:{display:"contents"},children:[n&&F.jsx(ta,{marginEnd:a,children:n}),s,o&&F.jsx(ta,{marginStart:a,children:o})]}):F.jsxs(F.Fragment,{children:[n&&F.jsx(ta,{marginEnd:a,children:n}),s,o&&F.jsx(ta,{marginStart:a,children:o})]})}const Sp=ht((e,n)=>{const{icon:o,children:s,isRound:a,"aria-label":u,...c}=e,f=o||s,p=I.isValidElement(f)?I.cloneElement(f,{"aria-hidden":!0,focusable:!1}):null;return F.jsx(vp,{px:"0",py:"0",borderRadius:a?"full":void 0,ref:n,"aria-label":u,...c,children:p})});Sp.displayName="IconButton";const[g3,y3]=Sr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[v3,eb]=Sr({strict:!1,name:"FormControlContext"});function S3(e){const{id:n,isRequired:o,isInvalid:s,isDisabled:a,isReadOnly:u,...c}=e,f=I.useId(),p=n||`field-${f}`,m=`${p}-label`,g=`${p}-feedback`,v=`${p}-helptext`,[S,C]=I.useState(!1),[A,P]=I.useState(!1),[D,k]=I.useState(!1),R=I.useCallback((O={},q=null)=>({id:v,...O,ref:Lf(q,se=>{se&&P(!0)})}),[v]),$=I.useCallback((O={},q=null)=>({...O,ref:q,"data-focus":On(D),"data-disabled":On(a),"data-invalid":On(s),"data-readonly":On(u),id:O.id!==void 0?O.id:m,htmlFor:O.htmlFor!==void 0?O.htmlFor:p}),[p,a,D,s,u,m]),N=I.useCallback((O={},q=null)=>({id:g,...O,ref:Lf(q,se=>{se&&C(!0)}),"aria-live":"polite"}),[g]),z=I.useCallback((O={},q=null)=>({...O,...c,ref:q,role:"group","data-focus":On(D),"data-disabled":On(a),"data-invalid":On(s),"data-readonly":On(u)}),[c,a,D,s,u]),W=I.useCallback((O={},q=null)=>({...O,ref:q,role:"presentation","aria-hidden":!0,children:O.children||"*"}),[]);return{isRequired:!!o,isInvalid:!!s,isReadOnly:!!u,isDisabled:!!a,isFocused:!!D,onFocus:()=>k(!0),onBlur:()=>k(!1),hasFeedbackText:S,setHasFeedbackText:C,hasHelpText:A,setHasHelpText:P,id:p,labelId:m,feedbackId:g,helpTextId:v,htmlProps:c,getHelpTextProps:R,getErrorMessageProps:N,getRootProps:z,getLabelProps:$,getRequiredIndicatorProps:W}}const b3=ht(function(n,o){const s=hp("Form",n),a=br(n),{getRootProps:u,htmlProps:c,...f}=S3(a),p=Rt("chakra-form-control",n.className);return F.jsx(v3,{value:f,children:F.jsx(g3,{value:s,children:F.jsx(Ke.div,{...u({},o),className:p,__css:s.container})})})});b3.displayName="FormControl";const x3=ht(function(n,o){const s=eb(),a=y3(),u=Rt("chakra-form__helper-text",n.className);return F.jsx(Ke.div,{...s==null?void 0:s.getHelpTextProps(n,o),__css:a.helperText,className:u})});x3.displayName="FormHelperText";function w3(e){const{isDisabled:n,isInvalid:o,isReadOnly:s,isRequired:a,...u}=k3(e);return{...u,disabled:n,readOnly:s,required:a,"aria-invalid":qd(o),"aria-required":qd(a),"aria-readonly":qd(s)}}function k3(e){const n=eb(),{id:o,disabled:s,readOnly:a,required:u,isRequired:c,isInvalid:f,isReadOnly:p,isDisabled:m,onFocus:g,onBlur:v,...S}=e,C=e["aria-describedby"]?[e["aria-describedby"]]:[];return n!=null&&n.hasFeedbackText&&(n!=null&&n.isInvalid)&&C.push(n.feedbackId),n!=null&&n.hasHelpText&&C.push(n.helpTextId),{...S,"aria-describedby":C.join(" ")||void 0,id:o??(n==null?void 0:n.id),isDisabled:s??m??(n==null?void 0:n.isDisabled),isReadOnly:a??p??(n==null?void 0:n.isReadOnly),isRequired:u??c??(n==null?void 0:n.isRequired),isInvalid:f??(n==null?void 0:n.isInvalid),onFocus:t0(n==null?void 0:n.onFocus,g),onBlur:t0(n==null?void 0:n.onBlur,v)}}const C3=new Set(["dark","light","system"]);function T3(e){let n=e;return C3.has(n)||(n="light"),n}function _3(e={}){const{initialColorMode:n="light",type:o="localStorage",storageKey:s="chakra-ui-color-mode"}=e,a=T3(n),u=o==="cookie",c=`(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="${a}",r="${s}",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){}})(); + `,f=`(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="${a}",e="${s}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${u?c:f}`.trim()}function P3(e={}){const{nonce:n}=e;return F.jsx("script",{id:"chakra-script",nonce:n,dangerouslySetInnerHTML:{__html:_3(e)}})}function bp(e){const{viewBox:n="0 0 24 24",d:o,displayName:s,defaultProps:a={}}=e,u=I.Children.toArray(e.path),c=ht((f,p)=>F.jsx(Hi,{ref:p,viewBox:n,...a,...f,children:u.length?u:F.jsx("path",{fill:"currentColor",d:o})}));return c.displayName=s,c}const xp=ht(function(n,o){const{htmlSize:s,...a}=n,u=hp("Input",a),c=br(a),f=w3(c),p=Rt("chakra-input",n.className);return F.jsx(Ke.input,{size:s,...f,__css:u.field,ref:o,className:p})});xp.displayName="Input";xp.id="Input";const tb=Ke("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});tb.displayName="Spacer";const nb=e=>F.jsx(Ke.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});nb.displayName="StackItem";function E3(e){const{spacing:n,direction:o}=e,s={column:{my:n,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:n,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:n,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:n,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":mw(o,a=>s[a])}}const wp=ht((e,n)=>{const{isInline:o,direction:s,align:a,justify:u,spacing:c="0.5rem",wrap:f,children:p,divider:m,className:g,shouldWrapChildren:v,...S}=e,C=o?"row":s??"column",A=I.useMemo(()=>E3({spacing:c,direction:C}),[c,C]),P=!!m,D=!v&&!P,k=I.useMemo(()=>{const $=uw(p);return D?$:$.map((N,z)=>{const W=typeof N.key<"u"?N.key:z,O=z+1===$.length,se=v?F.jsx(nb,{children:N},W):N;if(!P)return se;const J=I.cloneElement(m,{__css:A}),pe=O?null:J;return F.jsxs(I.Fragment,{children:[se,pe]},W)})},[m,A,P,D,v,p]),R=Rt("chakra-stack",g);return F.jsx(Ke.div,{ref:n,display:"flex",alignItems:a,justifyContent:u,flexDirection:C,flexWrap:f,gap:P?void 0:c,className:R,...S,children:k})});wp.displayName="Stack";const kp=ht((e,n)=>F.jsx(wp,{align:"center",...e,direction:"row",ref:n}));kp.displayName="HStack";const rb=e=>F.jsx(Ke.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});rb.displayName="StackDivider";const Cp=ht((e,n)=>F.jsx(wp,{align:"center",...e,direction:"column",ref:n}));Cp.displayName="VStack";function A3(e,n){const o=e??"bottom",a={"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"}}[o];return(a==null?void 0:a[n])??o}function R3(e,n){const o=a=>({...n,...a,position:A3((a==null?void 0:a.position)??(n==null?void 0:n.position),e)}),s=a=>{const u=o(a),c=QS(u);return Kn.notify(c,u)};return s.update=(a,u)=>{Kn.update(a,o(u))},s.promise=(a,u)=>{const c=s({...u.loading,status:"loading",duration:null});a.then(f=>s.update(c,{status:"success",duration:5e3,...yn(u.success,f)})).catch(f=>s.update(c,{status:"error",duration:5e3,...yn(u.error,f)}))},s.closeAll=Kn.closeAll,s.close=Kn.close,s.isActive=Kn.isActive,s}function $3(e){const{theme:n}=WS(),o=c3();return I.useMemo(()=>R3(n.direction,{...o,...e}),[e,n.direction,o])}const ob=ht(function(n,o){const s=Do("Heading",n),{className:a,...u}=br(n);return F.jsx(Ke.h2,{ref:o,className:Rt("chakra-heading",n.className),...u,__css:s})});ob.displayName="Heading";const ib=ht(function(n,o){const s=Do("Text",n),{className:a,align:u,decoration:c,casing:f,...p}=br(n),m=vh({textAlign:n.align,textDecoration:n.decoration,textTransform:n.casing});return F.jsx(Ke.p,{ref:o,className:Rt("chakra-text",n.className),...m,...p,__css:s})});ib.displayName="Text";const z3=({addTodo:e})=>{const n=I.useRef(null),o=$3(),s=u=>o({title:u,status:"error",duration:2e3,isClosable:!0}),a=u=>{if(u.preventDefault(),n.current===null)return;if(!n.current.value){s("This field is required.");return}const c=n.current.value;e(c),n.current.value=""};return F.jsx("form",{onSubmit:a,children:F.jsxs(kp,{m:"8",children:[F.jsx(xp,{variant:"filled",placeholder:"Add new todo",ref:n}),F.jsx(vp,{type:"submit",colorScheme:"green",px:"8",children:"Add"})]})})},M3=bp({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"}),D3=bp({displayName:"SunIcon",path:F.jsxs("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[F.jsx("circle",{cx:"12",cy:"12",r:"5"}),F.jsx("path",{d:"M12 1v2"}),F.jsx("path",{d:"M12 21v2"}),F.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),F.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),F.jsx("path",{d:"M1 12h2"}),F.jsx("path",{d:"M21 12h2"}),F.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),F.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]})}),I3=bp({displayName:"DeleteIcon",path:F.jsx("g",{fill:"currentColor",children:F.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"})})}),j3=({todos:e,deleteTodo:n})=>{if(e.length===0)return F.jsx(JS,{colorScheme:"green",p:"4",m:"4",borderRadius:"lg",children:"No Todos, yay~"});const o={p:"4",w:"100%",maxW:{base:"90vw",sm:"80vw",lg:"50vw",xl:"40vw"},borderColor:"gray.100",borderWidth:"2px",borderRadius:"lg",alignItems:"stretch",divider:F.jsx(rb,{})};return F.jsx(Cp,{...o,children:e.map(s=>F.jsxs(kp,{children:[F.jsx(ib,{children:s.body}),F.jsx(tb,{}),F.jsx(Sp,{"aria-label":"Delete todo",icon:F.jsx(I3,{}),onClick:()=>n(s.id)})]},s.id))})},L3=({toggleTheme:e,theme:n})=>{const o={size:"lg",isRound:!0,variant:"ghost",icon:n==="light"?F.jsx(M3,{}):F.jsx(D3,{}),"aria-label":"Switch DarkMode"};return F.jsx(VS.div,{whileTap:{rotate:180},style:{display:"flex",alignSelf:"flex-end"},children:F.jsx(Sp,{onClick:e,...o})})},Tp=Fu("light");Tp.debugLabel="themeAtom";const F3="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let B3=(e=21)=>{let n="",o=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)n+=F3[o[e]&63];return n};const Oi=Fu([]);Oi.debugLabel="todosAtom";const V3=Fu(null,(e,n,o)=>{const s={id:B3(),body:o};n(Oi,[...e(Oi),s])}),N3=Fu(null,(e,n,o)=>{const a=e(Oi).filter(u=>u.id!==o);n(Oi,a)});function O3(){const{colorMode:e,toggleColorMode:n}=qu(),[o,s]=Df(Tp),[a]=Df(Oi),u=Mf(V3),c=Mf(N3);I.useEffect(()=>{s(e)},[e,s]);const f=()=>{s(p=>p==="light"?"dark":"light"),n()};return F.jsxs(Cp,{p:4,children:[F.jsx(L3,{toggleTheme:f,theme:o}),F.jsx(ob,{size:"2xl",children:"Jotai-Todos App"}),F.jsx(z3,{addTodo:u}),F.jsx(j3,{todos:a,deleteTodo:c})]})}const W3=()=>{const[e]=Df(Tp);return F.jsxs(h3,{children:[F.jsx(P3,{initialColorMode:e}),F.jsx(O3,{})]})};Vx.createRoot(document.getElementById("root")).render(F.jsxs(I.StrictMode,{children:[F.jsx(tw,{}),F.jsx(W3,{})]})); diff --git a/index.html b/index.html index ecf92bb..0e03899 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Todos - +