From d6c3e43a3e74e40c264febba941df8bac7ea6d6d Mon Sep 17 00:00:00 2001 From: dyooreen Date: Tue, 23 Jan 2024 23:51:26 +0400 Subject: [PATCH] Updates --- .../{index-MHpZ64O-.js => index-XGEMmjoW.js} | 30 +++++++++---------- index.html | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) rename assets/{index-MHpZ64O-.js => index-XGEMmjoW.js} (58%) diff --git a/assets/index-MHpZ64O-.js b/assets/index-XGEMmjoW.js similarity index 58% rename from assets/index-MHpZ64O-.js rename to assets/index-XGEMmjoW.js index d72a94c..00cac1e 100644 --- a/assets/index-MHpZ64O-.js +++ b/assets/index-XGEMmjoW.js @@ -1,4 +1,4 @@ -function Lx(e,t){for(var r=0;rn[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"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(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 n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var ja=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mg={exports:{}},$l={},Ig={exports:{}},W={};/** +function Bx(e,t){for(var r=0;rn[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"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(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 n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var La=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ig={exports:{}},$l={},Fg={exports:{}},W={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Lx(e,t){for(var r=0;r>>1,ne=R[O];if(0>>1;Oo(Rr,N))zeo(Ht,Rr)?(R[O]=Ht,R[ze]=N,O=ze):(R[O]=Rr,R[ft]=N,O=ft);else if(zeo(Ht,N))R[O]=Ht,R[ze]=N,O=ze;else break e}}return B}function o(R,B){var N=R.sortIndex-B.sortIndex;return N!==0?N:R.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,y=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(R){for(var B=r(u);B!==null;){if(B.callback===null)n(u);else if(B.startTime<=R)n(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=r(u)}}function w(R){if(S=!1,g(R),!y)if(r(l)!==null)y=!0,he(E);else{var B=r(u);B!==null&&nt(w,B.startTime-R)}}function E(R,B){y=!1,S&&(S=!1,m($),$=-1),h=!0;var N=f;try{for(g(B),d=r(l);d!==null&&(!(d.expirationTime>B)||R&&!ke());){var O=d.callback;if(typeof O=="function"){d.callback=null,f=d.priorityLevel;var ne=O(d.expirationTime<=B);B=e.unstable_now(),typeof ne=="function"?d.callback=ne:d===r(l)&&n(l),g(B)}else n(l);d=r(l)}if(d!==null)var K=!0;else{var ft=r(u);ft!==null&&nt(w,ft.startTime-B),K=!1}return K}finally{d=null,f=N,h=!1}}var z=!1,P=null,$=-1,F=5,D=-1;function ke(){return!(e.unstable_now()-DR||125O?(R.sortIndex=N,t(u,R),r(l)===null&&R===r(u)&&(S?(m($),$=-1):S=!0,nt(w,N-O))):(R.sortIndex=ne,t(l,R),y||h||(y=!0,he(E))),R},e.unstable_shouldYield=ke,e.unstable_wrapCallback=function(R){var B=f;return function(){var N=f;f=B;try{return R.apply(this,arguments)}finally{f=N}}}})(Hg);Ug.exports=Hg;var aw=Ug.exports;/** + */(function(e){function t(R,B){var N=R.length;R.push(B);e:for(;0>>1,ne=R[O];if(0>>1;Oo(Rr,N))zeo(Ht,Rr)?(R[O]=Ht,R[ze]=N,O=ze):(R[O]=Rr,R[ft]=N,O=ft);else if(zeo(Ht,N))R[O]=Ht,R[ze]=N,O=ze;else break e}}return B}function o(R,B){var N=R.sortIndex-B.sortIndex;return N!==0?N:R.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,y=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(R){for(var B=r(u);B!==null;){if(B.callback===null)n(u);else if(B.startTime<=R)n(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=r(u)}}function w(R){if(S=!1,g(R),!y)if(r(l)!==null)y=!0,pe(E);else{var B=r(u);B!==null&&nt(w,B.startTime-R)}}function E(R,B){y=!1,S&&(S=!1,m($),$=-1),p=!0;var N=f;try{for(g(B),d=r(l);d!==null&&(!(d.expirationTime>B)||R&&!ke());){var O=d.callback;if(typeof O=="function"){d.callback=null,f=d.priorityLevel;var ne=O(d.expirationTime<=B);B=e.unstable_now(),typeof ne=="function"?d.callback=ne:d===r(l)&&n(l),g(B)}else n(l);d=r(l)}if(d!==null)var K=!0;else{var ft=r(u);ft!==null&&nt(w,ft.startTime-B),K=!1}return K}finally{d=null,f=N,p=!1}}var z=!1,P=null,$=-1,F=5,D=-1;function ke(){return!(e.unstable_now()-DR||125O?(R.sortIndex=N,t(u,R),r(l)===null&&R===r(u)&&(S?(m($),$=-1):S=!0,nt(w,N-O))):(R.sortIndex=ne,t(l,R),y||p||(y=!0,pe(E))),R},e.unstable_shouldYield=ke,e.unstable_wrapCallback=function(R){var B=f;return function(){var N=f;f=B;try{return R.apply(this,arguments)}finally{f=N}}}})(Gg);Hg.exports=Gg;var sw=Hg.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ function Lx(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bc=Object.prototype.hasOwnProperty,sw=/^[: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]*$/,gh={},vh={};function lw(e){return Bc.call(vh,e)?!0:Bc.call(gh,e)?!1:sw.test(e)?vh[e]=!0:(gh[e]=!0,!1)}function uw(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function cw(e,t,r,n){if(t===null||typeof t>"u"||uw(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rt(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new rt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){We[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var df=/[\-:]([a-z])/g;function ff(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(df,ff);We[t]=new rt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(df,ff);We[t]=new rt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(df,ff);We[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function pf(e,t,r,n){var o=We.hasOwnProperty(t)?We[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bc=Object.prototype.hasOwnProperty,lw=/^[: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]*$/,gp={},vp={};function uw(e){return Bc.call(vp,e)?!0:Bc.call(gp,e)?!1:lw.test(e)?vp[e]=!0:(gp[e]=!0,!1)}function cw(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function dw(e,t,r,n){if(t===null||typeof t>"u"||cw(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rt(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new rt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){We[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var df=/[\-:]([a-z])/g;function ff(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(df,ff);We[t]=new rt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(df,ff);We[t]=new rt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(df,ff);We[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function hf(e,t,r,n){var o=We.hasOwnProperty(t)?We[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Fu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?di(e):""}function dw(e){switch(e.tag){case 5:return di(e.type);case 16:return di("Lazy");case 13:return di("Suspense");case 19:return di("SuspenseList");case 0:case 2:case 15:return e=Du(e.type,!1),e;case 11:return e=Du(e.type.render,!1),e;case 1:return e=Du(e.type,!0),e;default:return""}}function Wc(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 Qn:return"Fragment";case Xn:return"Portal";case Vc:return"Profiler";case hf:return"StrictMode";case Oc:return"Suspense";case Nc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xg:return(e.displayName||"Context")+".Consumer";case Yg:return(e._context.displayName||"Context")+".Provider";case mf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gf:return t=e.displayName||null,t!==null?t:Wc(e.type)||"Memo";case Br:t=e._payload,e=e._init;try{return Wc(e(t))}catch{}}return null}function fw(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 Wc(t);case 8:return t===hf?"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 nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pw(e){var t=qg(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Va(e){e._valueTracker||(e._valueTracker=pw(e))}function Zg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=qg(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ns(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 Uc(e,t){var r=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Sh(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=nn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jg(e,t){t=t.checked,t!=null&&pf(e,"checked",t,!1)}function Hc(e,t){Jg(e,t);var r=nn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Gc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Gc(e,t.type,nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bh(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Gc(e,t,r){(t!=="number"||Ns(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var fi=Array.isArray;function yo(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Oa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wi(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var xi={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},hw=["Webkit","ms","Moz","O"];Object.keys(xi).forEach(function(e){hw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xi[t]=xi[e]})});function nv(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||xi.hasOwnProperty(e)&&xi[e]?(""+t).trim():t+"px"}function ov(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=nv(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var mw=ye({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 Xc(e,t){if(t){if(mw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Qc(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 qc=null;function vf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zc=null,So=null,bo=null;function kh(e){if(e=Sa(e)){if(typeof Zc!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Il(t),Zc(e.stateNode,e.type,t))}}function iv(e){So?bo?bo.push(e):bo=[e]:So=e}function av(){if(So){var e=So,t=bo;if(bo=So=null,kh(e),t)for(e=0;e>>=0,e===0?32:31-(Tw(e)/Pw|0)|0}var Na=64,Wa=4194304;function pi(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 Gs(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=pi(s):(i&=a,i!==0&&(n=pi(i)))}else a=r&~o,a!==0?n=pi(a):i!==0&&(n=pi(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function va(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=r}function Aw(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=ki),Rh=" ",Mh=!1;function Tv(e,t){switch(e){case"keyup":return ik.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function sk(e,t){switch(e){case"compositionend":return Pv(t);case"keypress":return t.which!==32?null:(Mh=!0,Rh);case"textInput":return e=t.data,e===Rh&&Mh?null:e;default:return null}}function lk(e,t){if(qn)return e==="compositionend"||!_f&&Tv(e,t)?(e=Cv(),vs=wf=Hr=null,qn=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=jh(r)}}function Av(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Av(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rv(){for(var e=window,t=Ns();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ns(e.document)}return t}function Tf(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 vk(e){var t=Rv(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Av(r.ownerDocument.documentElement,r)){if(n!==null&&Tf(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Lh(r,i);var a=Lh(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Zn=null,od=null,_i=null,id=!1;function Bh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;id||Zn==null||Zn!==Ns(n)||(n=Zn,"selectionStart"in n&&Tf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),_i&&Xi(_i,n)||(_i=n,n=Xs(od,"onSelect"),0to||(e.current=dd[to],dd[to]=null,to--)}function oe(e,t){to++,dd[to]=e.current,e.current=t}var on={},Xe=un(on),st=un(!1),Fn=on;function Ao(e,t){var r=e.type.contextTypes;if(!r)return on;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function lt(e){return e=e.childContextTypes,e!=null}function qs(){ue(st),ue(Xe)}function Gh(e,t,r){if(Xe.current!==on)throw Error(A(168));oe(Xe,t),oe(st,r)}function Ov(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(A(108,fw(e)||"Unknown",o));return ye({},r,n)}function Zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,Fn=Xe.current,oe(Xe,e),oe(st,st.current),!0}function Kh(e,t,r){var n=e.stateNode;if(!n)throw Error(A(169));r?(e=Ov(e,t,Fn),n.__reactInternalMemoizedMergedChildContext=e,ue(st),ue(Xe),oe(Xe,e)):ue(st),oe(st,r)}var pr=null,Fl=!1,Qu=!1;function Nv(e){pr===null?pr=[e]:pr.push(e)}function $k(e){Fl=!0,Nv(e)}function cn(){if(!Qu&&pr!==null){Qu=!0;var e=0,t=ee;try{var r=pr;for(ee=1;e>=a,o-=a,gr=1<<32-Ot(t)+o|r<$?(F=P,P=null):F=P.sibling;var D=f(m,P,g[$],w);if(D===null){P===null&&(P=F);break}e&&P&&D.alternate===null&&t(m,P),p=i(D,p,$),z===null?E=D:z.sibling=D,z=D,P=F}if($===g.length)return r(m,P),pe&&vn(m,$),E;if(P===null){for(;$$?(F=P,P=null):F=P.sibling;var ke=f(m,P,D.value,w);if(ke===null){P===null&&(P=F);break}e&&P&&ke.alternate===null&&t(m,P),p=i(ke,p,$),z===null?E=ke:z.sibling=ke,z=ke,P=F}if(D.done)return r(m,P),pe&&vn(m,$),E;if(P===null){for(;!D.done;$++,D=g.next())D=d(m,D.value,w),D!==null&&(p=i(D,p,$),z===null?E=D:z.sibling=D,z=D);return pe&&vn(m,$),E}for(P=n(m,P);!D.done;$++,D=g.next())D=h(P,m,$,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?$:D.key),p=i(D,p,$),z===null?E=D:z.sibling=D,z=D);return e&&P.forEach(function($e){return t(m,$e)}),pe&&vn(m,$),E}function C(m,p,g,w){if(typeof g=="object"&&g!==null&&g.type===Qn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ba:e:{for(var E=g.key,z=p;z!==null;){if(z.key===E){if(E=g.type,E===Qn){if(z.tag===7){r(m,z.sibling),p=o(z,g.props.children),p.return=m,m=p;break e}}else if(z.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Br&&em(E)===z.type){r(m,z.sibling),p=o(z,g.props),p.ref=ri(m,z,g),p.return=m,m=p;break e}r(m,z);break}else t(m,z);z=z.sibling}g.type===Qn?(p=zn(g.props.children,m.mode,w,g.key),p.return=m,m=p):(w=_s(g.type,g.key,g.props,null,m.mode,w),w.ref=ri(m,p,g),w.return=m,m=w)}return a(m);case Xn:e:{for(z=g.key;p!==null;){if(p.key===z)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){r(m,p.sibling),p=o(p,g.children||[]),p.return=m,m=p;break e}else{r(m,p);break}else t(m,p);p=p.sibling}p=oc(g,m.mode,w),p.return=m,m=p}return a(m);case Br:return z=g._init,C(m,p,z(g._payload),w)}if(fi(g))return y(m,p,g,w);if(qo(g))return S(m,p,g,w);Qa(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(r(m,p.sibling),p=o(p,g),p.return=m,m=p):(r(m,p),p=nc(g,m.mode,w),p.return=m,m=p),a(m)):r(m,p)}return C}var Mo=Qv(!0),qv=Qv(!1),ba={},nr=un(ba),Ji=un(ba),ea=un(ba);function Tn(e){if(e===ba)throw Error(A(174));return e}function Ff(e,t){switch(oe(ea,t),oe(Ji,e),oe(nr,ba),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yc(t,e)}ue(nr),oe(nr,t)}function Io(){ue(nr),ue(Ji),ue(ea)}function Zv(e){Tn(ea.current);var t=Tn(nr.current),r=Yc(t,e.type);t!==r&&(oe(Ji,e),oe(nr,r))}function Df(e){Ji.current===e&&(ue(nr),ue(Ji))}var me=un(0);function ol(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qu=[];function jf(){for(var e=0;er?r:4,e(!0);var n=Zu.transition;Zu.transition={};try{e(!1),t()}finally{ee=r,Zu.transition=n}}function hy(){return It().memoizedState}function Mk(e,t,r){var n=en(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},my(e))gy(t,r);else if(r=Gv(e,t,r,n),r!==null){var o=Je();Nt(r,e,n,o),vy(r,t,n)}}function Ik(e,t,r){var n=en(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(my(e))gy(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,Wt(s,a)){var l=t.interleaved;l===null?(o.next=o,Mf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=Gv(e,t,o,n),r!==null&&(o=Je(),Nt(r,e,n,o),vy(r,t,n))}}function my(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function gy(e,t){Ti=il=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function vy(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Sf(e,r)}}var al={readContext:Mt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},Fk={readContext:Mt,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:rm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,xs(4194308,4,uy.bind(null,t,e),r)},useLayoutEffect:function(e,t){return xs(4194308,4,e,t)},useInsertionEffect:function(e,t){return xs(4,2,e,t)},useMemo:function(e,t){var r=Xt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Xt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Mk.bind(null,ve,e),[n.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:tm,useDebugValue:Nf,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=tm(!1),t=e[0];return e=Rk.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ve,o=Xt();if(pe){if(r===void 0)throw Error(A(407));r=r()}else{if(r=t(),De===null)throw Error(A(349));jn&30||ty(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,rm(ny.bind(null,n,i,e),[e]),n.flags|=2048,na(9,ry.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Xt(),t=De.identifierPrefix;if(pe){var r=vr,n=gr;r=(n&~(1<<32-Ot(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ta++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Fu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?fi(e):""}function fw(e){switch(e.tag){case 5:return fi(e.type);case 16:return fi("Lazy");case 13:return fi("Suspense");case 19:return fi("SuspenseList");case 0:case 2:case 15:return e=Du(e.type,!1),e;case 11:return e=Du(e.type.render,!1),e;case 1:return e=Du(e.type,!0),e;default:return""}}function Wc(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 Qn:return"Fragment";case Xn:return"Portal";case Vc:return"Profiler";case pf:return"StrictMode";case Oc:return"Suspense";case Nc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qg:return(e.displayName||"Context")+".Consumer";case Xg:return(e._context.displayName||"Context")+".Provider";case mf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gf:return t=e.displayName||null,t!==null?t:Wc(e.type)||"Memo";case Br:t=e._payload,e=e._init;try{return Wc(e(t))}catch{}}return null}function hw(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 Wc(t);case 8:return t===pf?"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 nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pw(e){var t=Zg(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oa(e){e._valueTracker||(e._valueTracker=pw(e))}function Jg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Zg(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ns(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 Uc(e,t){var r=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Sp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=nn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ev(e,t){t=t.checked,t!=null&&hf(e,"checked",t,!1)}function Hc(e,t){ev(e,t);var r=nn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Gc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Gc(e,t.type,nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bp(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Gc(e,t,r){(t!=="number"||Ns(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var hi=Array.isArray;function So(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ui(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ki={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},mw=["Webkit","ms","Moz","O"];Object.keys(ki).forEach(function(e){mw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ki[t]=ki[e]})});function ov(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ki.hasOwnProperty(e)&&ki[e]?(""+t).trim():t+"px"}function iv(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=ov(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var gw=ye({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 Xc(e,t){if(t){if(gw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Qc(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 qc=null;function vf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zc=null,bo=null,xo=null;function kp(e){if(e=ba(e)){if(typeof Zc!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Il(t),Zc(e.stateNode,e.type,t))}}function av(e){bo?xo?xo.push(e):xo=[e]:bo=e}function sv(){if(bo){var e=bo,t=xo;if(xo=bo=null,kp(e),t)for(e=0;e>>=0,e===0?32:31-(Pw(e)/Ew|0)|0}var Wa=64,Ua=4194304;function pi(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 Gs(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=pi(s):(i&=a,i!==0&&(n=pi(i)))}else a=r&~o,a!==0?n=pi(a):i!==0&&(n=pi(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function ya(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=r}function Rw(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=_i),Rp=" ",Mp=!1;function Pv(e,t){switch(e){case"keyup":return ak.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ev(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function lk(e,t){switch(e){case"compositionend":return Ev(t);case"keypress":return t.which!==32?null:(Mp=!0,Rp);case"textInput":return e=t.data,e===Rp&&Mp?null:e;default:return null}}function uk(e,t){if(qn)return e==="compositionend"||!_f&&Pv(e,t)?(e=_v(),ys=wf=Hr=null,qn=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=jp(r)}}function Rv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mv(){for(var e=window,t=Ns();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ns(e.document)}return t}function Tf(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 yk(e){var t=Mv(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Rv(r.ownerDocument.documentElement,r)){if(n!==null&&Tf(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Lp(r,i);var a=Lp(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Zn=null,od=null,Pi=null,id=!1;function Bp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;id||Zn==null||Zn!==Ns(n)||(n=Zn,"selectionStart"in n&&Tf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Pi&&Qi(Pi,n)||(Pi=n,n=Xs(od,"onSelect"),0to||(e.current=dd[to],dd[to]=null,to--)}function oe(e,t){to++,dd[to]=e.current,e.current=t}var on={},Xe=un(on),st=un(!1),Fn=on;function Ro(e,t){var r=e.type.contextTypes;if(!r)return on;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function lt(e){return e=e.childContextTypes,e!=null}function qs(){ue(st),ue(Xe)}function Gp(e,t,r){if(Xe.current!==on)throw Error(A(168));oe(Xe,t),oe(st,r)}function Nv(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(A(108,hw(e)||"Unknown",o));return ye({},r,n)}function Zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,Fn=Xe.current,oe(Xe,e),oe(st,st.current),!0}function Kp(e,t,r){var n=e.stateNode;if(!n)throw Error(A(169));r?(e=Nv(e,t,Fn),n.__reactInternalMemoizedMergedChildContext=e,ue(st),ue(Xe),oe(Xe,e)):ue(st),oe(st,r)}var hr=null,Fl=!1,Qu=!1;function Wv(e){hr===null?hr=[e]:hr.push(e)}function zk(e){Fl=!0,Wv(e)}function cn(){if(!Qu&&hr!==null){Qu=!0;var e=0,t=ee;try{var r=hr;for(ee=1;e>=a,o-=a,gr=1<<32-Ot(t)+o|r<$?(F=P,P=null):F=P.sibling;var D=f(m,P,g[$],w);if(D===null){P===null&&(P=F);break}e&&P&&D.alternate===null&&t(m,P),h=i(D,h,$),z===null?E=D:z.sibling=D,z=D,P=F}if($===g.length)return r(m,P),he&&vn(m,$),E;if(P===null){for(;$$?(F=P,P=null):F=P.sibling;var ke=f(m,P,D.value,w);if(ke===null){P===null&&(P=F);break}e&&P&&ke.alternate===null&&t(m,P),h=i(ke,h,$),z===null?E=ke:z.sibling=ke,z=ke,P=F}if(D.done)return r(m,P),he&&vn(m,$),E;if(P===null){for(;!D.done;$++,D=g.next())D=d(m,D.value,w),D!==null&&(h=i(D,h,$),z===null?E=D:z.sibling=D,z=D);return he&&vn(m,$),E}for(P=n(m,P);!D.done;$++,D=g.next())D=p(P,m,$,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?$:D.key),h=i(D,h,$),z===null?E=D:z.sibling=D,z=D);return e&&P.forEach(function($e){return t(m,$e)}),he&&vn(m,$),E}function C(m,h,g,w){if(typeof g=="object"&&g!==null&&g.type===Qn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Va:e:{for(var E=g.key,z=h;z!==null;){if(z.key===E){if(E=g.type,E===Qn){if(z.tag===7){r(m,z.sibling),h=o(z,g.props.children),h.return=m,m=h;break e}}else if(z.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Br&&em(E)===z.type){r(m,z.sibling),h=o(z,g.props),h.ref=ni(m,z,g),h.return=m,m=h;break e}r(m,z);break}else t(m,z);z=z.sibling}g.type===Qn?(h=zn(g.props.children,m.mode,w,g.key),h.return=m,m=h):(w=Ts(g.type,g.key,g.props,null,m.mode,w),w.ref=ni(m,h,g),w.return=m,m=w)}return a(m);case Xn:e:{for(z=g.key;h!==null;){if(h.key===z)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){r(m,h.sibling),h=o(h,g.children||[]),h.return=m,m=h;break e}else{r(m,h);break}else t(m,h);h=h.sibling}h=oc(g,m.mode,w),h.return=m,m=h}return a(m);case Br:return z=g._init,C(m,h,z(g._payload),w)}if(hi(g))return y(m,h,g,w);if(Zo(g))return S(m,h,g,w);qa(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(r(m,h.sibling),h=o(h,g),h.return=m,m=h):(r(m,h),h=nc(g,m.mode,w),h.return=m,m=h),a(m)):r(m,h)}return C}var Io=qv(!0),Zv=qv(!1),xa={},nr=un(xa),ea=un(xa),ta=un(xa);function Tn(e){if(e===xa)throw Error(A(174));return e}function Ff(e,t){switch(oe(ta,t),oe(ea,e),oe(nr,xa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yc(t,e)}ue(nr),oe(nr,t)}function Fo(){ue(nr),ue(ea),ue(ta)}function Jv(e){Tn(ta.current);var t=Tn(nr.current),r=Yc(t,e.type);t!==r&&(oe(ea,e),oe(nr,r))}function Df(e){ea.current===e&&(ue(nr),ue(ea))}var me=un(0);function ol(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qu=[];function jf(){for(var e=0;er?r:4,e(!0);var n=Zu.transition;Zu.transition={};try{e(!1),t()}finally{ee=r,Zu.transition=n}}function my(){return It().memoizedState}function Ik(e,t,r){var n=en(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},gy(e))vy(t,r);else if(r=Kv(e,t,r,n),r!==null){var o=Je();Nt(r,e,n,o),yy(r,t,n)}}function Fk(e,t,r){var n=en(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(gy(e))vy(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,Wt(s,a)){var l=t.interleaved;l===null?(o.next=o,Mf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=Kv(e,t,o,n),r!==null&&(o=Je(),Nt(r,e,n,o),yy(r,t,n))}}function gy(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function vy(e,t){Ei=il=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function yy(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Sf(e,r)}}var al={readContext:Mt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},Dk={readContext:Mt,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:rm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ws(4194308,4,cy.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ws(4194308,4,e,t)},useInsertionEffect:function(e,t){return ws(4,2,e,t)},useMemo:function(e,t){var r=Xt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Xt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ik.bind(null,ve,e),[n.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:tm,useDebugValue:Nf,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=tm(!1),t=e[0];return e=Mk.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ve,o=Xt();if(he){if(r===void 0)throw Error(A(407));r=r()}else{if(r=t(),De===null)throw Error(A(349));jn&30||ry(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,rm(oy.bind(null,n,i,e),[e]),n.flags|=2048,oa(9,ny.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Xt(),t=De.identifierPrefix;if(he){var r=vr,n=gr;r=(n&~(1<<32-Ot(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ra++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[er]=t,e[Zi]=n,Ty(e,t,!1,!1),t.stateNode=e;e:{switch(a=Qc(r,n),r){case"dialog":se("cancel",e),se("close",e),o=n;break;case"iframe":case"object":case"embed":se("load",e),o=n;break;case"video":case"audio":for(o=0;oDo&&(t.flags|=128,n=!0,ni(i,!1),t.lanes=4194304)}else{if(!n)if(e=ol(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ni(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!pe)return He(t),null}else 2*be()-i.renderingStartTime>Do&&r!==1073741824&&(t.flags|=128,n=!0,ni(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,r=me.current,oe(me,n?r&1|2:r&1),t):(He(t),null);case 22:case 23:return Yf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ht&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Wk(e,t){switch(Ef(t),t.tag){case 1:return lt(t.type)&&qs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Io(),ue(st),ue(Xe),jf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Df(t),null;case 13:if(ue(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(me),null;case 4:return Io(),null;case 10:return Rf(t.type._context),null;case 22:case 23:return Yf(),null;case 24:return null;default:return null}}var Za=!1,Ye=!1,Uk=typeof WeakSet=="function"?WeakSet:Set,I=null;function io(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Se(e,t,n)}else r.current=null}function kd(e,t,r){try{r()}catch(n){Se(e,t,n)}}var dm=!1;function Hk(e,t){if(ad=Ks,e=Rv(),Tf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=a),f===i&&++c===n&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(sd={focusedElem:e,selectionRange:r},Ks=!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 y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var S=y.memoizedProps,C=y.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:jt(t.type,S),C);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(w){Se(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=dm,dm=!1,y}function Pi(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&kd(t,r,i)}o=o.next}while(o!==n)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Cd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function $y(e){var t=e.alternate;t!==null&&(e.alternate=null,$y(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[er],delete t[Zi],delete t[cd],delete t[Pk],delete t[Ek])),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 zy(e){return e.tag===5||e.tag===3||e.tag===4}function fm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zy(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,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Qs));else if(n!==4&&(e=e.child,e!==null))for(_d(e,t,r),e=e.sibling;e!==null;)_d(e,t,r),e=e.sibling}function Td(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Td(e,t,r),e=e.sibling;e!==null;)Td(e,t,r),e=e.sibling}var Ve=null,Lt=!1;function Ir(e,t,r){for(r=r.child;r!==null;)Ay(e,t,r),r=r.sibling}function Ay(e,t,r){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(zl,r)}catch{}switch(r.tag){case 5:Ye||io(r,t);case 6:var n=Ve,o=Lt;Ve=null,Ir(e,t,r),Ve=n,Lt=o,Ve!==null&&(Lt?(e=Ve,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ve.removeChild(r.stateNode));break;case 18:Ve!==null&&(Lt?(e=Ve,r=r.stateNode,e.nodeType===8?Xu(e.parentNode,r):e.nodeType===1&&Xu(e,r),Ki(e)):Xu(Ve,r.stateNode));break;case 4:n=Ve,o=Lt,Ve=r.stateNode.containerInfo,Lt=!0,Ir(e,t,r),Ve=n,Lt=o;break;case 0:case 11:case 14:case 15:if(!Ye&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&kd(r,t,a),o=o.next}while(o!==n)}Ir(e,t,r);break;case 1:if(!Ye&&(io(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Se(r,t,s)}Ir(e,t,r);break;case 21:Ir(e,t,r);break;case 22:r.mode&1?(Ye=(n=Ye)||r.memoizedState!==null,Ir(e,t,r),Ye=n):Ir(e,t,r);break;default:Ir(e,t,r)}}function pm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Uk),t.forEach(function(n){var o=eC.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Ft(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=be()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Kk(n/1960))-n,10e?16:e,Gr===null)var n=!1;else{if(e=Gr,Gr=null,ul=0,Y&6)throw Error(A(331));var o=Y;for(Y|=4,I=e.current;I!==null;){var i=I,a=i.child;if(I.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lbe()-Gf?$n(e,0):Hf|=r),ut(e,t)}function By(e,t){t===0&&(e.mode&1?(t=Wa,Wa<<=1,!(Wa&130023424)&&(Wa=4194304)):t=1);var r=Je();e=Tr(e,t),e!==null&&(va(e,t,r),ut(e,r))}function Jk(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),By(e,r)}function eC(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(A(314))}n!==null&&n.delete(t),By(e,r)}var Vy;Vy=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)at=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return at=!1,Ok(e,t,r);at=!!(e.flags&131072)}else at=!1,pe&&t.flags&1048576&&Wv(t,el,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ws(e,t),e=t.pendingProps;var o=Ao(t,Xe.current);wo(t,r),o=Bf(null,t,n,e,o,r);var i=Vf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(n)?(i=!0,Zs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,If(t),o.updater=Dl,t.stateNode=o,o._reactInternals=t,gd(t,n,e,r),t=Sd(null,t,n,!0,i,r)):(t.tag=0,pe&&i&&Pf(t),qe(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ws(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=rC(n),e=jt(n,e),o){case 0:t=yd(null,t,n,e,r);break e;case 1:t=lm(null,t,n,e,r);break e;case 11:t=am(null,t,n,e,r);break e;case 14:t=sm(null,t,n,jt(n.type,e),r);break e}throw Error(A(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),yd(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),lm(e,t,n,o,r);case 3:e:{if(ky(t),e===null)throw Error(A(387));n=t.pendingProps,i=t.memoizedState,o=i.element,Kv(e,t),nl(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Fo(Error(A(423)),t),t=um(e,t,n,r,o);break e}else if(n!==o){o=Fo(Error(A(424)),t),t=um(e,t,n,r,o);break e}else for(mt=qr(t.stateNode.containerInfo.firstChild),gt=t,pe=!0,Bt=null,r=qv(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ro(),n===o){t=Pr(e,t,r);break e}qe(e,t,n,r)}t=t.child}return t;case 5:return Zv(t),e===null&&pd(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,ld(n,o)?a=null:i!==null&&ld(n,i)&&(t.flags|=32),wy(e,t),qe(e,t,a,r),t.child;case 6:return e===null&&pd(t),null;case 13:return Cy(e,t,r);case 4:return Ff(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Mo(t,null,n,r):qe(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),am(e,t,n,o,r);case 7:return qe(e,t,t.pendingProps,r),t.child;case 8:return qe(e,t,t.pendingProps.children,r),t.child;case 12:return qe(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,oe(tl,n._currentValue),n._currentValue=a,i!==null)if(Wt(i.value,a)){if(i.children===o.children&&!st.current){t=Pr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=br(-1,r&-r),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|=r,l=i.alternate,l!==null&&(l.lanes|=r),hd(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(A(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),hd(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}qe(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,wo(t,r),o=Mt(o),n=n(o),t.flags|=1,qe(e,t,n,r),t.child;case 14:return n=t.type,o=jt(n,t.pendingProps),o=jt(n.type,o),sm(e,t,n,o,r);case 15:return by(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),ws(e,t),t.tag=1,lt(n)?(e=!0,Zs(t)):e=!1,wo(t,r),Xv(t,n,o),gd(t,n,o,r),Sd(null,t,n,!0,e,r);case 19:return _y(e,t,r);case 22:return xy(e,t,r)}throw Error(A(156,t.tag))};function Oy(e,t){return pv(e,t)}function tC(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,r,n){return new tC(e,t,r,n)}function Qf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rC(e){if(typeof e=="function")return Qf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mf)return 11;if(e===gf)return 14}return 2}function tn(e,t){var r=e.alternate;return r===null?(r=At(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function _s(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")Qf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Qn:return zn(r.children,o,i,t);case hf:a=8,o|=8;break;case Vc:return e=At(12,r,t,o|2),e.elementType=Vc,e.lanes=i,e;case Oc:return e=At(13,r,t,o),e.elementType=Oc,e.lanes=i,e;case Nc:return e=At(19,r,t,o),e.elementType=Nc,e.lanes=i,e;case Qg:return Vl(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yg:a=10;break e;case Xg:a=9;break e;case mf:a=11;break e;case gf:a=14;break e;case Br:a=16,n=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=At(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function zn(e,t,r,n){return e=At(7,e,n,t),e.lanes=r,e}function Vl(e,t,r,n){return e=At(22,e,n,t),e.elementType=Qg,e.lanes=r,e.stateNode={isHidden:!1},e}function nc(e,t,r){return e=At(6,e,null,t),e.lanes=r,e}function oc(e,t,r){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nC(e,t,r,n,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=Lu(0),this.expirationTimes=Lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lu(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qf(e,t,r,n,o,i,a,s,l){return e=new nC(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=At(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},If(i),e}function oC(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hy)}catch(e){console.error(e)}}Hy(),Wg.exports=xt;var tp=Wg.exports,xm=tp;Lc.createRoot=xm.createRoot,Lc.hydrateRoot=xm.hydrateRoot;function uC(e){if(e.sheet)return e.sheet;for(var t=0;t0?Oe(Ho,--ct):0,jo--,Te===10&&(jo=1,Gl--),Te}function vt(){return Te=ct2||aa(Te)>3?"":" "}function wC(e,t){for(;--t&&vt()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return xa(e,Ts()+(t<6&&or()==32&&vt()==32))}function Rd(e){for(;vt();)switch(Te){case e:return ct;case 34:case 39:e!==34&&e!==39&&Rd(Te);break;case 40:e===41&&Rd(e);break;case 92:vt();break}return ct}function kC(e,t){for(;vt()&&e+Te!==57;)if(e+Te===84&&or()===47)break;return"/*"+xa(t,ct-1)+"*"+Hl(e===47?e:vt())}function CC(e){for(;!aa(or());)vt();return xa(e,ct)}function _C(e){return qy(Es("",null,null,null,[""],e=Qy(e),0,[0],e))}function Es(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,y=0,S=1,C=1,m=1,p=0,g="",w=o,E=i,z=n,P=g;C;)switch(y=p,p=vt()){case 40:if(y!=108&&Oe(P,d-1)==58){Ad(P+=q(Ps(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:P+=Ps(p);break;case 9:case 10:case 13:case 32:P+=xC(y);break;case 92:P+=wC(Ts()-1,7);continue;case 47:switch(or()){case 42:case 47:ts(TC(kC(vt(),Ts()),t,r),l);break;default:P+="/"}break;case 123*S:s[u++]=Zt(P)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:C=0;case 59+c:m==-1&&(P=q(P,/\f/g,"")),h>0&&Zt(P)-d&&ts(h>32?km(P+";",n,r,d-1):km(q(P," ","")+";",n,r,d-2),l);break;case 59:P+=";";default:if(ts(z=wm(P,t,r,u,c,o,s,g,w=[],E=[],d),i),p===123)if(c===0)Es(P,t,z,z,w,i,d,s,E);else switch(f===99&&Oe(P,3)===110?100:f){case 100:case 108:case 109:case 115:Es(e,z,z,n&&ts(wm(e,z,z,0,0,o,s,g,o,w=[],d),E),o,E,d,s,n?w:E);break;default:Es(P,z,z,z,[""],E,0,s,E)}}u=c=h=0,S=m=1,g=P="",d=a;break;case 58:d=1+Zt(P),h=y;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&bC()==125)continue}switch(P+=Hl(p),p*S){case 38:m=c>0?1:(P+="\f",-1);break;case 44:s[u++]=(Zt(P)-1)*m,m=1;break;case 64:or()===45&&(P+=Ps(vt())),f=or(),c=d=Zt(g=P+=CC(Ts())),p++;break;case 45:y===45&&Zt(P)==2&&(S=0)}}return i}function wm(e,t,r,n,o,i,a,s,l,u,c){for(var d=o-1,f=o===0?i:[""],h=op(f),y=0,S=0,C=0;y0?f[m]+" "+p:q(p,/&\f/g,f[m])))&&(l[C++]=g);return Kl(e,t,r,o===0?rp:s,l,u,c)}function TC(e,t,r){return Kl(e,t,r,Gy,Hl(SC()),ia(e,2,-2),0)}function km(e,t,r,n){return Kl(e,t,r,np,ia(e,0,n),ia(e,n+1,-1),n)}function Co(e,t){for(var r="",n=op(e),o=0;o6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+fl+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ad(e,"stretch")?Jy(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,Zt(e)-3-(~Ad(e,"!important")&&10))){case 107:return q(e,":",":"+Q)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(Oe(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return Q+e+Ge+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+Ge+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+Ge+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+Ge+e+e}return e}var FC=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case np:t.return=Jy(t.value,t.length);break;case Ky:return Co([ii(t,{value:q(t.value,"@","@"+Q)})],o);case rp:if(t.length)return yC(t.props,function(i){switch(vC(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Co([ii(t,{props:[q(i,/:(read-\w+)/,":"+fl+"$1")]})],o);case"::placeholder":return Co([ii(t,{props:[q(i,/:(plac\w+)/,":"+Q+"input-$1")]}),ii(t,{props:[q(i,/:(plac\w+)/,":"+fl+"$1")]}),ii(t,{props:[q(i,/:(plac\w+)/,Ge+"input-$1")]})],o)}return""})}},DC=[FC],jC=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||DC,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),m=1;m<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[er]=t,e[Ji]=n,Py(e,t,!1,!1),t.stateNode=e;e:{switch(a=Qc(r,n),r){case"dialog":se("cancel",e),se("close",e),o=n;break;case"iframe":case"object":case"embed":se("load",e),o=n;break;case"video":case"audio":for(o=0;ojo&&(t.flags|=128,n=!0,oi(i,!1),t.lanes=4194304)}else{if(!n)if(e=ol(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),oi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!he)return He(t),null}else 2*be()-i.renderingStartTime>jo&&r!==1073741824&&(t.flags|=128,n=!0,oi(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,r=me.current,oe(me,n?r&1|2:r&1),t):(He(t),null);case 22:case 23:return Yf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?pt&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Uk(e,t){switch(Ef(t),t.tag){case 1:return lt(t.type)&&qs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fo(),ue(st),ue(Xe),jf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Df(t),null;case 13:if(ue(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Mo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(me),null;case 4:return Fo(),null;case 10:return Rf(t.type._context),null;case 22:case 23:return Yf(),null;case 24:return null;default:return null}}var Ja=!1,Ye=!1,Hk=typeof WeakSet=="function"?WeakSet:Set,I=null;function io(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Se(e,t,n)}else r.current=null}function kd(e,t,r){try{r()}catch(n){Se(e,t,n)}}var dm=!1;function Gk(e,t){if(ad=Ks,e=Mv(),Tf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=a),f===i&&++c===n&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(sd={focusedElem:e,selectionRange:r},Ks=!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 y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var S=y.memoizedProps,C=y.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:jt(t.type,S),C);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(w){Se(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=dm,dm=!1,y}function $i(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&kd(t,r,i)}o=o.next}while(o!==n)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Cd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function zy(e){var t=e.alternate;t!==null&&(e.alternate=null,zy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[er],delete t[Ji],delete t[cd],delete t[Ek],delete t[$k])),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 Ay(e){return e.tag===5||e.tag===3||e.tag===4}function fm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ay(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,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Qs));else if(n!==4&&(e=e.child,e!==null))for(_d(e,t,r),e=e.sibling;e!==null;)_d(e,t,r),e=e.sibling}function Td(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Td(e,t,r),e=e.sibling;e!==null;)Td(e,t,r),e=e.sibling}var Ve=null,Lt=!1;function Ir(e,t,r){for(r=r.child;r!==null;)Ry(e,t,r),r=r.sibling}function Ry(e,t,r){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(zl,r)}catch{}switch(r.tag){case 5:Ye||io(r,t);case 6:var n=Ve,o=Lt;Ve=null,Ir(e,t,r),Ve=n,Lt=o,Ve!==null&&(Lt?(e=Ve,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ve.removeChild(r.stateNode));break;case 18:Ve!==null&&(Lt?(e=Ve,r=r.stateNode,e.nodeType===8?Xu(e.parentNode,r):e.nodeType===1&&Xu(e,r),Yi(e)):Xu(Ve,r.stateNode));break;case 4:n=Ve,o=Lt,Ve=r.stateNode.containerInfo,Lt=!0,Ir(e,t,r),Ve=n,Lt=o;break;case 0:case 11:case 14:case 15:if(!Ye&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&kd(r,t,a),o=o.next}while(o!==n)}Ir(e,t,r);break;case 1:if(!Ye&&(io(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Se(r,t,s)}Ir(e,t,r);break;case 21:Ir(e,t,r);break;case 22:r.mode&1?(Ye=(n=Ye)||r.memoizedState!==null,Ir(e,t,r),Ye=n):Ir(e,t,r);break;default:Ir(e,t,r)}}function hm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Hk),t.forEach(function(n){var o=tC.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Ft(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=be()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Yk(n/1960))-n,10e?16:e,Gr===null)var n=!1;else{if(e=Gr,Gr=null,ul=0,Y&6)throw Error(A(331));var o=Y;for(Y|=4,I=e.current;I!==null;){var i=I,a=i.child;if(I.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lbe()-Gf?$n(e,0):Hf|=r),ut(e,t)}function Vy(e,t){t===0&&(e.mode&1?(t=Ua,Ua<<=1,!(Ua&130023424)&&(Ua=4194304)):t=1);var r=Je();e=Tr(e,t),e!==null&&(ya(e,t,r),ut(e,r))}function eC(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Vy(e,r)}function tC(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(A(314))}n!==null&&n.delete(t),Vy(e,r)}var Oy;Oy=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)at=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return at=!1,Nk(e,t,r);at=!!(e.flags&131072)}else at=!1,he&&t.flags&1048576&&Uv(t,el,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ks(e,t),e=t.pendingProps;var o=Ro(t,Xe.current);ko(t,r),o=Bf(null,t,n,e,o,r);var i=Vf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(n)?(i=!0,Zs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,If(t),o.updater=Dl,t.stateNode=o,o._reactInternals=t,gd(t,n,e,r),t=Sd(null,t,n,!0,i,r)):(t.tag=0,he&&i&&Pf(t),qe(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ks(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=nC(n),e=jt(n,e),o){case 0:t=yd(null,t,n,e,r);break e;case 1:t=lm(null,t,n,e,r);break e;case 11:t=am(null,t,n,e,r);break e;case 14:t=sm(null,t,n,jt(n.type,e),r);break e}throw Error(A(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),yd(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),lm(e,t,n,o,r);case 3:e:{if(Cy(t),e===null)throw Error(A(387));n=t.pendingProps,i=t.memoizedState,o=i.element,Yv(e,t),nl(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Do(Error(A(423)),t),t=um(e,t,n,r,o);break e}else if(n!==o){o=Do(Error(A(424)),t),t=um(e,t,n,r,o);break e}else for(mt=qr(t.stateNode.containerInfo.firstChild),gt=t,he=!0,Bt=null,r=Zv(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Mo(),n===o){t=Pr(e,t,r);break e}qe(e,t,n,r)}t=t.child}return t;case 5:return Jv(t),e===null&&hd(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,ld(n,o)?a=null:i!==null&&ld(n,i)&&(t.flags|=32),ky(e,t),qe(e,t,a,r),t.child;case 6:return e===null&&hd(t),null;case 13:return _y(e,t,r);case 4:return Ff(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Io(t,null,n,r):qe(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),am(e,t,n,o,r);case 7:return qe(e,t,t.pendingProps,r),t.child;case 8:return qe(e,t,t.pendingProps.children,r),t.child;case 12:return qe(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,oe(tl,n._currentValue),n._currentValue=a,i!==null)if(Wt(i.value,a)){if(i.children===o.children&&!st.current){t=Pr(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=br(-1,r&-r),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|=r,l=i.alternate,l!==null&&(l.lanes|=r),pd(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(A(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),pd(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}qe(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,ko(t,r),o=Mt(o),n=n(o),t.flags|=1,qe(e,t,n,r),t.child;case 14:return n=t.type,o=jt(n,t.pendingProps),o=jt(n.type,o),sm(e,t,n,o,r);case 15:return xy(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jt(n,o),ks(e,t),t.tag=1,lt(n)?(e=!0,Zs(t)):e=!1,ko(t,r),Qv(t,n,o),gd(t,n,o,r),Sd(null,t,n,!0,e,r);case 19:return Ty(e,t,r);case 22:return wy(e,t,r)}throw Error(A(156,t.tag))};function Ny(e,t){return pv(e,t)}function rC(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,r,n){return new rC(e,t,r,n)}function Qf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nC(e){if(typeof e=="function")return Qf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mf)return 11;if(e===gf)return 14}return 2}function tn(e,t){var r=e.alternate;return r===null?(r=At(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ts(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")Qf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Qn:return zn(r.children,o,i,t);case pf:a=8,o|=8;break;case Vc:return e=At(12,r,t,o|2),e.elementType=Vc,e.lanes=i,e;case Oc:return e=At(13,r,t,o),e.elementType=Oc,e.lanes=i,e;case Nc:return e=At(19,r,t,o),e.elementType=Nc,e.lanes=i,e;case qg:return Vl(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xg:a=10;break e;case Qg:a=9;break e;case mf:a=11;break e;case gf:a=14;break e;case Br:a=16,n=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=At(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function zn(e,t,r,n){return e=At(7,e,n,t),e.lanes=r,e}function Vl(e,t,r,n){return e=At(22,e,n,t),e.elementType=qg,e.lanes=r,e.stateNode={isHidden:!1},e}function nc(e,t,r){return e=At(6,e,null,t),e.lanes=r,e}function oc(e,t,r){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oC(e,t,r,n,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=Lu(0),this.expirationTimes=Lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lu(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qf(e,t,r,n,o,i,a,s,l){return e=new oC(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=At(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},If(i),e}function iC(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gy)}catch(e){console.error(e)}}Gy(),Ug.exports=xt;var th=Ug.exports,xm=th;Lc.createRoot=xm.createRoot,Lc.hydrateRoot=xm.hydrateRoot;function cC(e){if(e.sheet)return e.sheet;for(var t=0;t0?Oe(Go,--ct):0,Lo--,Te===10&&(Lo=1,Gl--),Te}function vt(){return Te=ct2||sa(Te)>3?"":" "}function kC(e,t){for(;--t&&vt()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return wa(e,Ps()+(t<6&&or()==32&&vt()==32))}function Rd(e){for(;vt();)switch(Te){case e:return ct;case 34:case 39:e!==34&&e!==39&&Rd(Te);break;case 40:e===41&&Rd(e);break;case 92:vt();break}return ct}function CC(e,t){for(;vt()&&e+Te!==57;)if(e+Te===84&&or()===47)break;return"/*"+wa(t,ct-1)+"*"+Hl(e===47?e:vt())}function _C(e){for(;!sa(or());)vt();return wa(e,ct)}function TC(e){return Zy($s("",null,null,null,[""],e=qy(e),0,[0],e))}function $s(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,y=0,S=1,C=1,m=1,h=0,g="",w=o,E=i,z=n,P=g;C;)switch(y=h,h=vt()){case 40:if(y!=108&&Oe(P,d-1)==58){Ad(P+=q(Es(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:P+=Es(h);break;case 9:case 10:case 13:case 32:P+=wC(y);break;case 92:P+=kC(Ps()-1,7);continue;case 47:switch(or()){case 42:case 47:rs(PC(CC(vt(),Ps()),t,r),l);break;default:P+="/"}break;case 123*S:s[u++]=Zt(P)*m;case 125*S:case 59:case 0:switch(h){case 0:case 125:C=0;case 59+c:m==-1&&(P=q(P,/\f/g,"")),p>0&&Zt(P)-d&&rs(p>32?km(P+";",n,r,d-1):km(q(P," ","")+";",n,r,d-2),l);break;case 59:P+=";";default:if(rs(z=wm(P,t,r,u,c,o,s,g,w=[],E=[],d),i),h===123)if(c===0)$s(P,t,z,z,w,i,d,s,E);else switch(f===99&&Oe(P,3)===110?100:f){case 100:case 108:case 109:case 115:$s(e,z,z,n&&rs(wm(e,z,z,0,0,o,s,g,o,w=[],d),E),o,E,d,s,n?w:E);break;default:$s(P,z,z,z,[""],E,0,s,E)}}u=c=p=0,S=m=1,g=P="",d=a;break;case 58:d=1+Zt(P),p=y;default:if(S<1){if(h==123)--S;else if(h==125&&S++==0&&xC()==125)continue}switch(P+=Hl(h),h*S){case 38:m=c>0?1:(P+="\f",-1);break;case 44:s[u++]=(Zt(P)-1)*m,m=1;break;case 64:or()===45&&(P+=Es(vt())),f=or(),c=d=Zt(g=P+=_C(Ps())),h++;break;case 45:y===45&&Zt(P)==2&&(S=0)}}return i}function wm(e,t,r,n,o,i,a,s,l,u,c){for(var d=o-1,f=o===0?i:[""],p=oh(f),y=0,S=0,C=0;y0?f[m]+" "+h:q(h,/&\f/g,f[m])))&&(l[C++]=g);return Kl(e,t,r,o===0?rh:s,l,u,c)}function PC(e,t,r){return Kl(e,t,r,Ky,Hl(bC()),aa(e,2,-2),0)}function km(e,t,r,n){return Kl(e,t,r,nh,aa(e,0,n),aa(e,n+1,-1),n)}function _o(e,t){for(var r="",n=oh(e),o=0;o6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+fl+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ad(e,"stretch")?e1(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,Zt(e)-3-(~Ad(e,"!important")&&10))){case 107:return q(e,":",":"+Q)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(Oe(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return Q+e+Ge+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+Ge+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+Ge+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+Ge+e+e}return e}var DC=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case nh:t.return=e1(t.value,t.length);break;case Yy:return _o([ai(t,{value:q(t.value,"@","@"+Q)})],o);case rh:if(t.length)return SC(t.props,function(i){switch(yC(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _o([ai(t,{props:[q(i,/:(read-\w+)/,":"+fl+"$1")]})],o);case"::placeholder":return _o([ai(t,{props:[q(i,/:(plac\w+)/,":"+Q+"input-$1")]}),ai(t,{props:[q(i,/:(plac\w+)/,":"+fl+"$1")]}),ai(t,{props:[q(i,/:(plac\w+)/,Ge+"input-$1")]})],o)}return""})}},jC=[DC],LC=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||jC,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),m=1;m=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 XC={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,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},QC=/[A-Z]|^ms/g,qC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,a1=function(t){return t.charCodeAt(1)===45},Tm=function(t){return t!=null&&typeof t!="boolean"},ic=Zy(function(e){return a1(e)?e:e.replace(QC,"-$&").toLowerCase()}),Pm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(qC,function(n,o,i){return Jt={name:o,styles:i,next:Jt},o})}return XC[t]!==1&&!a1(t)&&typeof r=="number"&&r!==0?r+"px":r};function sa(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Jt={name:r.name,styles:r.styles,next:Jt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Jt={name:n.name,styles:n.styles,next:Jt},n=n.next;var o=r.styles+";";return o}return ZC(e,t,r)}case"function":{if(e!==void 0){var i=Jt,a=r(e);return Jt=i,sa(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function ZC(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 QC={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,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},qC=/[A-Z]|^ms/g,ZC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s1=function(t){return t.charCodeAt(1)===45},Tm=function(t){return t!=null&&typeof t!="boolean"},ic=Jy(function(e){return s1(e)?e:e.replace(qC,"-$&").toLowerCase()}),Pm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ZC,function(n,o,i){return Jt={name:o,styles:i,next:Jt},o})}return QC[t]!==1&&!s1(t)&&typeof r=="number"&&r!==0?r+"px":r};function la(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Jt={name:r.name,styles:r.styles,next:Jt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Jt={name:n.name,styles:n.styles,next:Jt},n=n.next;var o=r.styles+";";return o}return JC(e,t,r)}case"function":{if(e!==void 0){var i=Jt,a=r(e);return Jt=i,la(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function JC(e,t,r){var n="";if(Array.isArray(r))for(var o=0;oT.jsx(ou,{styles:d1}),s2=({scope:e=""})=>T.jsx(ou,{styles:c1` +`,s2=()=>T.jsx(ou,{styles:f1}),l2=({scope:e=""})=>T.jsx(ou,{styles:d1` html { line-height: 1.5; -webkit-text-size-adjust: 100%; @@ -322,8 +322,8 @@ Error generating stack: `+i.message+` display: none; } - ${d1} - `});function l2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ar(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=k.createContext(a);s.displayName=t;function l(){var u;const c=k.useContext(s);if(!c&&r){const d=new Error(i??l2(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[s.Provider,l,s]}var[u2,c2]=Ar({strict:!1,name:"PortalManagerContext"});function f1(e){const{children:t,zIndex:r}=e;return T.jsx(u2,{value:{zIndex:r},children:t})}f1.displayName="PortalManager";var hl=globalThis!=null&&globalThis.document?k.useLayoutEffect:k.useEffect,[p1,d2]=Ar({strict:!1,name:"PortalContext"}),up="chakra-portal",f2=".chakra-portal",p2=e=>T.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),h2=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=k.useState(null),i=k.useRef(null),[,a]=k.useState({});k.useEffect(()=>a({}),[]);const s=d2(),l=c2();hl(()=>{if(!n)return;const c=n.ownerDocument,d=t?s??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=up,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?T.jsx(p2,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?tp.createPortal(T.jsx(p1,{value:i.current,children:u}),i.current):T.jsx("span",{ref:c=>{c&&o(c)}})},m2=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),a=k.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=up),l},[o]),[,s]=k.useState({});return hl(()=>s({}),[]),hl(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?tp.createPortal(T.jsx(p1,{value:n?a:null,children:t}),a):null};function iu(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?T.jsx(m2,{containerRef:r,...n}):T.jsx(h2,{...n})}iu.className=up;iu.selector=f2;iu.displayName="Portal";function g2(){const e=k.useContext(la);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var cp=k.createContext({});cp.displayName="ColorModeContext";function dp(){const e=k.useContext(cp);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var rs={light:"chakra-ui-light",dark:"chakra-ui-dark"};function v2(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?rs.dark:rs.light),document.body.classList.remove(n?rs.light:rs.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=a=>{n(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var y2="chakra-ui-color-mode";function S2(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var b2=S2(y2),zm=()=>{};function Am(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function h1(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=b2}=e,s=o==="dark"?"dark":"light",[l,u]=k.useState(()=>Am(a,s)),[c,d]=k.useState(()=>Am(a)),{getSystemTheme:f,setClassName:h,setDataset:y,addListener:S}=k.useMemo(()=>v2({preventTransition:i}),[i]),C=o==="system"&&!l?c:l,m=k.useCallback(w=>{const E=w==="system"?f():w;u(E),h(E==="dark"),y(E),a.set(E)},[a,f,h,y]);hl(()=>{o==="system"&&d(f())},[]),k.useEffect(()=>{const w=a.get();if(w){m(w);return}if(o==="system"){m("system");return}m(s)},[a,s,o,m]);const p=k.useCallback(()=>{m(C==="dark"?"light":"dark")},[C,m]);k.useEffect(()=>{if(n)return S(m)},[n,S,m]);const g=k.useMemo(()=>({colorMode:t??C,toggleColorMode:t?zm:p,setColorMode:t?zm:m,forced:t!==void 0}),[C,p,m,t]);return T.jsx(cp.Provider,{value:g,children:r})}h1.displayName="ColorModeProvider";function x2(){const e=dp(),t=g2();return{...e,theme:t}}var Me=(...e)=>e.filter(Boolean).join(" ");function ir(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Kr(e,...t){return w2(e)?e(...t):e}var w2=e=>typeof e=="function",Qt=e=>e?"":void 0,ac=e=>e?!0:void 0;function Rm(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var ml={exports:{}};ml.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",y="[object GeneratorFunction]",S="[object Map]",C="[object Number]",m="[object Null]",p="[object Object]",g="[object Proxy]",w="[object RegExp]",E="[object Set]",z="[object String]",P="[object Undefined]",$="[object WeakMap]",F="[object ArrayBuffer]",D="[object DataView]",ke="[object Float32Array]",$e="[object Float64Array]",Le="[object Int8Array]",Ce="[object Int16Array]",Ut="[object Int32Array]",he="[object Uint8Array]",nt="[object Uint8ClampedArray]",R="[object Uint16Array]",B="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,O=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,K={};K[ke]=K[$e]=K[Le]=K[Ce]=K[Ut]=K[he]=K[nt]=K[R]=K[B]=!0,K[s]=K[l]=K[F]=K[c]=K[D]=K[d]=K[f]=K[h]=K[S]=K[C]=K[p]=K[w]=K[E]=K[z]=K[$]=!1;var ft=typeof ja=="object"&&ja&&ja.Object===Object&&ja,Rr=typeof self=="object"&&self&&self.Object===Object&&self,ze=ft||Rr||Function("return this")(),Ht=t&&!t.nodeType&&t,fn=Ht&&!0&&e&&!e.nodeType&&e,Un=fn&&fn.exports===Ht,Mr=Un&&ft.process,Gt=function(){try{var v=fn&&fn.require&&fn.require("util").types;return v||Mr&&Mr.binding&&Mr.binding("util")}catch{}}(),xu=Gt&&Gt.isTypedArray;function _b(v,b,_){switch(_.length){case 0:return v.call(b);case 1:return v.call(b,_[0]);case 2:return v.call(b,_[0],_[1]);case 3:return v.call(b,_[0],_[1],_[2])}return v.apply(b,_)}function Tb(v,b){for(var _=-1,M=Array(v);++_-1}function Yb(v,b){var _=this.__data__,M=Ma(_,v);return M<0?(++this.size,_.push([v,b])):_[M][1]=b,this}cr.prototype.clear=Ub,cr.prototype.delete=Hb,cr.prototype.get=Gb,cr.prototype.has=Kb,cr.prototype.set=Yb;function Hn(v){var b=-1,_=v==null?0:v.length;for(this.clear();++b<_;){var M=v[b];this.set(M[0],M[1])}}function Xb(){this.size=0,this.__data__={hash:new hn,map:new(th||cr),string:new hn}}function Qb(v){var b=Fa(this,v).delete(v);return this.size-=b?1:0,b}function qb(v){return Fa(this,v).get(v)}function Zb(v){return Fa(this,v).has(v)}function Jb(v,b){var _=Fa(this,v),M=_.size;return _.set(v,b),this.size+=_.size==M?0:1,this}Hn.prototype.clear=Xb,Hn.prototype.delete=Qb,Hn.prototype.get=qb,Hn.prototype.has=Zb,Hn.prototype.set=Jb;function Gn(v){var b=this.__data__=new cr(v);this.size=b.size}function ex(){this.__data__=new cr,this.size=0}function tx(v){var b=this.__data__,_=b.delete(v);return this.size=b.size,_}function rx(v){return this.__data__.get(v)}function nx(v){return this.__data__.has(v)}function ox(v,b){var _=this.__data__;if(_ instanceof cr){var M=_.__data__;if(!th||M.length1?_[G-1]:void 0,de=G>2?_[2]:void 0;for(re=v.length>3&&typeof re=="function"?(G--,re):void 0,de&&kx(_[0],_[1],de)&&(re=G<3?void 0:re,G=1),b=Object(b);++M-1&&v%1==0&&v0){if(++b>=o)return arguments[0]}else b=0;return v.apply(void 0,arguments)}}function Ax(v){if(v!=null){try{return za.call(v)}catch{}try{return v+""}catch{}}return""}function Da(v,b){return v===b||v!==v&&b!==b}var Pu=rh(function(){return arguments}())?rh:function(v){return Xo(v)&&ur.call(v,"callee")&&!Ib.call(v,"callee")},Eu=Array.isArray;function $u(v){return v!=null&&sh(v.length)&&!zu(v)}function Rx(v){return Xo(v)&&$u(v)}var ah=Db||jx;function zu(v){if(!mn(v))return!1;var b=Ia(v);return b==h||b==y||b==u||b==g}function sh(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=a}function mn(v){var b=typeof v;return v!=null&&(b=="object"||b=="function")}function Xo(v){return v!=null&&typeof v=="object"}function Mx(v){if(!Xo(v)||Ia(v)!=p)return!1;var b=Zp(v);if(b===null)return!0;var _=ur.call(b,"constructor")&&b.constructor;return typeof _=="function"&&_ instanceof _&&za.call(_)==Rb}var lh=xu?Pb(xu):ux;function Ix(v){return yx(v,uh(v))}function uh(v){return $u(v)?ix(v,!0):cx(v)}var Fx=Sx(function(v,b,_,M){nh(v,b,_,M)});function Dx(v){return function(){return v}}function ch(v){return v}function jx(){return!1}e.exports=Fx})(ml,ml.exports);var k2=ml.exports;const tr=af(k2);var C2=e=>/!(important)?$/.test(e),Mm=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,_2=(e,t)=>r=>{const n=String(t),o=C2(n),i=Mm(n),a=e?`${e}.${i}`:i;let s=ir(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=Mm(s),o?`${s} !important`:s};function fp(e){const{scale:t,transform:r,compose:n}=e;return(i,a)=>{var s;const l=_2(t,i)(a);let u=(s=r==null?void 0:r(l,a))!=null?s:l;return n&&(u=n(u,a)),u}}var ns=(...e)=>t=>e.reduce((r,n)=>n(r),t);function _t(e,t){return r=>{const n={property:r,scale:e};return n.transform=fp({scale:e,transform:t}),n}}var T2=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function P2(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:T2(t),transform:r?fp({scale:r,compose:n}):n}}var m1=["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 E2(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...m1].join(" ")}function $2(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...m1].join(" ")}var z2={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},A2={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 R2(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(", ")}}var M2={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Md={"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"},I2=new Set(Object.values(Md)),Id=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),F2=e=>e.trim();function D2(e,t){if(e==null||Id.has(e))return e;if(!(Fd(e)||Id.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=a.split(",").map(F2).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Md?Md[l]:l;u.unshift(c);const d=u.map(f=>{if(I2.has(f))return f;const h=f.indexOf(" "),[y,S]=h!==-1?[f.substr(0,h),f.substr(h+1)]:[f],C=Fd(S)?S:S&&S.split(" "),m=`colors.${y}`,p=m in t.__cssMap?t.__cssMap[m].varRef:y;return C?[p,...Array.isArray(C)?C:[C]].join(" "):p});return`${s}(${d.join(", ")})`}var Fd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),j2=(e,t)=>D2(e,t??{});function L2(e){return/^var\(--.+\)$/.test(e)}var B2=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Yt=e=>t=>`${e}(${t})`,H={filter(e){return e!=="auto"?e:z2},backdropFilter(e){return e!=="auto"?e:A2},ring(e){return R2(H.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?E2():e==="auto-gpu"?$2():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=B2(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(L2(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:j2,blur:Yt("blur"),opacity:Yt("opacity"),brightness:Yt("brightness"),contrast:Yt("contrast"),dropShadow:Yt("drop-shadow"),grayscale:Yt("grayscale"),hueRotate:e=>Yt("hue-rotate")(H.degree(e)),invert:Yt("invert"),saturate:Yt("saturate"),sepia:Yt("sepia"),bgImage(e){return e==null||Fd(e)||Id.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){var t;const{space:r,divide:n}=(t=M2[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},x={borderWidths:_t("borderWidths"),borderStyles:_t("borderStyles"),colors:_t("colors"),borders:_t("borders"),gradients:_t("gradients",H.gradient),radii:_t("radii",H.px),space:_t("space",ns(H.vh,H.px)),spaceT:_t("space",ns(H.vh,H.px)),degreeT(e){return{property:e,transform:H.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:fp({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:_t("sizes",ns(H.vh,H.px)),sizesT:_t("sizes",ns(H.vh,H.fraction)),shadows:_t("shadows"),logical:P2,blur:_t("blur",H.blur)},$s={background:x.colors("background"),backgroundColor:x.colors("backgroundColor"),backgroundImage:x.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:H.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:H.bgClip}};Object.assign($s,{bgImage:$s.backgroundImage,bgImg:$s.backgroundImage});var 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});var V2={color:x.colors("color"),textColor:x.colors("color"),fill:x.colors("fill"),stroke:x.colors("stroke")},Dd={boxShadow:x.shadows("boxShadow"),mixBlendMode:!0,blendMode:x.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:x.prop("backgroundBlendMode"),opacity:!0};Object.assign(Dd,{shadow:Dd.boxShadow});var O2={filter:{transform:H.filter},blur:x.blur("--chakra-blur"),brightness:x.propT("--chakra-brightness",H.brightness),contrast:x.propT("--chakra-contrast",H.contrast),hueRotate:x.propT("--chakra-hue-rotate",H.hueRotate),invert:x.propT("--chakra-invert",H.invert),saturate:x.propT("--chakra-saturate",H.saturate),dropShadow:x.propT("--chakra-drop-shadow",H.dropShadow),backdropFilter:{transform:H.backdropFilter},backdropBlur:x.blur("--chakra-backdrop-blur"),backdropBrightness:x.propT("--chakra-backdrop-brightness",H.brightness),backdropContrast:x.propT("--chakra-backdrop-contrast",H.contrast),backdropHueRotate:x.propT("--chakra-backdrop-hue-rotate",H.hueRotate),backdropInvert:x.propT("--chakra-backdrop-invert",H.invert),backdropSaturate:x.propT("--chakra-backdrop-saturate",H.saturate)},gl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:H.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(gl,{flexDir:gl.flexDirection});var g1={gridGap:x.space("gridGap"),gridColumnGap:x.space("gridColumnGap"),gridRowGap:x.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},N2={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:H.outline},outlineOffset:!0,outlineColor:x.colors("outlineColor")},Pt={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 r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:x.propT("float",H.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Pt,{w:Pt.width,h:Pt.height,minW:Pt.minWidth,maxW:Pt.maxWidth,minH:Pt.minHeight,maxH:Pt.maxHeight,overscroll:Pt.overscrollBehavior,overscrollX:Pt.overscrollBehaviorX,overscrollY:Pt.overscrollBehaviorY});var W2={listStyleType:!0,listStylePosition:!0,listStylePos:x.prop("listStylePosition"),listStyleImage:!0,listStyleImg:x.prop("listStyleImage")};function U2(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},G2=H2(U2),K2={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Y2={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},sc=(e,t,r)=>{const n={},o=G2(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},X2={srOnly:{transform(e){return e===!0?K2:e==="focusable"?Y2:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>sc(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>sc(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>sc(t,e,r)}},zi={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(zi,{insetStart:zi.insetInlineStart,insetEnd:zi.insetInlineEnd});var Q2={ring:{transform:H.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")},le={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(le,{m:le.margin,mt:le.marginTop,mr:le.marginRight,me:le.marginInlineEnd,marginEnd:le.marginInlineEnd,mb:le.marginBottom,ml:le.marginLeft,ms:le.marginInlineStart,marginStart:le.marginInlineStart,mx:le.marginX,my:le.marginY,p:le.padding,pt:le.paddingTop,py:le.paddingY,px:le.paddingX,pb:le.paddingBottom,pl:le.paddingLeft,ps:le.paddingInlineStart,paddingStart:le.paddingInlineStart,pr:le.paddingRight,pe:le.paddingInlineEnd,paddingEnd:le.paddingInlineEnd});var q2={textDecorationColor:x.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:x.shadows("textShadow")},Z2={clipPath:!0,transform:x.propT("transform",H.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")},J2={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")},e_={fontFamily:x.prop("fontFamily","fonts"),fontSize:x.prop("fontSize","fontSizes",H.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"}},t_={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"])};function v1(e){return ir(e)&&e.reference?e.reference:String(e)}var au=(e,...t)=>t.map(v1).join(` ${e} `).replace(/calc/g,""),Im=(...e)=>`calc(${au("+",...e)})`,Fm=(...e)=>`calc(${au("-",...e)})`,jd=(...e)=>`calc(${au("*",...e)})`,Dm=(...e)=>`calc(${au("/",...e)})`,jm=e=>{const t=v1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:jd(t,-1)},wn=Object.assign(e=>({add:(...t)=>wn(Im(e,...t)),subtract:(...t)=>wn(Fm(e,...t)),multiply:(...t)=>wn(jd(e,...t)),divide:(...t)=>wn(Dm(e,...t)),negate:()=>wn(jm(e)),toString:()=>e.toString()}),{add:Im,subtract:Fm,multiply:jd,divide:Dm,negate:jm});function r_(e,t="-"){return e.replace(/\s+/g,t)}function n_(e){const t=r_(e.toString());return i_(o_(t))}function o_(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function i_(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function a_(e,t=""){return[t,e].filter(Boolean).join("-")}function s_(e,t){return`var(${e}${t?`, ${t}`:""})`}function l_(e,t=""){return n_(`--${a_(e,t)}`)}function L(e,t,r){const n=l_(e,r);return{variable:n,reference:s_(n,t)}}function u_(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=L(`${e}-${o}`,i);continue}r[n]=L(`${e}-${n}`)}return r}function c_(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function d_(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function Ld(e){if(e==null)return e;const{unitless:t}=d_(e);return t||typeof e=="number"?`${e}px`:e}var y1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,pp=e=>Object.fromEntries(Object.entries(e).sort(y1));function Lm(e){const t=pp(e);return Object.assign(Object.values(t),t)}function f_(e){const t=Object.keys(pp(e));return new Set(t)}function Bm(e){var t;if(!e)return e;e=(t=Ld(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function mi(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Ld(e)})`),t&&r.push("and",`(max-width: ${Ld(t)})`),r.join(" ")}function p_(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=Lm(e),n=Object.entries(e).sort(y1).map(([a,s],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?Bm(d):void 0,{_minW:Bm(s),breakpoint:a,minW:s,maxW:d,maxWQuery:mi(null,d),minWQuery:mi(s),minMaxQuery:mi(s,d)}}),o=f_(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(a){const s=Object.keys(a);return s.length>0&&s.every(l=>o.has(l))},asObject:pp(e),asArray:Lm(e),details:n,get(a){return n.find(s=>s.breakpoint===a)},media:[null,...r.map(a=>mi(a)).slice(1)],toArrayValue(a){if(!ir(a))throw new Error("toArrayValue: value must be an object");const s=i.map(l=>{var u;return(u=a[l])!=null?u:null});for(;c_(s)===null;)s.pop();return s},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((s,l,u)=>{const c=i[u];return c!=null&&l!=null&&(s[c]=l),s},{})}}}var Be={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}`},Fr=e=>S1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),dr=e=>S1(t=>e(t,"~ &"),"[data-peer]",".peer"),S1=(e,...t)=>t.map(e).join(", "),su={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&: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",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-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]",_groupHover:Fr(Be.hover),_peerHover:dr(Be.hover),_groupFocus:Fr(Be.focus),_peerFocus:dr(Be.focus),_groupFocusVisible:Fr(Be.focusVisible),_peerFocusVisible:dr(Be.focusVisible),_groupActive:Fr(Be.active),_peerActive:dr(Be.active),_groupDisabled:Fr(Be.disabled),_peerDisabled:dr(Be.disabled),_groupInvalid:Fr(Be.invalid),_peerInvalid:dr(Be.invalid),_groupChecked:Fr(Be.checked),_peerChecked:dr(Be.checked),_groupFocusWithin:Fr(Be.focusWithin),_peerFocusWithin:dr(Be.focusWithin),_peerPlaceholderShown:dr(Be.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&: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]"},b1=Object.keys(su);function Vm(e,t){return L(String(e).replace(/\./g,"-"),void 0,t)}function h_(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:u}=Vm(o,t==null?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const f=o.split("."),[h,...y]=f,S=`${h}.-${y.join(".")}`,C=wn.negate(s),m=wn.negate(u);n[S]={value:C,var:l,varRef:m}}r[l]=s,n[o]={value:s,var:l,varRef:u};continue}const c=f=>{const y=[String(o).split(".")[0],f].join(".");if(!e[y])return f;const{reference:C}=Vm(y,t==null?void 0:t.cssVarPrefix);return C},d=ir(s)?s:{default:s};r=tr(r,Object.entries(d).reduce((f,[h,y])=>{var S,C;if(!y)return f;const m=c(`${y}`);if(h==="default")return f[l]=m,f;const p=(C=(S=su)==null?void 0:S[h])!=null?C:h;return f[p]={[l]:m},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function m_(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function g_(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function v_(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function Om(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){var l;if(v_(a)||Array.isArray(a)){const u={};for(const[c,d]of Object.entries(a)){const f=(l=o==null?void 0:o(c))!=null?l:c,h=[...s,f];if(n!=null&&n(a,h))return t(a,s);u[f]=i(d,h)}return u}return t(a,s)}return i(e)}var y_=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function S_(e){return g_(e,y_)}function b_(e){return e.semanticTokens}function x_(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var w_=e=>b1.includes(e)||e==="default";function k_({tokens:e,semanticTokens:t}){const r={};return Om(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),Om(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(w_)}),r}function C_(e){var t;const r=x_(e),n=S_(r),o=b_(r),i=k_({tokens:n,semanticTokens:o}),a=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=h_(i,{cssVarPrefix:a});return Object.assign(r,{__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"},...l},__cssMap:s,__breakpoints:p_(r.breakpoints)}),r}var hp=tr({},$s,X,V2,gl,Pt,O2,Q2,N2,g1,X2,zi,Dd,le,t_,e_,q2,Z2,W2,J2);Object.assign({},le,Pt,gl,g1,zi);var __=[...Object.keys(hp),...b1],T_={...hp,...su},P_=e=>e in T_,E_=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const a in e){let s=Kr(e[a],t);if(s==null)continue;if(s=ir(s)&&r(s)?n(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!z_(t),R_=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[a,s]=$_(t);return t=(n=(r=o(a))!=null?r:i(s))!=null?n:i(t),t};function M_(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,a=!1)=>{var s,l,u;const c=Kr(i,n),d=E_(c)(n);let f={};for(let h in d){const y=d[h];let S=Kr(y,n);h in r&&(h=r[h]),A_(h,S)&&(S=R_(n,S));let C=t[h];if(C===!0&&(C={property:h}),ir(S)){f[h]=(s=f[h])!=null?s:{},f[h]=tr({},f[h],o(S,!0));continue}let m=(u=(l=C==null?void 0:C.transform)==null?void 0:l.call(C,S,n,c))!=null?u:S;m=C!=null&&C.processResult?o(m,!0):m;const p=Kr(C==null?void 0:C.property,n);if(!a&&(C!=null&&C.static)){const g=Kr(C.static,n);f=tr({},f,g)}if(p&&Array.isArray(p)){for(const g of p)f[g]=m;continue}if(p){p==="&"&&ir(m)?f=tr({},f,m):f[p]=m;continue}if(ir(m)){f=tr({},f,m);continue}f[h]=m}return f};return o}var x1=e=>t=>M_({theme:t,pseudos:su,configs:hp})(e);function ae(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function I_(e,t){if(Array.isArray(e))return e;if(ir(e))return t(e);if(e!=null)return[e]}function F_(e,t){for(let r=t+1;r{tr(u,{[g]:f?p[g]:{[m]:p[g]}})});continue}if(!h){f?tr(u,p):u[m]=p;continue}u[m]=p}}return u}}function j_(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,a=D_(i);return tr({},Kr((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",o,t),a(e,"variants",n,t))}}function lr(e){return m_(e,["styleConfig","size","variant","colorScheme"])}var L_={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"},B_={"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)"},V_={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},O_={property:L_,easing:B_,duration:V_},N_=O_,W_={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},U_=W_,H_={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},G_=H_,K_={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Y_=K_,X_={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"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Q_=X_,q_={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Z_=q_,J_={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"},eT=J_,tT={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},rT=tT,nT={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"}},w1=nT,k1={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"},oT={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"},iT={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},aT={...k1,...oT,container:iT},C1=aT,sT={breakpoints:Y_,zIndices:U_,radii:Z_,blur:rT,colors:Q_,...w1,sizes:C1,shadows:eT,space:k1,borders:G_,transition:N_},{defineMultiStyleConfig:lT,definePartsStyle:gi}=ae(["stepper","step","title","description","indicator","separator","icon","number"]),hr=L("stepper-indicator-size"),so=L("stepper-icon-size"),lo=L("stepper-title-font-size"),vi=L("stepper-description-font-size"),ai=L("stepper-accent-color"),uT=gi(({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"},[ai.variable]:`colors.${e}.500`,_dark:{[ai.variable]:`colors.${e}.200`}},title:{fontSize:lo.reference,fontWeight:"medium"},description:{fontSize:vi.reference,color:"chakra-subtle-text"},number:{fontSize:lo.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:so.reference,height:so.reference},indicator:{flexShrink:0,borderRadius:"full",width:hr.reference,height:hr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ai.reference},"&[data-status=complete]":{bg:ai.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ai.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${hr.reference} - 8px)`,top:`calc(${hr.reference} + 4px)`,insetStart:`calc(${hr.reference} / 2 - 1px)`}}})),cT=lT({baseStyle:uT,sizes:{xs:gi({stepper:{[hr.variable]:"sizes.4",[so.variable]:"sizes.3",[lo.variable]:"fontSizes.xs",[vi.variable]:"fontSizes.xs"}}),sm:gi({stepper:{[hr.variable]:"sizes.6",[so.variable]:"sizes.4",[lo.variable]:"fontSizes.sm",[vi.variable]:"fontSizes.xs"}}),md:gi({stepper:{[hr.variable]:"sizes.8",[so.variable]:"sizes.5",[lo.variable]:"fontSizes.md",[vi.variable]:"fontSizes.sm"}}),lg:gi({stepper:{[hr.variable]:"sizes.10",[so.variable]:"sizes.6",[lo.variable]:"fontSizes.lg",[vi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function J(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return J(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return J(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const h=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var dT=J("accordion").parts("root","container","button","panel").extend("icon"),fT=J("alert").parts("title","description","container").extend("icon","spinner"),pT=J("avatar").parts("label","badge","container").extend("excessLabel","group"),hT=J("breadcrumb").parts("link","item","container").extend("separator");J("button").parts();var mT=J("checkbox").parts("control","icon","container").extend("label");J("progress").parts("track","filledTrack").extend("label");var gT=J("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),vT=J("editable").parts("preview","input","textarea"),yT=J("form").parts("container","requiredIndicator","helperText"),ST=J("formError").parts("text","icon"),bT=J("input").parts("addon","field","element","group"),xT=J("list").parts("container","item","icon"),wT=J("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),kT=J("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),CT=J("numberinput").parts("root","field","stepperGroup","stepper");J("pininput").parts("field");var _T=J("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),TT=J("progress").parts("label","filledTrack","track"),PT=J("radio").parts("container","control","label"),ET=J("select").parts("field","icon"),$T=J("slider").parts("container","track","thumb","filledTrack","mark"),zT=J("stat").parts("container","label","helpText","number","icon"),AT=J("switch").parts("container","track","thumb","label"),RT=J("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),MT=J("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),IT=J("tag").parts("container","label","closeButton"),FT=J("card").parts("container","header","body","footer");J("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Pn(e,t,r){return Math.min(Math.max(e,r),t)}class DT extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var yi=DT;function mp(e){if(typeof e!="string")throw new yi(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=UT.test(e)?BT(e):e;const r=VT.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(ua(s,2),16)),parseInt(ua(a[3]||"f",2),16)/255]}const n=OT.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=NT.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=WT.exec(t);if(i){const[a,s,l,u]=Array.from(i).slice(1).map(parseFloat);if(Pn(0,100,s)!==s)throw new yi(e);if(Pn(0,100,l)!==l)throw new yi(e);return[...HT(a,s,l),Number.isNaN(u)?1:u]}throw new yi(e)}function jT(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const Nm=e=>parseInt(e.replace(/_/g,""),36),LT="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 r=Nm(t.substring(0,3)),n=Nm(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function BT(e){const t=e.toLowerCase().trim(),r=LT[jT(t)];if(!r)throw new yi(e);return`#${r}`}const ua=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),VT=new RegExp(`^#${ua("([a-f0-9])",3)}([a-f0-9])?$`,"i"),OT=new RegExp(`^#${ua("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),NT=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ua(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),WT=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,UT=/^[a-z]+$/i,Wm=e=>Math.round(e*255),HT=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(Wm);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=n-i/2,d=s+c,f=l+c,h=u+c;return[d,f,h].map(Wm)};function GT(e,t,r,n){return`rgba(${Pn(0,255,e).toFixed()}, ${Pn(0,255,t).toFixed()}, ${Pn(0,255,r).toFixed()}, ${parseFloat(Pn(0,1,n).toFixed(3))})`}function KT(e,t){const[r,n,o,i]=mp(e);return GT(r,n,o,i-t)}function YT(e){const[t,r,n,o]=mp(e);let i=a=>{const s=Pn(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function XT(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,Ze=(e,t,r)=>{const n=XT(e,`colors.${t}`,t);try{return YT(n),n}catch{return r??"#000000"}},qT=e=>{const[t,r,n]=mp(e);return(t*299+r*587+n*114)/1e3},ZT=e=>t=>{const r=Ze(t,e);return qT(r)<128?"dark":"light"},JT=e=>t=>ZT(e)(t)==="dark",Lo=(e,t)=>r=>{const n=Ze(r,e);return KT(n,1-t)};function Um(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + ${f1} + `});function u2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ar(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=k.createContext(a);s.displayName=t;function l(){var u;const c=k.useContext(s);if(!c&&r){const d=new Error(i??u2(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[s.Provider,l,s]}var[c2,d2]=Ar({strict:!1,name:"PortalManagerContext"});function h1(e){const{children:t,zIndex:r}=e;return T.jsx(c2,{value:{zIndex:r},children:t})}h1.displayName="PortalManager";var pl=globalThis!=null&&globalThis.document?k.useLayoutEffect:k.useEffect,[p1,f2]=Ar({strict:!1,name:"PortalContext"}),uh="chakra-portal",h2=".chakra-portal",p2=e=>T.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),m2=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=k.useState(null),i=k.useRef(null),[,a]=k.useState({});k.useEffect(()=>a({}),[]);const s=f2(),l=d2();pl(()=>{if(!n)return;const c=n.ownerDocument,d=t?s??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=uh,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?T.jsx(p2,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?th.createPortal(T.jsx(p1,{value:i.current,children:u}),i.current):T.jsx("span",{ref:c=>{c&&o(c)}})},g2=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),a=k.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=uh),l},[o]),[,s]=k.useState({});return pl(()=>s({}),[]),pl(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?th.createPortal(T.jsx(p1,{value:n?a:null,children:t}),a):null};function iu(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?T.jsx(g2,{containerRef:r,...n}):T.jsx(m2,{...n})}iu.className=uh;iu.selector=h2;iu.displayName="Portal";function v2(){const e=k.useContext(ua);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var ch=k.createContext({});ch.displayName="ColorModeContext";function dh(){const e=k.useContext(ch);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var ns={light:"chakra-ui-light",dark:"chakra-ui-dark"};function y2(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?ns.dark:ns.light),document.body.classList.remove(n?ns.light:ns.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=a=>{n(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var S2="chakra-ui-color-mode";function b2(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var x2=b2(S2),zm=()=>{};function Am(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function m1(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=x2}=e,s=o==="dark"?"dark":"light",[l,u]=k.useState(()=>Am(a,s)),[c,d]=k.useState(()=>Am(a)),{getSystemTheme:f,setClassName:p,setDataset:y,addListener:S}=k.useMemo(()=>y2({preventTransition:i}),[i]),C=o==="system"&&!l?c:l,m=k.useCallback(w=>{const E=w==="system"?f():w;u(E),p(E==="dark"),y(E),a.set(E)},[a,f,p,y]);pl(()=>{o==="system"&&d(f())},[]),k.useEffect(()=>{const w=a.get();if(w){m(w);return}if(o==="system"){m("system");return}m(s)},[a,s,o,m]);const h=k.useCallback(()=>{m(C==="dark"?"light":"dark")},[C,m]);k.useEffect(()=>{if(n)return S(m)},[n,S,m]);const g=k.useMemo(()=>({colorMode:t??C,toggleColorMode:t?zm:h,setColorMode:t?zm:m,forced:t!==void 0}),[C,h,m,t]);return T.jsx(ch.Provider,{value:g,children:r})}m1.displayName="ColorModeProvider";function w2(){const e=dh(),t=v2();return{...e,theme:t}}var Me=(...e)=>e.filter(Boolean).join(" ");function ir(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Kr(e,...t){return k2(e)?e(...t):e}var k2=e=>typeof e=="function",Qt=e=>e?"":void 0,ac=e=>e?!0:void 0;function Rm(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var ml={exports:{}};ml.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",y="[object GeneratorFunction]",S="[object Map]",C="[object Number]",m="[object Null]",h="[object Object]",g="[object Proxy]",w="[object RegExp]",E="[object Set]",z="[object String]",P="[object Undefined]",$="[object WeakMap]",F="[object ArrayBuffer]",D="[object DataView]",ke="[object Float32Array]",$e="[object Float64Array]",Le="[object Int8Array]",Ce="[object Int16Array]",Ut="[object Int32Array]",pe="[object Uint8Array]",nt="[object Uint8ClampedArray]",R="[object Uint16Array]",B="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,O=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,K={};K[ke]=K[$e]=K[Le]=K[Ce]=K[Ut]=K[pe]=K[nt]=K[R]=K[B]=!0,K[s]=K[l]=K[F]=K[c]=K[D]=K[d]=K[f]=K[p]=K[S]=K[C]=K[h]=K[w]=K[E]=K[z]=K[$]=!1;var ft=typeof La=="object"&&La&&La.Object===Object&&La,Rr=typeof self=="object"&&self&&self.Object===Object&&self,ze=ft||Rr||Function("return this")(),Ht=t&&!t.nodeType&&t,fn=Ht&&!0&&e&&!e.nodeType&&e,Un=fn&&fn.exports===Ht,Mr=Un&&ft.process,Gt=function(){try{var v=fn&&fn.require&&fn.require("util").types;return v||Mr&&Mr.binding&&Mr.binding("util")}catch{}}(),xu=Gt&&Gt.isTypedArray;function Tb(v,b,_){switch(_.length){case 0:return v.call(b);case 1:return v.call(b,_[0]);case 2:return v.call(b,_[0],_[1]);case 3:return v.call(b,_[0],_[1],_[2])}return v.apply(b,_)}function Pb(v,b){for(var _=-1,M=Array(v);++_-1}function Xb(v,b){var _=this.__data__,M=Ia(_,v);return M<0?(++this.size,_.push([v,b])):_[M][1]=b,this}cr.prototype.clear=Hb,cr.prototype.delete=Gb,cr.prototype.get=Kb,cr.prototype.has=Yb,cr.prototype.set=Xb;function Hn(v){var b=-1,_=v==null?0:v.length;for(this.clear();++b<_;){var M=v[b];this.set(M[0],M[1])}}function Qb(){this.size=0,this.__data__={hash:new pn,map:new(tp||cr),string:new pn}}function qb(v){var b=Da(this,v).delete(v);return this.size-=b?1:0,b}function Zb(v){return Da(this,v).get(v)}function Jb(v){return Da(this,v).has(v)}function ex(v,b){var _=Da(this,v),M=_.size;return _.set(v,b),this.size+=_.size==M?0:1,this}Hn.prototype.clear=Qb,Hn.prototype.delete=qb,Hn.prototype.get=Zb,Hn.prototype.has=Jb,Hn.prototype.set=ex;function Gn(v){var b=this.__data__=new cr(v);this.size=b.size}function tx(){this.__data__=new cr,this.size=0}function rx(v){var b=this.__data__,_=b.delete(v);return this.size=b.size,_}function nx(v){return this.__data__.get(v)}function ox(v){return this.__data__.has(v)}function ix(v,b){var _=this.__data__;if(_ instanceof cr){var M=_.__data__;if(!tp||M.length1?_[G-1]:void 0,de=G>2?_[2]:void 0;for(re=v.length>3&&typeof re=="function"?(G--,re):void 0,de&&Cx(_[0],_[1],de)&&(re=G<3?void 0:re,G=1),b=Object(b);++M-1&&v%1==0&&v0){if(++b>=o)return arguments[0]}else b=0;return v.apply(void 0,arguments)}}function Rx(v){if(v!=null){try{return Aa.call(v)}catch{}try{return v+""}catch{}}return""}function ja(v,b){return v===b||v!==v&&b!==b}var Pu=rp(function(){return arguments}())?rp:function(v){return Qo(v)&&ur.call(v,"callee")&&!Fb.call(v,"callee")},Eu=Array.isArray;function $u(v){return v!=null&&sp(v.length)&&!zu(v)}function Mx(v){return Qo(v)&&$u(v)}var ap=jb||Lx;function zu(v){if(!mn(v))return!1;var b=Fa(v);return b==p||b==y||b==u||b==g}function sp(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=a}function mn(v){var b=typeof v;return v!=null&&(b=="object"||b=="function")}function Qo(v){return v!=null&&typeof v=="object"}function Ix(v){if(!Qo(v)||Fa(v)!=h)return!1;var b=Zh(v);if(b===null)return!0;var _=ur.call(b,"constructor")&&b.constructor;return typeof _=="function"&&_ instanceof _&&Aa.call(_)==Mb}var lp=xu?Eb(xu):cx;function Fx(v){return Sx(v,up(v))}function up(v){return $u(v)?ax(v,!0):dx(v)}var Dx=bx(function(v,b,_,M){np(v,b,_,M)});function jx(v){return function(){return v}}function cp(v){return v}function Lx(){return!1}e.exports=Dx})(ml,ml.exports);var C2=ml.exports;const tr=af(C2);var _2=e=>/!(important)?$/.test(e),Mm=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,T2=(e,t)=>r=>{const n=String(t),o=_2(n),i=Mm(n),a=e?`${e}.${i}`:i;let s=ir(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=Mm(s),o?`${s} !important`:s};function fh(e){const{scale:t,transform:r,compose:n}=e;return(i,a)=>{var s;const l=T2(t,i)(a);let u=(s=r==null?void 0:r(l,a))!=null?s:l;return n&&(u=n(u,a)),u}}var os=(...e)=>t=>e.reduce((r,n)=>n(r),t);function _t(e,t){return r=>{const n={property:r,scale:e};return n.transform=fh({scale:e,transform:t}),n}}var P2=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function E2(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:P2(t),transform:r?fh({scale:r,compose:n}):n}}var g1=["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 $2(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...g1].join(" ")}function z2(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...g1].join(" ")}var A2={"--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(" ")},R2={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 M2(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(", ")}}var I2={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Md={"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"},F2=new Set(Object.values(Md)),Id=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),D2=e=>e.trim();function j2(e,t){if(e==null||Id.has(e))return e;if(!(Fd(e)||Id.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=a.split(",").map(D2).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Md?Md[l]:l;u.unshift(c);const d=u.map(f=>{if(F2.has(f))return f;const p=f.indexOf(" "),[y,S]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],C=Fd(S)?S:S&&S.split(" "),m=`colors.${y}`,h=m in t.__cssMap?t.__cssMap[m].varRef:y;return C?[h,...Array.isArray(C)?C:[C]].join(" "):h});return`${s}(${d.join(", ")})`}var Fd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),L2=(e,t)=>j2(e,t??{});function B2(e){return/^var\(--.+\)$/.test(e)}var V2=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Yt=e=>t=>`${e}(${t})`,H={filter(e){return e!=="auto"?e:A2},backdropFilter(e){return e!=="auto"?e:R2},ring(e){return M2(H.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?$2():e==="auto-gpu"?z2():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=V2(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(B2(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:L2,blur:Yt("blur"),opacity:Yt("opacity"),brightness:Yt("brightness"),contrast:Yt("contrast"),dropShadow:Yt("drop-shadow"),grayscale:Yt("grayscale"),hueRotate:e=>Yt("hue-rotate")(H.degree(e)),invert:Yt("invert"),saturate:Yt("saturate"),sepia:Yt("sepia"),bgImage(e){return e==null||Fd(e)||Id.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){var t;const{space:r,divide:n}=(t=I2[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},x={borderWidths:_t("borderWidths"),borderStyles:_t("borderStyles"),colors:_t("colors"),borders:_t("borders"),gradients:_t("gradients",H.gradient),radii:_t("radii",H.px),space:_t("space",os(H.vh,H.px)),spaceT:_t("space",os(H.vh,H.px)),degreeT(e){return{property:e,transform:H.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:fh({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:_t("sizes",os(H.vh,H.px)),sizesT:_t("sizes",os(H.vh,H.fraction)),shadows:_t("shadows"),logical:E2,blur:_t("blur",H.blur)},zs={background:x.colors("background"),backgroundColor:x.colors("backgroundColor"),backgroundImage:x.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:H.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:H.bgClip}};Object.assign(zs,{bgImage:zs.backgroundImage,bgImg:zs.backgroundImage});var 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});var O2={color:x.colors("color"),textColor:x.colors("color"),fill:x.colors("fill"),stroke:x.colors("stroke")},Dd={boxShadow:x.shadows("boxShadow"),mixBlendMode:!0,blendMode:x.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:x.prop("backgroundBlendMode"),opacity:!0};Object.assign(Dd,{shadow:Dd.boxShadow});var N2={filter:{transform:H.filter},blur:x.blur("--chakra-blur"),brightness:x.propT("--chakra-brightness",H.brightness),contrast:x.propT("--chakra-contrast",H.contrast),hueRotate:x.propT("--chakra-hue-rotate",H.hueRotate),invert:x.propT("--chakra-invert",H.invert),saturate:x.propT("--chakra-saturate",H.saturate),dropShadow:x.propT("--chakra-drop-shadow",H.dropShadow),backdropFilter:{transform:H.backdropFilter},backdropBlur:x.blur("--chakra-backdrop-blur"),backdropBrightness:x.propT("--chakra-backdrop-brightness",H.brightness),backdropContrast:x.propT("--chakra-backdrop-contrast",H.contrast),backdropHueRotate:x.propT("--chakra-backdrop-hue-rotate",H.hueRotate),backdropInvert:x.propT("--chakra-backdrop-invert",H.invert),backdropSaturate:x.propT("--chakra-backdrop-saturate",H.saturate)},gl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:H.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(gl,{flexDir:gl.flexDirection});var v1={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},W2={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:H.outline},outlineOffset:!0,outlineColor:x.colors("outlineColor")},Pt={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 r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:x.propT("float",H.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Pt,{w:Pt.width,h:Pt.height,minW:Pt.minWidth,maxW:Pt.maxWidth,minH:Pt.minHeight,maxH:Pt.maxHeight,overscroll:Pt.overscrollBehavior,overscrollX:Pt.overscrollBehaviorX,overscrollY:Pt.overscrollBehaviorY});var U2={listStyleType:!0,listStylePosition:!0,listStylePos:x.prop("listStylePosition"),listStyleImage:!0,listStyleImg:x.prop("listStyleImage")};function H2(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},K2=G2(H2),Y2={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},X2={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},sc=(e,t,r)=>{const n={},o=K2(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},Q2={srOnly:{transform(e){return e===!0?Y2:e==="focusable"?X2:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>sc(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>sc(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>sc(t,e,r)}},Ri={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(Ri,{insetStart:Ri.insetInlineStart,insetEnd:Ri.insetInlineEnd});var q2={ring:{transform:H.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")},le={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(le,{m:le.margin,mt:le.marginTop,mr:le.marginRight,me:le.marginInlineEnd,marginEnd:le.marginInlineEnd,mb:le.marginBottom,ml:le.marginLeft,ms:le.marginInlineStart,marginStart:le.marginInlineStart,mx:le.marginX,my:le.marginY,p:le.padding,pt:le.paddingTop,py:le.paddingY,px:le.paddingX,pb:le.paddingBottom,pl:le.paddingLeft,ps:le.paddingInlineStart,paddingStart:le.paddingInlineStart,pr:le.paddingRight,pe:le.paddingInlineEnd,paddingEnd:le.paddingInlineEnd});var Z2={textDecorationColor:x.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:x.shadows("textShadow")},J2={clipPath:!0,transform:x.propT("transform",H.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")},e_={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")},t_={fontFamily:x.prop("fontFamily","fonts"),fontSize:x.prop("fontSize","fontSizes",H.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"}},r_={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"])};function y1(e){return ir(e)&&e.reference?e.reference:String(e)}var au=(e,...t)=>t.map(y1).join(` ${e} `).replace(/calc/g,""),Im=(...e)=>`calc(${au("+",...e)})`,Fm=(...e)=>`calc(${au("-",...e)})`,jd=(...e)=>`calc(${au("*",...e)})`,Dm=(...e)=>`calc(${au("/",...e)})`,jm=e=>{const t=y1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:jd(t,-1)},wn=Object.assign(e=>({add:(...t)=>wn(Im(e,...t)),subtract:(...t)=>wn(Fm(e,...t)),multiply:(...t)=>wn(jd(e,...t)),divide:(...t)=>wn(Dm(e,...t)),negate:()=>wn(jm(e)),toString:()=>e.toString()}),{add:Im,subtract:Fm,multiply:jd,divide:Dm,negate:jm});function n_(e,t="-"){return e.replace(/\s+/g,t)}function o_(e){const t=n_(e.toString());return a_(i_(t))}function i_(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function a_(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function s_(e,t=""){return[t,e].filter(Boolean).join("-")}function l_(e,t){return`var(${e}${t?`, ${t}`:""})`}function u_(e,t=""){return o_(`--${s_(e,t)}`)}function L(e,t,r){const n=u_(e,r);return{variable:n,reference:l_(n,t)}}function c_(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=L(`${e}-${o}`,i);continue}r[n]=L(`${e}-${n}`)}return r}function d_(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function f_(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function Ld(e){if(e==null)return e;const{unitless:t}=f_(e);return t||typeof e=="number"?`${e}px`:e}var S1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,hh=e=>Object.fromEntries(Object.entries(e).sort(S1));function Lm(e){const t=hh(e);return Object.assign(Object.values(t),t)}function h_(e){const t=Object.keys(hh(e));return new Set(t)}function Bm(e){var t;if(!e)return e;e=(t=Ld(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function gi(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Ld(e)})`),t&&r.push("and",`(max-width: ${Ld(t)})`),r.join(" ")}function p_(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=Lm(e),n=Object.entries(e).sort(S1).map(([a,s],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?Bm(d):void 0,{_minW:Bm(s),breakpoint:a,minW:s,maxW:d,maxWQuery:gi(null,d),minWQuery:gi(s),minMaxQuery:gi(s,d)}}),o=h_(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(a){const s=Object.keys(a);return s.length>0&&s.every(l=>o.has(l))},asObject:hh(e),asArray:Lm(e),details:n,get(a){return n.find(s=>s.breakpoint===a)},media:[null,...r.map(a=>gi(a)).slice(1)],toArrayValue(a){if(!ir(a))throw new Error("toArrayValue: value must be an object");const s=i.map(l=>{var u;return(u=a[l])!=null?u:null});for(;d_(s)===null;)s.pop();return s},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((s,l,u)=>{const c=i[u];return c!=null&&l!=null&&(s[c]=l),s},{})}}}var Be={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}`},Fr=e=>b1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),dr=e=>b1(t=>e(t,"~ &"),"[data-peer]",".peer"),b1=(e,...t)=>t.map(e).join(", "),su={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&: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",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-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]",_groupHover:Fr(Be.hover),_peerHover:dr(Be.hover),_groupFocus:Fr(Be.focus),_peerFocus:dr(Be.focus),_groupFocusVisible:Fr(Be.focusVisible),_peerFocusVisible:dr(Be.focusVisible),_groupActive:Fr(Be.active),_peerActive:dr(Be.active),_groupDisabled:Fr(Be.disabled),_peerDisabled:dr(Be.disabled),_groupInvalid:Fr(Be.invalid),_peerInvalid:dr(Be.invalid),_groupChecked:Fr(Be.checked),_peerChecked:dr(Be.checked),_groupFocusWithin:Fr(Be.focusWithin),_peerFocusWithin:dr(Be.focusWithin),_peerPlaceholderShown:dr(Be.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&: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]"},x1=Object.keys(su);function Vm(e,t){return L(String(e).replace(/\./g,"-"),void 0,t)}function m_(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:u}=Vm(o,t==null?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const f=o.split("."),[p,...y]=f,S=`${p}.-${y.join(".")}`,C=wn.negate(s),m=wn.negate(u);n[S]={value:C,var:l,varRef:m}}r[l]=s,n[o]={value:s,var:l,varRef:u};continue}const c=f=>{const y=[String(o).split(".")[0],f].join(".");if(!e[y])return f;const{reference:C}=Vm(y,t==null?void 0:t.cssVarPrefix);return C},d=ir(s)?s:{default:s};r=tr(r,Object.entries(d).reduce((f,[p,y])=>{var S,C;if(!y)return f;const m=c(`${y}`);if(p==="default")return f[l]=m,f;const h=(C=(S=su)==null?void 0:S[p])!=null?C:p;return f[h]={[l]:m},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function g_(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function v_(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function y_(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function Om(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){var l;if(y_(a)||Array.isArray(a)){const u={};for(const[c,d]of Object.entries(a)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...s,f];if(n!=null&&n(a,p))return t(a,s);u[f]=i(d,p)}return u}return t(a,s)}return i(e)}var S_=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function b_(e){return v_(e,S_)}function x_(e){return e.semanticTokens}function w_(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var k_=e=>x1.includes(e)||e==="default";function C_({tokens:e,semanticTokens:t}){const r={};return Om(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),Om(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(k_)}),r}function __(e){var t;const r=w_(e),n=b_(r),o=x_(r),i=C_({tokens:n,semanticTokens:o}),a=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=m_(i,{cssVarPrefix:a});return Object.assign(r,{__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"},...l},__cssMap:s,__breakpoints:p_(r.breakpoints)}),r}var ph=tr({},zs,X,O2,gl,Pt,N2,q2,W2,v1,Q2,Ri,Dd,le,r_,t_,Z2,J2,U2,e_);Object.assign({},le,Pt,gl,v1,Ri);var T_=[...Object.keys(ph),...x1],P_={...ph,...su},E_=e=>e in P_,$_=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const a in e){let s=Kr(e[a],t);if(s==null)continue;if(s=ir(s)&&r(s)?n(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!A_(t),M_=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[a,s]=z_(t);return t=(n=(r=o(a))!=null?r:i(s))!=null?n:i(t),t};function I_(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,a=!1)=>{var s,l,u;const c=Kr(i,n),d=$_(c)(n);let f={};for(let p in d){const y=d[p];let S=Kr(y,n);p in r&&(p=r[p]),R_(p,S)&&(S=M_(n,S));let C=t[p];if(C===!0&&(C={property:p}),ir(S)){f[p]=(s=f[p])!=null?s:{},f[p]=tr({},f[p],o(S,!0));continue}let m=(u=(l=C==null?void 0:C.transform)==null?void 0:l.call(C,S,n,c))!=null?u:S;m=C!=null&&C.processResult?o(m,!0):m;const h=Kr(C==null?void 0:C.property,n);if(!a&&(C!=null&&C.static)){const g=Kr(C.static,n);f=tr({},f,g)}if(h&&Array.isArray(h)){for(const g of h)f[g]=m;continue}if(h){h==="&"&&ir(m)?f=tr({},f,m):f[h]=m;continue}if(ir(m)){f=tr({},f,m);continue}f[p]=m}return f};return o}var w1=e=>t=>I_({theme:t,pseudos:su,configs:ph})(e);function ae(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function F_(e,t){if(Array.isArray(e))return e;if(ir(e))return t(e);if(e!=null)return[e]}function D_(e,t){for(let r=t+1;r{tr(u,{[g]:f?h[g]:{[m]:h[g]}})});continue}if(!p){f?tr(u,h):u[m]=h;continue}u[m]=h}}return u}}function L_(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,a=j_(i);return tr({},Kr((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",o,t),a(e,"variants",n,t))}}function lr(e){return g_(e,["styleConfig","size","variant","colorScheme"])}var B_={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"},V_={"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)"},O_={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},N_={property:B_,easing:V_,duration:O_},W_=N_,U_={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},H_=U_,G_={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},K_=G_,Y_={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},X_=Y_,Q_={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"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},q_=Q_,Z_={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},J_=Z_,eT={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"},tT=eT,rT={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},nT=rT,oT={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"}},k1=oT,C1={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"},iT={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"},aT={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},sT={...C1,...iT,container:aT},_1=sT,lT={breakpoints:X_,zIndices:H_,radii:J_,blur:nT,colors:q_,...k1,sizes:_1,shadows:tT,space:C1,borders:K_,transition:W_},{defineMultiStyleConfig:uT,definePartsStyle:vi}=ae(["stepper","step","title","description","indicator","separator","icon","number"]),pr=L("stepper-indicator-size"),so=L("stepper-icon-size"),lo=L("stepper-title-font-size"),yi=L("stepper-description-font-size"),si=L("stepper-accent-color"),cT=vi(({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"},[si.variable]:`colors.${e}.500`,_dark:{[si.variable]:`colors.${e}.200`}},title:{fontSize:lo.reference,fontWeight:"medium"},description:{fontSize:yi.reference,color:"chakra-subtle-text"},number:{fontSize:lo.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:so.reference,height:so.reference},indicator:{flexShrink:0,borderRadius:"full",width:pr.reference,height:pr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:si.reference},"&[data-status=complete]":{bg:si.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:si.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${pr.reference} - 8px)`,top:`calc(${pr.reference} + 4px)`,insetStart:`calc(${pr.reference} / 2 - 1px)`}}})),dT=uT({baseStyle:cT,sizes:{xs:vi({stepper:{[pr.variable]:"sizes.4",[so.variable]:"sizes.3",[lo.variable]:"fontSizes.xs",[yi.variable]:"fontSizes.xs"}}),sm:vi({stepper:{[pr.variable]:"sizes.6",[so.variable]:"sizes.4",[lo.variable]:"fontSizes.sm",[yi.variable]:"fontSizes.xs"}}),md:vi({stepper:{[pr.variable]:"sizes.8",[so.variable]:"sizes.5",[lo.variable]:"fontSizes.md",[yi.variable]:"fontSizes.sm"}}),lg:vi({stepper:{[pr.variable]:"sizes.10",[so.variable]:"sizes.6",[lo.variable]:"fontSizes.lg",[yi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function J(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return J(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return J(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var fT=J("accordion").parts("root","container","button","panel").extend("icon"),hT=J("alert").parts("title","description","container").extend("icon","spinner"),pT=J("avatar").parts("label","badge","container").extend("excessLabel","group"),mT=J("breadcrumb").parts("link","item","container").extend("separator");J("button").parts();var gT=J("checkbox").parts("control","icon","container").extend("label");J("progress").parts("track","filledTrack").extend("label");var vT=J("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),yT=J("editable").parts("preview","input","textarea"),ST=J("form").parts("container","requiredIndicator","helperText"),bT=J("formError").parts("text","icon"),xT=J("input").parts("addon","field","element","group"),wT=J("list").parts("container","item","icon"),kT=J("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),CT=J("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),_T=J("numberinput").parts("root","field","stepperGroup","stepper");J("pininput").parts("field");var TT=J("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),PT=J("progress").parts("label","filledTrack","track"),ET=J("radio").parts("container","control","label"),$T=J("select").parts("field","icon"),zT=J("slider").parts("container","track","thumb","filledTrack","mark"),AT=J("stat").parts("container","label","helpText","number","icon"),RT=J("switch").parts("container","track","thumb","label"),MT=J("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),IT=J("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),FT=J("tag").parts("container","label","closeButton"),DT=J("card").parts("container","header","body","footer");J("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Pn(e,t,r){return Math.min(Math.max(e,r),t)}class jT extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Si=jT;function mh(e){if(typeof e!="string")throw new Si(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=HT.test(e)?VT(e):e;const r=OT.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(ca(s,2),16)),parseInt(ca(a[3]||"f",2),16)/255]}const n=NT.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=WT.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=UT.exec(t);if(i){const[a,s,l,u]=Array.from(i).slice(1).map(parseFloat);if(Pn(0,100,s)!==s)throw new Si(e);if(Pn(0,100,l)!==l)throw new Si(e);return[...GT(a,s,l),Number.isNaN(u)?1:u]}throw new Si(e)}function LT(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const Nm=e=>parseInt(e.replace(/_/g,""),36),BT="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 r=Nm(t.substring(0,3)),n=Nm(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function VT(e){const t=e.toLowerCase().trim(),r=BT[LT(t)];if(!r)throw new Si(e);return`#${r}`}const ca=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),OT=new RegExp(`^#${ca("([a-f0-9])",3)}([a-f0-9])?$`,"i"),NT=new RegExp(`^#${ca("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),WT=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ca(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),UT=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,HT=/^[a-z]+$/i,Wm=e=>Math.round(e*255),GT=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(Wm);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=n-i/2,d=s+c,f=l+c,p=u+c;return[d,f,p].map(Wm)};function KT(e,t,r,n){return`rgba(${Pn(0,255,e).toFixed()}, ${Pn(0,255,t).toFixed()}, ${Pn(0,255,r).toFixed()}, ${parseFloat(Pn(0,1,n).toFixed(3))})`}function YT(e,t){const[r,n,o,i]=mh(e);return KT(r,n,o,i-t)}function XT(e){const[t,r,n,o]=mh(e);let i=a=>{const s=Pn(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function QT(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,Ze=(e,t,r)=>{const n=QT(e,`colors.${t}`,t);try{return XT(n),n}catch{return r??"#000000"}},ZT=e=>{const[t,r,n]=mh(e);return(t*299+r*587+n*114)/1e3},JT=e=>t=>{const r=Ze(t,e);return ZT(r)<128?"dark":"light"},eP=e=>t=>JT(e)(t)==="dark",Bo=(e,t)=>r=>{const n=Ze(r,e);return YT(n,1-t)};function Um(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -332,12 +332,12 @@ Error generating stack: `+i.message+` ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}var eP=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function tP(e){const t=eP();return!e||QT(e)?t:e.string&&e.colors?nP(e.string,e.colors):e.string&&!e.colors?rP(e.string):e.colors&&!e.string?oP(e.colors):t}function rP(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function nP(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function gp(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function _1(e){return ir(e)&&e.reference?e.reference:String(e)}var lu=(e,...t)=>t.map(_1).join(` ${e} `).replace(/calc/g,""),Hm=(...e)=>`calc(${lu("+",...e)})`,Gm=(...e)=>`calc(${lu("-",...e)})`,Bd=(...e)=>`calc(${lu("*",...e)})`,Km=(...e)=>`calc(${lu("/",...e)})`,Ym=e=>{const t=_1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Bd(t,-1)},mr=Object.assign(e=>({add:(...t)=>mr(Hm(e,...t)),subtract:(...t)=>mr(Gm(e,...t)),multiply:(...t)=>mr(Bd(e,...t)),divide:(...t)=>mr(Km(e,...t)),negate:()=>mr(Ym(e)),toString:()=>e.toString()}),{add:Hm,subtract:Gm,multiply:Bd,divide:Km,negate:Ym});function iP(e){return!Number.isInteger(parseFloat(e.toString()))}function aP(e,t="-"){return e.replace(/\s+/g,t)}function T1(e){const t=aP(e.toString());return t.includes("\\.")?e:iP(e)?t.replace(".","\\."):e}function sP(e,t=""){return[t,T1(e)].filter(Boolean).join("-")}function lP(e,t){return`var(${T1(e)}${t?`, ${t}`:""})`}function uP(e,t=""){return`--${sP(e,t)}`}function Ie(e,t){const r=uP(e,t==null?void 0:t.prefix);return{variable:r,reference:lP(r,cP(t==null?void 0:t.fallback))}}function cP(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:dP,definePartsStyle:zs}=ae(AT.keys),Ai=Ie("switch-track-width"),An=Ie("switch-track-height"),lc=Ie("switch-track-diff"),fP=mr.subtract(Ai,An),Vd=Ie("switch-thumb-x"),si=Ie("switch-bg"),pP=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ai.reference],height:[An.reference],transitionProperty:"common",transitionDuration:"fast",[si.variable]:"colors.gray.300",_dark:{[si.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[si.variable]:`colors.${t}.500`,_dark:{[si.variable]:`colors.${t}.200`}},bg:si.reference}},hP={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[An.reference],height:[An.reference],_checked:{transform:`translateX(${Vd.reference})`}},mP=zs(e=>({container:{[lc.variable]:fP,[Vd.variable]:lc.reference,_rtl:{[Vd.variable]:mr(lc).negate().toString()}},track:pP(e),thumb:hP})),gP={sm:zs({container:{[Ai.variable]:"1.375rem",[An.variable]:"sizes.3"}}),md:zs({container:{[Ai.variable]:"1.875rem",[An.variable]:"sizes.4"}}),lg:zs({container:{[Ai.variable]:"2.875rem",[An.variable]:"sizes.6"}})},vP=dP({baseStyle:mP,sizes:gP,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:yP,definePartsStyle:_o}=ae(RT.keys),SP=_o({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),vl={"&[data-is-numeric=true]":{textAlign:"end"}},bP=_o(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...vl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...vl},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),xP=_o(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...vl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...vl},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}}}}}}),wP={simple:bP,striped:xP,unstyled:{}},kP={sm:_o({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:_o({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:_o({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},CP=yP({baseStyle:SP,variants:wP,sizes:kP,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),it=L("tabs-color"),Vt=L("tabs-bg"),os=L("tabs-border-color"),{defineMultiStyleConfig:_P,definePartsStyle:ar}=ae(MT.keys),TP=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},PP=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}}},EP=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},$P={p:4},zP=ar(e=>({root:TP(e),tab:PP(e),tablist:EP(e),tabpanel:$P})),AP={sm:ar({tab:{py:1,px:4,fontSize:"sm"}}),md:ar({tab:{fontSize:"md",py:2,px:4}}),lg:ar({tab:{fontSize:"lg",py:3,px:4}})},RP=ar(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[it.variable]:`colors.${t}.600`,_dark:{[it.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Vt.variable]:"colors.gray.200",_dark:{[Vt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:it.reference,bg:Vt.reference}}}),MP=ar(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[os.variable]:"transparent",_selected:{[it.variable]:`colors.${t}.600`,[os.variable]:"colors.white",_dark:{[it.variable]:`colors.${t}.300`,[os.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:os.reference},color:it.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),IP=ar(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Vt.variable]:"colors.gray.50",_dark:{[Vt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Vt.variable]:"colors.white",[it.variable]:`colors.${t}.600`,_dark:{[Vt.variable]:"colors.gray.800",[it.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:it.reference,bg:Vt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),FP=ar(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ze(r,`${t}.700`),bg:Ze(r,`${t}.100`)}}}}),DP=ar(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[it.variable]:"colors.gray.600",_dark:{[it.variable]:"inherit"},_selected:{[it.variable]:"colors.white",[Vt.variable]:`colors.${t}.600`,_dark:{[it.variable]:"colors.gray.800",[Vt.variable]:`colors.${t}.300`}},color:it.reference,bg:Vt.reference}}}),jP=ar({}),LP={line:RP,enclosed:MP,"enclosed-colored":IP,"soft-rounded":FP,"solid-rounded":DP,unstyled:jP},BP=_P({baseStyle:zP,sizes:AP,variants:LP,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),we=u_("badge",["bg","color","shadow"]),VP={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:we.bg.reference,color:we.color.reference,boxShadow:we.shadow.reference},OP=e=>{const{colorScheme:t,theme:r}=e,n=Lo(`${t}.500`,.6)(r);return{[we.bg.variable]:`colors.${t}.500`,[we.color.variable]:"colors.white",_dark:{[we.bg.variable]:n,[we.color.variable]:"colors.whiteAlpha.800"}}},NP=e=>{const{colorScheme:t,theme:r}=e,n=Lo(`${t}.200`,.16)(r);return{[we.bg.variable]:`colors.${t}.100`,[we.color.variable]:`colors.${t}.800`,_dark:{[we.bg.variable]:n,[we.color.variable]:`colors.${t}.200`}}},WP=e=>{const{colorScheme:t,theme:r}=e,n=Lo(`${t}.200`,.8)(r);return{[we.color.variable]:`colors.${t}.500`,_dark:{[we.color.variable]:n},[we.shadow.variable]:`inset 0 0 0px 1px ${we.color.reference}`}},UP={solid:OP,subtle:NP,outline:WP},Ri={baseStyle:VP,variants:UP,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:HP,definePartsStyle:Rn}=ae(IT.keys),Xm=L("tag-bg"),Qm=L("tag-color"),uc=L("tag-shadow"),As=L("tag-min-height"),Rs=L("tag-min-width"),Ms=L("tag-font-size"),Is=L("tag-padding-inline"),GP={fontWeight:"medium",lineHeight:1.2,outline:0,[Qm.variable]:we.color.reference,[Xm.variable]:we.bg.reference,[uc.variable]:we.shadow.reference,color:Qm.reference,bg:Xm.reference,boxShadow:uc.reference,borderRadius:"md",minH:As.reference,minW:Rs.reference,fontSize:Ms.reference,px:Is.reference,_focusVisible:{[uc.variable]:"shadows.outline"}},KP={lineHeight:1.2,overflow:"visible"},YP={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}},XP=Rn({container:GP,label:KP,closeButton:YP}),QP={sm:Rn({container:{[As.variable]:"sizes.5",[Rs.variable]:"sizes.5",[Ms.variable]:"fontSizes.xs",[Is.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Rn({container:{[As.variable]:"sizes.6",[Rs.variable]:"sizes.6",[Ms.variable]:"fontSizes.sm",[Is.variable]:"space.2"}}),lg:Rn({container:{[As.variable]:"sizes.8",[Rs.variable]:"sizes.8",[Ms.variable]:"fontSizes.md",[Is.variable]:"space.3"}})},qP={subtle:Rn(e=>{var t;return{container:(t=Ri.variants)==null?void 0:t.subtle(e)}}),solid:Rn(e=>{var t;return{container:(t=Ri.variants)==null?void 0:t.solid(e)}}),outline:Rn(e=>{var t;return{container:(t=Ri.variants)==null?void 0:t.outline(e)}})},ZP=HP({variants:qP,baseStyle:XP,sizes:QP,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:yr,defineMultiStyleConfig:JP}=ae(bT.keys),uo=L("input-height"),co=L("input-font-size"),fo=L("input-padding"),po=L("input-border-radius"),e5=yr({addon:{height:uo.reference,fontSize:co.reference,px:fo.reference,borderRadius:po.reference},field:{width:"100%",height:uo.reference,fontSize:co.reference,px:fo.reference,borderRadius:po.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Dr={lg:{[co.variable]:"fontSizes.lg",[fo.variable]:"space.4",[po.variable]:"radii.md",[uo.variable]:"sizes.12"},md:{[co.variable]:"fontSizes.md",[fo.variable]:"space.4",[po.variable]:"radii.md",[uo.variable]:"sizes.10"},sm:{[co.variable]:"fontSizes.sm",[fo.variable]:"space.3",[po.variable]:"radii.sm",[uo.variable]:"sizes.8"},xs:{[co.variable]:"fontSizes.xs",[fo.variable]:"space.2",[po.variable]:"radii.sm",[uo.variable]:"sizes.6"}},t5={lg:yr({field:Dr.lg,group:Dr.lg}),md:yr({field:Dr.md,group:Dr.md}),sm:yr({field:Dr.sm,group:Dr.sm}),xs:yr({field:Dr.xs,group:Dr.xs})};function vp(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:r||j("red.500","red.300")(e)}}var r5=yr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=vp(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:Ze(t,n),boxShadow:`0 0 0 1px ${Ze(t,n)}`},_focusVisible:{zIndex:1,borderColor:Ze(t,r),boxShadow:`0 0 0 1px ${Ze(t,r)}`}},addon:{border:"1px solid",borderColor:j("inherit","whiteAlpha.50")(e),bg:j("gray.100","whiteAlpha.300")(e)}}}),n5=yr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=vp(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:Ze(t,n)},_focusVisible:{bg:"transparent",borderColor:Ze(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e)}}}),o5=yr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=vp(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ze(t,n),boxShadow:`0px 1px 0px 0px ${Ze(t,n)}`},_focusVisible:{borderColor:Ze(t,r),boxShadow:`0px 1px 0px 0px ${Ze(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),i5=yr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),a5={outline:r5,filled:n5,flushed:o5,unstyled:i5},Z=JP({baseStyle:e5,sizes:t5,variants:a5,defaultProps:{size:"md",variant:"outline"}}),qm,s5={...(qm=Z.baseStyle)==null?void 0:qm.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Zm,Jm,l5={outline:e=>{var t,r;return(r=(t=Z.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=Z.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=Z.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(Jm=(Zm=Z.variants)==null?void 0:Zm.unstyled.field)!=null?Jm:{}},e0,t0,r0,n0,o0,i0,a0,s0,u5={xs:(t0=(e0=Z.sizes)==null?void 0:e0.xs.field)!=null?t0:{},sm:(n0=(r0=Z.sizes)==null?void 0:r0.sm.field)!=null?n0:{},md:(i0=(o0=Z.sizes)==null?void 0:o0.md.field)!=null?i0:{},lg:(s0=(a0=Z.sizes)==null?void 0:a0.lg.field)!=null?s0:{}},c5={baseStyle:s5,sizes:u5,variants:l5,defaultProps:{size:"md",variant:"outline"}},is=Ie("tooltip-bg"),cc=Ie("tooltip-fg"),d5=Ie("popper-arrow-bg"),f5={bg:is.reference,color:cc.reference,[is.variable]:"colors.gray.700",[cc.variable]:"colors.whiteAlpha.900",_dark:{[is.variable]:"colors.gray.300",[cc.variable]:"colors.gray.900"},[d5.variable]:is.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},p5={baseStyle:f5},{defineMultiStyleConfig:h5,definePartsStyle:Si}=ae(TT.keys),m5=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=j(Um(),Um("1rem","rgba(0,0,0,0.1)"))(e),a=j(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}var tP=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function rP(e){const t=tP();return!e||qT(e)?t:e.string&&e.colors?oP(e.string,e.colors):e.string&&!e.colors?nP(e.string):e.colors&&!e.string?iP(e.colors):t}function nP(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function oP(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function gh(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function T1(e){return ir(e)&&e.reference?e.reference:String(e)}var lu=(e,...t)=>t.map(T1).join(` ${e} `).replace(/calc/g,""),Hm=(...e)=>`calc(${lu("+",...e)})`,Gm=(...e)=>`calc(${lu("-",...e)})`,Bd=(...e)=>`calc(${lu("*",...e)})`,Km=(...e)=>`calc(${lu("/",...e)})`,Ym=e=>{const t=T1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Bd(t,-1)},mr=Object.assign(e=>({add:(...t)=>mr(Hm(e,...t)),subtract:(...t)=>mr(Gm(e,...t)),multiply:(...t)=>mr(Bd(e,...t)),divide:(...t)=>mr(Km(e,...t)),negate:()=>mr(Ym(e)),toString:()=>e.toString()}),{add:Hm,subtract:Gm,multiply:Bd,divide:Km,negate:Ym});function aP(e){return!Number.isInteger(parseFloat(e.toString()))}function sP(e,t="-"){return e.replace(/\s+/g,t)}function P1(e){const t=sP(e.toString());return t.includes("\\.")?e:aP(e)?t.replace(".","\\."):e}function lP(e,t=""){return[t,P1(e)].filter(Boolean).join("-")}function uP(e,t){return`var(${P1(e)}${t?`, ${t}`:""})`}function cP(e,t=""){return`--${lP(e,t)}`}function Ie(e,t){const r=cP(e,t==null?void 0:t.prefix);return{variable:r,reference:uP(r,dP(t==null?void 0:t.fallback))}}function dP(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:fP,definePartsStyle:As}=ae(RT.keys),Mi=Ie("switch-track-width"),An=Ie("switch-track-height"),lc=Ie("switch-track-diff"),hP=mr.subtract(Mi,An),Vd=Ie("switch-thumb-x"),li=Ie("switch-bg"),pP=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Mi.reference],height:[An.reference],transitionProperty:"common",transitionDuration:"fast",[li.variable]:"colors.gray.300",_dark:{[li.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[li.variable]:`colors.${t}.500`,_dark:{[li.variable]:`colors.${t}.200`}},bg:li.reference}},mP={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[An.reference],height:[An.reference],_checked:{transform:`translateX(${Vd.reference})`}},gP=As(e=>({container:{[lc.variable]:hP,[Vd.variable]:lc.reference,_rtl:{[Vd.variable]:mr(lc).negate().toString()}},track:pP(e),thumb:mP})),vP={sm:As({container:{[Mi.variable]:"1.375rem",[An.variable]:"sizes.3"}}),md:As({container:{[Mi.variable]:"1.875rem",[An.variable]:"sizes.4"}}),lg:As({container:{[Mi.variable]:"2.875rem",[An.variable]:"sizes.6"}})},yP=fP({baseStyle:gP,sizes:vP,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:SP,definePartsStyle:To}=ae(MT.keys),bP=To({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"}}),vl={"&[data-is-numeric=true]":{textAlign:"end"}},xP=To(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...vl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...vl},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),wP=To(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...vl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...vl},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}}}}}}),kP={simple:xP,striped:wP,unstyled:{}},CP={sm:To({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:To({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:To({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},_P=SP({baseStyle:bP,variants:kP,sizes:CP,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),it=L("tabs-color"),Vt=L("tabs-bg"),is=L("tabs-border-color"),{defineMultiStyleConfig:TP,definePartsStyle:ar}=ae(IT.keys),PP=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},EP=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}}},$P=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},zP={p:4},AP=ar(e=>({root:PP(e),tab:EP(e),tablist:$P(e),tabpanel:zP})),RP={sm:ar({tab:{py:1,px:4,fontSize:"sm"}}),md:ar({tab:{fontSize:"md",py:2,px:4}}),lg:ar({tab:{fontSize:"lg",py:3,px:4}})},MP=ar(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[it.variable]:`colors.${t}.600`,_dark:{[it.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Vt.variable]:"colors.gray.200",_dark:{[Vt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:it.reference,bg:Vt.reference}}}),IP=ar(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[is.variable]:"transparent",_selected:{[it.variable]:`colors.${t}.600`,[is.variable]:"colors.white",_dark:{[it.variable]:`colors.${t}.300`,[is.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:is.reference},color:it.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),FP=ar(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Vt.variable]:"colors.gray.50",_dark:{[Vt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Vt.variable]:"colors.white",[it.variable]:`colors.${t}.600`,_dark:{[Vt.variable]:"colors.gray.800",[it.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:it.reference,bg:Vt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),DP=ar(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ze(r,`${t}.700`),bg:Ze(r,`${t}.100`)}}}}),jP=ar(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[it.variable]:"colors.gray.600",_dark:{[it.variable]:"inherit"},_selected:{[it.variable]:"colors.white",[Vt.variable]:`colors.${t}.600`,_dark:{[it.variable]:"colors.gray.800",[Vt.variable]:`colors.${t}.300`}},color:it.reference,bg:Vt.reference}}}),LP=ar({}),BP={line:MP,enclosed:IP,"enclosed-colored":FP,"soft-rounded":DP,"solid-rounded":jP,unstyled:LP},VP=TP({baseStyle:AP,sizes:RP,variants:BP,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),we=c_("badge",["bg","color","shadow"]),OP={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:we.bg.reference,color:we.color.reference,boxShadow:we.shadow.reference},NP=e=>{const{colorScheme:t,theme:r}=e,n=Bo(`${t}.500`,.6)(r);return{[we.bg.variable]:`colors.${t}.500`,[we.color.variable]:"colors.white",_dark:{[we.bg.variable]:n,[we.color.variable]:"colors.whiteAlpha.800"}}},WP=e=>{const{colorScheme:t,theme:r}=e,n=Bo(`${t}.200`,.16)(r);return{[we.bg.variable]:`colors.${t}.100`,[we.color.variable]:`colors.${t}.800`,_dark:{[we.bg.variable]:n,[we.color.variable]:`colors.${t}.200`}}},UP=e=>{const{colorScheme:t,theme:r}=e,n=Bo(`${t}.200`,.8)(r);return{[we.color.variable]:`colors.${t}.500`,_dark:{[we.color.variable]:n},[we.shadow.variable]:`inset 0 0 0px 1px ${we.color.reference}`}},HP={solid:NP,subtle:WP,outline:UP},Ii={baseStyle:OP,variants:HP,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:GP,definePartsStyle:Rn}=ae(FT.keys),Xm=L("tag-bg"),Qm=L("tag-color"),uc=L("tag-shadow"),Rs=L("tag-min-height"),Ms=L("tag-min-width"),Is=L("tag-font-size"),Fs=L("tag-padding-inline"),KP={fontWeight:"medium",lineHeight:1.2,outline:0,[Qm.variable]:we.color.reference,[Xm.variable]:we.bg.reference,[uc.variable]:we.shadow.reference,color:Qm.reference,bg:Xm.reference,boxShadow:uc.reference,borderRadius:"md",minH:Rs.reference,minW:Ms.reference,fontSize:Is.reference,px:Fs.reference,_focusVisible:{[uc.variable]:"shadows.outline"}},YP={lineHeight:1.2,overflow:"visible"},XP={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}},QP=Rn({container:KP,label:YP,closeButton:XP}),qP={sm:Rn({container:{[Rs.variable]:"sizes.5",[Ms.variable]:"sizes.5",[Is.variable]:"fontSizes.xs",[Fs.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Rn({container:{[Rs.variable]:"sizes.6",[Ms.variable]:"sizes.6",[Is.variable]:"fontSizes.sm",[Fs.variable]:"space.2"}}),lg:Rn({container:{[Rs.variable]:"sizes.8",[Ms.variable]:"sizes.8",[Is.variable]:"fontSizes.md",[Fs.variable]:"space.3"}})},ZP={subtle:Rn(e=>{var t;return{container:(t=Ii.variants)==null?void 0:t.subtle(e)}}),solid:Rn(e=>{var t;return{container:(t=Ii.variants)==null?void 0:t.solid(e)}}),outline:Rn(e=>{var t;return{container:(t=Ii.variants)==null?void 0:t.outline(e)}})},JP=GP({variants:ZP,baseStyle:QP,sizes:qP,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:yr,defineMultiStyleConfig:e5}=ae(xT.keys),uo=L("input-height"),co=L("input-font-size"),fo=L("input-padding"),ho=L("input-border-radius"),t5=yr({addon:{height:uo.reference,fontSize:co.reference,px:fo.reference,borderRadius:ho.reference},field:{width:"100%",height:uo.reference,fontSize:co.reference,px:fo.reference,borderRadius:ho.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Dr={lg:{[co.variable]:"fontSizes.lg",[fo.variable]:"space.4",[ho.variable]:"radii.md",[uo.variable]:"sizes.12"},md:{[co.variable]:"fontSizes.md",[fo.variable]:"space.4",[ho.variable]:"radii.md",[uo.variable]:"sizes.10"},sm:{[co.variable]:"fontSizes.sm",[fo.variable]:"space.3",[ho.variable]:"radii.sm",[uo.variable]:"sizes.8"},xs:{[co.variable]:"fontSizes.xs",[fo.variable]:"space.2",[ho.variable]:"radii.sm",[uo.variable]:"sizes.6"}},r5={lg:yr({field:Dr.lg,group:Dr.lg}),md:yr({field:Dr.md,group:Dr.md}),sm:yr({field:Dr.sm,group:Dr.sm}),xs:yr({field:Dr.xs,group:Dr.xs})};function vh(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:r||j("red.500","red.300")(e)}}var n5=yr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=vh(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:Ze(t,n),boxShadow:`0 0 0 1px ${Ze(t,n)}`},_focusVisible:{zIndex:1,borderColor:Ze(t,r),boxShadow:`0 0 0 1px ${Ze(t,r)}`}},addon:{border:"1px solid",borderColor:j("inherit","whiteAlpha.50")(e),bg:j("gray.100","whiteAlpha.300")(e)}}}),o5=yr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=vh(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:Ze(t,n)},_focusVisible:{bg:"transparent",borderColor:Ze(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e)}}}),i5=yr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=vh(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ze(t,n),boxShadow:`0px 1px 0px 0px ${Ze(t,n)}`},_focusVisible:{borderColor:Ze(t,r),boxShadow:`0px 1px 0px 0px ${Ze(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),a5=yr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),s5={outline:n5,filled:o5,flushed:i5,unstyled:a5},Z=e5({baseStyle:t5,sizes:r5,variants:s5,defaultProps:{size:"md",variant:"outline"}}),qm,l5={...(qm=Z.baseStyle)==null?void 0:qm.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Zm,Jm,u5={outline:e=>{var t,r;return(r=(t=Z.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=Z.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=Z.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(Jm=(Zm=Z.variants)==null?void 0:Zm.unstyled.field)!=null?Jm:{}},e0,t0,r0,n0,o0,i0,a0,s0,c5={xs:(t0=(e0=Z.sizes)==null?void 0:e0.xs.field)!=null?t0:{},sm:(n0=(r0=Z.sizes)==null?void 0:r0.sm.field)!=null?n0:{},md:(i0=(o0=Z.sizes)==null?void 0:o0.md.field)!=null?i0:{},lg:(s0=(a0=Z.sizes)==null?void 0:a0.lg.field)!=null?s0:{}},d5={baseStyle:l5,sizes:c5,variants:u5,defaultProps:{size:"md",variant:"outline"}},as=Ie("tooltip-bg"),cc=Ie("tooltip-fg"),f5=Ie("popper-arrow-bg"),h5={bg:as.reference,color:cc.reference,[as.variable]:"colors.gray.700",[cc.variable]:"colors.whiteAlpha.900",_dark:{[as.variable]:"colors.gray.300",[cc.variable]:"colors.gray.900"},[f5.variable]:as.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},p5={baseStyle:h5},{defineMultiStyleConfig:m5,definePartsStyle:bi}=ae(PT.keys),g5=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=j(Um(),Um("1rem","rgba(0,0,0,0.1)"))(e),a=j(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( to right, transparent 0%, ${Ze(r,a)} 50%, transparent 100% - )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},g5={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},v5=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),y5=e=>({transitionProperty:"common",transitionDuration:"slow",...m5(e)}),S5=Si(e=>({label:g5,filledTrack:y5(e),track:v5(e)})),b5={xs:Si({track:{h:"1"}}),sm:Si({track:{h:"2"}}),md:Si({track:{h:"3"}}),lg:Si({track:{h:"4"}})},x5=h5({sizes:b5,baseStyle:S5,defaultProps:{size:"md",colorScheme:"blue"}}),w5=e=>typeof e=="function";function et(e,...t){return w5(e)?e(...t):e}var{definePartsStyle:Fs,defineMultiStyleConfig:k5}=ae(mT.keys),Mi=L("checkbox-size"),C5=e=>{const{colorScheme:t}=e;return{w:Mi.reference,h:Mi.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)}}},_5={_disabled:{cursor:"not-allowed"}},T5={userSelect:"none",_disabled:{opacity:.4}},P5={transitionProperty:"transform",transitionDuration:"normal"},E5=Fs(e=>({icon:P5,container:_5,control:et(C5,e),label:T5})),$5={sm:Fs({control:{[Mi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Fs({control:{[Mi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Fs({control:{[Mi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},yl=k5({baseStyle:E5,sizes:$5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:z5,definePartsStyle:Ds}=ae(PT.keys),A5=e=>{var t;const r=(t=et(yl.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},R5=Ds(e=>{var t,r,n,o;return{label:(r=(t=yl).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=yl).baseStyle)==null?void 0:o.call(n,e).container,control:A5(e)}}),M5={md:Ds({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ds({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ds({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},I5=z5({baseStyle:R5,sizes:M5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:F5,definePartsStyle:D5}=ae(ET.keys),as=L("select-bg"),l0,j5={...(l0=Z.baseStyle)==null?void 0:l0.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:as.reference,[as.variable]:"colors.white",_dark:{[as.variable]:"colors.gray.700"},"> option, > optgroup":{bg:as.reference}},L5={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},B5=D5({field:j5,icon:L5}),ss={paddingInlineEnd:"8"},u0,c0,d0,f0,p0,h0,m0,g0,V5={lg:{...(u0=Z.sizes)==null?void 0:u0.lg,field:{...(c0=Z.sizes)==null?void 0:c0.lg.field,...ss}},md:{...(d0=Z.sizes)==null?void 0:d0.md,field:{...(f0=Z.sizes)==null?void 0:f0.md.field,...ss}},sm:{...(p0=Z.sizes)==null?void 0:p0.sm,field:{...(h0=Z.sizes)==null?void 0:h0.sm.field,...ss}},xs:{...(m0=Z.sizes)==null?void 0:m0.xs,field:{...(g0=Z.sizes)==null?void 0:g0.xs.field,...ss},icon:{insetEnd:"1"}}},O5=F5({baseStyle:B5,sizes:V5,variants:Z.variants,defaultProps:Z.defaultProps}),dc=L("skeleton-start-color"),fc=L("skeleton-end-color"),N5={[dc.variable]:"colors.gray.100",[fc.variable]:"colors.gray.400",_dark:{[dc.variable]:"colors.gray.800",[fc.variable]:"colors.gray.600"},background:dc.reference,borderColor:fc.reference,opacity:.7,borderRadius:"sm"},W5={baseStyle:N5},pc=L("skip-link-bg"),U5={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[pc.variable]:"colors.white",_dark:{[pc.variable]:"colors.gray.700"},bg:pc.reference}},H5={baseStyle:U5},{defineMultiStyleConfig:G5,definePartsStyle:uu}=ae($T.keys),ca=L("slider-thumb-size"),da=L("slider-track-size"),Ur=L("slider-bg"),K5=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...gp({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Y5=e=>({...gp({orientation:e.orientation,horizontal:{h:da.reference},vertical:{w:da.reference}}),overflow:"hidden",borderRadius:"sm",[Ur.variable]:"colors.gray.200",_dark:{[Ur.variable]:"colors.whiteAlpha.200"},_disabled:{[Ur.variable]:"colors.gray.300",_dark:{[Ur.variable]:"colors.whiteAlpha.300"}},bg:Ur.reference}),X5=e=>{const{orientation:t}=e;return{...gp({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:ca.reference,h:ca.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"}}},Q5=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ur.variable]:`colors.${t}.500`,_dark:{[Ur.variable]:`colors.${t}.200`},bg:Ur.reference}},q5=uu(e=>({container:K5(e),track:Y5(e),thumb:X5(e),filledTrack:Q5(e)})),Z5=uu({container:{[ca.variable]:"sizes.4",[da.variable]:"sizes.1"}}),J5=uu({container:{[ca.variable]:"sizes.3.5",[da.variable]:"sizes.1"}}),eE=uu({container:{[ca.variable]:"sizes.2.5",[da.variable]:"sizes.0.5"}}),tE={lg:Z5,md:J5,sm:eE},rE=G5({baseStyle:q5,sizes:tE,defaultProps:{size:"md",colorScheme:"blue"}}),kn=Ie("spinner-size"),nE={width:[kn.reference],height:[kn.reference]},oE={xs:{[kn.variable]:"sizes.3"},sm:{[kn.variable]:"sizes.4"},md:{[kn.variable]:"sizes.6"},lg:{[kn.variable]:"sizes.8"},xl:{[kn.variable]:"sizes.12"}},iE={baseStyle:nE,sizes:oE,defaultProps:{size:"md"}},{defineMultiStyleConfig:aE,definePartsStyle:P1}=ae(zT.keys),sE={fontWeight:"medium"},lE={opacity:.8,marginBottom:"2"},uE={verticalAlign:"baseline",fontWeight:"semibold"},cE={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},dE=P1({container:{},label:sE,helpText:lE,number:uE,icon:cE}),fE={md:P1({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},pE=aE({baseStyle:dE,sizes:fE,defaultProps:{size:"md"}}),hc=L("kbd-bg"),hE={[hc.variable]:"colors.gray.100",_dark:{[hc.variable]:"colors.whiteAlpha.100"},bg:hc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},mE={baseStyle:hE},gE={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},vE={baseStyle:gE},{defineMultiStyleConfig:yE,definePartsStyle:SE}=ae(xT.keys),bE={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},xE=SE({icon:bE}),wE=yE({baseStyle:xE}),{defineMultiStyleConfig:kE,definePartsStyle:CE}=ae(wT.keys),qt=L("menu-bg"),mc=L("menu-shadow"),_E={[qt.variable]:"#fff",[mc.variable]:"shadows.sm",_dark:{[qt.variable]:"colors.gray.700",[mc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:qt.reference,boxShadow:mc.reference},TE={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[qt.variable]:"colors.gray.100",_dark:{[qt.variable]:"colors.whiteAlpha.100"}},_active:{[qt.variable]:"colors.gray.200",_dark:{[qt.variable]:"colors.whiteAlpha.200"}},_expanded:{[qt.variable]:"colors.gray.100",_dark:{[qt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:qt.reference},PE={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},EE={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},$E={opacity:.6},zE={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},AE={transitionProperty:"common",transitionDuration:"normal"},RE=CE({button:AE,list:_E,item:TE,groupTitle:PE,icon:EE,command:$E,divider:zE}),ME=kE({baseStyle:RE}),{defineMultiStyleConfig:IE,definePartsStyle:Od}=ae(kT.keys),gc=L("modal-bg"),vc=L("modal-shadow"),FE={bg:"blackAlpha.600",zIndex:"modal"},DE=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},jE=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[gc.variable]:"colors.white",[vc.variable]:"shadows.lg",_dark:{[gc.variable]:"colors.gray.700",[vc.variable]:"shadows.dark-lg"},bg:gc.reference,boxShadow:vc.reference}},LE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},BE={position:"absolute",top:"2",insetEnd:"3"},VE=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},OE={px:"6",py:"4"},NE=Od(e=>({overlay:FE,dialogContainer:et(DE,e),dialog:et(jE,e),header:LE,closeButton:BE,body:et(VE,e),footer:OE}));function Dt(e){return Od(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var WE={xs:Dt("xs"),sm:Dt("sm"),md:Dt("md"),lg:Dt("lg"),xl:Dt("xl"),"2xl":Dt("2xl"),"3xl":Dt("3xl"),"4xl":Dt("4xl"),"5xl":Dt("5xl"),"6xl":Dt("6xl"),full:Dt("full")},UE=IE({baseStyle:NE,sizes:WE,defaultProps:{size:"md"}}),{defineMultiStyleConfig:HE,definePartsStyle:E1}=ae(CT.keys),yp=Ie("number-input-stepper-width"),$1=Ie("number-input-input-padding"),GE=mr(yp).add("0.5rem").toString(),yc=Ie("number-input-bg"),Sc=Ie("number-input-color"),bc=Ie("number-input-border-color"),KE={[yp.variable]:"sizes.6",[$1.variable]:GE},YE=e=>{var t,r;return(r=(t=et(Z.baseStyle,e))==null?void 0:t.field)!=null?r:{}},XE={width:yp.reference},QE={borderStart:"1px solid",borderStartColor:bc.reference,color:Sc.reference,bg:yc.reference,[Sc.variable]:"colors.chakra-body-text",[bc.variable]:"colors.chakra-border-color",_dark:{[Sc.variable]:"colors.whiteAlpha.800",[bc.variable]:"colors.whiteAlpha.300"},_active:{[yc.variable]:"colors.gray.200",_dark:{[yc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},qE=E1(e=>{var t;return{root:KE,field:(t=et(YE,e))!=null?t:{},stepperGroup:XE,stepper:QE}});function ls(e){var t,r,n;const o=(t=Z.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=w1.fontSizes[a];return E1({field:{...o.field,paddingInlineEnd:$1.reference,verticalAlign:"top"},stepper:{fontSize:mr(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var ZE={xs:ls("xs"),sm:ls("sm"),md:ls("md"),lg:ls("lg")},JE=HE({baseStyle:qE,sizes:ZE,variants:Z.variants,defaultProps:Z.defaultProps}),v0,e$={...(v0=Z.baseStyle)==null?void 0:v0.field,textAlign:"center"},t$={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"}},y0,S0,r$={outline:e=>{var t,r,n;return(n=(r=et((t=Z.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=et((t=Z.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=et((t=Z.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(S0=(y0=Z.variants)==null?void 0:y0.unstyled.field)!=null?S0:{}},n$={baseStyle:e$,sizes:t$,variants:r$,defaultProps:Z.defaultProps},{defineMultiStyleConfig:o$,definePartsStyle:i$}=ae(_T.keys),us=Ie("popper-bg"),a$=Ie("popper-arrow-bg"),b0=Ie("popper-arrow-shadow-color"),s$={zIndex:10},l$={[us.variable]:"colors.white",bg:us.reference,[a$.variable]:us.reference,[b0.variable]:"colors.gray.200",_dark:{[us.variable]:"colors.gray.700",[b0.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},u$={px:3,py:2,borderBottomWidth:"1px"},c$={px:3,py:2},d$={px:3,py:2,borderTopWidth:"1px"},f$={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},p$=i$({popper:s$,content:l$,header:u$,body:c$,footer:d$,closeButton:f$}),h$=o$({baseStyle:p$}),{definePartsStyle:Nd,defineMultiStyleConfig:m$}=ae(gT.keys),xc=L("drawer-bg"),wc=L("drawer-box-shadow");function Yn(e){return Nd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var g$={bg:"blackAlpha.600",zIndex:"modal"},v$={display:"flex",zIndex:"modal",justifyContent:"center"},y$=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[xc.variable]:"colors.white",[wc.variable]:"shadows.lg",_dark:{[xc.variable]:"colors.gray.700",[wc.variable]:"shadows.dark-lg"},bg:xc.reference,boxShadow:wc.reference}},S$={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},b$={position:"absolute",top:"2",insetEnd:"3"},x$={px:"6",py:"2",flex:"1",overflow:"auto"},w$={px:"6",py:"4"},k$=Nd(e=>({overlay:g$,dialogContainer:v$,dialog:et(y$,e),header:S$,closeButton:b$,body:x$,footer:w$})),C$={xs:Yn("xs"),sm:Yn("md"),md:Yn("lg"),lg:Yn("2xl"),xl:Yn("4xl"),full:Yn("full")},_$=m$({baseStyle:k$,sizes:C$,defaultProps:{size:"xs"}}),{definePartsStyle:T$,defineMultiStyleConfig:P$}=ae(vT.keys),E$={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},$$={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},z$={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},A$=T$({preview:E$,input:$$,textarea:z$}),R$=P$({baseStyle:A$}),{definePartsStyle:M$,defineMultiStyleConfig:I$}=ae(yT.keys),To=L("form-control-color"),F$={marginStart:"1",[To.variable]:"colors.red.500",_dark:{[To.variable]:"colors.red.300"},color:To.reference},D$={mt:"2",[To.variable]:"colors.gray.600",_dark:{[To.variable]:"colors.whiteAlpha.600"},color:To.reference,lineHeight:"normal",fontSize:"sm"},j$=M$({container:{width:"100%",position:"relative"},requiredIndicator:F$,helperText:D$}),L$=I$({baseStyle:j$}),{definePartsStyle:B$,defineMultiStyleConfig:V$}=ae(ST.keys),Po=L("form-error-color"),O$={[Po.variable]:"colors.red.500",_dark:{[Po.variable]:"colors.red.300"},color:Po.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},N$={marginEnd:"0.5em",[Po.variable]:"colors.red.500",_dark:{[Po.variable]:"colors.red.300"},color:Po.reference},W$=B$({text:O$,icon:N$}),U$=V$({baseStyle:W$}),H$={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},G$={baseStyle:H$},K$={fontFamily:"heading",fontWeight:"bold"},Y$={"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}},X$={baseStyle:K$,sizes:Y$,defaultProps:{size:"xl"}},{defineMultiStyleConfig:Q$,definePartsStyle:q$}=ae(hT.keys),kc=L("breadcrumb-link-decor"),Z$={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:kc.reference,[kc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[kc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},J$=q$({link:Z$}),e3=Q$({baseStyle:J$}),t3={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"}}},z1=e=>{const{colorScheme:t,theme:r}=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 n=Lo(`${t}.200`,.12)(r),o=Lo(`${t}.200`,.24)(r);return{color:j(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:j(`${t}.50`,n)(e)},_active:{bg:j(`${t}.100`,o)(e)}}},r3=e=>{const{colorScheme:t}=e,r=j("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"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"},...et(z1,e)}},n3={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},o3=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=j("gray.100","whiteAlpha.200")(e);return{bg:l,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=(t=n3[r])!=null?t:{},s=j(n,`${r}.200`)(e);return{bg:s,color:j(o,"gray.800")(e),_hover:{bg:j(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:j(a,`${r}.400`)(e)}}},i3=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)}}},a3={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},s3={ghost:z1,outline:r3,solid:o3,link:i3,unstyled:a3},l3={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"}},u3={baseStyle:t3,variants:s3,sizes:l3,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Mn,defineMultiStyleConfig:c3}=ae(FT.keys),Sl=L("card-bg"),xr=L("card-padding"),A1=L("card-shadow"),js=L("card-radius"),R1=L("card-border-width","0"),M1=L("card-border-color"),d3=Mn({container:{[Sl.variable]:"colors.chakra-body-bg",backgroundColor:Sl.reference,boxShadow:A1.reference,borderRadius:js.reference,color:"chakra-body-text",borderWidth:R1.reference,borderColor:M1.reference},body:{padding:xr.reference,flex:"1 1 0%"},header:{padding:xr.reference},footer:{padding:xr.reference}}),f3={sm:Mn({container:{[js.variable]:"radii.base",[xr.variable]:"space.3"}}),md:Mn({container:{[js.variable]:"radii.md",[xr.variable]:"space.5"}}),lg:Mn({container:{[js.variable]:"radii.xl",[xr.variable]:"space.7"}})},p3={elevated:Mn({container:{[A1.variable]:"shadows.base",_dark:{[Sl.variable]:"colors.gray.700"}}}),outline:Mn({container:{[R1.variable]:"1px",[M1.variable]:"colors.chakra-border-color"}}),filled:Mn({container:{[Sl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[xr.variable]:0},header:{[xr.variable]:0},footer:{[xr.variable]:0}}},h3=c3({baseStyle:d3,variants:p3,sizes:f3,defaultProps:{variant:"elevated",size:"md"}}),Ii=Ie("close-button-size"),li=Ie("close-button-bg"),m3={w:[Ii.reference],h:[Ii.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[li.variable]:"colors.blackAlpha.100",_dark:{[li.variable]:"colors.whiteAlpha.100"}},_active:{[li.variable]:"colors.blackAlpha.200",_dark:{[li.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:li.reference},g3={lg:{[Ii.variable]:"sizes.10",fontSize:"md"},md:{[Ii.variable]:"sizes.8",fontSize:"xs"},sm:{[Ii.variable]:"sizes.6",fontSize:"2xs"}},v3={baseStyle:m3,sizes:g3,defaultProps:{size:"md"}},{variants:y3,defaultProps:S3}=Ri,b3={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:we.bg.reference,color:we.color.reference,boxShadow:we.shadow.reference},x3={baseStyle:b3,variants:y3,defaultProps:S3},w3={w:"100%",mx:"auto",maxW:"prose",px:"4"},k3={baseStyle:w3},C3={opacity:.6,borderColor:"inherit"},_3={borderStyle:"solid"},T3={borderStyle:"dashed"},P3={solid:_3,dashed:T3},E3={baseStyle:C3,variants:P3,defaultProps:{variant:"solid"}},{definePartsStyle:$3,defineMultiStyleConfig:z3}=ae(dT.keys),A3={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},R3={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},M3={pt:"2",px:"4",pb:"5"},I3={fontSize:"1.25em"},F3=$3({container:A3,button:R3,panel:M3,icon:I3}),D3=z3({baseStyle:F3}),{definePartsStyle:wa,defineMultiStyleConfig:j3}=ae(fT.keys),yt=L("alert-fg"),Er=L("alert-bg"),L3=wa({container:{bg:Er.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:yt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:yt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Sp(e){const{theme:t,colorScheme:r}=e,n=Lo(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var B3=wa(e=>{const{colorScheme:t}=e,r=Sp(e);return{container:{[yt.variable]:`colors.${t}.600`,[Er.variable]:r.light,_dark:{[yt.variable]:`colors.${t}.200`,[Er.variable]:r.dark}}}}),V3=wa(e=>{const{colorScheme:t}=e,r=Sp(e);return{container:{[yt.variable]:`colors.${t}.600`,[Er.variable]:r.light,_dark:{[yt.variable]:`colors.${t}.200`,[Er.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:yt.reference}}}),O3=wa(e=>{const{colorScheme:t}=e,r=Sp(e);return{container:{[yt.variable]:`colors.${t}.600`,[Er.variable]:r.light,_dark:{[yt.variable]:`colors.${t}.200`,[Er.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:yt.reference}}}),N3=wa(e=>{const{colorScheme:t}=e;return{container:{[yt.variable]:"colors.white",[Er.variable]:`colors.${t}.600`,_dark:{[yt.variable]:"colors.gray.900",[Er.variable]:`colors.${t}.200`},color:yt.reference}}}),W3={subtle:B3,"left-accent":V3,"top-accent":O3,solid:N3},U3=j3({baseStyle:L3,variants:W3,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:I1,defineMultiStyleConfig:H3}=ae(pT.keys),Eo=L("avatar-border-color"),Fi=L("avatar-bg"),fa=L("avatar-font-size"),Bo=L("avatar-size"),G3={borderRadius:"full",border:"0.2em solid",borderColor:Eo.reference,[Eo.variable]:"white",_dark:{[Eo.variable]:"colors.gray.800"}},K3={bg:Fi.reference,fontSize:fa.reference,width:Bo.reference,height:Bo.reference,lineHeight:"1",[Fi.variable]:"colors.gray.200",_dark:{[Fi.variable]:"colors.whiteAlpha.400"}},Y3=e=>{const{name:t,theme:r}=e,n=t?tP({string:t}):"colors.gray.400",o=JT(n)(r);let i="white";return o||(i="gray.800"),{bg:Fi.reference,fontSize:fa.reference,color:i,borderColor:Eo.reference,verticalAlign:"top",width:Bo.reference,height:Bo.reference,"&:not([data-loaded])":{[Fi.variable]:n},[Eo.variable]:"colors.white",_dark:{[Eo.variable]:"colors.gray.800"}}},X3={fontSize:fa.reference,lineHeight:"1"},Q3=I1(e=>({badge:et(G3,e),excessLabel:et(K3,e),container:et(Y3,e),label:X3}));function jr(e){const t=e!=="100%"?C1[e]:void 0;return I1({container:{[Bo.variable]:t??e,[fa.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Bo.variable]:t??e,[fa.variable]:`calc(${t??e} / 2.5)`}})}var q3={"2xs":jr(4),xs:jr(6),sm:jr(8),md:jr(12),lg:jr(16),xl:jr(24),"2xl":jr(32),full:jr("100%")},Z3=H3({baseStyle:Q3,sizes:q3,defaultProps:{size:"md"}}),J3={Accordion:D3,Alert:U3,Avatar:Z3,Badge:Ri,Breadcrumb:e3,Button:u3,Checkbox:yl,CloseButton:v3,Code:x3,Container:k3,Divider:E3,Drawer:_$,Editable:R$,Form:L$,FormError:U$,FormLabel:G$,Heading:X$,Input:Z,Kbd:mE,Link:vE,List:wE,Menu:ME,Modal:UE,NumberInput:JE,PinInput:n$,Popover:h$,Progress:x5,Radio:I5,Select:O5,Skeleton:W5,SkipLink:H5,Slider:rE,Spinner:iE,Stat:pE,Switch:vP,Table:CP,Tabs:BP,Tag:ZP,Textarea:c5,Tooltip:p5,Card:h3,Stepper:cT},e4={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"}}},t4={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"}}},r4="ltr",n4={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},o4={semanticTokens:e4,direction:r4,...sT,components:J3,styles:t4,config:n4};function i4(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function a4(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},F1=s4(a4);function D1(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var j1=e=>D1(e,t=>t!=null);function l4(e){return typeof e=="function"}function L1(e,...t){return l4(e)?e(...t):e}var u4=typeof Element<"u",c4=typeof Map=="function",d4=typeof Set=="function",f4=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ls(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ls(e[n],t[n]))return!1;return!0}var i;if(c4&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!Ls(n.value[1],t.get(n.value[0])))return!1;return!0}if(d4&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(f4&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])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),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(u4&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!Ls(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var p4=function(t,r){try{return Ls(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const h4=af(p4);function B1(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:a}=x2(),s=e?F1(i,`components.${e}`):void 0,l=n||s,u=tr({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},j1(i4(o,["children"]))),c=k.useRef({});if(l){const f=j_(l)(u);h4(c.current,f)||(c.current=f)}return c.current}function Go(e,t={}){return B1(e,t)}function ka(e,t={}){return B1(e,t)}var m4=new Set([...__,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),g4=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function v4(e){return g4.has(e)||!m4.has(e)}function y4(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function V1(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var S4=/^((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|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,b4=Zy(function(e){return S4.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),x4=b4,w4=function(t){return t!=="theme"},x0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?x4:w4},w0=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},k4=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return o1(r,n,o),e2(function(){return i1(r,n,o)}),null},C4=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=w0(t,r,n),l=s||x0(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,h=1;ht=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,s=D1(a,(d,f)=>P_(f)),l=L1(e,t),u=y4({},o,l,j1(s),i),c=x1(u)(t.theme);return n?[c,n]:c};function Cc(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=v4);const o=P4({baseStyle:r}),i=T4(e,n)(o);return $o.forwardRef(function(l,u){const{colorMode:c,forced:d}=dp();return $o.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function E4(){const e=new Map;return new Proxy(Cc,{apply(t,r,n){return Cc(...n)},get(t,r){return e.has(r)||e.set(r,Cc(r)),e.get(r)}})}var ce=E4();function Ee(e){return k.forwardRef(e)}function O1(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=k.createContext(void 0);o.displayName=n;function i(){var a;const s=k.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function $4(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=k.useMemo(()=>C_(r),[r]);return T.jsxs(n2,{theme:o,children:[T.jsx(z4,{root:t}),n]})}function z4({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return T.jsx(ou,{styles:r=>({[t]:r.__cssVars})})}O1({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function A4(e){return O1({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function R4(){const{colorMode:e}=dp();return T.jsx(ou,{styles:t=>{const r=F1(t,"styles.global"),n=L1(r,{theme:t,colorMode:e});return n?x1(n)(t):void 0}})}var N1=k.createContext({getDocument(){return document},getWindow(){return window}});N1.displayName="EnvironmentContext";function W1(e){const{children:t,environment:r,disabled:n}=e,o=k.useRef(null),i=k.useMemo(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),a=!n||!r;return T.jsxs(N1.Provider,{value:i,children:[t,a&&T.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}W1.displayName="EnvironmentProvider";var M4=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=T.jsx(W1,{environment:s,disabled:u,children:t});return T.jsx($4,{theme:a,cssVarsRoot:l,children:T.jsxs(h1,{colorModeManager:r,options:a.config,children:[i?T.jsx(s2,{scope:o}):T.jsx(a2,{}),!c&&T.jsx(R4,{}),n?T.jsx(f1,{zIndex:n,children:d}):d]})})},I4=(e,t)=>e.find(r=>r.id===t);function C0(e,t){const r=U1(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function U1(e,t){for(const[r,n]of Object.entries(e))if(I4(n,t))return r}function F4(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function D4(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=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)",a=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:r,top:n,bottom:o,right:i,left:a}}function j4(e,t=[]){const r=k.useRef(e);return k.useEffect(()=>{r.current=e}),k.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function L4(e,t){const r=j4(e);k.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function _0(e,t){const r=k.useRef(!1),n=k.useRef(!1);k.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),k.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const H1=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),cu=k.createContext({}),Ca=k.createContext(null),du=typeof document<"u",bp=du?k.useLayoutEffect:k.useEffect,G1=k.createContext({strict:!1}),xp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),B4="framerAppearId",K1="data-"+xp(B4);function V4(e,t,r,n){const{visualElement:o}=k.useContext(cu),i=k.useContext(G1),a=k.useContext(Ca),s=k.useContext(H1).reducedMotion,l=k.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;k.useInsertionEffect(()=>{u&&u.update(r,a)});const c=k.useRef(!!(r[K1]&&!window.HandoffComplete));return bp(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),k.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function ho(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function O4(e,t,r){return k.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):ho(r)&&(r.current=n))},[t])}function pa(e){return typeof e=="string"||Array.isArray(e)}function fu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const wp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kp=["initial",...wp];function pu(e){return fu(e.animate)||kp.some(t=>pa(e[t]))}function Y1(e){return!!(pu(e)||e.variants)}function N4(e,t){if(pu(e)){const{initial:r,animate:n}=e;return{initial:r===!1||pa(r)?r:void 0,animate:pa(n)?n:void 0}}return e.inherit!==!1?t:{}}function W4(e){const{initial:t,animate:r}=N4(e,k.useContext(cu));return k.useMemo(()=>({initial:t,animate:r}),[T0(t),T0(r)])}function T0(e){return Array.isArray(e)?e.join(" "):e}const P0={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"]},ha={};for(const e in P0)ha[e]={isEnabled:t=>P0[e].some(r=>!!t[r])};function U4(e){for(const t in e)ha[t]={...ha[t],...e[t]}}const Cp=k.createContext({}),X1=k.createContext({}),H4=Symbol.for("motionComponentSymbol");function G4({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&U4(e);function i(s,l){let u;const c={...k.useContext(H1),...s,layoutId:K4(s)},{isStatic:d}=c,f=W4(s),h=n(s,d);if(!d&&du){f.visualElement=V4(o,h,c,t);const y=k.useContext(X1),S=k.useContext(G1).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,S,e,y))}return k.createElement(cu.Provider,{value:f},u&&f.visualElement?k.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,s,O4(h,f.visualElement,l),h,d,f.visualElement))}const a=k.forwardRef(i);return a[H4]=o,a}function K4({layoutId:e}){const t=k.useContext(Cp).id;return t&&e!==void 0?t+"-"+e:e}function Y4(e){function t(n,o={}){return G4(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const X4=["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 _p(e){return typeof e!="string"||e.includes("-")?!1:!!(X4.indexOf(e)>-1||/[A-Z]/.test(e))}const xl={};function Q4(e){Object.assign(xl,e)}const _a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nn=new Set(_a);function Q1(e,{layout:t,layoutId:r}){return Nn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!xl[e]||e==="opacity")}const dt=e=>!!(e&&e.getVelocity),q4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z4=_a.length;function J4(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),Z1=q1("--"),Wd=q1("var(--"),ez=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,tz=(e,t)=>t&&typeof e=="number"?t.transform(e):e,an=(e,t,r)=>Math.min(Math.max(r,e),t),Wn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Di={...Wn,transform:e=>an(0,1,e)},cs={...Wn,default:1},ji=e=>Math.round(e*1e5)/1e5,hu=/(-)?([\d]*\.?[\d])+/g,J1=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rz=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ta(e){return typeof e=="string"}const Pa=e=>({test:t=>Ta(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Lr=Pa("deg"),sr=Pa("%"),V=Pa("px"),nz=Pa("vh"),oz=Pa("vw"),E0={...sr,parse:e=>sr.parse(e)/100,transform:e=>sr.transform(e*100)},$0={...Wn,transform:Math.round},eS={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,size:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,rotate:Lr,rotateX:Lr,rotateY:Lr,rotateZ:Lr,scale:cs,scaleX:cs,scaleY:cs,scaleZ:cs,skew:Lr,skewX:Lr,skewY:Lr,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Di,originX:E0,originY:E0,originZ:V,zIndex:$0,fillOpacity:Di,strokeOpacity:Di,numOctaves:$0};function Tp(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(Z1(d)){i[d]=f;continue}const h=eS[d],y=tz(f,h);if(Nn.has(d)){if(l=!0,a[d]=y,!c)continue;f!==(h.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=y):o[d]=y}if(t.transform||(l||n?o.transform=J4(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:h=0}=s;o.transformOrigin=`${d} ${f} ${h}`}}const Pp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tS(e,t,r){for(const n in t)!dt(t[n])&&!Q1(n,r)&&(e[n]=t[n])}function iz({transformTemplate:e},t,r){return k.useMemo(()=>{const n=Pp();return Tp(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function az(e,t,r){const n=e.style||{},o={};return tS(o,n,e),Object.assign(o,iz(e,t,r)),e.transformValues?e.transformValues(o):o}function sz(e,t,r){const n={},o=az(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,n}const lz=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function wl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lz.has(e)}let rS=e=>!wl(e);function uz(e){e&&(rS=t=>t.startsWith("on")?!wl(t):e(t))}try{uz(require("@emotion/is-prop-valid").default)}catch{}function cz(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(rS(o)||r===!0&&wl(o)||!t&&!wl(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function z0(e,t,r){return typeof e=="string"?e:V.transform(t+r*e)}function dz(e,t,r){const n=z0(t,e.x,e.width),o=z0(r,e.y,e.height);return`${n} ${o}`}const fz={offset:"stroke-dashoffset",array:"stroke-dasharray"},pz={offset:"strokeDashoffset",array:"strokeDasharray"};function hz(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?fz:pz;e[i.offset]=V.transform(-n);const a=V.transform(t),s=V.transform(r);e[i.array]=`${a} ${s}`}function Ep(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(Tp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:y,dimensions:S}=e;h.transform&&(S&&(y.transform=h.transform),delete h.transform),S&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=dz(S,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&hz(h,a,s,l,!1)}const nS=()=>({...Pp(),attrs:{}}),$p=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mz(e,t,r,n){const o=k.useMemo(()=>{const i=nS();return Ep(i,t,{enableHardwareAcceleration:!1},$p(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};tS(i,e.style,e),o.style={...i,...o.style}}return o}function gz(e=!1){return(r,n,o,{latestValues:i},a)=>{const l=(_p(r)?mz:sz)(n,i,a,r),c={...cz(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=k.useMemo(()=>dt(d)?d.get():d,[d]);return k.createElement(r,{...c,children:f})}}function oS(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const iS=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 aS(e,t,r,n){oS(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(iS.has(o)?o:xp(o),t.attrs[o])}function zp(e,t){const{style:r}=e,n={};for(const o in r)(dt(r[o])||t.style&&dt(t.style[o])||Q1(o,e))&&(n[o]=r[o]);return n}function sS(e,t){const r=zp(e,t);for(const n in e)if(dt(e[n])||dt(t[n])){const o=_a.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function Ap(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function lS(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const kl=e=>Array.isArray(e),vz=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),yz=e=>kl(e)?e[e.length-1]||0:e;function Bs(e){const t=dt(e)?e.get():e;return vz(t)?t.toValue():t}function Sz({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:bz(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const uS=e=>(t,r)=>{const n=k.useContext(cu),o=k.useContext(Ca),i=()=>Sz(e,t,n,o);return r?i():lS(i)};function bz(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=Bs(i[f]);let{initial:a,animate:s}=e;const l=pu(e),u=Y1(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const d=c?s:a;return d&&typeof d!="boolean"&&!fu(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const y=Ap(e,h);if(!y)return;const{transitionEnd:S,transition:C,...m}=y;for(const p in m){let g=m[p];if(Array.isArray(g)){const w=c?g.length-1:0;g=g[w]}g!==null&&(o[p]=g)}for(const p in S)o[p]=S[p]}),o}const xe=e=>e;class A0{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function xz(e){let t=new A0,r=new A0,n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&a.add(l),f.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[f]=xz(()=>r=!0),d),{}),a=d=>i[d].process(o),s=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,wz),1),o.timestamp=d,o.isProcessing=!0,ds.forEach(a),o.isProcessing=!1,r&&t&&(n=!1,e(s))},l=()=>{r=!0,n=!0,o.isProcessing||e(s)};return{schedule:ds.reduce((d,f)=>{const h=i[f];return d[f]=(y,S=!1,C=!1)=>(r||l(),h.schedule(y,S,C)),d},{}),cancel:d=>ds.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:ie,cancel:$r,state:Ke,steps:_c}=kz(typeof requestAnimationFrame<"u"?requestAnimationFrame:xe,!0),Cz={useVisualState:uS({scrapeMotionValuesFromProps:sS,createRenderState:nS,onMount:(e,t,{renderState:r,latestValues:n})=>{ie.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),ie.render(()=>{Ep(r,n,{enableHardwareAcceleration:!1},$p(t.tagName),e.transformTemplate),aS(t,r)})}})},_z={useVisualState:uS({scrapeMotionValuesFromProps:zp,createRenderState:Pp})};function Tz(e,{forwardMotionProps:t=!1},r,n){return{..._p(e)?Cz:_z,preloadedFeatures:r,useRender:gz(t),createVisualElement:n,Component:e}}function Sr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const cS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function mu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Pz=e=>t=>cS(t)&&e(t,mu(t));function wr(e,t,r,n){return Sr(e,t,Pz(r),n)}const Ez=(e,t)=>r=>t(e(r)),rn=(...e)=>e.reduce(Ez);function dS(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const R0=dS("dragHorizontal"),M0=dS("dragVertical");function fS(e){let t=!1;if(e==="y")t=M0();else if(e==="x")t=R0();else{const r=R0(),n=M0();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function pS(){const e=fS(!0);return e?(e(),!1):!0}class dn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function I0(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.pointerType==="touch"||pS())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&ie.update(()=>s[n](i,a))};return wr(e.current,r,o,{passive:!e.getProps()[n]})}class $z extends dn{mount(){this.unmount=rn(I0(this.node,!0),I0(this.node,!1))}unmount(){}}class zz extends dn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rn(Sr(this.node.current,"focus",()=>this.onFocus()),Sr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const hS=(e,t)=>t?e===t?!0:hS(e,t.parentElement):!1;function Tc(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,mu(r))}class Az extends dn{constructor(){super(...arguments),this.removeStartListeners=xe,this.removeEndListeners=xe,this.removeAccessibleListeners=xe,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=wr(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();ie.update(()=>{!d&&!hS(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)})},{passive:!(n.onTap||n.onPointerUp)}),a=wr(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=rn(i,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Tc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&ie.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Sr(this.node.current,"keyup",a),Tc("down",(s,l)=>{this.startPress(s,l)})},r=Sr(this.node.current,"keydown",t),n=()=>{this.isPressing&&Tc("cancel",(i,a)=>this.cancelPress(i,a))},o=Sr(this.node.current,"blur",n);this.removeAccessibleListeners=rn(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ie.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!pS()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ie.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=wr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Sr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=rn(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ud=new WeakMap,Pc=new WeakMap,Rz=e=>{const t=Ud.get(e.target);t&&t(e)},Mz=e=>{e.forEach(Rz)};function Iz({root:e,...t}){const r=e||document;Pc.has(r)||Pc.set(r,{});const n=Pc.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(Mz,{root:e,...t})),n[o]}function Fz(e,t,r){const n=Iz(t);return Ud.set(e,r),n.observe(e),()=>{Ud.delete(e),n.unobserve(e)}}const Dz={some:0,all:1};class jz extends dn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:Dz[o]},s=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 Fz(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Lz(t,r))&&this.startObserver()}unmount(){}}function Lz({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Bz={inView:{Feature:jz},tap:{Feature:Az},focus:{Feature:zz},hover:{Feature:$z}};function mS(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function Oz(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function gu(e,t,r){const n=e.getProps();return Ap(n,t,r!==void 0?r:n.custom,Vz(e),Oz(e))}let Rp=xe;const In=e=>e*1e3,kr=e=>e/1e3,Nz={current:!1},gS=e=>Array.isArray(e)&&typeof e[0]=="number";function vS(e){return!!(!e||typeof e=="string"&&yS[e]||gS(e)||Array.isArray(e)&&e.every(vS))}const bi=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,yS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bi([0,.65,.55,1]),circOut:bi([.55,0,1,.45]),backIn:bi([.31,.01,.66,-.59]),backOut:bi([.33,1.53,.69,.99])};function SS(e){if(e)return gS(e)?bi(e):Array.isArray(e)?e.map(SS):yS[e]}function Wz(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=SS(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function Uz(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const bS=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Hz=1e-7,Gz=12;function Kz(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=bS(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>Hz&&++sKz(i,0,1,e,r);return i=>i===0||i===1?i:bS(o(i),t,n)}const Yz=Ea(.42,0,1,1),Xz=Ea(0,0,.58,1),xS=Ea(.42,0,.58,1),Qz=e=>Array.isArray(e)&&typeof e[0]!="number",wS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kS=e=>t=>1-e(1-t),Mp=e=>1-Math.sin(Math.acos(e)),CS=kS(Mp),qz=wS(Mp),_S=Ea(.33,1.53,.69,.99),Ip=kS(_S),Zz=wS(Ip),Jz=e=>(e*=2)<1?.5*Ip(e):.5*(2-Math.pow(2,-10*(e-1))),eA={linear:xe,easeIn:Yz,easeInOut:xS,easeOut:Xz,circIn:Mp,circInOut:qz,circOut:CS,backIn:Ip,backInOut:Zz,backOut:_S,anticipate:Jz},F0=e=>{if(Array.isArray(e)){Rp(e.length===4);const[t,r,n,o]=e;return Ea(t,r,n,o)}else if(typeof e=="string")return eA[e];return e},Fp=(e,t)=>r=>!!(Ta(r)&&rz.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),TS=(e,t,r)=>n=>{if(!Ta(n))return n;const[o,i,a,s]=n.match(hu);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},tA=e=>an(0,255,e),Ec={...Wn,transform:e=>Math.round(tA(e))},En={test:Fp("rgb","red"),parse:TS("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ec.transform(e)+", "+Ec.transform(t)+", "+Ec.transform(r)+", "+ji(Di.transform(n))+")"};function rA(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Hd={test:Fp("#"),parse:rA,transform:En.transform},mo={test:Fp("hsl","hue"),parse:TS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+sr.transform(ji(t))+", "+sr.transform(ji(r))+", "+ji(Di.transform(n))+")"},Qe={test:e=>En.test(e)||Hd.test(e)||mo.test(e),parse:e=>En.test(e)?En.parse(e):mo.test(e)?mo.parse(e):Hd.parse(e),transform:e=>Ta(e)?e:e.hasOwnProperty("red")?En.transform(e):mo.transform(e)},ge=(e,t,r)=>-r*e+r*t+e;function $c(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function nA({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=$c(l,s,e+1/3),i=$c(l,s,e),a=$c(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const zc=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},oA=[Hd,En,mo],iA=e=>oA.find(t=>t.test(e));function D0(e){const t=iA(e);let r=t.parse(e);return t===mo&&(r=nA(r)),r}const PS=(e,t)=>{const r=D0(e),n=D0(t),o={...r};return i=>(o.red=zc(r.red,n.red,i),o.green=zc(r.green,n.green,i),o.blue=zc(r.blue,n.blue,i),o.alpha=ge(r.alpha,n.alpha,i),En.transform(o))};function aA(e){var t,r;return isNaN(e)&&Ta(e)&&(((t=e.match(hu))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(J1))===null||r===void 0?void 0:r.length)||0)>0}const ES={regex:ez,countKey:"Vars",token:"${v}",parse:xe},$S={regex:J1,countKey:"Colors",token:"${c}",parse:Qe.parse},zS={regex:hu,countKey:"Numbers",token:"${n}",parse:Wn.parse};function Ac(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function Cl(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Ac(r,ES),Ac(r,$S),Ac(r,zS),r}function AS(e){return Cl(e).values}function RS(e){const{values:t,numColors:r,numVars:n,tokenised:o}=Cl(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function lA(e){const t=AS(e);return RS(e)(t.map(sA))}const sn={test:aA,parse:AS,createTransformer:RS,getAnimatableNone:lA},MS=(e,t)=>r=>`${r>0?t:e}`;function IS(e,t){return typeof e=="number"?r=>ge(e,t,r):Qe.test(e)?PS(e,t):e.startsWith("var(")?MS(e,t):DS(e,t)}const FS=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>IS(i,t[a]));return i=>{for(let a=0;a{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=IS(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},DS=(e,t)=>{const r=sn.createTransformer(t),n=Cl(e),o=Cl(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?rn(FS(n.values,o.values),r):MS(e,t)},ma=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},j0=(e,t)=>r=>ge(e,t,r);function cA(e){return typeof e=="number"?j0:typeof e=="string"?Qe.test(e)?PS:DS:Array.isArray(e)?FS:typeof e=="object"?uA:j0}function dA(e,t,r){const n=[],o=r||cA(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=dA(t,n,o),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(an(e[0],e[i-1],u)):l}function fA(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=ma(0,t,n);e.push(ge(r,1,o))}}function pA(e){const t=[0];return fA(t,e.length-1),t}function hA(e,t){return e.map(r=>r*t)}function mA(e,t){return e.map(()=>t||xS).splice(0,e.length-1)}function _l({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=Qz(n)?n.map(F0):F0(n),i={done:!1,value:t[0]},a=hA(r&&r.length===t.length?r:pA(t),e),s=jS(a,t,{ease:Array.isArray(o)?o:mA(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function LS(e,t){return t?e*(1e3/t):0}const gA=5;function BS(e,t,r){const n=Math.max(t-gA,0);return LS(r-e(n),t-n)}const Rc=.001,vA=.01,yA=10,SA=.05,bA=1;function xA({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i,a=1-t;a=an(SA,bA,a),e=an(vA,yA,kr(e)),a<1?(o=u=>{const c=u*a,d=c*e,f=c-r,h=Gd(u,a),y=Math.exp(-d);return Rc-f/h*y},i=u=>{const d=u*a*e,f=d*r+r,h=Math.pow(a,2)*Math.pow(u,2)*e,y=Math.exp(-d),S=Gd(Math.pow(u,2),a);return(-o(u)+Rc>0?-1:1)*((f-h)*y)/S}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Rc+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const s=5/e,l=kA(o,i,s);if(e=In(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const wA=12;function kA(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function TA(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!L0(e,_A)&&L0(e,CA)){const r=xA(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function VS({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=TA({...n,velocity:-kr(n.velocity||0)}),h=d||0,y=l/(2*Math.sqrt(s*u)),S=i-o,C=kr(Math.sqrt(s/u)),m=Math.abs(S)<5;r||(r=m?.01:2),t||(t=m?.005:.5);let p;if(y<1){const g=Gd(C,y);p=w=>{const E=Math.exp(-y*C*w);return i-E*((h+y*C*S)/g*Math.sin(g*w)+S*Math.cos(g*w))}}else if(y===1)p=g=>i-Math.exp(-C*g)*(S+(h+C*S)*g);else{const g=C*Math.sqrt(y*y-1);p=w=>{const E=Math.exp(-y*C*w),z=Math.min(g*w,300);return i-E*((h+y*C*S)*Math.sinh(z)+g*S*Math.cosh(z))/g}}return{calculatedDuration:f&&c||null,next:g=>{const w=p(g);if(f)a.done=g>=c;else{let E=h;g!==0&&(y<1?E=BS(p,g,w):E=0);const z=Math.abs(E)<=r,P=Math.abs(i-w)<=t;a.done=z&&P}return a.value=a.done?i:w,a}}}function B0({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=$=>s!==void 0&&$l,y=$=>s===void 0?l:l===void 0||Math.abs(s-$)-S*Math.exp(-$/n),g=$=>m+p($),w=$=>{const F=p($),D=g($);f.done=Math.abs(F)<=u,f.value=f.done?m:D};let E,z;const P=$=>{h(f.value)&&(E=$,z=VS({keyframes:[f.value,y(f.value)],velocity:BS(g,$,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:$=>{let F=!1;return!z&&E===void 0&&(F=!0,w($),P($)),E!==void 0&&$>E?z.next($-E):(!F&&w($),f)}}}const PA=e=>{const t=({timestamp:r})=>e(r);return{start:()=>ie.update(t,!0),stop:()=>$r(t),now:()=>Ke.isProcessing?Ke.timestamp:performance.now()}},V0=2e4;function O0(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=V0?1/0:t}const EA={decay:B0,inertia:B0,tween:_l,keyframes:_l,spring:VS};function Tl({autoplay:e=!0,delay:t=0,driver:r=PA,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let h=1,y=!1,S,C;const m=()=>{C=new Promise(O=>{S=O})};m();let p;const g=EA[o]||_l;let w;g!==_l&&typeof n[0]!="number"&&(w=jS([0,100],n,{clamp:!1}),n=[0,100]);const E=g({...f,keyframes:n});let z;s==="mirror"&&(z=g({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let P="idle",$=null,F=null,D=null;E.calculatedDuration===null&&i&&(E.calculatedDuration=O0(E));const{calculatedDuration:ke}=E;let $e=1/0,Le=1/0;ke!==null&&($e=ke+a,Le=$e*(i+1)-a);let Ce=0;const Ut=O=>{if(F===null)return;h>0&&(F=Math.min(F,O)),h<0&&(F=Math.min(O-Le/h,F)),$!==null?Ce=$:Ce=Math.round(O-F)*h;const ne=Ce-t*(h>=0?1:-1),K=h>=0?ne<0:ne>Le;Ce=Math.max(ne,0),P==="finished"&&$===null&&(Ce=Le);let ft=Ce,Rr=E;if(i){const Un=Math.min(Ce,Le)/$e;let Mr=Math.floor(Un),Gt=Un%1;!Gt&&Un>=1&&(Gt=1),Gt===1&&Mr--,Mr=Math.min(Mr,i+1),!!(Mr%2)&&(s==="reverse"?(Gt=1-Gt,a&&(Gt-=a/$e)):s==="mirror"&&(Rr=z)),ft=an(0,1,Gt)*$e}const ze=K?{done:!1,value:n[0]}:Rr.next(ft);w&&(ze.value=w(ze.value));let{done:Ht}=ze;!K&&ke!==null&&(Ht=h>=0?Ce>=Le:Ce<=0);const fn=$===null&&(P==="finished"||P==="running"&&Ht);return d&&d(ze.value),fn&&R(),ze},he=()=>{p&&p.stop(),p=void 0},nt=()=>{P="idle",he(),S(),m(),F=D=null},R=()=>{P="finished",c&&c(),he(),S()},B=()=>{if(y)return;p||(p=r(Ut));const O=p.now();l&&l(),$!==null?F=O-$:(!F||P==="finished")&&(F=O),P==="finished"&&m(),D=F,$=null,P="running",p.start()};e&&B();const N={then(O,ne){return C.then(O,ne)},get time(){return kr(Ce)},set time(O){O=In(O),Ce=O,$!==null||!p||h===0?$=O:F=p.now()-O/h},get duration(){const O=E.calculatedDuration===null?O0(E):E.calculatedDuration;return kr(O)},get speed(){return h},set speed(O){O===h||!p||(h=O,N.time=kr(Ce))},get state(){return P},play:B,pause:()=>{P="paused",$=Ce},stop:()=>{y=!0,P!=="idle"&&(P="idle",u&&u(),nt())},cancel:()=>{D!==null&&Ut(D),nt()},complete:()=>{P="finished"},sample:O=>(F=0,Ut(O))};return N}function $A(e){let t;return()=>(t===void 0&&(t=e()),t)}const zA=$A(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),AA=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),fs=10,RA=2e4,MA=(e,t)=>t.type==="spring"||e==="backgroundColor"||!vS(t.ease);function IA(e,t,{onUpdate:r,onComplete:n,...o}){if(!(zA()&&AA.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l,u=!1;const c=()=>{l=new Promise(g=>{s=g})};c();let{keyframes:d,duration:f=300,ease:h,times:y}=o;if(MA(t,o)){const g=Tl({...o,repeat:0,delay:0});let w={done:!1,value:d[0]};const E=[];let z=0;for(;!w.done&&z{u=!1,S.cancel()},m=()=>{u=!0,ie.update(C),s(),c()};return S.onfinish=()=>{u||(e.set(Uz(d,o)),n&&n(),m())},{then(g,w){return l.then(g,w)},attachTimeline(g){return S.timeline=g,S.onfinish=null,xe},get time(){return kr(S.currentTime||0)},set time(g){S.currentTime=In(g)},get speed(){return S.playbackRate},set speed(g){S.playbackRate=g},get duration(){return kr(f)},play:()=>{a||(S.play(),$r(C))},pause:()=>S.pause(),stop:()=>{if(a=!0,S.playState==="idle")return;const{currentTime:g}=S;if(g){const w=Tl({...o,autoplay:!1});e.setWithVelocity(w.sample(g-fs).value,w.sample(g).value,fs)}m()},complete:()=>{u||S.finish()},cancel:m}}function FA({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:xe,pause:xe,stop:xe,then:i=>(i(),Promise.resolve()),cancel:xe,complete:xe});return t?Tl({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const DA={type:"spring",stiffness:500,damping:25,restSpeed:10},jA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),LA={type:"keyframes",duration:.8},BA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},VA=(e,{keyframes:t})=>t.length>2?LA:Nn.has(e)?e.startsWith("scale")?jA(t[1]):DA:BA,Kd=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(sn.test(t)||t==="0")&&!t.startsWith("url(")),OA=new Set(["brightness","contrast","saturate","opacity"]);function NA(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(hu)||[];if(!n)return e;const o=r.replace(n,"");let i=OA.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const WA=/([a-z-]*)\(.*?\)/g,Yd={...sn,getAnimatableNone:e=>{const t=e.match(WA);return t?t.map(NA).join(" "):e}},UA={...eS,color:Qe,backgroundColor:Qe,outlineColor:Qe,fill:Qe,stroke:Qe,borderColor:Qe,borderTopColor:Qe,borderRightColor:Qe,borderBottomColor:Qe,borderLeftColor:Qe,filter:Yd,WebkitFilter:Yd},Dp=e=>UA[e];function OS(e,t){let r=Dp(e);return r!==Yd&&(r=sn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const NS=e=>/^0[^.\s]+$/.test(e);function HA(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||NS(e)}function GA(e,t,r,n){const o=Kd(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const l=[];for(let u=0;uo=>{const i=jp(n,e)||{},a=i.delay||n.delay||0;let{elapsed:s=0}=n;s=s-In(a);const l=GA(t,e,r,i),u=l[0],c=l[l.length-1],d=Kd(e,u),f=Kd(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:y=>{t.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(KA(i)||(h={...h,...VA(e,h)}),h.duration&&(h.duration=In(h.duration)),h.repeatDelay&&(h.repeatDelay=In(h.repeatDelay)),!d||!f||Nz.current||i.type===!1||YA.skipAnimations)return FA(h);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=IA(t,e,h);if(y)return y}return Tl(h)};function Pl(e){return!!(dt(e)&&e.add)}const WS=e=>/^\-?\d*\.?\d+$/.test(e);function Bp(e,t){e.indexOf(t)===-1&&e.push(t)}function Vp(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Op{constructor(){this.subscriptions=[]}add(t){return Bp(this.subscriptions,t),()=>Vp(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class QA{constructor(t,r={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:a}=Ke;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,ie.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ie.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=XA(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Op);const n=this.events[t].add(r);return t==="change"?()=>{n(),ie.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?LS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 Vo(e,t){return new QA(e,t)}const US=e=>t=>t.test(e),qA={test:e=>e==="auto",parse:e=>e},HS=[Wn,V,sr,Lr,oz,nz,qA],ui=e=>HS.find(US(e)),ZA=[...HS,Qe,sn],JA=e=>ZA.find(US(e));function eR(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Vo(r))}function tR(e,t){const r=gu(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const a in i){const s=yz(i[a]);eR(e,a,s)}}function rR(e,t,r){var n,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;sl.remove(d))),u.push(C)}return a&&Promise.all(u).then(()=>{a&&tR(e,a)}),u}function Xd(e,t,r={}){const n=gu(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(GS(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return sR(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,u]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>u())}else return Promise.all([i(),a(r.delay)])}function sR(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>s-u*n;return Array.from(e.variantChildren).sort(lR).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Xd(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function lR(e,t){return e.sortNodePosition(t)}function uR(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Xd(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Xd(e,t,r);else{const o=typeof t=="function"?gu(e,t,r.custom):t;n=Promise.all(GS(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const cR=[...wp].reverse(),dR=wp.length;function fR(e){return t=>Promise.all(t.map(({animation:r,options:n})=>uR(e,r,n)))}function pR(e){let t=fR(e);const r=mR();let n=!0;const o=(l,u)=>{const c=gu(e,u);if(c){const{transition:d,transitionEnd:f,...h}=c;l={...l,...h,...f}}return l};function i(l){t=l(e)}function a(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let y={},S=1/0;for(let m=0;mS&&E,D=!1;const ke=Array.isArray(w)?w:[w];let $e=ke.reduce(o,{});z===!1&&($e={});const{prevResolvedValues:Le={}}=g,Ce={...Le,...$e},Ut=he=>{F=!0,h.has(he)&&(D=!0,h.delete(he)),g.needsAnimating[he]=!0};for(const he in Ce){const nt=$e[he],R=Le[he];if(y.hasOwnProperty(he))continue;let B=!1;kl(nt)&&kl(R)?B=!mS(nt,R):B=nt!==R,B?nt!==void 0?Ut(he):h.add(he):nt!==void 0&&h.has(he)?Ut(he):g.protectedKeys[he]=!0}g.prevProp=w,g.prevResolvedValues=$e,g.isActive&&(y={...y,...$e}),n&&e.blockInitialAnimation&&(F=!1),F&&(!P||D)&&f.push(...ke.map(he=>({animation:he,options:{type:p,...l}})))}if(h.size){const m={};h.forEach(p=>{const g=e.getBaseTarget(p);g!==void 0&&(m[p]=g)}),f.push({animation:m})}let C=!!f.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(C=!1),n=!1,C?t(f):Promise.resolve()}function s(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),r[l].isActive=u;const f=a(c,l);for(const h in r)r[h].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function hR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mS(t,e):!1}function gn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mR(){return{animate:gn(!0),whileInView:gn(),whileHover:gn(),whileTap:gn(),whileDrag:gn(),whileFocus:gn(),exit:gn()}}class gR extends dn{constructor(t){super(t),t.animationState||(t.animationState=pR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),fu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let vR=0;class yR extends dn{constructor(){super(...arguments),this.id=vR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const SR={animation:{Feature:gR},exit:{Feature:yR}},N0=(e,t)=>Math.abs(e-t);function bR(e,t){const r=N0(e.x,t.x),n=N0(e.y,t.y);return Math.sqrt(r**2+n**2)}class KS{constructor(t,r,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Ic(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=bR(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:y}=d,{timestamp:S}=Ke;this.history.push({...y,timestamp:S});const{onStart:C,onMove:m}=this.handlers;f||(C&&C(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Mc(f,this.transformPagePoint),ie.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:y,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Ic(d.type==="pointercancel"?this.lastMoveEventInfo:Mc(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,C),y&&y(d,C)},!cS(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const a=mu(t),s=Mc(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=Ke;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=r;c&&c(t,Ic(s,this.history)),this.removeListeners=rn(wr(this.contextWindow,"pointermove",this.handlePointerMove),wr(this.contextWindow,"pointerup",this.handlePointerUp),wr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$r(this.updatePoint)}}function Mc(e,t){return t?{point:t(e.point)}:e}function W0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ic({point:e},t){return{point:e,delta:W0(e,YS(t)),offset:W0(e,xR(t)),velocity:wR(t,.1)}}function xR(e){return e[0]}function YS(e){return e[e.length-1]}function wR(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=YS(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>In(t)));)r--;if(!n)return{x:0,y:0};const i=kr(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function bt(e){return e.max-e.min}function Qd(e,t=0,r=.01){return Math.abs(e-t)<=r}function U0(e,t,r,n=.5){e.origin=n,e.originPoint=ge(t.min,t.max,e.origin),e.scale=bt(r)/bt(t),(Qd(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ge(r.min,r.max,e.origin)-e.originPoint,(Qd(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Li(e,t,r,n){U0(e.x,t.x,r.x,n?n.originX:void 0),U0(e.y,t.y,r.y,n?n.originY:void 0)}function H0(e,t,r){e.min=r.min+t.min,e.max=e.min+bt(t)}function kR(e,t,r){H0(e.x,t.x,r.x),H0(e.y,t.y,r.y)}function G0(e,t,r){e.min=t.min-r.min,e.max=e.min+bt(t)}function Bi(e,t,r){G0(e.x,t.x,r.x),G0(e.y,t.y,r.y)}function CR(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?ge(r,e,n.max):Math.min(e,r)),e}function K0(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function _R(e,{top:t,left:r,bottom:n,right:o}){return{x:K0(e.x,r,o),y:K0(e.y,t,n)}}function Y0(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=ma(t.min,t.max-n,e.min):n>o&&(r=ma(e.min,e.max-o,t.min)),an(0,1,r)}function ER(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const qd=.35;function $R(e=qd){return e===!1?e=0:e===!0&&(e=qd),{x:X0(e,"left","right"),y:X0(e,"top","bottom")}}function X0(e,t,r){return{min:Q0(e,t),max:Q0(e,r)}}function Q0(e,t){return typeof e=="number"?e:e[t]||0}const q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),go=()=>({x:q0(),y:q0()}),Z0=()=>({min:0,max:0}),_e=()=>({x:Z0(),y:Z0()});function Et(e){return[e("x"),e("y")]}function XS({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function zR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function AR(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Fc(e){return e===void 0||e===1}function Zd({scale:e,scaleX:t,scaleY:r}){return!Fc(e)||!Fc(t)||!Fc(r)}function Sn(e){return Zd(e)||QS(e)||e.z||e.rotate||e.rotateX||e.rotateY}function QS(e){return J0(e.x)||J0(e.y)}function J0(e){return e&&e!=="0%"}function El(e,t,r){const n=e-r,o=t*n;return r+o}function eg(e,t,r,n,o){return o!==void 0&&(e=El(e,o,n)),El(e,r,n)+t}function Jd(e,t=0,r=1,n,o){e.min=eg(e.min,t,r,n,o),e.max=eg(e.max,t,r,n,o)}function qS(e,{x:t,y:r}){Jd(e.x,t.translate,t.scale,t.originPoint),Jd(e.y,r.translate,r.scale,r.originPoint)}function RR(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function Or(e,t){e.min=e.min+t,e.max=e.max+t}function rg(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,a=ge(e.min,e.max,i);Jd(e,t[r],t[n],a,t.scale)}const MR=["x","scaleX","originX"],IR=["y","scaleY","originY"];function vo(e,t){rg(e.x,t,MR),rg(e.y,t,IR)}function ZS(e,t){return XS(AR(e.getBoundingClientRect(),t))}function FR(e,t,r){const n=ZS(e,r),{scroll:o}=t;return o&&(Or(n.x,o.offset.x),Or(n.y,o.offset.y)),n}const JS=({current:e})=>e?e.ownerDocument.defaultView:null,DR=new WeakMap;class jR{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_e(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(mu(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:y}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=fS(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Et(C=>{let m=this.getAxisMotionValue(C).get()||0;if(sr.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const g=p.layout.layoutBox[C];g&&(m=bt(g)*(parseFloat(m)/100))}}this.originPoint[C]=m}),y&&ie.update(()=>y(c,d),!1,!0);const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:y,onDrag:S}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:C}=d;if(h&&this.currentDirection===null){this.currentDirection=LR(C),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,C),this.updateAxis("y",d.point,C),this.visualElement.render(),S&&S(c,d)},s=(c,d)=>this.stop(c,d),l=()=>Et(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 KS(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:JS(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&ie.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!ps(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=CR(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=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;r&&ho(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=_R(o.layoutBox,r):this.constraints=!1,this.elastic=$R(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Et(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=ER(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!ho(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=FR(n,o.root,this.visualElement.getTransformPagePoint());let a=TR(o.layout.layoutBox,i);if(r){const s=r(zR(a));this.hasMutatedConstraints=!!s,s&&(a=XS(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Et(c=>{if(!ps(c,r,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,y={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Lp(t,n,0,r))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Et(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Et(r=>{const{drag:n}=this.getProps();if(!ps(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-ge(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!ho(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Et(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=PR({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Et(a=>{if(!ps(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(ge(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;DR.set(this.visualElement,this);const t=this.visualElement.current,r=wr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();ho(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const a=Sr(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Et(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),r(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=qd,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ps(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function LR(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class BR extends dn{constructor(t){super(t),this.removeGroupControls=xe,this.removeListeners=xe,this.controls=new jR(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const ng=e=>(t,r)=>{e&&ie.update(()=>e(t,r))};class VR extends dn{constructor(){super(...arguments),this.removePointerDownListener=xe}onPointerDown(t){this.session=new KS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:JS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:ng(t),onStart:ng(r),onMove:n,onEnd:(i,a)=>{delete this.session,o&&ie.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=wr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function OR(){const e=k.useContext(Ca);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=k.useId();return k.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function NR(){return WR(k.useContext(Ca))}function WR(e){return e===null?!0:e.isPresent}const Vs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function og(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ci={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const r=og(e,t.target.x),n=og(e,t.target.y);return`${r}% ${n}%`}},UR={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=sn.parse(e);if(o.length>5)return n;const i=sn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=ge(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}};class HR extends $o.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;Q4(GR),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Vs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||ie.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eb(e){const[t,r]=OR(),n=k.useContext(Cp);return $o.createElement(HR,{...e,layoutGroup:n,switchLayoutGroup:k.useContext(X1),isPresent:t,safeToRemove:r})}const GR={borderRadius:{...ci,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ci,borderTopRightRadius:ci,borderBottomLeftRadius:ci,borderBottomRightRadius:ci,boxShadow:UR},tb=["TopLeft","TopRight","BottomLeft","BottomRight"],KR=tb.length,ig=e=>typeof e=="string"?parseFloat(e):e,ag=e=>typeof e=="number"||V.test(e);function YR(e,t,r,n,o,i){o?(e.opacity=ge(0,r.opacity!==void 0?r.opacity:1,XR(n)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,QR(n))):i&&(e.opacity=ge(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;ant?1:r(ma(e,t,n))}function lg(e,t){e.min=t.min,e.max=t.max}function Tt(e,t){lg(e.x,t.x),lg(e.y,t.y)}function ug(e,t,r,n,o){return e-=t,e=El(e,1/r,n),o!==void 0&&(e=El(e,1/o,n)),e}function qR(e,t=0,r=1,n=.5,o,i=e,a=e){if(sr.test(t)&&(t=parseFloat(t),t=ge(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ge(i.min,i.max,n);e===i&&(s-=t),e.min=ug(e.min,t,r,s,o),e.max=ug(e.max,t,r,s,o)}function cg(e,t,[r,n,o],i,a){qR(e,t[r],t[n],t[o],t.scale,i,a)}const ZR=["x","scaleX","originX"],JR=["y","scaleY","originY"];function dg(e,t,r,n){cg(e.x,t,ZR,r?r.x:void 0,n?n.x:void 0),cg(e.y,t,JR,r?r.y:void 0,n?n.y:void 0)}function fg(e){return e.translate===0&&e.scale===1}function nb(e){return fg(e.x)&&fg(e.y)}function eM(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ob(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function pg(e){return bt(e.x)/bt(e.y)}class tM{constructor(){this.members=[]}add(t){Bp(this.members,t),t.scheduleRender()}remove(t){if(Vp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hg(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:u,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const rM=(e,t)=>e.depth-t.depth;class nM{constructor(){this.children=[],this.isDirty=!1}add(t){Bp(this.children,t),this.isDirty=!0}remove(t){Vp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rM),this.isDirty=!1,this.children.forEach(t)}}function oM(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&($r(n),e(i-t))};return ie.read(n,!0),()=>$r(n)}function iM(e){window.MotionDebug&&window.MotionDebug.record(e)}function aM(e){return e instanceof SVGElement&&e.tagName!=="svg"}function sM(e,t,r){const n=dt(e)?e:Vo(e);return n.start(Lp("",n,t,r)),n.animation}const mg=["","X","Y","Z"],lM={visibility:"hidden"},gg=1e3;let uM=0;const bn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ib({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=uM++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,bn.totalNodes=bn.resolvedTargetDeltas=bn.recalculatedProjection=0,this.nodes.forEach(fM),this.nodes.forEach(vM),this.nodes.forEach(yM),this.nodes.forEach(pM),iM(bn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=oM(f,250),Vs.hasAnimatedSinceResize&&(Vs.hasAnimatedSinceResize=!1,this.nodes.forEach(yg))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||c.getDefaultTransition()||kM,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=c.getProps(),p=!this.targetLayout||!ob(this.targetLayout,y)||h,g=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const w={...jp(S,"layout"),onPlay:C,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||yg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$r(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(SM),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(hM),this.sharedNodes.forEach(bM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ie.postRender(()=>{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 E=w/1e3;Sg(d.x,a.x,E),Sg(d.y,a.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xM(this.relativeTarget,this.relativeTargetOrigin,f,E),g&&eM(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=_e()),Tt(g,this.relativeTarget)),S&&(this.animationValues=c,YR(c,u,this.latestValues,E,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ie.update(()=>{Vs.hasAnimatedSinceResize=!0,this.currentAnimation=sM(0,gg,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&ab(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_e();const d=bt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=bt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}Tt(s,l),vo(s,c),Li(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new tM),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(vg),this.root.sharedNodes.clear()}}}function cM(e){e.updateLayout()}function dM(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?Et(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],h=bt(f);f.min=n[d].min,f.max=f.min+h}):ab(i,r.layoutBox,n)&&Et(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],h=bt(n[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=go();Li(s,n,r.layoutBox);const l=go();a?Li(l,e.applyTransform(o,!0),r.measuredBox):Li(l,n,r.layoutBox);const u=!nb(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const y=_e();Bi(y,r.layoutBox,f.layoutBox);const S=_e();Bi(S,n,h.layoutBox),ob(y,S)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function fM(e){bn.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 pM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hM(e){e.clearSnapshot()}function vg(e){e.clearMeasurements()}function mM(e){e.isLayoutDirty=!1}function gM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function yg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vM(e){e.resolveTargetDelta()}function yM(e){e.calcProjection()}function SM(e){e.resetRotation()}function bM(e){e.removeLeadSnapshot()}function Sg(e,t,r){e.translate=ge(t.translate,0,r),e.scale=ge(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function bg(e,t,r,n){e.min=ge(t.min,r.min,n),e.max=ge(t.max,r.max,n)}function xM(e,t,r,n){bg(e.x,t.x,r.x,n),bg(e.y,t.y,r.y,n)}function wM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kM={duration:.45,ease:[.4,0,.1,1]},xg=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),wg=xg("applewebkit/")&&!xg("chrome/")?Math.round:xe;function kg(e){e.min=wg(e.min),e.max=wg(e.max)}function CM(e){kg(e.x),kg(e.y)}function ab(e,t,r){return e==="position"||e==="preserve-aspect"&&!Qd(pg(t),pg(r),.2)}const _M=ib({attachResizeListener:(e,t)=>Sr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Dc={current:void 0},sb=ib({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Dc.current){const e=new _M({});e.mount(window),e.setOptions({layoutScroll:!0}),Dc.current=e}return Dc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),TM={pan:{Feature:VR},drag:{Feature:BR,ProjectionNode:sb,MeasureLayout:eb}},PM=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function EM(e){const t=PM.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function ef(e,t,r=1){const[n,o]=EM(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const a=i.trim();return WS(a)?parseFloat(a):a}else return Wd(o)?ef(o,t,r+1):o}function $M(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!Wd(i))return;const a=ef(i,n);a&&o.set(a)});for(const o in t){const i=t[o];if(!Wd(i))continue;const a=ef(i,n);a&&(t[o]=a,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const zM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),lb=e=>zM.has(e),AM=e=>Object.keys(e).some(lb),Cg=e=>e===Wn||e===V,_g=(e,t)=>parseFloat(e.split(", ")[t]),Tg=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return _g(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?_g(i[1],e):0}},RM=new Set(["x","y","z"]),MM=_a.filter(e=>!RM.has(e));function IM(e){const t=[];return MM.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Oo={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:Tg(4,13),y:Tg(5,14)};Oo.translateX=Oo.x;Oo.translateY=Oo.y;const FM=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{s[u]=Oo[u](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=Oo[u](l,i)}),e},DM=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(lb);let i=[],a=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=ui(c);const f=t[l];let h;if(kl(f)){const y=f.length,S=f[0]===null?1:0;c=f[S],d=ui(c);for(let C=S;C=0?window.pageYOffset:null,u=FM(t,e,s);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),du&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function jM(e,t,r,n){return AM(t)?DM(e,t,r,n):{target:t,transitionEnd:n}}const LM=(e,t,r,n)=>{const o=$M(e,t,n);return t=o.target,n=o.transitionEnd,jM(e,t,r,n)},tf={current:null},ub={current:!1};function BM(){if(ub.current=!0,!!du)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tf.current=e.matches;e.addListener(t),t()}else tf.current=!1}function VM(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],a=r[o];if(dt(i))e.addValue(o,i),Pl(n)&&n.add(o);else if(dt(a))e.addValue(o,Vo(i,{owner:e})),Pl(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Vo(s!==void 0?s:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const Pg=new WeakMap,cb=Object.keys(ha),OM=cb.length,Eg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],NM=kp.length;class WM{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>ie.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=pu(r),this.isVariantNode=Y1(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{});for(const d in c){const f=c[d];s[d]!==void 0&&dt(f)&&(f.set(s[d],!1),Pl(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,Pg.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),ub.current||BM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:tf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Pg.delete(this.current),this.projection&&this.projection.unmount(),$r(this.notifyUpdate),$r(this.render),this.valueSubscriptions.forEach(t=>t()),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)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=Nn.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ie.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_e()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Vo(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return 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)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=Ap(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!dt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Op),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class db extends WM{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},i){let a=oR(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),a&&(a=o(a))),i){rR(this,n,a);const s=LM(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function UM(e){return window.getComputedStyle(e)}class HM extends db{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,r){if(Nn.has(r)){const n=Dp(r);return n&&n.default||0}else{const n=UM(t),o=(Z1(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return ZS(t,r)}build(t,r,n,o){Tp(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return zp(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){oS(t,r,n,o)}}class GM extends db{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Nn.has(r)){const n=Dp(r);return n&&n.default||0}return r=iS.has(r)?r:xp(r),t.getAttribute(r)}measureInstanceViewportBox(){return _e()}scrapeMotionValuesFromProps(t,r){return sS(t,r)}build(t,r,n,o){Ep(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){aS(t,r,n,o)}mount(t){this.isSVGTag=$p(t.tagName),super.mount(t)}}const KM=(e,t)=>_p(e)?new GM(t,{enableHardwareAcceleration:!1}):new HM(t,{enableHardwareAcceleration:!0}),YM={layout:{ProjectionNode:sb,MeasureLayout:eb}},XM={...SR,...Bz,...TM,...YM},QM=Y4((e,t)=>Tz(e,t,XM,KM));function fb(){const e=k.useRef(!1);return bp(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function qM(){const e=fb(),[t,r]=k.useState(0),n=k.useCallback(()=>{e.current&&r(t+1)},[t]);return[k.useCallback(()=>ie.postRender(n),[n]),t]}class ZM extends k.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function JM({children:e,isPresent:t}){const r=k.useId(),n=k.useRef(null),o=k.useRef({width:0,height:0,top:0,left:0});return k.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!n.current||!i||!a)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},v5={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},y5=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),S5=e=>({transitionProperty:"common",transitionDuration:"slow",...g5(e)}),b5=bi(e=>({label:v5,filledTrack:S5(e),track:y5(e)})),x5={xs:bi({track:{h:"1"}}),sm:bi({track:{h:"2"}}),md:bi({track:{h:"3"}}),lg:bi({track:{h:"4"}})},w5=m5({sizes:x5,baseStyle:b5,defaultProps:{size:"md",colorScheme:"blue"}}),k5=e=>typeof e=="function";function et(e,...t){return k5(e)?e(...t):e}var{definePartsStyle:Ds,defineMultiStyleConfig:C5}=ae(gT.keys),Fi=L("checkbox-size"),_5=e=>{const{colorScheme:t}=e;return{w:Fi.reference,h:Fi.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)}}},T5={_disabled:{cursor:"not-allowed"}},P5={userSelect:"none",_disabled:{opacity:.4}},E5={transitionProperty:"transform",transitionDuration:"normal"},$5=Ds(e=>({icon:E5,container:T5,control:et(_5,e),label:P5})),z5={sm:Ds({control:{[Fi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ds({control:{[Fi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ds({control:{[Fi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},yl=C5({baseStyle:$5,sizes:z5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:A5,definePartsStyle:js}=ae(ET.keys),R5=e=>{var t;const r=(t=et(yl.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},M5=js(e=>{var t,r,n,o;return{label:(r=(t=yl).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=yl).baseStyle)==null?void 0:o.call(n,e).container,control:R5(e)}}),I5={md:js({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:js({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:js({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},F5=A5({baseStyle:M5,sizes:I5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:D5,definePartsStyle:j5}=ae($T.keys),ss=L("select-bg"),l0,L5={...(l0=Z.baseStyle)==null?void 0:l0.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:ss.reference,[ss.variable]:"colors.white",_dark:{[ss.variable]:"colors.gray.700"},"> option, > optgroup":{bg:ss.reference}},B5={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},V5=j5({field:L5,icon:B5}),ls={paddingInlineEnd:"8"},u0,c0,d0,f0,h0,p0,m0,g0,O5={lg:{...(u0=Z.sizes)==null?void 0:u0.lg,field:{...(c0=Z.sizes)==null?void 0:c0.lg.field,...ls}},md:{...(d0=Z.sizes)==null?void 0:d0.md,field:{...(f0=Z.sizes)==null?void 0:f0.md.field,...ls}},sm:{...(h0=Z.sizes)==null?void 0:h0.sm,field:{...(p0=Z.sizes)==null?void 0:p0.sm.field,...ls}},xs:{...(m0=Z.sizes)==null?void 0:m0.xs,field:{...(g0=Z.sizes)==null?void 0:g0.xs.field,...ls},icon:{insetEnd:"1"}}},N5=D5({baseStyle:V5,sizes:O5,variants:Z.variants,defaultProps:Z.defaultProps}),dc=L("skeleton-start-color"),fc=L("skeleton-end-color"),W5={[dc.variable]:"colors.gray.100",[fc.variable]:"colors.gray.400",_dark:{[dc.variable]:"colors.gray.800",[fc.variable]:"colors.gray.600"},background:dc.reference,borderColor:fc.reference,opacity:.7,borderRadius:"sm"},U5={baseStyle:W5},hc=L("skip-link-bg"),H5={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[hc.variable]:"colors.white",_dark:{[hc.variable]:"colors.gray.700"},bg:hc.reference}},G5={baseStyle:H5},{defineMultiStyleConfig:K5,definePartsStyle:uu}=ae(zT.keys),da=L("slider-thumb-size"),fa=L("slider-track-size"),Ur=L("slider-bg"),Y5=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...gh({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},X5=e=>({...gh({orientation:e.orientation,horizontal:{h:fa.reference},vertical:{w:fa.reference}}),overflow:"hidden",borderRadius:"sm",[Ur.variable]:"colors.gray.200",_dark:{[Ur.variable]:"colors.whiteAlpha.200"},_disabled:{[Ur.variable]:"colors.gray.300",_dark:{[Ur.variable]:"colors.whiteAlpha.300"}},bg:Ur.reference}),Q5=e=>{const{orientation:t}=e;return{...gh({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:da.reference,h:da.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"}}},q5=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ur.variable]:`colors.${t}.500`,_dark:{[Ur.variable]:`colors.${t}.200`},bg:Ur.reference}},Z5=uu(e=>({container:Y5(e),track:X5(e),thumb:Q5(e),filledTrack:q5(e)})),J5=uu({container:{[da.variable]:"sizes.4",[fa.variable]:"sizes.1"}}),eE=uu({container:{[da.variable]:"sizes.3.5",[fa.variable]:"sizes.1"}}),tE=uu({container:{[da.variable]:"sizes.2.5",[fa.variable]:"sizes.0.5"}}),rE={lg:J5,md:eE,sm:tE},nE=K5({baseStyle:Z5,sizes:rE,defaultProps:{size:"md",colorScheme:"blue"}}),kn=Ie("spinner-size"),oE={width:[kn.reference],height:[kn.reference]},iE={xs:{[kn.variable]:"sizes.3"},sm:{[kn.variable]:"sizes.4"},md:{[kn.variable]:"sizes.6"},lg:{[kn.variable]:"sizes.8"},xl:{[kn.variable]:"sizes.12"}},aE={baseStyle:oE,sizes:iE,defaultProps:{size:"md"}},{defineMultiStyleConfig:sE,definePartsStyle:E1}=ae(AT.keys),lE={fontWeight:"medium"},uE={opacity:.8,marginBottom:"2"},cE={verticalAlign:"baseline",fontWeight:"semibold"},dE={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},fE=E1({container:{},label:lE,helpText:uE,number:cE,icon:dE}),hE={md:E1({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},pE=sE({baseStyle:fE,sizes:hE,defaultProps:{size:"md"}}),pc=L("kbd-bg"),mE={[pc.variable]:"colors.gray.100",_dark:{[pc.variable]:"colors.whiteAlpha.100"},bg:pc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},gE={baseStyle:mE},vE={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},yE={baseStyle:vE},{defineMultiStyleConfig:SE,definePartsStyle:bE}=ae(wT.keys),xE={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},wE=bE({icon:xE}),kE=SE({baseStyle:wE}),{defineMultiStyleConfig:CE,definePartsStyle:_E}=ae(kT.keys),qt=L("menu-bg"),mc=L("menu-shadow"),TE={[qt.variable]:"#fff",[mc.variable]:"shadows.sm",_dark:{[qt.variable]:"colors.gray.700",[mc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:qt.reference,boxShadow:mc.reference},PE={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[qt.variable]:"colors.gray.100",_dark:{[qt.variable]:"colors.whiteAlpha.100"}},_active:{[qt.variable]:"colors.gray.200",_dark:{[qt.variable]:"colors.whiteAlpha.200"}},_expanded:{[qt.variable]:"colors.gray.100",_dark:{[qt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:qt.reference},EE={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},$E={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},zE={opacity:.6},AE={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},RE={transitionProperty:"common",transitionDuration:"normal"},ME=_E({button:RE,list:TE,item:PE,groupTitle:EE,icon:$E,command:zE,divider:AE}),IE=CE({baseStyle:ME}),{defineMultiStyleConfig:FE,definePartsStyle:Od}=ae(CT.keys),gc=L("modal-bg"),vc=L("modal-shadow"),DE={bg:"blackAlpha.600",zIndex:"modal"},jE=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},LE=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[gc.variable]:"colors.white",[vc.variable]:"shadows.lg",_dark:{[gc.variable]:"colors.gray.700",[vc.variable]:"shadows.dark-lg"},bg:gc.reference,boxShadow:vc.reference}},BE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},VE={position:"absolute",top:"2",insetEnd:"3"},OE=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},NE={px:"6",py:"4"},WE=Od(e=>({overlay:DE,dialogContainer:et(jE,e),dialog:et(LE,e),header:BE,closeButton:VE,body:et(OE,e),footer:NE}));function Dt(e){return Od(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var UE={xs:Dt("xs"),sm:Dt("sm"),md:Dt("md"),lg:Dt("lg"),xl:Dt("xl"),"2xl":Dt("2xl"),"3xl":Dt("3xl"),"4xl":Dt("4xl"),"5xl":Dt("5xl"),"6xl":Dt("6xl"),full:Dt("full")},HE=FE({baseStyle:WE,sizes:UE,defaultProps:{size:"md"}}),{defineMultiStyleConfig:GE,definePartsStyle:$1}=ae(_T.keys),yh=Ie("number-input-stepper-width"),z1=Ie("number-input-input-padding"),KE=mr(yh).add("0.5rem").toString(),yc=Ie("number-input-bg"),Sc=Ie("number-input-color"),bc=Ie("number-input-border-color"),YE={[yh.variable]:"sizes.6",[z1.variable]:KE},XE=e=>{var t,r;return(r=(t=et(Z.baseStyle,e))==null?void 0:t.field)!=null?r:{}},QE={width:yh.reference},qE={borderStart:"1px solid",borderStartColor:bc.reference,color:Sc.reference,bg:yc.reference,[Sc.variable]:"colors.chakra-body-text",[bc.variable]:"colors.chakra-border-color",_dark:{[Sc.variable]:"colors.whiteAlpha.800",[bc.variable]:"colors.whiteAlpha.300"},_active:{[yc.variable]:"colors.gray.200",_dark:{[yc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},ZE=$1(e=>{var t;return{root:YE,field:(t=et(XE,e))!=null?t:{},stepperGroup:QE,stepper:qE}});function us(e){var t,r,n;const o=(t=Z.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=k1.fontSizes[a];return $1({field:{...o.field,paddingInlineEnd:z1.reference,verticalAlign:"top"},stepper:{fontSize:mr(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var JE={xs:us("xs"),sm:us("sm"),md:us("md"),lg:us("lg")},e$=GE({baseStyle:ZE,sizes:JE,variants:Z.variants,defaultProps:Z.defaultProps}),v0,t$={...(v0=Z.baseStyle)==null?void 0:v0.field,textAlign:"center"},r$={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"}},y0,S0,n$={outline:e=>{var t,r,n;return(n=(r=et((t=Z.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=et((t=Z.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=et((t=Z.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(S0=(y0=Z.variants)==null?void 0:y0.unstyled.field)!=null?S0:{}},o$={baseStyle:t$,sizes:r$,variants:n$,defaultProps:Z.defaultProps},{defineMultiStyleConfig:i$,definePartsStyle:a$}=ae(TT.keys),cs=Ie("popper-bg"),s$=Ie("popper-arrow-bg"),b0=Ie("popper-arrow-shadow-color"),l$={zIndex:10},u$={[cs.variable]:"colors.white",bg:cs.reference,[s$.variable]:cs.reference,[b0.variable]:"colors.gray.200",_dark:{[cs.variable]:"colors.gray.700",[b0.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},c$={px:3,py:2,borderBottomWidth:"1px"},d$={px:3,py:2},f$={px:3,py:2,borderTopWidth:"1px"},h$={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},p$=a$({popper:l$,content:u$,header:c$,body:d$,footer:f$,closeButton:h$}),m$=i$({baseStyle:p$}),{definePartsStyle:Nd,defineMultiStyleConfig:g$}=ae(vT.keys),xc=L("drawer-bg"),wc=L("drawer-box-shadow");function Yn(e){return Nd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var v$={bg:"blackAlpha.600",zIndex:"modal"},y$={display:"flex",zIndex:"modal",justifyContent:"center"},S$=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[xc.variable]:"colors.white",[wc.variable]:"shadows.lg",_dark:{[xc.variable]:"colors.gray.700",[wc.variable]:"shadows.dark-lg"},bg:xc.reference,boxShadow:wc.reference}},b$={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},x$={position:"absolute",top:"2",insetEnd:"3"},w$={px:"6",py:"2",flex:"1",overflow:"auto"},k$={px:"6",py:"4"},C$=Nd(e=>({overlay:v$,dialogContainer:y$,dialog:et(S$,e),header:b$,closeButton:x$,body:w$,footer:k$})),_$={xs:Yn("xs"),sm:Yn("md"),md:Yn("lg"),lg:Yn("2xl"),xl:Yn("4xl"),full:Yn("full")},T$=g$({baseStyle:C$,sizes:_$,defaultProps:{size:"xs"}}),{definePartsStyle:P$,defineMultiStyleConfig:E$}=ae(yT.keys),$$={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},z$={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},A$={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},R$=P$({preview:$$,input:z$,textarea:A$}),M$=E$({baseStyle:R$}),{definePartsStyle:I$,defineMultiStyleConfig:F$}=ae(ST.keys),Po=L("form-control-color"),D$={marginStart:"1",[Po.variable]:"colors.red.500",_dark:{[Po.variable]:"colors.red.300"},color:Po.reference},j$={mt:"2",[Po.variable]:"colors.gray.600",_dark:{[Po.variable]:"colors.whiteAlpha.600"},color:Po.reference,lineHeight:"normal",fontSize:"sm"},L$=I$({container:{width:"100%",position:"relative"},requiredIndicator:D$,helperText:j$}),B$=F$({baseStyle:L$}),{definePartsStyle:V$,defineMultiStyleConfig:O$}=ae(bT.keys),Eo=L("form-error-color"),N$={[Eo.variable]:"colors.red.500",_dark:{[Eo.variable]:"colors.red.300"},color:Eo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},W$={marginEnd:"0.5em",[Eo.variable]:"colors.red.500",_dark:{[Eo.variable]:"colors.red.300"},color:Eo.reference},U$=V$({text:N$,icon:W$}),H$=O$({baseStyle:U$}),G$={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},K$={baseStyle:G$},Y$={fontFamily:"heading",fontWeight:"bold"},X$={"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}},Q$={baseStyle:Y$,sizes:X$,defaultProps:{size:"xl"}},{defineMultiStyleConfig:q$,definePartsStyle:Z$}=ae(mT.keys),kc=L("breadcrumb-link-decor"),J$={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:kc.reference,[kc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[kc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},e3=Z$({link:J$}),t3=q$({baseStyle:e3}),r3={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"}}},A1=e=>{const{colorScheme:t,theme:r}=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 n=Bo(`${t}.200`,.12)(r),o=Bo(`${t}.200`,.24)(r);return{color:j(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:j(`${t}.50`,n)(e)},_active:{bg:j(`${t}.100`,o)(e)}}},n3=e=>{const{colorScheme:t}=e,r=j("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"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"},...et(A1,e)}},o3={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},i3=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=j("gray.100","whiteAlpha.200")(e);return{bg:l,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=(t=o3[r])!=null?t:{},s=j(n,`${r}.200`)(e);return{bg:s,color:j(o,"gray.800")(e),_hover:{bg:j(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:j(a,`${r}.400`)(e)}}},a3=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)}}},s3={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},l3={ghost:A1,outline:n3,solid:i3,link:a3,unstyled:s3},u3={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"}},c3={baseStyle:r3,variants:l3,sizes:u3,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Mn,defineMultiStyleConfig:d3}=ae(DT.keys),Sl=L("card-bg"),xr=L("card-padding"),R1=L("card-shadow"),Ls=L("card-radius"),M1=L("card-border-width","0"),I1=L("card-border-color"),f3=Mn({container:{[Sl.variable]:"colors.chakra-body-bg",backgroundColor:Sl.reference,boxShadow:R1.reference,borderRadius:Ls.reference,color:"chakra-body-text",borderWidth:M1.reference,borderColor:I1.reference},body:{padding:xr.reference,flex:"1 1 0%"},header:{padding:xr.reference},footer:{padding:xr.reference}}),h3={sm:Mn({container:{[Ls.variable]:"radii.base",[xr.variable]:"space.3"}}),md:Mn({container:{[Ls.variable]:"radii.md",[xr.variable]:"space.5"}}),lg:Mn({container:{[Ls.variable]:"radii.xl",[xr.variable]:"space.7"}})},p3={elevated:Mn({container:{[R1.variable]:"shadows.base",_dark:{[Sl.variable]:"colors.gray.700"}}}),outline:Mn({container:{[M1.variable]:"1px",[I1.variable]:"colors.chakra-border-color"}}),filled:Mn({container:{[Sl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[xr.variable]:0},header:{[xr.variable]:0},footer:{[xr.variable]:0}}},m3=d3({baseStyle:f3,variants:p3,sizes:h3,defaultProps:{variant:"elevated",size:"md"}}),Di=Ie("close-button-size"),ui=Ie("close-button-bg"),g3={w:[Di.reference],h:[Di.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ui.variable]:"colors.blackAlpha.100",_dark:{[ui.variable]:"colors.whiteAlpha.100"}},_active:{[ui.variable]:"colors.blackAlpha.200",_dark:{[ui.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ui.reference},v3={lg:{[Di.variable]:"sizes.10",fontSize:"md"},md:{[Di.variable]:"sizes.8",fontSize:"xs"},sm:{[Di.variable]:"sizes.6",fontSize:"2xs"}},y3={baseStyle:g3,sizes:v3,defaultProps:{size:"md"}},{variants:S3,defaultProps:b3}=Ii,x3={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:we.bg.reference,color:we.color.reference,boxShadow:we.shadow.reference},w3={baseStyle:x3,variants:S3,defaultProps:b3},k3={w:"100%",mx:"auto",maxW:"prose",px:"4"},C3={baseStyle:k3},_3={opacity:.6,borderColor:"inherit"},T3={borderStyle:"solid"},P3={borderStyle:"dashed"},E3={solid:T3,dashed:P3},$3={baseStyle:_3,variants:E3,defaultProps:{variant:"solid"}},{definePartsStyle:z3,defineMultiStyleConfig:A3}=ae(fT.keys),R3={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},M3={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},I3={pt:"2",px:"4",pb:"5"},F3={fontSize:"1.25em"},D3=z3({container:R3,button:M3,panel:I3,icon:F3}),j3=A3({baseStyle:D3}),{definePartsStyle:ka,defineMultiStyleConfig:L3}=ae(hT.keys),yt=L("alert-fg"),Er=L("alert-bg"),B3=ka({container:{bg:Er.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:yt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:yt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Sh(e){const{theme:t,colorScheme:r}=e,n=Bo(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var V3=ka(e=>{const{colorScheme:t}=e,r=Sh(e);return{container:{[yt.variable]:`colors.${t}.600`,[Er.variable]:r.light,_dark:{[yt.variable]:`colors.${t}.200`,[Er.variable]:r.dark}}}}),O3=ka(e=>{const{colorScheme:t}=e,r=Sh(e);return{container:{[yt.variable]:`colors.${t}.600`,[Er.variable]:r.light,_dark:{[yt.variable]:`colors.${t}.200`,[Er.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:yt.reference}}}),N3=ka(e=>{const{colorScheme:t}=e,r=Sh(e);return{container:{[yt.variable]:`colors.${t}.600`,[Er.variable]:r.light,_dark:{[yt.variable]:`colors.${t}.200`,[Er.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:yt.reference}}}),W3=ka(e=>{const{colorScheme:t}=e;return{container:{[yt.variable]:"colors.white",[Er.variable]:`colors.${t}.600`,_dark:{[yt.variable]:"colors.gray.900",[Er.variable]:`colors.${t}.200`},color:yt.reference}}}),U3={subtle:V3,"left-accent":O3,"top-accent":N3,solid:W3},H3=L3({baseStyle:B3,variants:U3,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:F1,defineMultiStyleConfig:G3}=ae(pT.keys),$o=L("avatar-border-color"),ji=L("avatar-bg"),ha=L("avatar-font-size"),Vo=L("avatar-size"),K3={borderRadius:"full",border:"0.2em solid",borderColor:$o.reference,[$o.variable]:"white",_dark:{[$o.variable]:"colors.gray.800"}},Y3={bg:ji.reference,fontSize:ha.reference,width:Vo.reference,height:Vo.reference,lineHeight:"1",[ji.variable]:"colors.gray.200",_dark:{[ji.variable]:"colors.whiteAlpha.400"}},X3=e=>{const{name:t,theme:r}=e,n=t?rP({string:t}):"colors.gray.400",o=eP(n)(r);let i="white";return o||(i="gray.800"),{bg:ji.reference,fontSize:ha.reference,color:i,borderColor:$o.reference,verticalAlign:"top",width:Vo.reference,height:Vo.reference,"&:not([data-loaded])":{[ji.variable]:n},[$o.variable]:"colors.white",_dark:{[$o.variable]:"colors.gray.800"}}},Q3={fontSize:ha.reference,lineHeight:"1"},q3=F1(e=>({badge:et(K3,e),excessLabel:et(Y3,e),container:et(X3,e),label:Q3}));function jr(e){const t=e!=="100%"?_1[e]:void 0;return F1({container:{[Vo.variable]:t??e,[ha.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Vo.variable]:t??e,[ha.variable]:`calc(${t??e} / 2.5)`}})}var Z3={"2xs":jr(4),xs:jr(6),sm:jr(8),md:jr(12),lg:jr(16),xl:jr(24),"2xl":jr(32),full:jr("100%")},J3=G3({baseStyle:q3,sizes:Z3,defaultProps:{size:"md"}}),e4={Accordion:j3,Alert:H3,Avatar:J3,Badge:Ii,Breadcrumb:t3,Button:c3,Checkbox:yl,CloseButton:y3,Code:w3,Container:C3,Divider:$3,Drawer:T$,Editable:M$,Form:B$,FormError:H$,FormLabel:K$,Heading:Q$,Input:Z,Kbd:gE,Link:yE,List:kE,Menu:IE,Modal:HE,NumberInput:e$,PinInput:o$,Popover:m$,Progress:w5,Radio:F5,Select:N5,Skeleton:U5,SkipLink:G5,Slider:nE,Spinner:aE,Stat:pE,Switch:yP,Table:_P,Tabs:VP,Tag:JP,Textarea:d5,Tooltip:p5,Card:m3,Stepper:dT},t4={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"}}},r4={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"}}},n4="ltr",o4={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},i4={semanticTokens:t4,direction:n4,...lT,components:e4,styles:r4,config:o4};function a4(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function s4(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},D1=l4(s4);function j1(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var L1=e=>j1(e,t=>t!=null);function u4(e){return typeof e=="function"}function B1(e,...t){return u4(e)?e(...t):e}var c4=typeof Element<"u",d4=typeof Map=="function",f4=typeof Set=="function",h4=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bs(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Bs(e[n],t[n]))return!1;return!0}var i;if(d4&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!Bs(n.value[1],t.get(n.value[0])))return!1;return!0}if(f4&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(h4&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])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),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(c4&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!Bs(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var p4=function(t,r){try{return Bs(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const m4=af(p4);function V1(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:a}=w2(),s=e?D1(i,`components.${e}`):void 0,l=n||s,u=tr({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},L1(a4(o,["children"]))),c=k.useRef({});if(l){const f=L_(l)(u);m4(c.current,f)||(c.current=f)}return c.current}function Ko(e,t={}){return V1(e,t)}function Ca(e,t={}){return V1(e,t)}var g4=new Set([...T_,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),v4=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function y4(e){return v4.has(e)||!g4.has(e)}function S4(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function O1(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var b4=/^((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|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,x4=Jy(function(e){return b4.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),w4=x4,k4=function(t){return t!=="theme"},x0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?w4:k4},w0=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},C4=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return i1(r,n,o),t2(function(){return a1(r,n,o)}),null},_4=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=w0(t,r,n),l=s||x0(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,s=j1(a,(d,f)=>E_(f)),l=B1(e,t),u=S4({},o,l,L1(s),i),c=w1(u)(t.theme);return n?[c,n]:c};function Cc(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=y4);const o=E4({baseStyle:r}),i=P4(e,n)(o);return zo.forwardRef(function(l,u){const{colorMode:c,forced:d}=dh();return zo.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function $4(){const e=new Map;return new Proxy(Cc,{apply(t,r,n){return Cc(...n)},get(t,r){return e.has(r)||e.set(r,Cc(r)),e.get(r)}})}var ce=$4();function Ee(e){return k.forwardRef(e)}function N1(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=k.createContext(void 0);o.displayName=n;function i(){var a;const s=k.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function z4(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=k.useMemo(()=>__(r),[r]);return T.jsxs(o2,{theme:o,children:[T.jsx(A4,{root:t}),n]})}function A4({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return T.jsx(ou,{styles:r=>({[t]:r.__cssVars})})}N1({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function R4(e){return N1({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function M4(){const{colorMode:e}=dh();return T.jsx(ou,{styles:t=>{const r=D1(t,"styles.global"),n=B1(r,{theme:t,colorMode:e});return n?w1(n)(t):void 0}})}var W1=k.createContext({getDocument(){return document},getWindow(){return window}});W1.displayName="EnvironmentContext";function U1(e){const{children:t,environment:r,disabled:n}=e,o=k.useRef(null),i=k.useMemo(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),a=!n||!r;return T.jsxs(W1.Provider,{value:i,children:[t,a&&T.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}U1.displayName="EnvironmentProvider";var I4=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=T.jsx(U1,{environment:s,disabled:u,children:t});return T.jsx(z4,{theme:a,cssVarsRoot:l,children:T.jsxs(m1,{colorModeManager:r,options:a.config,children:[i?T.jsx(l2,{scope:o}):T.jsx(s2,{}),!c&&T.jsx(M4,{}),n?T.jsx(h1,{zIndex:n,children:d}):d]})})},F4=(e,t)=>e.find(r=>r.id===t);function C0(e,t){const r=H1(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function H1(e,t){for(const[r,n]of Object.entries(e))if(F4(n,t))return r}function D4(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function j4(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=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)",a=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:r,top:n,bottom:o,right:i,left:a}}function L4(e,t=[]){const r=k.useRef(e);return k.useEffect(()=>{r.current=e}),k.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function B4(e,t){const r=L4(e);k.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function _0(e,t){const r=k.useRef(!1),n=k.useRef(!1);k.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),k.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const G1=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),cu=k.createContext({}),_a=k.createContext(null),du=typeof document<"u",bh=du?k.useLayoutEffect:k.useEffect,K1=k.createContext({strict:!1}),xh=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),V4="framerAppearId",Y1="data-"+xh(V4);function O4(e,t,r,n){const{visualElement:o}=k.useContext(cu),i=k.useContext(K1),a=k.useContext(_a),s=k.useContext(G1).reducedMotion,l=k.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;k.useInsertionEffect(()=>{u&&u.update(r,a)});const c=k.useRef(!!(r[Y1]&&!window.HandoffComplete));return bh(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),k.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function po(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function N4(e,t,r){return k.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):po(r)&&(r.current=n))},[t])}function pa(e){return typeof e=="string"||Array.isArray(e)}function fu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const wh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kh=["initial",...wh];function hu(e){return fu(e.animate)||kh.some(t=>pa(e[t]))}function X1(e){return!!(hu(e)||e.variants)}function W4(e,t){if(hu(e)){const{initial:r,animate:n}=e;return{initial:r===!1||pa(r)?r:void 0,animate:pa(n)?n:void 0}}return e.inherit!==!1?t:{}}function U4(e){const{initial:t,animate:r}=W4(e,k.useContext(cu));return k.useMemo(()=>({initial:t,animate:r}),[T0(t),T0(r)])}function T0(e){return Array.isArray(e)?e.join(" "):e}const P0={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"]},ma={};for(const e in P0)ma[e]={isEnabled:t=>P0[e].some(r=>!!t[r])};function H4(e){for(const t in e)ma[t]={...ma[t],...e[t]}}const Ch=k.createContext({}),Q1=k.createContext({}),G4=Symbol.for("motionComponentSymbol");function K4({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&H4(e);function i(s,l){let u;const c={...k.useContext(G1),...s,layoutId:Y4(s)},{isStatic:d}=c,f=U4(s),p=n(s,d);if(!d&&du){f.visualElement=O4(o,p,c,t);const y=k.useContext(Q1),S=k.useContext(K1).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,S,e,y))}return k.createElement(cu.Provider,{value:f},u&&f.visualElement?k.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,s,N4(p,f.visualElement,l),p,d,f.visualElement))}const a=k.forwardRef(i);return a[G4]=o,a}function Y4({layoutId:e}){const t=k.useContext(Ch).id;return t&&e!==void 0?t+"-"+e:e}function X4(e){function t(n,o={}){return K4(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const Q4=["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 _h(e){return typeof e!="string"||e.includes("-")?!1:!!(Q4.indexOf(e)>-1||/[A-Z]/.test(e))}const xl={};function q4(e){Object.assign(xl,e)}const Ta=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nn=new Set(Ta);function q1(e,{layout:t,layoutId:r}){return Nn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!xl[e]||e==="opacity")}const dt=e=>!!(e&&e.getVelocity),Z4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},J4=Ta.length;function ez(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),J1=Z1("--"),Wd=Z1("var(--"),tz=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,rz=(e,t)=>t&&typeof e=="number"?t.transform(e):e,an=(e,t,r)=>Math.min(Math.max(r,e),t),Wn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Li={...Wn,transform:e=>an(0,1,e)},ds={...Wn,default:1},Bi=e=>Math.round(e*1e5)/1e5,pu=/(-)?([\d]*\.?[\d])+/g,eS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nz=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Pa(e){return typeof e=="string"}const Ea=e=>({test:t=>Pa(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Lr=Ea("deg"),sr=Ea("%"),V=Ea("px"),oz=Ea("vh"),iz=Ea("vw"),E0={...sr,parse:e=>sr.parse(e)/100,transform:e=>sr.transform(e*100)},$0={...Wn,transform:Math.round},tS={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,size:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,rotate:Lr,rotateX:Lr,rotateY:Lr,rotateZ:Lr,scale:ds,scaleX:ds,scaleY:ds,scaleZ:ds,skew:Lr,skewX:Lr,skewY:Lr,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Li,originX:E0,originY:E0,originZ:V,zIndex:$0,fillOpacity:Li,strokeOpacity:Li,numOctaves:$0};function Th(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(J1(d)){i[d]=f;continue}const p=tS[d],y=rz(f,p);if(Nn.has(d)){if(l=!0,a[d]=y,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=y):o[d]=y}if(t.transform||(l||n?o.transform=ez(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;o.transformOrigin=`${d} ${f} ${p}`}}const Ph=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rS(e,t,r){for(const n in t)!dt(t[n])&&!q1(n,r)&&(e[n]=t[n])}function az({transformTemplate:e},t,r){return k.useMemo(()=>{const n=Ph();return Th(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function sz(e,t,r){const n=e.style||{},o={};return rS(o,n,e),Object.assign(o,az(e,t,r)),e.transformValues?e.transformValues(o):o}function lz(e,t,r){const n={},o=sz(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,n}const uz=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function wl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uz.has(e)}let nS=e=>!wl(e);function cz(e){e&&(nS=t=>t.startsWith("on")?!wl(t):e(t))}try{cz(require("@emotion/is-prop-valid").default)}catch{}function dz(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(nS(o)||r===!0&&wl(o)||!t&&!wl(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function z0(e,t,r){return typeof e=="string"?e:V.transform(t+r*e)}function fz(e,t,r){const n=z0(t,e.x,e.width),o=z0(r,e.y,e.height);return`${n} ${o}`}const hz={offset:"stroke-dashoffset",array:"stroke-dasharray"},pz={offset:"strokeDashoffset",array:"strokeDasharray"};function mz(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?hz:pz;e[i.offset]=V.transform(-n);const a=V.transform(t),s=V.transform(r);e[i.array]=`${a} ${s}`}function Eh(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(Th(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=fz(S,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),a!==void 0&&mz(p,a,s,l,!1)}const oS=()=>({...Ph(),attrs:{}}),$h=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gz(e,t,r,n){const o=k.useMemo(()=>{const i=oS();return Eh(i,t,{enableHardwareAcceleration:!1},$h(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};rS(i,e.style,e),o.style={...i,...o.style}}return o}function vz(e=!1){return(r,n,o,{latestValues:i},a)=>{const l=(_h(r)?gz:lz)(n,i,a,r),c={...dz(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=k.useMemo(()=>dt(d)?d.get():d,[d]);return k.createElement(r,{...c,children:f})}}function iS(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}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 sS(e,t,r,n){iS(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(aS.has(o)?o:xh(o),t.attrs[o])}function zh(e,t){const{style:r}=e,n={};for(const o in r)(dt(r[o])||t.style&&dt(t.style[o])||q1(o,e))&&(n[o]=r[o]);return n}function lS(e,t){const r=zh(e,t);for(const n in e)if(dt(e[n])||dt(t[n])){const o=Ta.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function Ah(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function uS(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const kl=e=>Array.isArray(e),yz=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Sz=e=>kl(e)?e[e.length-1]||0:e;function Vs(e){const t=dt(e)?e.get():e;return yz(t)?t.toValue():t}function bz({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:xz(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const cS=e=>(t,r)=>{const n=k.useContext(cu),o=k.useContext(_a),i=()=>bz(e,t,n,o);return r?i():uS(i)};function xz(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=Vs(i[f]);let{initial:a,animate:s}=e;const l=hu(e),u=X1(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const d=c?s:a;return d&&typeof d!="boolean"&&!fu(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const y=Ah(e,p);if(!y)return;const{transitionEnd:S,transition:C,...m}=y;for(const h in m){let g=m[h];if(Array.isArray(g)){const w=c?g.length-1:0;g=g[w]}g!==null&&(o[h]=g)}for(const h in S)o[h]=S[h]}),o}const xe=e=>e;class A0{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function wz(e){let t=new A0,r=new A0,n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&a.add(l),f.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[f]=wz(()=>r=!0),d),{}),a=d=>i[d].process(o),s=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,kz),1),o.timestamp=d,o.isProcessing=!0,fs.forEach(a),o.isProcessing=!1,r&&t&&(n=!1,e(s))},l=()=>{r=!0,n=!0,o.isProcessing||e(s)};return{schedule:fs.reduce((d,f)=>{const p=i[f];return d[f]=(y,S=!1,C=!1)=>(r||l(),p.schedule(y,S,C)),d},{}),cancel:d=>fs.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:ie,cancel:$r,state:Ke,steps:_c}=Cz(typeof requestAnimationFrame<"u"?requestAnimationFrame:xe,!0),_z={useVisualState:cS({scrapeMotionValuesFromProps:lS,createRenderState:oS,onMount:(e,t,{renderState:r,latestValues:n})=>{ie.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),ie.render(()=>{Eh(r,n,{enableHardwareAcceleration:!1},$h(t.tagName),e.transformTemplate),sS(t,r)})}})},Tz={useVisualState:cS({scrapeMotionValuesFromProps:zh,createRenderState:Ph})};function Pz(e,{forwardMotionProps:t=!1},r,n){return{..._h(e)?_z:Tz,preloadedFeatures:r,useRender:vz(t),createVisualElement:n,Component:e}}function Sr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const dS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function mu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Ez=e=>t=>dS(t)&&e(t,mu(t));function wr(e,t,r,n){return Sr(e,t,Ez(r),n)}const $z=(e,t)=>r=>t(e(r)),rn=(...e)=>e.reduce($z);function fS(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const R0=fS("dragHorizontal"),M0=fS("dragVertical");function hS(e){let t=!1;if(e==="y")t=M0();else if(e==="x")t=R0();else{const r=R0(),n=M0();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function pS(){const e=hS(!0);return e?(e(),!1):!0}class dn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function I0(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.pointerType==="touch"||pS())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&ie.update(()=>s[n](i,a))};return wr(e.current,r,o,{passive:!e.getProps()[n]})}class zz extends dn{mount(){this.unmount=rn(I0(this.node,!0),I0(this.node,!1))}unmount(){}}class Az extends dn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rn(Sr(this.node.current,"focus",()=>this.onFocus()),Sr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const mS=(e,t)=>t?e===t?!0:mS(e,t.parentElement):!1;function Tc(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,mu(r))}class Rz extends dn{constructor(){super(...arguments),this.removeStartListeners=xe,this.removeEndListeners=xe,this.removeAccessibleListeners=xe,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=wr(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();ie.update(()=>{!d&&!mS(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)})},{passive:!(n.onTap||n.onPointerUp)}),a=wr(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=rn(i,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Tc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&ie.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Sr(this.node.current,"keyup",a),Tc("down",(s,l)=>{this.startPress(s,l)})},r=Sr(this.node.current,"keydown",t),n=()=>{this.isPressing&&Tc("cancel",(i,a)=>this.cancelPress(i,a))},o=Sr(this.node.current,"blur",n);this.removeAccessibleListeners=rn(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ie.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!pS()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ie.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=wr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Sr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=rn(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ud=new WeakMap,Pc=new WeakMap,Mz=e=>{const t=Ud.get(e.target);t&&t(e)},Iz=e=>{e.forEach(Mz)};function Fz({root:e,...t}){const r=e||document;Pc.has(r)||Pc.set(r,{});const n=Pc.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(Iz,{root:e,...t})),n[o]}function Dz(e,t,r){const n=Fz(t);return Ud.set(e,r),n.observe(e),()=>{Ud.delete(e),n.unobserve(e)}}const jz={some:0,all:1};class Lz extends dn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:jz[o]},s=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 Dz(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Bz(t,r))&&this.startObserver()}unmount(){}}function Bz({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Vz={inView:{Feature:Lz},tap:{Feature:Rz},focus:{Feature:Az},hover:{Feature:zz}};function gS(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function Nz(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function gu(e,t,r){const n=e.getProps();return Ah(n,t,r!==void 0?r:n.custom,Oz(e),Nz(e))}let Rh=xe;const In=e=>e*1e3,kr=e=>e/1e3,Wz={current:!1},vS=e=>Array.isArray(e)&&typeof e[0]=="number";function yS(e){return!!(!e||typeof e=="string"&&SS[e]||vS(e)||Array.isArray(e)&&e.every(yS))}const xi=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,SS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xi([0,.65,.55,1]),circOut:xi([.55,0,1,.45]),backIn:xi([.31,.01,.66,-.59]),backOut:xi([.33,1.53,.69,.99])};function bS(e){if(e)return vS(e)?xi(e):Array.isArray(e)?e.map(bS):SS[e]}function Uz(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=bS(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function Hz(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const xS=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Gz=1e-7,Kz=12;function Yz(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=xS(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>Gz&&++sYz(i,0,1,e,r);return i=>i===0||i===1?i:xS(o(i),t,n)}const Xz=$a(.42,0,1,1),Qz=$a(0,0,.58,1),wS=$a(.42,0,.58,1),qz=e=>Array.isArray(e)&&typeof e[0]!="number",kS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,CS=e=>t=>1-e(1-t),Mh=e=>1-Math.sin(Math.acos(e)),_S=CS(Mh),Zz=kS(Mh),TS=$a(.33,1.53,.69,.99),Ih=CS(TS),Jz=kS(Ih),eA=e=>(e*=2)<1?.5*Ih(e):.5*(2-Math.pow(2,-10*(e-1))),tA={linear:xe,easeIn:Xz,easeInOut:wS,easeOut:Qz,circIn:Mh,circInOut:Zz,circOut:_S,backIn:Ih,backInOut:Jz,backOut:TS,anticipate:eA},F0=e=>{if(Array.isArray(e)){Rh(e.length===4);const[t,r,n,o]=e;return $a(t,r,n,o)}else if(typeof e=="string")return tA[e];return e},Fh=(e,t)=>r=>!!(Pa(r)&&nz.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),PS=(e,t,r)=>n=>{if(!Pa(n))return n;const[o,i,a,s]=n.match(pu);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},rA=e=>an(0,255,e),Ec={...Wn,transform:e=>Math.round(rA(e))},En={test:Fh("rgb","red"),parse:PS("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ec.transform(e)+", "+Ec.transform(t)+", "+Ec.transform(r)+", "+Bi(Li.transform(n))+")"};function nA(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Hd={test:Fh("#"),parse:nA,transform:En.transform},mo={test:Fh("hsl","hue"),parse:PS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+sr.transform(Bi(t))+", "+sr.transform(Bi(r))+", "+Bi(Li.transform(n))+")"},Qe={test:e=>En.test(e)||Hd.test(e)||mo.test(e),parse:e=>En.test(e)?En.parse(e):mo.test(e)?mo.parse(e):Hd.parse(e),transform:e=>Pa(e)?e:e.hasOwnProperty("red")?En.transform(e):mo.transform(e)},ge=(e,t,r)=>-r*e+r*t+e;function $c(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function oA({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=$c(l,s,e+1/3),i=$c(l,s,e),a=$c(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const zc=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},iA=[Hd,En,mo],aA=e=>iA.find(t=>t.test(e));function D0(e){const t=aA(e);let r=t.parse(e);return t===mo&&(r=oA(r)),r}const ES=(e,t)=>{const r=D0(e),n=D0(t),o={...r};return i=>(o.red=zc(r.red,n.red,i),o.green=zc(r.green,n.green,i),o.blue=zc(r.blue,n.blue,i),o.alpha=ge(r.alpha,n.alpha,i),En.transform(o))};function sA(e){var t,r;return isNaN(e)&&Pa(e)&&(((t=e.match(pu))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(eS))===null||r===void 0?void 0:r.length)||0)>0}const $S={regex:tz,countKey:"Vars",token:"${v}",parse:xe},zS={regex:eS,countKey:"Colors",token:"${c}",parse:Qe.parse},AS={regex:pu,countKey:"Numbers",token:"${n}",parse:Wn.parse};function Ac(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function Cl(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Ac(r,$S),Ac(r,zS),Ac(r,AS),r}function RS(e){return Cl(e).values}function MS(e){const{values:t,numColors:r,numVars:n,tokenised:o}=Cl(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function uA(e){const t=RS(e);return MS(e)(t.map(lA))}const sn={test:sA,parse:RS,createTransformer:MS,getAnimatableNone:uA},IS=(e,t)=>r=>`${r>0?t:e}`;function FS(e,t){return typeof e=="number"?r=>ge(e,t,r):Qe.test(e)?ES(e,t):e.startsWith("var(")?IS(e,t):jS(e,t)}const DS=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>FS(i,t[a]));return i=>{for(let a=0;a{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=FS(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},jS=(e,t)=>{const r=sn.createTransformer(t),n=Cl(e),o=Cl(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?rn(DS(n.values,o.values),r):IS(e,t)},ga=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},j0=(e,t)=>r=>ge(e,t,r);function dA(e){return typeof e=="number"?j0:typeof e=="string"?Qe.test(e)?ES:jS:Array.isArray(e)?DS:typeof e=="object"?cA:j0}function fA(e,t,r){const n=[],o=r||dA(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=fA(t,n,o),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(an(e[0],e[i-1],u)):l}function hA(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=ga(0,t,n);e.push(ge(r,1,o))}}function pA(e){const t=[0];return hA(t,e.length-1),t}function mA(e,t){return e.map(r=>r*t)}function gA(e,t){return e.map(()=>t||wS).splice(0,e.length-1)}function _l({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=qz(n)?n.map(F0):F0(n),i={done:!1,value:t[0]},a=mA(r&&r.length===t.length?r:pA(t),e),s=LS(a,t,{ease:Array.isArray(o)?o:gA(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function BS(e,t){return t?e*(1e3/t):0}const vA=5;function VS(e,t,r){const n=Math.max(t-vA,0);return BS(r-e(n),t-n)}const Rc=.001,yA=.01,SA=10,bA=.05,xA=1;function wA({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i,a=1-t;a=an(bA,xA,a),e=an(yA,SA,kr(e)),a<1?(o=u=>{const c=u*a,d=c*e,f=c-r,p=Gd(u,a),y=Math.exp(-d);return Rc-f/p*y},i=u=>{const d=u*a*e,f=d*r+r,p=Math.pow(a,2)*Math.pow(u,2)*e,y=Math.exp(-d),S=Gd(Math.pow(u,2),a);return(-o(u)+Rc>0?-1:1)*((f-p)*y)/S}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-Rc+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const s=5/e,l=CA(o,i,s);if(e=In(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const kA=12;function CA(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function PA(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!L0(e,TA)&&L0(e,_A)){const r=wA(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function OS({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=PA({...n,velocity:-kr(n.velocity||0)}),p=d||0,y=l/(2*Math.sqrt(s*u)),S=i-o,C=kr(Math.sqrt(s/u)),m=Math.abs(S)<5;r||(r=m?.01:2),t||(t=m?.005:.5);let h;if(y<1){const g=Gd(C,y);h=w=>{const E=Math.exp(-y*C*w);return i-E*((p+y*C*S)/g*Math.sin(g*w)+S*Math.cos(g*w))}}else if(y===1)h=g=>i-Math.exp(-C*g)*(S+(p+C*S)*g);else{const g=C*Math.sqrt(y*y-1);h=w=>{const E=Math.exp(-y*C*w),z=Math.min(g*w,300);return i-E*((p+y*C*S)*Math.sinh(z)+g*S*Math.cosh(z))/g}}return{calculatedDuration:f&&c||null,next:g=>{const w=h(g);if(f)a.done=g>=c;else{let E=p;g!==0&&(y<1?E=VS(h,g,w):E=0);const z=Math.abs(E)<=r,P=Math.abs(i-w)<=t;a.done=z&&P}return a.value=a.done?i:w,a}}}function B0({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=$=>s!==void 0&&$l,y=$=>s===void 0?l:l===void 0||Math.abs(s-$)-S*Math.exp(-$/n),g=$=>m+h($),w=$=>{const F=h($),D=g($);f.done=Math.abs(F)<=u,f.value=f.done?m:D};let E,z;const P=$=>{p(f.value)&&(E=$,z=OS({keyframes:[f.value,y(f.value)],velocity:VS(g,$,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:$=>{let F=!1;return!z&&E===void 0&&(F=!0,w($),P($)),E!==void 0&&$>E?z.next($-E):(!F&&w($),f)}}}const EA=e=>{const t=({timestamp:r})=>e(r);return{start:()=>ie.update(t,!0),stop:()=>$r(t),now:()=>Ke.isProcessing?Ke.timestamp:performance.now()}},V0=2e4;function O0(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=V0?1/0:t}const $A={decay:B0,inertia:B0,tween:_l,keyframes:_l,spring:OS};function Tl({autoplay:e=!0,delay:t=0,driver:r=EA,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,y=!1,S,C;const m=()=>{C=new Promise(O=>{S=O})};m();let h;const g=$A[o]||_l;let w;g!==_l&&typeof n[0]!="number"&&(w=LS([0,100],n,{clamp:!1}),n=[0,100]);const E=g({...f,keyframes:n});let z;s==="mirror"&&(z=g({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let P="idle",$=null,F=null,D=null;E.calculatedDuration===null&&i&&(E.calculatedDuration=O0(E));const{calculatedDuration:ke}=E;let $e=1/0,Le=1/0;ke!==null&&($e=ke+a,Le=$e*(i+1)-a);let Ce=0;const Ut=O=>{if(F===null)return;p>0&&(F=Math.min(F,O)),p<0&&(F=Math.min(O-Le/p,F)),$!==null?Ce=$:Ce=Math.round(O-F)*p;const ne=Ce-t*(p>=0?1:-1),K=p>=0?ne<0:ne>Le;Ce=Math.max(ne,0),P==="finished"&&$===null&&(Ce=Le);let ft=Ce,Rr=E;if(i){const Un=Math.min(Ce,Le)/$e;let Mr=Math.floor(Un),Gt=Un%1;!Gt&&Un>=1&&(Gt=1),Gt===1&&Mr--,Mr=Math.min(Mr,i+1),!!(Mr%2)&&(s==="reverse"?(Gt=1-Gt,a&&(Gt-=a/$e)):s==="mirror"&&(Rr=z)),ft=an(0,1,Gt)*$e}const ze=K?{done:!1,value:n[0]}:Rr.next(ft);w&&(ze.value=w(ze.value));let{done:Ht}=ze;!K&&ke!==null&&(Ht=p>=0?Ce>=Le:Ce<=0);const fn=$===null&&(P==="finished"||P==="running"&&Ht);return d&&d(ze.value),fn&&R(),ze},pe=()=>{h&&h.stop(),h=void 0},nt=()=>{P="idle",pe(),S(),m(),F=D=null},R=()=>{P="finished",c&&c(),pe(),S()},B=()=>{if(y)return;h||(h=r(Ut));const O=h.now();l&&l(),$!==null?F=O-$:(!F||P==="finished")&&(F=O),P==="finished"&&m(),D=F,$=null,P="running",h.start()};e&&B();const N={then(O,ne){return C.then(O,ne)},get time(){return kr(Ce)},set time(O){O=In(O),Ce=O,$!==null||!h||p===0?$=O:F=h.now()-O/p},get duration(){const O=E.calculatedDuration===null?O0(E):E.calculatedDuration;return kr(O)},get speed(){return p},set speed(O){O===p||!h||(p=O,N.time=kr(Ce))},get state(){return P},play:B,pause:()=>{P="paused",$=Ce},stop:()=>{y=!0,P!=="idle"&&(P="idle",u&&u(),nt())},cancel:()=>{D!==null&&Ut(D),nt()},complete:()=>{P="finished"},sample:O=>(F=0,Ut(O))};return N}function zA(e){let t;return()=>(t===void 0&&(t=e()),t)}const AA=zA(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),RA=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),hs=10,MA=2e4,IA=(e,t)=>t.type==="spring"||e==="backgroundColor"||!yS(t.ease);function FA(e,t,{onUpdate:r,onComplete:n,...o}){if(!(AA()&&RA.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l,u=!1;const c=()=>{l=new Promise(g=>{s=g})};c();let{keyframes:d,duration:f=300,ease:p,times:y}=o;if(IA(t,o)){const g=Tl({...o,repeat:0,delay:0});let w={done:!1,value:d[0]};const E=[];let z=0;for(;!w.done&&z{u=!1,S.cancel()},m=()=>{u=!0,ie.update(C),s(),c()};return S.onfinish=()=>{u||(e.set(Hz(d,o)),n&&n(),m())},{then(g,w){return l.then(g,w)},attachTimeline(g){return S.timeline=g,S.onfinish=null,xe},get time(){return kr(S.currentTime||0)},set time(g){S.currentTime=In(g)},get speed(){return S.playbackRate},set speed(g){S.playbackRate=g},get duration(){return kr(f)},play:()=>{a||(S.play(),$r(C))},pause:()=>S.pause(),stop:()=>{if(a=!0,S.playState==="idle")return;const{currentTime:g}=S;if(g){const w=Tl({...o,autoplay:!1});e.setWithVelocity(w.sample(g-hs).value,w.sample(g).value,hs)}m()},complete:()=>{u||S.finish()},cancel:m}}function DA({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:xe,pause:xe,stop:xe,then:i=>(i(),Promise.resolve()),cancel:xe,complete:xe});return t?Tl({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const jA={type:"spring",stiffness:500,damping:25,restSpeed:10},LA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),BA={type:"keyframes",duration:.8},VA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OA=(e,{keyframes:t})=>t.length>2?BA:Nn.has(e)?e.startsWith("scale")?LA(t[1]):jA:VA,Kd=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(sn.test(t)||t==="0")&&!t.startsWith("url(")),NA=new Set(["brightness","contrast","saturate","opacity"]);function WA(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(pu)||[];if(!n)return e;const o=r.replace(n,"");let i=NA.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const UA=/([a-z-]*)\(.*?\)/g,Yd={...sn,getAnimatableNone:e=>{const t=e.match(UA);return t?t.map(WA).join(" "):e}},HA={...tS,color:Qe,backgroundColor:Qe,outlineColor:Qe,fill:Qe,stroke:Qe,borderColor:Qe,borderTopColor:Qe,borderRightColor:Qe,borderBottomColor:Qe,borderLeftColor:Qe,filter:Yd,WebkitFilter:Yd},Dh=e=>HA[e];function NS(e,t){let r=Dh(e);return r!==Yd&&(r=sn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const WS=e=>/^0[^.\s]+$/.test(e);function GA(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||WS(e)}function KA(e,t,r,n){const o=Kd(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const l=[];for(let u=0;uo=>{const i=jh(n,e)||{},a=i.delay||n.delay||0;let{elapsed:s=0}=n;s=s-In(a);const l=KA(t,e,r,i),u=l[0],c=l[l.length-1],d=Kd(e,u),f=Kd(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:y=>{t.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(YA(i)||(p={...p,...OA(e,p)}),p.duration&&(p.duration=In(p.duration)),p.repeatDelay&&(p.repeatDelay=In(p.repeatDelay)),!d||!f||Wz.current||i.type===!1||XA.skipAnimations)return DA(p);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=FA(t,e,p);if(y)return y}return Tl(p)};function Pl(e){return!!(dt(e)&&e.add)}const US=e=>/^\-?\d*\.?\d+$/.test(e);function Bh(e,t){e.indexOf(t)===-1&&e.push(t)}function Vh(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Oh{constructor(){this.subscriptions=[]}add(t){return Bh(this.subscriptions,t),()=>Vh(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class qA{constructor(t,r={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:a}=Ke;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,ie.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ie.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=QA(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Oh);const n=this.events[t].add(r);return t==="change"?()=>{n(),ie.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?BS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 Oo(e,t){return new qA(e,t)}const HS=e=>t=>t.test(e),ZA={test:e=>e==="auto",parse:e=>e},GS=[Wn,V,sr,Lr,iz,oz,ZA],ci=e=>GS.find(HS(e)),JA=[...GS,Qe,sn],eR=e=>JA.find(HS(e));function tR(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Oo(r))}function rR(e,t){const r=gu(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const a in i){const s=Sz(i[a]);tR(e,a,s)}}function nR(e,t,r){var n,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;sl.remove(d))),u.push(C)}return a&&Promise.all(u).then(()=>{a&&rR(e,a)}),u}function Xd(e,t,r={}){const n=gu(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(KS(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return lR(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,u]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>u())}else return Promise.all([i(),a(r.delay)])}function lR(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>s-u*n;return Array.from(e.variantChildren).sort(uR).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Xd(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function uR(e,t){return e.sortNodePosition(t)}function cR(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Xd(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Xd(e,t,r);else{const o=typeof t=="function"?gu(e,t,r.custom):t;n=Promise.all(KS(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const dR=[...wh].reverse(),fR=wh.length;function hR(e){return t=>Promise.all(t.map(({animation:r,options:n})=>cR(e,r,n)))}function pR(e){let t=hR(e);const r=gR();let n=!0;const o=(l,u)=>{const c=gu(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function a(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let y={},S=1/0;for(let m=0;mS&&E,D=!1;const ke=Array.isArray(w)?w:[w];let $e=ke.reduce(o,{});z===!1&&($e={});const{prevResolvedValues:Le={}}=g,Ce={...Le,...$e},Ut=pe=>{F=!0,p.has(pe)&&(D=!0,p.delete(pe)),g.needsAnimating[pe]=!0};for(const pe in Ce){const nt=$e[pe],R=Le[pe];if(y.hasOwnProperty(pe))continue;let B=!1;kl(nt)&&kl(R)?B=!gS(nt,R):B=nt!==R,B?nt!==void 0?Ut(pe):p.add(pe):nt!==void 0&&p.has(pe)?Ut(pe):g.protectedKeys[pe]=!0}g.prevProp=w,g.prevResolvedValues=$e,g.isActive&&(y={...y,...$e}),n&&e.blockInitialAnimation&&(F=!1),F&&(!P||D)&&f.push(...ke.map(pe=>({animation:pe,options:{type:h,...l}})))}if(p.size){const m={};p.forEach(h=>{const g=e.getBaseTarget(h);g!==void 0&&(m[h]=g)}),f.push({animation:m})}let C=!!f.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(C=!1),n=!1,C?t(f):Promise.resolve()}function s(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),r[l].isActive=u;const f=a(c,l);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function mR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gS(t,e):!1}function gn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gR(){return{animate:gn(!0),whileInView:gn(),whileHover:gn(),whileTap:gn(),whileDrag:gn(),whileFocus:gn(),exit:gn()}}class vR extends dn{constructor(t){super(t),t.animationState||(t.animationState=pR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),fu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let yR=0;class SR extends dn{constructor(){super(...arguments),this.id=yR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const bR={animation:{Feature:vR},exit:{Feature:SR}},N0=(e,t)=>Math.abs(e-t);function xR(e,t){const r=N0(e.x,t.x),n=N0(e.y,t.y);return Math.sqrt(r**2+n**2)}class YS{constructor(t,r,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Ic(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=xR(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:y}=d,{timestamp:S}=Ke;this.history.push({...y,timestamp:S});const{onStart:C,onMove:m}=this.handlers;f||(C&&C(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Mc(f,this.transformPagePoint),ie.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Ic(d.type==="pointercancel"?this.lastMoveEventInfo:Mc(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,C),y&&y(d,C)},!dS(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const a=mu(t),s=Mc(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=Ke;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=r;c&&c(t,Ic(s,this.history)),this.removeListeners=rn(wr(this.contextWindow,"pointermove",this.handlePointerMove),wr(this.contextWindow,"pointerup",this.handlePointerUp),wr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$r(this.updatePoint)}}function Mc(e,t){return t?{point:t(e.point)}:e}function W0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ic({point:e},t){return{point:e,delta:W0(e,XS(t)),offset:W0(e,wR(t)),velocity:kR(t,.1)}}function wR(e){return e[0]}function XS(e){return e[e.length-1]}function kR(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=XS(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>In(t)));)r--;if(!n)return{x:0,y:0};const i=kr(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function bt(e){return e.max-e.min}function Qd(e,t=0,r=.01){return Math.abs(e-t)<=r}function U0(e,t,r,n=.5){e.origin=n,e.originPoint=ge(t.min,t.max,e.origin),e.scale=bt(r)/bt(t),(Qd(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ge(r.min,r.max,e.origin)-e.originPoint,(Qd(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Vi(e,t,r,n){U0(e.x,t.x,r.x,n?n.originX:void 0),U0(e.y,t.y,r.y,n?n.originY:void 0)}function H0(e,t,r){e.min=r.min+t.min,e.max=e.min+bt(t)}function CR(e,t,r){H0(e.x,t.x,r.x),H0(e.y,t.y,r.y)}function G0(e,t,r){e.min=t.min-r.min,e.max=e.min+bt(t)}function Oi(e,t,r){G0(e.x,t.x,r.x),G0(e.y,t.y,r.y)}function _R(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?ge(r,e,n.max):Math.min(e,r)),e}function K0(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function TR(e,{top:t,left:r,bottom:n,right:o}){return{x:K0(e.x,r,o),y:K0(e.y,t,n)}}function Y0(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=ga(t.min,t.max-n,e.min):n>o&&(r=ga(e.min,e.max-o,t.min)),an(0,1,r)}function $R(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const qd=.35;function zR(e=qd){return e===!1?e=0:e===!0&&(e=qd),{x:X0(e,"left","right"),y:X0(e,"top","bottom")}}function X0(e,t,r){return{min:Q0(e,t),max:Q0(e,r)}}function Q0(e,t){return typeof e=="number"?e:e[t]||0}const q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),go=()=>({x:q0(),y:q0()}),Z0=()=>({min:0,max:0}),_e=()=>({x:Z0(),y:Z0()});function Et(e){return[e("x"),e("y")]}function QS({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function AR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function RR(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Fc(e){return e===void 0||e===1}function Zd({scale:e,scaleX:t,scaleY:r}){return!Fc(e)||!Fc(t)||!Fc(r)}function Sn(e){return Zd(e)||qS(e)||e.z||e.rotate||e.rotateX||e.rotateY}function qS(e){return J0(e.x)||J0(e.y)}function J0(e){return e&&e!=="0%"}function El(e,t,r){const n=e-r,o=t*n;return r+o}function eg(e,t,r,n,o){return o!==void 0&&(e=El(e,o,n)),El(e,r,n)+t}function Jd(e,t=0,r=1,n,o){e.min=eg(e.min,t,r,n,o),e.max=eg(e.max,t,r,n,o)}function ZS(e,{x:t,y:r}){Jd(e.x,t.translate,t.scale,t.originPoint),Jd(e.y,r.translate,r.scale,r.originPoint)}function MR(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function Or(e,t){e.min=e.min+t,e.max=e.max+t}function rg(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,a=ge(e.min,e.max,i);Jd(e,t[r],t[n],a,t.scale)}const IR=["x","scaleX","originX"],FR=["y","scaleY","originY"];function vo(e,t){rg(e.x,t,IR),rg(e.y,t,FR)}function JS(e,t){return QS(RR(e.getBoundingClientRect(),t))}function DR(e,t,r){const n=JS(e,r),{scroll:o}=t;return o&&(Or(n.x,o.offset.x),Or(n.y,o.offset.y)),n}const eb=({current:e})=>e?e.ownerDocument.defaultView:null,jR=new WeakMap;class LR{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_e(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(mu(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:y}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=hS(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Et(C=>{let m=this.getAxisMotionValue(C).get()||0;if(sr.test(m)){const{projection:h}=this.visualElement;if(h&&h.layout){const g=h.layout.layoutBox[C];g&&(m=bt(g)*(parseFloat(m)/100))}}this.originPoint[C]=m}),y&&ie.update(()=>y(c,d),!1,!0);const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:y,onDrag:S}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:C}=d;if(p&&this.currentDirection===null){this.currentDirection=BR(C),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,C),this.updateAxis("y",d.point,C),this.visualElement.render(),S&&S(c,d)},s=(c,d)=>this.stop(c,d),l=()=>Et(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 YS(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:eb(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&ie.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!ps(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=_R(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=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;r&&po(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=TR(o.layoutBox,r):this.constraints=!1,this.elastic=zR(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Et(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=$R(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!po(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=DR(n,o.root,this.visualElement.getTransformPagePoint());let a=PR(o.layout.layoutBox,i);if(r){const s=r(AR(a));this.hasMutatedConstraints=!!s,s&&(a=QS(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Et(c=>{if(!ps(c,r,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,y={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Lh(t,n,0,r))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Et(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Et(r=>{const{drag:n}=this.getProps();if(!ps(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-ge(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!po(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Et(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=ER({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Et(a=>{if(!ps(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(ge(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;jR.set(this.visualElement,this);const t=this.visualElement.current,r=wr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();po(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const a=Sr(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Et(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),r(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=qd,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ps(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function BR(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class VR extends dn{constructor(t){super(t),this.removeGroupControls=xe,this.removeListeners=xe,this.controls=new LR(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const ng=e=>(t,r)=>{e&&ie.update(()=>e(t,r))};class OR extends dn{constructor(){super(...arguments),this.removePointerDownListener=xe}onPointerDown(t){this.session=new YS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:ng(t),onStart:ng(r),onMove:n,onEnd:(i,a)=>{delete this.session,o&&ie.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=wr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function NR(){const e=k.useContext(_a);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=k.useId();return k.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function WR(){return UR(k.useContext(_a))}function UR(e){return e===null?!0:e.isPresent}const Os={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function og(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const di={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const r=og(e,t.target.x),n=og(e,t.target.y);return`${r}% ${n}%`}},HR={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=sn.parse(e);if(o.length>5)return n;const i=sn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=ge(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}};class GR extends zo.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;q4(KR),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Os.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||ie.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tb(e){const[t,r]=NR(),n=k.useContext(Ch);return zo.createElement(GR,{...e,layoutGroup:n,switchLayoutGroup:k.useContext(Q1),isPresent:t,safeToRemove:r})}const KR={borderRadius:{...di,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:di,borderTopRightRadius:di,borderBottomLeftRadius:di,borderBottomRightRadius:di,boxShadow:HR},rb=["TopLeft","TopRight","BottomLeft","BottomRight"],YR=rb.length,ig=e=>typeof e=="string"?parseFloat(e):e,ag=e=>typeof e=="number"||V.test(e);function XR(e,t,r,n,o,i){o?(e.opacity=ge(0,r.opacity!==void 0?r.opacity:1,QR(n)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,qR(n))):i&&(e.opacity=ge(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;ant?1:r(ga(e,t,n))}function lg(e,t){e.min=t.min,e.max=t.max}function Tt(e,t){lg(e.x,t.x),lg(e.y,t.y)}function ug(e,t,r,n,o){return e-=t,e=El(e,1/r,n),o!==void 0&&(e=El(e,1/o,n)),e}function ZR(e,t=0,r=1,n=.5,o,i=e,a=e){if(sr.test(t)&&(t=parseFloat(t),t=ge(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ge(i.min,i.max,n);e===i&&(s-=t),e.min=ug(e.min,t,r,s,o),e.max=ug(e.max,t,r,s,o)}function cg(e,t,[r,n,o],i,a){ZR(e,t[r],t[n],t[o],t.scale,i,a)}const JR=["x","scaleX","originX"],eM=["y","scaleY","originY"];function dg(e,t,r,n){cg(e.x,t,JR,r?r.x:void 0,n?n.x:void 0),cg(e.y,t,eM,r?r.y:void 0,n?n.y:void 0)}function fg(e){return e.translate===0&&e.scale===1}function ob(e){return fg(e.x)&&fg(e.y)}function tM(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ib(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function hg(e){return bt(e.x)/bt(e.y)}class rM{constructor(){this.members=[]}add(t){Bh(this.members,t),t.scheduleRender()}remove(t){if(Vh(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function pg(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:u,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const nM=(e,t)=>e.depth-t.depth;class oM{constructor(){this.children=[],this.isDirty=!1}add(t){Bh(this.children,t),this.isDirty=!0}remove(t){Vh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nM),this.isDirty=!1,this.children.forEach(t)}}function iM(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&($r(n),e(i-t))};return ie.read(n,!0),()=>$r(n)}function aM(e){window.MotionDebug&&window.MotionDebug.record(e)}function sM(e){return e instanceof SVGElement&&e.tagName!=="svg"}function lM(e,t,r){const n=dt(e)?e:Oo(e);return n.start(Lh("",n,t,r)),n.animation}const mg=["","X","Y","Z"],uM={visibility:"hidden"},gg=1e3;let cM=0;const bn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ab({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=cM++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,bn.totalNodes=bn.resolvedTargetDeltas=bn.recalculatedProjection=0,this.nodes.forEach(hM),this.nodes.forEach(yM),this.nodes.forEach(SM),this.nodes.forEach(pM),aM(bn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=iM(f,250),Os.hasAnimatedSinceResize&&(Os.hasAnimatedSinceResize=!1,this.nodes.forEach(yg))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||c.getDefaultTransition()||CM,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=c.getProps(),h=!this.targetLayout||!ib(this.targetLayout,y)||p,g=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const w={...jh(S,"layout"),onPlay:C,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||yg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$r(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(bM),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(mM),this.sharedNodes.forEach(xM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ie.postRender(()=>{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 E=w/1e3;Sg(d.x,a.x,E),Sg(d.y,a.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wM(this.relativeTarget,this.relativeTargetOrigin,f,E),g&&tM(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=_e()),Tt(g,this.relativeTarget)),S&&(this.animationValues=c,XR(c,u,this.latestValues,E,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ie.update(()=>{Os.hasAnimatedSinceResize=!0,this.currentAnimation=lM(0,gg,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&sb(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_e();const d=bt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=bt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}Tt(s,l),vo(s,c),Vi(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new rM),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(vg),this.root.sharedNodes.clear()}}}function dM(e){e.updateLayout()}function fM(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?Et(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],p=bt(f);f.min=n[d].min,f.max=f.min+p}):sb(i,r.layoutBox,n)&&Et(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],p=bt(n[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=go();Vi(s,n,r.layoutBox);const l=go();a?Vi(l,e.applyTransform(o,!0),r.measuredBox):Vi(l,n,r.layoutBox);const u=!ob(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const y=_e();Oi(y,r.layoutBox,f.layoutBox);const S=_e();Oi(S,n,p.layoutBox),ib(y,S)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function hM(e){bn.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 pM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mM(e){e.clearSnapshot()}function vg(e){e.clearMeasurements()}function gM(e){e.isLayoutDirty=!1}function vM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function yg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yM(e){e.resolveTargetDelta()}function SM(e){e.calcProjection()}function bM(e){e.resetRotation()}function xM(e){e.removeLeadSnapshot()}function Sg(e,t,r){e.translate=ge(t.translate,0,r),e.scale=ge(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function bg(e,t,r,n){e.min=ge(t.min,r.min,n),e.max=ge(t.max,r.max,n)}function wM(e,t,r,n){bg(e.x,t.x,r.x,n),bg(e.y,t.y,r.y,n)}function kM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const CM={duration:.45,ease:[.4,0,.1,1]},xg=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),wg=xg("applewebkit/")&&!xg("chrome/")?Math.round:xe;function kg(e){e.min=wg(e.min),e.max=wg(e.max)}function _M(e){kg(e.x),kg(e.y)}function sb(e,t,r){return e==="position"||e==="preserve-aspect"&&!Qd(hg(t),hg(r),.2)}const TM=ab({attachResizeListener:(e,t)=>Sr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Dc={current:void 0},lb=ab({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Dc.current){const e=new TM({});e.mount(window),e.setOptions({layoutScroll:!0}),Dc.current=e}return Dc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),PM={pan:{Feature:OR},drag:{Feature:VR,ProjectionNode:lb,MeasureLayout:tb}},EM=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function $M(e){const t=EM.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function ef(e,t,r=1){const[n,o]=$M(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const a=i.trim();return US(a)?parseFloat(a):a}else return Wd(o)?ef(o,t,r+1):o}function zM(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!Wd(i))return;const a=ef(i,n);a&&o.set(a)});for(const o in t){const i=t[o];if(!Wd(i))continue;const a=ef(i,n);a&&(t[o]=a,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const AM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ub=e=>AM.has(e),RM=e=>Object.keys(e).some(ub),Cg=e=>e===Wn||e===V,_g=(e,t)=>parseFloat(e.split(", ")[t]),Tg=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return _g(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?_g(i[1],e):0}},MM=new Set(["x","y","z"]),IM=Ta.filter(e=>!MM.has(e));function FM(e){const t=[];return IM.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const No={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:Tg(4,13),y:Tg(5,14)};No.translateX=No.x;No.translateY=No.y;const DM=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{s[u]=No[u](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=No[u](l,i)}),e},jM=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(ub);let i=[],a=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=ci(c);const f=t[l];let p;if(kl(f)){const y=f.length,S=f[0]===null?1:0;c=f[S],d=ci(c);for(let C=S;C=0?window.pageYOffset:null,u=DM(t,e,s);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),du&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function LM(e,t,r,n){return RM(t)?jM(e,t,r,n):{target:t,transitionEnd:n}}const BM=(e,t,r,n)=>{const o=zM(e,t,n);return t=o.target,n=o.transitionEnd,LM(e,t,r,n)},tf={current:null},cb={current:!1};function VM(){if(cb.current=!0,!!du)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tf.current=e.matches;e.addListener(t),t()}else tf.current=!1}function OM(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],a=r[o];if(dt(i))e.addValue(o,i),Pl(n)&&n.add(o);else if(dt(a))e.addValue(o,Oo(i,{owner:e})),Pl(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Oo(s!==void 0?s:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const Pg=new WeakMap,db=Object.keys(ma),NM=db.length,Eg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],WM=kh.length;class UM{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>ie.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=hu(r),this.isVariantNode=X1(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{});for(const d in c){const f=c[d];s[d]!==void 0&&dt(f)&&(f.set(s[d],!1),Pl(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,Pg.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),cb.current||VM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:tf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Pg.delete(this.current),this.projection&&this.projection.unmount(),$r(this.notifyUpdate),$r(this.render),this.valueSubscriptions.forEach(t=>t()),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)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=Nn.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ie.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_e()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Oo(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return 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)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=Ah(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!dt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Oh),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class fb extends UM{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},i){let a=iR(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),a&&(a=o(a))),i){nR(this,n,a);const s=BM(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function HM(e){return window.getComputedStyle(e)}class GM extends fb{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,r){if(Nn.has(r)){const n=Dh(r);return n&&n.default||0}else{const n=HM(t),o=(J1(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return JS(t,r)}build(t,r,n,o){Th(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return zh(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){iS(t,r,n,o)}}class KM extends fb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Nn.has(r)){const n=Dh(r);return n&&n.default||0}return r=aS.has(r)?r:xh(r),t.getAttribute(r)}measureInstanceViewportBox(){return _e()}scrapeMotionValuesFromProps(t,r){return lS(t,r)}build(t,r,n,o){Eh(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){sS(t,r,n,o)}mount(t){this.isSVGTag=$h(t.tagName),super.mount(t)}}const YM=(e,t)=>_h(e)?new KM(t,{enableHardwareAcceleration:!1}):new GM(t,{enableHardwareAcceleration:!0}),XM={layout:{ProjectionNode:lb,MeasureLayout:tb}},QM={...bR,...Vz,...PM,...XM},qM=X4((e,t)=>Pz(e,t,QM,YM));function hb(){const e=k.useRef(!1);return bh(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ZM(){const e=hb(),[t,r]=k.useState(0),n=k.useCallback(()=>{e.current&&r(t+1)},[t]);return[k.useCallback(()=>ie.postRender(n),[n]),t]}class JM extends k.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function eI({children:e,isPresent:t}){const r=k.useId(),n=k.useRef(null),o=k.useRef({width:0,height:0,top:0,left:0});return k.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!n.current||!i||!a)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${i}px !important; @@ -345,4 +345,4 @@ Error generating stack: `+i.message+` top: ${s}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(u)}},[t]),k.createElement(ZM,{isPresent:t,childRef:n,sizeRef:o},k.cloneElement(e,{ref:n}))}const jc=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=lS(eI),l=k.useId(),u=k.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?void 0:[r]);return k.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[r]),k.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=k.createElement(JM,{isPresent:r},e)),k.createElement(Ca.Provider,{value:u},e)};function eI(){return new Map}function tI(e){return k.useEffect(()=>()=>e(),[])}const xn=e=>e.key||"";function rI(e,t){e.forEach(r=>{const n=xn(r);t.set(n,r)})}function nI(e){const t=[];return k.Children.forEach(e,r=>{k.isValidElement(r)&&t.push(r)}),t}const oI=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=k.useContext(Cp).forceRender||qM()[0],l=fb(),u=nI(e);let c=u;const d=k.useRef(new Map).current,f=k.useRef(c),h=k.useRef(new Map).current,y=k.useRef(!0);if(bp(()=>{y.current=!1,rI(u,h),f.current=c}),tI(()=>{y.current=!0,h.clear(),d.clear()}),y.current)return k.createElement(k.Fragment,null,c.map(p=>k.createElement(jc,{key:xn(p),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},p)));c=[...c];const S=f.current.map(xn),C=u.map(xn),m=S.length;for(let p=0;p{if(C.indexOf(g)!==-1)return;const w=h.get(g);if(!w)return;const E=S.indexOf(g);let z=p;if(!z){const P=()=>{d.delete(g);const $=Array.from(h.keys()).filter(F=>!C.includes(F));if($.forEach(F=>h.delete(F)),f.current=u.filter(F=>{const D=xn(F);return D===g||$.includes(D)}),!d.size){if(l.current===!1)return;s(),n&&n()}};z=k.createElement(jc,{key:xn(w),isPresent:!1,onExitComplete:P,custom:t,presenceAffectsLayout:i,mode:a},w),d.set(g,z)}c.splice(E,0,z)}),c=c.map(p=>{const g=p.key;return d.has(g)?p:k.createElement(jc,{key:xn(p),isPresent:!0,presenceAffectsLayout:i,mode:a},p)}),k.createElement(k.Fragment,null,d.size?c:c.map(p=>k.cloneElement(p)))};var iI={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*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]}}},pb=k.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=iI,toastSpacing:c="0.5rem"}=e,[d,f]=k.useState(s),h=NR();_0(()=>{h||n==null||n()},[h]),_0(()=>{f(s)},[s]);const y=()=>f(null),S=()=>f(s),C=()=>{h&&o()};k.useEffect(()=>{h&&i&&o()},[h,i,o]),L4(C,d);const m=k.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),p=k.useMemo(()=>F4(a),[a]);return T.jsx(QM.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:S,custom:{position:a},style:p,children:T.jsx(ce.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:Kr(r,{id:t,onClose:C})})})});pb.displayName="ToastComponent";var $g={path:T.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[T.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"}),T.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"}),T.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Ko=Ee((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c=Me("chakra-icon",s),d=Go("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},h={ref:t,focusable:i,className:c,__css:f},y=n??$g.viewBox;if(r&&typeof r!="string")return T.jsx(ce.svg,{as:r,...h,...u});const S=a??$g.path;return T.jsx(ce.svg,{verticalAlign:"middle",viewBox:y,...h,...u,children:S})});Ko.displayName="Icon";function vu(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,i=k.Children.toArray(e.path),a=Ee((s,l)=>T.jsx(Ko,{ref:l,viewBox:t,...o,...s,children:i.length?i:T.jsx("path",{fill:"currentColor",d:r})}));return a.displayName=n,a}function aI(e){return T.jsx(Ko,{viewBox:"0 0 24 24",...e,children:T.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 sI(e){return T.jsx(Ko,{viewBox:"0 0 24 24",...e,children:T.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 zg(e){return T.jsx(Ko,{viewBox:"0 0 24 24",...e,children:T.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"})})}var lI=i2({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Np=Ee((e,t)=>{const r=Go("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=lr(e),u=Me("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${lI} ${i} linear infinite`,...r};return T.jsx(ce.div,{ref:t,__css:c,className:u,...l,children:n&&T.jsx(ce.span,{srOnly:!0,children:n})})});Np.displayName="Spinner";var[uI,Wp]=Ar({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[cI,Up]=Ar({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),hb={info:{icon:sI,colorScheme:"blue"},warning:{icon:zg,colorScheme:"orange"},success:{icon:aI,colorScheme:"green"},error:{icon:zg,colorScheme:"red"},loading:{icon:Np,colorScheme:"blue"}};function dI(e){return hb[e].colorScheme}function fI(e){return hb[e].icon}var mb=Ee(function(t,r){const n=Up(),{status:o}=Wp(),i={display:"inline",...n.description};return T.jsx(ce.div,{ref:r,"data-status":o,...t,className:Me("chakra-alert__desc",t.className),__css:i})});mb.displayName="AlertDescription";function gb(e){const{status:t}=Wp(),r=fI(t),n=Up(),o=t==="loading"?n.spinner:n.icon;return T.jsx(ce.span,{display:"inherit","data-status":t,...e,className:Me("chakra-alert__icon",e.className),__css:o,children:e.children||T.jsx(r,{h:"100%",w:"100%"})})}gb.displayName="AlertIcon";var vb=Ee(function(t,r){const n=Up(),{status:o}=Wp();return T.jsx(ce.div,{ref:r,"data-status":o,...t,className:Me("chakra-alert__title",t.className),__css:n.title})});vb.displayName="AlertTitle";var yb=Ee(function(t,r){var n;const{status:o="info",addRole:i=!0,...a}=lr(t),s=(n=t.colorScheme)!=null?n:dI(o),l=ka("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return T.jsx(uI,{value:{status:o},children:T.jsx(cI,{value:l,children:T.jsx(ce.div,{"data-status":o,role:i?"alert":void 0,ref:r,...a,className:Me("chakra-alert",t.className),__css:u})})})});yb.displayName="Alert";function pI(e){return T.jsx(Ko,{focusable:"false","aria-hidden":!0,...e,children:T.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"})})}var Sb=Ee(function(t,r){const n=Go("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=lr(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return T.jsx(ce.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...a},...s,children:o||T.jsx(pI,{width:"1em",height:"1em"})})});Sb.displayName="CloseButton";var hI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Vi=mI(hI);function mI(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=gI(o,i),{position:s,id:l}=a;return n(u=>{var c,d;const h=s.includes("top")?[a,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],a];return{...u,[s]:h}}),l},update:(o,i)=>{o&&n(a=>{const s={...a},{position:l,index:u}=C0(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...i,message:yI(i)}),s})},closeAll:({positions:o}={})=>{n(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=>{n(i=>{const a=U1(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!C0(Vi.getState(),o).position}}var Ag=0;function gI(e,t={}){var r,n;Ag+=1;const o=(r=t.id)!=null?r:Ag,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Vi.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var vI=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return T.jsxs(yb,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[T.jsx(gb,{children:u}),T.jsxs(ce.div,{flex:"1",maxWidth:"100%",children:[o&&T.jsx(vb,{id:c==null?void 0:c.title,children:o}),s&&T.jsx(mb,{id:c==null?void 0:c.description,display:"block",children:s})]}),i&&T.jsx(Sb,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function yI(e={}){const{render:t,toastComponent:r=vI}=e;return o=>typeof t=="function"?t({...o,...e}):T.jsx(r,{...o,...e})}var[SI,JI]=Ar({name:"ToastOptionsContext",strict:!1}),bI=e=>{const t=k.useSyncExternalStore(Vi.subscribe,Vi.getState,Vi.getState),{motionVariants:r,component:n=pb,portalProps:o}=e,a=Object.keys(t).map(s=>{const l=t[s];return T.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${s}`,id:`chakra-toast-manager-${s}`,style:D4(s),children:T.jsx(oI,{initial:!1,children:l.map(u=>T.jsx(n,{motionVariants:r,...u},u.id))})},s)});return T.jsx(iu,{...o,children:a})},xI=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return T.jsxs(M4,{theme:n,...i,children:[T.jsx(SI,{value:o==null?void 0:o.defaultOptions,children:r}),T.jsx(bI,{...o})]})},wI=xI(o4);function kI(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 rf(...e){return t=>{e.forEach(r=>{kI(r,t)})}}function CI(...e){return k.useMemo(()=>rf(...e),e)}function _I(e){return k.Children.toArray(e).filter(t=>k.isValidElement(t))}var[eF,TI]=Ar({strict:!1,name:"ButtonGroupContext"});function PI(e){const[t,r]=k.useState(!e);return{ref:k.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function nf(e){const{children:t,className:r,...n}=e,o=k.isValidElement(t)?k.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Me("chakra-button__icon",r);return T.jsx(ce.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}nf.displayName="ButtonIcon";function of(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=T.jsx(Np,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=Me("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=k.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return T.jsx(ce.div,{className:l,...s,__css:c,children:o})}of.displayName="ButtonSpinner";var Oi=Ee((e,t)=>{const r=TI(),n=Go("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:h,spinnerPlacement:y="start",className:S,as:C,...m}=lr(e),p=k.useMemo(()=>{const z={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:z}}},[n,r]),{ref:g,type:w}=PI(C),E={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return T.jsxs(ce.button,{ref:CI(t,g),as:C,type:f??w,"data-active":Qt(a),"data-loading":Qt(i),__css:p,className:Me("chakra-button",S),...m,disabled:o||i,children:[i&&y==="start"&&T.jsx(of,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:h}),i?c||T.jsx(ce.span,{opacity:0,children:T.jsx(Rg,{...E})}):T.jsx(Rg,{...E}),i&&y==="end"&&T.jsx(of,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:h})]})});Oi.displayName="Button";function Rg(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return T.jsxs(T.Fragment,{children:[t&&T.jsx(nf,{marginEnd:o,children:t}),n,r&&T.jsx(nf,{marginStart:o,children:r})]})}var[EI,$I]=A4("Card"),zI=Ee(function(t,r){const{className:n,...o}=t,i=$I();return T.jsx(ce.div,{ref:r,className:Me("chakra-card__body",n),__css:i.body,...o})}),AI=Ee(function(t,r){const{className:n,children:o,direction:i="column",justify:a,align:s,...l}=lr(t),u=ka("Card",t);return T.jsx(ce.div,{ref:r,className:Me("chakra-card",n),__css:{display:"flex",flexDirection:i,justifyContent:a,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:T.jsx(EI,{value:u,children:o})})}),[RI,MI]=Ar({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[II,bb]=Ar({strict:!1,name:"FormControlContext"});function FI(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...a}=e,s=k.useId(),l=t||`field-${s}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,h]=k.useState(!1),[y,S]=k.useState(!1),[C,m]=k.useState(!1),p=k.useCallback((P={},$=null)=>({id:d,...P,ref:rf($,F=>{F&&S(!0)})}),[d]),g=k.useCallback((P={},$=null)=>({...P,ref:$,"data-focus":Qt(C),"data-disabled":Qt(o),"data-invalid":Qt(n),"data-readonly":Qt(i),id:P.id!==void 0?P.id:u,htmlFor:P.htmlFor!==void 0?P.htmlFor:l}),[l,o,C,n,i,u]),w=k.useCallback((P={},$=null)=>({id:c,...P,ref:rf($,F=>{F&&h(!0)}),"aria-live":"polite"}),[c]),E=k.useCallback((P={},$=null)=>({...P,...a,ref:$,role:"group","data-focus":Qt(C),"data-disabled":Qt(o),"data-invalid":Qt(n),"data-readonly":Qt(i)}),[a,o,C,n,i]),z=k.useCallback((P={},$=null)=>({...P,ref:$,role:"presentation","aria-hidden":!0,children:P.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!o,isFocused:!!C,onFocus:()=>m(!0),onBlur:()=>m(!1),hasFeedbackText:f,setHasFeedbackText:h,hasHelpText:y,setHasHelpText:S,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:a,getHelpTextProps:p,getErrorMessageProps:w,getRootProps:E,getLabelProps:g,getRequiredIndicatorProps:z}}var DI=Ee(function(t,r){const n=ka("Form",t),o=lr(t),{getRootProps:i,htmlProps:a,...s}=FI(o),l=Me("chakra-form-control",t.className);return T.jsx(II,{value:s,children:T.jsx(RI,{value:n,children:T.jsx(ce.div,{...i({},r),className:l,__css:n.container})})})});DI.displayName="FormControl";var jI=Ee(function(t,r){const n=bb(),o=MI(),i=Me("chakra-form__helper-text",t.className);return T.jsx(ce.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});jI.displayName="FormHelperText";function LI(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...i}=BI(e);return{...i,disabled:t,readOnly:n,required:o,"aria-invalid":ac(r),"aria-required":ac(o),"aria-readonly":ac(n)}}function BI(e){var t,r,n;const o=bb(),{id:i,disabled:a,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:h,onBlur:y,...S}=e,C=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&C.push(o.feedbackId),o!=null&&o.hasHelpText&&C.push(o.helpTextId),{...S,"aria-describedby":C.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=a??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=s??d)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??u)!=null?n:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:Rm(o==null?void 0:o.onFocus,h),onBlur:Rm(o==null?void 0:o.onBlur,y)}}var[VI,OI]=Ar({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Hp=Ee(function(t,r){const n=ka("Input",t),{children:o,className:i,...a}=lr(t),s=Me("chakra-input__group",i),l={},u=_I(o),c=n.field;u.forEach(f=>{var h,y;n&&(c&&f.type.id==="InputLeftElement"&&(l.paddingStart=(h=c.height)!=null?h:c.h),c&&f.type.id==="InputRightElement"&&(l.paddingEnd=(y=c.height)!=null?y:c.h),f.type.id==="InputRightAddon"&&(l.borderEndRadius=0),f.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const d=u.map(f=>{var h,y;const S=V1({size:((h=f.props)==null?void 0:h.size)||t.size,variant:((y=f.props)==null?void 0:y.variant)||t.variant});return f.type.id!=="Input"?k.cloneElement(f,S):k.cloneElement(f,Object.assign(S,l,f.props))});return T.jsx(ce.div,{className:s,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...a,children:T.jsx(VI,{value:n,children:d})})});Hp.displayName="InputGroup";var NI=ce("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),yu=Ee(function(t,r){var n,o;const{placement:i="left",...a}=t,s=OI(),l=s.field,c={[i==="left"?"insetStart":"insetEnd"]:"0",width:(n=l==null?void 0:l.height)!=null?n:l==null?void 0:l.h,height:(o=l==null?void 0:l.height)!=null?o:l==null?void 0:l.h,fontSize:l==null?void 0:l.fontSize,...s.element};return T.jsx(NI,{ref:r,__css:c,...a})});yu.id="InputElement";yu.displayName="InputElement";var xb=Ee(function(t,r){const{className:n,...o}=t,i=Me("chakra-input__left-element",n);return T.jsx(yu,{ref:r,placement:"left",className:i,...o})});xb.id="InputLeftElement";xb.displayName="InputLeftElement";var Su=Ee(function(t,r){const{className:n,...o}=t,i=Me("chakra-input__right-element",n);return T.jsx(yu,{ref:r,placement:"right",className:i,...o})});Su.id="InputRightElement";Su.displayName="InputRightElement";var bu=Ee(function(t,r){const{htmlSize:n,...o}=t,i=ka("Input",o),a=lr(o),s=LI(a),l=Me("chakra-input",t.className);return T.jsx(ce.input,{size:n,...s,__css:i.field,ref:r,className:l})});bu.displayName="Input";bu.id="Input";var wb=Ee(function(t,r){const n=Go("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=lr(t),u=V1({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return T.jsx(ce.p,{ref:r,className:Me("chakra-text",t.className),...u,...l,__css:n})});wb.displayName="Text";var kb=Ee(function(t,r){const{className:n,centerContent:o,...i}=lr(t),a=Go("Container",t);return T.jsx(ce.div,{ref:r,className:Me("chakra-container",n),...i,__css:{...a,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});kb.displayName="Container";var Os=Ee(function(t,r){const{direction:n,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:u,...c}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:u};return T.jsx(ce.div,{ref:r,__css:d,...c})});Os.displayName="Flex";const Cb=k.createContext(void 0),WI=({children:e})=>{const[t,r]=k.useState([]),n=a=>{r(s=>[...s,{id:Date.now(),text:a}])},o=a=>{r(s=>s.filter(l=>l.id!==a))},i=(a,s)=>{r(l=>l.map(u=>u.id===a?{...u,text:s}:u))};return T.jsx(Cb.Provider,{value:{todos:t,addTodo:n,deleteTodo:o,updateTodo:i},children:e})},Gp=()=>{const e=k.useContext(Cb);if(!e)throw new Error("useTodoContext must be used within a TodoProvider");return e};var UI=vu({displayName:"EditIcon",path:T.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[T.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),T.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),HI=vu({displayName:"DeleteIcon",path:T.jsx("g",{fill:"currentColor",children:T.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"})})}),GI=vu({viewBox:"0 0 14 14",path:T.jsx("g",{fill:"currentColor",children:T.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),KI=vu({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});const YI=({id:e,text:t})=>{const{deleteTodo:r,updateTodo:n}=Gp(),[o,i]=k.useState(!1),[a,s]=k.useState(t);return T.jsx(AI,{variant:"outline",width:"100%",marginY:"4",children:T.jsxs(zI,{children:[T.jsxs(Os,{justifyContent:"space-between",alignItems:"center",children:[T.jsx(wb,{children:t}),T.jsxs(Os,{children:[T.jsx(Oi,{marginRight:"4",onClick:()=>{i(l=>!l)},children:T.jsx(UI,{boxSize:4})}),T.jsx(Oi,{"data-testid":"delete-element",onClick:()=>r(e),children:T.jsx(HI,{color:"red",boxSize:4})})]})]}),o&&T.jsx(Os,{width:"100%",children:T.jsx("form",{style:{width:"100%"},children:T.jsxs(Hp,{width:"100%",size:"lg",marginY:"10",alignItems:"center",children:[T.jsx(bu,{onChange:l=>s(l.target.value),height:"4.5rem",width:"100%",value:a,placeholder:"what need to do"}),T.jsx(Su,{height:"4.5rem",width:"4.5rem",children:T.jsx(Oi,{onClick:l=>{if(l.preventDefault(),a.trim()==="")return!1;n(e,a),i(!1)},type:"submit",height:"4.3rem",width:"4.3rem",children:T.jsx(GI,{})})})]})})})]})},e)},XI=()=>{const{todos:e}=Gp();return T.jsx(T.Fragment,{children:e.map(t=>T.jsx(YI,{...t},t.id))})},QI=()=>{const{addTodo:e}=Gp(),[t,r]=k.useState(""),n=o=>{if(o.preventDefault(),t.trim()==="")return!1;e(t),r("")};return T.jsx("form",{children:T.jsxs(Hp,{size:"lg",marginY:"10",alignItems:"center",children:[T.jsx(bu,{onChange:o=>r(o.target.value),height:"4.5rem",value:t,placeholder:"what need to do"}),T.jsx(Su,{height:"4.5rem",width:"4.5rem",children:T.jsx(Oi,{onClick:n,type:"submit",height:"4.3rem",role:"button",name:"createTask",width:"4.3rem",children:T.jsx(KI,{})})})]})})};function qI(){return T.jsxs(kb,{maxW:"2xl",alignItems:"center",children:[T.jsx(QI,{}),T.jsx(XI,{})]})}Lc.createRoot(document.getElementById("root")).render(T.jsx($o.StrictMode,{children:T.jsx(wI,{children:T.jsx(WI,{children:T.jsx(qI,{})})})})); + `),()=>{document.head.removeChild(u)}},[t]),k.createElement(JM,{isPresent:t,childRef:n,sizeRef:o},k.cloneElement(e,{ref:n}))}const jc=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=uS(tI),l=k.useId(),u=k.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?void 0:[r]);return k.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[r]),k.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=k.createElement(eI,{isPresent:r},e)),k.createElement(_a.Provider,{value:u},e)};function tI(){return new Map}function rI(e){return k.useEffect(()=>()=>e(),[])}const xn=e=>e.key||"";function nI(e,t){e.forEach(r=>{const n=xn(r);t.set(n,r)})}function oI(e){const t=[];return k.Children.forEach(e,r=>{k.isValidElement(r)&&t.push(r)}),t}const iI=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=k.useContext(Ch).forceRender||ZM()[0],l=hb(),u=oI(e);let c=u;const d=k.useRef(new Map).current,f=k.useRef(c),p=k.useRef(new Map).current,y=k.useRef(!0);if(bh(()=>{y.current=!1,nI(u,p),f.current=c}),rI(()=>{y.current=!0,p.clear(),d.clear()}),y.current)return k.createElement(k.Fragment,null,c.map(h=>k.createElement(jc,{key:xn(h),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},h)));c=[...c];const S=f.current.map(xn),C=u.map(xn),m=S.length;for(let h=0;h{if(C.indexOf(g)!==-1)return;const w=p.get(g);if(!w)return;const E=S.indexOf(g);let z=h;if(!z){const P=()=>{d.delete(g);const $=Array.from(p.keys()).filter(F=>!C.includes(F));if($.forEach(F=>p.delete(F)),f.current=u.filter(F=>{const D=xn(F);return D===g||$.includes(D)}),!d.size){if(l.current===!1)return;s(),n&&n()}};z=k.createElement(jc,{key:xn(w),isPresent:!1,onExitComplete:P,custom:t,presenceAffectsLayout:i,mode:a},w),d.set(g,z)}c.splice(E,0,z)}),c=c.map(h=>{const g=h.key;return d.has(g)?h:k.createElement(jc,{key:xn(h),isPresent:!0,presenceAffectsLayout:i,mode:a},h)}),k.createElement(k.Fragment,null,d.size?c:c.map(h=>k.cloneElement(h)))};var aI={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*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]}}},pb=k.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=aI,toastSpacing:c="0.5rem"}=e,[d,f]=k.useState(s),p=WR();_0(()=>{p||n==null||n()},[p]),_0(()=>{f(s)},[s]);const y=()=>f(null),S=()=>f(s),C=()=>{p&&o()};k.useEffect(()=>{p&&i&&o()},[p,i,o]),B4(C,d);const m=k.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=k.useMemo(()=>D4(a),[a]);return T.jsx(qM.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:S,custom:{position:a},style:h,children:T.jsx(ce.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:Kr(r,{id:t,onClose:C})})})});pb.displayName="ToastComponent";var $g={path:T.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[T.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"}),T.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"}),T.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Yo=Ee((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c=Me("chakra-icon",s),d=Ko("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},p={ref:t,focusable:i,className:c,__css:f},y=n??$g.viewBox;if(r&&typeof r!="string")return T.jsx(ce.svg,{as:r,...p,...u});const S=a??$g.path;return T.jsx(ce.svg,{verticalAlign:"middle",viewBox:y,...p,...u,children:S})});Yo.displayName="Icon";function vu(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,i=k.Children.toArray(e.path),a=Ee((s,l)=>T.jsx(Yo,{ref:l,viewBox:t,...o,...s,children:i.length?i:T.jsx("path",{fill:"currentColor",d:r})}));return a.displayName=n,a}function sI(e){return T.jsx(Yo,{viewBox:"0 0 24 24",...e,children:T.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 lI(e){return T.jsx(Yo,{viewBox:"0 0 24 24",...e,children:T.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 zg(e){return T.jsx(Yo,{viewBox:"0 0 24 24",...e,children:T.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"})})}var uI=a2({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Nh=Ee((e,t)=>{const r=Ko("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=lr(e),u=Me("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${uI} ${i} linear infinite`,...r};return T.jsx(ce.div,{ref:t,__css:c,className:u,...l,children:n&&T.jsx(ce.span,{srOnly:!0,children:n})})});Nh.displayName="Spinner";var[cI,Wh]=Ar({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[dI,Uh]=Ar({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),mb={info:{icon:lI,colorScheme:"blue"},warning:{icon:zg,colorScheme:"orange"},success:{icon:sI,colorScheme:"green"},error:{icon:zg,colorScheme:"red"},loading:{icon:Nh,colorScheme:"blue"}};function fI(e){return mb[e].colorScheme}function hI(e){return mb[e].icon}var gb=Ee(function(t,r){const n=Uh(),{status:o}=Wh(),i={display:"inline",...n.description};return T.jsx(ce.div,{ref:r,"data-status":o,...t,className:Me("chakra-alert__desc",t.className),__css:i})});gb.displayName="AlertDescription";function vb(e){const{status:t}=Wh(),r=hI(t),n=Uh(),o=t==="loading"?n.spinner:n.icon;return T.jsx(ce.span,{display:"inherit","data-status":t,...e,className:Me("chakra-alert__icon",e.className),__css:o,children:e.children||T.jsx(r,{h:"100%",w:"100%"})})}vb.displayName="AlertIcon";var yb=Ee(function(t,r){const n=Uh(),{status:o}=Wh();return T.jsx(ce.div,{ref:r,"data-status":o,...t,className:Me("chakra-alert__title",t.className),__css:n.title})});yb.displayName="AlertTitle";var Sb=Ee(function(t,r){var n;const{status:o="info",addRole:i=!0,...a}=lr(t),s=(n=t.colorScheme)!=null?n:fI(o),l=Ca("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return T.jsx(cI,{value:{status:o},children:T.jsx(dI,{value:l,children:T.jsx(ce.div,{"data-status":o,role:i?"alert":void 0,ref:r,...a,className:Me("chakra-alert",t.className),__css:u})})})});Sb.displayName="Alert";function pI(e){return T.jsx(Yo,{focusable:"false","aria-hidden":!0,...e,children:T.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"})})}var bb=Ee(function(t,r){const n=Ko("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=lr(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return T.jsx(ce.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...a},...s,children:o||T.jsx(pI,{width:"1em",height:"1em"})})});bb.displayName="CloseButton";var mI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Ni=gI(mI);function gI(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=vI(o,i),{position:s,id:l}=a;return n(u=>{var c,d;const p=s.includes("top")?[a,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],a];return{...u,[s]:p}}),l},update:(o,i)=>{o&&n(a=>{const s={...a},{position:l,index:u}=C0(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...i,message:SI(i)}),s})},closeAll:({positions:o}={})=>{n(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=>{n(i=>{const a=H1(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!C0(Ni.getState(),o).position}}var Ag=0;function vI(e,t={}){var r,n;Ag+=1;const o=(r=t.id)!=null?r:Ag,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Ni.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var yI=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return T.jsxs(Sb,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[T.jsx(vb,{children:u}),T.jsxs(ce.div,{flex:"1",maxWidth:"100%",children:[o&&T.jsx(yb,{id:c==null?void 0:c.title,children:o}),s&&T.jsx(gb,{id:c==null?void 0:c.description,display:"block",children:s})]}),i&&T.jsx(bb,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function SI(e={}){const{render:t,toastComponent:r=yI}=e;return o=>typeof t=="function"?t({...o,...e}):T.jsx(r,{...o,...e})}var[bI,JI]=Ar({name:"ToastOptionsContext",strict:!1}),xI=e=>{const t=k.useSyncExternalStore(Ni.subscribe,Ni.getState,Ni.getState),{motionVariants:r,component:n=pb,portalProps:o}=e,a=Object.keys(t).map(s=>{const l=t[s];return T.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${s}`,id:`chakra-toast-manager-${s}`,style:j4(s),children:T.jsx(iI,{initial:!1,children:l.map(u=>T.jsx(n,{motionVariants:r,...u},u.id))})},s)});return T.jsx(iu,{...o,children:a})},wI=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return T.jsxs(I4,{theme:n,...i,children:[T.jsx(bI,{value:o==null?void 0:o.defaultOptions,children:r}),T.jsx(xI,{...o})]})},kI=wI(i4);function CI(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 rf(...e){return t=>{e.forEach(r=>{CI(r,t)})}}function _I(...e){return k.useMemo(()=>rf(...e),e)}function TI(e){return k.Children.toArray(e).filter(t=>k.isValidElement(t))}var[eF,PI]=Ar({strict:!1,name:"ButtonGroupContext"});function EI(e){const[t,r]=k.useState(!e);return{ref:k.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function nf(e){const{children:t,className:r,...n}=e,o=k.isValidElement(t)?k.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Me("chakra-button__icon",r);return T.jsx(ce.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}nf.displayName="ButtonIcon";function of(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=T.jsx(Nh,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=Me("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=k.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return T.jsx(ce.div,{className:l,...s,__css:c,children:o})}of.displayName="ButtonSpinner";var yo=Ee((e,t)=>{const r=PI(),n=Ko("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:y="start",className:S,as:C,...m}=lr(e),h=k.useMemo(()=>{const z={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:z}}},[n,r]),{ref:g,type:w}=EI(C),E={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return T.jsxs(ce.button,{ref:_I(t,g),as:C,type:f??w,"data-active":Qt(a),"data-loading":Qt(i),__css:h,className:Me("chakra-button",S),...m,disabled:o||i,children:[i&&y==="start"&&T.jsx(of,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||T.jsx(ce.span,{opacity:0,children:T.jsx(Rg,{...E})}):T.jsx(Rg,{...E}),i&&y==="end"&&T.jsx(of,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});yo.displayName="Button";function Rg(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return T.jsxs(T.Fragment,{children:[t&&T.jsx(nf,{marginEnd:o,children:t}),n,r&&T.jsx(nf,{marginStart:o,children:r})]})}var[$I,zI]=R4("Card"),AI=Ee(function(t,r){const{className:n,...o}=t,i=zI();return T.jsx(ce.div,{ref:r,className:Me("chakra-card__body",n),__css:i.body,...o})}),RI=Ee(function(t,r){const{className:n,children:o,direction:i="column",justify:a,align:s,...l}=lr(t),u=Ca("Card",t);return T.jsx(ce.div,{ref:r,className:Me("chakra-card",n),__css:{display:"flex",flexDirection:i,justifyContent:a,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:T.jsx($I,{value:u,children:o})})}),[MI,II]=Ar({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[FI,xb]=Ar({strict:!1,name:"FormControlContext"});function DI(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...a}=e,s=k.useId(),l=t||`field-${s}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=k.useState(!1),[y,S]=k.useState(!1),[C,m]=k.useState(!1),h=k.useCallback((P={},$=null)=>({id:d,...P,ref:rf($,F=>{F&&S(!0)})}),[d]),g=k.useCallback((P={},$=null)=>({...P,ref:$,"data-focus":Qt(C),"data-disabled":Qt(o),"data-invalid":Qt(n),"data-readonly":Qt(i),id:P.id!==void 0?P.id:u,htmlFor:P.htmlFor!==void 0?P.htmlFor:l}),[l,o,C,n,i,u]),w=k.useCallback((P={},$=null)=>({id:c,...P,ref:rf($,F=>{F&&p(!0)}),"aria-live":"polite"}),[c]),E=k.useCallback((P={},$=null)=>({...P,...a,ref:$,role:"group","data-focus":Qt(C),"data-disabled":Qt(o),"data-invalid":Qt(n),"data-readonly":Qt(i)}),[a,o,C,n,i]),z=k.useCallback((P={},$=null)=>({...P,ref:$,role:"presentation","aria-hidden":!0,children:P.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!o,isFocused:!!C,onFocus:()=>m(!0),onBlur:()=>m(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:y,setHasHelpText:S,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:a,getHelpTextProps:h,getErrorMessageProps:w,getRootProps:E,getLabelProps:g,getRequiredIndicatorProps:z}}var jI=Ee(function(t,r){const n=Ca("Form",t),o=lr(t),{getRootProps:i,htmlProps:a,...s}=DI(o),l=Me("chakra-form-control",t.className);return T.jsx(FI,{value:s,children:T.jsx(MI,{value:n,children:T.jsx(ce.div,{...i({},r),className:l,__css:n.container})})})});jI.displayName="FormControl";var LI=Ee(function(t,r){const n=xb(),o=II(),i=Me("chakra-form__helper-text",t.className);return T.jsx(ce.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});LI.displayName="FormHelperText";function BI(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...i}=VI(e);return{...i,disabled:t,readOnly:n,required:o,"aria-invalid":ac(r),"aria-required":ac(o),"aria-readonly":ac(n)}}function VI(e){var t,r,n;const o=xb(),{id:i,disabled:a,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:y,...S}=e,C=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&C.push(o.feedbackId),o!=null&&o.hasHelpText&&C.push(o.helpTextId),{...S,"aria-describedby":C.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=a??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=s??d)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??u)!=null?n:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:Rm(o==null?void 0:o.onFocus,p),onBlur:Rm(o==null?void 0:o.onBlur,y)}}var[OI,NI]=Ar({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Hh=Ee(function(t,r){const n=Ca("Input",t),{children:o,className:i,...a}=lr(t),s=Me("chakra-input__group",i),l={},u=TI(o),c=n.field;u.forEach(f=>{var p,y;n&&(c&&f.type.id==="InputLeftElement"&&(l.paddingStart=(p=c.height)!=null?p:c.h),c&&f.type.id==="InputRightElement"&&(l.paddingEnd=(y=c.height)!=null?y:c.h),f.type.id==="InputRightAddon"&&(l.borderEndRadius=0),f.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const d=u.map(f=>{var p,y;const S=O1({size:((p=f.props)==null?void 0:p.size)||t.size,variant:((y=f.props)==null?void 0:y.variant)||t.variant});return f.type.id!=="Input"?k.cloneElement(f,S):k.cloneElement(f,Object.assign(S,l,f.props))});return T.jsx(ce.div,{className:s,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...a,children:T.jsx(OI,{value:n,children:d})})});Hh.displayName="InputGroup";var WI=ce("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),yu=Ee(function(t,r){var n,o;const{placement:i="left",...a}=t,s=NI(),l=s.field,c={[i==="left"?"insetStart":"insetEnd"]:"0",width:(n=l==null?void 0:l.height)!=null?n:l==null?void 0:l.h,height:(o=l==null?void 0:l.height)!=null?o:l==null?void 0:l.h,fontSize:l==null?void 0:l.fontSize,...s.element};return T.jsx(WI,{ref:r,__css:c,...a})});yu.id="InputElement";yu.displayName="InputElement";var wb=Ee(function(t,r){const{className:n,...o}=t,i=Me("chakra-input__left-element",n);return T.jsx(yu,{ref:r,placement:"left",className:i,...o})});wb.id="InputLeftElement";wb.displayName="InputLeftElement";var Su=Ee(function(t,r){const{className:n,...o}=t,i=Me("chakra-input__right-element",n);return T.jsx(yu,{ref:r,placement:"right",className:i,...o})});Su.id="InputRightElement";Su.displayName="InputRightElement";var bu=Ee(function(t,r){const{htmlSize:n,...o}=t,i=Ca("Input",o),a=lr(o),s=BI(a),l=Me("chakra-input",t.className);return T.jsx(ce.input,{size:n,...s,__css:i.field,ref:r,className:l})});bu.displayName="Input";bu.id="Input";var kb=Ee(function(t,r){const n=Ko("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=lr(t),u=O1({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return T.jsx(ce.p,{ref:r,className:Me("chakra-text",t.className),...u,...l,__css:n})});kb.displayName="Text";var Cb=Ee(function(t,r){const{className:n,centerContent:o,...i}=lr(t),a=Ko("Container",t);return T.jsx(ce.div,{ref:r,className:Me("chakra-container",n),...i,__css:{...a,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Cb.displayName="Container";var wi=Ee(function(t,r){const{direction:n,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:u,...c}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:u};return T.jsx(ce.div,{ref:r,__css:d,...c})});wi.displayName="Flex";const _b=k.createContext(void 0),UI=({children:e})=>{const[t,r]=k.useState([]),n=a=>{r(s=>[...s,{id:Date.now(),text:a}])},o=a=>{r(s=>s.filter(l=>l.id!==a))},i=(a,s)=>{r(l=>l.map(u=>u.id===a?{...u,text:s}:u))};return T.jsx(_b.Provider,{value:{todos:t,addTodo:n,deleteTodo:o,updateTodo:i},children:e})},Gh=()=>{const e=k.useContext(_b);if(!e)throw new Error("useTodoContext must be used within a TodoProvider");return e};var HI=vu({displayName:"EditIcon",path:T.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[T.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),T.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),GI=vu({displayName:"DeleteIcon",path:T.jsx("g",{fill:"currentColor",children:T.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"})})}),Mg=vu({viewBox:"0 0 14 14",path:T.jsx("g",{fill:"currentColor",children:T.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),KI=vu({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});const YI=({id:e,text:t})=>{const{deleteTodo:r,updateTodo:n}=Gh(),[o,i]=k.useState(!1),[a,s]=k.useState(!1),[l,u]=k.useState(t);return T.jsx(RI,{variant:"outline",width:"100%",marginY:"4",bg:a?"green.400":"whiteAlpha",children:T.jsxs(AI,{children:[T.jsxs(wi,{justifyContent:"space-between",alignItems:"center",children:[T.jsxs(wi,{alignItems:"center",children:[T.jsx(yo,{marginRight:"4",bg:a?"green.400":"whiteAlpha",textColor:a?"white":"green.400",onClick:()=>s(c=>!c),children:T.jsx(Mg,{})}),T.jsx(kb,{children:t})]}),T.jsx(wi,{children:!a&&T.jsxs(T.Fragment,{children:[T.jsx(yo,{marginRight:"4",onClick:()=>{i(c=>!c)},children:T.jsx(HI,{boxSize:4})}),T.jsx(yo,{"data-testid":"delete-element",onClick:()=>r(e),children:T.jsx(GI,{color:"red",boxSize:4})})]})})]}),o&&T.jsx(wi,{width:"100%",children:T.jsx("form",{style:{width:"100%"},children:T.jsxs(Hh,{width:"100%",size:"lg",marginY:"10",alignItems:"center",children:[T.jsx(bu,{onChange:c=>u(c.target.value),height:"4.5rem",width:"100%",value:l,placeholder:"what need to do"}),T.jsx(Su,{height:"4.5rem",width:"4.5rem",children:T.jsx(yo,{onClick:c=>{if(c.preventDefault(),l.trim()==="")return!1;n(e,l),i(!1)},type:"submit",height:"4.3rem",width:"4.3rem",children:T.jsx(Mg,{})})})]})})})]})},e)},XI=()=>{const{todos:e}=Gh();return T.jsx(T.Fragment,{children:e.map(t=>T.jsx(YI,{...t},t.id))})},QI=()=>{const{addTodo:e}=Gh(),[t,r]=k.useState(""),n=o=>{if(o.preventDefault(),t.trim()==="")return!1;e(t),r("")};return T.jsx("form",{children:T.jsxs(Hh,{size:"lg",marginY:"10",alignItems:"center",children:[T.jsx(bu,{onChange:o=>r(o.target.value),height:"4.5rem",value:t,placeholder:"what need to do"}),T.jsx(Su,{height:"4.5rem",width:"4.5rem",children:T.jsx(yo,{onClick:n,type:"submit",height:"4.3rem",role:"button",name:"createTask",width:"4.3rem",children:T.jsx(KI,{})})})]})})};function qI(){return T.jsxs(Cb,{maxW:"2xl",alignItems:"center",children:[T.jsx(QI,{}),T.jsx(XI,{})]})}Lc.createRoot(document.getElementById("root")).render(T.jsx(zo.StrictMode,{children:T.jsx(kI,{children:T.jsx(UI,{children:T.jsx(qI,{})})})})); diff --git a/index.html b/index.html index e53ddfc..14c299f 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Kani - +