From 48aca04a727983b1f35e897bcd054b12c7c72ab6 Mon Sep 17 00:00:00 2001 From: Peter Baylies Date: Wed, 21 Sep 2022 19:49:13 -0400 Subject: [PATCH] * Regenerated frontend --- frontend/dist/assets/index.00a29a58.js | 487 ----------------- frontend/dist/assets/index.553ce8c7.js | 487 +++++++++++++++++ frontend/dist/assets/index.632c341a.js | 694 ------------------------- frontend/dist/index.html | 2 +- 4 files changed, 488 insertions(+), 1182 deletions(-) delete mode 100644 frontend/dist/assets/index.00a29a58.js create mode 100644 frontend/dist/assets/index.553ce8c7.js delete mode 100644 frontend/dist/assets/index.632c341a.js diff --git a/frontend/dist/assets/index.00a29a58.js b/frontend/dist/assets/index.00a29a58.js deleted file mode 100644 index 16ea258c64..0000000000 --- a/frontend/dist/assets/index.00a29a58.js +++ /dev/null @@ -1,487 +0,0 @@ -function hB(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _={exports:{}},Ge={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var zf=Symbol.for("react.element"),gB=Symbol.for("react.portal"),vB=Symbol.for("react.fragment"),yB=Symbol.for("react.strict_mode"),bB=Symbol.for("react.profiler"),SB=Symbol.for("react.provider"),xB=Symbol.for("react.context"),wB=Symbol.for("react.forward_ref"),_B=Symbol.for("react.suspense"),CB=Symbol.for("react.memo"),kB=Symbol.for("react.lazy"),nC=Symbol.iterator;function EB(e){return e===null||typeof e!="object"?null:(e=nC&&e[nC]||e["@@iterator"],typeof e=="function"?e:null)}var KA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},YA=Object.assign,XA={};function gu(e,t,n){this.props=e,this.context=t,this.refs=XA,this.updater=n||KA}gu.prototype.isReactComponent={};gu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};gu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ZA(){}ZA.prototype=gu.prototype;function vS(e,t,n){this.props=e,this.context=t,this.refs=XA,this.updater=n||KA}var yS=vS.prototype=new ZA;yS.constructor=vS;YA(yS,gu.prototype);yS.isPureReactComponent=!0;var rC=Array.isArray,QA=Object.prototype.hasOwnProperty,bS={current:null},JA={key:!0,ref:!0,__self:!0,__source:!0};function eT(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)QA.call(t,r)&&!JA.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,H=j[R];if(0>>1;Ro(he,q))geo(Ee,he)?(j[R]=Ee,j[ge]=q,R=ge):(j[R]=he,j[se]=q,R=se);else if(geo(Ee,q))j[R]=Ee,j[ge]=q,R=ge;else break e}}return X}function o(j,X){var q=j.sortIndex-X.sortIndex;return q!==0?q:j.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],f=[],p=1,h=null,m=3,v=!1,y=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(j){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=j)r(f),X.sortIndex=X.expirationTime,t(c,X);else break;X=n(f)}}function P(j){if(S=!1,w(j),!y)if(n(c)!==null)y=!0,ve(O);else{var X=n(f);X!==null&&Pe(P,X.startTime-j)}}function O(j,X){y=!1,S&&(S=!1,x(V),V=-1),v=!0;var q=m;try{for(w(X),h=n(c);h!==null&&(!(h.expirationTime>X)||j&&!te());){var R=h.callback;if(typeof R=="function"){h.callback=null,m=h.priorityLevel;var H=R(h.expirationTime<=X);X=e.unstable_now(),typeof H=="function"?h.callback=H:h===n(c)&&r(c),w(X)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var se=n(f);se!==null&&Pe(P,se.startTime-X),ae=!1}return ae}finally{h=null,m=q,v=!1}}var M=!1,N=null,V=-1,K=5,W=-1;function te(){return!(e.unstable_now()-Wj||125R?(j.sortIndex=q,t(f,j),n(c)===null&&j===n(f)&&(S?(x(V),V=-1):S=!0,Pe(P,q-R))):(j.sortIndex=H,t(c,j),y||v||(y=!0,ve(O))),j},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(j){var X=m;return function(){var q=m;m=X;try{return j.apply(this,arguments)}finally{m=q}}}})(nT);(function(e){e.exports=nT})(tT);/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var rT=_.exports,Tr=tT.exports;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),n1=Object.prototype.hasOwnProperty,IB=/^[: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]*$/,aC={},sC={};function RB(e){return n1.call(sC,e)?!0:n1.call(aC,e)?!1:IB.test(e)?sC[e]=!0:(aC[e]=!0,!1)}function DB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function MB(e,t,n,r){if(t===null||typeof t>"u"||DB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Cn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cn[e]=new Xn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cn[t]=new Xn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cn[e]=new Xn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cn[e]=new Xn(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){Cn[e]=new Xn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cn[e]=new Xn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cn[e]=new Xn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cn[e]=new Xn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cn[e]=new Xn(e,5,!1,e.toLowerCase(),null,!1,!1)});var xS=/[\-:]([a-z])/g;function wS(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(xS,wS);Cn[t]=new Xn(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(xS,wS);Cn[t]=new Xn(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(xS,wS);Cn[t]=new Xn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cn[e]=new Xn(e,1,!1,e.toLowerCase(),null,!1,!1)});Cn.xlinkHref=new Xn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cn[e]=new Xn(e,1,!1,e.toLowerCase(),null,!0,!0)});function _S(e,t,n,r){var o=Cn.hasOwnProperty(t)?Cn[t]:null;(o!==null?o.type!==0:r||!(2u||o[s]!==i[u]){var c=` -`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=u);break}}}finally{H0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vc(e):""}function NB(e){switch(e.tag){case 5:return vc(e.type);case 16:return vc("Lazy");case 13:return vc("Suspense");case 19:return vc("SuspenseList");case 0:case 2:case 15:return e=G0(e.type,!1),e;case 11:return e=G0(e.type.render,!1),e;case 1:return e=G0(e.type,!0),e;default:return""}}function a1(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 _l:return"Fragment";case wl:return"Portal";case r1:return"Profiler";case CS:return"StrictMode";case o1:return"Suspense";case i1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case aT:return(e.displayName||"Context")+".Consumer";case iT:return(e._context.displayName||"Context")+".Provider";case kS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ES:return t=e.displayName||null,t!==null?t:a1(e.type)||"Memo";case fa:t=e._payload,e=e._init;try{return a1(e(t))}catch{}}return null}function FB(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 a1(t);case 8:return t===CS?"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 Ma(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function LB(e){var t=lT(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gp(e){e._valueTracker||(e._valueTracker=LB(e))}function uT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nh(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 s1(e,t){var n=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ma(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cT(e,t){t=t.checked,t!=null&&_S(e,"checked",t,!1)}function l1(e,t){cT(e,t);var n=Ma(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?u1(e,t.type,n):t.hasOwnProperty("defaultValue")&&u1(e,t.type,Ma(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cC(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function u1(e,t,n){(t!=="number"||Nh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yc=Array.isArray;function Bl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=vp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ec={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},$B=["Webkit","ms","Moz","O"];Object.keys(Ec).forEach(function(e){$B.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ec[t]=Ec[e]})});function hT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ec.hasOwnProperty(e)&&Ec[e]?(""+t).trim():t+"px"}function mT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=hT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var BB=Bt({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 d1(e,t){if(t){if(BB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function p1(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 h1=null;function PS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var m1=null,zl=null,Vl=null;function pC(e){if(e=Uf(e)){if(typeof m1!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=Xm(t),m1(e.stateNode,e.type,t))}}function gT(e){zl?Vl?Vl.push(e):Vl=[e]:zl=e}function vT(){if(zl){var e=zl,t=Vl;if(Vl=zl=null,pC(e),t)for(e=0;e>>=0,e===0?32:31-(XB(e)/ZB|0)|0}var yp=64,bp=4194304;function bc(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 Bh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~o;u!==0?r=bc(u):(i&=s,i!==0&&(r=bc(i)))}else s=n&~o,s!==0?r=bc(s):i!==0&&(r=bc(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Wf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_o(t),e[t]=n}function tz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ac),wC=String.fromCharCode(32),_C=!1;function LT(e,t){switch(e){case"keyup":return Tz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $T(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cl=!1;function Iz(e,t){switch(e){case"compositionend":return $T(t);case"keypress":return t.which!==32?null:(_C=!0,wC);case"textInput":return e=t.data,e===wC&&_C?null:e;default:return null}}function Rz(e,t){if(Cl)return e==="compositionend"||!NS&<(e,t)?(e=NT(),oh=RS=ya=null,Cl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=PC(n)}}function WT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?WT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jT(){for(var e=window,t=Nh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nh(e.document)}return t}function FS(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 Vz(e){var t=jT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&WT(n.ownerDocument.documentElement,n)){if(r!==null&&FS(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=AC(n,i);var s=AC(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,kl=null,x1=null,Oc=null,w1=!1;function TC(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;w1||kl==null||kl!==Nh(r)||(r=kl,"selectionStart"in r&&FS(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Oc&&nf(Oc,r)||(Oc=r,r=Wh(x1,"onSelect"),0Al||(e.current=A1[Al],A1[Al]=null,Al--)}function _t(e,t){Al++,A1[Al]=e.current,e.current=t}var Na={},Fn=Ua(Na),ar=Ua(!1),Os=Na;function tu(e,t){var n=e.type.contextTypes;if(!n)return Na;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function sr(e){return e=e.childContextTypes,e!=null}function Uh(){At(ar),At(Fn)}function FC(e,t,n){if(Fn.current!==Na)throw Error(oe(168));_t(Fn,t),_t(ar,n)}function QT(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(oe(108,FB(e)||"Unknown",o));return Bt({},n,r)}function Hh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Na,Os=Fn.current,_t(Fn,e),_t(ar,ar.current),!0}function LC(e,t,n){var r=e.stateNode;if(!r)throw Error(oe(169));n?(e=QT(e,t,Os),r.__reactInternalMemoizedMergedChildContext=e,At(ar),At(Fn),_t(Fn,e)):At(ar),_t(ar,n)}var Pi=null,Zm=!1,ay=!1;function JT(e){Pi===null?Pi=[e]:Pi.push(e)}function Jz(e){Zm=!0,JT(e)}function Ha(){if(!ay&&Pi!==null){ay=!0;var e=0,t=ut;try{var n=Pi;for(ut=1;e>=s,o-=s,Oi=1<<32-_o(t)+o|n<V?(K=N,N=null):K=N.sibling;var W=m(x,N,w[V],P);if(W===null){N===null&&(N=K);break}e&&N&&W.alternate===null&&t(x,N),b=i(W,b,V),M===null?O=W:M.sibling=W,M=W,N=K}if(V===w.length)return n(x,N),It&&as(x,V),O;if(N===null){for(;VV?(K=N,N=null):K=N.sibling;var te=m(x,N,W.value,P);if(te===null){N===null&&(N=K);break}e&&N&&te.alternate===null&&t(x,N),b=i(te,b,V),M===null?O=te:M.sibling=te,M=te,N=K}if(W.done)return n(x,N),It&&as(x,V),O;if(N===null){for(;!W.done;V++,W=w.next())W=h(x,W.value,P),W!==null&&(b=i(W,b,V),M===null?O=W:M.sibling=W,M=W);return It&&as(x,V),O}for(N=r(x,N);!W.done;V++,W=w.next())W=v(N,x,V,W.value,P),W!==null&&(e&&W.alternate!==null&&N.delete(W.key===null?V:W.key),b=i(W,b,V),M===null?O=W:M.sibling=W,M=W);return e&&N.forEach(function(xe){return t(x,xe)}),It&&as(x,V),O}function k(x,b,w,P){if(typeof w=="object"&&w!==null&&w.type===_l&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case mp:e:{for(var O=w.key,M=b;M!==null;){if(M.key===O){if(O=w.type,O===_l){if(M.tag===7){n(x,M.sibling),b=o(M,w.props.children),b.return=x,x=b;break e}}else if(M.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===fa&&UC(O)===M.type){n(x,M.sibling),b=o(M,w.props),b.ref=ac(x,M,w),b.return=x,x=b;break e}n(x,M);break}else t(x,M);M=M.sibling}w.type===_l?(b=_s(w.props.children,x.mode,P,w.key),b.return=x,x=b):(P=dh(w.type,w.key,w.props,null,x.mode,P),P.ref=ac(x,b,w),P.return=x,x=P)}return s(x);case wl:e:{for(M=w.key;b!==null;){if(b.key===M)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(x,b.sibling),b=o(b,w.children||[]),b.return=x,x=b;break e}else{n(x,b);break}else t(x,b);b=b.sibling}b=hy(w,x.mode,P),b.return=x,x=b}return s(x);case fa:return M=w._init,k(x,b,M(w._payload),P)}if(yc(w))return y(x,b,w,P);if(tc(w))return S(x,b,w,P);Ep(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(n(x,b.sibling),b=o(b,w),b.return=x,x=b):(n(x,b),b=py(w,x.mode,P),b.return=x,x=b),s(x)):n(x,b)}return k}var ru=sO(!0),lO=sO(!1),Hf={},Yo=Ua(Hf),sf=Ua(Hf),lf=Ua(Hf);function ys(e){if(e===Hf)throw Error(oe(174));return e}function HS(e,t){switch(_t(lf,t),_t(sf,e),_t(Yo,Hf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:f1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=f1(t,e)}At(Yo),_t(Yo,t)}function ou(){At(Yo),At(sf),At(lf)}function uO(e){ys(lf.current);var t=ys(Yo.current),n=f1(t,e.type);t!==n&&(_t(sf,e),_t(Yo,n))}function GS(e){sf.current===e&&(At(Yo),At(sf))}var Lt=Ua(0);function Zh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 sy=[];function qS(){for(var e=0;en?n:4,e(!0);var r=ly.transition;ly.transition={};try{e(!1),t()}finally{ut=n,ly.transition=r}}function kO(){return to().memoizedState}function r8(e,t,n){var r=Oa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},EO(e))PO(t,n);else if(n=rO(e,t,n,r),n!==null){var o=qn();Co(n,e,r,o),AO(n,t,r)}}function o8(e,t,n){var r=Oa(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(EO(e))PO(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,u=i(s,n);if(o.hasEagerState=!0,o.eagerState=u,Eo(u,s)){var c=t.interleaved;c===null?(o.next=o,jS(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=rO(e,t,o,r),n!==null&&(o=qn(),Co(n,e,r,o),AO(n,t,r))}}function EO(e){var t=e.alternate;return e===$t||t!==null&&t===$t}function PO(e,t){Ic=Qh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function AO(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,TS(e,n)}}var Jh={readContext:eo,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useInsertionEffect:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useSyncExternalStore:On,useId:On,unstable_isNewReconciler:!1},i8={readContext:eo,useCallback:function(e,t){return Lo().memoizedState=[e,t===void 0?null:t],e},useContext:eo,useEffect:GC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,lh(4194308,4,SO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lh(4194308,4,e,t)},useInsertionEffect:function(e,t){return lh(4,2,e,t)},useMemo:function(e,t){var n=Lo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=r8.bind(null,$t,e),[r.memoizedState,e]},useRef:function(e){var t=Lo();return e={current:e},t.memoizedState=e},useState:HC,useDebugValue:QS,useDeferredValue:function(e){return Lo().memoizedState=e},useTransition:function(){var e=HC(!1),t=e[0];return e=n8.bind(null,e[1]),Lo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$t,o=Lo();if(It){if(n===void 0)throw Error(oe(407));n=n()}else{if(n=t(),dn===null)throw Error(oe(349));(Rs&30)!==0||dO(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,GC(hO.bind(null,r,i,e),[e]),r.flags|=2048,ff(9,pO.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Lo(),t=dn.identifierPrefix;if(It){var n=Ii,r=Oi;n=(r&~(1<<32-_o(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=uf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[jo]=t,e[af]=r,LO(e,t,!1,!1),t.stateNode=e;e:{switch(s=p1(n,r),n){case"dialog":kt("cancel",e),kt("close",e),o=r;break;case"iframe":case"object":case"embed":kt("load",e),o=r;break;case"video":case"audio":for(o=0;oau&&(t.flags|=128,r=!0,sc(i,!1),t.lanes=4194304)}else{if(!r)if(e=Zh(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!It)return In(t),null}else 2*Kt()-i.renderingStartTime>au&&n!==1073741824&&(t.flags|=128,r=!0,sc(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Kt(),t.sibling=null,n=Lt.current,_t(Lt,r?n&1|2:n&1),t):(In(t),null);case 22:case 23:return ox(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(kr&1073741824)!==0&&(In(t),t.subtreeFlags&6&&(t.flags|=8192)):In(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function p8(e,t){switch($S(t),t.tag){case 1:return sr(t.type)&&Uh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ou(),At(ar),At(Fn),qS(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return GS(t),null;case 13:if(At(Lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));nu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return At(Lt),null;case 4:return ou(),null;case 10:return WS(t.type._context),null;case 22:case 23:return ox(),null;case 24:return null;default:return null}}var Ap=!1,Mn=!1,h8=typeof WeakSet=="function"?WeakSet:Set,Se=null;function Rl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Wt(e,t,r)}else n.current=null}function z1(e,t,n){try{n()}catch(r){Wt(e,t,r)}}var tk=!1;function m8(e,t){if(_1=zh,e=jT(),FS(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,u=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(u=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(C1={focusedElem:e,selectionRange:n},zh=!1,Se=t;Se!==null;)if(t=Se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Se=e;else for(;Se!==null;){t=Se;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var S=y.memoizedProps,k=y.memoizedState,x=t.stateNode,b=x.getSnapshotBeforeUpdate(t.elementType===t.type?S:yo(t.type,S),k);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(P){Wt(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,Se=e;break}Se=t.return}return y=tk,tk=!1,y}function Rc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&z1(t,n,i)}o=o.next}while(o!==r)}}function eg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function V1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zO(e){var t=e.alternate;t!==null&&(e.alternate=null,zO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jo],delete t[af],delete t[P1],delete t[Zz],delete t[Qz])),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 VO(e){return e.tag===5||e.tag===3||e.tag===4}function nk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VO(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 W1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jh));else if(r!==4&&(e=e.child,e!==null))for(W1(e,t,n),e=e.sibling;e!==null;)W1(e,t,n),e=e.sibling}function j1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(j1(e,t,n),e=e.sibling;e!==null;)j1(e,t,n),e=e.sibling}var Sn=null,bo=!1;function ra(e,t,n){for(n=n.child;n!==null;)WO(e,t,n),n=n.sibling}function WO(e,t,n){if(Ko&&typeof Ko.onCommitFiberUnmount=="function")try{Ko.onCommitFiberUnmount(Gm,n)}catch{}switch(n.tag){case 5:Mn||Rl(n,t);case 6:var r=Sn,o=bo;Sn=null,ra(e,t,n),Sn=r,bo=o,Sn!==null&&(bo?(e=Sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sn.removeChild(n.stateNode));break;case 18:Sn!==null&&(bo?(e=Sn,n=n.stateNode,e.nodeType===8?iy(e.parentNode,n):e.nodeType===1&&iy(e,n),ef(e)):iy(Sn,n.stateNode));break;case 4:r=Sn,o=bo,Sn=n.stateNode.containerInfo,bo=!0,ra(e,t,n),Sn=r,bo=o;break;case 0:case 11:case 14:case 15:if(!Mn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&((i&2)!==0||(i&4)!==0)&&z1(n,t,s),o=o.next}while(o!==r)}ra(e,t,n);break;case 1:if(!Mn&&(Rl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Wt(n,t,u)}ra(e,t,n);break;case 21:ra(e,t,n);break;case 22:n.mode&1?(Mn=(r=Mn)||n.memoizedState!==null,ra(e,t,n),Mn=r):ra(e,t,n);break;default:ra(e,t,n)}}function rk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h8),t.forEach(function(r){var o=C8.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function po(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Kt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*v8(r/1960))-r,10e?16:e,ba===null)var r=!1;else{if(e=ba,ba=null,nm=0,(Xe&6)!==0)throw Error(oe(331));var o=Xe;for(Xe|=4,Se=e.current;Se!==null;){var i=Se,s=i.child;if((Se.flags&16)!==0){var u=i.deletions;if(u!==null){for(var c=0;cKt()-nx?ws(e,0):tx|=n),lr(e,t)}function XO(e,t){t===0&&((e.mode&1)===0?t=1:(t=bp,bp<<=1,(bp&130023424)===0&&(bp=4194304)));var n=qn();e=Li(e,t),e!==null&&(Wf(e,t,n),lr(e,n))}function _8(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),XO(e,n)}function C8(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(oe(314))}r!==null&&r.delete(t),XO(e,n)}var ZO;ZO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ar.current)ir=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ir=!1,f8(e,t,n);ir=(e.flags&131072)!==0}else ir=!1,It&&(t.flags&1048576)!==0&&eO(t,qh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uh(e,t),e=t.pendingProps;var o=tu(t,Fn.current);jl(t,n),o=YS(null,t,r,e,o,n);var i=XS();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,sr(r)?(i=!0,Hh(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,US(t),o.updater=Qm,t.stateNode=o,o._reactInternals=t,D1(t,r,e,n),t=F1(null,t,r,!0,i,n)):(t.tag=0,It&&i&&LS(t),Gn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=E8(r),e=yo(r,e),o){case 0:t=N1(null,t,r,e,n);break e;case 1:t=QC(null,t,r,e,n);break e;case 11:t=XC(null,t,r,e,n);break e;case 14:t=ZC(null,t,r,yo(r.type,e),n);break e}throw Error(oe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),N1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),QC(e,t,r,o,n);case 3:e:{if(MO(t),e===null)throw Error(oe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,oO(e,t),Xh(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=iu(Error(oe(423)),t),t=JC(e,t,r,n,o);break e}else if(r!==o){o=iu(Error(oe(424)),t),t=JC(e,t,r,n,o);break e}else for(Er=Pa(t.stateNode.containerInfo.firstChild),Pr=t,It=!0,xo=null,n=lO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nu(),r===o){t=$i(e,t,n);break e}Gn(e,t,r,n)}t=t.child}return t;case 5:return uO(t),e===null&&O1(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,k1(r,o)?s=null:i!==null&&k1(r,i)&&(t.flags|=32),DO(e,t),Gn(e,t,s,n),t.child;case 6:return e===null&&O1(t),null;case 13:return NO(e,t,n);case 4:return HS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ru(t,null,r,n):Gn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),XC(e,t,r,o,n);case 7:return Gn(e,t,t.pendingProps,n),t.child;case 8:return Gn(e,t,t.pendingProps.children,n),t.child;case 12:return Gn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,_t(Kh,r._currentValue),r._currentValue=s,i!==null)if(Eo(i.value,s)){if(i.children===o.children&&!ar.current){t=$i(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){s=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Di(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),I1(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(oe(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),I1(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Gn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jl(t,n),o=eo(o),r=r(o),t.flags|=1,Gn(e,t,r,n),t.child;case 14:return r=t.type,o=yo(r,t.pendingProps),o=yo(r.type,o),ZC(e,t,r,o,n);case 15:return IO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),uh(e,t),t.tag=1,sr(r)?(e=!0,Hh(t)):e=!1,jl(t,n),aO(t,r,o),D1(t,r,o,n),F1(null,t,r,!0,e,n);case 19:return FO(e,t,n);case 22:return RO(e,t,n)}throw Error(oe(156,t.tag))};function QO(e,t){return CT(e,t)}function k8(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xr(e,t,n,r){return new k8(e,t,n,r)}function ax(e){return e=e.prototype,!(!e||!e.isReactComponent)}function E8(e){if(typeof e=="function")return ax(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kS)return 11;if(e===ES)return 14}return 2}function Ia(e,t){var n=e.alternate;return n===null?(n=Xr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function dh(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")ax(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case _l:return _s(n.children,o,i,t);case CS:s=8,o|=8;break;case r1:return e=Xr(12,n,t,o|2),e.elementType=r1,e.lanes=i,e;case o1:return e=Xr(13,n,t,o),e.elementType=o1,e.lanes=i,e;case i1:return e=Xr(19,n,t,o),e.elementType=i1,e.lanes=i,e;case sT:return ng(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iT:s=10;break e;case aT:s=9;break e;case kS:s=11;break e;case ES:s=14;break e;case fa:s=16,r=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=Xr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function _s(e,t,n,r){return e=Xr(7,e,r,t),e.lanes=n,e}function ng(e,t,n,r){return e=Xr(22,e,r,t),e.elementType=sT,e.lanes=n,e.stateNode={isHidden:!1},e}function py(e,t,n){return e=Xr(6,e,null,t),e.lanes=n,e}function hy(e,t,n){return t=Xr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function P8(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=K0(0),this.expirationTimes=K0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=K0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function sx(e,t,n,r,o,i,s,u,c){return e=new P8(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Xr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},US(i),e}function A8(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Dr})(Vf);var fk=Vf.exports;t1.createRoot=fk.createRoot,t1.hydrateRoot=fk.hydrateRoot;var Mi=Boolean(globalThis?.document)?_.exports.useLayoutEffect:_.exports.useEffect,sg={exports:{}},lg={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var D8=_.exports,M8=Symbol.for("react.element"),N8=Symbol.for("react.fragment"),F8=Object.prototype.hasOwnProperty,L8=D8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$8={key:!0,ref:!0,__self:!0,__source:!0};function nI(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)F8.call(t,r)&&!$8.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:M8,type:e,key:i,ref:s,props:o,_owner:L8.current}}lg.Fragment=N8;lg.jsx=nI;lg.jsxs=nI;(function(e){e.exports=lg})(sg);const fr=sg.exports.Fragment,E=sg.exports.jsx,ue=sg.exports.jsxs;var fx=_.exports.createContext({});fx.displayName="ColorModeContext";function ug(){const e=_.exports.useContext(fx);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Cs(e,t){const{colorMode:n}=ug();return n==="dark"?t:e}var Ip={light:"chakra-ui-light",dark:"chakra-ui-dark"};function B8(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o?.()},setClassName(r){document.body.classList.add(r?Ip.dark:Ip.light),document.body.classList.remove(r?Ip.light:Ip.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const o=n.query(),i=s=>{r(s.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 r=document.createElement("style");return r.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(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var z8="chakra-ui-color-mode";function V8(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var W8=V8(z8),dk=()=>{};function pk(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function rI(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=W8}=e,u=o==="dark"?"dark":"light",[c,f]=_.exports.useState(()=>pk(s,u)),[p,h]=_.exports.useState(()=>pk(s)),{getSystemTheme:m,setClassName:v,setDataset:y,addListener:S}=_.exports.useMemo(()=>B8({preventTransition:i}),[i]),k=o==="system"&&!c?p:c,x=_.exports.useCallback(P=>{const O=P==="system"?m():P;f(O),v(O==="dark"),y(O),s.set(O)},[s,m,v,y]);Mi(()=>{o==="system"&&h(m())},[]),_.exports.useEffect(()=>{const P=s.get();if(P){x(P);return}if(o==="system"){x("system");return}x(u)},[s,u,o,x]);const b=_.exports.useCallback(()=>{x(k==="dark"?"light":"dark")},[k,x]);_.exports.useEffect(()=>{if(!!r)return S(x)},[r,S,x]);const w=_.exports.useMemo(()=>({colorMode:t??k,toggleColorMode:t?dk:b,setColorMode:t?dk:x}),[k,b,x,t]);return E(fx.Provider,{value:w,children:n})}rI.displayName="ColorModeProvider";var j8=new Set(["dark","light","system"]);function U8(e){let t=e;return j8.has(t)||(t="light"),t}function H8(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=U8(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); - `,u=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${i?s:u}`.trim()}function G8(e={}){return E("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:H8(e)}})}var K1={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,u="[object Arguments]",c="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",h="[object Date]",m="[object Error]",v="[object Function]",y="[object GeneratorFunction]",S="[object Map]",k="[object Number]",x="[object Null]",b="[object Object]",w="[object Proxy]",P="[object RegExp]",O="[object Set]",M="[object String]",N="[object Undefined]",V="[object WeakMap]",K="[object ArrayBuffer]",W="[object DataView]",te="[object Float32Array]",xe="[object Float64Array]",fe="[object Int8Array]",we="[object Int16Array]",Ce="[object Int32Array]",ve="[object Uint8Array]",Pe="[object Uint8ClampedArray]",j="[object Uint16Array]",X="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,ae={};ae[te]=ae[xe]=ae[fe]=ae[we]=ae[Ce]=ae[ve]=ae[Pe]=ae[j]=ae[X]=!0,ae[u]=ae[c]=ae[K]=ae[p]=ae[W]=ae[h]=ae[m]=ae[v]=ae[S]=ae[k]=ae[b]=ae[P]=ae[O]=ae[M]=ae[V]=!1;var se=typeof Ai=="object"&&Ai&&Ai.Object===Object&&Ai,he=typeof self=="object"&&self&&self.Object===Object&&self,ge=se||he||Function("return this")(),Ee=t&&!t.nodeType&&t,ce=Ee&&!0&&e&&!e.nodeType&&e,Ae=ce&&ce.exports===Ee,Me=Ae&&se.process,mt=function(){try{var I=ce&&ce.require&&ce.require("util").types;return I||Me&&Me.binding&&Me.binding("util")}catch{}}(),Dt=mt&&mt.isTypedArray;function En(I,L,U){switch(U.length){case 0:return I.call(L);case 1:return I.call(L,U[0]);case 2:return I.call(L,U[0],U[1]);case 3:return I.call(L,U[0],U[1],U[2])}return I.apply(L,U)}function ye(I,L){for(var U=-1,me=Array(I);++U-1}function vv(I,L){var U=this.__data__,me=fi(U,I);return me<0?(++this.size,U.push([I,L])):U[me][1]=L,this}ao.prototype.clear=Au,ao.prototype.delete=mv,ao.prototype.get=Tu,ao.prototype.has=gv,ao.prototype.set=vv;function Gi(I){var L=-1,U=I==null?0:I.length;for(this.clear();++L1?U[We-1]:void 0,Fe=We>2?U[2]:void 0;for(st=I.length>3&&typeof st=="function"?(We--,st):void 0,Fe&&yd(U[0],U[1],Fe)&&(st=We<3?void 0:st,We=1),L=Object(L);++me-1&&I%1==0&&I0){if(++L>=o)return arguments[0]}else L=0;return I.apply(void 0,arguments)}}function _d(I){if(I!=null){try{return Jt.call(I)}catch{}try{return I+""}catch{}}return""}function Xs(I,L){return I===L||I!==I&&L!==L}var Fu=Iu(function(){return arguments}())?Iu:function(I){return Ya(I)&&zt.call(I,"callee")&&!To.call(I,"callee")},Lu=Array.isArray;function Zs(I){return I!=null&&kd(I.length)&&!$u(I)}function Fv(I){return Ya(I)&&Zs(I)}var Cd=Ka||Bv;function $u(I){if(!so(I))return!1;var L=Hs(I);return L==v||L==y||L==f||L==w}function kd(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=s}function so(I){var L=typeof I;return I!=null&&(L=="object"||L=="function")}function Ya(I){return I!=null&&typeof I=="object"}function Lv(I){if(!Ya(I)||Hs(I)!=b)return!1;var L=Pn(I);if(L===null)return!0;var U=zt.call(L,"constructor")&&L.constructor;return typeof U=="function"&&U instanceof U&&Jt.call(U)==at}var Ed=Dt?Mt(Dt):ud;function $v(I){return hd(I,Pd(I))}function Pd(I){return Zs(I)?Av(I,!0):Iv(I)}var gt=Gs(function(I,L,U,me){cd(I,L,U,me)});function pt(I){return function(){return I}}function Ad(I){return I}function Bv(){return!1}e.exports=gt})(K1,K1.exports);const Fa=K1.exports;function Go(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Ml(e,...t){return q8(e)?e(...t):e}var q8=e=>typeof e=="function",K8=e=>/!(important)?$/.test(e),hk=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Y1=(e,t)=>n=>{const r=String(t),o=K8(r),i=hk(r),s=e?`${e}.${i}`:i;let u=Go(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return u=hk(u),o?`${u} !important`:u};function pf(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const u=Y1(t,i)(s);let c=n?.(u,s)??u;return r&&(c=r(c,s)),c}}var Rp=(...e)=>t=>e.reduce((n,r)=>r(n),t);function ho(e,t){return n=>{const r={property:n,scale:e};return r.transform=pf({scale:e,transform:t}),r}}var Y8=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function X8(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Y8(t),transform:n?pf({scale:n,compose:r}):r}}var oI=["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 Z8(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...oI].join(" ")}function Q8(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...oI].join(" ")}var J8={"--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(" ")},e9={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 t9(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 n9={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},iI="& > :not(style) ~ :not(style)",r9={[iI]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},o9={[iI]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},X1={"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"},i9=new Set(Object.values(X1)),aI=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),a9=e=>e.trim();function s9(e,t){var n;if(e==null||aI.has(e))return e;const r=/(?^[a-z-A-Z]+)\((?(.*))\)/g,{type:o,values:i}=((n=r.exec(e))==null?void 0:n.groups)??{};if(!o||!i)return e;const s=o.includes("-gradient")?o:`${o}-gradient`,[u,...c]=i.split(",").map(a9).filter(Boolean);if(c?.length===0)return e;const f=u in X1?X1[u]:u;c.unshift(f);const p=c.map(h=>{if(i9.has(h))return h;const m=h.indexOf(" "),[v,y]=m!==-1?[h.substr(0,m),h.substr(m+1)]:[h],S=sI(y)?y:y&&y.split(" "),k=`colors.${v}`,x=k in t.__cssMap?t.__cssMap[k].varRef:v;return S?[x,...Array.isArray(S)?S:[S]].join(" "):x});return`${s}(${p.join(", ")})`}var sI=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),l9=(e,t)=>s9(e,t??{});function u9(e){return/^var\(--.+\)$/.test(e)}var c9=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Mo=e=>t=>`${e}(${t})`,Ye={filter(e){return e!=="auto"?e:J8},backdropFilter(e){return e!=="auto"?e:e9},ring(e){return t9(Ye.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Z8():e==="auto-gpu"?Q8():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=c9(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(u9(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:l9,blur:Mo("blur"),opacity:Mo("opacity"),brightness:Mo("brightness"),contrast:Mo("contrast"),dropShadow:Mo("drop-shadow"),grayscale:Mo("grayscale"),hueRotate:Mo("hue-rotate"),invert:Mo("invert"),saturate:Mo("saturate"),sepia:Mo("sepia"),bgImage(e){return e==null||sI(e)||aI.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=n9[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},$={borderWidths:ho("borderWidths"),borderStyles:ho("borderStyles"),colors:ho("colors"),borders:ho("borders"),radii:ho("radii",Ye.px),space:ho("space",Rp(Ye.vh,Ye.px)),spaceT:ho("space",Rp(Ye.vh,Ye.px)),degreeT(e){return{property:e,transform:Ye.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:pf({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:ho("sizes",Rp(Ye.vh,Ye.px)),sizesT:ho("sizes",Rp(Ye.vh,Ye.fraction)),shadows:ho("shadows"),logical:X8,blur:ho("blur",Ye.blur)},ph={background:$.colors("background"),backgroundColor:$.colors("backgroundColor"),backgroundImage:$.propT("backgroundImage",Ye.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ye.bgClip},bgSize:$.prop("backgroundSize"),bgPosition:$.prop("backgroundPosition"),bg:$.colors("background"),bgColor:$.colors("backgroundColor"),bgPos:$.prop("backgroundPosition"),bgRepeat:$.prop("backgroundRepeat"),bgAttachment:$.prop("backgroundAttachment"),bgGradient:$.propT("backgroundImage",Ye.gradient),bgClip:{transform:Ye.bgClip}};Object.assign(ph,{bgImage:ph.backgroundImage,bgImg:ph.backgroundImage});var Je={border:$.borders("border"),borderWidth:$.borderWidths("borderWidth"),borderStyle:$.borderStyles("borderStyle"),borderColor:$.colors("borderColor"),borderRadius:$.radii("borderRadius"),borderTop:$.borders("borderTop"),borderBlockStart:$.borders("borderBlockStart"),borderTopLeftRadius:$.radii("borderTopLeftRadius"),borderStartStartRadius:$.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:$.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:$.radii("borderTopRightRadius"),borderStartEndRadius:$.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:$.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:$.borders("borderRight"),borderInlineEnd:$.borders("borderInlineEnd"),borderBottom:$.borders("borderBottom"),borderBlockEnd:$.borders("borderBlockEnd"),borderBottomLeftRadius:$.radii("borderBottomLeftRadius"),borderBottomRightRadius:$.radii("borderBottomRightRadius"),borderLeft:$.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:$.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:$.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:$.borders(["borderLeft","borderRight"]),borderInline:$.borders("borderInline"),borderY:$.borders(["borderTop","borderBottom"]),borderBlock:$.borders("borderBlock"),borderTopWidth:$.borderWidths("borderTopWidth"),borderBlockStartWidth:$.borderWidths("borderBlockStartWidth"),borderTopColor:$.colors("borderTopColor"),borderBlockStartColor:$.colors("borderBlockStartColor"),borderTopStyle:$.borderStyles("borderTopStyle"),borderBlockStartStyle:$.borderStyles("borderBlockStartStyle"),borderBottomWidth:$.borderWidths("borderBottomWidth"),borderBlockEndWidth:$.borderWidths("borderBlockEndWidth"),borderBottomColor:$.colors("borderBottomColor"),borderBlockEndColor:$.colors("borderBlockEndColor"),borderBottomStyle:$.borderStyles("borderBottomStyle"),borderBlockEndStyle:$.borderStyles("borderBlockEndStyle"),borderLeftWidth:$.borderWidths("borderLeftWidth"),borderInlineStartWidth:$.borderWidths("borderInlineStartWidth"),borderLeftColor:$.colors("borderLeftColor"),borderInlineStartColor:$.colors("borderInlineStartColor"),borderLeftStyle:$.borderStyles("borderLeftStyle"),borderInlineStartStyle:$.borderStyles("borderInlineStartStyle"),borderRightWidth:$.borderWidths("borderRightWidth"),borderInlineEndWidth:$.borderWidths("borderInlineEndWidth"),borderRightColor:$.colors("borderRightColor"),borderInlineEndColor:$.colors("borderInlineEndColor"),borderRightStyle:$.borderStyles("borderRightStyle"),borderInlineEndStyle:$.borderStyles("borderInlineEndStyle"),borderTopRadius:$.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:$.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:$.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:$.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Je,{rounded:Je.borderRadius,roundedTop:Je.borderTopRadius,roundedTopLeft:Je.borderTopLeftRadius,roundedTopRight:Je.borderTopRightRadius,roundedTopStart:Je.borderStartStartRadius,roundedTopEnd:Je.borderStartEndRadius,roundedBottom:Je.borderBottomRadius,roundedBottomLeft:Je.borderBottomLeftRadius,roundedBottomRight:Je.borderBottomRightRadius,roundedBottomStart:Je.borderEndStartRadius,roundedBottomEnd:Je.borderEndEndRadius,roundedLeft:Je.borderLeftRadius,roundedRight:Je.borderRightRadius,roundedStart:Je.borderInlineStartRadius,roundedEnd:Je.borderInlineEndRadius,borderStart:Je.borderInlineStart,borderEnd:Je.borderInlineEnd,borderTopStartRadius:Je.borderStartStartRadius,borderTopEndRadius:Je.borderStartEndRadius,borderBottomStartRadius:Je.borderEndStartRadius,borderBottomEndRadius:Je.borderEndEndRadius,borderStartRadius:Je.borderInlineStartRadius,borderEndRadius:Je.borderInlineEndRadius,borderStartWidth:Je.borderInlineStartWidth,borderEndWidth:Je.borderInlineEndWidth,borderStartColor:Je.borderInlineStartColor,borderEndColor:Je.borderInlineEndColor,borderStartStyle:Je.borderInlineStartStyle,borderEndStyle:Je.borderInlineEndStyle});var f9={color:$.colors("color"),textColor:$.colors("color"),fill:$.colors("fill"),stroke:$.colors("stroke")},Z1={boxShadow:$.shadows("boxShadow"),mixBlendMode:!0,blendMode:$.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:$.prop("backgroundBlendMode"),opacity:!0};Object.assign(Z1,{shadow:Z1.boxShadow});var d9={filter:{transform:Ye.filter},blur:$.blur("--chakra-blur"),brightness:$.propT("--chakra-brightness",Ye.brightness),contrast:$.propT("--chakra-contrast",Ye.contrast),hueRotate:$.degreeT("--chakra-hue-rotate"),invert:$.propT("--chakra-invert",Ye.invert),saturate:$.propT("--chakra-saturate",Ye.saturate),dropShadow:$.propT("--chakra-drop-shadow",Ye.dropShadow),backdropFilter:{transform:Ye.backdropFilter},backdropBlur:$.blur("--chakra-backdrop-blur"),backdropBrightness:$.propT("--chakra-backdrop-brightness",Ye.brightness),backdropContrast:$.propT("--chakra-backdrop-contrast",Ye.contrast),backdropHueRotate:$.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:$.propT("--chakra-backdrop-invert",Ye.invert),backdropSaturate:$.propT("--chakra-backdrop-saturate",Ye.saturate)},im={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ye.flexDirection},experimental_spaceX:{static:r9,transform:pf({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:o9,transform:pf({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:$.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:$.space("gap"),rowGap:$.space("rowGap"),columnGap:$.space("columnGap")};Object.assign(im,{flexDir:im.flexDirection});var lI={gridGap:$.space("gridGap"),gridColumnGap:$.space("gridColumnGap"),gridRowGap:$.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},p9={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ye.outline},outlineOffset:!0,outlineColor:$.colors("outlineColor")},qr={width:$.sizesT("width"),inlineSize:$.sizesT("inlineSize"),height:$.sizes("height"),blockSize:$.sizes("blockSize"),boxSize:$.sizes(["width","height"]),minWidth:$.sizes("minWidth"),minInlineSize:$.sizes("minInlineSize"),minHeight:$.sizes("minHeight"),minBlockSize:$.sizes("minBlockSize"),maxWidth:$.sizes("maxWidth"),maxInlineSize:$.sizes("maxInlineSize"),maxHeight:$.sizes("maxHeight"),maxBlockSize:$.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:$.propT("float",Ye.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(qr,{w:qr.width,h:qr.height,minW:qr.minWidth,maxW:qr.maxWidth,minH:qr.minHeight,maxH:qr.maxHeight,overscroll:qr.overscrollBehavior,overscrollX:qr.overscrollBehaviorX,overscrollY:qr.overscrollBehaviorY});var h9={listStyleType:!0,listStylePosition:!0,listStylePos:$.prop("listStylePosition"),listStyleImage:!0,listStyleImg:$.prop("listStyleImage")};function m9(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(o))return u.get(o);const c=e(r,o,i,s);return u.set(o,c),c}},v9=g9(m9),y9={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},b9={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},my=(e,t,n)=>{const r={},o=v9(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},S9={srOnly:{transform(e){return e===!0?y9:e==="focusable"?b9:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>my(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>my(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>my(t,e,n)}},Nc={position:!0,pos:$.prop("position"),zIndex:$.prop("zIndex","zIndices"),inset:$.spaceT("inset"),insetX:$.spaceT(["left","right"]),insetInline:$.spaceT("insetInline"),insetY:$.spaceT(["top","bottom"]),insetBlock:$.spaceT("insetBlock"),top:$.spaceT("top"),insetBlockStart:$.spaceT("insetBlockStart"),bottom:$.spaceT("bottom"),insetBlockEnd:$.spaceT("insetBlockEnd"),left:$.spaceT("left"),insetInlineStart:$.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:$.spaceT("right"),insetInlineEnd:$.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Nc,{insetStart:Nc.insetInlineStart,insetEnd:Nc.insetInlineEnd});var x9={ring:{transform:Ye.ring},ringColor:$.colors("--chakra-ring-color"),ringOffset:$.prop("--chakra-ring-offset-width"),ringOffsetColor:$.colors("--chakra-ring-offset-color"),ringInset:$.prop("--chakra-ring-inset")},Et={margin:$.spaceT("margin"),marginTop:$.spaceT("marginTop"),marginBlockStart:$.spaceT("marginBlockStart"),marginRight:$.spaceT("marginRight"),marginInlineEnd:$.spaceT("marginInlineEnd"),marginBottom:$.spaceT("marginBottom"),marginBlockEnd:$.spaceT("marginBlockEnd"),marginLeft:$.spaceT("marginLeft"),marginInlineStart:$.spaceT("marginInlineStart"),marginX:$.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:$.spaceT("marginInline"),marginY:$.spaceT(["marginTop","marginBottom"]),marginBlock:$.spaceT("marginBlock"),padding:$.space("padding"),paddingTop:$.space("paddingTop"),paddingBlockStart:$.space("paddingBlockStart"),paddingRight:$.space("paddingRight"),paddingBottom:$.space("paddingBottom"),paddingBlockEnd:$.space("paddingBlockEnd"),paddingLeft:$.space("paddingLeft"),paddingInlineStart:$.space("paddingInlineStart"),paddingInlineEnd:$.space("paddingInlineEnd"),paddingX:$.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:$.space("paddingInline"),paddingY:$.space(["paddingTop","paddingBottom"]),paddingBlock:$.space("paddingBlock")};Object.assign(Et,{m:Et.margin,mt:Et.marginTop,mr:Et.marginRight,me:Et.marginInlineEnd,marginEnd:Et.marginInlineEnd,mb:Et.marginBottom,ml:Et.marginLeft,ms:Et.marginInlineStart,marginStart:Et.marginInlineStart,mx:Et.marginX,my:Et.marginY,p:Et.padding,pt:Et.paddingTop,py:Et.paddingY,px:Et.paddingX,pb:Et.paddingBottom,pl:Et.paddingLeft,ps:Et.paddingInlineStart,paddingStart:Et.paddingInlineStart,pr:Et.paddingRight,pe:Et.paddingInlineEnd,paddingEnd:Et.paddingInlineEnd});var w9={textDecorationColor:$.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:$.shadows("textShadow")},_9={clipPath:!0,transform:$.propT("transform",Ye.transform),transformOrigin:!0,translateX:$.spaceT("--chakra-translate-x"),translateY:$.spaceT("--chakra-translate-y"),skewX:$.degreeT("--chakra-skew-x"),skewY:$.degreeT("--chakra-skew-y"),scaleX:$.prop("--chakra-scale-x"),scaleY:$.prop("--chakra-scale-y"),scale:$.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:$.degreeT("--chakra-rotate")},C9={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:$.prop("transitionDuration","transition.duration"),transitionProperty:$.prop("transitionProperty","transition.property"),transitionTimingFunction:$.prop("transitionTimingFunction","transition.easing")},k9={fontFamily:$.prop("fontFamily","fonts"),fontSize:$.prop("fontSize","fontSizes",Ye.px),fontWeight:$.prop("fontWeight","fontWeights"),lineHeight:$.prop("lineHeight","lineHeights"),letterSpacing:$.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},E9={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:$.spaceT("scrollMargin"),scrollMarginTop:$.spaceT("scrollMarginTop"),scrollMarginBottom:$.spaceT("scrollMarginBottom"),scrollMarginLeft:$.spaceT("scrollMarginLeft"),scrollMarginRight:$.spaceT("scrollMarginRight"),scrollMarginX:$.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:$.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:$.spaceT("scrollPadding"),scrollPaddingTop:$.spaceT("scrollPaddingTop"),scrollPaddingBottom:$.spaceT("scrollPaddingBottom"),scrollPaddingLeft:$.spaceT("scrollPaddingLeft"),scrollPaddingRight:$.spaceT("scrollPaddingRight"),scrollPaddingX:$.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:$.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function uI(e){return Go(e)&&e.reference?e.reference:String(e)}var cg=(e,...t)=>t.map(uI).join(` ${e} `).replace(/calc/g,""),mk=(...e)=>`calc(${cg("+",...e)})`,gk=(...e)=>`calc(${cg("-",...e)})`,Q1=(...e)=>`calc(${cg("*",...e)})`,vk=(...e)=>`calc(${cg("/",...e)})`,yk=e=>{const t=uI(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Q1(t,-1)},ps=Object.assign(e=>({add:(...t)=>ps(mk(e,...t)),subtract:(...t)=>ps(gk(e,...t)),multiply:(...t)=>ps(Q1(e,...t)),divide:(...t)=>ps(vk(e,...t)),negate:()=>ps(yk(e)),toString:()=>e.toString()}),{add:mk,subtract:gk,multiply:Q1,divide:vk,negate:yk});function P9(e,t="-"){return e.replace(/\s+/g,t)}function A9(e){const t=P9(e.toString());return O9(T9(t))}function T9(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function O9(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function I9(e,t=""){return[t,e].filter(Boolean).join("-")}function R9(e,t){return`var(${e}${t?`, ${t}`:""})`}function D9(e,t=""){return A9(`--${I9(e,t)}`)}function Ga(e,t,n){const r=D9(e,n);return{variable:r,reference:R9(r,t)}}function M9(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function N9(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function F9(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function J1(e){if(e==null)return e;const{unitless:t}=F9(e);return t||typeof e=="number"?`${e}px`:e}var cI=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,dx=e=>Object.fromEntries(Object.entries(e).sort(cI));function bk(e){const t=dx(e);return Object.assign(Object.values(t),t)}function L9(e){const t=Object.keys(dx(e));return new Set(t)}function Sk(e){if(!e)return e;e=J1(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function xc(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${J1(e)})`),t&&n.push("and",`(max-width: ${J1(t)})`),n.join(" ")}function $9(e){if(!e)return null;e.base=e.base??"0px";const t=bk(e),n=Object.entries(e).sort(cI).map(([i,s],u,c)=>{let[,f]=c[u+1]??[];return f=parseFloat(f)>0?Sk(f):void 0,{_minW:Sk(s),breakpoint:i,minW:s,maxW:f,maxWQuery:xc(null,f),minWQuery:xc(s),minMaxQuery:xc(s,f)}}),r=L9(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(u=>r.has(u))},asObject:dx(e),asArray:bk(e),details:n,media:[null,...t.map(i=>xc(i)).slice(1)],toArrayValue(i){if(!M9(i))throw new Error("toArrayValue: value must be an object");const s=o.map(u=>i[u]??null);for(;N9(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,u,c)=>{const f=o[c];return f!=null&&u!=null&&(s[f]=u),s},{})}}}var vn={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}`},oa=e=>fI(t=>e(t,"&"),"[role=group]","[data-group]",".group"),wi=e=>fI(t=>e(t,"~ &"),"[data-peer]",".peer"),fI=(e,...t)=>t.map(e).join(", "),fg={_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], &[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",_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:oa(vn.hover),_peerHover:wi(vn.hover),_groupFocus:oa(vn.focus),_peerFocus:wi(vn.focus),_groupFocusVisible:oa(vn.focusVisible),_peerFocusVisible:wi(vn.focusVisible),_groupActive:oa(vn.active),_peerActive:wi(vn.active),_groupDisabled:oa(vn.disabled),_peerDisabled:wi(vn.disabled),_groupInvalid:oa(vn.invalid),_peerInvalid:wi(vn.invalid),_groupChecked:oa(vn.checked),_peerChecked:wi(vn.checked),_groupFocusWithin:oa(vn.focusWithin),_peerFocusWithin:wi(vn.focusWithin),_peerPlaceholderShown:wi(vn.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]"},B9=Object.keys(fg);function xk(e,t){return Ga(String(e).replace(/\./g,"-"),void 0,t)}function z9(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:u}=i,{variable:c,reference:f}=xk(o,t?.cssVarPrefix);if(!s){if(o.startsWith("space")){const m=o.split("."),[v,...y]=m,S=`${v}.-${y.join(".")}`,k=ps.negate(u),x=ps.negate(f);r[S]={value:k,var:c,varRef:x}}n[c]=u,r[o]={value:u,var:c,varRef:f};continue}const p=m=>{const y=[String(o).split(".")[0],m].join(".");if(!e[y])return m;const{reference:k}=xk(y,t?.cssVarPrefix);return k},h=Go(u)?u:{default:u};n=Fa(n,Object.entries(h).reduce((m,[v,y])=>{var S;const k=p(y);if(v==="default")return m[c]=k,m;const x=((S=fg)==null?void 0:S[v])??v;return m[x]={[c]:k},m},{})),r[o]={value:f,var:c,varRef:f}}return{cssVars:n,cssMap:r}}function V9(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function W9(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var j9=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function U9(e){return W9(e,j9)}function H9(e){return e.semanticTokens}function G9(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function q9({tokens:e,semanticTokens:t}){const n=Object.entries(eb(e)??{}).map(([o,i])=>[o,{isSemantic:!1,value:i}]),r=Object.entries(eb(t,1)??{}).map(([o,i])=>[o,{isSemantic:!0,value:i}]);return Object.fromEntries([...n,...r])}function eb(e,t=1/0){return!Go(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,o])=>(Go(o)||Array.isArray(o)?Object.entries(eb(o,t-1)).forEach(([i,s])=>{n[`${r}.${i}`]=s}):n[r]=o,n),{})}function K9(e){var t;const n=G9(e),r=U9(n),o=H9(n),i=q9({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=z9(i,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...c},__cssMap:u,__breakpoints:$9(n.breakpoints)}),n}var px=Fa({},ph,Je,f9,im,qr,d9,x9,p9,lI,S9,Nc,Z1,Et,E9,k9,w9,_9,h9,C9),Y9=Object.assign({},Et,qr,im,lI,Nc),X9=Object.keys(Y9),Z9=[...Object.keys(px),...B9],Q9={...px,...fg},J9=e=>e in Q9;function e7(e){return/^var\(--.+\)$/.test(e)}var t7=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!e7(t),n7=(e,t)=>{if(t==null)return t;const n=u=>{var c,f;return(f=(c=e.__cssMap)==null?void 0:c[u])==null?void 0:f.varRef},r=u=>n(u)??u,o=t.split(",").map(u=>u.trim()),[i,s]=o;return t=n(i)??r(s)??r(t),t};function r7(e){const{configs:t={},pseudos:n={},theme:r}=e;if(!r.__breakpoints)return()=>({});const{isResponsive:o,toArrayValue:i,media:s}=r.__breakpoints,u=(c,f=!1)=>{var p;const h=Ml(c,r);let m={};for(let v in h){let y=Ml(h[v],r);if(y==null)continue;if(Array.isArray(y)||Go(y)&&o(y)){let b=Array.isArray(y)?y:i(y);b=b.slice(0,s.length);for(let w=0;wt=>r7({theme:t,pseudos:fg,configs:px})(e);function Rt(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function o7(e,t){if(Array.isArray(e))return e;if(Go(e))return t(e);if(e!=null)return[e]}function i7(e,t){for(let n=t+1;n{Fa(f,{[w]:m?b[w]:{[x]:b[w]}})});continue}if(!v){m?Fa(f,b):f[x]=b;continue}f[x]=b}}return f}}function s7(e){return t=>{const{variant:n,size:r,theme:o}=t,i=a7(o);return Fa({},Ml(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function l7(e,t,n){var r,o;return((o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)??n}function bt(e){return V9(e,["styleConfig","size","variant","colorScheme"])}function u7(e){if(e.sheet)return e.sheet;for(var t=0;t0?rr(bu,--dr):0,su--,en===10&&(su=1,pg--),en}function Ar(){return en=dr2||mf(en)>3?"":" "}function x7(e,t){for(;--t&&Ar()&&!(en<48||en>102||en>57&&en<65||en>70&&en<97););return Gf(e,hh()+(t<6&&Xo()==32&&Ar()==32))}function nb(e){for(;Ar();)switch(en){case e:return dr;case 34:case 39:e!==34&&e!==39&&nb(en);break;case 40:e===41&&nb(e);break;case 92:Ar();break}return dr}function w7(e,t){for(;Ar()&&e+en!==47+10;)if(e+en===42+42&&Xo()===47)break;return"/*"+Gf(t,dr-1)+"*"+dg(e===47?e:Ar())}function _7(e){for(;!mf(Xo());)Ar();return Gf(e,dr)}function C7(e){return yI(gh("",null,null,null,[""],e=vI(e),0,[0],e))}function gh(e,t,n,r,o,i,s,u,c){for(var f=0,p=0,h=s,m=0,v=0,y=0,S=1,k=1,x=1,b=0,w="",P=o,O=i,M=r,N=w;k;)switch(y=b,b=Ar()){case 40:if(y!=108&&N.charCodeAt(h-1)==58){tb(N+=ot(mh(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:N+=mh(b);break;case 9:case 10:case 13:case 32:N+=S7(y);break;case 92:N+=x7(hh()-1,7);continue;case 47:switch(Xo()){case 42:case 47:Dp(k7(w7(Ar(),hh()),t,n),c);break;default:N+="/"}break;case 123*S:u[f++]=Vo(N)*x;case 125*S:case 59:case 0:switch(b){case 0:case 125:k=0;case 59+p:v>0&&Vo(N)-h&&Dp(v>32?_k(N+";",r,n,h-1):_k(ot(N," ","")+";",r,n,h-2),c);break;case 59:N+=";";default:if(Dp(M=wk(N,t,n,f,p,o,u,w,P=[],O=[],h),i),b===123)if(p===0)gh(N,t,M,M,P,i,h,u,O);else switch(m){case 100:case 109:case 115:gh(e,M,M,r&&Dp(wk(e,M,M,0,0,o,u,w,o,P=[],h),O),o,O,h,u,r?P:O);break;default:gh(N,M,M,M,[""],O,0,u,O)}}f=p=v=0,S=x=1,w=N="",h=s;break;case 58:h=1+Vo(N),v=y;default:if(S<1){if(b==123)--S;else if(b==125&&S++==0&&b7()==125)continue}switch(N+=dg(b),b*S){case 38:x=p>0?1:(N+="\f",-1);break;case 44:u[f++]=(Vo(N)-1)*x,x=1;break;case 64:Xo()===45&&(N+=mh(Ar())),m=Xo(),p=h=Vo(w=N+=_7(hh())),b++;break;case 45:y===45&&Vo(N)==2&&(S=0)}}return i}function wk(e,t,n,r,o,i,s,u,c,f,p){for(var h=o-1,m=o===0?i:[""],v=gx(m),y=0,S=0,k=0;y0?m[x]+" "+b:ot(b,/&\f/g,m[x])))&&(c[k++]=w);return hg(e,t,n,o===0?hx:u,c,f,p)}function k7(e,t,n){return hg(e,t,n,pI,dg(y7()),hf(e,2,-2),0)}function _k(e,t,n,r){return hg(e,t,n,mx,hf(e,0,r),hf(e,r+1,-1),r)}function bI(e,t){switch(m7(e,t)){case 5103:return et+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return et+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return et+e+am+e+Rn+e+e;case 6828:case 4268:return et+e+Rn+e+e;case 6165:return et+e+Rn+"flex-"+e+e;case 5187:return et+e+ot(e,/(\w+).+(:[^]+)/,et+"box-$1$2"+Rn+"flex-$1$2")+e;case 5443:return et+e+Rn+"flex-item-"+ot(e,/flex-|-self/,"")+e;case 4675:return et+e+Rn+"flex-line-pack"+ot(e,/align-content|flex-|-self/,"")+e;case 5548:return et+e+Rn+ot(e,"shrink","negative")+e;case 5292:return et+e+Rn+ot(e,"basis","preferred-size")+e;case 6060:return et+"box-"+ot(e,"-grow","")+et+e+Rn+ot(e,"grow","positive")+e;case 4554:return et+ot(e,/([^-])(transform)/g,"$1"+et+"$2")+e;case 6187:return ot(ot(ot(e,/(zoom-|grab)/,et+"$1"),/(image-set)/,et+"$1"),e,"")+e;case 5495:case 3959:return ot(e,/(image-set\([^]*)/,et+"$1$`$1");case 4968:return ot(ot(e,/(.+:)(flex-)?(.*)/,et+"box-pack:$3"+Rn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+et+e+e;case 4095:case 3583:case 4068:case 2532:return ot(e,/(.+)-inline(.+)/,et+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vo(e)-1-t>6)switch(rr(e,t+1)){case 109:if(rr(e,t+4)!==45)break;case 102:return ot(e,/(.+:)(.+)-([^]+)/,"$1"+et+"$2-$3$1"+am+(rr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tb(e,"stretch")?bI(ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(rr(e,t+1)!==115)break;case 6444:switch(rr(e,Vo(e)-3-(~tb(e,"!important")&&10))){case 107:return ot(e,":",":"+et)+e;case 101:return ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+et+(rr(e,14)===45?"inline-":"")+"box$3$1"+et+"$2$3$1"+Rn+"$2box$3")+e}break;case 5936:switch(rr(e,t+11)){case 114:return et+e+Rn+ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return et+e+Rn+ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return et+e+Rn+ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return et+e+Rn+e+e}return e}function Hl(e,t){for(var n="",r=gx(e),o=0;o-1&&!e.return)switch(e.type){case mx:e.return=bI(e.value,e.length);break;case hI:return Hl([uc(e,{value:ot(e.value,"@","@"+et)})],r);case hx:if(e.length)return v7(e.props,function(o){switch(g7(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hl([uc(e,{props:[ot(o,/:(read-\w+)/,":"+am+"$1")]})],r);case"::placeholder":return Hl([uc(e,{props:[ot(o,/:(plac\w+)/,":"+et+"input-$1")]}),uc(e,{props:[ot(o,/:(plac\w+)/,":"+am+"$1")]}),uc(e,{props:[ot(o,/:(plac\w+)/,Rn+"input-$1")]})],r)}return""})}}var Ck=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var o=t(r);return n.set(r,o),o}};function SI(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var O7=function(t,n,r){for(var o=0,i=0;o=i,i=Xo(),o===38&&i===12&&(n[r]=1),!mf(i);)Ar();return Gf(t,dr)},I7=function(t,n){var r=-1,o=44;do switch(mf(o)){case 0:o===38&&Xo()===12&&(n[r]=1),t[r]+=O7(dr-1,n,r);break;case 2:t[r]+=mh(o);break;case 4:if(o===44){t[++r]=Xo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=dg(o)}while(o=Ar());return t},R7=function(t,n){return yI(I7(vI(t),n))},kk=new WeakMap,D7=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!kk.get(r))&&!o){kk.set(t,!0);for(var i=[],s=R7(n,i),u=r.props,c=0,f=0;c=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var q7={animationIterationCount: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},K7=/[A-Z]|^ms/g,Y7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PI=function(t){return t.charCodeAt(1)===45},Ek=function(t){return t!=null&&typeof t!="boolean"},gy=SI(function(e){return PI(e)?e:e.replace(K7,"-$&").toLowerCase()}),Pk=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Y7,function(r,o,i){return Wo={name:o,styles:i,next:Wo},o})}return q7[t]!==1&&!PI(t)&&typeof n=="number"&&n!==0?n+"px":n};function vf(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Wo={name:n.name,styles:n.styles,next:Wo},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Wo={name:r.name,styles:r.styles,next:Wo},r=r.next;var o=n.styles+";";return o}return X7(e,t,n)}case"function":{if(e!==void 0){var i=Wo,s=n(e);return Wo=i,vf(e,t,s)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function X7(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{t.includes(r)||(n[r]=e[r])}),n}function oV(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(o))return u.get(o);const c=e(r,o,i,s);return u.set(o,c),c}},II=iV(oV);function RI(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var DI=e=>RI(e,t=>t!=null);function aV(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var sV=aV();function MI(e,...t){return Nl(e)?e(...t):e}function lV(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var uV=(...e)=>t=>e.reduce((n,r)=>r(n),t);Object.freeze(["base","sm","md","lg","xl","2xl"]);function cV(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=_.exports.createContext(void 0);o.displayName=r;function i(){var s;const u=_.exports.useContext(o);if(!u&&t){const c=new Error(n);throw c.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,c,i),c}return u}return[o.Provider,i,o]}var fV=/^((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)-.*))$/,dV=SI(function(e){return fV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),pV=dV,hV=function(t){return t!=="theme"},Ok=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?pV:hV},Ik=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},mV=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return kI(n,r,o),Q7(function(){return EI(n,r,o)}),null},gV=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var u=Ik(t,n,r),c=u||Ok(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v` or ``");return e}function NI(){const e=ug(),t=xx();return{...e,theme:t}}function _V(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__breakpoints)==null?void 0:i.asArray)==null?void 0:s[o]};return r(t)??r(n)??n}function CV(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__cssMap)==null?void 0:i[o])==null?void 0:s.value};return r(t)??r(n)??n}function kV(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),u=r.map((c,f)=>{if(e==="breakpoints")return _V(i,c,s[f]??c);const p=`${e}.${c}`;return CV(i,p,s[f]??c)});return Array.isArray(t)?u:u[0]}}function EV(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=_.exports.useMemo(()=>K9(n),[n]);return ue(tV,{theme:o,children:[E(PV,{root:t}),r]})}function PV({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return E(kg,{styles:n=>({[t]:n.__cssVars})})}cV({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function AV(){const{colorMode:e}=ug();return E(kg,{styles:t=>{const n=II(t,"styles.global"),r=MI(n,{theme:t,colorMode:e});return r?dI(r)(t):void 0}})}var TV=new Set([...Z9,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),OV=new Set(["htmlWidth","htmlHeight","htmlSize"]);function IV(e){return OV.has(e)||!TV.has(e)}var RV=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,u=RI(s,(h,m)=>J9(m)),c=MI(e,t),f=Object.assign({},o,c,DI(u),i),p=dI(f)(t.theme);return r?[p,r]:p};function vy(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=IV);const o=RV({baseStyle:n});return rb(e,r)(o)}function de(e){return _.exports.forwardRef(e)}function FI(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=NI(),s=II(o,`components.${e}`),u=n||s,c=Fa({theme:o,colorMode:i},u?.defaultProps??{},DI(rV(r,["children"]))),f=_.exports.useRef({});if(u){const h=s7(u)(c);wV(f.current,h)||(f.current=h)}return f.current}function Zn(e,t={}){return FI(e,t)}function Fr(e,t={}){return FI(e,t)}function DV(){const e=new Map;return new Proxy(vy,{apply(t,n,r){return vy(...r)},get(t,n){return e.has(n)||e.set(n,vy(n)),e.get(n)}})}var ie=DV();function MV(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Xt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i}=e,s=_.exports.createContext(void 0);s.displayName=t;function u(){var c;const f=_.exports.useContext(s);if(!f&&n){const p=new Error(i??MV(r,o));throw p.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,p,u),p}return f}return[s.Provider,u,s]}function NV(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 Kn(...e){return t=>{e.forEach(n=>{NV(n,t)})}}function FV(...e){return _.exports.useMemo(()=>Kn(...e),e)}function Rk(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var LV=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Dk(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Mk(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var ob=typeof window<"u"?_.exports.useLayoutEffect:_.exports.useEffect,sm=e=>e,$V=class{descendants=new Map;register=e=>{if(e!=null)return LV(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=Rk(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(this.count()!==0)return this.values()[e]};enabledItem=e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?((t=this.descendants.get(e))==null?void 0:t.index)??-1:-1};enabledIndexOf=e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=Dk(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=Dk(r,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const n=Mk(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=Mk(r,this.enabledCount()-1,t);return this.enabledItem(o)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=Rk(n);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)}};function BV(){const e=_.exports.useRef(new $V);return ob(()=>()=>e.current.destroy()),e.current}var[zV,LI]=Xt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function VV(e){const t=LI(),[n,r]=_.exports.useState(-1),o=_.exports.useRef(null);ob(()=>()=>{!o.current||t.unregister(o.current)},[]),ob(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=sm(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:Kn(i,o)}}function WV(){return[sm(zV),()=>sm(LI()),()=>BV(),o=>VV(o)]}var Zt=(...e)=>e.filter(Boolean).join(" "),Nk={path:ue("g",{stroke:"currentColor",strokeWidth:"1.5",children:[E("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),E("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),E("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Po=de((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:u,__css:c,...f}=e,p=Zt("chakra-icon",u),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c},m={ref:t,focusable:i,className:p,__css:h},v=r??Nk.viewBox;if(n&&typeof n!="string")return ee.createElement(ie.svg,{as:n,...m,...f});const y=s??Nk.path;return ee.createElement(ie.svg,{verticalAlign:"middle",viewBox:v,...m,...f},y)});Po.displayName="Icon";function Nn(e,t=[]){const n=_.exports.useRef(e);return _.exports.useEffect(()=>{n.current=e}),_.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function jV(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(m,v)=>m!==v}=e,i=Nn(r),s=Nn(o),[u,c]=_.exports.useState(n),f=t!==void 0,p=f?t:u,h=_.exports.useCallback(m=>{const y=typeof m=="function"?m(p):m;!s(p,y)||(f||c(y),i(y))},[f,i,p,s]);return[p,h]}const wx=_.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Eg=_.exports.createContext({});function UV(){return _.exports.useContext(Eg).visualElement}const Su=_.exports.createContext(null),Bs=typeof document<"u",lm=Bs?_.exports.useLayoutEffect:_.exports.useEffect,$I=_.exports.createContext({strict:!1});function HV(e,t,n,r){const o=UV(),i=_.exports.useContext($I),s=_.exports.useContext(Su),u=_.exports.useContext(wx).reducedMotion,c=_.exports.useRef(void 0);r=r||i.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const f=c.current;return lm(()=>{f&&f.syncRender()}),_.exports.useEffect(()=>{f&&f.animationState&&f.animationState.animateChanges()}),lm(()=>()=>f&&f.notifyUnmount(),[]),f}function Fl(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function GV(e,t,n){return _.exports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Fl(n)&&(n.current=r))},[t])}function bf(e){return typeof e=="string"||Array.isArray(e)}function Pg(e){return typeof e=="object"&&typeof e.start=="function"}const qV=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ag(e){return Pg(e.animate)||qV.some(t=>bf(e[t]))}function BI(e){return Boolean(Ag(e)||e.variants)}function KV(e,t){if(Ag(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bf(n)?n:void 0,animate:bf(r)?r:void 0}}return e.inherit!==!1?t:{}}function YV(e){const{initial:t,animate:n}=KV(e,_.exports.useContext(Eg));return _.exports.useMemo(()=>({initial:t,animate:n}),[Fk(t),Fk(n)])}function Fk(e){return Array.isArray(e)?e.join(" "):e}const _i=e=>({isEnabled:t=>e.some(n=>!!t[n])}),Sf={measureLayout:_i(["layout","layoutId","drag"]),animation:_i(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:_i(["exit"]),drag:_i(["drag","dragControls"]),focus:_i(["whileFocus"]),hover:_i(["whileHover","onHoverStart","onHoverEnd"]),tap:_i(["whileTap","onTap","onTapStart","onTapCancel"]),pan:_i(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:_i(["whileInView","onViewportEnter","onViewportLeave"])};function XV(e){for(const t in e)t==="projectionNodeConstructor"?Sf.projectionNodeConstructor=e[t]:Sf[t].Component=e[t]}function Tg(e){const t=_.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ZV=1;function QV(){return Tg(()=>{if(Fc.hasEverUpdated)return ZV++})}const _x=_.exports.createContext({});class JV extends ee.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const zI=_.exports.createContext({}),eW=Symbol.for("motionComponentSymbol");function tW({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:o,Component:i}){e&&XV(e);function s(c,f){const p={..._.exports.useContext(wx),...c,layoutId:nW(c)},{isStatic:h}=p;let m=null;const v=YV(c),y=h?void 0:QV(),S=o(c,h);if(!h&&Bs){v.visualElement=HV(i,S,p,t);const k=_.exports.useContext($I).strict,x=_.exports.useContext(zI);v.visualElement&&(m=v.visualElement.loadFeatures(p,k,e,y,n||Sf.projectionNodeConstructor,x))}return ue(JV,{visualElement:v.visualElement,props:p,children:[m,E(Eg.Provider,{value:v,children:r(i,c,y,GV(S,v.visualElement,f),S,h,v.visualElement)})]})}const u=_.exports.forwardRef(s);return u[eW]=i,u}function nW({layoutId:e}){const t=_.exports.useContext(_x).id;return t&&e!==void 0?t+"-"+e:e}function rW(e){function t(r,o={}){return tW(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const oW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Cx(e){return typeof e!="string"||e.includes("-")?!1:!!(oW.indexOf(e)>-1||/[A-Z]/.test(e))}const um={};function iW(e){Object.assign(um,e)}const cm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kf=new Set(cm);function VI(e,{layout:t,layoutId:n}){return Kf.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!um[e]||e==="opacity")}const ri=e=>!!e?.getVelocity,aW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sW=(e,t)=>cm.indexOf(e)-cm.indexOf(t);function lW({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,i){let s="";t.sort(sW);for(const u of t)s+=`${aW[u]||u}(${e[u]}) `;return n&&!e.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(e,o?"":s):r&&o&&(s="none"),s}function WI(e){return e.startsWith("--")}const uW=(e,t)=>t&&typeof e=="number"?t.transform(e):e,jI=(e,t)=>n=>Math.max(Math.min(n,t),e),Lc=e=>e%1?Number(e.toFixed(5)):e,xf=/(-)?([\d]*\.?[\d])+/g,ib=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,cW=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Yf(e){return typeof e=="string"}const zs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$c=Object.assign(Object.assign({},zs),{transform:jI(0,1)}),Mp=Object.assign(Object.assign({},zs),{default:1}),Xf=e=>({test:t=>Yf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),sa=Xf("deg"),Zo=Xf("%"),Re=Xf("px"),fW=Xf("vh"),dW=Xf("vw"),Lk=Object.assign(Object.assign({},Zo),{parse:e=>Zo.parse(e)/100,transform:e=>Zo.transform(e*100)}),kx=(e,t)=>n=>Boolean(Yf(n)&&cW.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),UI=(e,t,n)=>r=>{if(!Yf(r))return r;const[o,i,s,u]=r.match(xf);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},bs={test:kx("hsl","hue"),parse:UI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Zo.transform(Lc(t))+", "+Zo.transform(Lc(n))+", "+Lc($c.transform(r))+")"},pW=jI(0,255),yy=Object.assign(Object.assign({},zs),{transform:e=>Math.round(pW(e))}),Sa={test:kx("rgb","red"),parse:UI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+yy.transform(e)+", "+yy.transform(t)+", "+yy.transform(n)+", "+Lc($c.transform(r))+")"};function hW(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const ab={test:kx("#"),parse:hW,transform:Sa.transform},Hn={test:e=>Sa.test(e)||ab.test(e)||bs.test(e),parse:e=>Sa.test(e)?Sa.parse(e):bs.test(e)?bs.parse(e):ab.parse(e),transform:e=>Yf(e)?e:e.hasOwnProperty("red")?Sa.transform(e):bs.transform(e)},HI="${c}",GI="${n}";function mW(e){var t,n,r,o;return isNaN(e)&&Yf(e)&&((n=(t=e.match(xf))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(r=e.match(ib))===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0)>0}function qI(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(ib);r&&(n=r.length,e=e.replace(ib,HI),t.push(...r.map(Hn.parse)));const o=e.match(xf);return o&&(e=e.replace(xf,GI),t.push(...o.map(zs.parse))),{values:t,numColors:n,tokenised:e}}function KI(e){return qI(e).values}function YI(e){const{values:t,numColors:n,tokenised:r}=qI(e),o=t.length;return i=>{let s=r;for(let u=0;utypeof e=="number"?0:e;function vW(e){const t=KI(e);return YI(e)(t.map(gW))}const Bi={test:mW,parse:KI,createTransformer:YI,getAnimatableNone:vW},yW=new Set(["brightness","contrast","saturate","opacity"]);function bW(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(xf)||[];if(!r)return e;const o=n.replace(r,"");let i=yW.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const SW=/([a-z-]*)\(.*?\)/g,sb=Object.assign(Object.assign({},Bi),{getAnimatableNone:e=>{const t=e.match(SW);return t?t.map(bW).join(" "):e}}),$k={...zs,transform:Math.round},XI={borderWidth:Re,borderTopWidth:Re,borderRightWidth:Re,borderBottomWidth:Re,borderLeftWidth:Re,borderRadius:Re,radius:Re,borderTopLeftRadius:Re,borderTopRightRadius:Re,borderBottomRightRadius:Re,borderBottomLeftRadius:Re,width:Re,maxWidth:Re,height:Re,maxHeight:Re,size:Re,top:Re,right:Re,bottom:Re,left:Re,padding:Re,paddingTop:Re,paddingRight:Re,paddingBottom:Re,paddingLeft:Re,margin:Re,marginTop:Re,marginRight:Re,marginBottom:Re,marginLeft:Re,rotate:sa,rotateX:sa,rotateY:sa,rotateZ:sa,scale:Mp,scaleX:Mp,scaleY:Mp,scaleZ:Mp,skew:sa,skewX:sa,skewY:sa,distance:Re,translateX:Re,translateY:Re,translateZ:Re,x:Re,y:Re,z:Re,perspective:Re,transformPerspective:Re,opacity:$c,originX:Lk,originY:Lk,originZ:Re,zIndex:$k,fillOpacity:$c,strokeOpacity:$c,numOctaves:$k};function Ex(e,t,n,r){const{style:o,vars:i,transform:s,transformKeys:u,transformOrigin:c}=e;u.length=0;let f=!1,p=!1,h=!0;for(const m in t){const v=t[m];if(WI(m)){i[m]=v;continue}const y=XI[m],S=uW(v,y);if(Kf.has(m)){if(f=!0,s[m]=S,u.push(m),!h)continue;v!==(y.default||0)&&(h=!1)}else m.startsWith("origin")?(p=!0,c[m]=S):o[m]=S}if(f||r?o.transform=lW(e,n,h,r):!t.transform&&o.transform&&(o.transform="none"),p){const{originX:m="50%",originY:v="50%",originZ:y=0}=c;o.transformOrigin=`${m} ${v} ${y}`}}const Px=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ZI(e,t,n){for(const r in t)!ri(t[r])&&!VI(r,n)&&(e[r]=t[r])}function xW({transformTemplate:e},t,n){return _.exports.useMemo(()=>{const r=Px();return Ex(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function wW(e,t,n){const r=e.style||{},o={};return ZI(o,r,e),Object.assign(o,xW(e,t,n)),e.transformValues?e.transformValues(o):o}function _W(e,t,n){const r={},o=wW(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),r.style=o,r}const CW=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],kW=["whileTap","onTap","onTapStart","onTapCancel"],EW=["onPan","onPanStart","onPanSessionStart","onPanEnd"],PW=["whileInView","onViewportEnter","onViewportLeave","viewport"],AW=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...PW,...kW,...CW,...EW]);function fm(e){return AW.has(e)}let QI=e=>!fm(e);function TW(e){!e||(QI=t=>t.startsWith("on")?!fm(t):e(t))}try{TW(require("@emotion/is-prop-valid").default)}catch{}function OW(e,t,n){const r={};for(const o in e)(QI(o)||n===!0&&fm(o)||!t&&!fm(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Bk(e,t,n){return typeof e=="string"?e:Re.transform(t+n*e)}function IW(e,t,n){const r=Bk(t,e.x,e.width),o=Bk(n,e.y,e.height);return`${r} ${o}`}const RW={offset:"stroke-dashoffset",array:"stroke-dasharray"},DW={offset:"strokeDashoffset",array:"strokeDasharray"};function MW(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?RW:DW;e[i.offset]=Re.transform(-r);const s=Re.transform(t),u=Re.transform(n);e[i.array]=`${s} ${u}`}function Ax(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:u=0,...c},f,p){Ex(e,c,f,p),e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:v}=e;h.transform&&(v&&(m.transform=h.transform),delete h.transform),v&&(r!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=IW(v,r!==void 0?r:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),i!==void 0&&MW(h,i,s,u,!1)}const JI=()=>({...Px(),attrs:{}});function NW(e,t){const n=_.exports.useMemo(()=>{const r=JI();return Ax(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};ZI(r,e.style,e),n.style={...r,...n.style}}return n}function FW(e=!1){return(n,r,o,i,{latestValues:s},u)=>{const f=(Cx(n)?NW:_W)(r,s,u),h={...OW(r,typeof n=="string",e),...f,ref:i};return o&&(h["data-projection-id"]=o),_.exports.createElement(n,h)}}const eR=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function tR(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const nR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function rR(e,t,n,r){tR(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(nR.has(o)?o:eR(o),t.attrs[o])}function Tx(e){const{style:t}=e,n={};for(const r in t)(ri(t[r])||VI(r,e))&&(n[r]=t[r]);return n}function oR(e){const t=Tx(e);for(const n in e)if(ri(e[n])){const r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function iR(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}const wf=e=>Array.isArray(e),LW=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),aR=e=>wf(e)?e[e.length-1]||0:e;function yh(e){const t=ri(e)?e.get():e;return LW(t)?t.toValue():t}function $W({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:BW(r,o,i,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const sR=e=>(t,n)=>{const r=_.exports.useContext(Eg),o=_.exports.useContext(Su),i=()=>$W(e,t,r,o);return n?i():Tg(i)};function BW(e,t,n,r){const o={},i=r(e);for(const m in i)o[m]=yh(i[m]);let{initial:s,animate:u}=e;const c=Ag(e),f=BI(e);t&&f&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const h=p?u:s;return h&&typeof h!="boolean"&&!Pg(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{const y=iR(e,v);if(!y)return;const{transitionEnd:S,transition:k,...x}=y;for(const b in x){let w=x[b];if(Array.isArray(w)){const P=p?w.length-1:0;w=w[P]}w!==null&&(o[b]=w)}for(const b in S)o[b]=S[b]}),o}const zW={useVisualState:sR({scrapeMotionValuesFromProps:oR,createRenderState:JI,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Ax(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),rR(t,n)}})},VW={useVisualState:sR({scrapeMotionValuesFromProps:Tx,createRenderState:Px})};function WW(e,{forwardMotionProps:t=!1},n,r,o){return{...Cx(e)?zW:VW,preloadedFeatures:n,useRender:FW(t),createVisualElement:r,projectionNodeConstructor:o,Component:e}}var wt;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(wt||(wt={}));function Og(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function lb(e,t,n,r){_.exports.useEffect(()=>{const o=e.current;if(n&&o)return Og(o,t,n,r)},[e,t,n,r])}function jW({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=()=>{n&&n.setActive(wt.Focus,!0)},o=()=>{n&&n.setActive(wt.Focus,!1)};lb(t,"focus",e?r:void 0),lb(t,"blur",e?o:void 0)}function lR(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function uR(e){return!!e.touches}function UW(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const HW={pageX:0,pageY:0};function GW(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||HW;return{x:r[t+"X"],y:r[t+"Y"]}}function qW(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Ox(e,t="page"){return{point:uR(e)?GW(e,t):qW(e,t)}}const cR=(e,t=!1)=>{const n=r=>e(r,Ox(r));return t?UW(n):n},KW=()=>Bs&&window.onpointerdown===null,YW=()=>Bs&&window.ontouchstart===null,XW=()=>Bs&&window.onmousedown===null,ZW={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},QW={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function fR(e){return KW()?e:YW()?QW[e]:XW()?ZW[e]:e}function Gl(e,t,n,r){return Og(e,fR(t),cR(n,t==="pointerdown"),r)}function dm(e,t,n,r){return lb(e,fR(t),n&&cR(n,t==="pointerdown"),r)}function dR(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const zk=dR("dragHorizontal"),Vk=dR("dragVertical");function pR(e){let t=!1;if(e==="y")t=Vk();else if(e==="x")t=zk();else{const n=zk(),r=Vk();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function hR(){const e=pR(!0);return e?(e(),!1):!0}function Wk(e,t,n){return(r,o)=>{!lR(r)||hR()||(e.animationState&&e.animationState.setActive(wt.Hover,t),n&&n(r,o))}}function JW({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){dm(r,"pointerenter",e||n?Wk(r,!0,e):void 0,{passive:!e}),dm(r,"pointerleave",t||n?Wk(r,!1,t):void 0,{passive:!t})}const mR=(e,t)=>t?e===t?!0:mR(e,t.parentElement):!1;function Ix(e){return _.exports.useEffect(()=>()=>e(),[])}var Uo=function(){return Uo=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function ub(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;rMath.min(Math.max(n,e),t),by=.001,tj=.01,Uk=10,nj=.05,rj=1;function oj({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;ej(e<=Uk*1e3);let s=1-t;s=hm(nj,rj,s),e=hm(tj,Uk,e/1e3),s<1?(o=f=>{const p=f*s,h=p*e,m=p-n,v=cb(f,s),y=Math.exp(-h);return by-m/v*y},i=f=>{const h=f*s*e,m=h*n+n,v=Math.pow(s,2)*Math.pow(f,2)*e,y=Math.exp(-h),S=cb(Math.pow(f,2),s);return(-o(f)+by>0?-1:1)*((m-v)*y)/S}):(o=f=>{const p=Math.exp(-f*e),h=(f-n)*e+1;return-by+p*h},i=f=>{const p=Math.exp(-f*e),h=(n-f)*(e*e);return p*h});const u=5/e,c=aj(o,i,u);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const ij=12;function aj(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function uj(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Hk(e,lj)&&Hk(e,sj)){const n=oj(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Rx(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=Ig(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:u,damping:c,mass:f,velocity:p,duration:h,isResolvedFromDuration:m}=uj(i),v=Gk,y=Gk;function S(){const k=p?-(p/1e3):0,x=n-t,b=c/(2*Math.sqrt(u*f)),w=Math.sqrt(u/f)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),b<1){const P=cb(w,b);v=O=>{const M=Math.exp(-b*w*O);return n-M*((k+b*w*x)/P*Math.sin(P*O)+x*Math.cos(P*O))},y=O=>{const M=Math.exp(-b*w*O);return b*w*M*(Math.sin(P*O)*(k+b*w*x)/P+x*Math.cos(P*O))-M*(Math.cos(P*O)*(k+b*w*x)-P*x*Math.sin(P*O))}}else if(b===1)v=P=>n-Math.exp(-w*P)*(x+(k+w*x)*P);else{const P=w*Math.sqrt(b*b-1);v=O=>{const M=Math.exp(-b*w*O),N=Math.min(P*O,300);return n-M*((k+b*w*x)*Math.sinh(N)+P*x*Math.cosh(N))/P}}}return S(),{next:k=>{const x=v(k);if(m)s.done=k>=h;else{const b=y(k)*1e3,w=Math.abs(b)<=r,P=Math.abs(n-x)<=o;s.done=w&&P}return s.value=s.done?n:x,s},flipTarget:()=>{p=-p,[t,n]=[n,t],S()}}}Rx.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Gk=e=>0,_f=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},jt=(e,t,n)=>-n*e+n*t+e;function Sy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;o=Sy(c,u,e+1/3),i=Sy(c,u,e),s=Sy(c,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const cj=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},fj=[ab,Sa,bs],Kk=e=>fj.find(t=>t.test(e)),gR=(e,t)=>{let n=Kk(e),r=Kk(t),o=n.parse(e),i=r.parse(t);n===bs&&(o=qk(o),n=Sa),r===bs&&(i=qk(i),r=Sa);const s=Object.assign({},o);return u=>{for(const c in s)c!=="alpha"&&(s[c]=cj(o[c],i[c],u));return s.alpha=jt(o.alpha,i.alpha,u),n.transform(s)}},fb=e=>typeof e=="number",dj=(e,t)=>n=>t(e(n)),Rg=(...e)=>e.reduce(dj);function vR(e,t){return fb(e)?n=>jt(e,t,n):Hn.test(e)?gR(e,t):bR(e,t)}const yR=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>vR(i,t[s]));return i=>{for(let s=0;s{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=vR(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}};function Yk(e){const t=Bi.parse(e),n=t.length;let r=0,o=0,i=0;for(let s=0;s{const n=Bi.createTransformer(t),r=Yk(e),o=Yk(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Rg(yR(r.parsed,o.parsed),n):s=>`${s>0?t:e}`},hj=(e,t)=>n=>jt(e,t,n);function mj(e){if(typeof e=="number")return hj;if(typeof e=="string")return Hn.test(e)?gR:bR;if(Array.isArray(e))return yR;if(typeof e=="object")return pj}function gj(e,t,n){const r=[],o=n||mj(e[0]),i=e.length-1;for(let s=0;sn(_f(e,t,r))}function yj(e,t){const n=e.length,r=n-1;return o=>{let i=0,s=!1;if(o<=e[0]?s=!0:o>=e[r]&&(i=r-1,s=!0),!s){let c=1;for(;co||c===r);c++);i=c-1}const u=_f(e[i],e[i+1],o);return t[i](u)}}function SR(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;pm(i===t.length),pm(!r||!Array.isArray(r)||r.length===i-1),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=gj(t,r,o),u=i===2?vj(e,s):yj(e,s);return n?c=>u(hm(e[0],e[i-1],c)):u}const Dg=e=>t=>1-e(1-t),Dx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bj=e=>t=>Math.pow(t,e),xR=e=>t=>t*t*((e+1)*t-e),Sj=e=>{const t=xR(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},wR=1.525,xj=4/11,wj=8/11,_j=9/10,Mx=e=>e,Nx=bj(2),Cj=Dg(Nx),_R=Dx(Nx),CR=e=>1-Math.sin(Math.acos(e)),Fx=Dg(CR),kj=Dx(Fx),Lx=xR(wR),Ej=Dg(Lx),Pj=Dx(Lx),Aj=Sj(wR),Tj=4356/361,Oj=35442/1805,Ij=16061/1805,mm=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-mm(1-e*2)):.5*mm(e*2-1)+.5;function Mj(e,t){return e.map(()=>t||_R).splice(0,e.length-1)}function Nj(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function Fj(e,t){return e.map(n=>n*t)}function bh({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},s=Array.isArray(t)?t:[e,t],u=Fj(r&&r.length===s.length?r:Nj(s),o);function c(){return SR(u,s,{ease:Array.isArray(n)?n:Mj(s,n)})}let f=c();return{next:p=>(i.value=f(p),i.done=p>=o,i),flipTarget:()=>{s.reverse(),f=c()}}}function Lj({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const s={done:!1,value:t};let u=n*e;const c=t+u,f=i===void 0?c:i(c);return f!==c&&(u=f-t),{next:p=>{const h=-u*Math.exp(-p/r);return s.done=!(h>o||h<-o),s.value=s.done?f:f+h,s},flipTarget:()=>{}}}const Xk={keyframes:bh,spring:Rx,decay:Lj};function $j(e){if(Array.isArray(e.to))return bh;if(Xk[e.type])return Xk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?bh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Rx:bh}const kR=1/60*1e3,Bj=typeof performance<"u"?()=>performance.now():()=>Date.now(),ER=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Bj()),kR);function zj(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&o,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f(e[t]=zj(()=>Cf=!0),e),{}),Wj=Zf.reduce((e,t)=>{const n=Mg[t];return e[t]=(r,o=!1,i=!1)=>(Cf||Hj(),n.schedule(r,o,i)),e},{}),jj=Zf.reduce((e,t)=>(e[t]=Mg[t].cancel,e),{});Zf.reduce((e,t)=>(e[t]=()=>Mg[t].process(ql),e),{});const Uj=e=>Mg[e].process(ql),PR=e=>{Cf=!1,ql.delta=db?kR:Math.max(Math.min(e-ql.timestamp,Vj),1),ql.timestamp=e,pb=!0,Zf.forEach(Uj),pb=!1,Cf&&(db=!1,ER(PR))},Hj=()=>{Cf=!0,db=!0,pb||ER(PR)},Gj=()=>ql;function AR(e,t,n=0){return e-t-n}function qj(e,t,n=0,r=!0){return r?AR(t+-e,t,n):t-(e-t)+n}function Kj(e,t,n,r){return r?e>=t+n:e<=-n}const Yj=e=>{const t=({delta:n})=>e(n);return{start:()=>Wj.update(t,!0),stop:()=>jj.update(t)}};function TR(e){var t,n,{from:r,autoplay:o=!0,driver:i=Yj,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:f=0,onPlay:p,onStop:h,onComplete:m,onRepeat:v,onUpdate:y}=e,S=Ig(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:k}=S,x,b=0,w=S.duration,P,O=!1,M=!0,N;const V=$j(S);!((n=(t=V).needsInterpolation)===null||n===void 0)&&n.call(t,r,k)&&(N=SR([0,100],[r,k],{clamp:!1}),r=0,k=100);const K=V(Object.assign(Object.assign({},S),{from:r,to:k}));function W(){b++,c==="reverse"?(M=b%2===0,s=qj(s,w,f,M)):(s=AR(s,w,f),c==="mirror"&&K.flipTarget()),O=!1,v&&v()}function te(){x.stop(),m&&m()}function xe(we){if(M||(we=-we),s+=we,!O){const Ce=K.next(Math.max(0,s));P=Ce.value,N&&(P=N(P)),O=M?Ce.done:s<=0}y?.(P),O&&(b===0&&(w??(w=s)),b{h?.(),x.stop()}}}function OR(e,t){return t?e*(1e3/t):0}function Xj({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:s=500,bounceDamping:u=10,restDelta:c=1,modifyTarget:f,driver:p,onUpdate:h,onComplete:m,onStop:v}){let y;function S(w){return n!==void 0&&wr}function k(w){return n===void 0?r:r===void 0||Math.abs(n-w){var O;h?.(P),(O=w.onUpdate)===null||O===void 0||O.call(w,P)},onComplete:m,onStop:v}))}function b(w){x(Object.assign({type:"spring",stiffness:s,damping:u,restDelta:c},w))}if(S(e))b({from:e,velocity:t,to:k(e)});else{let w=o*t+e;typeof f<"u"&&(w=f(w));const P=k(w),O=P===n?-1:1;let M,N;const V=K=>{M=N,N=K,t=OR(K-M,Gj().delta),(O===1&&K>P||O===-1&&Ky?.stop()}}const hb=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Zk=e=>hb(e)&&e.hasOwnProperty("z"),Np=(e,t)=>Math.abs(e-t);function $x(e,t){if(fb(e)&&fb(t))return Np(e,t);if(hb(e)&&hb(t)){const n=Np(e.x,t.x),r=Np(e.y,t.y),o=Zk(e)&&Zk(t)?Np(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const IR=(e,t)=>1-3*t+3*e,RR=(e,t)=>3*t-6*e,DR=e=>3*e,gm=(e,t,n)=>((IR(t,n)*e+RR(t,n))*e+DR(t))*e,MR=(e,t,n)=>3*IR(t,n)*e*e+2*RR(t,n)*e+DR(t),Zj=1e-7,Qj=10;function Jj(e,t,n,r,o){let i,s,u=0;do s=t+(n-t)/2,i=gm(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Zj&&++u=tU?nU(s,h,e,n):m===0?h:Jj(s,u,u+Fp,e,n)}return s=>s===0||s===1?s:gm(i(s),t,r)}function oU({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o}){const i=e||t||n||r,s=_.exports.useRef(!1),u=_.exports.useRef(null),c={passive:!(t||e||n||v)};function f(){u.current&&u.current(),u.current=null}function p(){return f(),s.current=!1,o.animationState&&o.animationState.setActive(wt.Tap,!1),!hR()}function h(y,S){!p()||(mR(o.getInstance(),y.target)?e&&e(y,S):n&&n(y,S))}function m(y,S){!p()||n&&n(y,S)}function v(y,S){f(),!s.current&&(s.current=!0,u.current=Rg(Gl(window,"pointerup",h,c),Gl(window,"pointercancel",m,c)),o.animationState&&o.animationState.setActive(wt.Tap,!0),t&&t(y,S))}dm(o,"pointerdown",i?v:void 0,c),Ix(f)}const iU="production",NR=typeof process>"u"||process.env===void 0?iU:"production",Qk=new Set;function FR(e,t,n){e||Qk.has(t)||(console.warn(t),n&&console.warn(n),Qk.add(t))}const mb=new WeakMap,xy=new WeakMap,aU=e=>{const t=mb.get(e.target);t&&t(e)},sU=e=>{e.forEach(aU)};function lU({root:e,...t}){const n=e||document;xy.has(n)||xy.set(n,{});const r=xy.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(sU,{root:e,...t})),r[o]}function uU(e,t,n){const r=lU(t);return mb.set(e,n),r.observe(e),()=>{mb.delete(e),r.unobserve(e)}}function cU({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){const i=_.exports.useRef({hasEnteredView:!1,isInView:!1});let s=Boolean(t||n||r);o.once&&i.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?pU:dU)(s,i.current,e,o)}const fU={some:0,all:1};function dU(e,t,n,{root:r,margin:o,amount:i="some",once:s}){_.exports.useEffect(()=>{if(!e)return;const u={root:r?.current,rootMargin:o,threshold:typeof i=="number"?i:fU[i]},c=f=>{const{isIntersecting:p}=f;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(wt.InView,p);const h=n.getProps(),m=p?h.onViewportEnter:h.onViewportLeave;m&&m(f)};return uU(n.getInstance(),u,c)},[e,r,o,i])}function pU(e,t,n,{fallback:r=!0}){_.exports.useEffect(()=>{!e||!r||(NR!=="production"&&FR(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=n.getProps();o&&o(null),n.animationState&&n.animationState.setActive(wt.InView,!0)}))},[e])}const xa=e=>t=>(e(t),null),hU={inView:xa(cU),tap:xa(oU),focus:xa(jW),hover:xa(JW)};function Bx(){const e=_.exports.useContext(Su);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=_.exports.useId();return _.exports.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function mU(){return gU(_.exports.useContext(Su))}function gU(e){return e===null?!0:e.isPresent}function LR(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,vU={linear:Mx,easeIn:Nx,easeInOut:_R,easeOut:Cj,circIn:CR,circInOut:kj,circOut:Fx,backIn:Lx,backInOut:Pj,backOut:Ej,anticipate:Aj,bounceIn:Rj,bounceInOut:Dj,bounceOut:mm},Jk=e=>{if(Array.isArray(e)){pm(e.length===4);const[t,n,r,o]=e;return rU(t,n,r,o)}else if(typeof e=="string")return vU[e];return e},yU=e=>Array.isArray(e)&&typeof e[0]!="number",eE=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Bi.test(t)&&!t.startsWith("url(")),os=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Lp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wy=()=>({type:"keyframes",ease:"linear",duration:.3}),bU=e=>({type:"keyframes",duration:.8,values:e}),tE={x:os,y:os,z:os,rotate:os,rotateX:os,rotateY:os,rotateZ:os,scaleX:Lp,scaleY:Lp,scale:Lp,opacity:wy,backgroundColor:wy,color:wy,default:Lp},SU=(e,t)=>{let n;return wf(t)?n=bU:n=tE[e]||tE.default,{to:t,...n(t)}},xU={...XI,color:Hn,backgroundColor:Hn,outlineColor:Hn,fill:Hn,stroke:Hn,borderColor:Hn,borderTopColor:Hn,borderRightColor:Hn,borderBottomColor:Hn,borderLeftColor:Hn,filter:sb,WebkitFilter:sb},zx=e=>xU[e];function Vx(e,t){var n;let r=zx(e);return r!==sb&&(r=Bi),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const wU={current:!1};function _U({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:u,from:c,...f}){return!!Object.keys(f).length}function CU({ease:e,times:t,yoyo:n,flip:r,loop:o,...i}){const s={...i};return t&&(s.offset=t),i.duration&&(s.duration=vm(i.duration)),i.repeatDelay&&(s.repeatDelay=vm(i.repeatDelay)),e&&(s.ease=yU(e)?e.map(Jk):Jk(e)),i.type==="tween"&&(s.type="keyframes"),(n||o||r)&&(n?s.repeatType="reverse":o?s.repeatType="loop":r&&(s.repeatType="mirror"),s.repeat=o||n||r||i.repeat),i.type!=="spring"&&(s.type="keyframes"),s}function kU(e,t){var n,r;return(r=(n=(Wx(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function EU(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function PU(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),EU(t),_U(e)||(e={...e,...SU(n,t.to)}),{...t,...CU(e)}}function AU(e,t,n,r,o){const i=Wx(r,e)||{};let s=i.from!==void 0?i.from:t.get();const u=eE(e,n);s==="none"&&u&&typeof n=="string"?s=Vx(e,n):nE(s)&&typeof n=="string"?s=rE(n):!Array.isArray(n)&&nE(n)&&typeof s=="string"&&(n=rE(s));const c=eE(e,s);function f(){const h={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:m=>t.set(m)};return i.type==="inertia"||i.type==="decay"?Xj({...h,...i}):TR({...PU(i,h,e),onUpdate:m=>{h.onUpdate(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{h.onComplete(),i.onComplete&&i.onComplete()}})}function p(){const h=aR(n);return t.set(h),o(),i.onUpdate&&i.onUpdate(h),i.onComplete&&i.onComplete(),{stop:()=>{}}}return!c||!u||i.type===!1?p:f}function nE(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function rE(e){return typeof e=="number"?0:Vx("",e)}function Wx(e,t){return e[t]||e.default||e}function jx(e,t,n,r={}){return wU.current&&(r={type:!1}),t.start(o=>{let i,s;const u=AU(e,t,n,r,o),c=kU(r,e),f=()=>s=u();return c?i=window.setTimeout(f,vm(c)):f(),()=>{clearTimeout(i),s&&s.stop()}})}const TU=e=>/^\-?\d*\.?\d+$/.test(e),OU=e=>/^0[^.\s]+$/.test(e),$R=1/60*1e3,IU=typeof performance<"u"?()=>performance.now():()=>Date.now(),BR=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(IU()),$R);function RU(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&o,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f(e[t]=RU(()=>kf=!0),e),{}),Qo=Qf.reduce((e,t)=>{const n=Ng[t];return e[t]=(r,o=!1,i=!1)=>(kf||NU(),n.schedule(r,o,i)),e},{}),Ef=Qf.reduce((e,t)=>(e[t]=Ng[t].cancel,e),{}),_y=Qf.reduce((e,t)=>(e[t]=()=>Ng[t].process(Kl),e),{}),MU=e=>Ng[e].process(Kl),zR=e=>{kf=!1,Kl.delta=gb?$R:Math.max(Math.min(e-Kl.timestamp,DU),1),Kl.timestamp=e,vb=!0,Qf.forEach(MU),vb=!1,kf&&(gb=!1,BR(zR))},NU=()=>{kf=!0,gb=!0,vb||BR(zR)},yb=()=>Kl;function Ux(e,t){e.indexOf(t)===-1&&e.push(t)}function Hx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bc{constructor(){this.subscriptions=[]}add(t){return Ux(this.subscriptions,t),()=>Hx(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class LU{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Bc,this.velocityUpdateSubscribers=new Bc,this.renderSubscribers=new Bc,this.canTrackVelocity=!1,this.updateAndNotify=(n,r=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:i}=yb();this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,Qo.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),r&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>Qo.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=FU(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?OR(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.stopAnimation=t(n)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function lu(e){return new LU(e)}const VR=e=>t=>t.test(e),$U={test:e=>e==="auto",parse:e=>e},WR=[zs,Re,Zo,sa,dW,fW,$U],cc=e=>WR.find(VR(e)),BU=[...WR,Hn,Bi],zU=e=>BU.find(VR(e));function VU(e){const t={};return e.forEachValue((n,r)=>t[r]=n.get()),t}function WU(e){const t={};return e.forEachValue((n,r)=>t[r]=n.getVelocity()),t}function Fg(e,t,n){const r=e.getProps();return iR(r,t,n!==void 0?n:r.custom,VU(e),WU(e))}function jU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,lu(n))}function UU(e,t){const n=Fg(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const u=aR(i[s]);jU(e,s,u)}}function HU(e,t,n){var r,o;const i=Object.keys(t).filter(u=>!e.hasValue(u)),s=i.length;if(!!s)for(let u=0;ubb(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=bb(e,t,n);else{const o=typeof t=="function"?Fg(e,t,n.custom):t;r=jR(e,o,n)}return r.then(()=>e.notifyAnimationComplete(t))}function bb(e,t,n={}){var r;const o=Fg(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>jR(e,o,n):()=>Promise.resolve(),u=!((r=e.variantChildren)===null||r===void 0)&&r.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:h,staggerDirection:m}=i;return YU(e,t,p+f,h,m,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[s,u]:[u,s];return f().then(p)}else return Promise.all([s(),u(n.delay)])}function jR(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...c}=e.makeTargetAnimatable(t);const f=e.getValue("willChange");r&&(s=r);const p=[],h=o&&((i=e.animationState)===null||i===void 0?void 0:i.getState()[o]);for(const m in c){const v=e.getValue(m),y=c[m];if(!v||y===void 0||h&&ZU(h,m))continue;let S={delay:n,...s};e.shouldReduceMotion&&Kf.has(m)&&(S={...S,type:!1,delay:0});let k=jx(m,v,y,S);ym(f)&&(f.add(m),k=k.then(()=>f.remove(m))),p.push(k)}return Promise.all(p).then(()=>{u&&UU(e,u)})}function YU(e,t,n=0,r=0,o=1,i){const s=[],u=(e.variantChildren.size-1)*r,c=o===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(XU).forEach((f,p)=>{s.push(bb(f,t,{...i,delay:n+c(p)}).then(()=>f.notifyAnimationComplete(t)))}),Promise.all(s)}function XU(e,t){return e.sortNodePosition(t)}function ZU({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const Gx=[wt.Animate,wt.InView,wt.Focus,wt.Hover,wt.Tap,wt.Drag,wt.Exit],QU=[...Gx].reverse(),JU=Gx.length;function eH(e){return t=>Promise.all(t.map(({animation:n,options:r})=>KU(e,n,r)))}function tH(e){let t=eH(e);const n=rH();let r=!0;const o=(c,f)=>{const p=Fg(e,f);if(p){const{transition:h,transitionEnd:m,...v}=p;c={...c,...v,...m}}return c};function i(c){t=c(e)}function s(c,f){var p;const h=e.getProps(),m=e.getVariantContext(!0)||{},v=[],y=new Set;let S={},k=1/0;for(let b=0;bk&&M;const te=Array.isArray(O)?O:[O];let xe=te.reduce(o,{});N===!1&&(xe={});const{prevResolvedValues:fe={}}=P,we={...fe,...xe},Ce=ve=>{W=!0,y.delete(ve),P.needsAnimating[ve]=!0};for(const ve in we){const Pe=xe[ve],j=fe[ve];S.hasOwnProperty(ve)||(Pe!==j?wf(Pe)&&wf(j)?!LR(Pe,j)||K?Ce(ve):P.protectedKeys[ve]=!0:Pe!==void 0?Ce(ve):y.add(ve):Pe!==void 0&&y.has(ve)?Ce(ve):P.protectedKeys[ve]=!0)}P.prevProp=O,P.prevResolvedValues=xe,P.isActive&&(S={...S,...xe}),r&&e.blockInitialAnimation&&(W=!1),W&&!V&&v.push(...te.map(ve=>({animation:ve,options:{type:w,...c}})))}if(y.size){const b={};y.forEach(w=>{const P=e.getBaseTarget(w);P!==void 0&&(b[w]=P)}),v.push({animation:b})}let x=Boolean(v.length);return r&&h.initial===!1&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(v):Promise.resolve()}function u(c,f,p){var h;if(n[c].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var y;return(y=v.animationState)===null||y===void 0?void 0:y.setActive(c,f)}),n[c].isActive=f;const m=s(p,c);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:i,getState:()=>n}}function nH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!LR(t,e):!1}function is(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rH(){return{[wt.Animate]:is(!0),[wt.InView]:is(),[wt.Hover]:is(),[wt.Tap]:is(),[wt.Drag]:is(),[wt.Focus]:is(),[wt.Exit]:is()}}const oH={animation:xa(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=tH(e)),Pg(t)&&_.exports.useEffect(()=>t.subscribe(e),[t])}),exit:xa(e=>{const{custom:t,visualElement:n}=e,[r,o]=Bx(),i=_.exports.useContext(Su);_.exports.useEffect(()=>{n.isPresent=r;const s=n.animationState&&n.animationState.setActive(wt.Exit,!r,{custom:i&&i.custom||t});s&&!r&&s.then(o)},[r])})};class UR{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ky(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=$x(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:v}=yb();this.history.push({...m,timestamp:v});const{onStart:y,onMove:S}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{if(this.lastMoveEvent=f,this.lastMoveEventInfo=Cy(p,this.transformPagePoint),lR(f)&&f.buttons===0){this.handlePointerUp(f,p);return}Qo.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m}=this.handlers,v=ky(Cy(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,v),m&&m(f,v)},uR(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=r;const o=Ox(t),i=Cy(o,this.transformPagePoint),{point:s}=i,{timestamp:u}=yb();this.history=[{...s,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,ky(i,this.history)),this.removeListeners=Rg(Gl(window,"pointermove",this.handlePointerMove),Gl(window,"pointerup",this.handlePointerUp),Gl(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ef.update(this.updatePoint)}}function Cy(e,t){return t?{point:t(e.point)}:e}function oE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ky({point:e},t){return{point:e,delta:oE(e,HR(t)),offset:oE(e,iH(t)),velocity:aH(t,.1)}}function iH(e){return e[0]}function HR(e){return e[e.length-1]}function aH(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=HR(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>vm(t)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Or(e){return e.max-e.min}function iE(e,t=0,n=.01){return $x(e,t)n&&(e=r?jt(n,e,r.max):Math.min(e,n)),e}function uE(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function uH(e,{top:t,left:n,bottom:r,right:o}){return{x:uE(e.x,n,o),y:uE(e.y,t,r)}}function cE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=_f(t.min,t.max-r,e.min):r>o&&(n=_f(e.min,e.max-o,t.min)),hm(0,1,n)}function dH(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Sb=.35;function pH(e=Sb){return e===!1?e=0:e===!0&&(e=Sb),{x:fE(e,"left","right"),y:fE(e,"top","bottom")}}function fE(e,t,n){return{min:dE(e,t),max:dE(e,n)}}function dE(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const pE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wc=()=>({x:pE(),y:pE()}),hE=()=>({min:0,max:0}),bn=()=>({x:hE(),y:hE()});function $o(e){return[e("x"),e("y")]}function GR({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hH({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mH(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ey(e){return e===void 0||e===1}function qR({scale:e,scaleX:t,scaleY:n}){return!Ey(e)||!Ey(t)||!Ey(n)}function la(e){return qR(e)||mE(e.x)||mE(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function mE(e){return e&&e!=="0%"}function bm(e,t,n){const r=e-n,o=t*r;return n+o}function gE(e,t,n,r,o){return o!==void 0&&(e=bm(e,o,r)),bm(e,n,r)+t}function xb(e,t=0,n=1,r,o){e.min=gE(e.min,t,n,r,o),e.max=gE(e.max,t,n,r,o)}function KR(e,{x:t,y:n}){xb(e.x,t.translate,t.scale,t.originPoint),xb(e.y,n.translate,n.scale,n.originPoint)}function gH(e,t,n,r=!1){var o,i;const s=n.length;if(!s)return;t.x=t.y=1;let u,c;for(let f=0;f{this.stopAnimation(),n&&this.snapToCursor(Ox(u,"page").point)},o=(u,c)=>{var f;const{drag:p,dragPropagation:h,onDragStart:m}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=pR(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$o(v=>{var y,S;let k=this.getAxisMotionValue(v).get()||0;if(Zo.test(k)){const x=(S=(y=this.visualElement.projection)===null||y===void 0?void 0:y.layout)===null||S===void 0?void 0:S.actual[v];x&&(k=Or(x)*(parseFloat(k)/100))}this.originPoint[v]=k}),m?.(u,c),(f=this.visualElement.animationState)===null||f===void 0||f.setActive(wt.Drag,!0))},i=(u,c)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=c;if(p&&this.currentDirection===null){this.currentDirection=wH(v),this.currentDirection!==null&&h?.(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.syncRender(),m?.(u,c)},s=(u,c)=>this.stop(u,c);this.panSession=new UR(t,{onSessionStart:r,onStart:o,onMove:i,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i?.(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(wt.Drag,!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!$p(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=lH(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&Fl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=uH(r.actual,t):this.constraints=!1,this.elastic=pH(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&$o(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=dH(r.actual[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Fl(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=bH(r,o.root,this.visualElement.getTransformPagePoint());let s=cH(o.layout.actual,i);if(n){const u=n(hH(s));this.hasMutatedConstraints=!!u,u&&(s=GR(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},f=$o(p=>{var h;if(!$p(p,n,this.currentDirection))return;let m=(h=c?.[p])!==null&&h!==void 0?h:{};s&&(m={min:0,max:0});const v=o?200:1e6,y=o?40:1e7,S={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...m};return this.startAxisValueAnimation(p,S)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return jx(t,r,0,n)}stopAnimation(){$o(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n,r;const o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)}snapToCursor(t){$o(n=>{const{drag:r}=this.getProps();if(!$p(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:u}=o.layout.actual[n];i.set(t[n]-jt(s,u,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Fl(r)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$o(u=>{const c=this.getAxisMotionValue(u);if(c){const f=c.get();i[u]=fH({min:f,max:f},this.constraints[u])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=s?s({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),$o(u=>{if(!$p(u,n,null))return;const c=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];c.set(jt(f,p,i[u]))})}addListeners(){var t;SH.set(this.visualElement,this);const n=this.visualElement.getInstance(),r=Gl(n,"pointerdown",f=>{const{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(f)}),o=()=>{const{dragConstraints:f}=this.getProps();Fl(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&((t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout()),o();const u=Og(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&($o(h=>{const m=this.getAxisMotionValue(h);!m||(this.originPoint[h]+=f[h].translate,m.set(m.get()+f[h].translate))}),this.visualElement.syncRender())});return()=>{u(),r(),s(),c?.()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Sb,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:u}}}function $p(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function _H(e){const{dragControls:t,visualElement:n}=e,r=Tg(()=>new xH(n));_.exports.useEffect(()=>t&&t.subscribe(r),[r,t]),_.exports.useEffect(()=>r.addListeners(),[r])}function CH({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:o}){const i=e||t||n||r,s=_.exports.useRef(null),{transformPagePoint:u}=_.exports.useContext(wx),c={onSessionStart:r,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,n&&n(p,h)}};_.exports.useEffect(()=>{s.current!==null&&s.current.updateHandlers(c)});function f(p){s.current=new UR(p,c,{transformPagePoint:u})}dm(o,"pointerdown",i&&f),Ix(()=>s.current&&s.current.end())}const kH={pan:xa(CH),drag:xa(_H)},wb={current:null},XR={current:!1};function EH(){if(XR.current=!0,!!Bs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wb.current=e.matches;e.addListener(t),t()}else wb.current=!1}const Bp=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function PH(){const e=Bp.map(()=>new Bc),t={},n={clearAllListeners:()=>e.forEach(r=>r.clear()),updatePropListeners:r=>{Bp.forEach(o=>{var i;const s="on"+o,u=r[s];(i=t[o])===null||i===void 0||i.call(t),u&&(t[o]=n[s](u))})}};return e.forEach((r,o)=>{n["on"+Bp[o]]=i=>r.add(i),n["notify"+Bp[o]]=(...i)=>r.notify(...i)}),n}function AH(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(ri(i))e.addValue(o,i),ym(r)&&r.add(o);else if(ri(s))e.addValue(o,lu(i)),ym(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const u=e.getValue(o);!u.hasAnimated&&u.set(i)}else{const u=e.getStaticValue(o);e.addValue(o,lu(u!==void 0?u:i))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const ZR=Object.keys(Sf),TH=ZR.length,QR=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:r,measureViewportBox:o,render:i,readValueFromInstance:s,removeValueFromRenderState:u,sortNodePosition:c,scrapeMotionValuesFromProps:f})=>({parent:p,props:h,presenceId:m,blockInitialAnimation:v,visualState:y,reducedMotionConfig:S},k={})=>{let x=!1;const{latestValues:b,renderState:w}=y;let P;const O=PH(),M=new Map,N=new Map;let V={};const K={...b};let W;function te(){!P||!x||(xe(),i(P,w,h.style,X.projection))}function xe(){t(X,w,b,k,h)}function fe(){O.notifyUpdate(b)}function we(q,R){const H=R.onChange(se=>{b[q]=se,h.onUpdate&&Qo.update(fe,!1,!0)}),ae=R.onRenderRequest(X.scheduleRender);N.set(q,()=>{H(),ae()})}const{willChange:Ce,...ve}=f(h);for(const q in ve){const R=ve[q];b[q]!==void 0&&ri(R)&&(R.set(b[q],!1),ym(Ce)&&Ce.add(q))}const Pe=Ag(h),j=BI(h),X={treeType:e,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:null,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(p?.isMounted()),blockInitialAnimation:v,isMounted:()=>Boolean(P),mount(q){x=!0,P=X.current=q,X.projection&&X.projection.mount(q),j&&p&&!Pe&&(W=p?.addVariantChild(X)),M.forEach((R,H)=>we(H,R)),XR.current||EH(),X.shouldReduceMotion=S==="never"?!1:S==="always"?!0:wb.current,p?.children.add(X),X.setProps(h)},unmount(){var q;(q=X.projection)===null||q===void 0||q.unmount(),Ef.update(fe),Ef.render(te),N.forEach(R=>R()),W?.(),p?.children.delete(X),O.clearAllListeners(),P=void 0,x=!1},loadFeatures(q,R,H,ae,se,he){const ge=[];for(let Ee=0;EeX.scheduleRender(),animationType:typeof ce=="string"?ce:"both",initialPromotionConfig:he,layoutScroll:mt})}return ge},addVariantChild(q){var R;const H=X.getClosestVariantNode();if(H)return(R=H.variantChildren)===null||R===void 0||R.add(q),()=>H.variantChildren.delete(q)},sortNodePosition(q){return!c||e!==q.treeType?0:c(X.getInstance(),q.getInstance())},getClosestVariantNode:()=>j?X:p?.getClosestVariantNode(),getLayoutId:()=>h.layoutId,getInstance:()=>P,getStaticValue:q=>b[q],setStaticValue:(q,R)=>b[q]=R,getLatestValues:()=>b,setVisibility(q){X.isVisible!==q&&(X.isVisible=q,X.scheduleRender())},makeTargetAnimatable(q,R=!0){return r(X,q,h,R)},measureViewportBox(){return o(P,h)},addValue(q,R){X.hasValue(q)&&X.removeValue(q),M.set(q,R),b[q]=R.get(),we(q,R)},removeValue(q){var R;M.delete(q),(R=N.get(q))===null||R===void 0||R(),N.delete(q),delete b[q],u(q,w)},hasValue:q=>M.has(q),getValue(q,R){let H=M.get(q);return H===void 0&&R!==void 0&&(H=lu(R),X.addValue(q,H)),H},forEachValue:q=>M.forEach(q),readValue:q=>b[q]!==void 0?b[q]:s(P,q,k),setBaseTarget(q,R){K[q]=R},getBaseTarget(q){if(n){const R=n(h,q);if(R!==void 0&&!ri(R))return R}return K[q]},...O,build(){return xe(),w},scheduleRender(){Qo.render(te,!1,!0)},syncRender:te,setProps(q){(q.transformTemplate||h.transformTemplate)&&X.scheduleRender(),h=q,O.updatePropListeners(q),V=AH(X,f(h),V)},getProps:()=>h,getVariant:q=>{var R;return(R=h.variants)===null||R===void 0?void 0:R[q]},getDefaultTransition:()=>h.transition,getTransformPagePoint:()=>h.transformPagePoint,getVariantContext(q=!1){if(q)return p?.getVariantContext();if(!Pe){const H=p?.getVariantContext()||{};return h.initial!==void 0&&(H.initial=h.initial),H}const R={};for(let H=0;H{const i=o.get();if(!_b(i))return;const s=Cb(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!_b(i))continue;const s=Cb(i,r);!s||(t[o]=s,n&&n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const DH=new Set(["width","height","top","left","right","bottom","x","y"]),t3=e=>DH.has(e),MH=e=>Object.keys(e).some(t3),n3=(e,t)=>{e.set(t,!1),e.set(t)},yE=e=>e===zs||e===Re;var bE;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(bE||(bE={}));const SE=(e,t)=>parseFloat(e.split(", ")[t]),xE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return SE(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?SE(i[1],e):0}},NH=new Set(["x","y","z"]),FH=cm.filter(e=>!NH.has(e));function LH(e){const t=[];return FH.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}const wE={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:xE(4,13),y:xE(5,14)},$H=(e,t,n)=>{const r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),{display:s}=i,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{u[f]=wE[f](r,i)}),t.syncRender();const c=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);n3(p,u[f]),e[f]=wE[f](c,i)}),e},BH=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(t3);let i=[],s=!1;const u=[];if(o.forEach(c=>{const f=e.getValue(c);if(!e.hasValue(c))return;let p=n[c],h=cc(p);const m=t[c];let v;if(wf(m)){const y=m.length,S=m[0]===null?1:0;p=m[S],h=cc(p);for(let k=S;k=0?window.pageYOffset:null,f=$H(t,e,u);return i.length&&i.forEach(([p,h])=>{e.getValue(p).set(h)}),e.syncRender(),Bs&&c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function zH(e,t,n,r){return MH(t)?BH(e,t,n,r):{target:t,transitionEnd:r}}const VH=(e,t,n,r)=>{const o=RH(e,t,r);return t=o.target,r=o.transitionEnd,zH(e,t,n,r)};function WH(e){return window.getComputedStyle(e)}const r3={treeType:"dom",readValueFromInstance(e,t){if(Kf.has(t)){const n=zx(t);return n&&n.default||0}else{const n=WH(e),r=(WI(t)?n.getPropertyValue(t):n[t])||0;return typeof r=="string"?r.trim():r}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox(e,{transformPagePoint:t}){return YR(e,t)},resetTransform(e,t,n){const{transformTemplate:r}=n;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:n,...r},{transformValues:o},i=!0){let s=qU(r,t||{},e);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){HU(e,r,s);const u=VH(e,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}},scrapeMotionValuesFromProps:Tx,build(e,t,n,r,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Ex(t,n,r,o.transformTemplate)},render:tR},jH=QR(r3),UH=QR({...r3,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return Kf.has(t)?((n=zx(t))===null||n===void 0?void 0:n.default)||0:(t=nR.has(t)?t:eR(t),e.getAttribute(t))},scrapeMotionValuesFromProps:oR,build(e,t,n,r,o){Ax(t,n,r,o.transformTemplate)},render:rR}),HH=(e,t)=>Cx(e)?UH(t,{enableHardwareAcceleration:!1}):jH(t,{enableHardwareAcceleration:!0});function _E(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Re.test(e))e=parseFloat(e);else return e;const n=_E(e,t.target.x),r=_E(e,t.target.y);return`${n}% ${r}%`}},CE="_$css",GH={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(e3,v=>(i.push(v),CE)));const s=Bi.parse(e);if(s.length>5)return r;const u=Bi.createTransformer(e),c=typeof s[0]!="number"?1:0,f=n.x.scale*t.x,p=n.y.scale*t.y;s[0+c]/=f,s[1+c]/=p;const h=jt(f,p,.5);typeof s[2+c]=="number"&&(s[2+c]/=h),typeof s[3+c]=="number"&&(s[3+c]/=h);let m=u(s);if(o){let v=0;m=m.replace(CE,()=>{const y=i[v];return v++,y})}return m}};class qH extends ee.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;iW(YH),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Fc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Qo.postRender(()=>{var u;!((u=s.getStack())===null||u===void 0)&&u.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n?.group&&n.group.remove(o),r?.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function KH(e){const[t,n]=Bx(),r=_.exports.useContext(_x);return E(qH,{...e,layoutGroup:r,switchLayoutGroup:_.exports.useContext(zI),isPresent:t,safeToRemove:n})}const YH={borderRadius:{...fc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fc,borderTopRightRadius:fc,borderBottomLeftRadius:fc,borderBottomRightRadius:fc,boxShadow:GH},XH={measureLayout:KH};function ZH(e,t,n={}){const r=ri(e)?e:lu(e);return jx("",r,t,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const o3=["TopLeft","TopRight","BottomLeft","BottomRight"],QH=o3.length,kE=e=>typeof e=="string"?parseFloat(e):e,EE=e=>typeof e=="number"||Re.test(e);function JH(e,t,n,r,o,i){var s,u,c,f;o?(e.opacity=jt(0,(s=n.opacity)!==null&&s!==void 0?s:1,eG(r)),e.opacityExit=jt((u=t.opacity)!==null&&u!==void 0?u:1,0,tG(r))):i&&(e.opacity=jt((c=t.opacity)!==null&&c!==void 0?c:1,(f=n.opacity)!==null&&f!==void 0?f:1,r));for(let p=0;prt?1:n(_f(e,t,r))}function AE(e,t){e.min=t.min,e.max=t.max}function mo(e,t){AE(e.x,t.x),AE(e.y,t.y)}function TE(e,t,n,r,o){return e-=t,e=bm(e,1/n,r),o!==void 0&&(e=bm(e,1/o,r)),e}function nG(e,t=0,n=1,r=.5,o,i=e,s=e){if(Zo.test(t)&&(t=parseFloat(t),t=jt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=jt(i.min,i.max,r);e===i&&(u-=t),e.min=TE(e.min,t,n,u,o),e.max=TE(e.max,t,n,u,o)}function OE(e,t,[n,r,o],i,s){nG(e,t[n],t[r],t[o],t.scale,i,s)}const rG=["x","scaleX","originX"],oG=["y","scaleY","originY"];function IE(e,t,n,r){OE(e.x,t,rG,n?.x,r?.x),OE(e.y,t,oG,n?.y,r?.y)}function RE(e){return e.translate===0&&e.scale===1}function a3(e){return RE(e.x)&&RE(e.y)}function s3(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 DE(e){return Or(e.x)/Or(e.y)}function iG(e,t,n=.01){return $x(e,t)<=n}class aG{constructor(){this.members=[]}add(t){Ux(this.members,t),t.scheduleRender()}remove(t){if(Hx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){var r;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,o,i,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(o=t.resumingFrom)===null||o===void 0?void 0:(i=o.options).onExitComplete)===null||s===void 0||s.call(i)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const sG="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function ME(e,t,n){const r=e.x.translate/t.x,o=e.y.translate/t.y;let i=`translate3d(${r}px, ${o}px, 0) `;if(i+=`scale(${1/t.x}, ${1/t.y}) `,n){const{rotate:c,rotateX:f,rotateY:p}=n;c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotateX(${f}deg) `),p&&(i+=`rotateY(${p}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return i+=`scale(${s}, ${u})`,i===sG?"none":i}const lG=(e,t)=>e.depth-t.depth;class uG{constructor(){this.children=[],this.isDirty=!1}add(t){Ux(this.children,t),this.isDirty=!0}remove(t){Hx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lG),this.isDirty=!1,this.children.forEach(t)}}const NE=["","X","Y","Z"],FE=1e3;function l3({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s,u={},c=t?.()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(mG),this.nodes.forEach(gG)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=u,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let f=0;fthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,clearTimeout(m),m=window.setTimeout(v,250),Fc.hasAnimatedSinceResize&&(Fc.hasAnimatedSinceResize=!1,this.nodes.forEach(hG))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:v,hasRelativeTargetChanged:y,layout:S})=>{var k,x,b,w,P;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=(x=(k=this.options.transition)!==null&&k!==void 0?k:h.getDefaultTransition())!==null&&x!==void 0?x:xG,{onLayoutAnimationStart:M,onLayoutAnimationComplete:N}=h.getProps(),V=!this.targetLayout||!s3(this.targetLayout,S)||y,K=!v&&y;if(((b=this.resumeFrom)===null||b===void 0?void 0:b.instance)||K||v&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,K);const W={...Wx(O,"layout"),onPlay:M,onComplete:N};h.shouldReduceMotion&&(W.delay=0,W.type=!1),this.startAnimation(W)}else!v&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((P=(w=this.options).onExitComplete)===null||P===void 0||P.call(w));this.targetLayout=S})}unmount(){var s,u;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(u=this.parent)===null||u===void 0||u.children.delete(this),this.instance=void 0,Ef.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1}startUpdate(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(vG))}willUpdate(s=!0){var u,c,f;if(this.root.isUpdateBlocked()){(c=(u=this.options).onExitComplete)===null||c===void 0||c.call(u);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const s=this.measure(),u=this.removeTransform(this.removeElementScroll(s));VE(u),this.snapshot={measured:s,layout:u,latestValues:{}}}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f{var b;const w=x/1e3;$E(m.x,s.x,w),$E(m.y,s.y,w),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((b=this.relativeParent)===null||b===void 0?void 0:b.layout)&&(Vc(v,this.layout.actual,this.relativeParent.layout.actual),bG(this.relativeTarget,this.relativeTargetOrigin,v,w)),y&&(this.animationValues=h,JH(h,p,this.latestValues,w,k,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(0)}startAnimation(s){var u,c;this.notifyListeners("animationStart"),(u=this.currentAnimation)===null||u===void 0||u.stop(),this.resumingFrom&&((c=this.resumingFrom.currentAnimation)===null||c===void 0||c.stop()),this.pendingAnimation&&(Ef.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qo.update(()=>{Fc.hasAnimatedSinceResize=!0,this.currentAnimation=ZH(0,FE,{...s,onUpdate:f=>{var p;this.mixTargetDelta(f),(p=s.onUpdate)===null||p===void 0||p.call(s,f)},onComplete:()=>{var f;(f=s.onComplete)===null||f===void 0||f.call(s),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,FE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:c,layout:f,latestValues:p}=s;if(!(!u||!c||!f)){if(this!==s&&this.layout&&f&&u3(this.options.animationType,this.layout.actual,f.actual)){c=this.target||bn();const h=Or(this.layout.actual.x);c.x.min=s.target.x.min,c.x.max=c.x.min+h;const m=Or(this.layout.actual.y);c.y.min=s.target.y.min,c.y.max=c.y.min+m}mo(u,c),Ll(u,p),zc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){var c,f,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new aG),this.sharedNodes.get(s).add(u),u.promote({transition:(c=u.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(p=(f=u.options.initialPromotionConfig)===null||f===void 0?void 0:f.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(f,u)})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const c={};for(let f=0;f{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(LE),this.root.sharedNodes.clear()}}}function cG(e){e.updateLayout()}function fG(e){var t,n,r;const o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{actual:i,measured:s}=e.layout,{animationType:u}=e.options;u==="size"?$o(m=>{const v=o.isShared?o.measured[m]:o.layout[m],y=Or(v);v.min=i[m].min,v.max=v.min+y}):u3(u,o.layout,i)&&$o(m=>{const v=o.isShared?o.measured[m]:o.layout[m],y=Or(i[m]);v.max=v.min+y});const c=Wc();zc(c,i,o.layout);const f=Wc();o.isShared?zc(f,e.applyTransform(s,!0),o.measured):zc(f,i,o.layout);const p=!a3(c);let h=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:m,layout:v}=e.relativeParent;if(m&&v){const y=bn();Vc(y,o.layout,m.layout);const S=bn();Vc(S,i,v.actual),s3(y,S)||(h=!0)}}e.notifyListeners("didUpdate",{layout:i,snapshot:o,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:h})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function dG(e){e.clearSnapshot()}function LE(e){e.clearMeasurements()}function pG(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function hG(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function mG(e){e.resolveTargetDelta()}function gG(e){e.calcProjection()}function vG(e){e.resetRotation()}function yG(e){e.removeLeadSnapshot()}function $E(e,t,n){e.translate=jt(t.translate,0,n),e.scale=jt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function BE(e,t,n,r){e.min=jt(t.min,n.min,r),e.max=jt(t.max,n.max,r)}function bG(e,t,n,r){BE(e.x,t.x,n.x,r),BE(e.y,t.y,n.y,r)}function SG(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xG={duration:.45,ease:[.4,0,.1,1]};function wG(e,t){let n=e.root;for(let i=e.path.length-1;i>=0;i--)if(Boolean(e.path[i].instance)){n=e.path[i];break}const o=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function zE(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function VE(e){zE(e.x),zE(e.y)}function u3(e,t,n){return e==="position"||e==="preserve-aspect"&&!iG(DE(t),DE(n))}const _G=l3({attachResizeListener:(e,t)=>Og(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Py={current:void 0},CG=l3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Py.current){const e=new _G(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Py.current=e}return Py.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),kG={...oH,...hU,...kH,...XH},Ao=rW((e,t)=>WW(e,t,kG,HH,CG));function c3(){const e=_.exports.useRef(!1);return lm(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function EG(){const e=c3(),[t,n]=_.exports.useState(0),r=_.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[_.exports.useCallback(()=>Qo.postRender(r),[r]),t]}class PG extends _.exports.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function AG({children:e,isPresent:t}){const n=_.exports.useId(),r=_.exports.useRef(null),o=_.exports.useRef({width:0,height:0,top:0,left:0});return _.exports.useInsertionEffect(()=>{const{width:i,height:s,top:u,left:c}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${i}px !important; - height: ${s}px !important; - top: ${u}px !important; - left: ${c}px !important; - } - `),()=>{document.head.removeChild(f)}},[t]),E(PG,{isPresent:t,childRef:r,sizeRef:o,children:_.exports.cloneElement(e,{ref:r})})}const Ay=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const u=Tg(TG),c=_.exports.useId(),f=_.exports.useMemo(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:p=>{u.set(p,!0);for(const h of u.values())if(!h)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),i?void 0:[n]);return _.exports.useMemo(()=>{u.forEach((p,h)=>u.set(h,!1))},[n]),_.exports.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=E(AG,{isPresent:n,children:e})),E(Su.Provider,{value:f,children:e})};function TG(){return new Map}const xl=e=>e.key||"";function OG(e,t){e.forEach(n=>{const r=xl(n);t.set(r,n)})}function IG(e){const t=[];return _.exports.Children.forEach(e,n=>{_.exports.isValidElement(n)&&t.push(n)}),t}const Ui=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{o&&(s="wait",FR(!1,"Replace exitBeforeEnter with mode='wait'"));let[u]=EG();const c=_.exports.useContext(_x).forceRender;c&&(u=c);const f=c3(),p=IG(e);let h=p;const m=new Set,v=_.exports.useRef(h),y=_.exports.useRef(new Map).current,S=_.exports.useRef(!0);if(lm(()=>{S.current=!1,OG(p,y),v.current=h}),Ix(()=>{S.current=!0,y.clear(),m.clear()}),S.current)return E(fr,{children:h.map(w=>E(Ay,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s,children:w},xl(w)))});h=[...h];const k=v.current.map(xl),x=p.map(xl),b=k.length;for(let w=0;w{if(x.indexOf(w)!==-1)return;const P=y.get(w);if(!P)return;const O=k.indexOf(w),M=()=>{y.delete(w),m.delete(w);const N=v.current.findIndex(V=>V.key===w);if(v.current.splice(N,1),!m.size){if(v.current=p,f.current===!1)return;u(),r&&r()}};h.splice(O,0,E(Ay,{isPresent:!1,onExitComplete:M,custom:t,presenceAffectsLayout:i,mode:s,children:P},xl(P)))}),h=h.map(w=>{const P=w.key;return m.has(P)?w:E(Ay,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:w},xl(w))}),NR!=="production"&&s==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),E(fr,{children:m.size?h:h.map(w=>_.exports.cloneElement(w))})};var Jf=(...e)=>e.filter(Boolean).join(" ");function RG(){return!1}var DG=e=>{const{condition:t,message:n}=e;t&&RG()&&console.warn(n)},Ss={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},dc={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function kb(e){switch(e?.direction??"right"){case"right":return dc.slideRight;case"left":return dc.slideLeft;case"bottom":return dc.slideDown;case"top":return dc.slideUp;default:return dc.slideRight}}var ks={enter:{duration:.2,ease:Ss.easeOut},exit:{duration:.1,ease:Ss.easeIn}},ko={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},MG=e=>e!=null&&parseInt(e.toString(),10)>0,WE={exit:{height:{duration:.2,ease:Ss.ease},opacity:{duration:.3,ease:Ss.ease}},enter:{height:{duration:.3,ease:Ss.ease},opacity:{duration:.4,ease:Ss.ease}}},NG={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:MG(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??ko.exit(WE.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:r?.enter,transition:n?.enter??ko.enter(WE.enter,o)})},f3=_.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:s="auto",style:u,className:c,transition:f,transitionEnd:p,...h}=e,[m,v]=_.exports.useState(!1);_.exports.useEffect(()=>{const b=setTimeout(()=>{v(!0)});return()=>clearTimeout(b)},[]),DG({condition:Boolean(i>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const y=parseFloat(i.toString())>0,S={startingHeight:i,endingHeight:s,animateOpacity:o,transition:m?f:{enter:{duration:0}},transitionEnd:{enter:p?.enter,exit:r?p?.exit:{...p?.exit,display:y?"block":"none"}}},k=r?n:!0,x=n||r?"enter":"exit";return E(Ui,{initial:!1,custom:S,children:k&&ee.createElement(Ao.div,{ref:t,...h,className:Jf("chakra-collapse",c),style:{overflow:"hidden",display:"block",...u},custom:S,variants:NG,initial:r?"exit":!1,animate:x,exit:"exit"})})});f3.displayName="Collapse";var FG={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??ko.enter(ks.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??ko.exit(ks.exit,n),transitionEnd:t?.exit})},d3={initial:"exit",animate:"enter",exit:"exit",variants:FG},LG=_.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:s,transitionEnd:u,delay:c,...f}=t,p=o||r?"enter":"exit",h=r?o&&r:!0,m={transition:s,transitionEnd:u,delay:c};return E(Ui,{custom:m,children:h&&ee.createElement(Ao.div,{ref:n,className:Jf("chakra-fade",i),custom:m,...d3,animate:p,...f})})});LG.displayName="Fade";var $G={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r?.exit}:{transitionEnd:{scale:t,...r?.exit}},transition:n?.exit??ko.exit(ks.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??ko.enter(ks.enter,n),transitionEnd:e?.enter})},p3={initial:"exit",animate:"enter",exit:"exit",variants:$G},BG=_.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:s=.95,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=r?o&&r:!0,v=o||r?"enter":"exit",y={initialScale:s,reverse:i,transition:c,transitionEnd:f,delay:p};return E(Ui,{custom:y,children:m&&ee.createElement(Ao.div,{ref:n,className:Jf("chakra-offset-slide",u),...p3,animate:v,custom:y,...h})})});BG.displayName="ScaleFade";var jE={exit:{duration:.15,ease:Ss.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},zG={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=kb({direction:e});return{...o,transition:t?.exit??ko.exit(jE.exit,r),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=kb({direction:e});return{...o,transition:n?.enter??ko.enter(jE.enter,r),transitionEnd:t?.enter}}},h3=_.exports.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:s,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=kb({direction:r}),v=Object.assign({position:"fixed"},m.position,o),y=i?s&&i:!0,S=s||i?"enter":"exit",k={transitionEnd:f,transition:c,direction:r,delay:p};return E(Ui,{custom:k,children:y&&ee.createElement(Ao.div,{...h,ref:n,initial:"exit",className:Jf("chakra-slide",u),animate:S,exit:"exit",custom:k,variants:zG,style:v})})});h3.displayName="Slide";var VG={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??ko.exit(ks.exit,o),transitionEnd:r?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??ko.enter(ks.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const s={x:t,y:e};return{opacity:0,transition:n?.exit??ko.exit(ks.exit,i),...o?{...s,transitionEnd:r?.exit}:{transitionEnd:{...s,...r?.exit}}}}},Eb={initial:"initial",animate:"enter",exit:"exit",variants:VG},WG=_.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:s,offsetX:u=0,offsetY:c=8,transition:f,transitionEnd:p,delay:h,...m}=t,v=r?o&&r:!0,y=o||r?"enter":"exit",S={offsetX:u,offsetY:c,reverse:i,transition:f,transitionEnd:p,delay:h};return E(Ui,{custom:S,children:v&&ee.createElement(Ao.div,{ref:n,className:Jf("chakra-offset-slide",s),custom:S,...Eb,animate:y,...m})})});WG.displayName="SlideFade";var ed=(...e)=>e.filter(Boolean).join(" ");function jG(){return!1}var Lg=e=>{const{condition:t,message:n}=e;t&&jG()&&console.warn(n)};function Ty(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[UG,$g]=Xt({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[HG,qx]=Xt({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[GG,Ffe,qG,KG]=WV(),ls=de(function(t,n){const{getButtonProps:r}=qx(),o=r(t,n),i=$g(),s={display:"flex",alignItems:"center",width:"100%",outline:0,...i.button};return ee.createElement(ie.button,{...o,className:ed("chakra-accordion__button",t.className),__css:s})});ls.displayName="AccordionButton";function YG(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:o,allowToggle:i,...s}=e;QG(e),JG(e);const u=qG(),[c,f]=_.exports.useState(-1);_.exports.useEffect(()=>()=>{f(-1)},[]);const[p,h]=jV({value:r,defaultValue(){return o?n??[]:n??-1},onChange:t});return{index:p,setIndex:h,htmlProps:s,getAccordionItemProps:v=>{let y=!1;return v!==null&&(y=Array.isArray(p)?p.includes(v):p===v),{isOpen:y,onChange:k=>{if(v!==null)if(o&&Array.isArray(p)){const x=k?p.concat(v):p.filter(b=>b!==v);h(x)}else k?h(v):i&&h(-1)}}},focusedIndex:c,setFocusedIndex:f,descendants:u}}var[XG,Kx]=Xt({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function ZG(e){const{isDisabled:t,isFocusable:n,id:r,...o}=e,{getAccordionItemProps:i,setFocusedIndex:s}=Kx(),u=_.exports.useRef(null),c=_.exports.useId(),f=r??c,p=`accordion-button-${f}`,h=`accordion-panel-${f}`;eq(e);const{register:m,index:v,descendants:y}=KG({disabled:t&&!n}),{isOpen:S,onChange:k}=i(v===-1?null:v);tq({isOpen:S,isDisabled:t});const x=()=>{k?.(!0)},b=()=>{k?.(!1)},w=_.exports.useCallback(()=>{k?.(!S),s(v)},[v,s,S,k]),P=_.exports.useCallback(V=>{const W={ArrowDown:()=>{const te=y.nextEnabled(v);te?.node.focus()},ArrowUp:()=>{const te=y.prevEnabled(v);te?.node.focus()},Home:()=>{const te=y.firstEnabled();te?.node.focus()},End:()=>{const te=y.lastEnabled();te?.node.focus()}}[V.key];W&&(V.preventDefault(),W(V))},[y,v]),O=_.exports.useCallback(()=>{s(v)},[s,v]),M=_.exports.useCallback(function(K={},W=null){return{...K,type:"button",ref:Kn(m,u,W),id:p,disabled:!!t,"aria-expanded":!!S,"aria-controls":h,onClick:Ty(K.onClick,w),onFocus:Ty(K.onFocus,O),onKeyDown:Ty(K.onKeyDown,P)}},[p,t,S,w,O,P,h,m]),N=_.exports.useCallback(function(K={},W=null){return{...K,ref:W,role:"region",id:h,"aria-labelledby":p,hidden:!S}},[p,S,h]);return{isOpen:S,isDisabled:t,isFocusable:n,onOpen:x,onClose:b,getButtonProps:M,getPanelProps:N,htmlProps:o}}function QG(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;Lg({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function JG(e){Lg({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function eq(e){Lg({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. - `})}function tq(e){Lg({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function us(e){const{isOpen:t,isDisabled:n}=qx(),{reduceMotion:r}=Kx(),o=ed("chakra-accordion__icon",e.className),i=$g(),s={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...i.icon};return E(Po,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:s,...e,children:E("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}us.displayName="AccordionIcon";var cs=de(function(t,n){const{children:r,className:o}=t,{htmlProps:i,...s}=ZG(t),c={...$g().container,overflowAnchor:"none"},f=_.exports.useMemo(()=>s,[s]);return ee.createElement(HG,{value:f},ee.createElement(ie.div,{ref:n,...i,className:ed("chakra-accordion__item",o),__css:c},typeof r=="function"?r({isExpanded:!!s.isOpen,isDisabled:!!s.isDisabled}):r))});cs.displayName="AccordionItem";var fs=de(function(t,n){const{reduceMotion:r}=Kx(),{getPanelProps:o,isOpen:i}=qx(),s=o(t,n),u=ed("chakra-accordion__panel",t.className),c=$g();r||delete s.hidden;const f=ee.createElement(ie.div,{...s,__css:c.panel,className:u});return r?f:E(f3,{in:i,children:f})});fs.displayName="AccordionPanel";var m3=de(function({children:t,reduceMotion:n,...r},o){const i=Fr("Accordion",r),s=bt(r),{htmlProps:u,descendants:c,...f}=YG(s),p=_.exports.useMemo(()=>({...f,reduceMotion:!!n}),[f,n]);return ee.createElement(GG,{value:c},ee.createElement(XG,{value:p},ee.createElement(UG,{value:i},ee.createElement(ie.div,{ref:o,...u,className:ed("chakra-accordion",r.className),__css:i.root},t))))});m3.displayName="Accordion";var nq=(...e)=>e.filter(Boolean).join(" "),rq=qf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Bg=de((e,t)=>{const n=Zn("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:u,...c}=bt(e),f=nq("chakra-spinner",u),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${rq} ${i} linear infinite`,...n};return ee.createElement(ie.div,{ref:t,__css:p,className:f,...c},r&&ee.createElement(ie.span,{srOnly:!0},r))});Bg.displayName="Spinner";var zg=(...e)=>e.filter(Boolean).join(" ");function oq(e){return E(Po,{viewBox:"0 0 24 24",...e,children:E("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 iq(e){return E(Po,{viewBox:"0 0 24 24",...e,children:E("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 UE(e){return E(Po,{viewBox:"0 0 24 24",...e,children:E("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[aq,sq]=Xt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[lq,Yx]=Xt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),g3={info:{icon:iq,colorScheme:"blue"},warning:{icon:UE,colorScheme:"orange"},success:{icon:oq,colorScheme:"green"},error:{icon:UE,colorScheme:"red"},loading:{icon:Bg,colorScheme:"blue"}};function uq(e){return g3[e].colorScheme}function cq(e){return g3[e].icon}var v3=de(function(t,n){const{status:r="info",addRole:o=!0,...i}=bt(t),s=t.colorScheme??uq(r),u=Fr("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return ee.createElement(aq,{value:{status:r}},ee.createElement(lq,{value:u},ee.createElement(ie.div,{role:o?"alert":void 0,ref:n,...i,className:zg("chakra-alert",t.className),__css:c})))});v3.displayName="Alert";var y3=de(function(t,n){const r=Yx(),o={display:"inline",...r.description};return ee.createElement(ie.div,{ref:n,...t,className:zg("chakra-alert__desc",t.className),__css:o})});y3.displayName="AlertDescription";function b3(e){const{status:t}=sq(),n=cq(t),r=Yx(),o=t==="loading"?r.spinner:r.icon;return ee.createElement(ie.span,{display:"inherit",...e,className:zg("chakra-alert__icon",e.className),__css:o},e.children||E(n,{h:"100%",w:"100%"}))}b3.displayName="AlertIcon";var S3=de(function(t,n){const r=Yx();return ee.createElement(ie.div,{ref:n,...t,className:zg("chakra-alert__title",t.className),__css:r.title})});S3.displayName="AlertTitle";function fq(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function dq(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:u,ignoreFallback:c}=e,[f,p]=_.exports.useState("pending");_.exports.useEffect(()=>{p(n?"loading":"pending")},[n]);const h=_.exports.useRef(),m=_.exports.useCallback(()=>{if(!n)return;v();const y=new Image;y.src=n,s&&(y.crossOrigin=s),r&&(y.srcset=r),u&&(y.sizes=u),t&&(y.loading=t),y.onload=S=>{v(),p("loaded"),o?.(S)},y.onerror=S=>{v(),p("failed"),i?.(S)},h.current=y},[n,s,r,u,o,i,t]),v=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return Mi(()=>{if(!c)return f==="loading"&&m(),()=>{v()}},[f,m,c]),c?"loaded":f}var pq=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",Sm=de(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return E("img",{width:r,height:o,ref:n,alt:i,...s})});Sm.displayName="NativeImage";var Pf=de(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:s,align:u,fit:c,loading:f,ignoreFallback:p,crossOrigin:h,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:v,...y}=t,S=r!==void 0||o!==void 0,k=f!=null||p||!S,x=dq({...t,ignoreFallback:k}),b=pq(x,m),w={ref:n,objectFit:c,objectPosition:u,...k?y:fq(y,["onError","onLoad"])};return b?o||ee.createElement(ie.img,{as:Sm,className:"chakra-image__placeholder",src:r,...w}):ee.createElement(ie.img,{as:Sm,src:i,srcSet:s,crossOrigin:h,loading:f,referrerPolicy:v,className:"chakra-image",...w})});Pf.displayName="Image";de((e,t)=>ee.createElement(ie.img,{ref:t,as:Sm,className:"chakra-image",...e}));var hq=Object.create,x3=Object.defineProperty,mq=Object.getOwnPropertyDescriptor,w3=Object.getOwnPropertyNames,gq=Object.getPrototypeOf,vq=Object.prototype.hasOwnProperty,_3=(e,t)=>function(){return t||(0,e[w3(e)[0]])((t={exports:{}}).exports,t),t.exports},yq=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w3(t))!vq.call(e,o)&&o!==n&&x3(e,o,{get:()=>t[o],enumerable:!(r=mq(t,o))||r.enumerable});return e},bq=(e,t,n)=>(n=e!=null?hq(gq(e)):{},yq(t||!e||!e.__esModule?x3(n,"default",{value:e,enumerable:!0}):n,e)),Sq=_3({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function v(R){return R===null||typeof R!="object"?null:(R=m&&R[m]||R["@@iterator"],typeof R=="function"?R:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,k={};function x(R,H,ae){this.props=R,this.context=H,this.refs=k,this.updater=ae||y}x.prototype.isReactComponent={},x.prototype.setState=function(R,H){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,H,"setState")},x.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function b(){}b.prototype=x.prototype;function w(R,H,ae){this.props=R,this.context=H,this.refs=k,this.updater=ae||y}var P=w.prototype=new b;P.constructor=w,S(P,x.prototype),P.isPureReactComponent=!0;var O=Array.isArray,M=Object.prototype.hasOwnProperty,N={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function K(R,H,ae){var se,he={},ge=null,Ee=null;if(H!=null)for(se in H.ref!==void 0&&(Ee=H.ref),H.key!==void 0&&(ge=""+H.key),H)M.call(H,se)&&!V.hasOwnProperty(se)&&(he[se]=H[se]);var ce=arguments.length-2;if(ce===1)he.children=ae;else if(1(0,HE.isValidElement)(t))}/** - * @license React - * react.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Vg=(...e)=>e.filter(Boolean).join(" "),GE=e=>e?"":void 0,[wq,_q]=Xt({strict:!1,name:"ButtonGroupContext"});function Pb(e){const{children:t,className:n,...r}=e,o=_.exports.isValidElement(t)?_.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Vg("chakra-button__icon",n);return ee.createElement(ie.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i},o)}Pb.displayName="ButtonIcon";function Ab(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=E(Bg,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...u}=e,c=Vg("chakra-button__spinner",i),f=n==="start"?"marginEnd":"marginStart",p=_.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,f,r]);return ee.createElement(ie.div,{className:c,...u,__css:p},o)}Ab.displayName="ButtonSpinner";function Cq(e){const[t,n]=_.exports.useState(!e);return{ref:_.exports.useCallback(i=>{!i||n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}var oi=de((e,t)=>{const n=_q(),r=Zn("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:i,isActive:s,children:u,leftIcon:c,rightIcon:f,loadingText:p,iconSpacing:h="0.5rem",type:m,spinner:v,spinnerPlacement:y="start",className:S,as:k,...x}=bt(e),b=_.exports.useMemo(()=>{const M={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:M}}},[r,n]),{ref:w,type:P}=Cq(k),O={rightIcon:f,leftIcon:c,iconSpacing:h,children:u};return ee.createElement(ie.button,{disabled:o||i,ref:FV(t,w),as:k,type:m??P,"data-active":GE(s),"data-loading":GE(i),__css:b,className:Vg("chakra-button",S),...x},i&&y==="start"&&E(Ab,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:h,children:v}),i?p||ee.createElement(ie.span,{opacity:0},E(qE,{...O})):E(qE,{...O}),i&&y==="end"&&E(Ab,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:h,children:v}))});oi.displayName="Button";function qE(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return ue(fr,{children:[t&&E(Pb,{marginEnd:o,children:t}),r,n&&E(Pb,{marginStart:o,children:n})]})}var kq=de(function(t,n){const{size:r,colorScheme:o,variant:i,className:s,spacing:u="0.5rem",isAttached:c,isDisabled:f,...p}=t,h=Vg("chakra-button__group",s),m=_.exports.useMemo(()=>({size:r,colorScheme:o,variant:i,isDisabled:f}),[r,o,i,f]);let v={display:"inline-flex"};return c?v={...v,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:v={...v,"& > *:not(style) ~ *:not(style)":{marginStart:u}},ee.createElement(wq,{value:m},ee.createElement(ie.div,{ref:n,role:"group",__css:v,className:h,"data-attached":c?"":void 0,...p}))});kq.displayName="ButtonGroup";var Zr=de((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,u=n||r,c=_.exports.isValidElement(u)?_.exports.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null;return E(oi,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:c})});Zr.displayName="IconButton";var _u=(...e)=>e.filter(Boolean).join(" "),zp=e=>e?"":void 0,Oy=e=>e?!0:void 0;function KE(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[Eq,C3]=Xt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Pq,Cu]=Xt({strict:!1,name:"FormControlContext"});function Aq(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,u=_.exports.useId(),c=t||`field-${u}`,f=`${c}-label`,p=`${c}-feedback`,h=`${c}-helptext`,[m,v]=_.exports.useState(!1),[y,S]=_.exports.useState(!1),[k,x]=_.exports.useState(!1),b=_.exports.useCallback((N={},V=null)=>({id:h,...N,ref:Kn(V,K=>{!K||S(!0)})}),[h]),w=_.exports.useCallback((N={},V=null)=>({...N,ref:V,"data-focus":zp(k),"data-disabled":zp(o),"data-invalid":zp(r),"data-readonly":zp(i),id:N.id??f,htmlFor:N.htmlFor??c}),[c,o,k,r,i,f]),P=_.exports.useCallback((N={},V=null)=>({id:p,...N,ref:Kn(V,K=>{!K||v(!0)}),"aria-live":"polite"}),[p]),O=_.exports.useCallback((N={},V=null)=>({...N,...s,ref:V,role:"group"}),[s]),M=_.exports.useCallback((N={},V=null)=>({...N,ref:V,role:"presentation","aria-hidden":!0,children:N.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!k,onFocus:()=>x(!0),onBlur:()=>x(!1),hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:S,id:c,labelId:f,feedbackId:p,helpTextId:h,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:P,getRootProps:O,getLabelProps:w,getRequiredIndicatorProps:M}}var La=de(function(t,n){const r=Fr("Form",t),o=bt(t),{getRootProps:i,htmlProps:s,...u}=Aq(o),c=_u("chakra-form-control",t.className);return ee.createElement(Pq,{value:u},ee.createElement(Eq,{value:r},ee.createElement(ie.div,{...i({},n),className:c,__css:r.container})))});La.displayName="FormControl";var Tq=de(function(t,n){const r=Cu(),o=C3(),i=_u("chakra-form__helper-text",t.className);return ee.createElement(ie.div,{...r?.getHelpTextProps(t,n),__css:o.helperText,className:i})});Tq.displayName="FormHelperText";function Zx(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=Qx(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":Oy(n),"aria-required":Oy(o),"aria-readonly":Oy(r)}}function Qx(e){const t=Cu(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:u,isReadOnly:c,isDisabled:f,onFocus:p,onBlur:h,...m}=e,v=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&v.push(t.feedbackId),t?.hasHelpText&&v.push(t.helpTextId),{...m,"aria-describedby":v.join(" ")||void 0,id:n??t?.id,isDisabled:r??f??t?.isDisabled,isReadOnly:o??c??t?.isReadOnly,isRequired:i??s??t?.isRequired,isInvalid:u??t?.isInvalid,onFocus:KE(t?.onFocus,p),onBlur:KE(t?.onBlur,h)}}var[Oq,Iq]=Xt({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Rq=de((e,t)=>{const n=Fr("FormError",e),r=bt(e),o=Cu();return o?.isInvalid?ee.createElement(Oq,{value:n},ee.createElement(ie.div,{...o?.getErrorMessageProps(r,t),className:_u("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});Rq.displayName="FormErrorMessage";var Dq=de((e,t)=>{const n=Iq(),r=Cu();if(!r?.isInvalid)return null;const o=_u("chakra-form__error-icon",e.className);return E(Po,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:E("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"})})});Dq.displayName="FormErrorIcon";var $a=de(function(t,n){const r=Zn("FormLabel",t),o=bt(t),{className:i,children:s,requiredIndicator:u=E(k3,{}),optionalIndicator:c=null,...f}=o,p=Cu(),h=p?.getLabelProps(f,n)??{ref:n,...f};return ee.createElement(ie.label,{...h,className:_u("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r}},s,p?.isRequired?u:c)});$a.displayName="FormLabel";var k3=de(function(t,n){const r=Cu(),o=C3();if(!r?.isRequired)return null;const i=_u("chakra-form__required-indicator",t.className);return ee.createElement(ie.span,{...r?.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});k3.displayName="RequiredIndicator";function xm(e,t){const n=_.exports.useRef(!1),r=_.exports.useRef(!1);_.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var Jx={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Mq=ie("span",{baseStyle:Jx});Mq.displayName="VisuallyHidden";var Nq=ie("input",{baseStyle:Jx});Nq.displayName="VisuallyHiddenInput";var YE=!1,Wg=null,uu=!1,Tb=new Set,Fq=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Lq(e){return!(e.metaKey||!Fq&&e.altKey||e.ctrlKey)}function ew(e,t){Tb.forEach(n=>n(e,t))}function XE(e){uu=!0,Lq(e)&&(Wg="keyboard",ew("keyboard",e))}function hl(e){Wg="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(uu=!0,ew("pointer",e))}function $q(e){e.target===window||e.target===document||(uu||(Wg="keyboard",ew("keyboard",e)),uu=!1)}function Bq(){uu=!1}function ZE(){return Wg!=="pointer"}function zq(){if(typeof window>"u"||YE)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){uu=!0,e.apply(this,n)},document.addEventListener("keydown",XE,!0),document.addEventListener("keyup",XE,!0),window.addEventListener("focus",$q,!0),window.addEventListener("blur",Bq,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",hl,!0),document.addEventListener("pointermove",hl,!0),document.addEventListener("pointerup",hl,!0)):(document.addEventListener("mousedown",hl,!0),document.addEventListener("mousemove",hl,!0),document.addEventListener("mouseup",hl,!0)),YE=!0}function Vq(e){zq(),e(ZE());const t=()=>e(ZE());return Tb.add(t),()=>{Tb.delete(t)}}var[Lfe,Wq]=Xt({name:"CheckboxGroupContext",strict:!1}),jq=(...e)=>e.filter(Boolean).join(" "),Wn=e=>e?"":void 0;function Gr(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function Uq(...e){return function(n){e.forEach(r=>{r?.(n)})}}function Hq(e){const t=Ao;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var E3=Hq(ie.svg);function Gq(e){return E(E3,{width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:E("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function qq(e){return E(E3,{width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4},...e,children:E("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Kq({open:e,children:t}){return E(Ui,{initial:!1,children:e&&ee.createElement(Ao.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},t)})}function Yq(e){const{isIndeterminate:t,isChecked:n,...r}=e;return E(Kq,{open:n||t,children:E(t?qq:Gq,{...r})})}function Xq(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function P3(e={}){const t=Qx(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:u,onFocus:c,"aria-describedby":f}=t,{defaultChecked:p,isChecked:h,isFocusable:m,onChange:v,isIndeterminate:y,name:S,value:k,tabIndex:x=void 0,"aria-label":b,"aria-labelledby":w,"aria-invalid":P,...O}=e,M=Xq(O,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),N=Nn(v),V=Nn(u),K=Nn(c),[W,te]=_.exports.useState(!1),[xe,fe]=_.exports.useState(!1),[we,Ce]=_.exports.useState(!1),[ve,Pe]=_.exports.useState(!1);_.exports.useEffect(()=>Vq(te),[]);const j=_.exports.useRef(null),[X,q]=_.exports.useState(!0),[R,H]=_.exports.useState(!!p),ae=h!==void 0,se=ae?h:R,he=_.exports.useCallback(ye=>{if(r||n){ye.preventDefault();return}ae||H(se?ye.target.checked:y?!0:ye.target.checked),N?.(ye)},[r,n,se,ae,y,N]);Mi(()=>{j.current&&(j.current.indeterminate=Boolean(y))},[y]),xm(()=>{n&&fe(!1)},[n,fe]),Mi(()=>{const ye=j.current;!ye?.form||(ye.form.onreset=()=>{H(!!p)})},[]);const ge=n&&!m,Ee=_.exports.useCallback(ye=>{ye.key===" "&&Pe(!0)},[Pe]),ce=_.exports.useCallback(ye=>{ye.key===" "&&Pe(!1)},[Pe]);Mi(()=>{if(!j.current)return;j.current.checked!==se&&H(j.current.checked)},[j.current]);const Ae=_.exports.useCallback((ye={},Mt=null)=>{const Qt=it=>{xe&&it.preventDefault(),Pe(!0)};return{...ye,ref:Mt,"data-active":Wn(ve),"data-hover":Wn(we),"data-checked":Wn(se),"data-focus":Wn(xe),"data-focus-visible":Wn(xe&&W),"data-indeterminate":Wn(y),"data-disabled":Wn(n),"data-invalid":Wn(i),"data-readonly":Wn(r),"aria-hidden":!0,onMouseDown:Gr(ye.onMouseDown,Qt),onMouseUp:Gr(ye.onMouseUp,()=>Pe(!1)),onMouseEnter:Gr(ye.onMouseEnter,()=>Ce(!0)),onMouseLeave:Gr(ye.onMouseLeave,()=>Ce(!1))}},[ve,se,n,xe,W,we,y,i,r]),Me=_.exports.useCallback((ye={},Mt=null)=>({...M,...ye,ref:Kn(Mt,Qt=>{!Qt||q(Qt.tagName==="LABEL")}),onClick:Gr(ye.onClick,()=>{var Qt;X||((Qt=j.current)==null||Qt.click(),requestAnimationFrame(()=>{var it;(it=j.current)==null||it.focus()}))}),"data-disabled":Wn(n),"data-checked":Wn(se),"data-invalid":Wn(i)}),[M,n,se,i,X]),mt=_.exports.useCallback((ye={},Mt=null)=>({...ye,ref:Kn(j,Mt),type:"checkbox",name:S,value:k,id:s,tabIndex:x,onChange:Gr(ye.onChange,he),onBlur:Gr(ye.onBlur,V,()=>fe(!1)),onFocus:Gr(ye.onFocus,K,()=>fe(!0)),onKeyDown:Gr(ye.onKeyDown,Ee),onKeyUp:Gr(ye.onKeyUp,ce),required:o,checked:se,disabled:ge,readOnly:r,"aria-label":b,"aria-labelledby":w,"aria-invalid":P?Boolean(P):i,"aria-describedby":f,"aria-disabled":n,style:Jx}),[S,k,s,he,V,K,Ee,ce,o,se,ge,r,b,w,P,i,f,n,x]),Dt=_.exports.useCallback((ye={},Mt=null)=>({...ye,ref:Mt,onMouseDown:Gr(ye.onMouseDown,QE),onTouchStart:Gr(ye.onTouchStart,QE),"data-disabled":Wn(n),"data-checked":Wn(se),"data-invalid":Wn(i)}),[se,n,i]);return{state:{isInvalid:i,isFocused:xe,isChecked:se,isActive:ve,isHovered:we,isIndeterminate:y,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Me,getCheckboxProps:Ae,getInputProps:mt,getLabelProps:Dt,htmlProps:M}}function QE(e){e.preventDefault(),e.stopPropagation()}var Zq=ie("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),Qq=ie("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),Jq=de(function(t,n){const r=Wq(),o={...r,...t},i=Fr("Checkbox",o),s=bt(t),{spacing:u="0.5rem",className:c,children:f,iconColor:p,iconSize:h,icon:m=E(Yq,{}),isChecked:v,isDisabled:y=r?.isDisabled,onChange:S,inputProps:k,...x}=s;let b=v;r?.value&&s.value&&(b=r.value.includes(s.value));let w=S;r?.onChange&&s.value&&(w=Uq(r.onChange,S));const{state:P,getInputProps:O,getCheckboxProps:M,getLabelProps:N,getRootProps:V}=P3({...x,isDisabled:y,isChecked:b,onChange:w}),K=_.exports.useMemo(()=>({opacity:P.isChecked||P.isIndeterminate?1:0,transform:P.isChecked||P.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:h,color:p,...i.icon}),[p,h,P.isChecked,P.isIndeterminate,i.icon]),W=_.exports.cloneElement(m,{__css:K,isIndeterminate:P.isIndeterminate,isChecked:P.isChecked});return ue(Qq,{__css:i.container,className:jq("chakra-checkbox",c),...V(),children:[E("input",{className:"chakra-checkbox__input",...O(k,n)}),E(Zq,{__css:i.control,className:"chakra-checkbox__control",...M(),children:W}),f&&ee.createElement(ie.span,{className:"chakra-checkbox__label",...N(),__css:{marginStart:u,...i.label}},f)]})});Jq.displayName="Checkbox";function eK(e){return E(Po,{focusable:"false","aria-hidden":!0,...e,children:E("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 tw=de(function(t,n){const r=Zn("CloseButton",t),{children:o,isDisabled:i,__css:s,...u}=bt(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return ee.createElement(ie.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...c,...r,...s},...u},o||E(eK,{width:"1em",height:"1em"}))});tw.displayName="CloseButton";function tK(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function A3(e,t){let n=tK(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function JE(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function nK(e,t,n){return e==null?e:(nr==null?"":Iy(r,i,n)??""),m=typeof o<"u",v=m?o:p,y=T3(ua(v),i),S=n??y,k=_.exports.useCallback(W=>{W!==v&&(m||h(W.toString()),f?.(W.toString(),ua(W)))},[f,m,v]),x=_.exports.useCallback(W=>{let te=W;return c&&(te=nK(te,s,u)),A3(te,S)},[S,c,u,s]),b=_.exports.useCallback((W=i)=>{let te;v===""?te=ua(W):te=ua(v)+W,te=x(te),k(te)},[x,i,k,v]),w=_.exports.useCallback((W=i)=>{let te;v===""?te=ua(-W):te=ua(v)-W,te=x(te),k(te)},[x,i,k,v]),P=_.exports.useCallback(()=>{let W;r==null?W="":W=Iy(r,i,n)??s,k(W)},[r,n,i,k,s]),O=_.exports.useCallback(W=>{const te=Iy(W,i,S)??s;k(te)},[S,i,k,s]),M=ua(v);return{isOutOfRange:M>u||ME(kg,{styles:O3}),iK=()=>E(kg,{styles:` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - font-feature-settings: 'kern'; - } - - *, - *::before, - *::after { - border-width: 0; - border-style: solid; - box-sizing: border-box; - } - - main { - display: block; - } - - hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - pre, - code, - kbd, - samp { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - b, - strong { - font-weight: bold; - } - - small { - font-size: 80%; - } - - sub, - sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - sub { - bottom: -0.25em; - } - - sup { - top: -0.5em; - } - - img { - border-style: none; - } - - button, - input, - optgroup, - select, - textarea { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - button, - input { - overflow: visible; - } - - button, - select { - text-transform: none; - } - - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; - } - - fieldset { - padding: 0.35em 0.75em 0.625em; - } - - legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - progress { - vertical-align: baseline; - } - - textarea { - overflow: auto; - } - - [type="checkbox"], - [type="radio"] { - box-sizing: border-box; - padding: 0; - } - - [type="number"]::-webkit-inner-spin-button, - [type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - input[type="number"] { - -moz-appearance: textfield; - } - - [type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - [type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - details { - display: block; - } - - summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - body, - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre { - margin: 0; - } - - button { - background: transparent; - padding: 0; - } - - fieldset { - margin: 0; - padding: 0; - } - - ol, - ul { - margin: 0; - padding: 0; - } - - textarea { - resize: vertical; - } - - button, - [role="button"] { - cursor: pointer; - } - - button::-moz-focus-inner { - border: 0 !important; - } - - table { - border-collapse: collapse; - } - - h1, - h2, - h3, - h4, - h5, - h6 { - font-size: inherit; - font-weight: inherit; - } - - button, - input, - optgroup, - select, - textarea { - padding: 0; - line-height: inherit; - color: inherit; - } - - img, - svg, - video, - canvas, - audio, - iframe, - embed, - object { - display: block; - } - - img, - video { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) { - outline: none; - box-shadow: none; - } - - select::-ms-expand { - display: none; - } - - ${O3} - `});function Ob(e,t,n,r){const o=Nn(n);return _.exports.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i?.removeEventListener(t,o,r)}}var aK=sV?_.exports.useLayoutEffect:_.exports.useEffect;function eP(e,t=[]){const n=_.exports.useRef(e);return aK(()=>{n.current=e}),_.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function sK(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function lK(e,t){const n=_.exports.useId();return _.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Ib(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=eP(n),s=eP(t),[u,c]=_.exports.useState(e.defaultIsOpen||!1),[f,p]=sK(r,u),h=lK(o,"disclosure"),m=_.exports.useCallback(()=>{f||c(!1),s?.()},[f,s]),v=_.exports.useCallback(()=>{f||c(!0),i?.()},[f,i]),y=_.exports.useCallback(()=>{(p?m:v)()},[p,v,m]);return{isOpen:!!p,onOpen:v,onClose:m,onToggle:y,isControlled:f,getButtonProps:(S={})=>({...S,"aria-expanded":p,"aria-controls":h,onClick:lV(S.onClick,y)}),getDisclosureProps:(S={})=>({...S,hidden:!p,id:h})}}function nw(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var rw=de(function(t,n){const{htmlSize:r,...o}=t,i=Fr("Input",o),s=bt(o),u=Zx(s),c=Zt("chakra-input",t.className);return ee.createElement(ie.input,{size:r,...u,__css:i.field,ref:n,className:c})});rw.displayName="Input";rw.id="Input";var[uK,I3]=Xt({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),cK=de(function(t,n){const r=Fr("Input",t),{children:o,className:i,...s}=bt(t),u=Zt("chakra-input__group",i),c={},f=Xx(o),p=r.field;f.forEach(m=>{!r||(p&&m.type.id==="InputLeftElement"&&(c.paddingStart=p.height??p.h),p&&m.type.id==="InputRightElement"&&(c.paddingEnd=p.height??p.h),m.type.id==="InputRightAddon"&&(c.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const h=f.map(m=>{var v,y;const S=nw({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((y=m.props)==null?void 0:y.variant)||t.variant});return m.type.id!=="Input"?_.exports.cloneElement(m,S):_.exports.cloneElement(m,Object.assign(S,c,m.props))});return ee.createElement(ie.div,{className:u,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...s},E(uK,{value:r,children:h}))});cK.displayName="InputGroup";var fK={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},dK=ie("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),ow=de(function(t,n){const{placement:r="left",...o}=t,i=fK[r]??{},s=I3();return E(dK,{ref:n,...o,__css:{...s.addon,...i}})});ow.displayName="InputAddon";var R3=de(function(t,n){return E(ow,{ref:n,placement:"left",...t,className:Zt("chakra-input__left-addon",t.className)})});R3.displayName="InputLeftAddon";R3.id="InputLeftAddon";var D3=de(function(t,n){return E(ow,{ref:n,placement:"right",...t,className:Zt("chakra-input__right-addon",t.className)})});D3.displayName="InputRightAddon";D3.id="InputRightAddon";var pK=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),jg=de(function(t,n){const{placement:r="left",...o}=t,i=I3(),s=i.field,c={[r==="left"?"insetStart":"insetEnd"]:"0",width:s?.height??s?.h,height:s?.height??s?.h,fontSize:s?.fontSize,...i.element};return E(pK,{ref:n,__css:c,...o})});jg.id="InputElement";jg.displayName="InputElement";var M3=de(function(t,n){const{className:r,...o}=t,i=Zt("chakra-input__left-element",r);return E(jg,{ref:n,placement:"left",className:i,...o})});M3.id="InputLeftElement";M3.displayName="InputLeftElement";var N3=de(function(t,n){const{className:r,...o}=t,i=Zt("chakra-input__right-element",r);return E(jg,{ref:n,placement:"right",className:i,...o})});N3.id="InputRightElement";N3.displayName="InputRightElement";function hK(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Ba(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):hK(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var mK=de(function(e,t){const{ratio:n=4/3,children:r,className:o,...i}=e,s=_.exports.Children.only(r),u=Zt("chakra-aspect-ratio",o);return ee.createElement(ie.div,{ref:t,position:"relative",className:u,_before:{height:0,content:'""',display:"block",paddingBottom:Ba(n,c=>`${1/c*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...i},s)});mK.displayName="AspectRatio";var gK=de(function(t,n){const r=Zn("Badge",t),{className:o,...i}=bt(t);return ee.createElement(ie.span,{ref:n,className:Zt("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});gK.displayName="Badge";var Es=ie("div");Es.displayName="Box";var F3=de(function(t,n){const{size:r,centerContent:o=!0,...i}=t;return E(Es,{ref:n,boxSize:r,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});F3.displayName="Square";var vK=de(function(t,n){const{size:r,...o}=t;return E(F3,{size:r,ref:n,borderRadius:"9999px",...o})});vK.displayName="Circle";var Af=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Af.displayName="Center";var yK={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};de(function(t,n){const{axis:r="both",...o}=t;return ee.createElement(ie.div,{ref:n,__css:yK[r],...o,position:"absolute"})});var bK=de(function(t,n){const r=Zn("Code",t),{className:o,...i}=bt(t);return ee.createElement(ie.code,{ref:n,className:Zt("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});bK.displayName="Code";var SK=de(function(t,n){const{className:r,centerContent:o,...i}=bt(t),s=Zn("Container",t);return ee.createElement(ie.div,{ref:n,className:Zt("chakra-container",r),...i,__css:{...s,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});SK.displayName="Container";var xK=de(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:u,borderStyle:c,borderColor:f,...p}=Zn("Divider",t),{className:h,orientation:m="horizontal",__css:v,...y}=bt(t),S={vertical:{borderLeftWidth:r||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||u||"1px",width:"100%"}};return ee.createElement(ie.hr,{ref:n,"aria-orientation":m,...y,__css:{...p,border:"0",borderColor:f,borderStyle:c,...S[m],...v},className:Zt("chakra-divider",h)})});xK.displayName="Divider";var Ue=de(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:u,grow:c,shrink:f,...p}=t,h={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:u,flexGrow:c,flexShrink:f};return ee.createElement(ie.div,{ref:n,__css:h,...p})});Ue.displayName="Flex";var iw=de(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:u,row:c,autoFlow:f,autoRows:p,templateRows:h,autoColumns:m,templateColumns:v,...y}=t,S={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:m,gridColumn:u,gridRow:c,gridAutoFlow:f,gridAutoRows:p,gridTemplateRows:h,gridTemplateColumns:v};return ee.createElement(ie.div,{ref:n,__css:S,...y})});iw.displayName="Grid";function tP(e){return Ba(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var ca=de(function(t,n){const{area:r,colSpan:o,colStart:i,colEnd:s,rowEnd:u,rowSpan:c,rowStart:f,...p}=t,h=nw({gridArea:r,gridColumn:tP(o),gridRow:tP(c),gridColumnStart:i,gridColumnEnd:s,gridRowStart:f,gridRowEnd:u});return ee.createElement(ie.div,{ref:n,__css:h,...p})});ca.displayName="GridItem";var aw=de(function(t,n){const r=Zn("Heading",t),{className:o,...i}=bt(t);return ee.createElement(ie.h2,{ref:n,className:Zt("chakra-heading",t.className),...i,__css:r})});aw.displayName="Heading";de(function(t,n){const r=Zn("Mark",t),o=bt(t);return E(Es,{ref:n,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...r}})});var wK=de(function(t,n){const r=Zn("Kbd",t),{className:o,...i}=bt(t);return ee.createElement(ie.kbd,{ref:n,className:Zt("chakra-kbd",o),...i,__css:{fontFamily:"mono",...r}})});wK.displayName="Kbd";var wm=de(function(t,n){const r=Zn("Link",t),{className:o,isExternal:i,...s}=bt(t);return ee.createElement(ie.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:Zt("chakra-link",o),...s,__css:r})});wm.displayName="Link";de(function(t,n){const{isExternal:r,target:o,rel:i,className:s,...u}=t;return ee.createElement(ie.a,{...u,ref:n,className:Zt("chakra-linkbox__overlay",s),rel:r?"noopener noreferrer":i,target:r?"_blank":o,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});de(function(t,n){const{className:r,...o}=t;return ee.createElement(ie.div,{ref:n,position:"relative",...o,className:Zt("chakra-linkbox",r),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[_K,L3]=Xt({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Ug=de(function(t,n){const r=Fr("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:u,...c}=bt(t),f=Xx(o),h=u?{["& > *:not(style) ~ *:not(style)"]:{mt:u}}:{};return ee.createElement(_K,{value:r},ee.createElement(ie.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...h},...c},f))});Ug.displayName="List";var CK=de((e,t)=>{const{as:n,...r}=e;return E(Ug,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});CK.displayName="OrderedList";var kK=de(function(t,n){const{as:r,...o}=t;return E(Ug,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});kK.displayName="UnorderedList";var $3=de(function(t,n){const r=L3();return ee.createElement(ie.li,{ref:n,...t,__css:r.item})});$3.displayName="ListItem";var EK=de(function(t,n){const r=L3();return E(Po,{ref:n,role:"presentation",...t,__css:r.icon})});EK.displayName="ListIcon";var PK=de(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:u,...c}=t,f=xx(),p=u?TK(u,f):OK(r);return E(iw,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:p,...c})});PK.displayName="SimpleGrid";function AK(e){return typeof e=="number"?`${e}px`:e}function TK(e,t){return Ba(e,n=>{const r=kV("sizes",n,AK(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function OK(e){return Ba(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var B3=ie("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});B3.displayName="Spacer";var Rb="& > *:not(style) ~ *:not(style)";function IK(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[Rb]:Ba(n,o=>r[o])}}function RK(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Ba(n,o=>r[o])}}var z3=e=>ee.createElement(ie.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});z3.displayName="StackItem";var sw=de((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:u,children:c,divider:f,className:p,shouldWrapChildren:h,...m}=e,v=n?"row":r??"column",y=_.exports.useMemo(()=>IK({direction:v,spacing:s}),[v,s]),S=_.exports.useMemo(()=>RK({spacing:s,direction:v}),[s,v]),k=!!f,x=!h&&!k,b=Xx(c),w=x?b:b.map((O,M)=>{const N=typeof O.key<"u"?O.key:M,V=M+1===b.length,W=h?E(z3,{children:O},N):O;if(!k)return W;const te=_.exports.cloneElement(f,{__css:S}),xe=V?null:te;return ue(_.exports.Fragment,{children:[W,xe]},N)}),P=Zt("chakra-stack",p);return ee.createElement(ie.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:y.flexDirection,flexWrap:u,className:P,__css:k?{}:{[Rb]:y[Rb]},...m},w)});sw.displayName="Stack";var _m=de((e,t)=>E(sw,{align:"center",...e,direction:"row",ref:t}));_m.displayName="HStack";var DK=de((e,t)=>E(sw,{align:"center",...e,direction:"column",ref:t}));DK.displayName="VStack";var Pt=de(function(t,n){const r=Zn("Text",t),{className:o,align:i,decoration:s,casing:u,...c}=bt(t),f=nw({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return ee.createElement(ie.p,{ref:n,className:Zt("chakra-text",t.className),...f,...c,__css:r})});Pt.displayName="Text";function nP(e){return typeof e=="number"?`${e}px`:e}var MK=de(function(t,n){const{spacing:r="0.5rem",spacingX:o,spacingY:i,children:s,justify:u,direction:c,align:f,className:p,shouldWrapChildren:h,...m}=t,v=_.exports.useMemo(()=>{const{spacingX:S=r,spacingY:k=r}={spacingX:o,spacingY:i};return{"--chakra-wrap-x-spacing":x=>Ba(S,b=>nP(Y1("space",b)(x))),"--chakra-wrap-y-spacing":x=>Ba(k,b=>nP(Y1("space",b)(x))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:u,alignItems:f,flexDirection:c,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[r,o,i,u,f,c]),y=h?_.exports.Children.map(s,(S,k)=>E(V3,{children:S},k)):s;return ee.createElement(ie.div,{ref:n,className:Zt("chakra-wrap",p),overflow:"hidden",...m},ee.createElement(ie.ul,{className:"chakra-wrap__list",__css:v},y))});MK.displayName="Wrap";var V3=de(function(t,n){const{className:r,...o}=t;return ee.createElement(ie.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:Zt("chakra-wrap__listitem",r),...o})});V3.displayName="WrapItem";var NK={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}}},W3=NK,ml=()=>{},FK={document:W3,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:ml,removeEventListener:ml,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:ml,removeListener:ml}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:ml,setInterval:()=>0,clearInterval:ml},LK=FK,$K={window:LK,document:W3},j3=typeof window<"u"?{window,document}:$K,U3=_.exports.createContext(j3);U3.displayName="EnvironmentContext";function H3(e){const{children:t,environment:n}=e,[r,o]=_.exports.useState(null),[i,s]=_.exports.useState(!1);_.exports.useEffect(()=>s(!0),[]);const u=_.exports.useMemo(()=>{if(n)return n;const c=r?.ownerDocument,f=r?.ownerDocument.defaultView;return c?{document:c,window:f}:j3},[r,n]);return ue(U3.Provider,{value:u,children:[t,!n&&i&&E("span",{id:"__chakra_env",hidden:!0,ref:c=>{_.exports.startTransition(()=>{c&&o(c)})}})]})}H3.displayName="EnvironmentProvider";function BK(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function zK(e){if(!BK(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var VK=e=>e.hasAttribute("tabindex");function WK(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function G3(e){return e.parentElement&&G3(e.parentElement)?!0:e.hidden}function jK(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function UK(e){if(!zK(e)||G3(e)||WK(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():jK(e)?!0:VK(e)}var HK=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],GK=HK.join(),qK=e=>e.offsetWidth>0&&e.offsetHeight>0;function KK(e){const t=Array.from(e.querySelectorAll(GK));return t.unshift(e),t.filter(n=>UK(n)&&qK(n))}var ur="top",no="bottom",ro="right",cr="left",lw="auto",td=[ur,no,ro,cr],cu="start",Tf="end",YK="clippingParents",q3="viewport",pc="popper",XK="reference",rP=td.reduce(function(e,t){return e.concat([t+"-"+cu,t+"-"+Tf])},[]),K3=[].concat(td,[lw]).reduce(function(e,t){return e.concat([t,t+"-"+cu,t+"-"+Tf])},[]),ZK="beforeRead",QK="read",JK="afterRead",eY="beforeMain",tY="main",nY="afterMain",rY="beforeWrite",oY="write",iY="afterWrite",aY=[ZK,QK,JK,eY,tY,nY,rY,oY,iY];function ii(e){return e?(e.nodeName||"").toLowerCase():null}function oo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ns(e){var t=oo(e).Element;return e instanceof t||e instanceof Element}function Jr(e){var t=oo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uw(e){if(typeof ShadowRoot>"u")return!1;var t=oo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sY(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Jr(i)||!ii(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var u=o[s];u===!1?i.removeAttribute(s):i.setAttribute(s,u===!0?"":u)}))})}function lY(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=s.reduce(function(c,f){return c[f]="",c},{});!Jr(o)||!ii(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const uY={name:"applyStyles",enabled:!0,phase:"write",fn:sY,effect:lY,requires:["computeStyles"]};function Jo(e){return e.split("-")[0]}var Ps=Math.max,Cm=Math.min,fu=Math.round;function Db(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Y3(){return!/^((?!chrome|android).)*safari/i.test(Db())}function du(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Jr(e)&&(o=e.offsetWidth>0&&fu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&fu(r.height)/e.offsetHeight||1);var s=Ns(e)?oo(e):window,u=s.visualViewport,c=!Y3()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function cw(e){var t=du(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function X3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zi(e){return oo(e).getComputedStyle(e)}function cY(e){return["table","td","th"].indexOf(ii(e))>=0}function qa(e){return((Ns(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hg(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(uw(e)?e.host:null)||qa(e)}function oP(e){return!Jr(e)||zi(e).position==="fixed"?null:e.offsetParent}function fY(e){var t=/firefox/i.test(Db()),n=/Trident/i.test(Db());if(n&&Jr(e)){var r=zi(e);if(r.position==="fixed")return null}var o=Hg(e);for(uw(o)&&(o=o.host);Jr(o)&&["html","body"].indexOf(ii(o))<0;){var i=zi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function nd(e){for(var t=oo(e),n=oP(e);n&&cY(n)&&zi(n).position==="static";)n=oP(n);return n&&(ii(n)==="html"||ii(n)==="body"&&zi(n).position==="static")?t:n||fY(e)||t}function fw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jc(e,t,n){return Ps(e,Cm(t,n))}function dY(e,t,n){var r=jc(e,t,n);return r>n?n:r}function Z3(){return{top:0,right:0,bottom:0,left:0}}function Q3(e){return Object.assign({},Z3(),e)}function J3(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Q3(typeof t!="number"?t:J3(t,td))};function hY(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,u=Jo(n.placement),c=fw(u),f=[cr,ro].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!s)){var h=pY(o.padding,n),m=cw(i),v=c==="y"?ur:cr,y=c==="y"?no:ro,S=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],k=s[c]-n.rects.reference[c],x=nd(i),b=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,w=S/2-k/2,P=h[v],O=b-m[p]-h[y],M=b/2-m[p]/2+w,N=jc(P,M,O),V=c;n.modifiersData[r]=(t={},t[V]=N,t.centerOffset=N-M,t)}}function mY(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!X3(t.elements.popper,o)||(t.elements.arrow=o))}const gY={name:"arrow",enabled:!0,phase:"main",fn:hY,effect:mY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pu(e){return e.split("-")[1]}var vY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:fu(t*o)/o||0,y:fu(n*o)/o||0}}function iP(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,y=s.y,S=y===void 0?0:y,k=typeof p=="function"?p({x:v,y:S}):{x:v,y:S};v=k.x,S=k.y;var x=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),w=cr,P=ur,O=window;if(f){var M=nd(n),N="clientHeight",V="clientWidth";if(M===oo(n)&&(M=qa(n),zi(M).position!=="static"&&u==="absolute"&&(N="scrollHeight",V="scrollWidth")),M=M,o===ur||(o===cr||o===ro)&&i===Tf){P=no;var K=h&&M===O&&O.visualViewport?O.visualViewport.height:M[N];S-=K-r.height,S*=c?1:-1}if(o===cr||(o===ur||o===no)&&i===Tf){w=ro;var W=h&&M===O&&O.visualViewport?O.visualViewport.width:M[V];v-=W-r.width,v*=c?1:-1}}var te=Object.assign({position:u},f&&vY),xe=p===!0?yY({x:v,y:S}):{x:v,y:S};if(v=xe.x,S=xe.y,c){var fe;return Object.assign({},te,(fe={},fe[P]=b?"0":"",fe[w]=x?"0":"",fe.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",fe))}return Object.assign({},te,(t={},t[P]=b?S+"px":"",t[w]=x?v+"px":"",t.transform="",t))}function bY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:Jo(t.placement),variation:pu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,iP(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,iP(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const SY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bY,data:{}};var Vp={passive:!0};function xY(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,u=s===void 0?!0:s,c=oo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Vp)}),u&&c.addEventListener("resize",n.update,Vp),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Vp)}),u&&c.removeEventListener("resize",n.update,Vp)}}const wY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xY,data:{}};var _Y={left:"right",right:"left",bottom:"top",top:"bottom"};function xh(e){return e.replace(/left|right|bottom|top/g,function(t){return _Y[t]})}var CY={start:"end",end:"start"};function aP(e){return e.replace(/start|end/g,function(t){return CY[t]})}function dw(e){var t=oo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pw(e){return du(qa(e)).left+dw(e).scrollLeft}function kY(e,t){var n=oo(e),r=qa(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,u=0,c=0;if(o){i=o.width,s=o.height;var f=Y3();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:u+pw(e),y:c}}function EY(e){var t,n=qa(e),r=dw(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ps(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ps(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+pw(e),c=-r.scrollTop;return zi(o||n).direction==="rtl"&&(u+=Ps(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:u,y:c}}function hw(e){var t=zi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function e5(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:Jr(e)&&hw(e)?e:e5(Hg(e))}function Uc(e,t){var n;t===void 0&&(t=[]);var r=e5(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=oo(r),s=o?[i].concat(i.visualViewport||[],hw(r)?r:[]):r,u=t.concat(s);return o?u:u.concat(Uc(Hg(s)))}function Mb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PY(e,t){var n=du(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function sP(e,t,n){return t===q3?Mb(kY(e,n)):Ns(t)?PY(t,n):Mb(EY(qa(e)))}function AY(e){var t=Uc(Hg(e)),n=["absolute","fixed"].indexOf(zi(e).position)>=0,r=n&&Jr(e)?nd(e):e;return Ns(r)?t.filter(function(o){return Ns(o)&&X3(o,r)&&ii(o)!=="body"}):[]}function TY(e,t,n,r){var o=t==="clippingParents"?AY(e):[].concat(t),i=[].concat(o,[n]),s=i[0],u=i.reduce(function(c,f){var p=sP(e,f,r);return c.top=Ps(p.top,c.top),c.right=Cm(p.right,c.right),c.bottom=Cm(p.bottom,c.bottom),c.left=Ps(p.left,c.left),c},sP(e,s,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function t5(e){var t=e.reference,n=e.element,r=e.placement,o=r?Jo(r):null,i=r?pu(r):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case ur:c={x:s,y:t.y-n.height};break;case no:c={x:s,y:t.y+t.height};break;case ro:c={x:t.x+t.width,y:u};break;case cr:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?fw(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case cu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Tf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Of(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,u=n.boundary,c=u===void 0?YK:u,f=n.rootBoundary,p=f===void 0?q3:f,h=n.elementContext,m=h===void 0?pc:h,v=n.altBoundary,y=v===void 0?!1:v,S=n.padding,k=S===void 0?0:S,x=Q3(typeof k!="number"?k:J3(k,td)),b=m===pc?XK:pc,w=e.rects.popper,P=e.elements[y?b:m],O=TY(Ns(P)?P:P.contextElement||qa(e.elements.popper),c,p,s),M=du(e.elements.reference),N=t5({reference:M,element:w,strategy:"absolute",placement:o}),V=Mb(Object.assign({},w,N)),K=m===pc?V:M,W={top:O.top-K.top+x.top,bottom:K.bottom-O.bottom+x.bottom,left:O.left-K.left+x.left,right:K.right-O.right+x.right},te=e.modifiersData.offset;if(m===pc&&te){var xe=te[o];Object.keys(W).forEach(function(fe){var we=[ro,no].indexOf(fe)>=0?1:-1,Ce=[ur,no].indexOf(fe)>=0?"y":"x";W[fe]+=xe[Ce]*we})}return W}function OY(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?K3:c,p=pu(r),h=p?u?rP:rP.filter(function(y){return pu(y)===p}):td,m=h.filter(function(y){return f.indexOf(y)>=0});m.length===0&&(m=h);var v=m.reduce(function(y,S){return y[S]=Of(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[Jo(S)],y},{});return Object.keys(v).sort(function(y,S){return v[y]-v[S]})}function IY(e){if(Jo(e)===lw)return[];var t=xh(e);return[aP(e),t,aP(t)]}function RY(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,S=n.allowedAutoPlacements,k=t.options.placement,x=Jo(k),b=x===k,w=c||(b||!y?[xh(k)]:IY(k)),P=[k].concat(w).reduce(function(se,he){return se.concat(Jo(he)===lw?OY(t,{placement:he,boundary:p,rootBoundary:h,padding:f,flipVariations:y,allowedAutoPlacements:S}):he)},[]),O=t.rects.reference,M=t.rects.popper,N=new Map,V=!0,K=P[0],W=0;W=0,Ce=we?"width":"height",ve=Of(t,{placement:te,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),Pe=we?fe?ro:cr:fe?no:ur;O[Ce]>M[Ce]&&(Pe=xh(Pe));var j=xh(Pe),X=[];if(i&&X.push(ve[xe]<=0),u&&X.push(ve[Pe]<=0,ve[j]<=0),X.every(function(se){return se})){K=te,V=!1;break}N.set(te,X)}if(V)for(var q=y?3:1,R=function(he){var ge=P.find(function(Ee){var ce=N.get(Ee);if(ce)return ce.slice(0,he).every(function(Ae){return Ae})});if(ge)return K=ge,"break"},H=q;H>0;H--){var ae=R(H);if(ae==="break")break}t.placement!==K&&(t.modifiersData[r]._skip=!0,t.placement=K,t.reset=!0)}}const DY={name:"flip",enabled:!0,phase:"main",fn:RY,requiresIfExists:["offset"],data:{_skip:!1}};function lP(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function uP(e){return[ur,ro,no,cr].some(function(t){return e[t]>=0})}function MY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Of(t,{elementContext:"reference"}),u=Of(t,{altBoundary:!0}),c=lP(s,r),f=lP(u,o,i),p=uP(c),h=uP(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const NY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MY};function FY(e,t,n){var r=Jo(e),o=[cr,ur].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],u=i[1];return s=s||0,u=(u||0)*o,[cr,ro].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function LY(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=K3.reduce(function(p,h){return p[h]=FY(h,t.rects,i),p},{}),u=s[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const $Y={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LY};function BY(e){var t=e.state,n=e.name;t.modifiersData[n]=t5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const zY={name:"popperOffsets",enabled:!0,phase:"read",fn:BY,data:{}};function VY(e){return e==="x"?"y":"x"}function WY(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,y=n.tetherOffset,S=y===void 0?0:y,k=Of(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),x=Jo(t.placement),b=pu(t.placement),w=!b,P=fw(x),O=VY(P),M=t.modifiersData.popperOffsets,N=t.rects.reference,V=t.rects.popper,K=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,W=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),te=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,xe={x:0,y:0};if(!!M){if(i){var fe,we=P==="y"?ur:cr,Ce=P==="y"?no:ro,ve=P==="y"?"height":"width",Pe=M[P],j=Pe+k[we],X=Pe-k[Ce],q=v?-V[ve]/2:0,R=b===cu?N[ve]:V[ve],H=b===cu?-V[ve]:-N[ve],ae=t.elements.arrow,se=v&&ae?cw(ae):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Z3(),ge=he[we],Ee=he[Ce],ce=jc(0,N[ve],se[ve]),Ae=w?N[ve]/2-q-ce-ge-W.mainAxis:R-ce-ge-W.mainAxis,Me=w?-N[ve]/2+q+ce+Ee+W.mainAxis:H+ce+Ee+W.mainAxis,mt=t.elements.arrow&&nd(t.elements.arrow),Dt=mt?P==="y"?mt.clientTop||0:mt.clientLeft||0:0,En=(fe=te?.[P])!=null?fe:0,ye=Pe+Ae-En-Dt,Mt=Pe+Me-En,Qt=jc(v?Cm(j,ye):j,Pe,v?Ps(X,Mt):X);M[P]=Qt,xe[P]=Qt-Pe}if(u){var it,hr=P==="x"?ur:cr,mr=P==="x"?no:ro,St=M[O],Ct=O==="y"?"height":"width",Jt=St+k[hr],zt=St-k[mr],le=[ur,cr].indexOf(x)!==-1,_e=(it=te?.[O])!=null?it:0,at=le?Jt:St-N[Ct]-V[Ct]-_e+W.altAxis,nt=le?St+N[Ct]+V[Ct]-_e-W.altAxis:zt,ne=v&&le?dY(at,St,nt):jc(v?at:Jt,St,v?nt:zt);M[O]=ne,xe[O]=ne-St}t.modifiersData[r]=xe}}const jY={name:"preventOverflow",enabled:!0,phase:"main",fn:WY,requiresIfExists:["offset"]};function UY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function HY(e){return e===oo(e)||!Jr(e)?dw(e):UY(e)}function GY(e){var t=e.getBoundingClientRect(),n=fu(t.width)/e.offsetWidth||1,r=fu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function qY(e,t,n){n===void 0&&(n=!1);var r=Jr(t),o=Jr(t)&&GY(t),i=qa(t),s=du(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ii(t)!=="body"||hw(i))&&(u=HY(t)),Jr(t)?(c=du(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=pw(i))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function KY(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function YY(e){var t=KY(e);return aY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function XY(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ZY(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var cP={placement:"bottom",modifiers:[],strategy:"absolute"};function fP(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),xn={arrowShadowColor:gl("--popper-arrow-shadow-color"),arrowSize:gl("--popper-arrow-size","8px"),arrowSizeHalf:gl("--popper-arrow-size-half"),arrowBg:gl("--popper-arrow-bg"),transformOrigin:gl("--popper-transform-origin"),arrowOffset:gl("--popper-arrow-offset")};function tX(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var nX={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},rX=e=>nX[e],dP={scroll:!0,resize:!0};function oX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...dP,...e}}:t={enabled:e,options:dP},t}var iX={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},aX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{pP(e)},effect:({state:e})=>()=>{pP(e)}},pP=e=>{e.elements.popper.style.setProperty(xn.transformOrigin.var,rX(e.placement))},sX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{lX(e)}},lX=e=>{var t;if(!e.placement)return;const n=uX(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:xn.arrowSize.varRef,height:xn.arrowSize.varRef,zIndex:-1});const r={[xn.arrowSizeHalf.var]:`calc(${xn.arrowSize.varRef} / 2)`,[xn.arrowOffset.var]:`calc(${xn.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},uX=e=>{if(e.startsWith("top"))return{property:"bottom",value:xn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:xn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:xn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:xn.arrowOffset.varRef}},cX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{hP(e)},effect:({state:e})=>()=>{hP(e)}},hP=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");!t||Object.assign(t.style,{transform:"rotate(45deg)",background:xn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:tX(e.placement)})},fX={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},dX={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function pX(e,t="ltr"){var n;const r=((n=fX[e])==null?void 0:n[t])||e;return t==="ltr"?r:dX[e]??r}function hX(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:s=!0,offset:u,gutter:c=8,flip:f=!0,boundary:p="clippingParents",preventOverflow:h=!0,matchWidth:m,direction:v="ltr"}=e,y=_.exports.useRef(null),S=_.exports.useRef(null),k=_.exports.useRef(null),x=pX(r,v),b=_.exports.useRef(()=>{}),w=_.exports.useCallback(()=>{var W;!t||!y.current||!S.current||((W=b.current)==null||W.call(b),k.current=eX(y.current,S.current,{placement:x,modifiers:[cX,sX,aX,{...iX,enabled:!!m},{name:"eventListeners",...oX(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:u??[0,c]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:p}},...n??[]],strategy:o}),k.current.forceUpdate(),b.current=k.current.destroy)},[x,t,n,m,s,i,u,c,f,h,p,o]);_.exports.useEffect(()=>()=>{var W;!y.current&&!S.current&&((W=k.current)==null||W.destroy(),k.current=null)},[]);const P=_.exports.useCallback(W=>{y.current=W,w()},[w]),O=_.exports.useCallback((W={},te=null)=>({...W,ref:Kn(P,te)}),[P]),M=_.exports.useCallback(W=>{S.current=W,w()},[w]),N=_.exports.useCallback((W={},te=null)=>({...W,ref:Kn(M,te),style:{...W.style,position:o,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[o,M,m]),V=_.exports.useCallback((W={},te=null)=>{const{size:xe,shadowColor:fe,bg:we,style:Ce,...ve}=W;return{...ve,ref:te,"data-popper-arrow":"",style:mX(W)}},[]),K=_.exports.useCallback((W={},te=null)=>({...W,ref:te,"data-popper-arrow-inner":""}),[]);return{update(){var W;(W=k.current)==null||W.update()},forceUpdate(){var W;(W=k.current)==null||W.forceUpdate()},transformOrigin:xn.transformOrigin.varRef,referenceRef:P,popperRef:M,getPopperProps:N,getArrowProps:V,getArrowInnerProps:K,getReferenceProps:O}}function mX(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}function gX(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Nn(n),s=Nn(t),[u,c]=_.exports.useState(e.defaultIsOpen||!1),f=r!==void 0?r:u,p=r!==void 0,h=o??`disclosure-${_.exports.useId()}`,m=_.exports.useCallback(()=>{p||c(!1),s?.()},[p,s]),v=_.exports.useCallback(()=>{p||c(!0),i?.()},[p,i]),y=_.exports.useCallback(()=>{f?m():v()},[f,v,m]);function S(x={}){return{...x,"aria-expanded":f,"aria-controls":h,onClick(b){var w;(w=x.onClick)==null||w.call(x,b),y()}}}function k(x={}){return{...x,hidden:!f,id:h}}return{isOpen:f,onOpen:v,onClose:m,onToggle:y,isControlled:p,getButtonProps:S,getDisclosureProps:k}}var[vX,yX]=Xt({strict:!1,name:"PortalManagerContext"});function n5(e){const{children:t,zIndex:n}=e;return E(vX,{value:{zIndex:n},children:t})}n5.displayName="PortalManager";var[r5,bX]=Xt({strict:!1,name:"PortalContext"}),mw="chakra-portal",SX=".chakra-portal",xX=e=>E("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),wX=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=_.exports.useState(null),i=_.exports.useRef(null),[,s]=_.exports.useState({});_.exports.useEffect(()=>s({}),[]);const u=bX(),c=yX();Mi(()=>{if(!r)return;const p=r.ownerDocument,h=t?u??p.body:p.body;if(!h)return;i.current=p.createElement("div"),i.current.className=mw,h.appendChild(i.current),s({});const m=i.current;return()=>{h.contains(m)&&h.removeChild(m)}},[r]);const f=c?.zIndex?E(xX,{zIndex:c?.zIndex,children:n}):n;return i.current?Vf.exports.createPortal(E(r5,{value:i.current,children:f}),i.current):E("span",{ref:p=>{p&&o(p)}})},_X=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=_.exports.useMemo(()=>{const c=o?.ownerDocument.createElement("div");return c&&(c.className=mw),c},[o]),[,u]=_.exports.useState({});return Mi(()=>u({}),[]),Mi(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Vf.exports.createPortal(E(r5,{value:r?s:null,children:t}),s):null};function Vs(e){const{containerRef:t,...n}=e;return t?E(_X,{containerRef:t,...n}):E(wX,{...n})}Vs.defaultProps={appendToParentPortal:!0};Vs.className=mw;Vs.selector=SX;Vs.displayName="Portal";var CX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vl=new WeakMap,Wp=new WeakMap,jp={},Ry=0,kX=function(e,t,n,r){var o=Array.isArray(e)?e:[e];jp[n]||(jp[n]=new WeakMap);var i=jp[n],s=[],u=new Set,c=new Set(o),f=function(h){!h||u.has(h)||(u.add(h),f(h.parentNode))};o.forEach(f);var p=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(u.has(m))p(m);else{var v=m.getAttribute(r),y=v!==null&&v!=="false",S=(vl.get(m)||0)+1,k=(i.get(m)||0)+1;vl.set(m,S),i.set(m,k),s.push(m),S===1&&y&&Wp.set(m,!0),k===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}})};return p(t),u.clear(),Ry++,function(){s.forEach(function(h){var m=vl.get(h)-1,v=i.get(h)-1;vl.set(h,m),i.set(h,v),m||(Wp.has(h)||h.removeAttribute(r),Wp.delete(h)),v||h.removeAttribute(n)}),Ry--,Ry||(vl=new WeakMap,vl=new WeakMap,Wp=new WeakMap,jp={})}},EX=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||CX(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),kX(r,o,n,"aria-hidden")):function(){return null}};function PX(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var ht={exports:{}},AX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",TX=AX,OX=TX;function o5(){}function i5(){}i5.resetWarningCache=o5;var IX=function(){function e(r,o,i,s,u,c){if(c!==OX){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i5,resetWarningCache:o5};return n.PropTypes=n,n};ht.exports=IX();var Nb="data-focus-lock",a5="data-focus-lock-disabled",RX="data-no-focus-lock",DX="data-autofocus-inside",MX="data-no-autofocus";function NX(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function FX(e,t){var n=_.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function s5(e,t){return FX(t||null,function(n){return e.forEach(function(r){return NX(r,n)})})}var Dy={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function l5(e){return e}function u5(e,t){t===void 0&&(t=l5);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(u){return u!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var u=n;n=[],u.forEach(i),s=n}var c=function(){var p=s;s=[],p.forEach(i)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(p){s.push(p),f()},filter:function(p){return s=s.filter(p),n}}}};return o}function gw(e,t){return t===void 0&&(t=l5),u5(e,t)}function c5(e){e===void 0&&(e={});var t=u5(null);return t.options=Uo({async:!0,ssr:!1},e),t}var f5=function(e){var t=e.sideCar,n=Ig(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return E(r,{...Uo({},n)})};f5.isSideCarExport=!0;function LX(e,t){return e.useMedium(t),f5}var d5=gw({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),p5=gw(),$X=gw(),BX=c5({async:!0}),zX=[],vw=_.exports.forwardRef(function(t,n){var r,o=_.exports.useState(),i=o[0],s=o[1],u=_.exports.useRef(),c=_.exports.useRef(!1),f=_.exports.useRef(null),p=t.children,h=t.disabled,m=t.noFocusGuards,v=t.persistentFocus,y=t.crossFrame,S=t.autoFocus;t.allowTextSelection;var k=t.group,x=t.className,b=t.whiteList,w=t.hasPositiveIndices,P=t.shards,O=P===void 0?zX:P,M=t.as,N=M===void 0?"div":M,V=t.lockProps,K=V===void 0?{}:V,W=t.sideCar,te=t.returnFocus,xe=t.focusOptions,fe=t.onActivation,we=t.onDeactivation,Ce=_.exports.useState({}),ve=Ce[0],Pe=_.exports.useCallback(function(){f.current=f.current||document&&document.activeElement,u.current&&fe&&fe(u.current),c.current=!0},[fe]),j=_.exports.useCallback(function(){c.current=!1,we&&we(u.current)},[we]);_.exports.useEffect(function(){h||(f.current=null)},[]);var X=_.exports.useCallback(function(Ee){var ce=f.current;if(ce&&ce.focus){var Ae=typeof te=="function"?te(ce):te;if(Ae){var Me=typeof Ae=="object"?Ae:void 0;f.current=null,Ee?Promise.resolve().then(function(){return ce.focus(Me)}):ce.focus(Me)}}},[te]),q=_.exports.useCallback(function(Ee){c.current&&d5.useMedium(Ee)},[]),R=p5.useMedium,H=_.exports.useCallback(function(Ee){u.current!==Ee&&(u.current=Ee,s(Ee))},[]),ae=gf((r={},r[a5]=h&&"disabled",r[Nb]=k,r),K),se=m!==!0,he=se&&m!=="tail",ge=s5([n,H]);return ue(fr,{children:[se&&[E("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:Dy},"guard-first"),w?E("div",{"data-focus-guard":!0,tabIndex:h?-1:1,style:Dy},"guard-nearest"):null],!h&&E(W,{id:ve,sideCar:BX,observed:i,disabled:h,persistentFocus:v,crossFrame:y,autoFocus:S,whiteList:b,shards:O,onActivation:Pe,onDeactivation:j,returnFocus:X,focusOptions:xe}),E(N,{ref:ge,...ae,className:x,onBlur:R,onFocus:q,children:p}),he&&E("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:Dy})]})});vw.propTypes={};vw.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const h5=vw;function Fb(e,t){return Fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Fb(e,t)}function VX(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fb(e,t)}function m5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WX(e,t){function n(r){return r.displayName||r.name||"Component"}return function(o){var i=[],s;function u(){s=e(i.map(function(f){return f.props})),t(s)}var c=function(f){VX(p,f);function p(){return f.apply(this,arguments)||this}p.peek=function(){return s};var h=p.prototype;return h.componentDidMount=function(){i.push(this),u()},h.componentDidUpdate=function(){u()},h.componentWillUnmount=function(){var v=i.indexOf(this);i.splice(v,1),u()},h.render=function(){return E(o,{...this.props})},p}(_.exports.PureComponent);return m5(c,"displayName","SideEffect("+n(o)+")"),c}}var si=function(e){for(var t=Array(e.length),n=0;n=0}).sort(XX)},ZX=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],bw=ZX.join(","),QX="".concat(bw,", [data-focus-guard]"),C5=function(e,t){var n;return si(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(r,o){return r.concat(o.matches(t?QX:bw)?[o]:[],C5(o))},[])},Sw=function(e,t){return e.reduce(function(n,r){return n.concat(C5(r,t),r.parentNode?si(r.parentNode.querySelectorAll(bw)).filter(function(o){return o===r}):[])},[])},JX=function(e){var t=e.querySelectorAll("[".concat(DX,"]"));return si(t).map(function(n){return Sw([n])}).reduce(function(n,r){return n.concat(r)},[])},xw=function(e,t){return si(e).filter(function(n){return y5(t,n)}).filter(function(n){return qX(n)})},mP=function(e,t){return t===void 0&&(t=new Map),si(e).filter(function(n){return b5(t,n)})},$b=function(e,t,n){return _5(xw(Sw(e,n),t),!0,n)},gP=function(e,t){return _5(xw(Sw(e),t),!1)},eZ=function(e,t){return xw(JX(e),t)},If=function(e,t){return(e.shadowRoot?If(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||si(e.children).some(function(n){return If(n,t)})},tZ=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,u){return!t.has(u)})},k5=function(e){return e.parentNode?k5(e.parentNode):e},ww=function(e){var t=Lb(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(Nb);return n.push.apply(n,o?tZ(si(k5(r).querySelectorAll("[".concat(Nb,'="').concat(o,'"]:not([').concat(a5,'="disabled"])')))):[r]),n},[])},E5=function(e){return e.activeElement?e.activeElement.shadowRoot?E5(e.activeElement.shadowRoot):e.activeElement:void 0},_w=function(){return document.activeElement?document.activeElement.shadowRoot?E5(document.activeElement.shadowRoot):document.activeElement:void 0},nZ=function(e){return e===document.activeElement},rZ=function(e){return Boolean(si(e.querySelectorAll("iframe")).some(function(t){return nZ(t)}))},P5=function(e){var t=document&&_w();return!t||t.dataset&&t.dataset.focusGuard?!1:ww(e).some(function(n){return If(n,t)||rZ(n)})},oZ=function(){var e=document&&_w();return e?si(document.querySelectorAll("[".concat(RX,"]"))).some(function(t){return If(t,e)}):!1},iZ=function(e,t){return t.filter(w5).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Cw=function(e,t){return w5(e)&&e.name?iZ(e,t):e},aZ=function(e){var t=new Set;return e.forEach(function(n){return t.add(Cw(n,e))}),e.filter(function(n){return t.has(n)})},vP=function(e){return e[0]&&e.length>1?Cw(e[0],e):e[0]},yP=function(e,t){return e.length>1?e.indexOf(Cw(e[t],e)):t},A5="NEW_FOCUS",sZ=function(e,t,n,r){var o=e.length,i=e[0],s=e[o-1],u=yw(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?t.indexOf(n):-1,f=r?t.indexOf(r):c,p=r?e.indexOf(r):-1,h=c-f,m=t.indexOf(i),v=t.indexOf(s),y=aZ(t),S=n!==void 0?y.indexOf(n):-1,k=S-(r?y.indexOf(r):c),x=yP(e,0),b=yP(e,o-1);if(c===-1||p===-1)return A5;if(!h&&p>=0)return p;if(c<=m&&u&&Math.abs(h)>1)return b;if(c>=v&&u&&Math.abs(h)>1)return x;if(h&&Math.abs(k)>1)return p;if(c<=m)return b;if(c>v)return x;if(h)return Math.abs(h)>1?p:(o+p+h)%o}},Bb=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Bb(e.parentNode.host||e.parentNode,t),t},My=function(e,t){for(var n=Bb(e),r=Bb(t),o=0;o=0)return i}return!1},T5=function(e,t,n){var r=Lb(e),o=Lb(t),i=r[0],s=!1;return o.filter(Boolean).forEach(function(u){s=My(s||u,u)||s,n.filter(Boolean).forEach(function(c){var f=My(i,c);f&&(!s||If(f,s)?s=f:s=My(f,s))})}),s},lZ=function(e,t){return e.reduce(function(n,r){return n.concat(eZ(r,t))},[])},uZ=function(e){return function(t){var n;return t.autofocus||!!(!((n=S5(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},cZ=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(YX)},fZ=function(e,t){var n=document&&_w(),r=ww(e).filter(km),o=T5(n||e,e,r),i=new Map,s=gP(r,i),u=$b(r,i).filter(function(v){var y=v.node;return km(y)});if(!(!u[0]&&(u=s,!u[0]))){var c=gP([o],i).map(function(v){var y=v.node;return y}),f=cZ(c,u),p=f.map(function(v){var y=v.node;return y}),h=sZ(p,c,n,t);if(h===A5){var m=mP(s.map(function(v){var y=v.node;return y})).filter(uZ(lZ(r,i)));return{node:m&&m.length?vP(m):vP(mP(p))}}return h===void 0?h:f[h]}},dZ=function(e){var t=ww(e).filter(km),n=T5(e,e,t),r=new Map,o=$b([n],r,!0),i=$b(t,r).filter(function(s){var u=s.node;return km(u)}).map(function(s){var u=s.node;return u});return o.map(function(s){var u=s.node,c=s.index;return{node:u,index:c,lockItem:i.indexOf(u)>=0,guard:yw(u)}})},pZ=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},Ny=0,Fy=!1,hZ=function(e,t,n){n===void 0&&(n={});var r=fZ(e,t);if(!Fy&&r){if(Ny>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Fy=!0,setTimeout(function(){Fy=!1},1);return}Ny++,pZ(r.node,n.focusOptions),Ny--}};const O5=hZ;function I5(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var mZ=function(){return document&&document.activeElement===document.body},gZ=function(){return mZ()||oZ()},Yl=null,$l=null,Xl=null,Rf=!1,vZ=function(){return!0},yZ=function(t){return(Yl.whiteList||vZ)(t)},bZ=function(t,n){Xl={observerNode:t,portaledElement:n}},SZ=function(t){return Xl&&Xl.portaledElement===t};function bP(e,t,n,r){var o=null,i=e;do{var s=r[i];if(s.guard)s.node.dataset.focusAutoGuard&&(o=s);else if(s.lockItem){if(i!==e)return;o=null}else break}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var xZ=function(t){return t&&"current"in t?t.current:t},wZ=function(t){return t?Boolean(Rf):Rf==="meanwhile"},_Z=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},CZ=function(t,n){return n.some(function(r){return _Z(t,r,r)})},Em=function(){var t=!1;if(Yl){var n=Yl,r=n.observed,o=n.persistentFocus,i=n.autoFocus,s=n.shards,u=n.crossFrame,c=n.focusOptions,f=r||Xl&&Xl.portaledElement,p=document&&document.activeElement;if(f){var h=[f].concat(s.map(xZ).filter(Boolean));if((!p||yZ(p))&&(o||wZ(u)||!gZ()||!$l&&i)&&(f&&!(P5(h)||p&&CZ(p,h)||SZ(p))&&(document&&!$l&&p&&!i?(p.blur&&p.blur(),document.body.focus()):(t=O5(h,$l,{focusOptions:c}),Xl={})),Rf=!1,$l=document&&document.activeElement),document){var m=document&&document.activeElement,v=dZ(h),y=v.map(function(S){var k=S.node;return k}).indexOf(m);y>-1&&(v.filter(function(S){var k=S.guard,x=S.node;return k&&x.dataset.focusAutoGuard}).forEach(function(S){var k=S.node;return k.removeAttribute("tabIndex")}),bP(y,v.length,1,v),bP(y,-1,-1,v))}}}return t},R5=function(t){Em()&&t&&(t.stopPropagation(),t.preventDefault())},kw=function(){return I5(Em)},kZ=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||bZ(r,n)},EZ=function(){return null},D5=function(){Rf="just",setTimeout(function(){Rf="meanwhile"},0)},PZ=function(){document.addEventListener("focusin",R5),document.addEventListener("focusout",kw),window.addEventListener("blur",D5)},AZ=function(){document.removeEventListener("focusin",R5),document.removeEventListener("focusout",kw),window.removeEventListener("blur",D5)};function TZ(e){return e.filter(function(t){var n=t.disabled;return!n})}function OZ(e){var t=e.slice(-1)[0];t&&!Yl&&PZ();var n=Yl,r=n&&t&&t.id===n.id;Yl=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?($l=null,(!r||n.observed!==t.observed)&&t.onActivation(),Em(),I5(Em)):(AZ(),$l=null)}d5.assignSyncMedium(kZ);p5.assignMedium(kw);$X.assignMedium(function(e){return e({moveFocusInside:O5,focusInside:P5})});const IZ=WX(TZ,OZ)(EZ);var M5=_.exports.forwardRef(function(t,n){return E(h5,{sideCar:IZ,ref:n,...t})}),N5=h5.propTypes||{};N5.sideCar;PX(N5,["sideCar"]);M5.propTypes={};const RZ=M5;var F5=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:f}=e,p=_.exports.useCallback(()=>{t?.current?t.current.focus():r?.current&&KK(r.current).length===0&&requestAnimationFrame(()=>{var y;(y=r.current)==null||y.focus()})},[t,r]),h=_.exports.useCallback(()=>{var v;(v=n?.current)==null||v.focus()},[n]);return E(RZ,{crossFrame:f,persistentFocus:c,autoFocus:u,disabled:s,onActivation:p,onDeactivation:h,returnFocus:o&&!n,children:i})};F5.displayName="FocusLock";var wh="right-scroll-bar-position",_h="width-before-scroll-bar",DZ="with-scroll-bars-hidden",MZ="--removed-body-scroll-bar-size",L5=c5(),Ly=function(){},Gg=_.exports.forwardRef(function(e,t){var n=_.exports.useRef(null),r=_.exports.useState({onScrollCapture:Ly,onWheelCapture:Ly,onTouchMoveCapture:Ly}),o=r[0],i=r[1],s=e.forwardProps,u=e.children,c=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,v=e.noIsolation,y=e.inert,S=e.allowPinchZoom,k=e.as,x=k===void 0?"div":k,b=Ig(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,P=s5([n,t]),O=Uo(Uo({},b),o);return ue(fr,{children:[p&&E(w,{sideCar:L5,removeScrollBar:f,shards:h,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!S,lockRef:n}),s?_.exports.cloneElement(_.exports.Children.only(u),Uo(Uo({},O),{ref:P})):E(x,{...Uo({},O,{className:c,ref:P}),children:u})]})});Gg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gg.classNames={fullWidth:_h,zeroRight:wh};var NZ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FZ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=NZ();return t&&e.setAttribute("nonce",t),e}function LZ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $Z(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var BZ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=FZ())&&(LZ(t,n),$Z(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zZ=function(){var e=BZ();return function(t,n){_.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$5=function(){var e=zZ(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},VZ={left:0,top:0,right:0,gap:0},$y=function(e){return parseInt(e||"",10)||0},WZ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[$y(n),$y(r),$y(o)]},jZ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return VZ;var t=WZ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},UZ=$5(),HZ=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,u=e.gap;return n===void 0&&(n="margin"),` - .`.concat(DZ,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(u,"px ").concat(r,`; - } - body { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(u,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(wh,` { - right: `).concat(u,"px ").concat(r,`; - } - - .`).concat(_h,` { - margin-right: `).concat(u,"px ").concat(r,`; - } - - .`).concat(wh," .").concat(wh,` { - right: 0 `).concat(r,`; - } - - .`).concat(_h," .").concat(_h,` { - margin-right: 0 `).concat(r,`; - } - - body { - `).concat(MZ,": ").concat(u,`px; - } -`)},GZ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=_.exports.useMemo(function(){return jZ(o)},[o]);return E(UZ,{styles:HZ(i,!t,o,n?"":"!important")})},zb=!1;if(typeof window<"u")try{var Up=Object.defineProperty({},"passive",{get:function(){return zb=!0,!0}});window.addEventListener("test",Up,Up),window.removeEventListener("test",Up,Up)}catch{zb=!1}var yl=zb?{passive:!1}:!1,qZ=function(e){return e.tagName==="TEXTAREA"},B5=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qZ(e)&&n[t]==="visible")},KZ=function(e){return B5(e,"overflowY")},YZ=function(e){return B5(e,"overflowX")},SP=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=z5(e,n);if(r){var o=V5(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},XZ=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ZZ=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},z5=function(e,t){return e==="v"?KZ(t):YZ(t)},V5=function(e,t){return e==="v"?XZ(t):ZZ(t)},QZ=function(e,t){return e==="h"&&t==="rtl"?-1:1},JZ=function(e,t,n,r,o){var i=QZ(e,window.getComputedStyle(t).direction),s=i*r,u=n.target,c=t.contains(u),f=!1,p=s>0,h=0,m=0;do{var v=V5(e,u),y=v[0],S=v[1],k=v[2],x=S-k-i*y;(y||x)&&z5(e,u)&&(h+=x,m+=y),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(p&&(o&&h===0||!o&&s>h)||!p&&(o&&m===0||!o&&-s>m))&&(f=!0),f},Hp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xP=function(e){return[e.deltaX,e.deltaY]},wP=function(e){return e&&"current"in e?e.current:e},eQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tQ=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},nQ=0,bl=[];function rQ(e){var t=_.exports.useRef([]),n=_.exports.useRef([0,0]),r=_.exports.useRef(),o=_.exports.useState(nQ++)[0],i=_.exports.useState(function(){return $5()})[0],s=_.exports.useRef(e);_.exports.useEffect(function(){s.current=e},[e]),_.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=ub([e.lockRef.current],(e.shards||[]).map(wP),!0).filter(Boolean);return S.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=_.exports.useCallback(function(S,k){if("touches"in S&&S.touches.length===2)return!s.current.allowPinchZoom;var x=Hp(S),b=n.current,w="deltaX"in S?S.deltaX:b[0]-x[0],P="deltaY"in S?S.deltaY:b[1]-x[1],O,M=S.target,N=Math.abs(w)>Math.abs(P)?"h":"v";if("touches"in S&&N==="h"&&M.type==="range")return!1;var V=SP(N,M);if(!V)return!0;if(V?O=N:(O=N==="v"?"h":"v",V=SP(N,M)),!V)return!1;if(!r.current&&"changedTouches"in S&&(w||P)&&(r.current=O),!O)return!0;var K=r.current||O;return JZ(K,k,S,K==="h"?w:P,!0)},[]),c=_.exports.useCallback(function(S){var k=S;if(!(!bl.length||bl[bl.length-1]!==i)){var x="deltaY"in k?xP(k):Hp(k),b=t.current.filter(function(O){return O.name===k.type&&O.target===k.target&&eQ(O.delta,x)})[0];if(b&&b.should){k.cancelable&&k.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(wP).filter(Boolean).filter(function(O){return O.contains(k.target)}),P=w.length>0?u(k,w[0]):!s.current.noIsolation;P&&k.cancelable&&k.preventDefault()}}},[]),f=_.exports.useCallback(function(S,k,x,b){var w={name:S,delta:k,target:x,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(P){return P!==w})},1)},[]),p=_.exports.useCallback(function(S){n.current=Hp(S),r.current=void 0},[]),h=_.exports.useCallback(function(S){f(S.type,xP(S),S.target,u(S,e.lockRef.current))},[]),m=_.exports.useCallback(function(S){f(S.type,Hp(S),S.target,u(S,e.lockRef.current))},[]);_.exports.useEffect(function(){return bl.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,yl),document.addEventListener("touchmove",c,yl),document.addEventListener("touchstart",p,yl),function(){bl=bl.filter(function(S){return S!==i}),document.removeEventListener("wheel",c,yl),document.removeEventListener("touchmove",c,yl),document.removeEventListener("touchstart",p,yl)}},[]);var v=e.removeScrollBar,y=e.inert;return ue(fr,{children:[y?E(i,{styles:tQ(o)}):null,v?E(GZ,{gapMode:"margin"}):null]})}const oQ=LX(L5,rQ);var W5=_.exports.forwardRef(function(e,t){return E(Gg,{...Uo({},e,{ref:t,sideCar:oQ})})});W5.classNames=Gg.classNames;const iQ=W5;var Ws=(...e)=>e.filter(Boolean).join(" ");function wc(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var aQ=class{modals;constructor(){this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},Vb=new aQ;function sQ(e,t){_.exports.useEffect(()=>(t&&Vb.add(e),()=>{Vb.remove(e)}),[t,e])}function lQ(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:u,onEsc:c}=e,f=_.exports.useRef(null),p=_.exports.useRef(null),[h,m,v]=cQ(r,"chakra-modal","chakra-modal--header","chakra-modal--body");uQ(f,t&&s),sQ(f,t);const y=_.exports.useRef(null),S=_.exports.useCallback(V=>{y.current=V.target},[]),k=_.exports.useCallback(V=>{V.key==="Escape"&&(V.stopPropagation(),i&&n?.(),c?.())},[i,n,c]),[x,b]=_.exports.useState(!1),[w,P]=_.exports.useState(!1),O=_.exports.useCallback((V={},K=null)=>({role:"dialog",...V,ref:Kn(K,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":x?m:void 0,"aria-describedby":w?v:void 0,onClick:wc(V.onClick,W=>W.stopPropagation())}),[v,w,h,m,x]),M=_.exports.useCallback(V=>{V.stopPropagation(),y.current===V.target&&(!Vb.isTopModal(f)||(o&&n?.(),u?.()))},[n,o,u]),N=_.exports.useCallback((V={},K=null)=>({...V,ref:Kn(K,p),onClick:wc(V.onClick,M),onKeyDown:wc(V.onKeyDown,k),onMouseDown:wc(V.onMouseDown,S)}),[k,S,M]);return{isOpen:t,onClose:n,headerId:m,bodyId:v,setBodyMounted:P,setHeaderMounted:b,dialogRef:f,overlayRef:p,getDialogProps:O,getDialogContainerProps:N}}function uQ(e,t){const n=e.current;_.exports.useEffect(()=>{if(!(!e.current||!t))return EX(e.current)},[t,e,n])}function cQ(e,...t){const n=_.exports.useId(),r=e||n;return _.exports.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}var[fQ,js]=Xt({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[dQ,za]=Xt({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Df=e=>{const{portalProps:t,children:n,autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m,onCloseComplete:v}=e,y=Fr("Modal",e),k={...lQ(e),autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m};return E(dQ,{value:k,children:E(fQ,{value:y,children:E(Ui,{onExitComplete:v,children:k.isOpen&&E(Vs,{...t,children:n})})})})};Df.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};Df.displayName="Modal";var Pm=de((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=za();_.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Ws("chakra-modal__body",n),u=js();return ee.createElement(ie.div,{ref:t,className:s,id:o,...r,__css:u.body})});Pm.displayName="ModalBody";var j5=de((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=za(),s=Ws("chakra-modal__close-btn",r),u=js();return E(tw,{ref:t,__css:u.closeButton,className:s,onClick:wc(n,c=>{c.stopPropagation(),i()}),...o})});j5.displayName="ModalCloseButton";function U5(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:f,lockFocusAcrossFrames:p}=za(),[h,m]=Bx();return _.exports.useEffect(()=>{!h&&m&&setTimeout(m)},[h,m]),E(F5,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:p,children:E(iQ,{removeScrollBar:!f,allowPinchZoom:s,enabled:i,forwardProps:!0,children:e.children})})}var pQ={slideInBottom:{...Eb,custom:{offsetY:16,reverse:!0}},slideInRight:{...Eb,custom:{offsetX:16,reverse:!0}},scale:{...p3,custom:{initialScale:.95,reverse:!0}},none:{}},hQ=ie(Ao.section),H5=_.exports.forwardRef((e,t)=>{const{preset:n,...r}=e,o=pQ[n];return E(hQ,{ref:t,...o,...r})});H5.displayName="ModalTransition";var Am=de((e,t)=>{const{className:n,children:r,containerProps:o,...i}=e,{getDialogProps:s,getDialogContainerProps:u}=za(),c=s(i,t),f=u(o),p=Ws("chakra-modal__content",n),h=js(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},v={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:y}=za();return ee.createElement(U5,null,ee.createElement(ie.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:v},E(H5,{preset:y,className:p,...c,__css:m,children:r})))});Am.displayName="ModalContent";var Ew=de((e,t)=>{const{className:n,...r}=e,o=Ws("chakra-modal__footer",n),i=js(),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...i.footer};return ee.createElement(ie.footer,{ref:t,...r,__css:s,className:o})});Ew.displayName="ModalFooter";var Pw=de((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=za();_.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Ws("chakra-modal__header",n),u=js(),c={flex:0,...u.header};return ee.createElement(ie.header,{ref:t,className:s,id:o,...r,__css:c})});Pw.displayName="ModalHeader";var mQ=ie(Ao.div),Tm=de((e,t)=>{const{className:n,transition:r,...o}=e,i=Ws("chakra-modal__overlay",n),s=js(),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...s.overlay},{motionPreset:c}=za();return E(mQ,{...c==="none"?{}:d3,__css:u,ref:t,className:i,...o})});Tm.displayName="ModalOverlay";function gQ(e){const{leastDestructiveRef:t,...n}=e;return E(Df,{...n,initialFocusRef:t})}var vQ=de((e,t)=>E(Am,{ref:t,role:"alertdialog",...e})),[$fe,yQ]=Xt(),bQ=ie(h3),SQ=de((e,t)=>{const{className:n,children:r,...o}=e,{getDialogProps:i,getDialogContainerProps:s,isOpen:u}=za(),c=i(o,t),f=s(),p=Ws("chakra-modal__content",n),h=js(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},v={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:y}=yQ();return ee.createElement(ie.div,{...f,className:"chakra-modal__content-container",__css:v},E(U5,{children:E(bQ,{direction:y,in:u,className:p,...c,__css:m,children:r})}))});SQ.displayName="DrawerContent";function xQ(e,t){const n=Nn(e);_.exports.useEffect(()=>{let r=null;const o=()=>n();return t!==null&&(r=window.setInterval(o,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var G5=(...e)=>e.filter(Boolean).join(" "),By=e=>e?!0:void 0;function No(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var wQ=e=>E(Po,{viewBox:"0 0 24 24",...e,children:E("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),_Q=e=>E(Po,{viewBox:"0 0 24 24",...e,children:E("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function _P(e,t,n,r){_.exports.useEffect(()=>{if(!e.current||!r)return;const o=e.current.ownerDocument.defaultView??window,i=Array.isArray(t)?t:[t],s=new o.MutationObserver(u=>{for(const c of u)c.type==="attributes"&&c.attributeName&&i.includes(c.attributeName)&&n(c)});return s.observe(e.current,{attributes:!0,attributeFilter:i}),()=>s.disconnect()})}var CQ=50,CP=300;function kQ(e,t){const[n,r]=_.exports.useState(!1),[o,i]=_.exports.useState(null),[s,u]=_.exports.useState(!0),c=_.exports.useRef(null),f=()=>clearTimeout(c.current);xQ(()=>{o==="increment"&&e(),o==="decrement"&&t()},n?CQ:null);const p=_.exports.useCallback(()=>{s&&e(),c.current=setTimeout(()=>{u(!1),r(!0),i("increment")},CP)},[e,s]),h=_.exports.useCallback(()=>{s&&t(),c.current=setTimeout(()=>{u(!1),r(!0),i("decrement")},CP)},[t,s]),m=_.exports.useCallback(()=>{u(!0),r(!1),f()},[]);return _.exports.useEffect(()=>()=>f(),[]),{up:p,down:h,stop:m,isSpinning:n}}var EQ=/^[Ee0-9+\-.]$/;function PQ(e){return EQ.test(e)}function AQ(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function TQ(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:o=Number.MIN_SAFE_INTEGER,max:i=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:u,isDisabled:c,isRequired:f,isInvalid:p,pattern:h="[0-9]*(.[0-9]+)?",inputMode:m="decimal",allowMouseWheel:v,id:y,onChange:S,precision:k,name:x,"aria-describedby":b,"aria-label":w,"aria-labelledby":P,onFocus:O,onBlur:M,onInvalid:N,getAriaValueText:V,isValidCharacter:K,format:W,parse:te,...xe}=e,fe=Nn(O),we=Nn(M),Ce=Nn(N),ve=Nn(K??PQ),Pe=Nn(V),j=rK(e),{update:X,increment:q,decrement:R}=j,[H,ae]=_.exports.useState(!1),se=!(u||c),he=_.exports.useRef(null),ge=_.exports.useRef(null),Ee=_.exports.useRef(null),ce=_.exports.useRef(null),Ae=_.exports.useCallback(ne=>ne.split("").filter(ve).join(""),[ve]),Me=_.exports.useCallback(ne=>te?.(ne)??ne,[te]),mt=_.exports.useCallback(ne=>(W?.(ne)??ne).toString(),[W]);xm(()=>{(j.valueAsNumber>i||j.valueAsNumber{if(!he.current)return;if(he.current.value!=j.value){const Ve=Me(he.current.value);j.setValue(Ae(Ve))}},[Me,Ae]);const Dt=_.exports.useCallback((ne=s)=>{se&&q(ne)},[q,se,s]),En=_.exports.useCallback((ne=s)=>{se&&R(ne)},[R,se,s]),ye=kQ(Dt,En);_P(Ee,"disabled",ye.stop,ye.isSpinning),_P(ce,"disabled",ye.stop,ye.isSpinning);const Mt=_.exports.useCallback(ne=>{if(ne.nativeEvent.isComposing)return;const xt=Me(ne.currentTarget.value);X(Ae(xt)),ge.current={start:ne.currentTarget.selectionStart,end:ne.currentTarget.selectionEnd}},[X,Ae,Me]),Qt=_.exports.useCallback(ne=>{var Ve;fe?.(ne),ge.current&&(ne.target.selectionStart=ge.current.start??((Ve=ne.currentTarget.value)==null?void 0:Ve.length),ne.currentTarget.selectionEnd=ge.current.end??ne.currentTarget.selectionStart)},[fe]),it=_.exports.useCallback(ne=>{if(ne.nativeEvent.isComposing)return;AQ(ne,ve)||ne.preventDefault();const Ve=hr(ne)*s,xt=ne.key,Pn={ArrowUp:()=>Dt(Ve),ArrowDown:()=>En(Ve),Home:()=>X(o),End:()=>X(i)}[xt];Pn&&(ne.preventDefault(),Pn(ne))},[ve,s,Dt,En,X,o,i]),hr=ne=>{let Ve=1;return(ne.metaKey||ne.ctrlKey)&&(Ve=.1),ne.shiftKey&&(Ve=10),Ve},mr=_.exports.useMemo(()=>{const ne=Pe?.(j.value);if(ne!=null)return ne;const Ve=j.value.toString();return Ve||void 0},[j.value,Pe]),St=_.exports.useCallback(()=>{let ne=j.value;ne!==""&&(j.valueAsNumberi&&(ne=i),j.cast(ne))},[j,i,o]),Ct=_.exports.useCallback(()=>{ae(!1),n&&St()},[n,ae,St]),Jt=_.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var ne;(ne=he.current)==null||ne.focus()})},[t]),zt=_.exports.useCallback(ne=>{ne.preventDefault(),ye.up(),Jt()},[Jt,ye]),le=_.exports.useCallback(ne=>{ne.preventDefault(),ye.down(),Jt()},[Jt,ye]);Ob(()=>he.current,"wheel",ne=>{var Ve;const hn=(((Ve=he.current)==null?void 0:Ve.ownerDocument)??document).activeElement===he.current;if(!v||!hn)return;ne.preventDefault();const Pn=hr(ne)*s,gr=Math.sign(ne.deltaY);gr===-1?Dt(Pn):gr===1&&En(Pn)},{passive:!1});const _e=_.exports.useCallback((ne={},Ve=null)=>{const xt=c||r&&j.isAtMax;return{...ne,ref:Kn(Ve,Ee),role:"button",tabIndex:-1,onPointerDown:No(ne.onPointerDown,hn=>{xt||zt(hn)}),onPointerLeave:No(ne.onPointerLeave,ye.stop),onPointerUp:No(ne.onPointerUp,ye.stop),disabled:xt,"aria-disabled":By(xt)}},[j.isAtMax,r,zt,ye.stop,c]),at=_.exports.useCallback((ne={},Ve=null)=>{const xt=c||r&&j.isAtMin;return{...ne,ref:Kn(Ve,ce),role:"button",tabIndex:-1,onPointerDown:No(ne.onPointerDown,hn=>{xt||le(hn)}),onPointerLeave:No(ne.onPointerLeave,ye.stop),onPointerUp:No(ne.onPointerUp,ye.stop),disabled:xt,"aria-disabled":By(xt)}},[j.isAtMin,r,le,ye.stop,c]),nt=_.exports.useCallback((ne={},Ve=null)=>({name:x,inputMode:m,type:"text",pattern:h,"aria-labelledby":P,"aria-label":w,"aria-describedby":b,id:y,disabled:c,...ne,readOnly:ne.readOnly??u,"aria-readonly":ne.readOnly??u,"aria-required":ne.required??f,required:ne.required??f,ref:Kn(he,Ve),value:mt(j.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":Number.isNaN(j.valueAsNumber)?void 0:j.valueAsNumber,"aria-invalid":By(p??j.isOutOfRange),"aria-valuetext":mr,autoComplete:"off",autoCorrect:"off",onChange:No(ne.onChange,Mt),onKeyDown:No(ne.onKeyDown,it),onFocus:No(ne.onFocus,Qt,()=>ae(!0)),onBlur:No(ne.onBlur,we,Ct)}),[x,m,h,P,w,mt,b,y,c,f,u,p,j.value,j.valueAsNumber,j.isOutOfRange,o,i,mr,Mt,it,Qt,we,Ct]);return{value:mt(j.value),valueAsNumber:j.valueAsNumber,isFocused:H,isDisabled:c,isReadOnly:u,getIncrementButtonProps:_e,getDecrementButtonProps:at,getInputProps:nt,htmlProps:xe}}var[OQ,qg]=Xt({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[IQ,Aw]=Xt({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),q5=de(function(t,n){const r=Fr("NumberInput",t),o=bt(t),i=Qx(o),{htmlProps:s,...u}=TQ(i),c=_.exports.useMemo(()=>u,[u]);return ee.createElement(IQ,{value:c},ee.createElement(OQ,{value:r},ee.createElement(ie.div,{...s,ref:n,className:G5("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})))});q5.displayName="NumberInput";var K5=de(function(t,n){const r=qg();return ee.createElement(ie.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});K5.displayName="NumberInputStepper";var Y5=de(function(t,n){const{getInputProps:r}=Aw(),o=r(t,n),i=qg();return ee.createElement(ie.input,{...o,className:G5("chakra-numberinput__field",t.className),__css:{width:"100%",...i.field}})});Y5.displayName="NumberInputField";var X5=ie("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Z5=de(function(t,n){const r=qg(),{getDecrementButtonProps:o}=Aw(),i=o(t,n);return E(X5,{...i,__css:r.stepper,children:t.children??E(wQ,{})})});Z5.displayName="NumberDecrementStepper";var Q5=de(function(t,n){const{getIncrementButtonProps:r}=Aw(),o=r(t,n),i=qg();return E(X5,{...o,__css:i.stepper,children:t.children??E(_Q,{})})});Q5.displayName="NumberIncrementStepper";function RQ(e,t,n){return(e-t)*100/(n-t)}qf({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});qf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var DQ=qf({"0%":{left:"-40%"},"100%":{left:"100%"}}),MQ=qf({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function NQ(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:s}=e,u=RQ(t,n,r);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,u):o})(),role:"progressbar"},percent:u,value:t}}var[FQ,LQ]=Xt({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),$Q=e=>{const{min:t,max:n,value:r,isIndeterminate:o,...i}=e,s=NQ({value:r,min:t,max:n,isIndeterminate:o}),u=LQ(),c={height:"100%",...u.filledTrack};return ee.createElement(ie.div,{style:{width:`${s.percent}%`,...i.style},...s.bind,...i,__css:c})},J5=e=>{var t;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:s,children:u,borderRadius:c,isIndeterminate:f,"aria-label":p,"aria-labelledby":h,...m}=bt(e),v=Fr("Progress",e),y=c??((t=v.track)==null?void 0:t.borderRadius),S={animation:`${MQ} 1s linear infinite`},b={...!f&&i&&s&&S,...f&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${DQ} 1s ease infinite normal none running`}},w={overflow:"hidden",position:"relative",...v.track};return ee.createElement(ie.div,{borderRadius:y,__css:w,...m},ue(FQ,{value:v,children:[E($Q,{"aria-label":p,"aria-labelledby":h,min:r,max:o,value:n,isIndeterminate:f,css:b,borderRadius:y}),u]}))};J5.displayName="Progress";var BQ=ie("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});BQ.displayName="CircularProgressLabel";var zQ=(...e)=>e.filter(Boolean).join(" "),VQ=e=>e?"":void 0;function WQ(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}var e4=de(function(t,n){const{children:r,placeholder:o,className:i,...s}=t;return ee.createElement(ie.select,{...s,ref:n,className:zQ("chakra-select",i)},o&&E("option",{value:"",children:o}),r)});e4.displayName="SelectField";var t4=de((e,t)=>{var n;const r=Fr("Select",e),{rootProps:o,placeholder:i,icon:s,color:u,height:c,h:f,minH:p,minHeight:h,iconColor:m,iconSize:v,...y}=bt(e),[S,k]=WQ(y,X9),x=Zx(k),b={width:"100%",height:"fit-content",position:"relative",color:u},w={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return ee.createElement(ie.div,{className:"chakra-select__wrapper",__css:b,...S,...o},E(e4,{ref:t,height:f??c,minH:p??h,placeholder:i,...x,__css:w,children:e.children}),E(n4,{"data-disabled":VQ(x.disabled),...(m||u)&&{color:m||u},__css:r.icon,...v&&{fontSize:v},children:s}))});t4.displayName="Select";var jQ=e=>E("svg",{viewBox:"0 0 24 24",...e,children:E("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),UQ=ie("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),n4=e=>{const{children:t=E(jQ,{}),...n}=e,r=_.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return E(UQ,{...n,className:"chakra-select__icon-wrapper",children:_.exports.isValidElement(t)?r:null})};n4.displayName="SelectIcon";var HQ=(...e)=>e.filter(Boolean).join(" "),kP=e=>e?"":void 0,Ra=de(function(t,n){const r=Fr("Switch",t),{spacing:o="0.5rem",children:i,...s}=bt(t),{state:u,getInputProps:c,getCheckboxProps:f,getRootProps:p,getLabelProps:h}=P3(s),m=_.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),v=_.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),y=_.exports.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return ee.createElement(ie.label,{...p(),className:HQ("chakra-switch",t.className),__css:m},E("input",{className:"chakra-switch__input",...c({},n)}),ee.createElement(ie.span,{...f(),className:"chakra-switch__track",__css:v},ee.createElement(ie.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":kP(u.isChecked),"data-hover":kP(u.isHovered)})),i&&ee.createElement(ie.span,{className:"chakra-switch__label",...h(),__css:y},i))});Ra.displayName="Switch";var GQ=(...e)=>e.filter(Boolean).join(" ");function qQ(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var KQ=["h","minH","height","minHeight"],r4=de((e,t)=>{const n=Zn("Textarea",e),{className:r,rows:o,...i}=bt(e),s=Zx(i),u=o?qQ(n,KQ):n;return ee.createElement(ie.textarea,{ref:t,rows:o,...s,className:GQ("chakra-textarea",r),__css:u})});r4.displayName="Textarea";function ct(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...p){r();for(const h of p)t[h]=c(h);return ct(e,t)}function i(...p){for(const h of p)h in t||(t[h]=c(h));return ct(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.className]))}function c(p){const v=`chakra-${(["container","root"].includes(p??"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>p}}return{parts:o,toPart:c,extend:i,selectors:s,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var YQ=ct("accordion").parts("root","container","button","panel").extend("icon"),XQ=ct("alert").parts("title","description","container").extend("icon","spinner"),ZQ=ct("avatar").parts("label","badge","container").extend("excessLabel","group"),QQ=ct("breadcrumb").parts("link","item","container").extend("separator");ct("button").parts();var JQ=ct("checkbox").parts("control","icon","container").extend("label");ct("progress").parts("track","filledTrack").extend("label");var eJ=ct("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),tJ=ct("editable").parts("preview","input","textarea"),nJ=ct("form").parts("container","requiredIndicator","helperText"),rJ=ct("formError").parts("text","icon"),oJ=ct("input").parts("addon","field","element"),iJ=ct("list").parts("container","item","icon"),aJ=ct("menu").parts("button","list","item").extend("groupTitle","command","divider"),sJ=ct("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),lJ=ct("numberinput").parts("root","field","stepperGroup","stepper");ct("pininput").parts("field");var uJ=ct("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),cJ=ct("progress").parts("label","filledTrack","track"),fJ=ct("radio").parts("container","control","label"),dJ=ct("select").parts("field","icon"),pJ=ct("slider").parts("container","track","thumb","filledTrack","mark"),hJ=ct("stat").parts("container","label","helpText","number","icon"),mJ=ct("switch").parts("container","track","thumb"),gJ=ct("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),vJ=ct("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),yJ=ct("tag").parts("container","label","closeButton");function _n(e,t){bJ(e)&&(e="100%");var n=SJ(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Gp(e){return Math.min(1,Math.max(0,e))}function bJ(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function SJ(e){return typeof e=="string"&&e.indexOf("%")!==-1}function o4(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function qp(e){return e<=1?"".concat(Number(e)*100,"%"):e}function xs(e){return e.length===1?"0"+e:String(e)}function xJ(e,t,n){return{r:_n(e,255)*255,g:_n(t,255)*255,b:_n(n,255)*255}}function EP(e,t,n){e=_n(e,255),t=_n(t,255),n=_n(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=0,u=(r+o)/2;if(r===o)s=0,i=0;else{var c=r-o;switch(s=u>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function wJ(e,t,n){var r,o,i;if(e=_n(e,360),t=_n(t,100),n=_n(n,100),t===0)o=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=zy(u,s,e+1/3),o=zy(u,s,e),i=zy(u,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function PP(e,t,n){e=_n(e,255),t=_n(t,255),n=_n(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=r,u=r-o,c=r===0?0:u/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/u+(t>16,g:(e&65280)>>8,b:e&255}}var Wb={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function PJ(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,s=!1,u=!1;return typeof e=="string"&&(e=OJ(e)),typeof e=="object"&&(Ci(e.r)&&Ci(e.g)&&Ci(e.b)?(t=xJ(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ci(e.h)&&Ci(e.s)&&Ci(e.v)?(r=qp(e.s),o=qp(e.v),t=_J(e.h,r,o),s=!0,u="hsv"):Ci(e.h)&&Ci(e.s)&&Ci(e.l)&&(r=qp(e.s),i=qp(e.l),t=wJ(e.h,r,i),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=o4(n),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var AJ="[-\\+]?\\d+%?",TJ="[-\\+]?\\d*\\.\\d+%?",wa="(?:".concat(TJ,")|(?:").concat(AJ,")"),Vy="[\\s|\\(]+(".concat(wa,")[,|\\s]+(").concat(wa,")[,|\\s]+(").concat(wa,")\\s*\\)?"),Wy="[\\s|\\(]+(".concat(wa,")[,|\\s]+(").concat(wa,")[,|\\s]+(").concat(wa,")[,|\\s]+(").concat(wa,")\\s*\\)?"),vo={CSS_UNIT:new RegExp(wa),rgb:new RegExp("rgb"+Vy),rgba:new RegExp("rgba"+Wy),hsl:new RegExp("hsl"+Vy),hsla:new RegExp("hsla"+Wy),hsv:new RegExp("hsv"+Vy),hsva:new RegExp("hsva"+Wy),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function OJ(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Wb[e])e=Wb[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=vo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=vo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=vo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=vo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=vo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=vo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=vo.hex8.exec(e),n?{r:Cr(n[1]),g:Cr(n[2]),b:Cr(n[3]),a:TP(n[4]),format:t?"name":"hex8"}:(n=vo.hex6.exec(e),n?{r:Cr(n[1]),g:Cr(n[2]),b:Cr(n[3]),format:t?"name":"hex"}:(n=vo.hex4.exec(e),n?{r:Cr(n[1]+n[1]),g:Cr(n[2]+n[2]),b:Cr(n[3]+n[3]),a:TP(n[4]+n[4]),format:t?"name":"hex8"}:(n=vo.hex3.exec(e),n?{r:Cr(n[1]+n[1]),g:Cr(n[2]+n[2]),b:Cr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ci(e){return Boolean(vo.CSS_UNIT.exec(String(e)))}var rd=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=EJ(t)),this.originalInput=t;var o=PJ(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,s=t.g/255,u=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),u<=.03928?o=u/12.92:o=Math.pow((u+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=o4(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=PP(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=PP(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=EP(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=EP(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),AP(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),CJ(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(_n(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(_n(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+AP(this.r,this.g,this.b,!1),n=0,r=Object.entries(Wb);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Gp(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Gp(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Gp(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Gp(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,s=[],u=1/t;t--;)s.push(new e({h:r,s:o,v:i})),i=(i+u)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,s=1;sn.length;)e.count=null,e.seed&&(e.seed+=1),n.push(i4(e));return e.count=t,n}var r=IJ(e.hue,e.seed),o=RJ(r,e),i=DJ(r,o,e),s={h:r,s:o,v:i};return e.alpha!==void 0&&(s.a=e.alpha),new rd(s)}function IJ(e,t){var n=NJ(e),r=Om(n,t);return r<0&&(r=360+r),r}function RJ(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return Om([0,100],t.seed);var n=a4(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55;break}return Om([r,o],t.seed)}function DJ(e,t,n){var r=MJ(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100;break}return Om([r,o],n.seed)}function MJ(e,t){for(var n=a4(e).lowerBounds,r=0;r=o&&t<=s){var c=(u-i)/(s-o),f=i-c*o;return c*t+f}}return 0}function NJ(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=l4.find(function(s){return s.name===e});if(n){var r=s4(n);if(r.hueRange)return r.hueRange}var o=new rd(e);if(o.isValid){var i=o.toHsv().h;return[i,i]}}return[0,360]}function a4(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=l4;t=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function Om(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0;t=(t*9301+49297)%233280;var o=t/233280;return Math.floor(r+o*(n-r))}function s4(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}var l4=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];function FJ(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,ln=(e,t,n)=>{const r=FJ(e,`colors.${t}`,t),{isValid:o}=new rd(r);return o?r:n},$J=e=>t=>{const n=ln(t,e);return new rd(n).isDark()?"dark":"light"},BJ=e=>t=>$J(e)(t)==="dark",hu=(e,t)=>n=>{const r=ln(n,e);return new rd(r).setAlpha(t).toRgbString()};function OP(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${e} ${e}`}}function zJ(e){const t=i4().toHexString();return!e||LJ(e)?t:e.string&&e.colors?WJ(e.string,e.colors):e.string&&!e.colors?VJ(e.string):e.colors&&!e.string?jJ(e.colors):t}function VJ(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255).toString(16)}`.substr(-2);return n}function WJ(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Tw(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function UJ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function u4(e){return UJ(e)&&e.reference?e.reference:String(e)}var Kg=(e,...t)=>t.map(u4).join(` ${e} `).replace(/calc/g,""),IP=(...e)=>`calc(${Kg("+",...e)})`,RP=(...e)=>`calc(${Kg("-",...e)})`,jb=(...e)=>`calc(${Kg("*",...e)})`,DP=(...e)=>`calc(${Kg("/",...e)})`,MP=e=>{const t=u4(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:jb(t,-1)},Ti=Object.assign(e=>({add:(...t)=>Ti(IP(e,...t)),subtract:(...t)=>Ti(RP(e,...t)),multiply:(...t)=>Ti(jb(e,...t)),divide:(...t)=>Ti(DP(e,...t)),negate:()=>Ti(MP(e)),toString:()=>e.toString()}),{add:IP,subtract:RP,multiply:jb,divide:DP,negate:MP});function HJ(e){return!Number.isInteger(parseFloat(e.toString()))}function GJ(e,t="-"){return e.replace(/\s+/g,t)}function c4(e){const t=GJ(e.toString());return t.includes("\\.")?e:HJ(e)?t.replace(".","\\."):e}function qJ(e,t=""){return[t,c4(e)].filter(Boolean).join("-")}function KJ(e,t){return`var(${c4(e)}${t?`, ${t}`:""})`}function YJ(e,t=""){return`--${qJ(e,t)}`}function pr(e,t){const n=YJ(e,t?.prefix);return{variable:n,reference:KJ(n,XJ(t?.fallback))}}function XJ(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:ZJ,defineMultiStyleConfig:QJ}=Rt(YQ.keys),JJ={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},eee={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},tee={pt:"2",px:"4",pb:"5"},nee={fontSize:"1.25em"},ree=ZJ({container:JJ,button:eee,panel:tee,icon:nee}),oee=QJ({baseStyle:ree}),{definePartsStyle:od,defineMultiStyleConfig:iee}=Rt(XQ.keys),Vi=Ga("alert-fg"),id=Ga("alert-bg"),aee=od({container:{bg:id.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Vi.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Vi.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ow(e){const{theme:t,colorScheme:n}=e,r=ln(t,`${n}.100`,n),o=hu(`${n}.200`,.16)(t);return J(r,o)(e)}var see=od(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[id.variable]:Ow(e),[Vi.variable]:`colors.${n}`}}}),lee=od(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[id.variable]:Ow(e),[Vi.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Vi.reference}}}),uee=od(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[id.variable]:Ow(e),[Vi.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Vi.reference}}}),cee=od(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e),r=J("white","gray.900")(e);return{container:{[id.variable]:`colors.${n}`,[Vi.variable]:`colors.${r}`,color:Vi.reference}}}),fee={subtle:see,"left-accent":lee,"top-accent":uee,solid:cee},dee=iee({baseStyle:aee,variants:fee,defaultProps:{variant:"subtle",colorScheme:"blue"}}),f4={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"},pee={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"},hee={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},mee={...f4,...pee,container:hee},d4=mee,gee=e=>typeof e=="function";function Yt(e,...t){return gee(e)?e(...t):e}var{definePartsStyle:p4,defineMultiStyleConfig:vee}=Rt(ZQ.keys),yee=e=>({borderRadius:"full",border:"0.2em solid",borderColor:J("white","gray.800")(e)}),bee=e=>({bg:J("gray.200","whiteAlpha.400")(e)}),See=e=>{const{name:t,theme:n}=e,r=t?zJ({string:t}):"gray.400",o=BJ(r)(n);let i="white";o||(i="gray.800");const s=J("white","gray.800")(e);return{bg:r,color:i,borderColor:s,verticalAlign:"top"}},xee=p4(e=>({badge:Yt(yee,e),excessLabel:Yt(bee,e),container:Yt(See,e)}));function ia(e){const t=e!=="100%"?d4[e]:void 0;return p4({container:{width:e,height:e,fontSize:`calc(${t??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t??e} / 2.5)`,lineHeight:e!=="100%"?t??e:void 0}})}var wee={"2xs":ia(4),xs:ia(6),sm:ia(8),md:ia(12),lg:ia(16),xl:ia(24),"2xl":ia(32),full:ia("100%")},_ee=vee({baseStyle:xee,sizes:wee,defaultProps:{size:"md"}}),Cee={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},kee=e=>{const{colorScheme:t,theme:n}=e,r=hu(`${t}.500`,.6)(n);return{bg:J(`${t}.500`,r)(e),color:J("white","whiteAlpha.800")(e)}},Eee=e=>{const{colorScheme:t,theme:n}=e,r=hu(`${t}.200`,.16)(n);return{bg:J(`${t}.100`,r)(e),color:J(`${t}.800`,`${t}.200`)(e)}},Pee=e=>{const{colorScheme:t,theme:n}=e,r=hu(`${t}.200`,.8)(n),o=ln(n,`${t}.500`),i=J(o,r)(e);return{color:i,boxShadow:`inset 0 0 0px 1px ${i}`}},Aee={solid:kee,subtle:Eee,outline:Pee},Hc={baseStyle:Cee,variants:Aee,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Tee,definePartsStyle:Oee}=Rt(QQ.keys),Iee={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Ree=Oee({link:Iee}),Dee=Tee({baseStyle:Ree}),Mee={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"}}},h4=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:J("inherit","whiteAlpha.900")(e),_hover:{bg:J("gray.100","whiteAlpha.200")(e)},_active:{bg:J("gray.200","whiteAlpha.300")(e)}};const r=hu(`${t}.200`,.12)(n),o=hu(`${t}.200`,.24)(n);return{color:J(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:J(`${t}.50`,r)(e)},_active:{bg:J(`${t}.100`,o)(e)}}},Nee=e=>{const{colorScheme:t}=e,n=J("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...Yt(h4,e)}},Fee={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Lee=e=>{const{colorScheme:t}=e;if(t==="gray"){const u=J("gray.100","whiteAlpha.200")(e);return{bg:u,_hover:{bg:J("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:J("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=Fee[t]??{},s=J(n,`${t}.200`)(e);return{bg:s,color:J(r,"gray.800")(e),_hover:{bg:J(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:J(i,`${t}.400`)(e)}}},$ee=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)}}},Bee={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},zee={ghost:h4,outline:Nee,solid:Lee,link:$ee,unstyled:Bee},Vee={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"}},Wee={baseStyle:Mee,variants:zee,sizes:Vee,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Ch,defineMultiStyleConfig:jee}=Rt(JQ.keys),Gc=Ga("checkbox-size"),Uee=e=>{const{colorScheme:t}=e;return{w:Gc.reference,h:Gc.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)}}},Hee={_disabled:{cursor:"not-allowed"}},Gee={userSelect:"none",_disabled:{opacity:.4}},qee={transitionProperty:"transform",transitionDuration:"normal"},Kee=Ch(e=>({icon:qee,container:Hee,control:Yt(Uee,e),label:Gee})),Yee={sm:Ch({control:{[Gc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ch({control:{[Gc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ch({control:{[Gc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Im=jee({baseStyle:Kee,sizes:Yee,defaultProps:{size:"md",colorScheme:"blue"}}),qc=pr("close-button-size"),Xee=e=>{const t=J("blackAlpha.100","whiteAlpha.100")(e),n=J("blackAlpha.200","whiteAlpha.200")(e);return{w:[qc.reference],h:[qc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},Zee={lg:{[qc.variable]:"sizes.10",fontSize:"md"},md:{[qc.variable]:"sizes.8",fontSize:"xs"},sm:{[qc.variable]:"sizes.6",fontSize:"2xs"}},Qee={baseStyle:Xee,sizes:Zee,defaultProps:{size:"md"}},{variants:Jee,defaultProps:ete}=Hc,tte={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},nte={baseStyle:tte,variants:Jee,defaultProps:ete},rte={w:"100%",mx:"auto",maxW:"prose",px:"4"},ote={baseStyle:rte},ite={opacity:.6,borderColor:"inherit"},ate={borderStyle:"solid"},ste={borderStyle:"dashed"},lte={solid:ate,dashed:ste},ute={baseStyle:ite,variants:lte,defaultProps:{variant:"solid"}},{definePartsStyle:Ub,defineMultiStyleConfig:cte}=Rt(eJ.keys);function Sl(e){return Ub(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var fte={bg:"blackAlpha.600",zIndex:"overlay"},dte={display:"flex",zIndex:"modal",justifyContent:"center"},pte=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:J("white","gray.700")(e),color:"inherit",boxShadow:J("lg","dark-lg")(e)}},hte={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},mte={position:"absolute",top:"2",insetEnd:"3"},gte={px:"6",py:"2",flex:"1",overflow:"auto"},vte={px:"6",py:"4"},yte=Ub(e=>({overlay:fte,dialogContainer:dte,dialog:Yt(pte,e),header:hte,closeButton:mte,body:gte,footer:vte})),bte={xs:Sl("xs"),sm:Sl("md"),md:Sl("lg"),lg:Sl("2xl"),xl:Sl("4xl"),full:Sl("full")},Ste=cte({baseStyle:yte,sizes:bte,defaultProps:{size:"xs"}}),{definePartsStyle:xte,defineMultiStyleConfig:wte}=Rt(tJ.keys),_te={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Cte={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},kte={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Ete=xte({preview:_te,input:Cte,textarea:kte}),Pte=wte({baseStyle:Ete}),{definePartsStyle:Ate,defineMultiStyleConfig:Tte}=Rt(nJ.keys),Ote=e=>({marginStart:"1",color:J("red.500","red.300")(e)}),Ite=e=>({mt:"2",color:J("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Rte=Ate(e=>({container:{width:"100%",position:"relative"},requiredIndicator:Yt(Ote,e),helperText:Yt(Ite,e)})),Dte=Tte({baseStyle:Rte}),{definePartsStyle:Mte,defineMultiStyleConfig:Nte}=Rt(rJ.keys),Fte=e=>({color:J("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Lte=e=>({marginEnd:"0.5em",color:J("red.500","red.300")(e)}),$te=Mte(e=>({text:Yt(Fte,e),icon:Yt(Lte,e)})),Bte=Nte({baseStyle:$te}),zte={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Vte={baseStyle:zte},Wte={fontFamily:"heading",fontWeight:"bold"},jte={"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}},Ute={baseStyle:Wte,sizes:jte,defaultProps:{size:"xl"}},{definePartsStyle:Ri,defineMultiStyleConfig:Hte}=Rt(oJ.keys),Gte=Ri({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),aa={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},qte={lg:Ri({field:aa.lg,addon:aa.lg}),md:Ri({field:aa.md,addon:aa.md}),sm:Ri({field:aa.sm,addon:aa.sm}),xs:Ri({field:aa.xs,addon:aa.xs})};function Iw(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||J("blue.500","blue.300")(e),errorBorderColor:n||J("red.500","red.300")(e)}}var Kte=Ri(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Iw(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:ln(t,r),boxShadow:`0 0 0 1px ${ln(t,r)}`},_focusVisible:{zIndex:1,borderColor:ln(t,n),boxShadow:`0 0 0 1px ${ln(t,n)}`}},addon:{border:"1px solid",borderColor:J("inherit","whiteAlpha.50")(e),bg:J("gray.100","whiteAlpha.300")(e)}}}),Yte=Ri(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Iw(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:ln(t,r)},_focusVisible:{bg:"transparent",borderColor:ln(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e)}}}),Xte=Ri(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Iw(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ln(t,r),boxShadow:`0px 1px 0px 0px ${ln(t,r)}`},_focusVisible:{borderColor:ln(t,n),boxShadow:`0px 1px 0px 0px ${ln(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Zte=Ri({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Qte={outline:Kte,filled:Yte,flushed:Xte,unstyled:Zte},tt=Hte({baseStyle:Gte,sizes:qte,variants:Qte,defaultProps:{size:"md",variant:"outline"}}),Jte=e=>({bg:J("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),ene={baseStyle:Jte},tne={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},nne={baseStyle:tne},{defineMultiStyleConfig:rne,definePartsStyle:one}=Rt(iJ.keys),ine={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},ane=one({icon:ine}),sne=rne({baseStyle:ane}),{defineMultiStyleConfig:lne,definePartsStyle:une}=Rt(aJ.keys),cne=e=>({bg:J("#fff","gray.700")(e),boxShadow:J("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),fne=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:J("gray.100","whiteAlpha.100")(e)},_active:{bg:J("gray.200","whiteAlpha.200")(e)},_expanded:{bg:J("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),dne={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},pne={opacity:.6},hne={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},mne={transitionProperty:"common",transitionDuration:"normal"},gne=une(e=>({button:mne,list:Yt(cne,e),item:Yt(fne,e),groupTitle:dne,command:pne,divider:hne})),vne=lne({baseStyle:gne}),{defineMultiStyleConfig:yne,definePartsStyle:Hb}=Rt(sJ.keys),bne={bg:"blackAlpha.600",zIndex:"modal"},Sne=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},xne=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:J("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:J("lg","dark-lg")(e)}},wne={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},_ne={position:"absolute",top:"2",insetEnd:"3"},Cne=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},kne={px:"6",py:"4"},Ene=Hb(e=>({overlay:bne,dialogContainer:Yt(Sne,e),dialog:Yt(xne,e),header:wne,closeButton:_ne,body:Yt(Cne,e),footer:kne}));function go(e){return Hb(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Pne={xs:go("xs"),sm:go("sm"),md:go("md"),lg:go("lg"),xl:go("xl"),"2xl":go("2xl"),"3xl":go("3xl"),"4xl":go("4xl"),"5xl":go("5xl"),"6xl":go("6xl"),full:go("full")},Ane=yne({baseStyle:Ene,sizes:Pne,defaultProps:{size:"md"}}),Tne={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"}},m4=Tne,{defineMultiStyleConfig:One,definePartsStyle:g4}=Rt(lJ.keys),Rw=pr("number-input-stepper-width"),v4=pr("number-input-input-padding"),Ine=Ti(Rw).add("0.5rem").toString(),Rne={[Rw.variable]:"sizes.6",[v4.variable]:Ine},Dne=e=>{var t;return((t=Yt(tt.baseStyle,e))==null?void 0:t.field)??{}},Mne={width:[Rw.reference]},Nne=e=>({borderStart:"1px solid",borderStartColor:J("inherit","whiteAlpha.300")(e),color:J("inherit","whiteAlpha.800")(e),_active:{bg:J("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Fne=g4(e=>({root:Rne,field:Dne,stepperGroup:Mne,stepper:Yt(Nne,e)??{}}));function Kp(e){var t,n;const r=(t=tt.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},i=((n=r.field)==null?void 0:n.fontSize)??"md",s=m4.fontSizes[i];return g4({field:{...r.field,paddingInlineEnd:v4.reference,verticalAlign:"top"},stepper:{fontSize:Ti(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Lne={xs:Kp("xs"),sm:Kp("sm"),md:Kp("md"),lg:Kp("lg")},$ne=One({baseStyle:Fne,sizes:Lne,variants:tt.variants,defaultProps:tt.defaultProps}),NP,Bne={...(NP=tt.baseStyle)==null?void 0:NP.field,textAlign:"center"},zne={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"}},FP,Vne={outline:e=>{var t,n;return((n=Yt((t=tt.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=Yt((t=tt.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=Yt((t=tt.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((FP=tt.variants)==null?void 0:FP.unstyled.field)??{}},Wne={baseStyle:Bne,sizes:zne,variants:Vne,defaultProps:tt.defaultProps},{defineMultiStyleConfig:jne,definePartsStyle:Une}=Rt(uJ.keys),jy=pr("popper-bg"),Hne=pr("popper-arrow-bg"),Gne=pr("popper-arrow-shadow-color"),qne={zIndex:10},Kne=e=>{const t=J("white","gray.700")(e),n=J("gray.200","whiteAlpha.300")(e);return{[jy.variable]:`colors.${t}`,bg:jy.reference,[Hne.variable]:jy.reference,[Gne.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},Yne={px:3,py:2,borderBottomWidth:"1px"},Xne={px:3,py:2},Zne={px:3,py:2,borderTopWidth:"1px"},Qne={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Jne=Une(e=>({popper:qne,content:Kne(e),header:Yne,body:Xne,footer:Zne,closeButton:Qne})),ere=jne({baseStyle:Jne}),{defineMultiStyleConfig:tre,definePartsStyle:_c}=Rt(cJ.keys),nre=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=J(OP(),OP("1rem","rgba(0,0,0,0.1)"))(e),s=J(`${t}.500`,`${t}.200`)(e),u=`linear-gradient( - to right, - transparent 0%, - ${ln(n,s)} 50%, - transparent 100% - )`;return{...!r&&o&&i,...r?{bgImage:u}:{bgColor:s}}},rre={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},ore=e=>({bg:J("gray.100","whiteAlpha.300")(e)}),ire=e=>({transitionProperty:"common",transitionDuration:"slow",...nre(e)}),are=_c(e=>({label:rre,filledTrack:ire(e),track:ore(e)})),sre={xs:_c({track:{h:"1"}}),sm:_c({track:{h:"2"}}),md:_c({track:{h:"3"}}),lg:_c({track:{h:"4"}})},lre=tre({sizes:sre,baseStyle:are,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ure,definePartsStyle:kh}=Rt(fJ.keys),cre=e=>{var t;const n=(t=Yt(Im.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},fre=kh(e=>{var t,n,r,o;return{label:(n=(t=Im).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=Im).baseStyle)==null?void 0:o.call(r,e).container,control:cre(e)}}),dre={md:kh({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:kh({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:kh({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},pre=ure({baseStyle:fre,sizes:dre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:hre,definePartsStyle:mre}=Rt(dJ.keys),gre=e=>{var t;return{...(t=tt.baseStyle)==null?void 0:t.field,bg:J("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:J("white","gray.700")(e)}}},vre={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},yre=mre(e=>({field:gre(e),icon:vre})),Yp={paddingInlineEnd:"8"},LP,$P,BP,zP,VP,WP,jP,UP,bre={lg:{...(LP=tt.sizes)==null?void 0:LP.lg,field:{...($P=tt.sizes)==null?void 0:$P.lg.field,...Yp}},md:{...(BP=tt.sizes)==null?void 0:BP.md,field:{...(zP=tt.sizes)==null?void 0:zP.md.field,...Yp}},sm:{...(VP=tt.sizes)==null?void 0:VP.sm,field:{...(WP=tt.sizes)==null?void 0:WP.sm.field,...Yp}},xs:{...(jP=tt.sizes)==null?void 0:jP.xs,field:{...(UP=tt.sizes)==null?void 0:UP.sm.field,...Yp},icon:{insetEnd:"1"}}},Sre=hre({baseStyle:yre,sizes:bre,variants:tt.variants,defaultProps:tt.defaultProps}),xre=Ga("skeleton-start-color"),wre=Ga("skeleton-end-color"),_re=e=>{const t=J("gray.100","gray.800")(e),n=J("gray.400","gray.600")(e),{startColor:r=t,endColor:o=n,theme:i}=e,s=ln(i,r),u=ln(i,o);return{[xre.variable]:s,[wre.variable]:u,opacity:.7,borderRadius:"2px",borderColor:s,background:u}},Cre={baseStyle:_re},kre=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:J("white","gray.700")(e)}}),Ere={baseStyle:kre},{defineMultiStyleConfig:Pre,definePartsStyle:Yg}=Rt(pJ.keys),Mf=Ga("slider-thumb-size"),Nf=Ga("slider-track-size"),Are=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Tw({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Tre=e=>({...Tw({orientation:e.orientation,horizontal:{h:Nf.reference},vertical:{w:Nf.reference}}),overflow:"hidden",borderRadius:"sm",bg:J("gray.200","whiteAlpha.200")(e),_disabled:{bg:J("gray.300","whiteAlpha.300")(e)}}),Ore=e=>{const{orientation:t}=e;return{...Tw({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:Mf.reference,h:Mf.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"}}},Ire=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:J(`${t}.500`,`${t}.200`)(e)}},Rre=Yg(e=>({container:Are(e),track:Tre(e),thumb:Ore(e),filledTrack:Ire(e)})),Dre=Yg({container:{[Mf.variable]:"sizes.4",[Nf.variable]:"sizes.1"}}),Mre=Yg({container:{[Mf.variable]:"sizes.3.5",[Nf.variable]:"sizes.1"}}),Nre=Yg({container:{[Mf.variable]:"sizes.2.5",[Nf.variable]:"sizes.0.5"}}),Fre={lg:Dre,md:Mre,sm:Nre},Lre=Pre({baseStyle:Rre,sizes:Fre,defaultProps:{size:"md",colorScheme:"blue"}}),hs=pr("spinner-size"),$re={width:[hs.reference],height:[hs.reference]},Bre={xs:{[hs.variable]:"sizes.3"},sm:{[hs.variable]:"sizes.4"},md:{[hs.variable]:"sizes.6"},lg:{[hs.variable]:"sizes.8"},xl:{[hs.variable]:"sizes.12"}},zre={baseStyle:$re,sizes:Bre,defaultProps:{size:"md"}},{defineMultiStyleConfig:Vre,definePartsStyle:y4}=Rt(hJ.keys),Wre={fontWeight:"medium"},jre={opacity:.8,marginBottom:"2"},Ure={verticalAlign:"baseline",fontWeight:"semibold"},Hre={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Gre=y4({container:{},label:Wre,helpText:jre,number:Ure,icon:Hre}),qre={md:y4({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Kre=Vre({baseStyle:Gre,sizes:qre,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Yre,definePartsStyle:Eh}=Rt(mJ.keys),Kc=pr("switch-track-width"),As=pr("switch-track-height"),Uy=pr("switch-track-diff"),Xre=Ti.subtract(Kc,As),Gb=pr("switch-thumb-x"),Zre=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Kc.reference],height:[As.reference],transitionProperty:"common",transitionDuration:"fast",bg:J("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:J(`${t}.500`,`${t}.200`)(e)}}},Qre={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[As.reference],height:[As.reference],_checked:{transform:`translateX(${Gb.reference})`}},Jre=Eh(e=>({container:{[Uy.variable]:Xre,[Gb.variable]:Uy.reference,_rtl:{[Gb.variable]:Ti(Uy).negate().toString()}},track:Zre(e),thumb:Qre})),eoe={sm:Eh({container:{[Kc.variable]:"1.375rem",[As.variable]:"sizes.3"}}),md:Eh({container:{[Kc.variable]:"1.875rem",[As.variable]:"sizes.4"}}),lg:Eh({container:{[Kc.variable]:"2.875rem",[As.variable]:"sizes.6"}})},toe=Yre({baseStyle:Jre,sizes:eoe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:noe,definePartsStyle:Zl}=Rt(gJ.keys),roe=Zl({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"}}),Rm={"&[data-is-numeric=true]":{textAlign:"end"}},ooe=Zl(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Rm},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Rm},caption:{color:J("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),ioe=Zl(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Rm},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Rm},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}}}}}}),aoe={simple:ooe,striped:ioe,unstyled:{}},soe={sm:Zl({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:Zl({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Zl({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},loe=noe({baseStyle:roe,variants:aoe,sizes:soe,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:uoe,definePartsStyle:ei}=Rt(vJ.keys),coe=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},foe=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}}},doe=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},poe={p:4},hoe=ei(e=>({root:coe(e),tab:foe(e),tablist:doe(e),tabpanel:poe})),moe={sm:ei({tab:{py:1,px:4,fontSize:"sm"}}),md:ei({tab:{fontSize:"md",py:2,px:4}}),lg:ei({tab:{fontSize:"lg",py:3,px:4}})},goe=ei(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=n==="vertical"?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{color:J(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:J("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),voe=ei(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:J(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:J("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),yoe=ei(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:J("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:J("#fff","gray.800")(e),color:J(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),boe=ei(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ln(n,`${t}.700`),bg:ln(n,`${t}.100`)}}}}),Soe=ei(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:J("gray.600","inherit")(e),_selected:{color:J("#fff","gray.800")(e),bg:J(`${t}.600`,`${t}.300`)(e)}}}}),xoe=ei({}),woe={line:goe,enclosed:voe,"enclosed-colored":yoe,"soft-rounded":boe,"solid-rounded":Soe,unstyled:xoe},_oe=uoe({baseStyle:hoe,sizes:moe,variants:woe,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:Coe,definePartsStyle:Ts}=Rt(yJ.keys),koe={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},Eoe={lineHeight:1.2,overflow:"visible"},Poe={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}},Aoe=Ts({container:koe,label:Eoe,closeButton:Poe}),Toe={sm:Ts({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ts({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Ts({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},Ooe={subtle:Ts(e=>{var t;return{container:(t=Hc.variants)==null?void 0:t.subtle(e)}}),solid:Ts(e=>{var t;return{container:(t=Hc.variants)==null?void 0:t.solid(e)}}),outline:Ts(e=>{var t;return{container:(t=Hc.variants)==null?void 0:t.outline(e)}})},Ioe=Coe({variants:Ooe,baseStyle:Aoe,sizes:Toe,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),HP,Roe={...(HP=tt.baseStyle)==null?void 0:HP.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},GP,Doe={outline:e=>{var t;return((t=tt.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=tt.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=tt.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((GP=tt.variants)==null?void 0:GP.unstyled.field)??{}},qP,KP,YP,XP,Moe={xs:((qP=tt.sizes)==null?void 0:qP.xs.field)??{},sm:((KP=tt.sizes)==null?void 0:KP.sm.field)??{},md:((YP=tt.sizes)==null?void 0:YP.md.field)??{},lg:((XP=tt.sizes)==null?void 0:XP.lg.field)??{}},Noe={baseStyle:Roe,sizes:Moe,variants:Doe,defaultProps:{size:"md",variant:"outline"}},Hy=pr("tooltip-bg"),ZP=pr("tooltip-fg"),Foe=pr("popper-arrow-bg"),Loe=e=>{const t=J("gray.700","gray.300")(e),n=J("whiteAlpha.900","gray.900")(e);return{bg:Hy.reference,color:ZP.reference,[Hy.variable]:`colors.${t}`,[ZP.variable]:`colors.${n}`,[Foe.variable]:Hy.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},$oe={baseStyle:Loe},Boe={Accordion:oee,Alert:dee,Avatar:_ee,Badge:Hc,Breadcrumb:Dee,Button:Wee,Checkbox:Im,CloseButton:Qee,Code:nte,Container:ote,Divider:ute,Drawer:Ste,Editable:Pte,Form:Dte,FormError:Bte,FormLabel:Vte,Heading:Ute,Input:tt,Kbd:ene,Link:nne,List:sne,Menu:vne,Modal:Ane,NumberInput:$ne,PinInput:Wne,Popover:ere,Progress:lre,Radio:pre,Select:Sre,Skeleton:Cre,SkipLink:Ere,Slider:Lre,Spinner:zre,Stat:Kre,Switch:toe,Table:loe,Tabs:_oe,Tag:Ioe,Textarea:Noe,Tooltip:$oe},zoe={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Voe=zoe,Woe={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},joe=Woe,Uoe={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"}},Hoe=Uoe,Goe={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},qoe=Goe,Koe={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"},Yoe=Koe,Xoe={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"},Zoe={"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)"},Qoe={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Joe={property:Xoe,easing:Zoe,duration:Qoe},eie=Joe,tie={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},nie=tie,rie={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},oie=rie,iie={breakpoints:joe,zIndices:nie,radii:qoe,blur:oie,colors:Hoe,...m4,sizes:d4,shadows:Yoe,space:f4,borders:Voe,transition:eie},aie={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-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},sie={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",wordWrap:"break-word"}}};function lie(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var uie=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function cie(e){return lie(e)?uie.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var fie="ltr",die={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},b4={semanticTokens:aie,direction:fie,...iie,components:Boe,styles:sie,config:die};function pie(e,t){const n=Nn(e);_.exports.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function qb(e,...t){return hie(e)?e(...t):e}var hie=e=>typeof e=="function";function mie(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return o?.[t]??n}var gie=(e,t)=>e.find(n=>n.id===t);function QP(e,t){const n=S4(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function S4(e,t){for(const[n,r]of Object.entries(e))if(gie(r,t))return n}function vie(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function yie(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var bie={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Ho=Sie(bie);function Sie(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(u=>u.id!=o)}))},notify:(o,i)=>{const s=xie(o,i),{position:u,id:c}=s;return r(f=>{const h=u.includes("top")?[s,...f[u]??[]]:[...f[u]??[],s];return{...f,[u]:h}}),c},update:(o,i)=>{!o||r(s=>{const u={...s},{position:c,index:f}=QP(u,o);return c&&f!==-1&&(u[c][f]={...u[c][f],...i,message:x4(i)}),u})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,f)=>(c[f]=i[f].map(p=>({...p,requestClose:!0})),c),{...i}))},close:o=>{r(i=>{const s=S4(i,o);return s?{...i,[s]:i[s].map(u=>u.id==o?{...u,requestClose:!0}:u)}:i})},isActive:o=>Boolean(QP(Ho.getState(),o).position)}}var JP=0;function xie(e,t={}){JP+=1;const n=t.id??JP,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Ho.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var wie=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:u,icon:c}=e,f=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return ee.createElement(v3,{addRole:!1,status:t,variant:n,id:f?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},E(b3,{children:c}),ee.createElement(ie.div,{flex:"1",maxWidth:"100%"},o&&E(S3,{id:f?.title,children:o}),u&&E(y3,{id:f?.description,display:"block",children:u})),i&&E(tw,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1}))};function x4(e={}){const{render:t,toastComponent:n=wie}=e;return o=>typeof t=="function"?t(o):E(n,{...o,...e})}function _ie(e,t){const n=o=>({...t,...o,position:mie(o?.position??t?.position,e)}),r=o=>{const i=n(o),s=x4(i);return Ho.notify(s,i)};return r.update=(o,i)=>{Ho.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(u=>r.update(s,{status:"success",duration:5e3,...qb(i.success,u)})).catch(u=>r.update(s,{status:"error",duration:5e3,...qb(i.error,u)}))},r.closeAll=Ho.closeAll,r.close=Ho.close,r.isActive=Ho.isActive,r}function Cie(e){const{theme:t}=NI();return _.exports.useMemo(()=>_ie(t.direction,e),[e,t.direction])}var kie={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},w4=_.exports.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:u=5e3,containerStyle:c,motionVariants:f=kie,toastSpacing:p="0.5rem"}=e,[h,m]=_.exports.useState(u),v=mU();xm(()=>{v||r?.()},[v]),xm(()=>{m(u)},[u]);const y=()=>m(null),S=()=>m(u),k=()=>{v&&o()};_.exports.useEffect(()=>{v&&i&&o()},[v,i,o]),pie(k,h);const x=_.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...c}),[c,p]),b=_.exports.useMemo(()=>vie(s),[s]);return ee.createElement(Ao.li,{layout:!0,className:"chakra-toast",variants:f,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:S,custom:{position:s},style:b},ee.createElement(ie.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:x},qb(n,{id:t,onClose:k})))});w4.displayName="ToastComponent";var Eie=e=>{const t=_.exports.useSyncExternalStore(Ho.subscribe,Ho.getState,Ho.getState),{children:n,motionVariants:r,component:o=w4,portalProps:i}=e,u=Object.keys(t).map(c=>{const f=t[c];return E("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${c}`,style:yie(c),children:E(Ui,{initial:!1,children:f.map(p=>E(o,{motionVariants:r,...p},p.id))})},c)});return ue(fr,{children:[n,E(Vs,{...i,children:u})]})};function Pie(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Aie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var Tie={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function hc(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var Kb=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Yb=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Oie(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnEsc:i=!0,onOpen:s,onClose:u,placement:c,id:f,isOpen:p,defaultIsOpen:h,arrowSize:m=10,arrowShadowColor:v,arrowPadding:y,modifiers:S,isDisabled:k,gutter:x,offset:b,direction:w,...P}=e,{isOpen:O,onOpen:M,onClose:N}=gX({isOpen:p,defaultIsOpen:h,onOpen:s,onClose:u}),{referenceRef:V,getPopperProps:K,getArrowInnerProps:W,getArrowProps:te}=hX({enabled:O,placement:c,arrowPadding:y,modifiers:S,gutter:x,offset:b,direction:w}),xe=_.exports.useId(),we=`tooltip-${f??xe}`,Ce=_.exports.useRef(null),ve=_.exports.useRef(),Pe=_.exports.useRef(),j=_.exports.useCallback(()=>{Pe.current&&(clearTimeout(Pe.current),Pe.current=void 0),N()},[N]),X=Iie(Ce,j),q=_.exports.useCallback(()=>{if(!k&&!ve.current){X();const ce=Yb(Ce);ve.current=ce.setTimeout(M,t)}},[X,k,M,t]),R=_.exports.useCallback(()=>{ve.current&&(clearTimeout(ve.current),ve.current=void 0);const ce=Yb(Ce);Pe.current=ce.setTimeout(j,n)},[n,j]),H=_.exports.useCallback(()=>{O&&r&&R()},[r,R,O]),ae=_.exports.useCallback(()=>{O&&o&&R()},[o,R,O]),se=_.exports.useCallback(ce=>{O&&ce.key==="Escape"&&R()},[O,R]);Ob(()=>Kb(Ce),"keydown",i?se:void 0),_.exports.useEffect(()=>()=>{clearTimeout(ve.current),clearTimeout(Pe.current)},[]),Ob(()=>Ce.current,"mouseleave",R);const he=_.exports.useCallback((ce={},Ae=null)=>({...ce,ref:Kn(Ce,Ae,V),onMouseEnter:hc(ce.onMouseEnter,q),onClick:hc(ce.onClick,H),onMouseDown:hc(ce.onMouseDown,ae),onFocus:hc(ce.onFocus,q),onBlur:hc(ce.onBlur,R),"aria-describedby":O?we:void 0}),[q,R,ae,O,we,H,V]),ge=_.exports.useCallback((ce={},Ae=null)=>K({...ce,style:{...ce.style,[xn.arrowSize.var]:m?`${m}px`:void 0,[xn.arrowShadowColor.var]:v}},Ae),[K,m,v]),Ee=_.exports.useCallback((ce={},Ae=null)=>{const Me={...ce.style,position:"relative",transformOrigin:xn.transformOrigin.varRef};return{ref:Ae,...P,...ce,id:we,role:"tooltip",style:Me}},[P,we]);return{isOpen:O,show:q,hide:R,getTriggerProps:he,getTooltipProps:Ee,getTooltipPositionerProps:ge,getArrowProps:te,getArrowInnerProps:W}}var Gy="chakra-ui:close-tooltip";function Iie(e,t){return _.exports.useEffect(()=>{const n=Kb(e);return n.addEventListener(Gy,t),()=>n.removeEventListener(Gy,t)},[t,e]),()=>{const n=Kb(e),r=Yb(e);n.dispatchEvent(new r.CustomEvent(Gy))}}var Rie=ie(Ao.div),Xb=de((e,t)=>{const n=Zn("Tooltip",e),r=bt(e),o=xx(),{children:i,label:s,shouldWrapChildren:u,"aria-label":c,hasArrow:f,bg:p,portalProps:h,background:m,backgroundColor:v,bgColor:y,...S}=r,k=m??v??p??y;if(k){n.bg=k;const V=l7(o,"colors",k);n[xn.arrowBg.var]=V}const x=Oie({...S,direction:o.direction}),b=typeof i=="string"||u;let w;if(b)w=ee.createElement(ie.span,{tabIndex:0,...x.getTriggerProps()},i);else{const V=_.exports.Children.only(i);w=_.exports.cloneElement(V,x.getTriggerProps(V.props,V.ref))}const P=!!c,O=x.getTooltipProps({},t),M=P?Pie(O,["role","id"]):O,N=Aie(O,["role","id"]);return s?ue(fr,{children:[w,E(Ui,{children:x.isOpen&&ee.createElement(Vs,{...h},ee.createElement(ie.div,{...x.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},ue(Rie,{variants:Tie,...M,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[s,P&&ee.createElement(ie.span,{srOnly:!0,...N},c),f&&ee.createElement(ie.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},ee.createElement(ie.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]})))})]}):E(fr,{children:i})});Xb.displayName="Tooltip";var Die=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetCSS:o=!0,theme:i={},environment:s,cssVarsRoot:u}=e,c=E(H3,{environment:s,children:t});return E(EV,{theme:i,cssVarsRoot:u,children:ue(rI,{colorModeManager:n,options:i.config,children:[o?E(iK,{}):E(oK,{}),E(AV,{}),r?E(n5,{zIndex:r,children:c}):c]})})};function Mie({children:e,theme:t=b4,toastOptions:n,...r}){return ue(Die,{theme:t,...r,children:[e,E(Eie,{...n})]})}function Nie(...e){let t=[...e],n=e[e.length-1];return cie(n)&&t.length>1?t=t.slice(0,t.length-1):n=b4,uV(...t.map(r=>o=>Nl(r)?r(o):Fie(o,r)))(n)}function Fie(...e){return Fa({},...e,_4)}function _4(e,t,n,r){if((Nl(e)||Nl(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=Nl(e)?e(...o):e,s=Nl(t)?t(...o):t;return Fa({},i,s,_4)}}function wo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Dw(e)?2:Mw(e)?3:0}function Ql(e,t){return ku(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lie(e,t){return ku(e)===2?e.get(t):e[t]}function C4(e,t,n){var r=ku(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function k4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Dw(e){return jie&&e instanceof Map}function Mw(e){return Uie&&e instanceof Set}function ds(e){return e.o||e.t}function Nw(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=P4(e);delete t[Ot];for(var n=Jl(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=$ie),Object.freeze(e),t&&Fs(e,function(n,r){return Fw(r,!0)},!0)),e}function $ie(){wo(2)}function Lw(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ti(e){var t=eS[e];return t||wo(18,e),t}function Bie(e,t){eS[e]||(eS[e]=t)}function Zb(){return Ff}function qy(e,t){t&&(ti("Patches"),e.u=[],e.s=[],e.v=t)}function Dm(e){Qb(e),e.p.forEach(zie),e.p=null}function Qb(e){e===Ff&&(Ff=e.l)}function eA(e){return Ff={p:[],l:Ff,h:e,m:!0,_:0}}function zie(e){var t=e[Ot];t.i===0||t.i===1?t.j():t.O=!0}function Ky(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ti("ES5").S(t,e,r),r?(n[Ot].P&&(Dm(t),wo(4)),Wi(e)&&(e=Mm(t,e),t.l||Nm(t,e)),t.u&&ti("Patches").M(n[Ot].t,e,t.u,t.s)):e=Mm(t,n,[]),Dm(t),t.u&&t.v(t.u,t.s),e!==E4?e:void 0}function Mm(e,t,n){if(Lw(t))return t;var r=t[Ot];if(!r)return Fs(t,function(i,s){return tA(e,r,t,i,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Nm(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Nw(r.k):r.o;Fs(r.i===3?new Set(o):o,function(i,s){return tA(e,r,o,i,s,n)}),Nm(e,o,!1),n&&e.u&&ti("Patches").R(r,n,e.u,e.s)}return r.o}function tA(e,t,n,r,o,i){if(Va(o)){var s=Mm(e,o,i&&t&&t.i!==3&&!Ql(t.D,r)?i.concat(r):void 0);if(C4(n,r,s),!Va(s))return;e.m=!1}if(Wi(o)&&!Lw(o)){if(!e.h.F&&e._<1)return;Mm(e,o),t&&t.A.l||Nm(e,o)}}function Nm(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Fw(t,n)}function Yy(e,t){var n=e[Ot];return(n?ds(n):e)[t]}function nA(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ga(e){e.P||(e.P=!0,e.l&&ga(e.l))}function Xy(e){e.o||(e.o=Nw(e.t))}function Jb(e,t,n){var r=Dw(t)?ti("MapSet").N(t,n):Mw(t)?ti("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),u={i:s?1:0,A:i?i.A:Zb(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=u,f=Lf;s&&(c=[u],f=Cc);var p=Proxy.revocable(c,f),h=p.revoke,m=p.proxy;return u.k=m,u.j=h,m}(t,n):ti("ES5").J(t,n);return(n?n.A:Zb()).p.push(r),r}function Vie(e){return Va(e)||wo(22,e),function t(n){if(!Wi(n))return n;var r,o=n[Ot],i=ku(n);if(o){if(!o.P&&(o.i<4||!ti("ES5").K(o)))return o.t;o.I=!0,r=rA(n,i),o.I=!1}else r=rA(n,i);return Fs(r,function(s,u){o&&Lie(o.t,s)===u||C4(r,s,t(u))}),i===3?new Set(r):r}(e)}function rA(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nw(e)}function Wie(){function e(i,s){var u=o[i];return u?u.enumerable=s:o[i]=u={configurable:!0,enumerable:s,get:function(){var c=this[Ot];return Lf.get(c,i)},set:function(c){var f=this[Ot];Lf.set(f,i,c)}},u}function t(i){for(var s=i.length-1;s>=0;s--){var u=i[s][Ot];if(!u.P)switch(u.i){case 5:r(u)&&ga(u);break;case 4:n(u)&&ga(u)}}}function n(i){for(var s=i.t,u=i.k,c=Jl(u),f=c.length-1;f>=0;f--){var p=c[f];if(p!==Ot){var h=s[p];if(h===void 0&&!Ql(s,p))return!0;var m=u[p],v=m&&m[Ot];if(v?v.t!==h:!k4(m,h))return!0}}var y=!!s[Ot];return c.length!==Jl(s).length+(y?0:1)}function r(i){var s=i.k;if(s.length!==i.t.length)return!0;var u=Object.getOwnPropertyDescriptor(s,s.length-1);if(u&&!u.get)return!0;for(var c=0;c1?x-1:0),w=1;w1?p-1:0),m=1;m=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=ti("Patches").$;return Va(n)?s(n,r):this.produce(n,function(u){return s(u,r)})},e}(),Ir=new Gie,A4=Ir.produce;Ir.produceWithPatches.bind(Ir);Ir.setAutoFreeze.bind(Ir);Ir.setUseProxies.bind(Ir);Ir.applyPatches.bind(Ir);Ir.createDraft.bind(Ir);Ir.finishDraft.bind(Ir);function sA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lA(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Dn(1));return n(Bw)(e,t)}if(typeof e!="function")throw new Error(Dn(2));var o=e,i=t,s=[],u=s,c=!1;function f(){u===s&&(u=s.slice())}function p(){if(c)throw new Error(Dn(3));return i}function h(S){if(typeof S!="function")throw new Error(Dn(4));if(c)throw new Error(Dn(5));var k=!0;return f(),u.push(S),function(){if(!!k){if(c)throw new Error(Dn(6));k=!1,f();var b=u.indexOf(S);u.splice(b,1),s=null}}}function m(S){if(!qie(S))throw new Error(Dn(7));if(typeof S.type>"u")throw new Error(Dn(8));if(c)throw new Error(Dn(9));try{c=!0,i=o(i,S)}finally{c=!1}for(var k=s=u,x=0;x"u")throw new Error(Dn(12));if(typeof n(void 0,{type:Fm.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Dn(13))})}function T4(e){for(var t=Object.keys(e),n={},r=0;r"u")throw f&&f.type,new Error(Dn(14));h[v]=k,p=p||k!==S}return p=p||i.length!==Object.keys(c).length,p?h:c}}function Lm(){for(var e=arguments.length,t=new Array(e),n=0;n-1){var f=n[c];return c>0&&(n.splice(c,1),n.unshift(f)),f.value}return $m}function o(u,c){r(u)===$m&&(n.unshift({key:u,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var Qie=function(t,n){return t===n};function Jie(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kae:Cae;M4.useSyncExternalStore=mu.useSyncExternalStore!==void 0?mu.useSyncExternalStore:Eae;(function(e){e.exports=M4})(D4);var N4={exports:{}},F4={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Xg=_.exports,Pae=D4.exports;function Aae(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tae=typeof Object.is=="function"?Object.is:Aae,Oae=Pae.useSyncExternalStore,Iae=Xg.useRef,Rae=Xg.useEffect,Dae=Xg.useMemo,Mae=Xg.useDebugValue;F4.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Iae(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Dae(function(){function c(v){if(!f){if(f=!0,p=v,v=r(v),o!==void 0&&s.hasValue){var y=s.value;if(o(y,v))return h=y}return h=v}if(y=h,Tae(p,v))return y;var S=r(v);return o!==void 0&&o(y,S)?y:(p=v,h=S)}var f=!1,p,h,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,o]);var u=Oae(e,i[0],i[1]);return Rae(function(){s.hasValue=!0,s.value=u},[u]),Mae(u),u};(function(e){e.exports=F4})(N4);function Nae(e){e()}let L4=Nae;const Fae=e=>L4=e,Lae=()=>L4,Wa=ee.createContext(null);function $4(){return _.exports.useContext(Wa)}const $ae=()=>{throw new Error("uSES not initialized!")};let B4=$ae;const Bae=e=>{B4=e},zae=(e,t)=>e===t;function Vae(e=Wa){const t=e===Wa?$4:()=>_.exports.useContext(e);return function(r,o=zae){const{store:i,subscription:s,getServerState:u}=t(),c=B4(s.addNestedSub,i.getState,u||i.getState,r,o);return _.exports.useDebugValue(c),c}}const Wae=Vae();var jae={exports:{}},dt={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ww=Symbol.for("react.element"),jw=Symbol.for("react.portal"),Zg=Symbol.for("react.fragment"),Qg=Symbol.for("react.strict_mode"),Jg=Symbol.for("react.profiler"),ev=Symbol.for("react.provider"),tv=Symbol.for("react.context"),Uae=Symbol.for("react.server_context"),nv=Symbol.for("react.forward_ref"),rv=Symbol.for("react.suspense"),ov=Symbol.for("react.suspense_list"),iv=Symbol.for("react.memo"),av=Symbol.for("react.lazy"),Hae=Symbol.for("react.offscreen"),z4;z4=Symbol.for("react.module.reference");function io(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ww:switch(e=e.type,e){case Zg:case Jg:case Qg:case rv:case ov:return e;default:switch(e=e&&e.$$typeof,e){case Uae:case tv:case nv:case av:case iv:case ev:return e;default:return t}}case jw:return t}}}dt.ContextConsumer=tv;dt.ContextProvider=ev;dt.Element=Ww;dt.ForwardRef=nv;dt.Fragment=Zg;dt.Lazy=av;dt.Memo=iv;dt.Portal=jw;dt.Profiler=Jg;dt.StrictMode=Qg;dt.Suspense=rv;dt.SuspenseList=ov;dt.isAsyncMode=function(){return!1};dt.isConcurrentMode=function(){return!1};dt.isContextConsumer=function(e){return io(e)===tv};dt.isContextProvider=function(e){return io(e)===ev};dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ww};dt.isForwardRef=function(e){return io(e)===nv};dt.isFragment=function(e){return io(e)===Zg};dt.isLazy=function(e){return io(e)===av};dt.isMemo=function(e){return io(e)===iv};dt.isPortal=function(e){return io(e)===jw};dt.isProfiler=function(e){return io(e)===Jg};dt.isStrictMode=function(e){return io(e)===Qg};dt.isSuspense=function(e){return io(e)===rv};dt.isSuspenseList=function(e){return io(e)===ov};dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zg||e===Jg||e===Qg||e===rv||e===ov||e===Hae||typeof e=="object"&&e!==null&&(e.$$typeof===av||e.$$typeof===iv||e.$$typeof===ev||e.$$typeof===tv||e.$$typeof===nv||e.$$typeof===z4||e.getModuleId!==void 0)};dt.typeOf=io;(function(e){e.exports=dt})(jae);function Gae(){const e=Lae();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const pA={notify(){},get:()=>[]};function qae(e,t){let n,r=pA;function o(h){return c(),r.subscribe(h)}function i(){r.notify()}function s(){p.onStateChange&&p.onStateChange()}function u(){return Boolean(n)}function c(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=Gae())}function f(){n&&(n(),n=void 0,r.clear(),r=pA)}const p={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:s,isSubscribed:u,trySubscribe:c,tryUnsubscribe:f,getListeners:()=>r};return p}const Kae=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yae=Kae?_.exports.useLayoutEffect:_.exports.useEffect;function Xae({store:e,context:t,children:n,serverState:r}){const o=_.exports.useMemo(()=>{const u=qae(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0}},[e,r]),i=_.exports.useMemo(()=>e.getState(),[e]);return Yae(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),i!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,i]),E((t||Wa).Provider,{value:o,children:n})}function V4(e=Wa){const t=e===Wa?$4:()=>_.exports.useContext(e);return function(){const{store:r}=t();return r}}const Zae=V4();function Qae(e=Wa){const t=e===Wa?Zae:V4(e);return function(){return t().dispatch}}const Jae=Qae();Bae(N4.exports.useSyncExternalStoreWithSelector);Fae(Vf.exports.unstable_batchedUpdates);var Uw="persist:",W4="persist/FLUSH",Hw="persist/REHYDRATE",j4="persist/PAUSE",U4="persist/PERSIST",H4="persist/PURGE",G4="persist/REGISTER",ese=-1;function Ph(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ph=function(n){return typeof n}:Ph=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ph(e)}function hA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tse(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function dse(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var pse=5e3;function q4(e,t){var n=e.version!==void 0?e.version:ese;e.debug;var r=e.stateReconciler===void 0?rse:e.stateReconciler,o=e.getStoredState||ase,i=e.timeout!==void 0?e.timeout:pse,s=null,u=!1,c=!0,f=function(h){return h._persist.rehydrated&&s&&!c&&s.update(h),h};return function(p,h){var m=p||{},v=m._persist,y=fse(m,["_persist"]),S=y;if(h.type===U4){var k=!1,x=function(V,K){k||(h.rehydrate(e.key,V,K),k=!0)};if(i&&setTimeout(function(){!k&&x(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),c=!1,s||(s=ose(e)),v)return ki({},t(S,h),{_persist:v});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),o(e).then(function(N){var V=e.migrate||function(K,W){return Promise.resolve(K)};V(N,n).then(function(K){x(K)},function(K){x(void 0,K)})},function(N){x(void 0,N)}),ki({},t(S,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===H4)return u=!0,h.result(lse(e)),ki({},t(S,h),{_persist:v});if(h.type===W4)return h.result(s&&s.flush()),ki({},t(S,h),{_persist:v});if(h.type===j4)c=!0;else if(h.type===Hw){if(u)return ki({},S,{_persist:ki({},v,{rehydrated:!0})});if(h.key===e.key){var b=t(S,h),w=h.payload,P=r!==!1&&w!==void 0?r(w,p,b,e):b,O=ki({},P,{_persist:ki({},v,{rehydrated:!0})});return f(O)}}}if(!v)return t(p,h);var M=t(S,h);return M===S?p:f(ki({},M,{_persist:v}))}}function gA(e){return gse(e)||mse(e)||hse()}function hse(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function mse(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function gse(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:K4,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case G4:return nS({},t,{registry:[].concat(gA(t.registry),[n.key])});case Hw:var r=t.registry.indexOf(n.key),o=gA(t.registry);return o.splice(r,1),nS({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function bse(e,t,n){var r=n||!1,o=Bw(yse,K4,t&&t.enhancer?t.enhancer:void 0),i=function(f){o.dispatch({type:G4,key:f})},s=function(f,p,h){var m={type:Hw,payload:p,err:h,key:f};e.dispatch(m),o.dispatch(m),r&&u.getState().bootstrapped&&(r(),r=!1)},u=nS({},o,{purge:function(){var f=[];return e.dispatch({type:H4,result:function(h){f.push(h)}}),Promise.all(f)},flush:function(){var f=[];return e.dispatch({type:W4,result:function(h){f.push(h)}}),Promise.all(f)},pause:function(){e.dispatch({type:j4})},persist:function(){e.dispatch({type:U4,register:i,rehydrate:s})}});return t&&t.manualPersist||u.persist(),u}var Gw={},qw={};qw.__esModule=!0;qw.default=wse;function Ah(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ah=function(n){return typeof n}:Ah=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ah(e)}function Jy(){}var Sse={getItem:Jy,setItem:Jy,removeItem:Jy};function xse(e){if((typeof self>"u"?"undefined":Ah(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function wse(e){var t="".concat(e,"Storage");return xse(t)?self[t]:Sse}Gw.__esModule=!0;Gw.default=kse;var _se=Cse(qw);function Cse(e){return e&&e.__esModule?e:{default:e}}function kse(e){var t=(0,_se.default)(e);return{getItem:function(r){return new Promise(function(o,i){o(t.getItem(r))})},setItem:function(r,o){return new Promise(function(i,s){i(t.setItem(r,o))})},removeItem:function(r){return new Promise(function(o,i){o(t.removeItem(r))})}}}var Kw=void 0,Ese=Pse(Gw);function Pse(e){return e&&e.__esModule?e:{default:e}}var Ase=(0,Ese.default)("local");Kw=Ase;const Y4={prompt:"",iterations:1,steps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",threshold:0,perlin:0,seed:0,seamless:!1,shouldUseInitImage:!1,img2imgStrength:.75,initialImagePath:"",maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variationAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunGFPGAN:!1,gfpganStrength:.8,shouldRandomizeSeed:!0},Tse=Y4,X4=zw({name:"sd",initialState:Tse,reducers:{setPrompt:(e,t)=>{e.prompt=t.payload},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{e.steps=t.payload},setCfgScale:(e,t)=>{e.cfgScale=t.payload},setThreshold:(e,t)=>{e.threshold=t.payload},setPerlin:(e,t)=>{e.perlin=t.payload},setHeight:(e,t)=>{e.height=t.payload},setWidth:(e,t)=>{e.width=t.payload},setSampler:(e,t)=>{e.sampler=t.payload},setSeed:(e,t)=>{e.seed=t.payload,e.shouldRandomizeSeed=!1},setImg2imgStrength:(e,t)=>{e.img2imgStrength=t.payload},setGfpganStrength:(e,t)=>{e.gfpganStrength=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setShouldUseInitImage:(e,t)=>{e.shouldUseInitImage=t.payload},setInitialImagePath:(e,t)=>{const n=t.payload;e.shouldUseInitImage=!!n,e.initialImagePath=n},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:n,value:r}=t.payload,o={...e,[n]:r};return n==="seed"&&(o.shouldRandomizeSeed=!1),n==="initialImagePath"&&r===""&&(o.shouldUseInitImage=!1),o},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllParameters:(e,t)=>{const{prompt:n,steps:r,cfgScale:o,threshold:i,perlin:s,height:u,width:c,sampler:f,seed:p,img2imgStrength:h,gfpganStrength:m,upscalingLevel:v,upscalingStrength:y,initialImagePath:S,maskPath:k,seamless:x,shouldFitToWidthHeight:b}=t.payload;e.prompt=n??e.prompt,e.steps=r||e.steps,e.cfgScale=o||e.cfgScale,e.threshold=i||e.threshold,e.perlin=s||e.perlin,e.width=c||e.width,e.height=u||e.height,e.sampler=f||e.sampler,e.seed=p??e.seed,e.seamless=x??e.seamless,e.shouldFitToWidthHeight=b??e.shouldFitToWidthHeight,e.img2imgStrength=h??e.img2imgStrength,e.gfpganStrength=m??e.gfpganStrength,e.upscalingLevel=v??e.upscalingLevel,e.upscalingStrength=y??e.upscalingStrength,e.initialImagePath=S??e.initialImagePath,e.maskPath=k??e.maskPath,p&&(e.shouldRandomizeSeed=!1),e.shouldRunGFPGAN=!!m,e.shouldRunESRGAN=!!v,e.shouldGenerateVariations=!1,e.shouldUseInitImage=!!S},resetSDState:e=>({...e,...Y4}),setShouldRunGFPGAN:(e,t)=>{e.shouldRunGFPGAN=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload}}}),{setPrompt:Ose,setIterations:Ise,setSteps:Rse,setCfgScale:Dse,setThreshold:Mse,setPerlin:Nse,setHeight:Fse,setWidth:Lse,setSampler:$se,setSeed:zm,setSeamless:Bse,setImg2imgStrength:zse,setGfpganStrength:Vse,setUpscalingLevel:Wse,setUpscalingStrength:jse,setShouldUseInitImage:Use,setInitialImagePath:Yw,setMaskPath:Z4,resetSeed:Bfe,resetSDState:zfe,setShouldFitToWidthHeight:Hse,setParameter:Gse,setShouldGenerateVariations:qse,setSeedWeights:Kse,setVariationAmount:Yse,setAllParameters:Xw,setShouldRunGFPGAN:Xse,setShouldRunESRGAN:Zse,setShouldRandomizeSeed:Qse}=X4.actions,Jse=X4.reducer;var Ut={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,v=4,y=1,S=2,k=1,x=2,b=4,w=8,P=16,O=32,M=64,N=128,V=256,K=512,W=30,te="...",xe=800,fe=16,we=1,Ce=2,ve=3,Pe=1/0,j=9007199254740991,X=17976931348623157e292,q=0/0,R=4294967295,H=R-1,ae=R>>>1,se=[["ary",N],["bind",k],["bindKey",x],["curry",w],["curryRight",P],["flip",K],["partial",O],["partialRight",M],["rearg",V]],he="[object Arguments]",ge="[object Array]",Ee="[object AsyncFunction]",ce="[object Boolean]",Ae="[object Date]",Me="[object DOMException]",mt="[object Error]",Dt="[object Function]",En="[object GeneratorFunction]",ye="[object Map]",Mt="[object Number]",Qt="[object Null]",it="[object Object]",hr="[object Promise]",mr="[object Proxy]",St="[object RegExp]",Ct="[object Set]",Jt="[object String]",zt="[object Symbol]",le="[object Undefined]",_e="[object WeakMap]",at="[object WeakSet]",nt="[object ArrayBuffer]",ne="[object DataView]",Ve="[object Float32Array]",xt="[object Float64Array]",hn="[object Int8Array]",Pn="[object Int16Array]",gr="[object Int32Array]",To="[object Uint8Array]",li="[object Uint8ClampedArray]",Ln="[object Uint16Array]",$r="[object Uint32Array]",Ka=/\b__p \+= '';/g,Us=/\b(__p \+=) '' \+/g,uv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pu=/&(?:amp|lt|gt|quot|#39);/g,Hi=/[&<>"']/g,cv=RegExp(Pu.source),ui=RegExp(Hi.source),fv=/<%-([\s\S]+?)%>/g,dv=/<%([\s\S]+?)%>/g,sd=/<%=([\s\S]+?)%>/g,pv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hv=/^\w*$/,ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Au=/[\\^$.*+?()[\]{}|]/g,mv=RegExp(Au.source),Tu=/^\s+/,gv=/\s/,vv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gi=/\{\n\/\* \[wrapped with (.+)\] \*/,yv=/,? & /,bv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Sv=/[()=,{}\[\]\/\s]/,xv=/\\(\\)?/g,wv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ci=/\w*$/,_v=/^[-+]0x[0-9a-f]+$/i,Cv=/^0b[01]+$/i,kv=/^\[object .+?Constructor\]$/,Ev=/^0o[0-7]+$/i,Pv=/^(?:0|[1-9]\d*)$/,Av=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qi=/($^)/,Tv=/['\n\r\u2028\u2029\\]/g,fi="\\ud800-\\udfff",Ou="\\u0300-\\u036f",Ov="\\ufe20-\\ufe2f",Hs="\\u20d0-\\u20ff",Iu=Ou+Ov+Hs,ld="\\u2700-\\u27bf",ud="a-z\\xdf-\\xf6\\xf8-\\xff",Iv="\\xac\\xb1\\xd7\\xf7",cd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rv="\\u2000-\\u206f",Dv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fd="A-Z\\xc0-\\xd6\\xd8-\\xde",dd="\\ufe0e\\ufe0f",pd=Iv+cd+Rv+Dv,Ru="['\u2019]",Mv="["+fi+"]",hd="["+pd+"]",Gs="["+Iu+"]",md="\\d+",qs="["+ld+"]",Ks="["+ud+"]",gd="[^"+fi+pd+md+ld+ud+fd+"]",Du="\\ud83c[\\udffb-\\udfff]",vd="(?:"+Gs+"|"+Du+")",yd="[^"+fi+"]",Mu="(?:\\ud83c[\\udde6-\\uddff]){2}",Nu="[\\ud800-\\udbff][\\udc00-\\udfff]",di="["+fd+"]",bd="\\u200d",Sd="(?:"+Ks+"|"+gd+")",Nv="(?:"+di+"|"+gd+")",Ys="(?:"+Ru+"(?:d|ll|m|re|s|t|ve))?",xd="(?:"+Ru+"(?:D|LL|M|RE|S|T|VE))?",wd=vd+"?",_d="["+dd+"]?",Xs="(?:"+bd+"(?:"+[yd,Mu,Nu].join("|")+")"+_d+wd+")*",Fu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Zs=_d+wd+Xs,Fv="(?:"+[qs,Mu,Nu].join("|")+")"+Zs,Cd="(?:"+[yd+Gs+"?",Gs,Mu,Nu,Mv].join("|")+")",$u=RegExp(Ru,"g"),kd=RegExp(Gs,"g"),so=RegExp(Du+"(?="+Du+")|"+Cd+Zs,"g"),Ya=RegExp([di+"?"+Ks+"+"+Ys+"(?="+[hd,di,"$"].join("|")+")",Nv+"+"+xd+"(?="+[hd,di+Sd,"$"].join("|")+")",di+"?"+Sd+"+"+Ys,di+"+"+xd,Lu,Fu,md,Fv].join("|"),"g"),Lv=RegExp("["+bd+fi+Iu+dd+"]"),Ed=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$v=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Pd=-1,gt={};gt[Ve]=gt[xt]=gt[hn]=gt[Pn]=gt[gr]=gt[To]=gt[li]=gt[Ln]=gt[$r]=!0,gt[he]=gt[ge]=gt[nt]=gt[ce]=gt[ne]=gt[Ae]=gt[mt]=gt[Dt]=gt[ye]=gt[Mt]=gt[it]=gt[St]=gt[Ct]=gt[Jt]=gt[_e]=!1;var pt={};pt[he]=pt[ge]=pt[nt]=pt[ne]=pt[ce]=pt[Ae]=pt[Ve]=pt[xt]=pt[hn]=pt[Pn]=pt[gr]=pt[ye]=pt[Mt]=pt[it]=pt[St]=pt[Ct]=pt[Jt]=pt[zt]=pt[To]=pt[li]=pt[Ln]=pt[$r]=!0,pt[mt]=pt[Dt]=pt[_e]=!1;var Ad={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Bv={"&":"&","<":"<",">":">",'"':""","'":"'"},I={"&":"&","<":"<",">":">",""":'"',"'":"'"},L={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},U=parseFloat,me=parseInt,We=typeof Ai=="object"&&Ai&&Ai.Object===Object&&Ai,st=typeof self=="object"&&self&&self.Object===Object&&self,Fe=We||st||Function("return this")(),Be=t&&!t.nodeType&&t,Ze=Be&&!0&&e&&!e.nodeType&&e,$n=Ze&&Ze.exports===Be,mn=$n&&We.process,un=function(){try{var B=Ze&&Ze.require&&Ze.require("util").types;return B||mn&&mn.binding&&mn.binding("util")}catch{}}(),Qs=un&&un.isArrayBuffer,Js=un&&un.isDate,Bu=un&&un.isMap,e_=un&&un.isRegExp,t_=un&&un.isSet,n_=un&&un.isTypedArray;function vr(B,Y,G){switch(G.length){case 0:return B.call(Y);case 1:return B.call(Y,G[0]);case 2:return B.call(Y,G[0],G[1]);case 3:return B.call(Y,G[0],G[1],G[2])}return B.apply(Y,G)}function LD(B,Y,G,be){for(var De=-1,Qe=B==null?0:B.length;++De-1}function zv(B,Y,G){for(var be=-1,De=B==null?0:B.length;++be-1;);return G}function c_(B,Y){for(var G=B.length;G--&&el(Y,B[G],0)>-1;);return G}function GD(B,Y){for(var G=B.length,be=0;G--;)B[G]===Y&&++be;return be}var qD=Uv(Ad),KD=Uv(Bv);function YD(B){return"\\"+L[B]}function XD(B,Y){return B==null?n:B[Y]}function tl(B){return Lv.test(B)}function ZD(B){return Ed.test(B)}function QD(B){for(var Y,G=[];!(Y=B.next()).done;)G.push(Y.value);return G}function Kv(B){var Y=-1,G=Array(B.size);return B.forEach(function(be,De){G[++Y]=[De,be]}),G}function f_(B,Y){return function(G){return B(Y(G))}}function Xi(B,Y){for(var G=-1,be=B.length,De=0,Qe=[];++G-1}function BM(a,l){var d=this.__data__,g=Gd(d,a);return g<0?(++this.size,d.push([a,l])):d[g][1]=l,this}pi.prototype.clear=NM,pi.prototype.delete=FM,pi.prototype.get=LM,pi.prototype.has=$M,pi.prototype.set=BM;function hi(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l=l?a:l)),a}function Wr(a,l,d,g,C,T){var D,F=l&h,z=l&m,Z=l&v;if(d&&(D=C?d(a,g,C,T):d(a)),D!==n)return D;if(!Nt(a))return a;var Q=Ne(a);if(Q){if(D=jN(a),!F)return Qn(a,D)}else{var re=Tn(a),pe=re==Dt||re==En;if(na(a))return q_(a,F);if(re==it||re==he||pe&&!C){if(D=z||pe?{}:d2(a),!F)return z?RN(a,tN(D,a)):IN(a,__(D,a))}else{if(!pt[re])return C?a:{};D=UN(a,re,F)}}T||(T=new uo);var ke=T.get(a);if(ke)return ke;T.set(a,D),V2(a)?a.forEach(function(Ie){D.add(Wr(Ie,l,d,Ie,a,T))}):B2(a)&&a.forEach(function(Ie,je){D.set(je,Wr(Ie,l,d,je,a,T))});var Oe=Z?z?S0:b0:z?er:cn,$e=Q?n:Oe(a);return Br($e||a,function(Ie,je){$e&&(je=Ie,Ie=a[je]),Gu(D,je,Wr(Ie,l,d,je,a,T))}),D}function nN(a){var l=cn(a);return function(d){return C_(d,a,l)}}function C_(a,l,d){var g=d.length;if(a==null)return!g;for(a=vt(a);g--;){var C=d[g],T=l[C],D=a[C];if(D===n&&!(C in a)||!T(D))return!1}return!0}function k_(a,l,d){if(typeof a!="function")throw new zr(s);return Ju(function(){a.apply(n,d)},l)}function qu(a,l,d,g){var C=-1,T=Td,D=!0,F=a.length,z=[],Z=l.length;if(!F)return z;d&&(l=Tt(l,yr(d))),g?(T=zv,D=!1):l.length>=o&&(T=zu,D=!1,l=new Qa(l));e:for(;++CC?0:C+d),g=g===n||g>C?C:Le(g),g<0&&(g+=C),g=d>g?0:j2(g);d0&&d(F)?l>1?gn(F,l-1,d,g,C):Yi(C,F):g||(C[C.length]=F)}return C}var t0=J_(),A_=J_(!0);function Oo(a,l){return a&&t0(a,l,cn)}function n0(a,l){return a&&A_(a,l,cn)}function Kd(a,l){return Ki(l,function(d){return bi(a[d])})}function es(a,l){l=ea(l,a);for(var d=0,g=l.length;a!=null&&dl}function iN(a,l){return a!=null&<.call(a,l)}function aN(a,l){return a!=null&&l in vt(a)}function sN(a,l,d){return a>=An(l,d)&&a=120&&Q.length>=120)?new Qa(D&&Q):n}Q=a[0];var re=-1,pe=F[0];e:for(;++re-1;)F!==a&&Bd.call(F,z,1),Bd.call(a,z,1);return a}function B_(a,l){for(var d=a?l.length:0,g=d-1;d--;){var C=l[d];if(d==g||C!==T){var T=C;yi(C)?Bd.call(a,C,1):d0(a,C)}}return a}function u0(a,l){return a+Wd(b_()*(l-a+1))}function SN(a,l,d,g){for(var C=-1,T=on(Vd((l-a)/(d||1)),0),D=G(T);T--;)D[g?T:++C]=a,a+=d;return D}function c0(a,l){var d="";if(!a||l<1||l>j)return d;do l%2&&(d+=a),l=Wd(l/2),l&&(a+=a);while(l);return d}function ze(a,l){return P0(m2(a,l,tr),a+"")}function xN(a){return w_(dl(a))}function wN(a,l){var d=dl(a);return ip(d,Ja(l,0,d.length))}function Xu(a,l,d,g){if(!Nt(a))return a;l=ea(l,a);for(var C=-1,T=l.length,D=T-1,F=a;F!=null&&++CC?0:C+l),d=d>C?C:d,d<0&&(d+=C),C=l>d?0:d-l>>>0,l>>>=0;for(var T=G(C);++g>>1,D=a[T];D!==null&&!Sr(D)&&(d?D<=l:D=o){var Z=l?null:FN(a);if(Z)return Id(Z);D=!1,C=zu,z=new Qa}else z=l?[]:F;e:for(;++g=g?a:jr(a,l,d)}var G_=pM||function(a){return Fe.clearTimeout(a)};function q_(a,l){if(l)return a.slice();var d=a.length,g=h_?h_(d):new a.constructor(d);return a.copy(g),g}function g0(a){var l=new a.constructor(a.byteLength);return new Ld(l).set(new Ld(a)),l}function PN(a,l){var d=l?g0(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.byteLength)}function AN(a){var l=new a.constructor(a.source,ci.exec(a));return l.lastIndex=a.lastIndex,l}function TN(a){return Hu?vt(Hu.call(a)):{}}function K_(a,l){var d=l?g0(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.length)}function Y_(a,l){if(a!==l){var d=a!==n,g=a===null,C=a===a,T=Sr(a),D=l!==n,F=l===null,z=l===l,Z=Sr(l);if(!F&&!Z&&!T&&a>l||T&&D&&z&&!F&&!Z||g&&D&&z||!d&&z||!C)return 1;if(!g&&!T&&!Z&&a=F)return z;var Z=d[g];return z*(Z=="desc"?-1:1)}}return a.index-l.index}function X_(a,l,d,g){for(var C=-1,T=a.length,D=d.length,F=-1,z=l.length,Z=on(T-D,0),Q=G(z+Z),re=!g;++F1?d[C-1]:n,D=C>2?d[2]:n;for(T=a.length>3&&typeof T=="function"?(C--,T):n,D&&zn(d[0],d[1],D)&&(T=C<3?n:T,C=1),l=vt(l);++g-1?C[T?l[D]:D]:n}}function n2(a){return vi(function(l){var d=l.length,g=d,C=Vr.prototype.thru;for(a&&l.reverse();g--;){var T=l[g];if(typeof T!="function")throw new zr(s);if(C&&!D&&rp(T)=="wrapper")var D=new Vr([],!0)}for(g=D?g:d;++g1&&qe.reverse(),Q&&zF))return!1;var Z=T.get(a),Q=T.get(l);if(Z&&Q)return Z==l&&Q==a;var re=-1,pe=!0,ke=d&S?new Qa:n;for(T.set(a,l),T.set(l,a);++re1?"& ":"")+l[g],l=l.join(d>2?", ":" "),a.replace(vv,`{ -/* [wrapped with `+l+`] */ -`)}function GN(a){return Ne(a)||rs(a)||!!(v_&&a&&a[v_])}function yi(a,l){var d=typeof a;return l=l??j,!!l&&(d=="number"||d!="symbol"&&Pv.test(a))&&a>-1&&a%1==0&&a0){if(++l>=xe)return arguments[0]}else l=0;return a.apply(n,arguments)}}function ip(a,l){var d=-1,g=a.length,C=g-1;for(l=l===n?g:l;++d1?a[l-1]:n;return d=typeof d=="function"?(a.pop(),d):n,P2(a,d)});function A2(a){var l=A(a);return l.__chain__=!0,l}function r6(a,l){return l(a),a}function ap(a,l){return l(a)}var o6=vi(function(a){var l=a.length,d=l?a[0]:0,g=this.__wrapped__,C=function(T){return e0(T,a)};return l>1||this.__actions__.length||!(g instanceof He)||!yi(d)?this.thru(C):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:ap,args:[C],thisArg:n}),new Vr(g,this.__chain__).thru(function(T){return l&&!T.length&&T.push(n),T}))});function i6(){return A2(this)}function a6(){return new Vr(this.value(),this.__chain__)}function s6(){this.__values__===n&&(this.__values__=W2(this.value()));var a=this.__index__>=this.__values__.length,l=a?n:this.__values__[this.__index__++];return{done:a,value:l}}function l6(){return this}function u6(a){for(var l,d=this;d instanceof Hd;){var g=x2(d);g.__index__=0,g.__values__=n,l?C.__wrapped__=g:l=g;var C=g;d=d.__wrapped__}return C.__wrapped__=a,l}function c6(){var a=this.__wrapped__;if(a instanceof He){var l=a;return this.__actions__.length&&(l=new He(this)),l=l.reverse(),l.__actions__.push({func:ap,args:[A0],thisArg:n}),new Vr(l,this.__chain__)}return this.thru(A0)}function f6(){return U_(this.__wrapped__,this.__actions__)}var d6=Qd(function(a,l,d){lt.call(a,d)?++a[d]:mi(a,d,1)});function p6(a,l,d){var g=Ne(a)?r_:rN;return d&&zn(a,l,d)&&(l=n),g(a,Te(l,3))}function h6(a,l){var d=Ne(a)?Ki:P_;return d(a,Te(l,3))}var m6=t2(w2),g6=t2(_2);function v6(a,l){return gn(sp(a,l),1)}function y6(a,l){return gn(sp(a,l),Pe)}function b6(a,l,d){return d=d===n?1:Le(d),gn(sp(a,l),d)}function T2(a,l){var d=Ne(a)?Br:Qi;return d(a,Te(l,3))}function O2(a,l){var d=Ne(a)?$D:E_;return d(a,Te(l,3))}var S6=Qd(function(a,l,d){lt.call(a,d)?a[d].push(l):mi(a,d,[l])});function x6(a,l,d,g){a=Jn(a)?a:dl(a),d=d&&!g?Le(d):0;var C=a.length;return d<0&&(d=on(C+d,0)),dp(a)?d<=C&&a.indexOf(l,d)>-1:!!C&&el(a,l,d)>-1}var w6=ze(function(a,l,d){var g=-1,C=typeof l=="function",T=Jn(a)?G(a.length):[];return Qi(a,function(D){T[++g]=C?vr(l,D,d):Ku(D,l,d)}),T}),_6=Qd(function(a,l,d){mi(a,d,l)});function sp(a,l){var d=Ne(a)?Tt:D_;return d(a,Te(l,3))}function C6(a,l,d,g){return a==null?[]:(Ne(l)||(l=l==null?[]:[l]),d=g?n:d,Ne(d)||(d=d==null?[]:[d]),L_(a,l,d))}var k6=Qd(function(a,l,d){a[d?0:1].push(l)},function(){return[[],[]]});function E6(a,l,d){var g=Ne(a)?Vv:s_,C=arguments.length<3;return g(a,Te(l,4),d,C,Qi)}function P6(a,l,d){var g=Ne(a)?BD:s_,C=arguments.length<3;return g(a,Te(l,4),d,C,E_)}function A6(a,l){var d=Ne(a)?Ki:P_;return d(a,cp(Te(l,3)))}function T6(a){var l=Ne(a)?w_:xN;return l(a)}function O6(a,l,d){(d?zn(a,l,d):l===n)?l=1:l=Le(l);var g=Ne(a)?QM:wN;return g(a,l)}function I6(a){var l=Ne(a)?JM:CN;return l(a)}function R6(a){if(a==null)return 0;if(Jn(a))return dp(a)?nl(a):a.length;var l=Tn(a);return l==ye||l==Ct?a.size:a0(a).length}function D6(a,l,d){var g=Ne(a)?Wv:kN;return d&&zn(a,l,d)&&(l=n),g(a,Te(l,3))}var M6=ze(function(a,l){if(a==null)return[];var d=l.length;return d>1&&zn(a,l[0],l[1])?l=[]:d>2&&zn(l[0],l[1],l[2])&&(l=[l[0]]),L_(a,gn(l,1),[])}),lp=hM||function(){return Fe.Date.now()};function N6(a,l){if(typeof l!="function")throw new zr(s);return a=Le(a),function(){if(--a<1)return l.apply(this,arguments)}}function I2(a,l,d){return l=d?n:l,l=a&&l==null?a.length:l,gi(a,N,n,n,n,n,l)}function R2(a,l){var d;if(typeof l!="function")throw new zr(s);return a=Le(a),function(){return--a>0&&(d=l.apply(this,arguments)),a<=1&&(l=n),d}}var O0=ze(function(a,l,d){var g=k;if(d.length){var C=Xi(d,cl(O0));g|=O}return gi(a,g,l,d,C)}),D2=ze(function(a,l,d){var g=k|x;if(d.length){var C=Xi(d,cl(D2));g|=O}return gi(l,g,a,d,C)});function M2(a,l,d){l=d?n:l;var g=gi(a,w,n,n,n,n,n,l);return g.placeholder=M2.placeholder,g}function N2(a,l,d){l=d?n:l;var g=gi(a,P,n,n,n,n,n,l);return g.placeholder=N2.placeholder,g}function F2(a,l,d){var g,C,T,D,F,z,Z=0,Q=!1,re=!1,pe=!0;if(typeof a!="function")throw new zr(s);l=Hr(l)||0,Nt(d)&&(Q=!!d.leading,re="maxWait"in d,T=re?on(Hr(d.maxWait)||0,l):T,pe="trailing"in d?!!d.trailing:pe);function ke(qt){var fo=g,xi=C;return g=C=n,Z=qt,D=a.apply(xi,fo),D}function Oe(qt){return Z=qt,F=Ju(je,l),Q?ke(qt):D}function $e(qt){var fo=qt-z,xi=qt-Z,tC=l-fo;return re?An(tC,T-xi):tC}function Ie(qt){var fo=qt-z,xi=qt-Z;return z===n||fo>=l||fo<0||re&&xi>=T}function je(){var qt=lp();if(Ie(qt))return qe(qt);F=Ju(je,$e(qt))}function qe(qt){return F=n,pe&&g?ke(qt):(g=C=n,D)}function xr(){F!==n&&G_(F),Z=0,g=z=C=F=n}function Vn(){return F===n?D:qe(lp())}function wr(){var qt=lp(),fo=Ie(qt);if(g=arguments,C=this,z=qt,fo){if(F===n)return Oe(z);if(re)return G_(F),F=Ju(je,l),ke(z)}return F===n&&(F=Ju(je,l)),D}return wr.cancel=xr,wr.flush=Vn,wr}var F6=ze(function(a,l){return k_(a,1,l)}),L6=ze(function(a,l,d){return k_(a,Hr(l)||0,d)});function $6(a){return gi(a,K)}function up(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new zr(s);var d=function(){var g=arguments,C=l?l.apply(this,g):g[0],T=d.cache;if(T.has(C))return T.get(C);var D=a.apply(this,g);return d.cache=T.set(C,D)||T,D};return d.cache=new(up.Cache||hi),d}up.Cache=hi;function cp(a){if(typeof a!="function")throw new zr(s);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function B6(a){return R2(2,a)}var z6=EN(function(a,l){l=l.length==1&&Ne(l[0])?Tt(l[0],yr(Te())):Tt(gn(l,1),yr(Te()));var d=l.length;return ze(function(g){for(var C=-1,T=An(g.length,d);++C=l}),rs=O_(function(){return arguments}())?O_:function(a){return Vt(a)&<.call(a,"callee")&&!g_.call(a,"callee")},Ne=G.isArray,tL=Qs?yr(Qs):uN;function Jn(a){return a!=null&&fp(a.length)&&!bi(a)}function Gt(a){return Vt(a)&&Jn(a)}function nL(a){return a===!0||a===!1||Vt(a)&&Bn(a)==ce}var na=gM||W0,rL=Js?yr(Js):cN;function oL(a){return Vt(a)&&a.nodeType===1&&!ec(a)}function iL(a){if(a==null)return!0;if(Jn(a)&&(Ne(a)||typeof a=="string"||typeof a.splice=="function"||na(a)||fl(a)||rs(a)))return!a.length;var l=Tn(a);if(l==ye||l==Ct)return!a.size;if(Qu(a))return!a0(a).length;for(var d in a)if(lt.call(a,d))return!1;return!0}function aL(a,l){return Yu(a,l)}function sL(a,l,d){d=typeof d=="function"?d:n;var g=d?d(a,l):n;return g===n?Yu(a,l,n,d):!!g}function R0(a){if(!Vt(a))return!1;var l=Bn(a);return l==mt||l==Me||typeof a.message=="string"&&typeof a.name=="string"&&!ec(a)}function lL(a){return typeof a=="number"&&y_(a)}function bi(a){if(!Nt(a))return!1;var l=Bn(a);return l==Dt||l==En||l==Ee||l==mr}function $2(a){return typeof a=="number"&&a==Le(a)}function fp(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=j}function Nt(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Vt(a){return a!=null&&typeof a=="object"}var B2=Bu?yr(Bu):dN;function uL(a,l){return a===l||i0(a,l,w0(l))}function cL(a,l,d){return d=typeof d=="function"?d:n,i0(a,l,w0(l),d)}function fL(a){return z2(a)&&a!=+a}function dL(a){if(YN(a))throw new De(i);return I_(a)}function pL(a){return a===null}function hL(a){return a==null}function z2(a){return typeof a=="number"||Vt(a)&&Bn(a)==Mt}function ec(a){if(!Vt(a)||Bn(a)!=it)return!1;var l=$d(a);if(l===null)return!0;var d=lt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Md.call(d)==cM}var D0=e_?yr(e_):pN;function mL(a){return $2(a)&&a>=-j&&a<=j}var V2=t_?yr(t_):hN;function dp(a){return typeof a=="string"||!Ne(a)&&Vt(a)&&Bn(a)==Jt}function Sr(a){return typeof a=="symbol"||Vt(a)&&Bn(a)==zt}var fl=n_?yr(n_):mN;function gL(a){return a===n}function vL(a){return Vt(a)&&Tn(a)==_e}function yL(a){return Vt(a)&&Bn(a)==at}var bL=np(s0),SL=np(function(a,l){return a<=l});function W2(a){if(!a)return[];if(Jn(a))return dp(a)?lo(a):Qn(a);if(Vu&&a[Vu])return QD(a[Vu]());var l=Tn(a),d=l==ye?Kv:l==Ct?Id:dl;return d(a)}function Si(a){if(!a)return a===0?a:0;if(a=Hr(a),a===Pe||a===-Pe){var l=a<0?-1:1;return l*X}return a===a?a:0}function Le(a){var l=Si(a),d=l%1;return l===l?d?l-d:l:0}function j2(a){return a?Ja(Le(a),0,R):0}function Hr(a){if(typeof a=="number")return a;if(Sr(a))return q;if(Nt(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=Nt(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=l_(a);var d=Cv.test(a);return d||Ev.test(a)?me(a.slice(2),d?2:8):_v.test(a)?q:+a}function U2(a){return Io(a,er(a))}function xL(a){return a?Ja(Le(a),-j,j):a===0?a:0}function rt(a){return a==null?"":br(a)}var wL=ll(function(a,l){if(Qu(l)||Jn(l)){Io(l,cn(l),a);return}for(var d in l)lt.call(l,d)&&Gu(a,d,l[d])}),H2=ll(function(a,l){Io(l,er(l),a)}),pp=ll(function(a,l,d,g){Io(l,er(l),a,g)}),_L=ll(function(a,l,d,g){Io(l,cn(l),a,g)}),CL=vi(e0);function kL(a,l){var d=sl(a);return l==null?d:__(d,l)}var EL=ze(function(a,l){a=vt(a);var d=-1,g=l.length,C=g>2?l[2]:n;for(C&&zn(l[0],l[1],C)&&(g=1);++d1),T}),Io(a,S0(a),d),g&&(d=Wr(d,h|m|v,LN));for(var C=l.length;C--;)d0(d,l[C]);return d});function UL(a,l){return q2(a,cp(Te(l)))}var HL=vi(function(a,l){return a==null?{}:yN(a,l)});function q2(a,l){if(a==null)return{};var d=Tt(S0(a),function(g){return[g]});return l=Te(l),$_(a,d,function(g,C){return l(g,C[0])})}function GL(a,l,d){l=ea(l,a);var g=-1,C=l.length;for(C||(C=1,a=n);++gl){var g=a;a=l,l=g}if(d||a%1||l%1){var C=b_();return An(a+C*(l-a+U("1e-"+((C+"").length-1))),l)}return u0(a,l)}var r$=ul(function(a,l,d){return l=l.toLowerCase(),a+(d?X2(l):l)});function X2(a){return F0(rt(a).toLowerCase())}function Z2(a){return a=rt(a),a&&a.replace(Av,qD).replace(kd,"")}function o$(a,l,d){a=rt(a),l=br(l);var g=a.length;d=d===n?g:Ja(Le(d),0,g);var C=d;return d-=l.length,d>=0&&a.slice(d,C)==l}function i$(a){return a=rt(a),a&&ui.test(a)?a.replace(Hi,KD):a}function a$(a){return a=rt(a),a&&mv.test(a)?a.replace(Au,"\\$&"):a}var s$=ul(function(a,l,d){return a+(d?"-":"")+l.toLowerCase()}),l$=ul(function(a,l,d){return a+(d?" ":"")+l.toLowerCase()}),u$=e2("toLowerCase");function c$(a,l,d){a=rt(a),l=Le(l);var g=l?nl(a):0;if(!l||g>=l)return a;var C=(l-g)/2;return tp(Wd(C),d)+a+tp(Vd(C),d)}function f$(a,l,d){a=rt(a),l=Le(l);var g=l?nl(a):0;return l&&g>>0,d?(a=rt(a),a&&(typeof l=="string"||l!=null&&!D0(l))&&(l=br(l),!l&&tl(a))?ta(lo(a),0,d):a.split(l,d)):[]}var y$=ul(function(a,l,d){return a+(d?" ":"")+F0(l)});function b$(a,l,d){return a=rt(a),d=d==null?0:Ja(Le(d),0,a.length),l=br(l),a.slice(d,d+l.length)==l}function S$(a,l,d){var g=A.templateSettings;d&&zn(a,l,d)&&(l=n),a=rt(a),l=pp({},l,g,s2);var C=pp({},l.imports,g.imports,s2),T=cn(C),D=qv(C,T),F,z,Z=0,Q=l.interpolate||qi,re="__p += '",pe=Yv((l.escape||qi).source+"|"+Q.source+"|"+(Q===sd?wv:qi).source+"|"+(l.evaluate||qi).source+"|$","g"),ke="//# sourceURL="+(lt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pd+"]")+` -`;a.replace(pe,function(Ie,je,qe,xr,Vn,wr){return qe||(qe=xr),re+=a.slice(Z,wr).replace(Tv,YD),je&&(F=!0,re+=`' + -__e(`+je+`) + -'`),Vn&&(z=!0,re+=`'; -`+Vn+`; -__p += '`),qe&&(re+=`' + -((__t = (`+qe+`)) == null ? '' : __t) + -'`),Z=wr+Ie.length,Ie}),re+=`'; -`;var Oe=lt.call(l,"variable")&&l.variable;if(!Oe)re=`with (obj) { -`+re+` -} -`;else if(Sv.test(Oe))throw new De(u);re=(z?re.replace(Ka,""):re).replace(Us,"$1").replace(uv,"$1;"),re="function("+(Oe||"obj")+`) { -`+(Oe?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(z?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+re+`return __p -}`;var $e=J2(function(){return Qe(T,ke+"return "+re).apply(n,D)});if($e.source=re,R0($e))throw $e;return $e}function x$(a){return rt(a).toLowerCase()}function w$(a){return rt(a).toUpperCase()}function _$(a,l,d){if(a=rt(a),a&&(d||l===n))return l_(a);if(!a||!(l=br(l)))return a;var g=lo(a),C=lo(l),T=u_(g,C),D=c_(g,C)+1;return ta(g,T,D).join("")}function C$(a,l,d){if(a=rt(a),a&&(d||l===n))return a.slice(0,d_(a)+1);if(!a||!(l=br(l)))return a;var g=lo(a),C=c_(g,lo(l))+1;return ta(g,0,C).join("")}function k$(a,l,d){if(a=rt(a),a&&(d||l===n))return a.replace(Tu,"");if(!a||!(l=br(l)))return a;var g=lo(a),C=u_(g,lo(l));return ta(g,C).join("")}function E$(a,l){var d=W,g=te;if(Nt(l)){var C="separator"in l?l.separator:C;d="length"in l?Le(l.length):d,g="omission"in l?br(l.omission):g}a=rt(a);var T=a.length;if(tl(a)){var D=lo(a);T=D.length}if(d>=T)return a;var F=d-nl(g);if(F<1)return g;var z=D?ta(D,0,F).join(""):a.slice(0,F);if(C===n)return z+g;if(D&&(F+=z.length-F),D0(C)){if(a.slice(F).search(C)){var Z,Q=z;for(C.global||(C=Yv(C.source,rt(ci.exec(C))+"g")),C.lastIndex=0;Z=C.exec(Q);)var re=Z.index;z=z.slice(0,re===n?F:re)}}else if(a.indexOf(br(C),F)!=F){var pe=z.lastIndexOf(C);pe>-1&&(z=z.slice(0,pe))}return z+g}function P$(a){return a=rt(a),a&&cv.test(a)?a.replace(Pu,nM):a}var A$=ul(function(a,l,d){return a+(d?" ":"")+l.toUpperCase()}),F0=e2("toUpperCase");function Q2(a,l,d){return a=rt(a),l=d?n:l,l===n?ZD(a)?iM(a):WD(a):a.match(l)||[]}var J2=ze(function(a,l){try{return vr(a,n,l)}catch(d){return R0(d)?d:new De(d)}}),T$=vi(function(a,l){return Br(l,function(d){d=Ro(d),mi(a,d,O0(a[d],a))}),a});function O$(a){var l=a==null?0:a.length,d=Te();return a=l?Tt(a,function(g){if(typeof g[1]!="function")throw new zr(s);return[d(g[0]),g[1]]}):[],ze(function(g){for(var C=-1;++Cj)return[];var d=R,g=An(a,R);l=Te(l),a-=R;for(var C=Gv(g,l);++d0||l<0)?new He(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),l!==n&&(l=Le(l),d=l<0?d.dropRight(-l):d.take(l-a)),d)},He.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},He.prototype.toArray=function(){return this.take(R)},Oo(He.prototype,function(a,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),C=A[g?"take"+(l=="last"?"Right":""):l],T=g||/^find/.test(l);!C||(A.prototype[l]=function(){var D=this.__wrapped__,F=g?[1]:arguments,z=D instanceof He,Z=F[0],Q=z||Ne(D),re=function(je){var qe=C.apply(A,Yi([je],F));return g&&pe?qe[0]:qe};Q&&d&&typeof Z=="function"&&Z.length!=1&&(z=Q=!1);var pe=this.__chain__,ke=!!this.__actions__.length,Oe=T&&!pe,$e=z&&!ke;if(!T&&Q){D=$e?D:new He(this);var Ie=a.apply(D,F);return Ie.__actions__.push({func:ap,args:[re],thisArg:n}),new Vr(Ie,pe)}return Oe&&$e?a.apply(this,F):(Ie=this.thru(re),Oe?g?Ie.value()[0]:Ie.value():Ie)})}),Br(["pop","push","shift","sort","splice","unshift"],function(a){var l=Rd[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",g=/^(?:pop|shift)$/.test(a);A.prototype[a]=function(){var C=arguments;if(g&&!this.__chain__){var T=this.value();return l.apply(Ne(T)?T:[],C)}return this[d](function(D){return l.apply(Ne(D)?D:[],C)})}}),Oo(He.prototype,function(a,l){var d=A[l];if(d){var g=d.name+"";lt.call(al,g)||(al[g]=[]),al[g].push({name:l,func:d})}}),al[Jd(n,x).name]=[{name:"wrapper",func:n}],He.prototype.clone=PM,He.prototype.reverse=AM,He.prototype.value=TM,A.prototype.at=o6,A.prototype.chain=i6,A.prototype.commit=a6,A.prototype.next=s6,A.prototype.plant=u6,A.prototype.reverse=c6,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=f6,A.prototype.first=A.prototype.head,Vu&&(A.prototype[Vu]=l6),A},rl=aM();Ze?((Ze.exports=rl)._=rl,Be._=rl):Fe._=rl}).call(Ai)})(Ut,Ut.exports);const ele={currentImageUuid:"",images:[]},Q4=zw({name:"gallery",initialState:ele,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const n=t.payload,r=e.images.filter(o=>o.uuid!==n);if(n===e.currentImageUuid){const o=e.images.findIndex(s=>s.uuid===n),i=Ut.exports.clamp(o-1,0,r.length-1);e.currentImage=r.length?r[i]:void 0,e.currentImageUuid=r.length?r[i].uuid:""}e.images=r},addImage:(e,t)=>{e.images.push(t.payload),e.currentImageUuid=t.payload.uuid,e.intermediateImage=void 0,e.currentImage=t.payload},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},setGalleryImages:(e,t)=>{const n=t.payload;if(n.length){const r=n[n.length-1];e.images=n,e.currentImage=r,e.currentImageUuid=r.uuid}}}}),{setCurrentImage:tle,removeImage:nle,addImage:Xp,setGalleryImages:rle,setIntermediateImage:ole,clearIntermediateImage:yA}=Q4.actions,ile=Q4.reducer,ale={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:"",currentStatusHasSteps:!1},sle=ale,J4=zw({name:"system",initialState:sle,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>{const n=!t.payload.isProcessing&&e.isConnected?"Connected":t.payload.currentStatus;return{...e,...t.payload,currentStatus:n}},addLogEntry:(e,t)=>{const{timestamp:n,message:r,level:o}=t.payload,s={timestamp:n,message:r,level:o||"info"};e.log.push(s)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload}}}),{setShouldDisplayInProgress:lle,setIsProcessing:Bo,addLogEntry:jn,setShouldShowLogViewer:ule,setIsConnected:bA,setSocketId:Vfe,setShouldConfirmOnDelete:eD,setOpenAccordions:cle,setSystemStatus:fle,setCurrentStatus:SA}=J4.actions,dle=J4.reducer,ai=Object.create(null);ai.open="0";ai.close="1";ai.ping="2";ai.pong="3";ai.message="4";ai.upgrade="5";ai.noop="6";const Th=Object.create(null);Object.keys(ai).forEach(e=>{Th[ai[e]]=e});const ple={type:"error",data:"parser error"},hle=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mle=typeof ArrayBuffer=="function",gle=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,tD=({type:e,data:t},n,r)=>hle&&t instanceof Blob?n?r(t):xA(t,r):mle&&(t instanceof ArrayBuffer||gle(t))?n?r(t):xA(new Blob([t]),r):r(ai[e]+(t||"")),xA=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},wA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r>4,p[o++]=(s&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},yle=typeof ArrayBuffer=="function",nD=(e,t)=>{if(typeof e!="string")return{type:"message",data:rD(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:ble(e.substring(1),t)}:Th[n]?e.length>1?{type:Th[n],data:e.substring(1)}:{type:Th[n]}:ple},ble=(e,t)=>{if(yle){const n=vle(e);return rD(n,t)}else return{base64:!0,data:e}},rD=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},oD=String.fromCharCode(30),Sle=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{tD(i,!1,u=>{r[s]=u,++o===n&&t(r.join(oD))})})},xle=(e,t)=>{const n=e.split(oD),r=[];for(let o=0;otypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function aD(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const _le=setTimeout,Cle=clearTimeout;function sv(e,t){t.useNativeTimers?(e.setTimeoutFn=_le.bind(_a),e.clearTimeoutFn=Cle.bind(_a)):(e.setTimeoutFn=setTimeout.bind(_a),e.clearTimeoutFn=clearTimeout.bind(_a))}const kle=1.33;function Ele(e){return typeof e=="string"?Ple(e):Math.ceil((e.byteLength||e.size)*kle)}function Ple(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}class Ale extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class sD extends nn{constructor(t){super(),this.writable=!1,sv(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new Ale(t,n,r)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=nD(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const lD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),rS=64,Tle={};let _A=0,Zp=0,CA;function kA(e){let t="";do t=lD[e%rS]+t,e=Math.floor(e/rS);while(e>0);return t}function uD(){const e=kA(+new Date);return e!==CA?(_A=0,CA=e):e+"."+kA(_A++)}for(;Zp{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};xle(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Sle(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=uD()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const o=cD(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new ni(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class ni extends nn{constructor(t,n){super(),sv(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=aD(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new dD(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=ni.requestsCount++,ni.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Rle,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete ni.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}ni.requestsCount=0;ni.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",EA);else if(typeof addEventListener=="function"){const e="onpagehide"in _a?"pagehide":"unload";addEventListener(e,EA,!1)}}function EA(){for(let e in ni.requests)ni.requests.hasOwnProperty(e)&&ni.requests[e].abort()}const Nle=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Qp=_a.WebSocket||_a.MozWebSocket,PA=!0,Fle="arraybuffer",AA=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Lle extends sD{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=AA?{}:aD(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=PA&&!AA?n?new Qp(t,n):new Qp(t):new Qp(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||Fle,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{PA&&this.ws.send(i)}catch{}o&&Nle(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=uD()),this.supportsBinary||(t.b64=1);const o=cD(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}check(){return!!Qp}}const $le={websocket:Lle,polling:Mle},Ble=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,zle=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function oS(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Ble.exec(e||""),i={},s=14;for(;s--;)i[zle[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Vle(i,i.path),i.queryKey=Wle(i,i.query),i}function Vle(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&r.splice(0,1),t.substr(t.length-1,1)=="/"&&r.splice(r.length-1,1),r}function Wle(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}class va extends nn{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=oS(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=oS(n.host).host),sv(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=Ole(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=iD,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new $le[t](r)}open(){let t;if(this.opts.rememberUpgrade&&va.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;va.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;va.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const s=h=>{const m=new Error("probe error: "+h);m.transport=n.name,i(),this.emitReserved("upgradeError",m)};function u(){s("transport closed")}function c(){s("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",s),n.once("close",u),this.once("close",c),this.once("upgrading",f),n.open()}onOpen(){if(this.readyState="open",va.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){va.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,pD=Object.prototype.toString,Gle=typeof Blob=="function"||typeof Blob<"u"&&pD.call(Blob)==="[object BlobConstructor]",qle=typeof File=="function"||typeof File<"u"&&pD.call(File)==="[object FileConstructor]";function Zw(e){return Ule&&(e instanceof ArrayBuffer||Hle(e))||Gle&&e instanceof Blob||qle&&e instanceof File}function Oh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num0;case Ke.ACK:case Ke.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Qle{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Yle(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Jle=Object.freeze(Object.defineProperty({__proto__:null,protocol:Xle,get PacketType(){return Ke},Encoder:Zle,Decoder:Qw},Symbol.toStringTag,{value:"Module"}));function So(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const eue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class hD extends nn{constructor(t,n,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[So(t,"open",this.onopen.bind(this)),So(t,"packet",this.onpacket.bind(this)),So(t,"error",this.onerror.bind(this)),So(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(eue.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const r={type:Ke.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,u=n.pop();this._registerAckCallback(s,u),r.id=s}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){const r=this.flags.timeout;if(r===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let i=0;i{this.io.clearTimeoutFn(o),n.apply(this,[null,...i])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:Ke.CONNECT,data:t})}):this.packet({type:Ke.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ke.CONNECT:if(t.data&&t.data.sid){const o=t.data.sid;this.onconnect(o)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ke.EVENT:case Ke.BINARY_EVENT:this.onevent(t);break;case Ke.ACK:case Ke.BINARY_ACK:this.onack(t);break;case Ke.DISCONNECT:this.ondisconnect();break;case Ke.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Ke.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ke.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Eu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Eu.prototype.reset=function(){this.attempts=0};Eu.prototype.setMin=function(e){this.ms=e};Eu.prototype.setMax=function(e){this.max=e};Eu.prototype.setJitter=function(e){this.jitter=e};class sS extends nn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,sv(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Eu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||Jle;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new va(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=So(n,"open",function(){r.onopen(),t&&t()}),i=So(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),t?t(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&o();const u=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&u.unref(),this.subs.push(function(){clearTimeout(u)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(So(t,"ping",this.onping.bind(this)),So(t,"data",this.ondata.bind(this)),So(t,"error",this.onerror.bind(this)),So(t,"close",this.onclose.bind(this)),So(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch{this.onclose("parse error")}}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r||(r=new hD(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const mc={};function Ih(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=jle(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=mc[o]&&i in mc[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return u?c=new sS(r,t):(mc[o]||(mc[o]=new sS(r,t)),c=mc[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(Ih,{Manager:sS,Socket:hD,io:Ih,connect:Ih});let Jp;const tue=new Uint8Array(16);function nue(){if(!Jp&&(Jp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Jp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jp(tue)}const yn=[];for(let e=0;e<256;++e)yn.push((e+256).toString(16).slice(1));function rue(e,t=0){return(yn[e[t+0]]+yn[e[t+1]]+yn[e[t+2]]+yn[e[t+3]]+"-"+yn[e[t+4]]+yn[e[t+5]]+"-"+yn[e[t+6]]+yn[e[t+7]]+"-"+yn[e[t+8]]+yn[e[t+9]]+"-"+yn[e[t+10]]+yn[e[t+11]]+yn[e[t+12]]+yn[e[t+13]]+yn[e[t+14]]+yn[e[t+15]]).toLowerCase()}const oue=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),TA={randomUUID:oue};function gc(e,t,n){if(TA.randomUUID&&!t&&!e)return TA.randomUUID();e=e||{};const r=e.random||(e.rng||nue)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return rue(r)}var iue=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,aue=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,sue=/[^-+\dA-Z]/g;function Un(e,t,n,r){if(arguments.length===1&&typeof e=="string"&&!/\d/.test(e)&&(t=e,e=void 0),e=e||e===0?e:new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");t=String(OA[t]||t||OA.default);var o=t.slice(0,4);(o==="UTC:"||o==="GMT:")&&(t=t.slice(4),n=!0,o==="GMT:"&&(r=!0));var i=function(){return n?"getUTC":"get"},s=function(){return e[i()+"Date"]()},u=function(){return e[i()+"Day"]()},c=function(){return e[i()+"Month"]()},f=function(){return e[i()+"FullYear"]()},p=function(){return e[i()+"Hours"]()},h=function(){return e[i()+"Minutes"]()},m=function(){return e[i()+"Seconds"]()},v=function(){return e[i()+"Milliseconds"]()},y=function(){return n?0:e.getTimezoneOffset()},S=function(){return lue(e)},k=function(){return uue(e)},x={d:function(){return s()},dd:function(){return _r(s())},ddd:function(){return nr.dayNames[u()]},DDD:function(){return IA({y:f(),m:c(),d:s(),_:i(),dayName:nr.dayNames[u()],short:!0})},dddd:function(){return nr.dayNames[u()+7]},DDDD:function(){return IA({y:f(),m:c(),d:s(),_:i(),dayName:nr.dayNames[u()+7]})},m:function(){return c()+1},mm:function(){return _r(c()+1)},mmm:function(){return nr.monthNames[c()]},mmmm:function(){return nr.monthNames[c()+12]},yy:function(){return String(f()).slice(2)},yyyy:function(){return _r(f(),4)},h:function(){return p()%12||12},hh:function(){return _r(p()%12||12)},H:function(){return p()},HH:function(){return _r(p())},M:function(){return h()},MM:function(){return _r(h())},s:function(){return m()},ss:function(){return _r(m())},l:function(){return _r(v(),3)},L:function(){return _r(Math.floor(v()/10))},t:function(){return p()<12?nr.timeNames[0]:nr.timeNames[1]},tt:function(){return p()<12?nr.timeNames[2]:nr.timeNames[3]},T:function(){return p()<12?nr.timeNames[4]:nr.timeNames[5]},TT:function(){return p()<12?nr.timeNames[6]:nr.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":cue(e)},o:function(){return(y()>0?"-":"+")+_r(Math.floor(Math.abs(y())/60)*100+Math.abs(y())%60,4)},p:function(){return(y()>0?"-":"+")+_r(Math.floor(Math.abs(y())/60),2)+":"+_r(Math.floor(Math.abs(y())%60),2)},S:function(){return["th","st","nd","rd"][s()%10>3?0:(s()%100-s()%10!=10)*s()%10]},W:function(){return S()},WW:function(){return _r(S())},N:function(){return k()}};return t.replace(iue,function(b){return b in x?x[b]():b.slice(1,b.length-1)})}var OA={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},nr={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},_r=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},IA=function(t){var n=t.y,r=t.m,o=t.d,i=t._,s=t.dayName,u=t.short,c=u===void 0?!1:u,f=new Date,p=new Date;p.setDate(p[i+"Date"]()-1);var h=new Date;h.setDate(h[i+"Date"]()+1);var m=function(){return f[i+"Date"]()},v=function(){return f[i+"Month"]()},y=function(){return f[i+"FullYear"]()},S=function(){return p[i+"Date"]()},k=function(){return p[i+"Month"]()},x=function(){return p[i+"FullYear"]()},b=function(){return h[i+"Date"]()},w=function(){return h[i+"Month"]()},P=function(){return h[i+"FullYear"]()};return y()===n&&v()===r&&m()===o?c?"Tdy":"Today":x()===n&&k()===r&&S()===o?c?"Ysd":"Yesterday":P()===n&&w()===r&&b()===o?c?"Tmw":"Tomorrow":s},lue=function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=new Date(n.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var o=n.getTimezoneOffset()-r.getTimezoneOffset();n.setHours(n.getHours()-o);var i=(n-r)/(864e5*7);return 1+Math.floor(i)},uue=function(t){var n=t.getDay();return n===0&&(n=7),n},cue=function(t){return(String(t).match(aue)||[""]).pop().replace(sue,"").replace(/GMT\+0000/g,"UTC")};const fue=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],due=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],pue=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],hue=[{key:"2x",value:2},{key:"4x",value:4}],RA={prompt:"Prompt",iterations:"Iterations",steps:"Steps",cfgScale:"CFG Scale",height:"Height",width:"Width",sampler:"Sampler",seed:"Seed",img2imgStrength:"img2img Strength",gfpganStrength:"GFPGAN Strength",upscalingLevel:"Upscaling Level",upscalingStrength:"Upscaling Strength",initialImagePath:"Initial Image",maskPath:"Initial Image Mask",shouldFitToWidthHeight:"Fit Initial Image",seamless:"Seamless Tiling"},lS=0,uS=4294967295,mD=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),gD=e=>{const r=e.split(",").map(o=>o.split(":")).map(o=>[parseInt(o[0]),parseFloat(o[1])]);return lv(r)?r:!1},lv=e=>Boolean(typeof e=="string"?gD(e):e.length&&!e.some(t=>{const[n,r]=t,o=!isNaN(parseInt(n.toString(),10)),i=!isNaN(parseInt(r.toString(),10))&&r>=0&&r<=1;return!(o&&i)})),mue=e=>lv(e)?e.reduce((t,n,r,o)=>{const[i,s]=n;return t+=`${i}:${s}`,r!==o.length-1&&(t+=","),t},""):!1,gue=(e,t)=>{const{prompt:n,iterations:r,steps:o,cfgScale:i,threshold:s,perlin:u,height:c,width:f,sampler:p,seed:h,seamless:m,shouldUseInitImage:v,img2imgStrength:y,initialImagePath:S,maskPath:k,shouldFitToWidthHeight:x,shouldGenerateVariations:b,variationAmount:w,seedWeights:P,shouldRunESRGAN:O,upscalingLevel:M,upscalingStrength:N,shouldRunGFPGAN:V,gfpganStrength:K,shouldRandomizeSeed:W}=e,{shouldDisplayInProgress:te}=t,xe={prompt:n,iterations:r,steps:o,cfg_scale:i,threshold:s,perlin:u,height:c,width:f,sampler_name:p,seed:h,seamless:m,progress_images:te};xe.seed=W?mD(lS,uS):h,v&&(xe.init_img=S,xe.strength=y,xe.fit=x,k&&(xe.init_mask=k)),b?(xe.variation_amount=w,P&&(xe.with_variations=gD(P))):xe.variation_amount=0;let fe=!1,we=!1;return O&&(fe={level:M,strength:N}),V&&(we={strength:K}),{generationParameters:xe,esrganParameters:fe,gfpganParameters:we}},DA=e=>{const{prompt:t,iterations:n,steps:r,cfg_scale:o,threshold:i,perlin:s,height:u,width:c,sampler_name:f,seed:p,seamless:h,progress_images:m,variation_amount:v,with_variations:y,gfpgan_strength:S,upscale:k,init_img:x,init_mask:b,strength:w}=e,P={shouldDisplayInProgress:m,shouldGenerateVariations:!1,shouldRunESRGAN:!1,shouldRunGFPGAN:!1,initialImagePath:"",maskPath:""};return v>0&&(P.shouldGenerateVariations=!0,P.variationAmount=v,y&&(P.seedWeights=mue(y))),S>0&&(P.shouldRunGFPGAN=!0,P.gfpganStrength=S),k&&(P.shouldRunESRGAN=!0,P.upscalingLevel=k[0],P.upscalingStrength=k[1]),x&&(P.shouldUseInitImage=!0,P.initialImagePath=x,P.strength=w,b&&(P.maskPath=b)),t&&(P.prompt=t,P.iterations=n,P.steps=r,P.cfgScale=o,P.threshold=i,P.perlin=s,P.height=u,P.width=c,P.sampler=f,P.seed=p,P.seamless=h),P},vue=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(bA(!0)),t(SA("Connected"))}catch(r){console.error(r)}},onDisconnect:()=>{try{t(bA(!1)),t(Bo(!1)),t(SA("Disconnected")),t(jn({timestamp:Un(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(r){console.error(r)}},onGenerationResult:r=>{try{const{url:o,metadata:i}=r,s=gc(),u=DA(i);t(Xp({uuid:s,url:o,metadata:u})),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Image generated: ${o}`})),t(Bo(!1))}catch(o){console.error(o)}},onIntermediateResult:r=>{try{const o=gc(),{url:i,metadata:s}=r;t(ole({uuid:o,url:i,metadata:s})),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Intermediate image generated: ${i}`})),t(Bo(!1))}catch(o){console.error(o)}},onESRGANResult:r=>{try{const{url:o,uuid:i,metadata:s}=r,u=gc(),f={...n().gallery.images.find(p=>p.uuid===i).metadata};f.shouldRunESRGAN=!0,f.upscalingLevel=s.upscale[0],f.upscalingStrength=s.upscale[1],t(Xp({uuid:u,url:o,metadata:f})),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Upscaled: ${o}`})),t(Bo(!1))}catch(o){console.error(o)}},onGFPGANResult:r=>{try{const{url:o,uuid:i,metadata:s}=r,u=gc(),f={...n().gallery.images.find(p=>p.uuid===i).metadata};f.shouldRunGFPGAN=!0,f.gfpganStrength=s.gfpgan_strength,t(Xp({uuid:u,url:o,metadata:f})),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Fixed faces: ${o}`}))}catch(o){console.error(o)}},onProgressUpdate:r=>{try{t(Bo(!0)),t(fle(r))}catch(o){console.error(o)}},onError:r=>{const{message:o,additionalData:i}=r;try{t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Server error: ${o}`,level:"error"})),t(Bo(!1)),t(yA())}catch(s){console.error(s)}},onGalleryImages:r=>{const{images:o}=r,i=o.map(s=>({uuid:gc(),url:s.path,metadata:DA(s.metadata)}));t(rle(i)),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Loaded ${o.length} images`}))},onProcessingCanceled:()=>{t(Bo(!1));const{intermediateImage:r}=n().gallery;r&&(t(Xp(r)),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Intermediate image saved: ${r.url}`})),t(yA())),t(jn({timestamp:Un(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:r=>{const{url:o,uuid:i}=r;t(nle(i)),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Image deleted: ${o}`}))},onInitialImageUploaded:r=>{const{url:o}=r;t(Yw(o)),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Initial image uploaded: ${o}`}))},onMaskImageUploaded:r=>{const{url:o}=r;t(Z4(o)),t(jn({timestamp:Un(new Date,"isoDateTime"),message:`Mask image uploaded: ${o}`}))}}},yue=(e,t)=>{const{dispatch:n,getState:r}=e;return{emitGenerateImage:()=>{n(Bo(!0));const{generationParameters:o,esrganParameters:i,gfpganParameters:s}=gue(r().sd,r().system);t.emit("generateImage",o,i,s),n(jn({timestamp:Un(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...o,...i,...s})}`}))},emitRunESRGAN:o=>{n(Bo(!0));const{upscalingLevel:i,upscalingStrength:s}=r().sd,u={upscale:[i,s]};t.emit("runESRGAN",o,u),n(jn({timestamp:Un(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...u})}`}))},emitRunGFPGAN:o=>{n(Bo(!0));const{gfpganStrength:i}=r().sd,s={gfpgan_strength:i};t.emit("runGFPGAN",o,s),n(jn({timestamp:Un(new Date,"isoDateTime"),message:`GFPGAN fix faces requested: ${JSON.stringify({file:o.url,...s})}`}))},emitDeleteImage:o=>{const{url:i,uuid:s}=o;t.emit("deleteImage",i,s)},emitRequestAllImages:()=>{t.emit("requestAllImages")},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)}}},bue=()=>{const{hostname:e,port:t}=new URL(window.location.href),n=Ih(`http://${e}:9090`);let r=!1;return i=>s=>u=>{const{onConnect:c,onDisconnect:f,onError:p,onESRGANResult:h,onGFPGANResult:m,onGenerationResult:v,onIntermediateResult:y,onProgressUpdate:S,onGalleryImages:k,onProcessingCanceled:x,onImageDeleted:b,onInitialImageUploaded:w,onMaskImageUploaded:P}=vue(i),{emitGenerateImage:O,emitRunESRGAN:M,emitRunGFPGAN:N,emitDeleteImage:V,emitRequestAllImages:K,emitCancelProcessing:W,emitUploadInitialImage:te,emitUploadMaskImage:xe}=yue(i,n);switch(r||(n.on("connect",()=>c()),n.on("disconnect",()=>f()),n.on("error",fe=>p(fe)),n.on("generationResult",fe=>v(fe)),n.on("esrganResult",fe=>h(fe)),n.on("gfpganResult",fe=>m(fe)),n.on("intermediateResult",fe=>y(fe)),n.on("progressUpdate",fe=>S(fe)),n.on("galleryImages",fe=>k(fe)),n.on("processingCanceled",()=>{x()}),n.on("imageDeleted",fe=>{b(fe)}),n.on("initialImageUploaded",fe=>{w(fe)}),n.on("maskImageUploaded",fe=>{P(fe)}),r=!0),u.type){case"socketio/generateImage":{O();break}case"socketio/runESRGAN":{M(u.payload);break}case"socketio/runGFPGAN":{N(u.payload);break}case"socketio/deleteImage":{V(u.payload);break}case"socketio/requestAllImages":{K();break}case"socketio/cancelProcessing":{W();break}case"socketio/uploadInitialImage":{te(u.payload);break}case"socketio/uploadMaskImage":{xe(u.payload);break}}s(u)}},Sue={key:"root",storage:Kw,blacklist:["gallery","system"]},xue={key:"system",storage:Kw,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},wue=T4({sd:Jse,gallery:ile,system:q4(xue,dle)}),_ue=q4(Sue,wue),vD=hae({reducer:_ue,middleware:e=>e({serializableCheck:!1}).concat(bue())}),kn=Jae,yt=Wae;function Rh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rh=function(n){return typeof n}:Rh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rh(e)}function Cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MA(e,t){for(var n=0;n({textColor:e.colorMode==="dark"?"gray.800":"gray.100"})},Accordion:{baseStyle:e=>({button:{fontWeight:"bold",_hover:{bgColor:e.colorMode==="dark"?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.05)"}},panel:{paddingBottom:2}})},FormLabel:{baseStyle:{fontWeight:"light"}}}}),bD=()=>E(Ue,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:E(Bg,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"})});var SD={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},FA=ee.createContext&&ee.createContext(SD),Da=globalThis&&globalThis.__assign||function(){return Da=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const{label:t,size:n="sm",...r}=e;return E(oi,{size:n,...r,children:t})},zue=(e,t)=>e.image.uuid===t.image.uuid,Vue=_.exports.memo(({image:e})=>{const t=kn(),n=Object.keys(RA),r=[];return n.forEach(o=>{const i=e.metadata[o];i!==void 0&&r.push({label:RA[o],key:o,value:i})}),ue(Ue,{gap:2,direction:"column",overflowY:"scroll",width:"100%",children:[E(zo,{label:"Use all parameters",colorScheme:"gray",padding:2,isDisabled:r.length===0,onClick:()=>t(Xw(e.metadata))}),ue(Ue,{gap:2,children:[E(Pt,{fontWeight:"semibold",children:"File:"}),E(wm,{href:e.url,isExternal:!0,children:E(Pt,{children:e.url})})]}),r.length?ue(fr,{children:[E(Ug,{children:r.map((o,i)=>{const{label:s,key:u,value:c}=o;return E($3,{pb:1,children:ue(Ue,{gap:2,children:[E(Zr,{"aria-label":"Use this parameter",icon:E(Lue,{}),size:"xs",onClick:()=>t(Gse({key:u,value:c}))}),ue(Pt,{fontWeight:"semibold",children:[s,":"]}),c==null||c===""||c===0?E(Pt,{maxHeight:100,fontStyle:"italic",children:"None"}):E(Pt,{maxHeight:100,overflowY:"scroll",children:c.toString()})]})},i)})}),ue(Ue,{gap:2,children:[E(Pt,{fontWeight:"semibold",children:"Raw:"}),E(Pt,{maxHeight:100,overflowY:"scroll",wordBreak:"break-all",children:JSON.stringify(e.metadata)})]})]}):E(Af,{width:"100%",pt:10,children:E(Pt,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"})})]})},zue),_D=Rr("socketio/generateImage"),Wue=Rr("socketio/runESRGAN"),jue=Rr("socketio/runGFPGAN"),Uue=Rr("socketio/deleteImage"),Hue=Rr("socketio/requestAllImages"),Gue=Rr("socketio/cancelProcessing"),que=Rr("socketio/uploadInitialImage"),Kue=Rr("socketio/uploadMaskImage"),Yue=Ht(e=>e.system,e=>e.shouldConfirmOnDelete),CD=({image:e,children:t})=>{const{isOpen:n,onOpen:r,onClose:o}=Ib(),i=kn(),s=yt(Yue),u=_.exports.useRef(null),c=h=>{h.stopPropagation(),s?r():f()},f=()=>{i(Uue(e)),o()},p=h=>i(eD(!h.target.checked));return ue(fr,{children:[_.exports.cloneElement(t,{onClick:c}),E(gQ,{isOpen:n,leastDestructiveRef:u,onClose:o,children:E(Tm,{children:ue(vQ,{children:[E(Pw,{fontSize:"lg",fontWeight:"bold",children:"Delete image"}),E(Pm,{children:ue(Ue,{direction:"column",gap:5,children:[E(Pt,{children:"Are you sure? You can't undo this action afterwards."}),E(La,{children:ue(Ue,{alignItems:"center",children:[E($a,{mb:0,children:"Don't ask me again"}),E(Ra,{checked:!s,onChange:p})]})})]})}),ue(Ew,{children:[E(oi,{ref:u,onClick:o,children:"Cancel"}),E(oi,{colorScheme:"red",onClick:f,ml:3,children:"Delete"})]})]})})})]})},Xue=Ht(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Zue=({image:e,shouldShowImageDetails:t,setShouldShowImageDetails:n})=>{const r=kn(),{intermediateImage:o}=yt(x=>x.gallery),{upscalingLevel:i,gfpganStrength:s}=yt(x=>x.sd),{isProcessing:u,isConnected:c,isGFPGANAvailable:f,isESRGANAvailable:p}=yt(Xue),h=()=>r(Yw(e.url)),m=()=>r(Xw(e.metadata)),v=()=>r(zm(e.metadata.seed)),y=()=>r(Wue(e)),S=()=>r(jue(e)),k=()=>n(!t);return ue(Ue,{gap:2,children:[E(zo,{label:"Use as initial image",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:h}),E(zo,{label:"Use all",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:m}),E(zo,{label:"Use seed",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!e.metadata.seed,onClick:v}),E(zo,{label:"Upscale",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!p||Boolean(o)||!(c&&!u)||!i,onClick:y}),E(zo,{label:"Fix faces",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!f||Boolean(o)||!(c&&!u)||!s,onClick:S}),E(zo,{label:"Details",colorScheme:"gray",variant:t?"solid":"outline",borderWidth:1,flexGrow:1,onClick:k}),E(CD,{image:e,children:E(zo,{label:"Delete",colorScheme:"red",flexGrow:1,variant:"outline",isDisabled:Boolean(o)})})]})},Que="calc(100vh - 238px)",Jue=()=>{const{currentImage:e,intermediateImage:t}=yt(s=>s.gallery),n=Cs("rgba(255, 255, 255, 0.85)","rgba(0, 0, 0, 0.8)"),[r,o]=_.exports.useState(!1),i=t||e;return i?ue(Ue,{direction:"column",borderWidth:1,rounded:"md",p:2,gap:2,children:[E(Zue,{image:i,shouldShowImageDetails:r,setShouldShowImageDetails:o}),ue(Af,{height:Que,position:"relative",children:[E(Pf,{src:i.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"}),r&&E(Ue,{width:"100%",height:"100%",position:"absolute",top:0,left:0,p:3,boxSizing:"border-box",backgroundColor:n,overflow:"scroll",children:E(Vue,{image:i})})]})]}):E(Af,{height:"100%",position:"relative",children:E(Pt,{size:"xl",children:"No image selected"})})},ece=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,tce=_.exports.memo(e=>{const[t,n]=_.exports.useState(!1),r=kn(),o=Cs("green.600","green.300"),i=Cs("gray.200","gray.700"),s=Cs("radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 20%, rgba(0,0,0,0) 100%)","radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 100%)"),{image:u,isSelected:c}=e,{url:f,uuid:p,metadata:h}=u,m=()=>n(!0),v=()=>n(!1),y=x=>{x.stopPropagation(),r(Xw(h))},S=x=>{x.stopPropagation(),r(zm(u.metadata.seed))};return ue(Es,{position:"relative",children:[E(Pf,{width:120,height:120,objectFit:"cover",rounded:"md",src:f,loading:"lazy",backgroundColor:i}),ue(Ue,{cursor:"pointer",position:"absolute",top:0,left:0,rounded:"md",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",background:c?s:void 0,onClick:()=>r(tle(u)),onMouseOver:m,onMouseOut:v,children:[c&&E(Po,{fill:o,width:"50%",height:"50%",as:Rue}),t&&ue(Ue,{direction:"column",gap:1,position:"absolute",top:1,right:1,children:[E(CD,{image:u,children:E(Zr,{colorScheme:"red","aria-label":"Delete image",icon:E(wD,{}),size:"xs",fontSize:15})}),E(Zr,{"aria-label":"Use all parameters",colorScheme:"blue",icon:E(Mue,{}),size:"xs",fontSize:15,onClickCapture:y}),u.metadata.seed&&E(Zr,{"aria-label":"Use seed",colorScheme:"blue",icon:E($ue,{}),size:"xs",fontSize:16,onClickCapture:S})]})]})]},p)},ece),nce=()=>{const{images:e,currentImageUuid:t}=yt(n=>n.gallery);return e.length?E(Ue,{gap:2,wrap:"wrap",pb:2,children:[...e].reverse().map(n=>{const{uuid:r}=n;return E(tce,{image:n,isSelected:t===r},r)})}):E(Af,{height:"100%",position:"relative",children:E(Pt,{size:"xl",children:"No images in gallery"})})},rce=Ht(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),oce=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=yt(rce),o=t?Math.round(t*100/n):0;return E(J5,{height:"10px",value:o,isIndeterminate:e&&!r})};function ice(e){return Lr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}}]})(e)}function ace(e){return Lr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}const sce=Ht(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n}},{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),lce=({children:e})=>{const{isOpen:t,onOpen:n,onClose:r}=Ib(),{isOpen:o,onOpen:i,onClose:s}=Ib(),{shouldDisplayInProgress:u,shouldConfirmOnDelete:c}=yt(sce),f=kn(),p=()=>{FD.purge().then(()=>{r(),i()})};return ue(fr,{children:[_.exports.cloneElement(e,{onClick:n}),ue(Df,{isOpen:t,onClose:r,children:[E(Tm,{}),ue(Am,{children:[E(Pw,{children:"Settings"}),E(j5,{}),E(Pm,{children:ue(Ue,{gap:5,direction:"column",children:[E(La,{children:ue(_m,{children:[E($a,{marginBottom:1,children:"Display in-progress images (slower)"}),E(Ra,{isChecked:u,onChange:h=>f(lle(h.target.checked))})]})}),E(La,{children:ue(_m,{children:[E($a,{marginBottom:1,children:"Confirm on delete"}),E(Ra,{isChecked:c,onChange:h=>f(eD(h.target.checked))})]})}),E(aw,{size:"md",children:"Reset Web UI"}),E(Pt,{children:"Resetting the web UI only resets the browser's local cache of your images and remembered settings. It does not delete any images from disk."}),E(Pt,{children:"If images aren't showing up in the gallery or something else isn't working, please try resetting before submitting an issue on GitHub."}),E(oi,{colorScheme:"red",onClick:p,children:"Reset Web UI"})]})}),E(Ew,{children:E(oi,{onClick:r,children:"Close"})})]})]}),ue(Df,{closeOnOverlayClick:!1,isOpen:o,onClose:s,isCentered:!0,children:[E(Tm,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"}),E(Am,{children:E(Pm,{pb:6,pt:6,children:E(Ue,{justifyContent:"center",children:E(Pt,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."})})})})]})]})},uce=Ht(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),cce=()=>{const{colorMode:e,toggleColorMode:t}=ug(),{isConnected:n,isProcessing:r,currentIteration:o,totalIterations:i,currentStatus:s}=yt(uce),u=n?"green.500":"red.500",c=e=="light"?E(Fue,{}):E(Bue,{}),f=e=="light"?18:20;let p=s;return r&&i>1&&(p+=` [${o}/${i}]`),ue(Ue,{minWidth:"max-content",alignItems:"center",gap:"1",pl:2,pr:1,children:[E(aw,{size:"lg",children:"Stable Diffusion Dream Server"}),E(B3,{}),E(Pt,{textColor:u,children:p}),E(lce,{children:E(Zr,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:E(ace,{})})}),E(Zr,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:E(wm,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion/issues",children:E(ice,{})})}),E(Zr,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:E(wm,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion",children:E(Oue,{})})}),E(Zr,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:f,icon:c})]})},qo=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="sm",width:i,isInvalid:s,...u}=e;return E(La,{isDisabled:n,width:i,isInvalid:s,children:ue(Ue,{gap:2,justifyContent:"space-between",alignItems:"center",children:[t&&E($a,{marginBottom:1,children:E(Pt,{fontSize:r,whiteSpace:"nowrap",children:t})}),ue(q5,{size:o,...u,keepWithinRange:!1,clampValueOnBlur:!0,children:[E(Y5,{fontSize:"md"}),ue(K5,{children:[E(Q5,{}),E(Z5,{})]})]})]})})},Vm=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="md",width:i,...s}=e;return E(La,{isDisabled:n,width:i,children:ue(Ue,{justifyContent:"space-between",alignItems:"center",children:[t&&E($a,{fontSize:r,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t}),E(Ra,{size:o,...s})]})})},fce=Ht(e=>e.sd,e=>({variationAmount:e.variationAmount,seedWeights:e.seedWeights,shouldGenerateVariations:e.shouldGenerateVariations,shouldRandomizeSeed:e.shouldRandomizeSeed,seed:e.seed,iterations:e.iterations}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),dce=()=>{const{shouldGenerateVariations:e,variationAmount:t,seedWeights:n,shouldRandomizeSeed:r,seed:o,iterations:i}=yt(fce),s=kn(),u=y=>s(Ise(Number(y))),c=y=>s(Qse(y.target.checked)),f=y=>s(zm(Number(y))),p=()=>s(zm(mD(lS,uS))),h=y=>s(qse(y.target.checked)),m=y=>s(Yse(Number(y))),v=y=>s(Kse(y.target.value));return ue(Ue,{gap:2,direction:"column",children:[E(qo,{label:"Images to generate",step:1,min:1,precision:0,onChange:u,value:i}),E(Vm,{label:"Randomize seed on generation",isChecked:r,onChange:c}),ue(Ue,{gap:2,children:[E(qo,{label:"Seed",step:1,precision:0,flexGrow:1,min:lS,max:uS,isDisabled:r,isInvalid:o<0&&e,onChange:f,value:o}),E(oi,{size:"sm",isDisabled:r,onClick:p,children:E(Pt,{pl:2,pr:2,children:"Shuffle"})})]}),E(Vm,{label:"Generate variations",isChecked:e,width:"auto",onChange:h}),E(qo,{label:"Variation amount",value:t,step:.01,min:0,max:1,onChange:m}),E(La,{isInvalid:e&&!(lv(n)||n===""),flexGrow:1,children:ue(_m,{children:[E($a,{marginInlineEnd:0,marginBottom:1,children:E(Pt,{whiteSpace:"nowrap",children:"Seed Weights"})}),E(rw,{size:"sm",value:n,onChange:v})]})})]})},Wm=e=>{const{label:t,isDisabled:n,validValues:r,size:o="sm",fontSize:i="md",marginBottom:s=1,whiteSpace:u="nowrap",...c}=e;return E(La,{isDisabled:n,children:ue(Ue,{justifyContent:"space-between",alignItems:"center",children:[E($a,{marginBottom:s,children:E(Pt,{fontSize:i,whiteSpace:u,children:t})}),E(t4,{fontSize:i,size:o,...c,children:r.map(f=>typeof f=="string"||typeof f=="number"?E("option",{value:f,children:f},f):E("option",{value:f.value,children:f.key},f.value))})]})})},pce=Ht(e=>e.sd,e=>({steps:e.steps,cfgScale:e.cfgScale,sampler:e.sampler,threshold:e.threshold,perlin:e.perlin}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),hce=()=>{const e=kn(),{steps:t,cfgScale:n,sampler:r,threshold:o,perlin:i}=yt(pce);return ue(Ue,{gap:2,direction:"column",children:[E(qo,{label:"Steps",min:1,step:1,precision:0,onChange:h=>e(Rse(Number(h))),value:t}),E(qo,{label:"CFG scale",step:.5,onChange:h=>e(Dse(Number(h))),value:n}),E(Wm,{label:"Sampler",value:r,onChange:h=>e($se(h.target.value)),validValues:fue}),E(qo,{label:"Threshold",min:0,step:.1,onChange:h=>e(Mse(Number(h))),value:o}),E(qo,{label:"Perlin",min:0,max:1,step:.05,onChange:h=>e(Nse(Number(h))),value:i})]})},mce=Ht(e=>e.sd,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),gce=Ht(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),vce=()=>{const e=kn(),{upscalingLevel:t,upscalingStrength:n}=yt(mce),{isESRGANAvailable:r}=yt(gce);return ue(Ue,{direction:"column",gap:2,children:[E(Wm,{isDisabled:!r,label:"Scale",value:t,onChange:s=>e(Wse(Number(s.target.value))),validValues:hue}),E(qo,{isDisabled:!r,label:"Strength",step:.05,min:0,max:1,onChange:s=>e(jse(Number(s))),value:n})]})},yce=Ht(e=>e.sd,e=>({gfpganStrength:e.gfpganStrength}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),bce=Ht(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Sce=()=>{const e=kn(),{gfpganStrength:t}=yt(yce),{isGFPGANAvailable:n}=yt(bce);return E(Ue,{direction:"column",gap:2,children:E(qo,{isDisabled:!n,label:"Strength",step:.05,min:0,max:1,onChange:o=>e(Vse(Number(o))),value:t})})},xce=Ht(e=>e.sd,e=>({height:e.height,width:e.width,seamless:e.seamless}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),wce=()=>{const e=kn(),{height:t,width:n,seamless:r}=yt(xce);return ue(Ue,{gap:2,direction:"column",children:[ue(Ue,{gap:2,children:[E(Wm,{label:"Width",value:n,flexGrow:1,onChange:u=>e(Lse(Number(u.target.value))),validValues:due}),E(Wm,{label:"Height",value:t,flexGrow:1,onChange:u=>e(Fse(Number(u.target.value))),validValues:pue})]}),E(Vm,{label:"Seamless tiling",fontSize:"md",isChecked:r,onChange:u=>e(Bse(u.target.checked))})]})};var _ce=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function ad(e,t){var n=Cce(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Cce(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=_ce.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var kce=[".DS_Store","Thumbs.db"];function Ece(e){return xu(this,void 0,void 0,function(){return wu(this,function(t){return jm(e)&&Pce(e.dataTransfer)?[2,Ice(e.dataTransfer,e.type)]:Ace(e)?[2,Tce(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Oce(e)]:[2,[]]})})}function Pce(e){return jm(e)}function Ace(e){return jm(e)&&jm(e.target)}function jm(e){return typeof e=="object"&&e!==null}function Tce(e){return dS(e.target.files).map(function(t){return ad(t)})}function Oce(e){return xu(this,void 0,void 0,function(){var t;return wu(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return ad(r)})]}})})}function Ice(e,t){return xu(this,void 0,void 0,function(){var n,r;return wu(this,function(o){switch(o.label){case 0:return e.items?(n=dS(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Rce))]):[3,2];case 1:return r=o.sent(),[2,LA(kD(r))];case 2:return[2,LA(dS(e.files).map(function(i){return ad(i)}))]}})})}function LA(e){return e.filter(function(t){return kce.indexOf(t.name)===-1})}function dS(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,WA(n)];if(e.sizen)return[!1,WA(n)]}return[!0,null]}function ms(e){return e!=null}function Kce(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,u=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(c){var f=TD(c,n),p=Bf(f,1),h=p[0],m=OD(c,r,o),v=Bf(m,1),y=v[0],S=u?u(c):null;return h&&y&&!S})}function Um(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function eh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function UA(e){e.preventDefault()}function Yce(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Xce(e){return e.indexOf("Edge/")!==-1}function Zce(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Yce(e)||Xce(e)}function Fo(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function hfe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Jw=_.exports.forwardRef(function(e,t){var n=e.children,r=Hm(e,rfe),o=ND(r),i=o.open,s=Hm(o,ofe);return _.exports.useImperativeHandle(t,function(){return{open:i}},[i]),E(_.exports.Fragment,{children:n(Ft(Ft({},s),{},{open:i}))})});Jw.displayName="Dropzone";var MD={disabled:!1,getFilesFromEvent:Ece,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Jw.defaultProps=MD;Jw.propTypes={children:ht.exports.func,accept:ht.exports.objectOf(ht.exports.arrayOf(ht.exports.string)),multiple:ht.exports.bool,preventDropOnDocument:ht.exports.bool,noClick:ht.exports.bool,noKeyboard:ht.exports.bool,noDrag:ht.exports.bool,noDragEventsBubbling:ht.exports.bool,minSize:ht.exports.number,maxSize:ht.exports.number,maxFiles:ht.exports.number,disabled:ht.exports.bool,getFilesFromEvent:ht.exports.func,onFileDialogCancel:ht.exports.func,onFileDialogOpen:ht.exports.func,useFsAccessApi:ht.exports.bool,autoFocus:ht.exports.bool,onDragEnter:ht.exports.func,onDragLeave:ht.exports.func,onDragOver:ht.exports.func,onDrop:ht.exports.func,onDropAccepted:ht.exports.func,onDropRejected:ht.exports.func,onError:ht.exports.func,validator:ht.exports.func};var gS={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ND(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ft(Ft({},MD),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,u=t.multiple,c=t.maxFiles,f=t.onDragEnter,p=t.onDragLeave,h=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,y=t.onDropRejected,S=t.onFileDialogCancel,k=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,P=t.noClick,O=t.noKeyboard,M=t.noDrag,N=t.noDragEventsBubbling,V=t.onError,K=t.validator,W=_.exports.useMemo(function(){return efe(n)},[n]),te=_.exports.useMemo(function(){return Jce(n)},[n]),xe=_.exports.useMemo(function(){return typeof k=="function"?k:GA},[k]),fe=_.exports.useMemo(function(){return typeof S=="function"?S:GA},[S]),we=_.exports.useRef(null),Ce=_.exports.useRef(null),ve=_.exports.useReducer(mfe,gS),Pe=e1(ve,2),j=Pe[0],X=Pe[1],q=j.isFocused,R=j.isFileDialogActive,H=_.exports.useRef(typeof window<"u"&&window.isSecureContext&&x&&Qce()),ae=function(){!H.current&&R&&setTimeout(function(){if(Ce.current){var _e=Ce.current.files;_e.length||(X({type:"closeDialog"}),fe())}},300)};_.exports.useEffect(function(){return window.addEventListener("focus",ae,!1),function(){window.removeEventListener("focus",ae,!1)}},[Ce,R,fe,H]);var se=_.exports.useRef([]),he=function(_e){we.current&&we.current.contains(_e.target)||(_e.preventDefault(),se.current=[])};_.exports.useEffect(function(){return w&&(document.addEventListener("dragover",UA,!1),document.addEventListener("drop",he,!1)),function(){w&&(document.removeEventListener("dragover",UA),document.removeEventListener("drop",he))}},[we,w]),_.exports.useEffect(function(){return!r&&b&&we.current&&we.current.focus(),function(){}},[we,b,r]);var ge=_.exports.useCallback(function(le){V?V(le):console.error(le)},[V]),Ee=_.exports.useCallback(function(le){le.preventDefault(),le.persist(),St(le),se.current=[].concat(sfe(se.current),[le.target]),eh(le)&&Promise.resolve(o(le)).then(function(_e){if(!(Um(le)&&!N)){var at=_e.length,nt=at>0&&Kce({files:_e,accept:W,minSize:s,maxSize:i,multiple:u,maxFiles:c,validator:K}),ne=at>0&&!nt;X({isDragAccept:nt,isDragReject:ne,isDragActive:!0,type:"setDraggedFiles"}),f&&f(le)}}).catch(function(_e){return ge(_e)})},[o,f,ge,N,W,s,i,u,c,K]),ce=_.exports.useCallback(function(le){le.preventDefault(),le.persist(),St(le);var _e=eh(le);if(_e&&le.dataTransfer)try{le.dataTransfer.dropEffect="copy"}catch{}return _e&&h&&h(le),!1},[h,N]),Ae=_.exports.useCallback(function(le){le.preventDefault(),le.persist(),St(le);var _e=se.current.filter(function(nt){return we.current&&we.current.contains(nt)}),at=_e.indexOf(le.target);at!==-1&&_e.splice(at,1),se.current=_e,!(_e.length>0)&&(X({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),eh(le)&&p&&p(le))},[we,p,N]),Me=_.exports.useCallback(function(le,_e){var at=[],nt=[];le.forEach(function(ne){var Ve=TD(ne,W),xt=e1(Ve,2),hn=xt[0],Pn=xt[1],gr=OD(ne,s,i),To=e1(gr,2),li=To[0],Ln=To[1],$r=K?K(ne):null;if(hn&&li&&!$r)at.push(ne);else{var Ka=[Pn,Ln];$r&&(Ka=Ka.concat($r)),nt.push({file:ne,errors:Ka.filter(function(Us){return Us})})}}),(!u&&at.length>1||u&&c>=1&&at.length>c)&&(at.forEach(function(ne){nt.push({file:ne,errors:[qce]})}),at.splice(0)),X({acceptedFiles:at,fileRejections:nt,type:"setFiles"}),m&&m(at,nt,_e),nt.length>0&&y&&y(nt,_e),at.length>0&&v&&v(at,_e)},[X,u,W,s,i,c,m,v,y,K]),mt=_.exports.useCallback(function(le){le.preventDefault(),le.persist(),St(le),se.current=[],eh(le)&&Promise.resolve(o(le)).then(function(_e){Um(le)&&!N||Me(_e,le)}).catch(function(_e){return ge(_e)}),X({type:"reset"})},[o,Me,ge,N]),Dt=_.exports.useCallback(function(){if(H.current){X({type:"openDialog"}),xe();var le={multiple:u,types:te};window.showOpenFilePicker(le).then(function(_e){return o(_e)}).then(function(_e){Me(_e,null),X({type:"closeDialog"})}).catch(function(_e){tfe(_e)?(fe(_e),X({type:"closeDialog"})):nfe(_e)?(H.current=!1,Ce.current?(Ce.current.value=null,Ce.current.click()):ge(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ge(_e)});return}Ce.current&&(X({type:"openDialog"}),xe(),Ce.current.value=null,Ce.current.click())},[X,xe,fe,x,Me,ge,te,u]),En=_.exports.useCallback(function(le){!we.current||!we.current.isEqualNode(le.target)||(le.key===" "||le.key==="Enter"||le.keyCode===32||le.keyCode===13)&&(le.preventDefault(),Dt())},[we,Dt]),ye=_.exports.useCallback(function(){X({type:"focus"})},[]),Mt=_.exports.useCallback(function(){X({type:"blur"})},[]),Qt=_.exports.useCallback(function(){P||(Zce()?setTimeout(Dt,0):Dt())},[P,Dt]),it=function(_e){return r?null:_e},hr=function(_e){return O?null:it(_e)},mr=function(_e){return M?null:it(_e)},St=function(_e){N&&_e.stopPropagation()},Ct=_.exports.useMemo(function(){return function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_e=le.refKey,at=_e===void 0?"ref":_e,nt=le.role,ne=le.onKeyDown,Ve=le.onFocus,xt=le.onBlur,hn=le.onClick,Pn=le.onDragEnter,gr=le.onDragOver,To=le.onDragLeave,li=le.onDrop,Ln=Hm(le,ife);return Ft(Ft(mS({onKeyDown:hr(Fo(ne,En)),onFocus:hr(Fo(Ve,ye)),onBlur:hr(Fo(xt,Mt)),onClick:it(Fo(hn,Qt)),onDragEnter:mr(Fo(Pn,Ee)),onDragOver:mr(Fo(gr,ce)),onDragLeave:mr(Fo(To,Ae)),onDrop:mr(Fo(li,mt)),role:typeof nt=="string"&&nt!==""?nt:"presentation"},at,we),!r&&!O?{tabIndex:0}:{}),Ln)}},[we,En,ye,Mt,Qt,Ee,ce,Ae,mt,O,M,r]),Jt=_.exports.useCallback(function(le){le.stopPropagation()},[]),zt=_.exports.useMemo(function(){return function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_e=le.refKey,at=_e===void 0?"ref":_e,nt=le.onChange,ne=le.onClick,Ve=Hm(le,afe),xt=mS({accept:W,multiple:u,type:"file",style:{display:"none"},onChange:it(Fo(nt,mt)),onClick:it(Fo(ne,Jt)),tabIndex:-1},at,Ce);return Ft(Ft({},xt),Ve)}},[Ce,n,u,mt,r]);return Ft(Ft({},j),{},{isFocused:q&&!r,getRootProps:Ct,getInputProps:zt,rootRef:we,inputRef:Ce,open:it(Dt)})}function mfe(e,t){switch(t.type){case"focus":return Ft(Ft({},e),{},{isFocused:!0});case"blur":return Ft(Ft({},e),{},{isFocused:!1});case"openDialog":return Ft(Ft({},gS),{},{isFileDialogActive:!0});case"closeDialog":return Ft(Ft({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ft(Ft({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ft(Ft({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ft({},gS);default:return e}}function GA(){}const qA=({children:e,fileAcceptedCallback:t,fileRejectionCallback:n})=>{const r=_.exports.useCallback((c,f)=>{f.forEach(p=>{n(p)}),c.forEach(p=>{t(p)})},[t,n]),{getRootProps:o,getInputProps:i,open:s}=ND({onDrop:r,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),u=c=>{c.stopPropagation(),s()};return ue("div",{...o(),children:[E("input",{...i({multiple:!1})}),_.exports.cloneElement(e,{onClick:u})]})},gfe=Ht(e=>e.sd,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),vfe=({setShouldShowMask:e})=>{const t=kn(),{initialImagePath:n}=yt(gfe),r=Cie(),o=m=>{m.stopPropagation(),t(Yw("")),t(Z4(""))},i=()=>e(!1),s=()=>e(!0),u=()=>e(!0),c=()=>e(!0),f=_.exports.useCallback(m=>t(que(m)),[t]),p=_.exports.useCallback(m=>t(Kue(m)),[t]),h=_.exports.useCallback(m=>{const v=m.errors.reduce((y,S)=>y+` -`+S.message,"");r({title:"Upload failed",description:v,status:"error",isClosable:!0})},[r]);return ue(Ue,{gap:2,justifyContent:"space-between",width:"100%",children:[E(qA,{fileAcceptedCallback:f,fileRejectionCallback:h,children:E(oi,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:i,onMouseOut:s,children:"Upload Image"})}),E(qA,{fileAcceptedCallback:p,fileRejectionCallback:h,children:E(oi,{isDisabled:!n,size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:u,onMouseOut:c,children:"Upload Mask"})}),E(Zr,{isDisabled:!n,size:"sm","aria-label":"Reset initial image and mask",onClick:o,icon:E(wD,{})})]})},yfe=Ht(e=>e.sd,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),bfe=()=>{const{initialImagePath:e,maskPath:t}=yt(yfe),[n,r]=_.exports.useState(!1);return ue(Ue,{direction:"column",alignItems:"center",gap:2,children:[E(vfe,{setShouldShowMask:r}),e&&ue(Ue,{position:"relative",width:"100%",children:[E(Pf,{fit:"contain",src:e,rounded:"md",className:"checkerboard"}),n&&t&&E(Pf,{position:"absolute",top:0,left:0,fit:"contain",src:t,rounded:"md",zIndex:1})]})]})},Sfe=Ht(e=>e.sd,e=>({img2imgStrength:e.img2imgStrength,shouldFitToWidthHeight:e.shouldFitToWidthHeight})),xfe=()=>{const e=kn(),{img2imgStrength:t,shouldFitToWidthHeight:n}=yt(Sfe);return ue(Ue,{direction:"column",gap:2,children:[E(qo,{label:"Strength",step:.01,min:0,max:1,onChange:i=>e(zse(Number(i))),value:t}),E(Vm,{label:"Fit initial image to output size",isChecked:n,onChange:i=>e(Hse(i.target.checked))}),E(bfe,{})]})},wfe=Ht(e=>e.sd,e=>({initialImagePath:e.initialImagePath,shouldUseInitImage:e.shouldUseInitImage,shouldRunESRGAN:e.shouldRunESRGAN,shouldRunGFPGAN:e.shouldRunGFPGAN}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),_fe=Ht(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable,openAccordions:e.openAccordions}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Cfe=()=>{const{shouldRunESRGAN:e,shouldRunGFPGAN:t,shouldUseInitImage:n,initialImagePath:r}=yt(wfe),{isGFPGANAvailable:o,isESRGANAvailable:i,openAccordions:s}=yt(_fe),u=kn();return ue(m3,{defaultIndex:s,allowMultiple:!0,reduceMotion:!0,onChange:m=>u(cle(m)),children:[ue(cs,{children:[E("h2",{children:ue(ls,{children:[E(Es,{flex:"1",textAlign:"left",children:"Seed & Variation"}),E(us,{})]})}),E(fs,{children:E(dce,{})})]}),ue(cs,{children:[E("h2",{children:ue(ls,{children:[E(Es,{flex:"1",textAlign:"left",children:"Sampler"}),E(us,{})]})}),E(fs,{children:E(hce,{})})]}),ue(cs,{children:[E("h2",{children:ue(ls,{children:[ue(Ue,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[E(Pt,{children:"Upscale (ESRGAN)"}),E(Ra,{isDisabled:!i,isChecked:e,onChange:m=>u(Zse(m.target.checked))})]}),E(us,{})]})}),E(fs,{children:E(vce,{})})]}),ue(cs,{children:[E("h2",{children:ue(ls,{children:[ue(Ue,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[E(Pt,{children:"Fix Faces (GFPGAN)"}),E(Ra,{isDisabled:!o,isChecked:t,onChange:m=>u(Xse(m.target.checked))})]}),E(us,{})]})}),E(fs,{children:E(Sce,{})})]}),ue(cs,{children:[E("h2",{children:ue(ls,{children:[ue(Ue,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[E(Pt,{children:"Image to Image"}),E(Ra,{isDisabled:!r,isChecked:n,onChange:m=>u(Use(m.target.checked))})]}),E(us,{})]})}),E(fs,{children:E(xfe,{})})]}),ue(cs,{children:[E("h2",{children:ue(ls,{children:[E(Es,{flex:"1",textAlign:"left",children:"Output"}),E(us,{})]})}),E(fs,{children:E(wce,{})})]})]})},kfe=Ht(e=>e.sd,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Efe=Ht(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Pfe=()=>{const{prompt:e,shouldGenerateVariations:t,seedWeights:n,maskPath:r,initialImagePath:o,seed:i}=yt(kfe),{isProcessing:s,isConnected:u}=yt(Efe);return _.exports.useMemo(()=>!(!e||r&&!o||s||!u||t&&(!(lv(n)||n==="")||i===-1)),[e,r,o,s,u,t,n,i])},Afe=Ht(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Tfe=()=>{const e=kn(),{isProcessing:t,isConnected:n}=yt(Afe),r=Pfe();return ue(Ue,{gap:2,direction:"column",alignItems:"space-between",height:"100%",children:[E(zo,{label:"Generate",type:"submit",colorScheme:"green",flexGrow:1,isDisabled:!r,fontSize:"md",size:"md",onClick:()=>e(_D())}),E(zo,{label:"Cancel",colorScheme:"red",flexGrow:1,fontSize:"md",size:"md",isDisabled:!n||!t,onClick:()=>e(Gue())})]})},Ofe=()=>{const{prompt:e}=yt(o=>o.sd),t=kn(),n=o=>t(Ose(o.target.value)),r=o=>{o.key==="Enter"&&o.shiftKey===!1&&(o.preventDefault(),t(_D()))};return E(r4,{id:"prompt",name:"prompt",resize:"none",size:"lg",height:"100%",isInvalid:!e.length,onChange:n,onKeyDown:r,value:e,placeholder:"I'm dreaming of..."})},Ife=Ht(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),Rfe=Ht(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer}),{memoizeOptions:{resultEqualityCheck:Ut.exports.isEqual}}),Dfe=()=>{const e=kn(),t=yt(Ife),{shouldShowLogViewer:n}=yt(Rfe),r=Cs("gray.50","gray.900"),o=Cs("gray.500","gray.500"),i=Cs({info:void 0,warning:"yellow.500",error:"red.500"},{info:void 0,warning:"yellow.300",error:"red.300"}),[s,u]=_.exports.useState(!0),c=_.exports.useRef(null);_.exports.useLayoutEffect(()=>{c.current!==null&&s&&(c.current.scrollTop=c.current.scrollHeight)},[s,t,n]);const f=()=>{e(ule(!n))};return ue(fr,{children:[n&&E(Ue,{position:"fixed",left:0,bottom:0,height:"200px",width:"100vw",overflow:"auto",direction:"column",fontFamily:"monospace",fontSize:"sm",pl:12,pr:2,pb:2,borderTopWidth:"4px",borderColor:o,background:r,ref:c,children:t.map((p,h)=>{const{timestamp:m,message:v,level:y}=p;return ue(Ue,{gap:2,textColor:i[y],children:[ue(Pt,{fontSize:"sm",fontWeight:"semibold",children:[m,":"]}),E(Pt,{fontSize:"sm",wordBreak:"break-all",children:v})]},h)})}),n&&E(Xb,{label:s?"Autoscroll on":"Autoscroll off",children:E(Zr,{size:"sm",position:"fixed",left:2,bottom:12,"aria-label":"Toggle autoscroll",variant:"solid",colorScheme:s?"blue":"gray",icon:E(Iue,{}),onClick:()=>u(!s)})}),E(Xb,{label:n?"Hide logs":"Show logs",children:E(Zr,{size:"sm",position:"fixed",left:2,bottom:2,variant:"solid","aria-label":"Toggle Log Viewer",icon:n?E(Nue,{}):E(Due,{}),onClick:f})})]})},Mfe=()=>{const e=kn(),[t,n]=_.exports.useState(!1);return _.exports.useEffect(()=>{e(Hue()),n(!0)},[e]),t?ue(fr,{children:[ue(iw,{width:"100vw",height:"100vh",templateAreas:` - "header header header header" - "progressBar progressBar progressBar progressBar" - "menu prompt processButtons imageRoll" - "menu currentImage currentImage imageRoll"`,gridTemplateRows:"36px 10px 100px auto",gridTemplateColumns:"350px auto 100px 388px",gap:2,children:[E(ca,{area:"header",pt:1,children:E(cce,{})}),E(ca,{area:"progressBar",children:E(oce,{})}),E(ca,{pl:"2",area:"menu",overflowY:"scroll",children:E(Cfe,{})}),E(ca,{area:"prompt",children:E(Ofe,{})}),E(ca,{area:"processButtons",children:E(Tfe,{})}),E(ca,{area:"currentImage",children:E(Jue,{})}),E(ca,{pr:"2",area:"imageRoll",overflowY:"scroll",children:E(nce,{})})]}),E(Dfe,{})]}):E(bD,{})},FD=bse(vD);t1.createRoot(document.getElementById("root")).render(E(ee.StrictMode,{children:E(Xae,{store:vD,children:E(yD,{loading:E(bD,{}),persistor:FD,children:ue(Mie,{theme:NA,children:[E(G8,{initialColorMode:NA.config.initialColorMode}),E(Mfe,{})]})})})})); diff --git a/frontend/dist/assets/index.553ce8c7.js b/frontend/dist/assets/index.553ce8c7.js new file mode 100644 index 0000000000..3e8e310649 --- /dev/null +++ b/frontend/dist/assets/index.553ce8c7.js @@ -0,0 +1,487 @@ +function OD(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function RD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _={exports:{}},qe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Hf=Symbol.for("react.element"),MD=Symbol.for("react.portal"),ND=Symbol.for("react.fragment"),LD=Symbol.for("react.strict_mode"),DD=Symbol.for("react.profiler"),FD=Symbol.for("react.provider"),zD=Symbol.for("react.context"),BD=Symbol.for("react.forward_ref"),$D=Symbol.for("react.suspense"),VD=Symbol.for("react.memo"),WD=Symbol.for("react.lazy"),cC=Symbol.iterator;function jD(e){return e===null||typeof e!="object"?null:(e=cC&&e[cC]||e["@@iterator"],typeof e=="function"?e:null)}var rE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oE=Object.assign,iE={};function bu(e,t,n){this.props=e,this.context=t,this.refs=iE,this.updater=n||rE}bu.prototype.isReactComponent={};bu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};bu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function aE(){}aE.prototype=bu.prototype;function _b(e,t,n){this.props=e,this.context=t,this.refs=iE,this.updater=n||rE}var kb=_b.prototype=new aE;kb.constructor=_b;oE(kb,bu.prototype);kb.isPureReactComponent=!0;var fC=Array.isArray,sE=Object.prototype.hasOwnProperty,Eb={current:null},lE={key:!0,ref:!0,__self:!0,__source:!0};function uE(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)sE.call(t,r)&&!lE.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,H=j[R];if(0>>1;Ro(he,q))geo(Ee,he)?(j[R]=Ee,j[ge]=q,R=ge):(j[R]=he,j[le]=q,R=le);else if(geo(Ee,q))j[R]=Ee,j[ge]=q,R=ge;else break e}}return Z}function o(j,Z){var q=j.sortIndex-Z.sortIndex;return q!==0?q:j.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],f=[],p=1,h=null,m=3,v=!1,y=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(j){for(var Z=n(f);Z!==null;){if(Z.callback===null)r(f);else if(Z.startTime<=j)r(f),Z.sortIndex=Z.expirationTime,t(c,Z);else break;Z=n(f)}}function A(j){if(x=!1,C(j),!y)if(n(c)!==null)y=!0,ve(I);else{var Z=n(f);Z!==null&&Ae(A,Z.startTime-j)}}function I(j,Z){y=!1,x&&(x=!1,S($),$=-1),v=!0;var q=m;try{for(C(Z),h=n(c);h!==null&&(!(h.expirationTime>Z)||j&&!te());){var R=h.callback;if(typeof R=="function"){h.callback=null,m=h.priorityLevel;var H=R(h.expirationTime<=Z);Z=e.unstable_now(),typeof H=="function"?h.callback=H:h===n(c)&&r(c),C(Z)}else r(c);h=n(c)}if(h!==null)var se=!0;else{var le=n(f);le!==null&&Ae(A,le.startTime-Z),se=!1}return se}finally{h=null,m=q,v=!1}}var N=!1,L=null,$=-1,K=5,W=-1;function te(){return!(e.unstable_now()-Wj||125R?(j.sortIndex=q,t(f,j),n(c)===null&&j===n(f)&&(x?(S($),$=-1):x=!0,Ae(A,q-R))):(j.sortIndex=H,t(c,j),y||v||(y=!0,ve(I))),j},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(j){var Z=m;return function(){var q=m;m=Z;try{return j.apply(this,arguments)}finally{m=q}}}})(fE);(function(e){e.exports=fE})(cE);/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dE=_.exports,Nr=cE.exports;function ae(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oy=Object.prototype.hasOwnProperty,KD=/^[: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]*$/,hC={},mC={};function YD(e){return oy.call(mC,e)?!0:oy.call(hC,e)?!1:KD.test(e)?mC[e]=!0:(hC[e]=!0,!1)}function ZD(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XD(e,t,n,r){if(t===null||typeof t>"u"||ZD(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Jn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var En={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){En[e]=new Jn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];En[t]=new Jn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){En[e]=new Jn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){En[e]=new Jn(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){En[e]=new Jn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){En[e]=new Jn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){En[e]=new Jn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){En[e]=new Jn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){En[e]=new Jn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pb=/[\-:]([a-z])/g;function Tb(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(Pb,Tb);En[t]=new Jn(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(Pb,Tb);En[t]=new Jn(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(Pb,Tb);En[t]=new Jn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){En[e]=new Jn(e,1,!1,e.toLowerCase(),null,!1,!1)});En.xlinkHref=new Jn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){En[e]=new Jn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ib(e,t,n,r){var o=En.hasOwnProperty(t)?En[t]:null;(o!==null?o.type!==0:r||!(2u||o[s]!==i[u]){var c=` +`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=u);break}}}finally{qv=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xc(e):""}function QD(e){switch(e.tag){case 5:return xc(e.type);case 16:return xc("Lazy");case 13:return xc("Suspense");case 19:return xc("SuspenseList");case 0:case 2:case 15:return e=Kv(e.type,!1),e;case 11:return e=Kv(e.type.render,!1),e;case 1:return e=Kv(e.type,!0),e;default:return""}}function ly(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 El:return"Fragment";case kl:return"Portal";case iy:return"Profiler";case Ob:return"StrictMode";case ay:return"Suspense";case sy:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mE:return(e.displayName||"Context")+".Consumer";case hE:return(e._context.displayName||"Context")+".Provider";case Rb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mb:return t=e.displayName||null,t!==null?t:ly(e.type)||"Memo";case ha:t=e._payload,e=e._init;try{return ly(e(t))}catch{}}return null}function JD(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 ly(t);case 8:return t===Ob?"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 Ba(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eF(e){var t=vE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sp(e){e._valueTracker||(e._valueTracker=eF(e))}function yE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $h(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 uy(e,t){var n=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ba(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bE(e,t){t=t.checked,t!=null&&Ib(e,"checked",t,!1)}function cy(e,t){bE(e,t);var n=Ba(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fy(e,t.type,n):t.hasOwnProperty("defaultValue")&&fy(e,t.type,Ba(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yC(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fy(e,t,n){(t!=="number"||$h(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sc=Array.isArray;function Wl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=wp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tc={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},tF=["Webkit","ms","Moz","O"];Object.keys(Tc).forEach(function(e){tF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tc[t]=Tc[e]})});function CE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tc.hasOwnProperty(e)&&Tc[e]?(""+t).trim():t+"px"}function _E(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=CE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var nF=Bt({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 hy(e,t){if(t){if(nF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ae(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ae(62))}}function my(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 gy=null;function Nb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vy=null,jl=null,Ul=null;function SC(e){if(e=Yf(e)){if(typeof vy!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=J0(t),vy(e.stateNode,e.type,t))}}function kE(e){jl?Ul?Ul.push(e):Ul=[e]:jl=e}function EE(){if(jl){var e=jl,t=Ul;if(Ul=jl=null,SC(e),t)for(e=0;e>>=0,e===0?32:31-(pF(e)/hF|0)|0}var Cp=64,_p=4194304;function wc(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 Uh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~o;u!==0?r=wc(u):(i&=s,i!==0&&(r=wc(i)))}else s=n&~o,s!==0?r=wc(s):i!==0&&(r=wc(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function qf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ko(t),e[t]=n}function yF(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Oc),IC=String.fromCharCode(32),OC=!1;function GE(e,t){switch(e){case"keyup":return GF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Al=!1;function KF(e,t){switch(e){case"compositionend":return qE(t);case"keypress":return t.which!==32?null:(OC=!0,IC);case"textInput":return e=t.data,e===IC&&OC?null:e;default:return null}}function YF(e,t){if(Al)return e==="compositionend"||!Wb&&GE(e,t)?(e=UE(),uh=Bb=Sa=null,Al=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=LC(n)}}function XE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?XE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function QE(){for(var e=window,t=$h();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$h(e.document)}return t}function jb(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 oz(e){var t=QE(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&XE(n.ownerDocument.documentElement,n)){if(r!==null&&jb(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=DC(n,i);var s=DC(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pl=null,Cy=null,Mc=null,_y=!1;function FC(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_y||Pl==null||Pl!==$h(r)||(r=Pl,"selectionStart"in r&&jb(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mc&&af(Mc,r)||(Mc=r,r=qh(Cy,"onSelect"),0Ol||(e.current=Iy[Ol],Iy[Ol]=null,Ol--)}function _t(e,t){Ol++,Iy[Ol]=e.current,e.current=t}var $a={},zn=Ya($a),fr=Ya(!1),Ms=$a;function ou(e,t){var n=e.type.contextTypes;if(!n)return $a;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dr(e){return e=e.childContextTypes,e!=null}function Yh(){Pt(fr),Pt(zn)}function UC(e,t,n){if(zn.current!==$a)throw Error(ae(168));_t(zn,t),_t(fr,n)}function s6(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ae(108,JD(e)||"Unknown",o));return Bt({},n,r)}function Zh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$a,Ms=zn.current,_t(zn,e),_t(fr,fr.current),!0}function HC(e,t,n){var r=e.stateNode;if(!r)throw Error(ae(169));n?(e=s6(e,t,Ms),r.__reactInternalMemoizedMergedChildContext=e,Pt(fr),Pt(zn),_t(zn,e)):Pt(fr),_t(fr,n)}var Ti=null,em=!1,l1=!1;function l6(e){Ti===null?Ti=[e]:Ti.push(e)}function gz(e){em=!0,l6(e)}function Za(){if(!l1&&Ti!==null){l1=!0;var e=0,t=ct;try{var n=Ti;for(ct=1;e>=s,o-=s,Ri=1<<32-ko(t)+o|n<$?(K=L,L=null):K=L.sibling;var W=m(S,L,C[$],A);if(W===null){L===null&&(L=K);break}e&&L&&W.alternate===null&&t(S,L),b=i(W,b,$),N===null?I=W:N.sibling=W,N=W,L=K}if($===C.length)return n(S,L),Ot&&fs(S,$),I;if(L===null){for(;$$?(K=L,L=null):K=L.sibling;var te=m(S,L,W.value,A);if(te===null){L===null&&(L=K);break}e&&L&&te.alternate===null&&t(S,L),b=i(te,b,$),N===null?I=te:N.sibling=te,N=te,L=K}if(W.done)return n(S,L),Ot&&fs(S,$),I;if(L===null){for(;!W.done;$++,W=C.next())W=h(S,W.value,A),W!==null&&(b=i(W,b,$),N===null?I=W:N.sibling=W,N=W);return Ot&&fs(S,$),I}for(L=r(S,L);!W.done;$++,W=C.next())W=v(L,S,$,W.value,A),W!==null&&(e&&W.alternate!==null&&L.delete(W.key===null?$:W.key),b=i(W,b,$),N===null?I=W:N.sibling=W,N=W);return e&&L.forEach(function(we){return t(S,we)}),Ot&&fs(S,$),I}function E(S,b,C,A){if(typeof C=="object"&&C!==null&&C.type===El&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case xp:e:{for(var I=C.key,N=b;N!==null;){if(N.key===I){if(I=C.type,I===El){if(N.tag===7){n(S,N.sibling),b=o(N,C.props.children),b.return=S,S=b;break e}}else if(N.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ha&&QC(I)===N.type){n(S,N.sibling),b=o(N,C.props),b.ref=uc(S,N,C),b.return=S,S=b;break e}n(S,N);break}else t(S,N);N=N.sibling}C.type===El?(b=Ps(C.props.children,S.mode,A,C.key),b.return=S,S=b):(A=vh(C.type,C.key,C.props,null,S.mode,A),A.ref=uc(S,b,C),A.return=S,S=A)}return s(S);case kl:e:{for(N=C.key;b!==null;){if(b.key===N)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(S,b.sibling),b=o(b,C.children||[]),b.return=S,S=b;break e}else{n(S,b);break}else t(S,b);b=b.sibling}b=g1(C,S.mode,A),b.return=S,S=b}return s(S);case ha:return N=C._init,E(S,b,N(C._payload),A)}if(Sc(C))return y(S,b,C,A);if(oc(C))return x(S,b,C,A);Op(S,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(n(S,b.sibling),b=o(b,C),b.return=S,S=b):(n(S,b),b=m1(C,S.mode,A),b.return=S,S=b),s(S)):n(S,b)}return E}var au=g6(!0),v6=g6(!1),Zf={},Zo=Ya(Zf),cf=Ya(Zf),ff=Ya(Zf);function Cs(e){if(e===Zf)throw Error(ae(174));return e}function Qb(e,t){switch(_t(ff,t),_t(cf,e),_t(Zo,Zf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:py(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=py(t,e)}Pt(Zo),_t(Zo,t)}function su(){Pt(Zo),Pt(cf),Pt(ff)}function y6(e){Cs(ff.current);var t=Cs(Zo.current),n=py(t,e.type);t!==n&&(_t(cf,e),_t(Zo,n))}function Jb(e){cf.current===e&&(Pt(Zo),Pt(cf))}var Ft=Ya(0);function n0(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 u1=[];function ex(){for(var e=0;en?n:4,e(!0);var r=c1.transition;c1.transition={};try{e(!1),t()}finally{ct=n,c1.transition=r}}function N6(){return ro().memoizedState}function xz(e,t,n){var r=Ma(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},L6(e))D6(t,n);else if(n=d6(e,t,n,r),n!==null){var o=Zn();Eo(n,e,r,o),F6(n,t,r)}}function Sz(e,t,n){var r=Ma(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(L6(e))D6(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,u=i(s,n);if(o.hasEagerState=!0,o.eagerState=u,Po(u,s)){var c=t.interleaved;c===null?(o.next=o,Zb(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=d6(e,t,o,r),n!==null&&(o=Zn(),Eo(n,e,r,o),F6(n,t,r))}}function L6(e){var t=e.alternate;return e===zt||t!==null&&t===zt}function D6(e,t){Nc=r0=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function F6(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Db(e,n)}}var o0={readContext:no,useCallback:Rn,useContext:Rn,useEffect:Rn,useImperativeHandle:Rn,useInsertionEffect:Rn,useLayoutEffect:Rn,useMemo:Rn,useReducer:Rn,useRef:Rn,useState:Rn,useDebugValue:Rn,useDeferredValue:Rn,useTransition:Rn,useMutableSource:Rn,useSyncExternalStore:Rn,useId:Rn,unstable_isNewReconciler:!1},wz={readContext:no,useCallback:function(e,t){return Bo().memoizedState=[e,t===void 0?null:t],e},useContext:no,useEffect:e4,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ph(4194308,4,T6.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ph(4194308,4,e,t)},useInsertionEffect:function(e,t){return ph(4,2,e,t)},useMemo:function(e,t){var n=Bo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=xz.bind(null,zt,e),[r.memoizedState,e]},useRef:function(e){var t=Bo();return e={current:e},t.memoizedState=e},useState:JC,useDebugValue:ix,useDeferredValue:function(e){return Bo().memoizedState=e},useTransition:function(){var e=JC(!1),t=e[0];return e=bz.bind(null,e[1]),Bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zt,o=Bo();if(Ot){if(n===void 0)throw Error(ae(407));n=n()}else{if(n=t(),hn===null)throw Error(ae(349));(Ls&30)!==0||S6(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,e4(C6.bind(null,r,i,e),[e]),r.flags|=2048,hf(9,w6.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Bo(),t=hn.identifierPrefix;if(Ot){var n=Mi,r=Ri;n=(r&~(1<<32-ko(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=df++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Uo]=t,e[uf]=r,G6(e,t,!1,!1),t.stateNode=e;e:{switch(s=my(n,r),n){case"dialog":Et("cancel",e),Et("close",e),o=r;break;case"iframe":case"object":case"embed":Et("load",e),o=r;break;case"video":case"audio":for(o=0;ouu&&(t.flags|=128,r=!0,cc(i,!1),t.lanes=4194304)}else{if(!r)if(e=n0(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ot)return Mn(t),null}else 2*Xt()-i.renderingStartTime>uu&&n!==1073741824&&(t.flags|=128,r=!0,cc(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xt(),t.sibling=null,n=Ft.current,_t(Ft,r?n&1|2:n&1),t):(Mn(t),null);case 22:case 23:return fx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Ir&1073741824)!==0&&(Mn(t),t.subtreeFlags&6&&(t.flags|=8192)):Mn(t),null;case 24:return null;case 25:return null}throw Error(ae(156,t.tag))}function Iz(e,t){switch(Hb(t),t.tag){case 1:return dr(t.type)&&Yh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return su(),Pt(fr),Pt(zn),ex(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Jb(t),null;case 13:if(Pt(Ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));iu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pt(Ft),null;case 4:return su(),null;case 10:return Yb(t.type._context),null;case 22:case 23:return fx(),null;case 24:return null;default:return null}}var Mp=!1,Dn=!1,Oz=typeof WeakSet=="function"?WeakSet:Set,Se=null;function Ll(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Wt(e,t,r)}else n.current=null}function Wy(e,t,n){try{n()}catch(r){Wt(e,t,r)}}var u4=!1;function Rz(e,t){if(ky=Hh,e=QE(),jb(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,u=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(u=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ey={focusedElem:e,selectionRange:n},Hh=!1,Se=t;Se!==null;)if(t=Se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Se=e;else for(;Se!==null;){t=Se;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,E=y.memoizedState,S=t.stateNode,b=S.getSnapshotBeforeUpdate(t.elementType===t.type?x:xo(t.type,x),E);S.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(A){Wt(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,Se=e;break}Se=t.return}return y=u4,u4=!1,y}function Lc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Wy(t,n,i)}o=o.next}while(o!==r)}}function rm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jy(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Y6(e){var t=e.alternate;t!==null&&(e.alternate=null,Y6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Uo],delete t[uf],delete t[Ty],delete t[hz],delete t[mz])),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 Z6(e){return e.tag===5||e.tag===3||e.tag===4}function c4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Z6(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 Uy(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kh));else if(r!==4&&(e=e.child,e!==null))for(Uy(e,t,n),e=e.sibling;e!==null;)Uy(e,t,n),e=e.sibling}function Hy(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Hy(e,t,n),e=e.sibling;e!==null;)Hy(e,t,n),e=e.sibling}var wn=null,So=!1;function aa(e,t,n){for(n=n.child;n!==null;)X6(e,t,n),n=n.sibling}function X6(e,t,n){if(Yo&&typeof Yo.onCommitFiberUnmount=="function")try{Yo.onCommitFiberUnmount(Y0,n)}catch{}switch(n.tag){case 5:Dn||Ll(n,t);case 6:var r=wn,o=So;wn=null,aa(e,t,n),wn=r,So=o,wn!==null&&(So?(e=wn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):wn.removeChild(n.stateNode));break;case 18:wn!==null&&(So?(e=wn,n=n.stateNode,e.nodeType===8?s1(e.parentNode,n):e.nodeType===1&&s1(e,n),rf(e)):s1(wn,n.stateNode));break;case 4:r=wn,o=So,wn=n.stateNode.containerInfo,So=!0,aa(e,t,n),wn=r,So=o;break;case 0:case 11:case 14:case 15:if(!Dn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&((i&2)!==0||(i&4)!==0)&&Wy(n,t,s),o=o.next}while(o!==r)}aa(e,t,n);break;case 1:if(!Dn&&(Ll(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Wt(n,t,u)}aa(e,t,n);break;case 21:aa(e,t,n);break;case 22:n.mode&1?(Dn=(r=Dn)||n.memoizedState!==null,aa(e,t,n),Dn=r):aa(e,t,n);break;default:aa(e,t,n)}}function f4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Oz),t.forEach(function(r){var o=Vz.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function mo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nz(r/1960))-r,10e?16:e,wa===null)var r=!1;else{if(e=wa,wa=null,s0=0,(Xe&6)!==0)throw Error(ae(331));var o=Xe;for(Xe|=4,Se=e.current;Se!==null;){var i=Se,s=i.child;if((Se.flags&16)!==0){var u=i.deletions;if(u!==null){for(var c=0;cXt()-ux?As(e,0):lx|=n),pr(e,t)}function iA(e,t){t===0&&((e.mode&1)===0?t=1:(t=_p,_p<<=1,(_p&130023424)===0&&(_p=4194304)));var n=Zn();e=$i(e,t),e!==null&&(qf(e,t,n),pr(e,n))}function $z(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),iA(e,n)}function Vz(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ae(314))}r!==null&&r.delete(t),iA(e,n)}var aA;aA=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fr.current)ur=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ur=!1,Pz(e,t,n);ur=(e.flags&131072)!==0}else ur=!1,Ot&&(t.flags&1048576)!==0&&u6(t,Qh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hh(e,t),e=t.pendingProps;var o=ou(t,zn.current);Gl(t,n),o=nx(null,t,r,e,o,n);var i=rx();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,dr(r)?(i=!0,Zh(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Xb(t),o.updater=tm,t.stateNode=o,o._reactInternals=t,Ly(t,r,e,n),t=zy(null,t,r,!0,i,n)):(t.tag=0,Ot&&i&&Ub(t),Yn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=jz(r),e=xo(r,e),o){case 0:t=Fy(null,t,r,e,n);break e;case 1:t=a4(null,t,r,e,n);break e;case 11:t=o4(null,t,r,e,n);break e;case 14:t=i4(null,t,r,xo(r.type,e),n);break e}throw Error(ae(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xo(r,o),Fy(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xo(r,o),a4(e,t,r,o,n);case 3:e:{if(j6(t),e===null)throw Error(ae(387));r=t.pendingProps,i=t.memoizedState,o=i.element,p6(e,t),t0(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=lu(Error(ae(423)),t),t=s4(e,t,r,n,o);break e}else if(r!==o){o=lu(Error(ae(424)),t),t=s4(e,t,r,n,o);break e}else for(Or=Ia(t.stateNode.containerInfo.firstChild),Rr=t,Ot=!0,Co=null,n=v6(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(iu(),r===o){t=Vi(e,t,n);break e}Yn(e,t,r,n)}t=t.child}return t;case 5:return y6(t),e===null&&Ry(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ay(r,o)?s=null:i!==null&&Ay(r,i)&&(t.flags|=32),W6(e,t),Yn(e,t,s,n),t.child;case 6:return e===null&&Ry(t),null;case 13:return U6(e,t,n);case 4:return Qb(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=au(t,null,r,n):Yn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xo(r,o),o4(e,t,r,o,n);case 7:return Yn(e,t,t.pendingProps,n),t.child;case 8:return Yn(e,t,t.pendingProps.children,n),t.child;case 12:return Yn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,_t(Jh,r._currentValue),r._currentValue=s,i!==null)if(Po(i.value,s)){if(i.children===o.children&&!fr.current){t=Vi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){s=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Li(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),My(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(ae(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),My(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Yn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Gl(t,n),o=no(o),r=r(o),t.flags|=1,Yn(e,t,r,n),t.child;case 14:return r=t.type,o=xo(r,t.pendingProps),o=xo(r.type,o),i4(e,t,r,o,n);case 15:return $6(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xo(r,o),hh(e,t),t.tag=1,dr(r)?(e=!0,Zh(t)):e=!1,Gl(t,n),m6(t,r,o),Ly(t,r,o,n),zy(null,t,r,!0,e,n);case 19:return H6(e,t,n);case 22:return V6(e,t,n)}throw Error(ae(156,t.tag))};function sA(e,t){return ME(e,t)}function Wz(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jr(e,t,n,r){return new Wz(e,t,n,r)}function px(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jz(e){if(typeof e=="function")return px(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rb)return 11;if(e===Mb)return 14}return 2}function Na(e,t){var n=e.alternate;return n===null?(n=Jr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vh(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")px(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case El:return Ps(n.children,o,i,t);case Ob:s=8,o|=8;break;case iy:return e=Jr(12,n,t,o|2),e.elementType=iy,e.lanes=i,e;case ay:return e=Jr(13,n,t,o),e.elementType=ay,e.lanes=i,e;case sy:return e=Jr(19,n,t,o),e.elementType=sy,e.lanes=i,e;case gE:return im(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hE:s=10;break e;case mE:s=9;break e;case Rb:s=11;break e;case Mb:s=14;break e;case ha:s=16,r=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=Jr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ps(e,t,n,r){return e=Jr(7,e,r,t),e.lanes=n,e}function im(e,t,n,r){return e=Jr(22,e,r,t),e.elementType=gE,e.lanes=n,e.stateNode={isHidden:!1},e}function m1(e,t,n){return e=Jr(6,e,null,t),e.lanes=n,e}function g1(e,t,n){return t=Jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uz(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zv(0),this.expirationTimes=Zv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zv(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function hx(e,t,n,r,o,i,s,u,c){return e=new Uz(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xb(i),e}function Hz(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Fr})(Gf);var b4=Gf.exports;ry.createRoot=b4.createRoot,ry.hydrateRoot=b4.hydrateRoot;var Di=Boolean(globalThis?.document)?_.exports.useLayoutEffect:_.exports.useEffect,cm={exports:{}},fm={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Zz=_.exports,Xz=Symbol.for("react.element"),Qz=Symbol.for("react.fragment"),Jz=Object.prototype.hasOwnProperty,eB=Zz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tB={key:!0,ref:!0,__self:!0,__source:!0};function fA(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Jz.call(t,r)&&!tB.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Xz,type:e,key:i,ref:s,props:o,_owner:eB.current}}fm.Fragment=Qz;fm.jsx=fA;fm.jsxs=fA;(function(e){e.exports=fm})(cm);const Bn=cm.exports.Fragment,w=cm.exports.jsx,ne=cm.exports.jsxs;var yx=_.exports.createContext({});yx.displayName="ColorModeContext";function dm(){const e=_.exports.useContext(yx);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function La(e,t){const{colorMode:n}=dm();return n==="dark"?t:e}var Dp={light:"chakra-ui-light",dark:"chakra-ui-dark"};function nB(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o?.()},setClassName(r){document.body.classList.add(r?Dp.dark:Dp.light),document.body.classList.remove(r?Dp.light:Dp.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const o=n.query(),i=s=>{r(s.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 r=document.createElement("style");return r.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(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var rB="chakra-ui-color-mode";function oB(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var iB=oB(rB),x4=()=>{};function S4(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function dA(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=iB}=e,u=o==="dark"?"dark":"light",[c,f]=_.exports.useState(()=>S4(s,u)),[p,h]=_.exports.useState(()=>S4(s)),{getSystemTheme:m,setClassName:v,setDataset:y,addListener:x}=_.exports.useMemo(()=>nB({preventTransition:i}),[i]),E=o==="system"&&!c?p:c,S=_.exports.useCallback(A=>{const I=A==="system"?m():A;f(I),v(I==="dark"),y(I),s.set(I)},[s,m,v,y]);Di(()=>{o==="system"&&h(m())},[]),_.exports.useEffect(()=>{const A=s.get();if(A){S(A);return}if(o==="system"){S("system");return}S(u)},[s,u,o,S]);const b=_.exports.useCallback(()=>{S(E==="dark"?"light":"dark")},[E,S]);_.exports.useEffect(()=>{if(!!r)return x(S)},[r,x,S]);const C=_.exports.useMemo(()=>({colorMode:t??E,toggleColorMode:t?x4:b,setColorMode:t?x4:S}),[E,b,S,t]);return w(yx.Provider,{value:C,children:n})}dA.displayName="ColorModeProvider";var aB=new Set(["dark","light","system"]);function sB(e){let t=e;return aB.has(t)||(t="light"),t}function lB(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=sB(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `,u=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${i?s:u}`.trim()}function uB(e={}){return w("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:lB(e)}})}var Zy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,u="[object Arguments]",c="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",h="[object Date]",m="[object Error]",v="[object Function]",y="[object GeneratorFunction]",x="[object Map]",E="[object Number]",S="[object Null]",b="[object Object]",C="[object Proxy]",A="[object RegExp]",I="[object Set]",N="[object String]",L="[object Undefined]",$="[object WeakMap]",K="[object ArrayBuffer]",W="[object DataView]",te="[object Float32Array]",we="[object Float64Array]",_e="[object Int8Array]",xe="[object Int16Array]",ue="[object Int32Array]",ve="[object Uint8Array]",Ae="[object Uint8ClampedArray]",j="[object Uint16Array]",Z="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,se={};se[te]=se[we]=se[_e]=se[xe]=se[ue]=se[ve]=se[Ae]=se[j]=se[Z]=!0,se[u]=se[c]=se[K]=se[p]=se[W]=se[h]=se[m]=se[v]=se[x]=se[E]=se[b]=se[A]=se[I]=se[N]=se[$]=!1;var le=typeof Ii=="object"&&Ii&&Ii.Object===Object&&Ii,he=typeof self=="object"&&self&&self.Object===Object&&self,ge=le||he||Function("return this")(),Ee=t&&!t.nodeType&&t,fe=Ee&&!0&&e&&!e.nodeType&&e,Pe=fe&&fe.exports===Ee,Le=Pe&&le.process,gt=function(){try{var O=fe&&fe.require&&fe.require("util").types;return O||Le&&Le.binding&&Le.binding("util")}catch{}}(),Mt=gt&>.isTypedArray;function Pn(O,F,U){switch(U.length){case 0:return O.call(F);case 1:return O.call(F,U[0]);case 2:return O.call(F,U[0],U[1]);case 3:return O.call(F,U[0],U[1],U[2])}return O.apply(F,U)}function ye(O,F){for(var U=-1,me=Array(O);++U-1}function bg(O,F){var U=this.__data__,me=di(U,O);return me<0?(++this.size,U.push([O,F])):U[me][1]=F,this}lo.prototype.clear=Ou,lo.prototype.delete=vg,lo.prototype.get=Ru,lo.prototype.has=yg,lo.prototype.set=bg;function Yi(O){var F=-1,U=O==null?0:O.length;for(this.clear();++F1?U[Ue-1]:void 0,Fe=Ue>2?U[2]:void 0;for(lt=O.length>3&&typeof lt=="function"?(Ue--,lt):void 0,Fe&&Cd(U[0],U[1],Fe)&&(lt=Ue<3?void 0:lt,Ue=1),F=Object(F);++me-1&&O%1==0&&O0){if(++F>=o)return arguments[0]}else F=0;return O.apply(void 0,arguments)}}function Pd(O){if(O!=null){try{return tn.call(O)}catch{}try{return O+""}catch{}}return""}function Js(O,F){return O===F||O!==O&&F!==F}var Bu=Nu(function(){return arguments}())?Nu:function(O){return es(O)&&$t.call(O,"callee")&&!Oo.call(O,"callee")},$u=Array.isArray;function el(O){return O!=null&&Id(O.length)&&!Vu(O)}function zg(O){return es(O)&&el(O)}var Td=Ja||Vg;function Vu(O){if(!uo(O))return!1;var F=Ks(O);return F==v||F==y||F==f||F==C}function Id(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=s}function uo(O){var F=typeof O;return O!=null&&(F=="object"||F=="function")}function es(O){return O!=null&&typeof O=="object"}function Bg(O){if(!es(O)||Ks(O)!=b)return!1;var F=Tn(O);if(F===null)return!0;var U=$t.call(F,"constructor")&&F.constructor;return typeof U=="function"&&U instanceof U&&tn.call(U)==st}var Od=Mt?Nt(Mt):hd;function $g(O){return bd(O,Rd(O))}function Rd(O){return el(O)?Ig(O,!0):Mg(O)}var vt=Ys(function(O,F,U,me){md(O,F,U,me)});function ht(O){return function(){return O}}function Md(O){return O}function Vg(){return!1}e.exports=vt})(Zy,Zy.exports);const Va=Zy.exports;function qo(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Fl(e,...t){return cB(e)?e(...t):e}var cB=e=>typeof e=="function",fB=e=>/!(important)?$/.test(e),w4=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Xy=(e,t)=>n=>{const r=String(t),o=fB(r),i=w4(r),s=e?`${e}.${i}`:i;let u=qo(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return u=w4(u),o?`${u} !important`:u};function gf(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const u=Xy(t,i)(s);let c=n?.(u,s)??u;return r&&(c=r(c,s)),c}}var Fp=(...e)=>t=>e.reduce((n,r)=>r(n),t);function go(e,t){return n=>{const r={property:n,scale:e};return r.transform=gf({scale:e,transform:t}),r}}var dB=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function pB(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:dB(t),transform:n?gf({scale:n,compose:r}):r}}var pA=["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 hB(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...pA].join(" ")}function mB(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...pA].join(" ")}var gB={"--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(" ")},vB={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 yB(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 bB={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},hA="& > :not(style) ~ :not(style)",xB={[hA]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},SB={[hA]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},Qy={"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"},wB=new Set(Object.values(Qy)),mA=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),CB=e=>e.trim();function _B(e,t){var n;if(e==null||mA.has(e))return e;const r=/(?^[a-z-A-Z]+)\((?(.*))\)/g,{type:o,values:i}=((n=r.exec(e))==null?void 0:n.groups)??{};if(!o||!i)return e;const s=o.includes("-gradient")?o:`${o}-gradient`,[u,...c]=i.split(",").map(CB).filter(Boolean);if(c?.length===0)return e;const f=u in Qy?Qy[u]:u;c.unshift(f);const p=c.map(h=>{if(wB.has(h))return h;const m=h.indexOf(" "),[v,y]=m!==-1?[h.substr(0,m),h.substr(m+1)]:[h],x=gA(y)?y:y&&y.split(" "),E=`colors.${v}`,S=E in t.__cssMap?t.__cssMap[E].varRef:v;return x?[S,...Array.isArray(x)?x:[x]].join(" "):S});return`${s}(${p.join(", ")})`}var gA=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),kB=(e,t)=>_B(e,t??{});function EB(e){return/^var\(--.+\)$/.test(e)}var AB=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Do=e=>t=>`${e}(${t})`,Ze={filter(e){return e!=="auto"?e:gB},backdropFilter(e){return e!=="auto"?e:vB},ring(e){return yB(Ze.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?hB():e==="auto-gpu"?mB():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=AB(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(EB(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:kB,blur:Do("blur"),opacity:Do("opacity"),brightness:Do("brightness"),contrast:Do("contrast"),dropShadow:Do("drop-shadow"),grayscale:Do("grayscale"),hueRotate:Do("hue-rotate"),invert:Do("invert"),saturate:Do("saturate"),sepia:Do("sepia"),bgImage(e){return e==null||gA(e)||mA.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=bB[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},z={borderWidths:go("borderWidths"),borderStyles:go("borderStyles"),colors:go("colors"),borders:go("borders"),radii:go("radii",Ze.px),space:go("space",Fp(Ze.vh,Ze.px)),spaceT:go("space",Fp(Ze.vh,Ze.px)),degreeT(e){return{property:e,transform:Ze.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:gf({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:go("sizes",Fp(Ze.vh,Ze.px)),sizesT:go("sizes",Fp(Ze.vh,Ze.fraction)),shadows:go("shadows"),logical:pB,blur:go("blur",Ze.blur)},yh={background:z.colors("background"),backgroundColor:z.colors("backgroundColor"),backgroundImage:z.propT("backgroundImage",Ze.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ze.bgClip},bgSize:z.prop("backgroundSize"),bgPosition:z.prop("backgroundPosition"),bg:z.colors("background"),bgColor:z.colors("backgroundColor"),bgPos:z.prop("backgroundPosition"),bgRepeat:z.prop("backgroundRepeat"),bgAttachment:z.prop("backgroundAttachment"),bgGradient:z.propT("backgroundImage",Ze.gradient),bgClip:{transform:Ze.bgClip}};Object.assign(yh,{bgImage:yh.backgroundImage,bgImg:yh.backgroundImage});var et={border:z.borders("border"),borderWidth:z.borderWidths("borderWidth"),borderStyle:z.borderStyles("borderStyle"),borderColor:z.colors("borderColor"),borderRadius:z.radii("borderRadius"),borderTop:z.borders("borderTop"),borderBlockStart:z.borders("borderBlockStart"),borderTopLeftRadius:z.radii("borderTopLeftRadius"),borderStartStartRadius:z.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:z.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:z.radii("borderTopRightRadius"),borderStartEndRadius:z.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:z.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:z.borders("borderRight"),borderInlineEnd:z.borders("borderInlineEnd"),borderBottom:z.borders("borderBottom"),borderBlockEnd:z.borders("borderBlockEnd"),borderBottomLeftRadius:z.radii("borderBottomLeftRadius"),borderBottomRightRadius:z.radii("borderBottomRightRadius"),borderLeft:z.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:z.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:z.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:z.borders(["borderLeft","borderRight"]),borderInline:z.borders("borderInline"),borderY:z.borders(["borderTop","borderBottom"]),borderBlock:z.borders("borderBlock"),borderTopWidth:z.borderWidths("borderTopWidth"),borderBlockStartWidth:z.borderWidths("borderBlockStartWidth"),borderTopColor:z.colors("borderTopColor"),borderBlockStartColor:z.colors("borderBlockStartColor"),borderTopStyle:z.borderStyles("borderTopStyle"),borderBlockStartStyle:z.borderStyles("borderBlockStartStyle"),borderBottomWidth:z.borderWidths("borderBottomWidth"),borderBlockEndWidth:z.borderWidths("borderBlockEndWidth"),borderBottomColor:z.colors("borderBottomColor"),borderBlockEndColor:z.colors("borderBlockEndColor"),borderBottomStyle:z.borderStyles("borderBottomStyle"),borderBlockEndStyle:z.borderStyles("borderBlockEndStyle"),borderLeftWidth:z.borderWidths("borderLeftWidth"),borderInlineStartWidth:z.borderWidths("borderInlineStartWidth"),borderLeftColor:z.colors("borderLeftColor"),borderInlineStartColor:z.colors("borderInlineStartColor"),borderLeftStyle:z.borderStyles("borderLeftStyle"),borderInlineStartStyle:z.borderStyles("borderInlineStartStyle"),borderRightWidth:z.borderWidths("borderRightWidth"),borderInlineEndWidth:z.borderWidths("borderInlineEndWidth"),borderRightColor:z.colors("borderRightColor"),borderInlineEndColor:z.colors("borderInlineEndColor"),borderRightStyle:z.borderStyles("borderRightStyle"),borderInlineEndStyle:z.borderStyles("borderInlineEndStyle"),borderTopRadius:z.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:z.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:z.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:z.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(et,{rounded:et.borderRadius,roundedTop:et.borderTopRadius,roundedTopLeft:et.borderTopLeftRadius,roundedTopRight:et.borderTopRightRadius,roundedTopStart:et.borderStartStartRadius,roundedTopEnd:et.borderStartEndRadius,roundedBottom:et.borderBottomRadius,roundedBottomLeft:et.borderBottomLeftRadius,roundedBottomRight:et.borderBottomRightRadius,roundedBottomStart:et.borderEndStartRadius,roundedBottomEnd:et.borderEndEndRadius,roundedLeft:et.borderLeftRadius,roundedRight:et.borderRightRadius,roundedStart:et.borderInlineStartRadius,roundedEnd:et.borderInlineEndRadius,borderStart:et.borderInlineStart,borderEnd:et.borderInlineEnd,borderTopStartRadius:et.borderStartStartRadius,borderTopEndRadius:et.borderStartEndRadius,borderBottomStartRadius:et.borderEndStartRadius,borderBottomEndRadius:et.borderEndEndRadius,borderStartRadius:et.borderInlineStartRadius,borderEndRadius:et.borderInlineEndRadius,borderStartWidth:et.borderInlineStartWidth,borderEndWidth:et.borderInlineEndWidth,borderStartColor:et.borderInlineStartColor,borderEndColor:et.borderInlineEndColor,borderStartStyle:et.borderInlineStartStyle,borderEndStyle:et.borderInlineEndStyle});var PB={color:z.colors("color"),textColor:z.colors("color"),fill:z.colors("fill"),stroke:z.colors("stroke")},Jy={boxShadow:z.shadows("boxShadow"),mixBlendMode:!0,blendMode:z.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:z.prop("backgroundBlendMode"),opacity:!0};Object.assign(Jy,{shadow:Jy.boxShadow});var TB={filter:{transform:Ze.filter},blur:z.blur("--chakra-blur"),brightness:z.propT("--chakra-brightness",Ze.brightness),contrast:z.propT("--chakra-contrast",Ze.contrast),hueRotate:z.degreeT("--chakra-hue-rotate"),invert:z.propT("--chakra-invert",Ze.invert),saturate:z.propT("--chakra-saturate",Ze.saturate),dropShadow:z.propT("--chakra-drop-shadow",Ze.dropShadow),backdropFilter:{transform:Ze.backdropFilter},backdropBlur:z.blur("--chakra-backdrop-blur"),backdropBrightness:z.propT("--chakra-backdrop-brightness",Ze.brightness),backdropContrast:z.propT("--chakra-backdrop-contrast",Ze.contrast),backdropHueRotate:z.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:z.propT("--chakra-backdrop-invert",Ze.invert),backdropSaturate:z.propT("--chakra-backdrop-saturate",Ze.saturate)},c0={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ze.flexDirection},experimental_spaceX:{static:xB,transform:gf({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:SB,transform:gf({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:z.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:z.space("gap"),rowGap:z.space("rowGap"),columnGap:z.space("columnGap")};Object.assign(c0,{flexDir:c0.flexDirection});var vA={gridGap:z.space("gridGap"),gridColumnGap:z.space("gridColumnGap"),gridRowGap:z.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},IB={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ze.outline},outlineOffset:!0,outlineColor:z.colors("outlineColor")},Zr={width:z.sizesT("width"),inlineSize:z.sizesT("inlineSize"),height:z.sizes("height"),blockSize:z.sizes("blockSize"),boxSize:z.sizes(["width","height"]),minWidth:z.sizes("minWidth"),minInlineSize:z.sizes("minInlineSize"),minHeight:z.sizes("minHeight"),minBlockSize:z.sizes("minBlockSize"),maxWidth:z.sizes("maxWidth"),maxInlineSize:z.sizes("maxInlineSize"),maxHeight:z.sizes("maxHeight"),maxBlockSize:z.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:z.propT("float",Ze.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Zr,{w:Zr.width,h:Zr.height,minW:Zr.minWidth,maxW:Zr.maxWidth,minH:Zr.minHeight,maxH:Zr.maxHeight,overscroll:Zr.overscrollBehavior,overscrollX:Zr.overscrollBehaviorX,overscrollY:Zr.overscrollBehaviorY});var OB={listStyleType:!0,listStylePosition:!0,listStylePos:z.prop("listStylePosition"),listStyleImage:!0,listStyleImg:z.prop("listStyleImage")};function RB(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(o))return u.get(o);const c=e(r,o,i,s);return u.set(o,c),c}},NB=MB(RB),LB={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},DB={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},v1=(e,t,n)=>{const r={},o=NB(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},FB={srOnly:{transform(e){return e===!0?LB:e==="focusable"?DB:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>v1(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>v1(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>v1(t,e,n)}},zc={position:!0,pos:z.prop("position"),zIndex:z.prop("zIndex","zIndices"),inset:z.spaceT("inset"),insetX:z.spaceT(["left","right"]),insetInline:z.spaceT("insetInline"),insetY:z.spaceT(["top","bottom"]),insetBlock:z.spaceT("insetBlock"),top:z.spaceT("top"),insetBlockStart:z.spaceT("insetBlockStart"),bottom:z.spaceT("bottom"),insetBlockEnd:z.spaceT("insetBlockEnd"),left:z.spaceT("left"),insetInlineStart:z.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:z.spaceT("right"),insetInlineEnd:z.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(zc,{insetStart:zc.insetInlineStart,insetEnd:zc.insetInlineEnd});var zB={ring:{transform:Ze.ring},ringColor:z.colors("--chakra-ring-color"),ringOffset:z.prop("--chakra-ring-offset-width"),ringOffsetColor:z.colors("--chakra-ring-offset-color"),ringInset:z.prop("--chakra-ring-inset")},At={margin:z.spaceT("margin"),marginTop:z.spaceT("marginTop"),marginBlockStart:z.spaceT("marginBlockStart"),marginRight:z.spaceT("marginRight"),marginInlineEnd:z.spaceT("marginInlineEnd"),marginBottom:z.spaceT("marginBottom"),marginBlockEnd:z.spaceT("marginBlockEnd"),marginLeft:z.spaceT("marginLeft"),marginInlineStart:z.spaceT("marginInlineStart"),marginX:z.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:z.spaceT("marginInline"),marginY:z.spaceT(["marginTop","marginBottom"]),marginBlock:z.spaceT("marginBlock"),padding:z.space("padding"),paddingTop:z.space("paddingTop"),paddingBlockStart:z.space("paddingBlockStart"),paddingRight:z.space("paddingRight"),paddingBottom:z.space("paddingBottom"),paddingBlockEnd:z.space("paddingBlockEnd"),paddingLeft:z.space("paddingLeft"),paddingInlineStart:z.space("paddingInlineStart"),paddingInlineEnd:z.space("paddingInlineEnd"),paddingX:z.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:z.space("paddingInline"),paddingY:z.space(["paddingTop","paddingBottom"]),paddingBlock:z.space("paddingBlock")};Object.assign(At,{m:At.margin,mt:At.marginTop,mr:At.marginRight,me:At.marginInlineEnd,marginEnd:At.marginInlineEnd,mb:At.marginBottom,ml:At.marginLeft,ms:At.marginInlineStart,marginStart:At.marginInlineStart,mx:At.marginX,my:At.marginY,p:At.padding,pt:At.paddingTop,py:At.paddingY,px:At.paddingX,pb:At.paddingBottom,pl:At.paddingLeft,ps:At.paddingInlineStart,paddingStart:At.paddingInlineStart,pr:At.paddingRight,pe:At.paddingInlineEnd,paddingEnd:At.paddingInlineEnd});var BB={textDecorationColor:z.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:z.shadows("textShadow")},$B={clipPath:!0,transform:z.propT("transform",Ze.transform),transformOrigin:!0,translateX:z.spaceT("--chakra-translate-x"),translateY:z.spaceT("--chakra-translate-y"),skewX:z.degreeT("--chakra-skew-x"),skewY:z.degreeT("--chakra-skew-y"),scaleX:z.prop("--chakra-scale-x"),scaleY:z.prop("--chakra-scale-y"),scale:z.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:z.degreeT("--chakra-rotate")},VB={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:z.prop("transitionDuration","transition.duration"),transitionProperty:z.prop("transitionProperty","transition.property"),transitionTimingFunction:z.prop("transitionTimingFunction","transition.easing")},WB={fontFamily:z.prop("fontFamily","fonts"),fontSize:z.prop("fontSize","fontSizes",Ze.px),fontWeight:z.prop("fontWeight","fontWeights"),lineHeight:z.prop("lineHeight","lineHeights"),letterSpacing:z.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},jB={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:z.spaceT("scrollMargin"),scrollMarginTop:z.spaceT("scrollMarginTop"),scrollMarginBottom:z.spaceT("scrollMarginBottom"),scrollMarginLeft:z.spaceT("scrollMarginLeft"),scrollMarginRight:z.spaceT("scrollMarginRight"),scrollMarginX:z.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:z.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:z.spaceT("scrollPadding"),scrollPaddingTop:z.spaceT("scrollPaddingTop"),scrollPaddingBottom:z.spaceT("scrollPaddingBottom"),scrollPaddingLeft:z.spaceT("scrollPaddingLeft"),scrollPaddingRight:z.spaceT("scrollPaddingRight"),scrollPaddingX:z.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:z.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function yA(e){return qo(e)&&e.reference?e.reference:String(e)}var pm=(e,...t)=>t.map(yA).join(` ${e} `).replace(/calc/g,""),C4=(...e)=>`calc(${pm("+",...e)})`,_4=(...e)=>`calc(${pm("-",...e)})`,e2=(...e)=>`calc(${pm("*",...e)})`,k4=(...e)=>`calc(${pm("/",...e)})`,E4=e=>{const t=yA(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:e2(t,-1)},ys=Object.assign(e=>({add:(...t)=>ys(C4(e,...t)),subtract:(...t)=>ys(_4(e,...t)),multiply:(...t)=>ys(e2(e,...t)),divide:(...t)=>ys(k4(e,...t)),negate:()=>ys(E4(e)),toString:()=>e.toString()}),{add:C4,subtract:_4,multiply:e2,divide:k4,negate:E4});function UB(e,t="-"){return e.replace(/\s+/g,t)}function HB(e){const t=UB(e.toString());return qB(GB(t))}function GB(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function qB(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function KB(e,t=""){return[t,e].filter(Boolean).join("-")}function YB(e,t){return`var(${e}${t?`, ${t}`:""})`}function ZB(e,t=""){return HB(`--${KB(e,t)}`)}function Xa(e,t,n){const r=ZB(e,n);return{variable:r,reference:YB(r,t)}}function XB(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function QB(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function JB(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function t2(e){if(e==null)return e;const{unitless:t}=JB(e);return t||typeof e=="number"?`${e}px`:e}var bA=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,bx=e=>Object.fromEntries(Object.entries(e).sort(bA));function A4(e){const t=bx(e);return Object.assign(Object.values(t),t)}function e$(e){const t=Object.keys(bx(e));return new Set(t)}function P4(e){if(!e)return e;e=t2(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function _c(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${t2(e)})`),t&&n.push("and",`(max-width: ${t2(t)})`),n.join(" ")}function t$(e){if(!e)return null;e.base=e.base??"0px";const t=A4(e),n=Object.entries(e).sort(bA).map(([i,s],u,c)=>{let[,f]=c[u+1]??[];return f=parseFloat(f)>0?P4(f):void 0,{_minW:P4(s),breakpoint:i,minW:s,maxW:f,maxWQuery:_c(null,f),minWQuery:_c(s),minMaxQuery:_c(s,f)}}),r=e$(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(u=>r.has(u))},asObject:bx(e),asArray:A4(e),details:n,media:[null,...t.map(i=>_c(i)).slice(1)],toArrayValue(i){if(!XB(i))throw new Error("toArrayValue: value must be an object");const s=o.map(u=>i[u]??null);for(;QB(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,u,c)=>{const f=o[c];return f!=null&&u!=null&&(s[f]=u),s},{})}}}var bn={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}`},sa=e=>xA(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Ci=e=>xA(t=>e(t,"~ &"),"[data-peer]",".peer"),xA=(e,...t)=>t.map(e).join(", "),hm={_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], &[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",_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:sa(bn.hover),_peerHover:Ci(bn.hover),_groupFocus:sa(bn.focus),_peerFocus:Ci(bn.focus),_groupFocusVisible:sa(bn.focusVisible),_peerFocusVisible:Ci(bn.focusVisible),_groupActive:sa(bn.active),_peerActive:Ci(bn.active),_groupDisabled:sa(bn.disabled),_peerDisabled:Ci(bn.disabled),_groupInvalid:sa(bn.invalid),_peerInvalid:Ci(bn.invalid),_groupChecked:sa(bn.checked),_peerChecked:Ci(bn.checked),_groupFocusWithin:sa(bn.focusWithin),_peerFocusWithin:Ci(bn.focusWithin),_peerPlaceholderShown:Ci(bn.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]"},n$=Object.keys(hm);function T4(e,t){return Xa(String(e).replace(/\./g,"-"),void 0,t)}function r$(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:u}=i,{variable:c,reference:f}=T4(o,t?.cssVarPrefix);if(!s){if(o.startsWith("space")){const m=o.split("."),[v,...y]=m,x=`${v}.-${y.join(".")}`,E=ys.negate(u),S=ys.negate(f);r[x]={value:E,var:c,varRef:S}}n[c]=u,r[o]={value:u,var:c,varRef:f};continue}const p=m=>{const y=[String(o).split(".")[0],m].join(".");if(!e[y])return m;const{reference:E}=T4(y,t?.cssVarPrefix);return E},h=qo(u)?u:{default:u};n=Va(n,Object.entries(h).reduce((m,[v,y])=>{var x;const E=p(y);if(v==="default")return m[c]=E,m;const S=((x=hm)==null?void 0:x[v])??v;return m[S]={[c]:E},m},{})),r[o]={value:f,var:c,varRef:f}}return{cssVars:n,cssMap:r}}function o$(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function i$(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var a$=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function s$(e){return i$(e,a$)}function l$(e){return e.semanticTokens}function u$(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function c$({tokens:e,semanticTokens:t}){const n=Object.entries(n2(e)??{}).map(([o,i])=>[o,{isSemantic:!1,value:i}]),r=Object.entries(n2(t,1)??{}).map(([o,i])=>[o,{isSemantic:!0,value:i}]);return Object.fromEntries([...n,...r])}function n2(e,t=1/0){return!qo(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,o])=>(qo(o)||Array.isArray(o)?Object.entries(n2(o,t-1)).forEach(([i,s])=>{n[`${r}.${i}`]=s}):n[r]=o,n),{})}function f$(e){var t;const n=u$(e),r=s$(n),o=l$(n),i=c$({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=r$(i,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...c},__cssMap:u,__breakpoints:t$(n.breakpoints)}),n}var xx=Va({},yh,et,PB,c0,Zr,TB,zB,IB,vA,FB,zc,Jy,At,jB,WB,BB,$B,OB,VB),d$=Object.assign({},At,Zr,c0,vA,zc),p$=Object.keys(d$),h$=[...Object.keys(xx),...n$],m$={...xx,...hm},g$=e=>e in m$;function v$(e){return/^var\(--.+\)$/.test(e)}var y$=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!v$(t),b$=(e,t)=>{if(t==null)return t;const n=u=>{var c,f;return(f=(c=e.__cssMap)==null?void 0:c[u])==null?void 0:f.varRef},r=u=>n(u)??u,o=t.split(",").map(u=>u.trim()),[i,s]=o;return t=n(i)??r(s)??r(t),t};function x$(e){const{configs:t={},pseudos:n={},theme:r}=e;if(!r.__breakpoints)return()=>({});const{isResponsive:o,toArrayValue:i,media:s}=r.__breakpoints,u=(c,f=!1)=>{var p;const h=Fl(c,r);let m={};for(let v in h){let y=Fl(h[v],r);if(y==null)continue;if(Array.isArray(y)||qo(y)&&o(y)){let b=Array.isArray(y)?y:i(y);b=b.slice(0,s.length);for(let C=0;Ct=>x$({theme:t,pseudos:hm,configs:xx})(e);function Rt(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function S$(e,t){if(Array.isArray(e))return e;if(qo(e))return t(e);if(e!=null)return[e]}function w$(e,t){for(let n=t+1;n{Va(f,{[C]:m?b[C]:{[S]:b[C]}})});continue}if(!v){m?Va(f,b):f[S]=b;continue}f[S]=b}}return f}}function _$(e){return t=>{const{variant:n,size:r,theme:o}=t,i=C$(o);return Va({},Fl(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function k$(e,t,n){var r,o;return((o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)??n}function xt(e){return o$(e,["styleConfig","size","variant","colorScheme"])}function E$(e){if(e.sheet)return e.sheet;for(var t=0;t0?sr(wu,--gr):0,cu--,nn===10&&(cu=1,gm--),nn}function Mr(){return nn=gr2||yf(nn)>3?"":" "}function z$(e,t){for(;--t&&Mr()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return Xf(e,bh()+(t<6&&Xo()==32&&Mr()==32))}function o2(e){for(;Mr();)switch(nn){case e:return gr;case 34:case 39:e!==34&&e!==39&&o2(nn);break;case 40:e===41&&o2(e);break;case 92:Mr();break}return gr}function B$(e,t){for(;Mr()&&e+nn!==47+10;)if(e+nn===42+42&&Xo()===47)break;return"/*"+Xf(t,gr-1)+"*"+mm(e===47?e:Mr())}function $$(e){for(;!yf(Xo());)Mr();return Xf(e,gr)}function V$(e){return AA(Sh("",null,null,null,[""],e=EA(e),0,[0],e))}function Sh(e,t,n,r,o,i,s,u,c){for(var f=0,p=0,h=s,m=0,v=0,y=0,x=1,E=1,S=1,b=0,C="",A=o,I=i,N=r,L=C;E;)switch(y=b,b=Mr()){case 40:if(y!=108&&L.charCodeAt(h-1)==58){r2(L+=it(xh(b),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:L+=xh(b);break;case 9:case 10:case 13:case 32:L+=F$(y);break;case 92:L+=z$(bh()-1,7);continue;case 47:switch(Xo()){case 42:case 47:zp(W$(B$(Mr(),bh()),t,n),c);break;default:L+="/"}break;case 123*x:u[f++]=Wo(L)*S;case 125*x:case 59:case 0:switch(b){case 0:case 125:E=0;case 59+p:v>0&&Wo(L)-h&&zp(v>32?O4(L+";",r,n,h-1):O4(it(L," ","")+";",r,n,h-2),c);break;case 59:L+=";";default:if(zp(N=I4(L,t,n,f,p,o,u,C,A=[],I=[],h),i),b===123)if(p===0)Sh(L,t,N,N,A,i,h,u,I);else switch(m){case 100:case 109:case 115:Sh(e,N,N,r&&zp(I4(e,N,N,0,0,o,u,C,o,A=[],h),I),o,I,h,u,r?A:I);break;default:Sh(L,N,N,N,[""],I,0,u,I)}}f=p=v=0,x=S=1,C=L="",h=s;break;case 58:h=1+Wo(L),v=y;default:if(x<1){if(b==123)--x;else if(b==125&&x++==0&&D$()==125)continue}switch(L+=mm(b),b*x){case 38:S=p>0?1:(L+="\f",-1);break;case 44:u[f++]=(Wo(L)-1)*S,S=1;break;case 64:Xo()===45&&(L+=xh(Mr())),m=Xo(),p=h=Wo(C=L+=$$(bh())),b++;break;case 45:y===45&&Wo(L)==2&&(x=0)}}return i}function I4(e,t,n,r,o,i,s,u,c,f,p){for(var h=o-1,m=o===0?i:[""],v=Cx(m),y=0,x=0,E=0;y0?m[S]+" "+b:it(b,/&\f/g,m[S])))&&(c[E++]=C);return vm(e,t,n,o===0?Sx:u,c,f,p)}function W$(e,t,n){return vm(e,t,n,wA,mm(L$()),vf(e,2,-2),0)}function O4(e,t,n,r){return vm(e,t,n,wx,vf(e,0,r),vf(e,r+1,-1),r)}function PA(e,t){switch(R$(e,t)){case 5103:return tt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return tt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tt+e+f0+e+Nn+e+e;case 6828:case 4268:return tt+e+Nn+e+e;case 6165:return tt+e+Nn+"flex-"+e+e;case 5187:return tt+e+it(e,/(\w+).+(:[^]+)/,tt+"box-$1$2"+Nn+"flex-$1$2")+e;case 5443:return tt+e+Nn+"flex-item-"+it(e,/flex-|-self/,"")+e;case 4675:return tt+e+Nn+"flex-line-pack"+it(e,/align-content|flex-|-self/,"")+e;case 5548:return tt+e+Nn+it(e,"shrink","negative")+e;case 5292:return tt+e+Nn+it(e,"basis","preferred-size")+e;case 6060:return tt+"box-"+it(e,"-grow","")+tt+e+Nn+it(e,"grow","positive")+e;case 4554:return tt+it(e,/([^-])(transform)/g,"$1"+tt+"$2")+e;case 6187:return it(it(it(e,/(zoom-|grab)/,tt+"$1"),/(image-set)/,tt+"$1"),e,"")+e;case 5495:case 3959:return it(e,/(image-set\([^]*)/,tt+"$1$`$1");case 4968:return it(it(e,/(.+:)(flex-)?(.*)/,tt+"box-pack:$3"+Nn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tt+e+e;case 4095:case 3583:case 4068:case 2532:return it(e,/(.+)-inline(.+)/,tt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wo(e)-1-t>6)switch(sr(e,t+1)){case 109:if(sr(e,t+4)!==45)break;case 102:return it(e,/(.+:)(.+)-([^]+)/,"$1"+tt+"$2-$3$1"+f0+(sr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r2(e,"stretch")?PA(it(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(sr(e,t+1)!==115)break;case 6444:switch(sr(e,Wo(e)-3-(~r2(e,"!important")&&10))){case 107:return it(e,":",":"+tt)+e;case 101:return it(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tt+(sr(e,14)===45?"inline-":"")+"box$3$1"+tt+"$2$3$1"+Nn+"$2box$3")+e}break;case 5936:switch(sr(e,t+11)){case 114:return tt+e+Nn+it(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tt+e+Nn+it(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tt+e+Nn+it(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tt+e+Nn+e+e}return e}function Kl(e,t){for(var n="",r=Cx(e),o=0;o-1&&!e.return)switch(e.type){case wx:e.return=PA(e.value,e.length);break;case CA:return Kl([dc(e,{value:it(e.value,"@","@"+tt)})],r);case Sx:if(e.length)return N$(e.props,function(o){switch(M$(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kl([dc(e,{props:[it(o,/:(read-\w+)/,":"+f0+"$1")]})],r);case"::placeholder":return Kl([dc(e,{props:[it(o,/:(plac\w+)/,":"+tt+"input-$1")]}),dc(e,{props:[it(o,/:(plac\w+)/,":"+f0+"$1")]}),dc(e,{props:[it(o,/:(plac\w+)/,Nn+"input-$1")]})],r)}return""})}}var R4=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var o=t(r);return n.set(r,o),o}};function TA(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var q$=function(t,n,r){for(var o=0,i=0;o=i,i=Xo(),o===38&&i===12&&(n[r]=1),!yf(i);)Mr();return Xf(t,gr)},K$=function(t,n){var r=-1,o=44;do switch(yf(o)){case 0:o===38&&Xo()===12&&(n[r]=1),t[r]+=q$(gr-1,n,r);break;case 2:t[r]+=xh(o);break;case 4:if(o===44){t[++r]=Xo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=mm(o)}while(o=Mr());return t},Y$=function(t,n){return AA(K$(EA(t),n))},M4=new WeakMap,Z$=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!M4.get(r))&&!o){M4.set(t,!0);for(var i=[],s=Y$(n,i),u=r.props,c=0,f=0;c=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cV={animationIterationCount: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},fV=/[A-Z]|^ms/g,dV=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DA=function(t){return t.charCodeAt(1)===45},N4=function(t){return t!=null&&typeof t!="boolean"},y1=TA(function(e){return DA(e)?e:e.replace(fV,"-$&").toLowerCase()}),L4=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(dV,function(r,o,i){return jo={name:o,styles:i,next:jo},o})}return cV[t]!==1&&!DA(t)&&typeof n=="number"&&n!==0?n+"px":n};function xf(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return jo={name:n.name,styles:n.styles,next:jo},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)jo={name:r.name,styles:r.styles,next:jo},r=r.next;var o=n.styles+";";return o}return pV(e,t,n)}case"function":{if(e!==void 0){var i=jo,s=n(e);return jo=i,xf(e,t,s)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function pV(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{t.includes(r)||(n[r]=e[r])}),n}function SV(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(o))return u.get(o);const c=e(r,o,i,s);return u.set(o,c),c}},$A=wV(SV);function VA(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var WA=e=>VA(e,t=>t!=null);function CV(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var _V=CV();function jA(e,...t){return zl(e)?e(...t):e}function kV(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var EV=(...e)=>t=>e.reduce((n,r)=>r(n),t);Object.freeze(["base","sm","md","lg","xl","2xl"]);function AV(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=_.exports.createContext(void 0);o.displayName=r;function i(){var s;const u=_.exports.useContext(o);if(!u&&t){const c=new Error(n);throw c.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,c,i),c}return u}return[o.Provider,i,o]}var PV=/^((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)-.*))$/,TV=TA(function(e){return PV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),IV=TV,OV=function(t){return t!=="theme"},z4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?IV:OV},B4=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},RV=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return NA(n,r,o),mV(function(){return LA(n,r,o)}),null},MV=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var u=B4(t,n,r),c=u||z4(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v` or ``");return e}function UA(){const e=dm(),t=Px();return{...e,theme:t}}function $V(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__breakpoints)==null?void 0:i.asArray)==null?void 0:s[o]};return r(t)??r(n)??n}function VV(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__cssMap)==null?void 0:i[o])==null?void 0:s.value};return r(t)??r(n)??n}function WV(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),u=r.map((c,f)=>{if(e==="breakpoints")return $V(i,c,s[f]??c);const p=`${e}.${c}`;return VV(i,p,s[f]??c)});return Array.isArray(t)?u:u[0]}}function jV(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=_.exports.useMemo(()=>f$(n),[n]);return ne(yV,{theme:o,children:[w(UV,{root:t}),r]})}function UV({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w(Pm,{styles:n=>({[t]:n.__cssVars})})}AV({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function HV(){const{colorMode:e}=dm();return w(Pm,{styles:t=>{const n=$A(t,"styles.global"),r=jA(n,{theme:t,colorMode:e});return r?SA(r)(t):void 0}})}var GV=new Set([...h$,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),qV=new Set(["htmlWidth","htmlHeight","htmlSize"]);function KV(e){return qV.has(e)||!GV.has(e)}var YV=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,u=VA(s,(h,m)=>g$(m)),c=jA(e,t),f=Object.assign({},o,c,WA(u),i),p=SA(f)(t.theme);return r?[p,r]:p};function b1(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=KV);const o=YV({baseStyle:n});return i2(e,r)(o)}function de(e){return _.exports.forwardRef(e)}function HA(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=UA(),s=$A(o,`components.${e}`),u=n||s,c=Va({theme:o,colorMode:i},u?.defaultProps??{},WA(xV(r,["children"]))),f=_.exports.useRef({});if(u){const h=_$(u)(c);BV(f.current,h)||(f.current=h)}return f.current}function er(e,t={}){return HA(e,t)}function $r(e,t={}){return HA(e,t)}function ZV(){const e=new Map;return new Proxy(b1,{apply(t,n,r){return b1(...r)},get(t,n){return e.has(n)||e.set(n,b1(n)),e.get(n)}})}var ie=ZV();function XV(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Jt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i}=e,s=_.exports.createContext(void 0);s.displayName=t;function u(){var c;const f=_.exports.useContext(s);if(!f&&n){const p=new Error(i??XV(r,o));throw p.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,p,u),p}return f}return[s.Provider,u,s]}function QV(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 Xn(...e){return t=>{e.forEach(n=>{QV(n,t)})}}function JV(...e){return _.exports.useMemo(()=>Xn(...e),e)}function $4(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var eW=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function V4(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function W4(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var a2=typeof window<"u"?_.exports.useLayoutEffect:_.exports.useEffect,d0=e=>e,tW=class{descendants=new Map;register=e=>{if(e!=null)return eW(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=$4(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(this.count()!==0)return this.values()[e]};enabledItem=e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?((t=this.descendants.get(e))==null?void 0:t.index)??-1:-1};enabledIndexOf=e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=V4(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=V4(r,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const n=W4(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=W4(r,this.enabledCount()-1,t);return this.enabledItem(o)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=$4(n);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)}};function nW(){const e=_.exports.useRef(new tW);return a2(()=>()=>e.current.destroy()),e.current}var[rW,GA]=Jt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function oW(e){const t=GA(),[n,r]=_.exports.useState(-1),o=_.exports.useRef(null);a2(()=>()=>{!o.current||t.unregister(o.current)},[]),a2(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=d0(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:Xn(i,o)}}function iW(){return[d0(rW),()=>d0(GA()),()=>nW(),o=>oW(o)]}var Gt=(...e)=>e.filter(Boolean).join(" "),j4={path:ne("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w("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"}),w("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},To=de((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:u,__css:c,...f}=e,p=Gt("chakra-icon",u),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c},m={ref:t,focusable:i,className:p,__css:h},v=r??j4.viewBox;if(n&&typeof n!="string")return ee.createElement(ie.svg,{as:n,...m,...f});const y=s??j4.path;return ee.createElement(ie.svg,{verticalAlign:"middle",viewBox:v,...m,...f},y)});To.displayName="Icon";function Fn(e,t=[]){const n=_.exports.useRef(e);return _.exports.useEffect(()=>{n.current=e}),_.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function aW(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(m,v)=>m!==v}=e,i=Fn(r),s=Fn(o),[u,c]=_.exports.useState(n),f=t!==void 0,p=f?t:u,h=_.exports.useCallback(m=>{const y=typeof m=="function"?m(p):m;!s(p,y)||(f||c(y),i(y))},[f,i,p,s]);return[p,h]}const Tx=_.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Tm=_.exports.createContext({});function sW(){return _.exports.useContext(Tm).visualElement}const Cu=_.exports.createContext(null),Ws=typeof document<"u",p0=Ws?_.exports.useLayoutEffect:_.exports.useEffect,qA=_.exports.createContext({strict:!1});function lW(e,t,n,r){const o=sW(),i=_.exports.useContext(qA),s=_.exports.useContext(Cu),u=_.exports.useContext(Tx).reducedMotion,c=_.exports.useRef(void 0);r=r||i.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const f=c.current;return p0(()=>{f&&f.syncRender()}),_.exports.useEffect(()=>{f&&f.animationState&&f.animationState.animateChanges()}),p0(()=>()=>f&&f.notifyUnmount(),[]),f}function Bl(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uW(e,t,n){return _.exports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bl(n)&&(n.current=r))},[t])}function wf(e){return typeof e=="string"||Array.isArray(e)}function Im(e){return typeof e=="object"&&typeof e.start=="function"}const cW=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Om(e){return Im(e.animate)||cW.some(t=>wf(e[t]))}function KA(e){return Boolean(Om(e)||e.variants)}function fW(e,t){if(Om(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wf(n)?n:void 0,animate:wf(r)?r:void 0}}return e.inherit!==!1?t:{}}function dW(e){const{initial:t,animate:n}=fW(e,_.exports.useContext(Tm));return _.exports.useMemo(()=>({initial:t,animate:n}),[U4(t),U4(n)])}function U4(e){return Array.isArray(e)?e.join(" "):e}const _i=e=>({isEnabled:t=>e.some(n=>!!t[n])}),Cf={measureLayout:_i(["layout","layoutId","drag"]),animation:_i(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:_i(["exit"]),drag:_i(["drag","dragControls"]),focus:_i(["whileFocus"]),hover:_i(["whileHover","onHoverStart","onHoverEnd"]),tap:_i(["whileTap","onTap","onTapStart","onTapCancel"]),pan:_i(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:_i(["whileInView","onViewportEnter","onViewportLeave"])};function pW(e){for(const t in e)t==="projectionNodeConstructor"?Cf.projectionNodeConstructor=e[t]:Cf[t].Component=e[t]}function Rm(e){const t=_.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Bc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let hW=1;function mW(){return Rm(()=>{if(Bc.hasEverUpdated)return hW++})}const Ix=_.exports.createContext({});class gW extends ee.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const YA=_.exports.createContext({}),vW=Symbol.for("motionComponentSymbol");function yW({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:o,Component:i}){e&&pW(e);function s(c,f){const p={..._.exports.useContext(Tx),...c,layoutId:bW(c)},{isStatic:h}=p;let m=null;const v=dW(c),y=h?void 0:mW(),x=o(c,h);if(!h&&Ws){v.visualElement=lW(i,x,p,t);const E=_.exports.useContext(qA).strict,S=_.exports.useContext(YA);v.visualElement&&(m=v.visualElement.loadFeatures(p,E,e,y,n||Cf.projectionNodeConstructor,S))}return ne(gW,{visualElement:v.visualElement,props:p,children:[m,w(Tm.Provider,{value:v,children:r(i,c,y,uW(x,v.visualElement,f),x,h,v.visualElement)})]})}const u=_.exports.forwardRef(s);return u[vW]=i,u}function bW({layoutId:e}){const t=_.exports.useContext(Ix).id;return t&&e!==void 0?t+"-"+e:e}function xW(e){function t(r,o={}){return yW(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const SW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Ox(e){return typeof e!="string"||e.includes("-")?!1:!!(SW.indexOf(e)>-1||/[A-Z]/.test(e))}const h0={};function wW(e){Object.assign(h0,e)}const m0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Jf=new Set(m0);function ZA(e,{layout:t,layoutId:n}){return Jf.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!h0[e]||e==="opacity")}const oi=e=>!!e?.getVelocity,CW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_W=(e,t)=>m0.indexOf(e)-m0.indexOf(t);function kW({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,i){let s="";t.sort(_W);for(const u of t)s+=`${CW[u]||u}(${e[u]}) `;return n&&!e.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(e,o?"":s):r&&o&&(s="none"),s}function XA(e){return e.startsWith("--")}const EW=(e,t)=>t&&typeof e=="number"?t.transform(e):e,QA=(e,t)=>n=>Math.max(Math.min(n,t),e),$c=e=>e%1?Number(e.toFixed(5)):e,_f=/(-)?([\d]*\.?[\d])+/g,s2=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,AW=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ed(e){return typeof e=="string"}const js={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vc=Object.assign(Object.assign({},js),{transform:QA(0,1)}),Bp=Object.assign(Object.assign({},js),{default:1}),td=e=>({test:t=>ed(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ca=td("deg"),Qo=td("%"),Me=td("px"),PW=td("vh"),TW=td("vw"),H4=Object.assign(Object.assign({},Qo),{parse:e=>Qo.parse(e)/100,transform:e=>Qo.transform(e*100)}),Rx=(e,t)=>n=>Boolean(ed(n)&&AW.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),JA=(e,t,n)=>r=>{if(!ed(r))return r;const[o,i,s,u]=r.match(_f);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},_s={test:Rx("hsl","hue"),parse:JA("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Qo.transform($c(t))+", "+Qo.transform($c(n))+", "+$c(Vc.transform(r))+")"},IW=QA(0,255),x1=Object.assign(Object.assign({},js),{transform:e=>Math.round(IW(e))}),Ca={test:Rx("rgb","red"),parse:JA("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+x1.transform(e)+", "+x1.transform(t)+", "+x1.transform(n)+", "+$c(Vc.transform(r))+")"};function OW(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const l2={test:Rx("#"),parse:OW,transform:Ca.transform},Kn={test:e=>Ca.test(e)||l2.test(e)||_s.test(e),parse:e=>Ca.test(e)?Ca.parse(e):_s.test(e)?_s.parse(e):l2.parse(e),transform:e=>ed(e)?e:e.hasOwnProperty("red")?Ca.transform(e):_s.transform(e)},eP="${c}",tP="${n}";function RW(e){var t,n,r,o;return isNaN(e)&&ed(e)&&((n=(t=e.match(_f))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(r=e.match(s2))===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0)>0}function nP(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(s2);r&&(n=r.length,e=e.replace(s2,eP),t.push(...r.map(Kn.parse)));const o=e.match(_f);return o&&(e=e.replace(_f,tP),t.push(...o.map(js.parse))),{values:t,numColors:n,tokenised:e}}function rP(e){return nP(e).values}function oP(e){const{values:t,numColors:n,tokenised:r}=nP(e),o=t.length;return i=>{let s=r;for(let u=0;utypeof e=="number"?0:e;function NW(e){const t=rP(e);return oP(e)(t.map(MW))}const Wi={test:RW,parse:rP,createTransformer:oP,getAnimatableNone:NW},LW=new Set(["brightness","contrast","saturate","opacity"]);function DW(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(_f)||[];if(!r)return e;const o=n.replace(r,"");let i=LW.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const FW=/([a-z-]*)\(.*?\)/g,u2=Object.assign(Object.assign({},Wi),{getAnimatableNone:e=>{const t=e.match(FW);return t?t.map(DW).join(" "):e}}),G4={...js,transform:Math.round},iP={borderWidth:Me,borderTopWidth:Me,borderRightWidth:Me,borderBottomWidth:Me,borderLeftWidth:Me,borderRadius:Me,radius:Me,borderTopLeftRadius:Me,borderTopRightRadius:Me,borderBottomRightRadius:Me,borderBottomLeftRadius:Me,width:Me,maxWidth:Me,height:Me,maxHeight:Me,size:Me,top:Me,right:Me,bottom:Me,left:Me,padding:Me,paddingTop:Me,paddingRight:Me,paddingBottom:Me,paddingLeft:Me,margin:Me,marginTop:Me,marginRight:Me,marginBottom:Me,marginLeft:Me,rotate:ca,rotateX:ca,rotateY:ca,rotateZ:ca,scale:Bp,scaleX:Bp,scaleY:Bp,scaleZ:Bp,skew:ca,skewX:ca,skewY:ca,distance:Me,translateX:Me,translateY:Me,translateZ:Me,x:Me,y:Me,z:Me,perspective:Me,transformPerspective:Me,opacity:Vc,originX:H4,originY:H4,originZ:Me,zIndex:G4,fillOpacity:Vc,strokeOpacity:Vc,numOctaves:G4};function Mx(e,t,n,r){const{style:o,vars:i,transform:s,transformKeys:u,transformOrigin:c}=e;u.length=0;let f=!1,p=!1,h=!0;for(const m in t){const v=t[m];if(XA(m)){i[m]=v;continue}const y=iP[m],x=EW(v,y);if(Jf.has(m)){if(f=!0,s[m]=x,u.push(m),!h)continue;v!==(y.default||0)&&(h=!1)}else m.startsWith("origin")?(p=!0,c[m]=x):o[m]=x}if(f||r?o.transform=kW(e,n,h,r):!t.transform&&o.transform&&(o.transform="none"),p){const{originX:m="50%",originY:v="50%",originZ:y=0}=c;o.transformOrigin=`${m} ${v} ${y}`}}const Nx=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function aP(e,t,n){for(const r in t)!oi(t[r])&&!ZA(r,n)&&(e[r]=t[r])}function zW({transformTemplate:e},t,n){return _.exports.useMemo(()=>{const r=Nx();return Mx(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function BW(e,t,n){const r=e.style||{},o={};return aP(o,r,e),Object.assign(o,zW(e,t,n)),e.transformValues?e.transformValues(o):o}function $W(e,t,n){const r={},o=BW(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),r.style=o,r}const VW=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],WW=["whileTap","onTap","onTapStart","onTapCancel"],jW=["onPan","onPanStart","onPanSessionStart","onPanEnd"],UW=["whileInView","onViewportEnter","onViewportLeave","viewport"],HW=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...UW,...WW,...VW,...jW]);function g0(e){return HW.has(e)}let sP=e=>!g0(e);function GW(e){!e||(sP=t=>t.startsWith("on")?!g0(t):e(t))}try{GW(require("@emotion/is-prop-valid").default)}catch{}function qW(e,t,n){const r={};for(const o in e)(sP(o)||n===!0&&g0(o)||!t&&!g0(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function q4(e,t,n){return typeof e=="string"?e:Me.transform(t+n*e)}function KW(e,t,n){const r=q4(t,e.x,e.width),o=q4(n,e.y,e.height);return`${r} ${o}`}const YW={offset:"stroke-dashoffset",array:"stroke-dasharray"},ZW={offset:"strokeDashoffset",array:"strokeDasharray"};function XW(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?YW:ZW;e[i.offset]=Me.transform(-r);const s=Me.transform(t),u=Me.transform(n);e[i.array]=`${s} ${u}`}function Lx(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:u=0,...c},f,p){Mx(e,c,f,p),e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:v}=e;h.transform&&(v&&(m.transform=h.transform),delete h.transform),v&&(r!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=KW(v,r!==void 0?r:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),i!==void 0&&XW(h,i,s,u,!1)}const lP=()=>({...Nx(),attrs:{}});function QW(e,t){const n=_.exports.useMemo(()=>{const r=lP();return Lx(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};aP(r,e.style,e),n.style={...r,...n.style}}return n}function JW(e=!1){return(n,r,o,i,{latestValues:s},u)=>{const f=(Ox(n)?QW:$W)(r,s,u),h={...qW(r,typeof n=="string",e),...f,ref:i};return o&&(h["data-projection-id"]=o),_.exports.createElement(n,h)}}const uP=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function cP(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const fP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function dP(e,t,n,r){cP(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(fP.has(o)?o:uP(o),t.attrs[o])}function Dx(e){const{style:t}=e,n={};for(const r in t)(oi(t[r])||ZA(r,e))&&(n[r]=t[r]);return n}function pP(e){const t=Dx(e);for(const n in e)if(oi(e[n])){const r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function hP(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}const kf=e=>Array.isArray(e),ej=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),mP=e=>kf(e)?e[e.length-1]||0:e;function Ch(e){const t=oi(e)?e.get():e;return ej(t)?t.toValue():t}function tj({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:nj(r,o,i,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const gP=e=>(t,n)=>{const r=_.exports.useContext(Tm),o=_.exports.useContext(Cu),i=()=>tj(e,t,r,o);return n?i():Rm(i)};function nj(e,t,n,r){const o={},i=r(e);for(const m in i)o[m]=Ch(i[m]);let{initial:s,animate:u}=e;const c=Om(e),f=KA(e);t&&f&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const h=p?u:s;return h&&typeof h!="boolean"&&!Im(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{const y=hP(e,v);if(!y)return;const{transitionEnd:x,transition:E,...S}=y;for(const b in S){let C=S[b];if(Array.isArray(C)){const A=p?C.length-1:0;C=C[A]}C!==null&&(o[b]=C)}for(const b in x)o[b]=x[b]}),o}const rj={useVisualState:gP({scrapeMotionValuesFromProps:pP,createRenderState:lP,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Lx(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),dP(t,n)}})},oj={useVisualState:gP({scrapeMotionValuesFromProps:Dx,createRenderState:Nx})};function ij(e,{forwardMotionProps:t=!1},n,r,o){return{...Ox(e)?rj:oj,preloadedFeatures:n,useRender:JW(t),createVisualElement:r,projectionNodeConstructor:o,Component:e}}var Ct;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Ct||(Ct={}));function Mm(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function c2(e,t,n,r){_.exports.useEffect(()=>{const o=e.current;if(n&&o)return Mm(o,t,n,r)},[e,t,n,r])}function aj({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=()=>{n&&n.setActive(Ct.Focus,!0)},o=()=>{n&&n.setActive(Ct.Focus,!1)};c2(t,"focus",e?r:void 0),c2(t,"blur",e?o:void 0)}function vP(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function yP(e){return!!e.touches}function sj(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const lj={pageX:0,pageY:0};function uj(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||lj;return{x:r[t+"X"],y:r[t+"Y"]}}function cj(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Fx(e,t="page"){return{point:yP(e)?uj(e,t):cj(e,t)}}const bP=(e,t=!1)=>{const n=r=>e(r,Fx(r));return t?sj(n):n},fj=()=>Ws&&window.onpointerdown===null,dj=()=>Ws&&window.ontouchstart===null,pj=()=>Ws&&window.onmousedown===null,hj={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},mj={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function xP(e){return fj()?e:dj()?mj[e]:pj()?hj[e]:e}function Yl(e,t,n,r){return Mm(e,xP(t),bP(n,t==="pointerdown"),r)}function v0(e,t,n,r){return c2(e,xP(t),n&&bP(n,t==="pointerdown"),r)}function SP(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const K4=SP("dragHorizontal"),Y4=SP("dragVertical");function wP(e){let t=!1;if(e==="y")t=Y4();else if(e==="x")t=K4();else{const n=K4(),r=Y4();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function CP(){const e=wP(!0);return e?(e(),!1):!0}function Z4(e,t,n){return(r,o)=>{!vP(r)||CP()||(e.animationState&&e.animationState.setActive(Ct.Hover,t),n&&n(r,o))}}function gj({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){v0(r,"pointerenter",e||n?Z4(r,!0,e):void 0,{passive:!e}),v0(r,"pointerleave",t||n?Z4(r,!1,t):void 0,{passive:!t})}const _P=(e,t)=>t?e===t?!0:_P(e,t.parentElement):!1;function zx(e){return _.exports.useEffect(()=>()=>e(),[])}var Ho=function(){return Ho=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function f2(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;rMath.min(Math.max(n,e),t),S1=.001,yj=.01,Q4=10,bj=.05,xj=1;function Sj({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;vj(e<=Q4*1e3);let s=1-t;s=b0(bj,xj,s),e=b0(yj,Q4,e/1e3),s<1?(o=f=>{const p=f*s,h=p*e,m=p-n,v=d2(f,s),y=Math.exp(-h);return S1-m/v*y},i=f=>{const h=f*s*e,m=h*n+n,v=Math.pow(s,2)*Math.pow(f,2)*e,y=Math.exp(-h),x=d2(Math.pow(f,2),s);return(-o(f)+S1>0?-1:1)*((m-v)*y)/x}):(o=f=>{const p=Math.exp(-f*e),h=(f-n)*e+1;return-S1+p*h},i=f=>{const p=Math.exp(-f*e),h=(n-f)*(e*e);return p*h});const u=5/e,c=Cj(o,i,u);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const wj=12;function Cj(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function Ej(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!J4(e,kj)&&J4(e,_j)){const n=Sj(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Bx(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=Nm(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:u,damping:c,mass:f,velocity:p,duration:h,isResolvedFromDuration:m}=Ej(i),v=e_,y=e_;function x(){const E=p?-(p/1e3):0,S=n-t,b=c/(2*Math.sqrt(u*f)),C=Math.sqrt(u/f)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),b<1){const A=d2(C,b);v=I=>{const N=Math.exp(-b*C*I);return n-N*((E+b*C*S)/A*Math.sin(A*I)+S*Math.cos(A*I))},y=I=>{const N=Math.exp(-b*C*I);return b*C*N*(Math.sin(A*I)*(E+b*C*S)/A+S*Math.cos(A*I))-N*(Math.cos(A*I)*(E+b*C*S)-A*S*Math.sin(A*I))}}else if(b===1)v=A=>n-Math.exp(-C*A)*(S+(E+C*S)*A);else{const A=C*Math.sqrt(b*b-1);v=I=>{const N=Math.exp(-b*C*I),L=Math.min(A*I,300);return n-N*((E+b*C*S)*Math.sinh(L)+A*S*Math.cosh(L))/A}}}return x(),{next:E=>{const S=v(E);if(m)s.done=E>=h;else{const b=y(E)*1e3,C=Math.abs(b)<=r,A=Math.abs(n-S)<=o;s.done=C&&A}return s.value=s.done?n:S,s},flipTarget:()=>{p=-p,[t,n]=[n,t],x()}}}Bx.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const e_=e=>0,Ef=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},jt=(e,t,n)=>-n*e+n*t+e;function w1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function t_({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;o=w1(c,u,e+1/3),i=w1(c,u,e),s=w1(c,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const Aj=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Pj=[l2,Ca,_s],n_=e=>Pj.find(t=>t.test(e)),kP=(e,t)=>{let n=n_(e),r=n_(t),o=n.parse(e),i=r.parse(t);n===_s&&(o=t_(o),n=Ca),r===_s&&(i=t_(i),r=Ca);const s=Object.assign({},o);return u=>{for(const c in s)c!=="alpha"&&(s[c]=Aj(o[c],i[c],u));return s.alpha=jt(o.alpha,i.alpha,u),n.transform(s)}},p2=e=>typeof e=="number",Tj=(e,t)=>n=>t(e(n)),Lm=(...e)=>e.reduce(Tj);function EP(e,t){return p2(e)?n=>jt(e,t,n):Kn.test(e)?kP(e,t):PP(e,t)}const AP=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>EP(i,t[s]));return i=>{for(let s=0;s{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=EP(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}};function r_(e){const t=Wi.parse(e),n=t.length;let r=0,o=0,i=0;for(let s=0;s{const n=Wi.createTransformer(t),r=r_(e),o=r_(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Lm(AP(r.parsed,o.parsed),n):s=>`${s>0?t:e}`},Oj=(e,t)=>n=>jt(e,t,n);function Rj(e){if(typeof e=="number")return Oj;if(typeof e=="string")return Kn.test(e)?kP:PP;if(Array.isArray(e))return AP;if(typeof e=="object")return Ij}function Mj(e,t,n){const r=[],o=n||Rj(e[0]),i=e.length-1;for(let s=0;sn(Ef(e,t,r))}function Lj(e,t){const n=e.length,r=n-1;return o=>{let i=0,s=!1;if(o<=e[0]?s=!0:o>=e[r]&&(i=r-1,s=!0),!s){let c=1;for(;co||c===r);c++);i=c-1}const u=Ef(e[i],e[i+1],o);return t[i](u)}}function TP(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;y0(i===t.length),y0(!r||!Array.isArray(r)||r.length===i-1),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=Mj(t,r,o),u=i===2?Nj(e,s):Lj(e,s);return n?c=>u(b0(e[0],e[i-1],c)):u}const Dm=e=>t=>1-e(1-t),$x=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Dj=e=>t=>Math.pow(t,e),IP=e=>t=>t*t*((e+1)*t-e),Fj=e=>{const t=IP(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},OP=1.525,zj=4/11,Bj=8/11,$j=9/10,Vx=e=>e,Wx=Dj(2),Vj=Dm(Wx),RP=$x(Wx),MP=e=>1-Math.sin(Math.acos(e)),jx=Dm(MP),Wj=$x(jx),Ux=IP(OP),jj=Dm(Ux),Uj=$x(Ux),Hj=Fj(OP),Gj=4356/361,qj=35442/1805,Kj=16061/1805,x0=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-x0(1-e*2)):.5*x0(e*2-1)+.5;function Xj(e,t){return e.map(()=>t||RP).splice(0,e.length-1)}function Qj(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function Jj(e,t){return e.map(n=>n*t)}function _h({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},s=Array.isArray(t)?t:[e,t],u=Jj(r&&r.length===s.length?r:Qj(s),o);function c(){return TP(u,s,{ease:Array.isArray(n)?n:Xj(s,n)})}let f=c();return{next:p=>(i.value=f(p),i.done=p>=o,i),flipTarget:()=>{s.reverse(),f=c()}}}function eU({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const s={done:!1,value:t};let u=n*e;const c=t+u,f=i===void 0?c:i(c);return f!==c&&(u=f-t),{next:p=>{const h=-u*Math.exp(-p/r);return s.done=!(h>o||h<-o),s.value=s.done?f:f+h,s},flipTarget:()=>{}}}const o_={keyframes:_h,spring:Bx,decay:eU};function tU(e){if(Array.isArray(e.to))return _h;if(o_[e.type])return o_[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?_h:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Bx:_h}const NP=1/60*1e3,nU=typeof performance<"u"?()=>performance.now():()=>Date.now(),LP=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(nU()),NP);function rU(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&o,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f(e[t]=rU(()=>Af=!0),e),{}),iU=nd.reduce((e,t)=>{const n=Fm[t];return e[t]=(r,o=!1,i=!1)=>(Af||lU(),n.schedule(r,o,i)),e},{}),aU=nd.reduce((e,t)=>(e[t]=Fm[t].cancel,e),{});nd.reduce((e,t)=>(e[t]=()=>Fm[t].process(Zl),e),{});const sU=e=>Fm[e].process(Zl),DP=e=>{Af=!1,Zl.delta=h2?NP:Math.max(Math.min(e-Zl.timestamp,oU),1),Zl.timestamp=e,m2=!0,nd.forEach(sU),m2=!1,Af&&(h2=!1,LP(DP))},lU=()=>{Af=!0,h2=!0,m2||LP(DP)},uU=()=>Zl;function FP(e,t,n=0){return e-t-n}function cU(e,t,n=0,r=!0){return r?FP(t+-e,t,n):t-(e-t)+n}function fU(e,t,n,r){return r?e>=t+n:e<=-n}const dU=e=>{const t=({delta:n})=>e(n);return{start:()=>iU.update(t,!0),stop:()=>aU.update(t)}};function zP(e){var t,n,{from:r,autoplay:o=!0,driver:i=dU,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:f=0,onPlay:p,onStop:h,onComplete:m,onRepeat:v,onUpdate:y}=e,x=Nm(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:E}=x,S,b=0,C=x.duration,A,I=!1,N=!0,L;const $=tU(x);!((n=(t=$).needsInterpolation)===null||n===void 0)&&n.call(t,r,E)&&(L=TP([0,100],[r,E],{clamp:!1}),r=0,E=100);const K=$(Object.assign(Object.assign({},x),{from:r,to:E}));function W(){b++,c==="reverse"?(N=b%2===0,s=cU(s,C,f,N)):(s=FP(s,C,f),c==="mirror"&&K.flipTarget()),I=!1,v&&v()}function te(){S.stop(),m&&m()}function we(xe){if(N||(xe=-xe),s+=xe,!I){const ue=K.next(Math.max(0,s));A=ue.value,L&&(A=L(A)),I=N?ue.done:s<=0}y?.(A),I&&(b===0&&(C??(C=s)),b{h?.(),S.stop()}}}function BP(e,t){return t?e*(1e3/t):0}function pU({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:s=500,bounceDamping:u=10,restDelta:c=1,modifyTarget:f,driver:p,onUpdate:h,onComplete:m,onStop:v}){let y;function x(C){return n!==void 0&&Cr}function E(C){return n===void 0?r:r===void 0||Math.abs(n-C){var I;h?.(A),(I=C.onUpdate)===null||I===void 0||I.call(C,A)},onComplete:m,onStop:v}))}function b(C){S(Object.assign({type:"spring",stiffness:s,damping:u,restDelta:c},C))}if(x(e))b({from:e,velocity:t,to:E(e)});else{let C=o*t+e;typeof f<"u"&&(C=f(C));const A=E(C),I=A===n?-1:1;let N,L;const $=K=>{N=L,L=K,t=BP(K-N,uU().delta),(I===1&&K>A||I===-1&&Ky?.stop()}}const g2=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),i_=e=>g2(e)&&e.hasOwnProperty("z"),$p=(e,t)=>Math.abs(e-t);function Hx(e,t){if(p2(e)&&p2(t))return $p(e,t);if(g2(e)&&g2(t)){const n=$p(e.x,t.x),r=$p(e.y,t.y),o=i_(e)&&i_(t)?$p(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const $P=(e,t)=>1-3*t+3*e,VP=(e,t)=>3*t-6*e,WP=e=>3*e,S0=(e,t,n)=>(($P(t,n)*e+VP(t,n))*e+WP(t))*e,jP=(e,t,n)=>3*$P(t,n)*e*e+2*VP(t,n)*e+WP(t),hU=1e-7,mU=10;function gU(e,t,n,r,o){let i,s,u=0;do s=t+(n-t)/2,i=S0(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>hU&&++u=yU?bU(s,h,e,n):m===0?h:gU(s,u,u+Vp,e,n)}return s=>s===0||s===1?s:S0(i(s),t,r)}function SU({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o}){const i=e||t||n||r,s=_.exports.useRef(!1),u=_.exports.useRef(null),c={passive:!(t||e||n||v)};function f(){u.current&&u.current(),u.current=null}function p(){return f(),s.current=!1,o.animationState&&o.animationState.setActive(Ct.Tap,!1),!CP()}function h(y,x){!p()||(_P(o.getInstance(),y.target)?e&&e(y,x):n&&n(y,x))}function m(y,x){!p()||n&&n(y,x)}function v(y,x){f(),!s.current&&(s.current=!0,u.current=Lm(Yl(window,"pointerup",h,c),Yl(window,"pointercancel",m,c)),o.animationState&&o.animationState.setActive(Ct.Tap,!0),t&&t(y,x))}v0(o,"pointerdown",i?v:void 0,c),zx(f)}const wU="production",UP=typeof process>"u"||process.env===void 0?wU:"production",a_=new Set;function HP(e,t,n){e||a_.has(t)||(console.warn(t),n&&console.warn(n),a_.add(t))}const v2=new WeakMap,C1=new WeakMap,CU=e=>{const t=v2.get(e.target);t&&t(e)},_U=e=>{e.forEach(CU)};function kU({root:e,...t}){const n=e||document;C1.has(n)||C1.set(n,{});const r=C1.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(_U,{root:e,...t})),r[o]}function EU(e,t,n){const r=kU(t);return v2.set(e,n),r.observe(e),()=>{v2.delete(e),r.unobserve(e)}}function AU({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){const i=_.exports.useRef({hasEnteredView:!1,isInView:!1});let s=Boolean(t||n||r);o.once&&i.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?IU:TU)(s,i.current,e,o)}const PU={some:0,all:1};function TU(e,t,n,{root:r,margin:o,amount:i="some",once:s}){_.exports.useEffect(()=>{if(!e)return;const u={root:r?.current,rootMargin:o,threshold:typeof i=="number"?i:PU[i]},c=f=>{const{isIntersecting:p}=f;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Ct.InView,p);const h=n.getProps(),m=p?h.onViewportEnter:h.onViewportLeave;m&&m(f)};return EU(n.getInstance(),u,c)},[e,r,o,i])}function IU(e,t,n,{fallback:r=!0}){_.exports.useEffect(()=>{!e||!r||(UP!=="production"&&HP(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=n.getProps();o&&o(null),n.animationState&&n.animationState.setActive(Ct.InView,!0)}))},[e])}const _a=e=>t=>(e(t),null),OU={inView:_a(AU),tap:_a(SU),focus:_a(aj),hover:_a(gj)};function Gx(){const e=_.exports.useContext(Cu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=_.exports.useId();return _.exports.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function RU(){return MU(_.exports.useContext(Cu))}function MU(e){return e===null?!0:e.isPresent}function GP(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,NU={linear:Vx,easeIn:Wx,easeInOut:RP,easeOut:Vj,circIn:MP,circInOut:Wj,circOut:jx,backIn:Ux,backInOut:Uj,backOut:jj,anticipate:Hj,bounceIn:Yj,bounceInOut:Zj,bounceOut:x0},s_=e=>{if(Array.isArray(e)){y0(e.length===4);const[t,n,r,o]=e;return xU(t,n,r,o)}else if(typeof e=="string")return NU[e];return e},LU=e=>Array.isArray(e)&&typeof e[0]!="number",l_=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Wi.test(t)&&!t.startsWith("url(")),us=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Wp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_1=()=>({type:"keyframes",ease:"linear",duration:.3}),DU=e=>({type:"keyframes",duration:.8,values:e}),u_={x:us,y:us,z:us,rotate:us,rotateX:us,rotateY:us,rotateZ:us,scaleX:Wp,scaleY:Wp,scale:Wp,opacity:_1,backgroundColor:_1,color:_1,default:Wp},FU=(e,t)=>{let n;return kf(t)?n=DU:n=u_[e]||u_.default,{to:t,...n(t)}},zU={...iP,color:Kn,backgroundColor:Kn,outlineColor:Kn,fill:Kn,stroke:Kn,borderColor:Kn,borderTopColor:Kn,borderRightColor:Kn,borderBottomColor:Kn,borderLeftColor:Kn,filter:u2,WebkitFilter:u2},qx=e=>zU[e];function Kx(e,t){var n;let r=qx(e);return r!==u2&&(r=Wi),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const BU={current:!1};function $U({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:u,from:c,...f}){return!!Object.keys(f).length}function VU({ease:e,times:t,yoyo:n,flip:r,loop:o,...i}){const s={...i};return t&&(s.offset=t),i.duration&&(s.duration=w0(i.duration)),i.repeatDelay&&(s.repeatDelay=w0(i.repeatDelay)),e&&(s.ease=LU(e)?e.map(s_):s_(e)),i.type==="tween"&&(s.type="keyframes"),(n||o||r)&&(n?s.repeatType="reverse":o?s.repeatType="loop":r&&(s.repeatType="mirror"),s.repeat=o||n||r||i.repeat),i.type!=="spring"&&(s.type="keyframes"),s}function WU(e,t){var n,r;return(r=(n=(Yx(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function jU(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function UU(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),jU(t),$U(e)||(e={...e,...FU(n,t.to)}),{...t,...VU(e)}}function HU(e,t,n,r,o){const i=Yx(r,e)||{};let s=i.from!==void 0?i.from:t.get();const u=l_(e,n);s==="none"&&u&&typeof n=="string"?s=Kx(e,n):c_(s)&&typeof n=="string"?s=f_(n):!Array.isArray(n)&&c_(n)&&typeof s=="string"&&(n=f_(s));const c=l_(e,s);function f(){const h={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:m=>t.set(m)};return i.type==="inertia"||i.type==="decay"?pU({...h,...i}):zP({...UU(i,h,e),onUpdate:m=>{h.onUpdate(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{h.onComplete(),i.onComplete&&i.onComplete()}})}function p(){const h=mP(n);return t.set(h),o(),i.onUpdate&&i.onUpdate(h),i.onComplete&&i.onComplete(),{stop:()=>{}}}return!c||!u||i.type===!1?p:f}function c_(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function f_(e){return typeof e=="number"?0:Kx("",e)}function Yx(e,t){return e[t]||e.default||e}function Zx(e,t,n,r={}){return BU.current&&(r={type:!1}),t.start(o=>{let i,s;const u=HU(e,t,n,r,o),c=WU(r,e),f=()=>s=u();return c?i=window.setTimeout(f,w0(c)):f(),()=>{clearTimeout(i),s&&s.stop()}})}const GU=e=>/^\-?\d*\.?\d+$/.test(e),qU=e=>/^0[^.\s]+$/.test(e),qP=1/60*1e3,KU=typeof performance<"u"?()=>performance.now():()=>Date.now(),KP=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(KU()),qP);function YU(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&o,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f(e[t]=YU(()=>Pf=!0),e),{}),Jo=rd.reduce((e,t)=>{const n=zm[t];return e[t]=(r,o=!1,i=!1)=>(Pf||QU(),n.schedule(r,o,i)),e},{}),Tf=rd.reduce((e,t)=>(e[t]=zm[t].cancel,e),{}),k1=rd.reduce((e,t)=>(e[t]=()=>zm[t].process(Xl),e),{}),XU=e=>zm[e].process(Xl),YP=e=>{Pf=!1,Xl.delta=y2?qP:Math.max(Math.min(e-Xl.timestamp,ZU),1),Xl.timestamp=e,b2=!0,rd.forEach(XU),b2=!1,Pf&&(y2=!1,KP(YP))},QU=()=>{Pf=!0,y2=!0,b2||KP(YP)},x2=()=>Xl;function Xx(e,t){e.indexOf(t)===-1&&e.push(t)}function Qx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Wc{constructor(){this.subscriptions=[]}add(t){return Xx(this.subscriptions,t),()=>Qx(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class eH{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Wc,this.velocityUpdateSubscribers=new Wc,this.renderSubscribers=new Wc,this.canTrackVelocity=!1,this.updateAndNotify=(n,r=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:i}=x2();this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,Jo.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),r&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>Jo.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=JU(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?BP(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.stopAnimation=t(n)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function fu(e){return new eH(e)}const ZP=e=>t=>t.test(e),tH={test:e=>e==="auto",parse:e=>e},XP=[js,Me,Qo,ca,TW,PW,tH],pc=e=>XP.find(ZP(e)),nH=[...XP,Kn,Wi],rH=e=>nH.find(ZP(e));function oH(e){const t={};return e.forEachValue((n,r)=>t[r]=n.get()),t}function iH(e){const t={};return e.forEachValue((n,r)=>t[r]=n.getVelocity()),t}function Bm(e,t,n){const r=e.getProps();return hP(r,t,n!==void 0?n:r.custom,oH(e),iH(e))}function aH(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fu(n))}function sH(e,t){const n=Bm(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const u=mP(i[s]);aH(e,s,u)}}function lH(e,t,n){var r,o;const i=Object.keys(t).filter(u=>!e.hasValue(u)),s=i.length;if(!!s)for(let u=0;uS2(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=S2(e,t,n);else{const o=typeof t=="function"?Bm(e,t,n.custom):t;r=QP(e,o,n)}return r.then(()=>e.notifyAnimationComplete(t))}function S2(e,t,n={}){var r;const o=Bm(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>QP(e,o,n):()=>Promise.resolve(),u=!((r=e.variantChildren)===null||r===void 0)&&r.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:h,staggerDirection:m}=i;return dH(e,t,p+f,h,m,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[s,u]:[u,s];return f().then(p)}else return Promise.all([s(),u(n.delay)])}function QP(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...c}=e.makeTargetAnimatable(t);const f=e.getValue("willChange");r&&(s=r);const p=[],h=o&&((i=e.animationState)===null||i===void 0?void 0:i.getState()[o]);for(const m in c){const v=e.getValue(m),y=c[m];if(!v||y===void 0||h&&hH(h,m))continue;let x={delay:n,...s};e.shouldReduceMotion&&Jf.has(m)&&(x={...x,type:!1,delay:0});let E=Zx(m,v,y,x);C0(f)&&(f.add(m),E=E.then(()=>f.remove(m))),p.push(E)}return Promise.all(p).then(()=>{u&&sH(e,u)})}function dH(e,t,n=0,r=0,o=1,i){const s=[],u=(e.variantChildren.size-1)*r,c=o===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(pH).forEach((f,p)=>{s.push(S2(f,t,{...i,delay:n+c(p)}).then(()=>f.notifyAnimationComplete(t)))}),Promise.all(s)}function pH(e,t){return e.sortNodePosition(t)}function hH({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const Jx=[Ct.Animate,Ct.InView,Ct.Focus,Ct.Hover,Ct.Tap,Ct.Drag,Ct.Exit],mH=[...Jx].reverse(),gH=Jx.length;function vH(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fH(e,n,r)))}function yH(e){let t=vH(e);const n=xH();let r=!0;const o=(c,f)=>{const p=Bm(e,f);if(p){const{transition:h,transitionEnd:m,...v}=p;c={...c,...v,...m}}return c};function i(c){t=c(e)}function s(c,f){var p;const h=e.getProps(),m=e.getVariantContext(!0)||{},v=[],y=new Set;let x={},E=1/0;for(let b=0;bE&&N;const te=Array.isArray(I)?I:[I];let we=te.reduce(o,{});L===!1&&(we={});const{prevResolvedValues:_e={}}=A,xe={..._e,...we},ue=ve=>{W=!0,y.delete(ve),A.needsAnimating[ve]=!0};for(const ve in xe){const Ae=we[ve],j=_e[ve];x.hasOwnProperty(ve)||(Ae!==j?kf(Ae)&&kf(j)?!GP(Ae,j)||K?ue(ve):A.protectedKeys[ve]=!0:Ae!==void 0?ue(ve):y.add(ve):Ae!==void 0&&y.has(ve)?ue(ve):A.protectedKeys[ve]=!0)}A.prevProp=I,A.prevResolvedValues=we,A.isActive&&(x={...x,...we}),r&&e.blockInitialAnimation&&(W=!1),W&&!$&&v.push(...te.map(ve=>({animation:ve,options:{type:C,...c}})))}if(y.size){const b={};y.forEach(C=>{const A=e.getBaseTarget(C);A!==void 0&&(b[C]=A)}),v.push({animation:b})}let S=Boolean(v.length);return r&&h.initial===!1&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(v):Promise.resolve()}function u(c,f,p){var h;if(n[c].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var y;return(y=v.animationState)===null||y===void 0?void 0:y.setActive(c,f)}),n[c].isActive=f;const m=s(p,c);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:i,getState:()=>n}}function bH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!GP(t,e):!1}function cs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xH(){return{[Ct.Animate]:cs(!0),[Ct.InView]:cs(),[Ct.Hover]:cs(),[Ct.Tap]:cs(),[Ct.Drag]:cs(),[Ct.Focus]:cs(),[Ct.Exit]:cs()}}const SH={animation:_a(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=yH(e)),Im(t)&&_.exports.useEffect(()=>t.subscribe(e),[t])}),exit:_a(e=>{const{custom:t,visualElement:n}=e,[r,o]=Gx(),i=_.exports.useContext(Cu);_.exports.useEffect(()=>{n.isPresent=r;const s=n.animationState&&n.animationState.setActive(Ct.Exit,!r,{custom:i&&i.custom||t});s&&!r&&s.then(o)},[r])})};class JP{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=A1(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=Hx(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:v}=x2();this.history.push({...m,timestamp:v});const{onStart:y,onMove:x}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{if(this.lastMoveEvent=f,this.lastMoveEventInfo=E1(p,this.transformPagePoint),vP(f)&&f.buttons===0){this.handlePointerUp(f,p);return}Jo.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m}=this.handlers,v=A1(E1(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,v),m&&m(f,v)},yP(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=r;const o=Fx(t),i=E1(o,this.transformPagePoint),{point:s}=i,{timestamp:u}=x2();this.history=[{...s,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,A1(i,this.history)),this.removeListeners=Lm(Yl(window,"pointermove",this.handlePointerMove),Yl(window,"pointerup",this.handlePointerUp),Yl(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Tf.update(this.updatePoint)}}function E1(e,t){return t?{point:t(e.point)}:e}function d_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function A1({point:e},t){return{point:e,delta:d_(e,eT(t)),offset:d_(e,wH(t)),velocity:CH(t,.1)}}function wH(e){return e[0]}function eT(e){return e[e.length-1]}function CH(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=eT(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>w0(t)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Lr(e){return e.max-e.min}function p_(e,t=0,n=.01){return Hx(e,t)n&&(e=r?jt(n,e,r.max):Math.min(e,n)),e}function v_(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function EH(e,{top:t,left:n,bottom:r,right:o}){return{x:v_(e.x,n,o),y:v_(e.y,t,r)}}function y_(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ef(t.min,t.max-r,e.min):r>o&&(n=Ef(e.min,e.max-o,t.min)),b0(0,1,n)}function TH(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const w2=.35;function IH(e=w2){return e===!1?e=0:e===!0&&(e=w2),{x:b_(e,"left","right"),y:b_(e,"top","bottom")}}function b_(e,t,n){return{min:x_(e,t),max:x_(e,n)}}function x_(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const S_=()=>({translate:0,scale:1,origin:0,originPoint:0}),Hc=()=>({x:S_(),y:S_()}),w_=()=>({min:0,max:0}),Sn=()=>({x:w_(),y:w_()});function $o(e){return[e("x"),e("y")]}function tT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function OH({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function RH(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function P1(e){return e===void 0||e===1}function nT({scale:e,scaleX:t,scaleY:n}){return!P1(e)||!P1(t)||!P1(n)}function fa(e){return nT(e)||C_(e.x)||C_(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function C_(e){return e&&e!=="0%"}function _0(e,t,n){const r=e-n,o=t*r;return n+o}function __(e,t,n,r,o){return o!==void 0&&(e=_0(e,o,r)),_0(e,n,r)+t}function C2(e,t=0,n=1,r,o){e.min=__(e.min,t,n,r,o),e.max=__(e.max,t,n,r,o)}function rT(e,{x:t,y:n}){C2(e.x,t.translate,t.scale,t.originPoint),C2(e.y,n.translate,n.scale,n.originPoint)}function MH(e,t,n,r=!1){var o,i;const s=n.length;if(!s)return;t.x=t.y=1;let u,c;for(let f=0;f{this.stopAnimation(),n&&this.snapToCursor(Fx(u,"page").point)},o=(u,c)=>{var f;const{drag:p,dragPropagation:h,onDragStart:m}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=wP(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$o(v=>{var y,x;let E=this.getAxisMotionValue(v).get()||0;if(Qo.test(E)){const S=(x=(y=this.visualElement.projection)===null||y===void 0?void 0:y.layout)===null||x===void 0?void 0:x.actual[v];S&&(E=Lr(S)*(parseFloat(E)/100))}this.originPoint[v]=E}),m?.(u,c),(f=this.visualElement.animationState)===null||f===void 0||f.setActive(Ct.Drag,!0))},i=(u,c)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=c;if(p&&this.currentDirection===null){this.currentDirection=BH(v),this.currentDirection!==null&&h?.(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.syncRender(),m?.(u,c)},s=(u,c)=>this.stop(u,c);this.panSession=new JP(t,{onSessionStart:r,onStart:o,onMove:i,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i?.(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Ct.Drag,!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!jp(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=kH(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&Bl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=EH(r.actual,t):this.constraints=!1,this.elastic=IH(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&$o(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=TH(r.actual[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bl(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=DH(r,o.root,this.visualElement.getTransformPagePoint());let s=AH(o.layout.actual,i);if(n){const u=n(OH(s));this.hasMutatedConstraints=!!u,u&&(s=tT(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},f=$o(p=>{var h;if(!jp(p,n,this.currentDirection))return;let m=(h=c?.[p])!==null&&h!==void 0?h:{};s&&(m={min:0,max:0});const v=o?200:1e6,y=o?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...m};return this.startAxisValueAnimation(p,x)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Zx(t,r,0,n)}stopAnimation(){$o(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n,r;const o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)}snapToCursor(t){$o(n=>{const{drag:r}=this.getProps();if(!jp(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:u}=o.layout.actual[n];i.set(t[n]-jt(s,u,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Bl(r)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$o(u=>{const c=this.getAxisMotionValue(u);if(c){const f=c.get();i[u]=PH({min:f,max:f},this.constraints[u])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=s?s({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),$o(u=>{if(!jp(u,n,null))return;const c=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];c.set(jt(f,p,i[u]))})}addListeners(){var t;FH.set(this.visualElement,this);const n=this.visualElement.getInstance(),r=Yl(n,"pointerdown",f=>{const{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(f)}),o=()=>{const{dragConstraints:f}=this.getProps();Bl(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&((t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout()),o();const u=Mm(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&($o(h=>{const m=this.getAxisMotionValue(h);!m||(this.originPoint[h]+=f[h].translate,m.set(m.get()+f[h].translate))}),this.visualElement.syncRender())});return()=>{u(),r(),s(),c?.()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=w2,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:u}}}function jp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function BH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function $H(e){const{dragControls:t,visualElement:n}=e,r=Rm(()=>new zH(n));_.exports.useEffect(()=>t&&t.subscribe(r),[r,t]),_.exports.useEffect(()=>r.addListeners(),[r])}function VH({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:o}){const i=e||t||n||r,s=_.exports.useRef(null),{transformPagePoint:u}=_.exports.useContext(Tx),c={onSessionStart:r,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,n&&n(p,h)}};_.exports.useEffect(()=>{s.current!==null&&s.current.updateHandlers(c)});function f(p){s.current=new JP(p,c,{transformPagePoint:u})}v0(o,"pointerdown",i&&f),zx(()=>s.current&&s.current.end())}const WH={pan:_a(VH),drag:_a($H)},_2={current:null},iT={current:!1};function jH(){if(iT.current=!0,!!Ws)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_2.current=e.matches;e.addListener(t),t()}else _2.current=!1}const Up=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function UH(){const e=Up.map(()=>new Wc),t={},n={clearAllListeners:()=>e.forEach(r=>r.clear()),updatePropListeners:r=>{Up.forEach(o=>{var i;const s="on"+o,u=r[s];(i=t[o])===null||i===void 0||i.call(t),u&&(t[o]=n[s](u))})}};return e.forEach((r,o)=>{n["on"+Up[o]]=i=>r.add(i),n["notify"+Up[o]]=(...i)=>r.notify(...i)}),n}function HH(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(oi(i))e.addValue(o,i),C0(r)&&r.add(o);else if(oi(s))e.addValue(o,fu(i)),C0(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const u=e.getValue(o);!u.hasAnimated&&u.set(i)}else{const u=e.getStaticValue(o);e.addValue(o,fu(u!==void 0?u:i))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const aT=Object.keys(Cf),GH=aT.length,sT=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:r,measureViewportBox:o,render:i,readValueFromInstance:s,removeValueFromRenderState:u,sortNodePosition:c,scrapeMotionValuesFromProps:f})=>({parent:p,props:h,presenceId:m,blockInitialAnimation:v,visualState:y,reducedMotionConfig:x},E={})=>{let S=!1;const{latestValues:b,renderState:C}=y;let A;const I=UH(),N=new Map,L=new Map;let $={};const K={...b};let W;function te(){!A||!S||(we(),i(A,C,h.style,Z.projection))}function we(){t(Z,C,b,E,h)}function _e(){I.notifyUpdate(b)}function xe(q,R){const H=R.onChange(le=>{b[q]=le,h.onUpdate&&Jo.update(_e,!1,!0)}),se=R.onRenderRequest(Z.scheduleRender);L.set(q,()=>{H(),se()})}const{willChange:ue,...ve}=f(h);for(const q in ve){const R=ve[q];b[q]!==void 0&&oi(R)&&(R.set(b[q],!1),C0(ue)&&ue.add(q))}const Ae=Om(h),j=KA(h),Z={treeType:e,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:null,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(p?.isMounted()),blockInitialAnimation:v,isMounted:()=>Boolean(A),mount(q){S=!0,A=Z.current=q,Z.projection&&Z.projection.mount(q),j&&p&&!Ae&&(W=p?.addVariantChild(Z)),N.forEach((R,H)=>xe(H,R)),iT.current||jH(),Z.shouldReduceMotion=x==="never"?!1:x==="always"?!0:_2.current,p?.children.add(Z),Z.setProps(h)},unmount(){var q;(q=Z.projection)===null||q===void 0||q.unmount(),Tf.update(_e),Tf.render(te),L.forEach(R=>R()),W?.(),p?.children.delete(Z),I.clearAllListeners(),A=void 0,S=!1},loadFeatures(q,R,H,se,le,he){const ge=[];for(let Ee=0;EeZ.scheduleRender(),animationType:typeof fe=="string"?fe:"both",initialPromotionConfig:he,layoutScroll:gt})}return ge},addVariantChild(q){var R;const H=Z.getClosestVariantNode();if(H)return(R=H.variantChildren)===null||R===void 0||R.add(q),()=>H.variantChildren.delete(q)},sortNodePosition(q){return!c||e!==q.treeType?0:c(Z.getInstance(),q.getInstance())},getClosestVariantNode:()=>j?Z:p?.getClosestVariantNode(),getLayoutId:()=>h.layoutId,getInstance:()=>A,getStaticValue:q=>b[q],setStaticValue:(q,R)=>b[q]=R,getLatestValues:()=>b,setVisibility(q){Z.isVisible!==q&&(Z.isVisible=q,Z.scheduleRender())},makeTargetAnimatable(q,R=!0){return r(Z,q,h,R)},measureViewportBox(){return o(A,h)},addValue(q,R){Z.hasValue(q)&&Z.removeValue(q),N.set(q,R),b[q]=R.get(),xe(q,R)},removeValue(q){var R;N.delete(q),(R=L.get(q))===null||R===void 0||R(),L.delete(q),delete b[q],u(q,C)},hasValue:q=>N.has(q),getValue(q,R){let H=N.get(q);return H===void 0&&R!==void 0&&(H=fu(R),Z.addValue(q,H)),H},forEachValue:q=>N.forEach(q),readValue:q=>b[q]!==void 0?b[q]:s(A,q,E),setBaseTarget(q,R){K[q]=R},getBaseTarget(q){if(n){const R=n(h,q);if(R!==void 0&&!oi(R))return R}return K[q]},...I,build(){return we(),C},scheduleRender(){Jo.render(te,!1,!0)},syncRender:te,setProps(q){(q.transformTemplate||h.transformTemplate)&&Z.scheduleRender(),h=q,I.updatePropListeners(q),$=HH(Z,f(h),$)},getProps:()=>h,getVariant:q=>{var R;return(R=h.variants)===null||R===void 0?void 0:R[q]},getDefaultTransition:()=>h.transition,getTransformPagePoint:()=>h.transformPagePoint,getVariantContext(q=!1){if(q)return p?.getVariantContext();if(!Ae){const H=p?.getVariantContext()||{};return h.initial!==void 0&&(H.initial=h.initial),H}const R={};for(let H=0;H{const i=o.get();if(!k2(i))return;const s=E2(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!k2(i))continue;const s=E2(i,r);!s||(t[o]=s,n&&n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const ZH=new Set(["width","height","top","left","right","bottom","x","y"]),cT=e=>ZH.has(e),XH=e=>Object.keys(e).some(cT),fT=(e,t)=>{e.set(t,!1),e.set(t)},E_=e=>e===js||e===Me;var A_;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(A_||(A_={}));const P_=(e,t)=>parseFloat(e.split(", ")[t]),T_=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return P_(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?P_(i[1],e):0}},QH=new Set(["x","y","z"]),JH=m0.filter(e=>!QH.has(e));function eG(e){const t=[];return JH.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}const I_={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:T_(4,13),y:T_(5,14)},tG=(e,t,n)=>{const r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),{display:s}=i,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{u[f]=I_[f](r,i)}),t.syncRender();const c=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);fT(p,u[f]),e[f]=I_[f](c,i)}),e},nG=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(cT);let i=[],s=!1;const u=[];if(o.forEach(c=>{const f=e.getValue(c);if(!e.hasValue(c))return;let p=n[c],h=pc(p);const m=t[c];let v;if(kf(m)){const y=m.length,x=m[0]===null?1:0;p=m[x],h=pc(p);for(let E=x;E=0?window.pageYOffset:null,f=tG(t,e,u);return i.length&&i.forEach(([p,h])=>{e.getValue(p).set(h)}),e.syncRender(),Ws&&c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function rG(e,t,n,r){return XH(t)?nG(e,t,n,r):{target:t,transitionEnd:r}}const oG=(e,t,n,r)=>{const o=YH(e,t,r);return t=o.target,r=o.transitionEnd,rG(e,t,n,r)};function iG(e){return window.getComputedStyle(e)}const dT={treeType:"dom",readValueFromInstance(e,t){if(Jf.has(t)){const n=qx(t);return n&&n.default||0}else{const n=iG(e),r=(XA(t)?n.getPropertyValue(t):n[t])||0;return typeof r=="string"?r.trim():r}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox(e,{transformPagePoint:t}){return oT(e,t)},resetTransform(e,t,n){const{transformTemplate:r}=n;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:n,...r},{transformValues:o},i=!0){let s=cH(r,t||{},e);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){lH(e,r,s);const u=oG(e,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}},scrapeMotionValuesFromProps:Dx,build(e,t,n,r,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Mx(t,n,r,o.transformTemplate)},render:cP},aG=sT(dT),sG=sT({...dT,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return Jf.has(t)?((n=qx(t))===null||n===void 0?void 0:n.default)||0:(t=fP.has(t)?t:uP(t),e.getAttribute(t))},scrapeMotionValuesFromProps:pP,build(e,t,n,r,o){Lx(t,n,r,o.transformTemplate)},render:dP}),lG=(e,t)=>Ox(e)?sG(t,{enableHardwareAcceleration:!1}):aG(t,{enableHardwareAcceleration:!0});function O_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Me.test(e))e=parseFloat(e);else return e;const n=O_(e,t.target.x),r=O_(e,t.target.y);return`${n}% ${r}%`}},R_="_$css",uG={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(uT,v=>(i.push(v),R_)));const s=Wi.parse(e);if(s.length>5)return r;const u=Wi.createTransformer(e),c=typeof s[0]!="number"?1:0,f=n.x.scale*t.x,p=n.y.scale*t.y;s[0+c]/=f,s[1+c]/=p;const h=jt(f,p,.5);typeof s[2+c]=="number"&&(s[2+c]/=h),typeof s[3+c]=="number"&&(s[3+c]/=h);let m=u(s);if(o){let v=0;m=m.replace(R_,()=>{const y=i[v];return v++,y})}return m}};class cG extends ee.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;wW(dG),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Bc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Jo.postRender(()=>{var u;!((u=s.getStack())===null||u===void 0)&&u.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n?.group&&n.group.remove(o),r?.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function fG(e){const[t,n]=Gx(),r=_.exports.useContext(Ix);return w(cG,{...e,layoutGroup:r,switchLayoutGroup:_.exports.useContext(YA),isPresent:t,safeToRemove:n})}const dG={borderRadius:{...hc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hc,borderTopRightRadius:hc,borderBottomLeftRadius:hc,borderBottomRightRadius:hc,boxShadow:uG},pG={measureLayout:fG};function hG(e,t,n={}){const r=oi(e)?e:fu(e);return Zx("",r,t,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const pT=["TopLeft","TopRight","BottomLeft","BottomRight"],mG=pT.length,M_=e=>typeof e=="string"?parseFloat(e):e,N_=e=>typeof e=="number"||Me.test(e);function gG(e,t,n,r,o,i){var s,u,c,f;o?(e.opacity=jt(0,(s=n.opacity)!==null&&s!==void 0?s:1,vG(r)),e.opacityExit=jt((u=t.opacity)!==null&&u!==void 0?u:1,0,yG(r))):i&&(e.opacity=jt((c=t.opacity)!==null&&c!==void 0?c:1,(f=n.opacity)!==null&&f!==void 0?f:1,r));for(let p=0;prt?1:n(Ef(e,t,r))}function D_(e,t){e.min=t.min,e.max=t.max}function vo(e,t){D_(e.x,t.x),D_(e.y,t.y)}function F_(e,t,n,r,o){return e-=t,e=_0(e,1/n,r),o!==void 0&&(e=_0(e,1/o,r)),e}function bG(e,t=0,n=1,r=.5,o,i=e,s=e){if(Qo.test(t)&&(t=parseFloat(t),t=jt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=jt(i.min,i.max,r);e===i&&(u-=t),e.min=F_(e.min,t,n,u,o),e.max=F_(e.max,t,n,u,o)}function z_(e,t,[n,r,o],i,s){bG(e,t[n],t[r],t[o],t.scale,i,s)}const xG=["x","scaleX","originX"],SG=["y","scaleY","originY"];function B_(e,t,n,r){z_(e.x,t,xG,n?.x,r?.x),z_(e.y,t,SG,n?.y,r?.y)}function $_(e){return e.translate===0&&e.scale===1}function mT(e){return $_(e.x)&&$_(e.y)}function gT(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 V_(e){return Lr(e.x)/Lr(e.y)}function wG(e,t,n=.01){return Hx(e,t)<=n}class CG{constructor(){this.members=[]}add(t){Xx(this.members,t),t.scheduleRender()}remove(t){if(Qx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){var r;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,o,i,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(o=t.resumingFrom)===null||o===void 0?void 0:(i=o.options).onExitComplete)===null||s===void 0||s.call(i)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const _G="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function W_(e,t,n){const r=e.x.translate/t.x,o=e.y.translate/t.y;let i=`translate3d(${r}px, ${o}px, 0) `;if(i+=`scale(${1/t.x}, ${1/t.y}) `,n){const{rotate:c,rotateX:f,rotateY:p}=n;c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotateX(${f}deg) `),p&&(i+=`rotateY(${p}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return i+=`scale(${s}, ${u})`,i===_G?"none":i}const kG=(e,t)=>e.depth-t.depth;class EG{constructor(){this.children=[],this.isDirty=!1}add(t){Xx(this.children,t),this.isDirty=!0}remove(t){Qx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kG),this.isDirty=!1,this.children.forEach(t)}}const j_=["","X","Y","Z"],U_=1e3;function vT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s,u={},c=t?.()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(RG),this.nodes.forEach(MG)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=u,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let f=0;fthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,clearTimeout(m),m=window.setTimeout(v,250),Bc.hasAnimatedSinceResize&&(Bc.hasAnimatedSinceResize=!1,this.nodes.forEach(OG))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:v,hasRelativeTargetChanged:y,layout:x})=>{var E,S,b,C,A;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=(S=(E=this.options.transition)!==null&&E!==void 0?E:h.getDefaultTransition())!==null&&S!==void 0?S:zG,{onLayoutAnimationStart:N,onLayoutAnimationComplete:L}=h.getProps(),$=!this.targetLayout||!gT(this.targetLayout,x)||y,K=!v&&y;if(((b=this.resumeFrom)===null||b===void 0?void 0:b.instance)||K||v&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,K);const W={...Yx(I,"layout"),onPlay:N,onComplete:L};h.shouldReduceMotion&&(W.delay=0,W.type=!1),this.startAnimation(W)}else!v&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((A=(C=this.options).onExitComplete)===null||A===void 0||A.call(C));this.targetLayout=x})}unmount(){var s,u;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(u=this.parent)===null||u===void 0||u.children.delete(this),this.instance=void 0,Tf.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1}startUpdate(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(NG))}willUpdate(s=!0){var u,c,f;if(this.root.isUpdateBlocked()){(c=(u=this.options).onExitComplete)===null||c===void 0||c.call(u);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const s=this.measure(),u=this.removeTransform(this.removeElementScroll(s));Y_(u),this.snapshot={measured:s,layout:u,latestValues:{}}}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f{var b;const C=S/1e3;G_(m.x,s.x,C),G_(m.y,s.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((b=this.relativeParent)===null||b===void 0?void 0:b.layout)&&(Uc(v,this.layout.actual,this.relativeParent.layout.actual),DG(this.relativeTarget,this.relativeTargetOrigin,v,C)),y&&(this.animationValues=h,gG(h,p,this.latestValues,C,E,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(0)}startAnimation(s){var u,c;this.notifyListeners("animationStart"),(u=this.currentAnimation)===null||u===void 0||u.stop(),this.resumingFrom&&((c=this.resumingFrom.currentAnimation)===null||c===void 0||c.stop()),this.pendingAnimation&&(Tf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Jo.update(()=>{Bc.hasAnimatedSinceResize=!0,this.currentAnimation=hG(0,U_,{...s,onUpdate:f=>{var p;this.mixTargetDelta(f),(p=s.onUpdate)===null||p===void 0||p.call(s,f)},onComplete:()=>{var f;(f=s.onComplete)===null||f===void 0||f.call(s),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,U_),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:c,layout:f,latestValues:p}=s;if(!(!u||!c||!f)){if(this!==s&&this.layout&&f&&yT(this.options.animationType,this.layout.actual,f.actual)){c=this.target||Sn();const h=Lr(this.layout.actual.x);c.x.min=s.target.x.min,c.x.max=c.x.min+h;const m=Lr(this.layout.actual.y);c.y.min=s.target.y.min,c.y.max=c.y.min+m}vo(u,c),$l(u,p),jc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){var c,f,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new CG),this.sharedNodes.get(s).add(u),u.promote({transition:(c=u.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(p=(f=u.options.initialPromotionConfig)===null||f===void 0?void 0:f.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(f,u)})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const c={};for(let f=0;f{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(H_),this.root.sharedNodes.clear()}}}function AG(e){e.updateLayout()}function PG(e){var t,n,r;const o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{actual:i,measured:s}=e.layout,{animationType:u}=e.options;u==="size"?$o(m=>{const v=o.isShared?o.measured[m]:o.layout[m],y=Lr(v);v.min=i[m].min,v.max=v.min+y}):yT(u,o.layout,i)&&$o(m=>{const v=o.isShared?o.measured[m]:o.layout[m],y=Lr(i[m]);v.max=v.min+y});const c=Hc();jc(c,i,o.layout);const f=Hc();o.isShared?jc(f,e.applyTransform(s,!0),o.measured):jc(f,i,o.layout);const p=!mT(c);let h=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:m,layout:v}=e.relativeParent;if(m&&v){const y=Sn();Uc(y,o.layout,m.layout);const x=Sn();Uc(x,i,v.actual),gT(y,x)||(h=!0)}}e.notifyListeners("didUpdate",{layout:i,snapshot:o,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:h})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function TG(e){e.clearSnapshot()}function H_(e){e.clearMeasurements()}function IG(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function OG(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function RG(e){e.resolveTargetDelta()}function MG(e){e.calcProjection()}function NG(e){e.resetRotation()}function LG(e){e.removeLeadSnapshot()}function G_(e,t,n){e.translate=jt(t.translate,0,n),e.scale=jt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function q_(e,t,n,r){e.min=jt(t.min,n.min,r),e.max=jt(t.max,n.max,r)}function DG(e,t,n,r){q_(e.x,t.x,n.x,r),q_(e.y,t.y,n.y,r)}function FG(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zG={duration:.45,ease:[.4,0,.1,1]};function BG(e,t){let n=e.root;for(let i=e.path.length-1;i>=0;i--)if(Boolean(e.path[i].instance)){n=e.path[i];break}const o=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function K_(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Y_(e){K_(e.x),K_(e.y)}function yT(e,t,n){return e==="position"||e==="preserve-aspect"&&!wG(V_(t),V_(n))}const $G=vT({attachResizeListener:(e,t)=>Mm(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),T1={current:void 0},VG=vT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!T1.current){const e=new $G(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),T1.current=e}return T1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),WG={...SH,...OU,...WH,...pG},Io=xW((e,t)=>ij(e,t,WG,lG,VG));function bT(){const e=_.exports.useRef(!1);return p0(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function jG(){const e=bT(),[t,n]=_.exports.useState(0),r=_.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[_.exports.useCallback(()=>Jo.postRender(r),[r]),t]}class UG extends _.exports.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function HG({children:e,isPresent:t}){const n=_.exports.useId(),r=_.exports.useRef(null),o=_.exports.useRef({width:0,height:0,top:0,left:0});return _.exports.useInsertionEffect(()=>{const{width:i,height:s,top:u,left:c}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${i}px !important; + height: ${s}px !important; + top: ${u}px !important; + left: ${c}px !important; + } + `),()=>{document.head.removeChild(f)}},[t]),w(UG,{isPresent:t,childRef:r,sizeRef:o,children:_.exports.cloneElement(e,{ref:r})})}const I1=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const u=Rm(GG),c=_.exports.useId(),f=_.exports.useMemo(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:p=>{u.set(p,!0);for(const h of u.values())if(!h)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),i?void 0:[n]);return _.exports.useMemo(()=>{u.forEach((p,h)=>u.set(h,!1))},[n]),_.exports.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=w(HG,{isPresent:n,children:e})),w(Cu.Provider,{value:f,children:e})};function GG(){return new Map}const _l=e=>e.key||"";function qG(e,t){e.forEach(n=>{const r=_l(n);t.set(r,n)})}function KG(e){const t=[];return _.exports.Children.forEach(e,n=>{_.exports.isValidElement(n)&&t.push(n)}),t}const qi=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{o&&(s="wait",HP(!1,"Replace exitBeforeEnter with mode='wait'"));let[u]=jG();const c=_.exports.useContext(Ix).forceRender;c&&(u=c);const f=bT(),p=KG(e);let h=p;const m=new Set,v=_.exports.useRef(h),y=_.exports.useRef(new Map).current,x=_.exports.useRef(!0);if(p0(()=>{x.current=!1,qG(p,y),v.current=h}),zx(()=>{x.current=!0,y.clear(),m.clear()}),x.current)return w(Bn,{children:h.map(C=>w(I1,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s,children:C},_l(C)))});h=[...h];const E=v.current.map(_l),S=p.map(_l),b=E.length;for(let C=0;C{if(S.indexOf(C)!==-1)return;const A=y.get(C);if(!A)return;const I=E.indexOf(C),N=()=>{y.delete(C),m.delete(C);const L=v.current.findIndex($=>$.key===C);if(v.current.splice(L,1),!m.size){if(v.current=p,f.current===!1)return;u(),r&&r()}};h.splice(I,0,w(I1,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:s,children:A},_l(A)))}),h=h.map(C=>{const A=C.key;return m.has(A)?C:w(I1,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:C},_l(C))}),UP!=="production"&&s==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),w(Bn,{children:m.size?h:h.map(C=>_.exports.cloneElement(C))})};var od=(...e)=>e.filter(Boolean).join(" ");function YG(){return!1}var ZG=e=>{const{condition:t,message:n}=e;t&&YG()&&console.warn(n)},ks={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},mc={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function A2(e){switch(e?.direction??"right"){case"right":return mc.slideRight;case"left":return mc.slideLeft;case"bottom":return mc.slideDown;case"top":return mc.slideUp;default:return mc.slideRight}}var Ts={enter:{duration:.2,ease:ks.easeOut},exit:{duration:.1,ease:ks.easeIn}},Ao={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},XG=e=>e!=null&&parseInt(e.toString(),10)>0,Z_={exit:{height:{duration:.2,ease:ks.ease},opacity:{duration:.3,ease:ks.ease}},enter:{height:{duration:.3,ease:ks.ease},opacity:{duration:.4,ease:ks.ease}}},QG={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:XG(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??Ao.exit(Z_.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:r?.enter,transition:n?.enter??Ao.enter(Z_.enter,o)})},xT=_.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:s="auto",style:u,className:c,transition:f,transitionEnd:p,...h}=e,[m,v]=_.exports.useState(!1);_.exports.useEffect(()=>{const b=setTimeout(()=>{v(!0)});return()=>clearTimeout(b)},[]),ZG({condition:Boolean(i>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const y=parseFloat(i.toString())>0,x={startingHeight:i,endingHeight:s,animateOpacity:o,transition:m?f:{enter:{duration:0}},transitionEnd:{enter:p?.enter,exit:r?p?.exit:{...p?.exit,display:y?"block":"none"}}},E=r?n:!0,S=n||r?"enter":"exit";return w(qi,{initial:!1,custom:x,children:E&&ee.createElement(Io.div,{ref:t,...h,className:od("chakra-collapse",c),style:{overflow:"hidden",display:"block",...u},custom:x,variants:QG,initial:r?"exit":!1,animate:S,exit:"exit"})})});xT.displayName="Collapse";var JG={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??Ao.enter(Ts.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??Ao.exit(Ts.exit,n),transitionEnd:t?.exit})},ST={initial:"exit",animate:"enter",exit:"exit",variants:JG},eq=_.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:s,transitionEnd:u,delay:c,...f}=t,p=o||r?"enter":"exit",h=r?o&&r:!0,m={transition:s,transitionEnd:u,delay:c};return w(qi,{custom:m,children:h&&ee.createElement(Io.div,{ref:n,className:od("chakra-fade",i),custom:m,...ST,animate:p,...f})})});eq.displayName="Fade";var tq={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r?.exit}:{transitionEnd:{scale:t,...r?.exit}},transition:n?.exit??Ao.exit(Ts.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??Ao.enter(Ts.enter,n),transitionEnd:e?.enter})},wT={initial:"exit",animate:"enter",exit:"exit",variants:tq},nq=_.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:s=.95,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=r?o&&r:!0,v=o||r?"enter":"exit",y={initialScale:s,reverse:i,transition:c,transitionEnd:f,delay:p};return w(qi,{custom:y,children:m&&ee.createElement(Io.div,{ref:n,className:od("chakra-offset-slide",u),...wT,animate:v,custom:y,...h})})});nq.displayName="ScaleFade";var X_={exit:{duration:.15,ease:ks.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},rq={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=A2({direction:e});return{...o,transition:t?.exit??Ao.exit(X_.exit,r),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=A2({direction:e});return{...o,transition:n?.enter??Ao.enter(X_.enter,r),transitionEnd:t?.enter}}},CT=_.exports.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:s,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=A2({direction:r}),v=Object.assign({position:"fixed"},m.position,o),y=i?s&&i:!0,x=s||i?"enter":"exit",E={transitionEnd:f,transition:c,direction:r,delay:p};return w(qi,{custom:E,children:y&&ee.createElement(Io.div,{...h,ref:n,initial:"exit",className:od("chakra-slide",u),animate:x,exit:"exit",custom:E,variants:rq,style:v})})});CT.displayName="Slide";var oq={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??Ao.exit(Ts.exit,o),transitionEnd:r?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??Ao.enter(Ts.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const s={x:t,y:e};return{opacity:0,transition:n?.exit??Ao.exit(Ts.exit,i),...o?{...s,transitionEnd:r?.exit}:{transitionEnd:{...s,...r?.exit}}}}},P2={initial:"initial",animate:"enter",exit:"exit",variants:oq},iq=_.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:s,offsetX:u=0,offsetY:c=8,transition:f,transitionEnd:p,delay:h,...m}=t,v=r?o&&r:!0,y=o||r?"enter":"exit",x={offsetX:u,offsetY:c,reverse:i,transition:f,transitionEnd:p,delay:h};return w(qi,{custom:x,children:v&&ee.createElement(Io.div,{ref:n,className:od("chakra-offset-slide",s),custom:x,...P2,animate:y,...m})})});iq.displayName="SlideFade";var id=(...e)=>e.filter(Boolean).join(" ");function aq(){return!1}var $m=e=>{const{condition:t,message:n}=e;t&&aq()&&console.warn(n)};function O1(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[sq,Vm]=Jt({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[lq,eS]=Jt({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[uq,Ufe,cq,fq]=iW(),ps=de(function(t,n){const{getButtonProps:r}=eS(),o=r(t,n),i=Vm(),s={display:"flex",alignItems:"center",width:"100%",outline:0,...i.button};return ee.createElement(ie.button,{...o,className:id("chakra-accordion__button",t.className),__css:s})});ps.displayName="AccordionButton";function dq(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:o,allowToggle:i,...s}=e;mq(e),gq(e);const u=cq(),[c,f]=_.exports.useState(-1);_.exports.useEffect(()=>()=>{f(-1)},[]);const[p,h]=aW({value:r,defaultValue(){return o?n??[]:n??-1},onChange:t});return{index:p,setIndex:h,htmlProps:s,getAccordionItemProps:v=>{let y=!1;return v!==null&&(y=Array.isArray(p)?p.includes(v):p===v),{isOpen:y,onChange:E=>{if(v!==null)if(o&&Array.isArray(p)){const S=E?p.concat(v):p.filter(b=>b!==v);h(S)}else E?h(v):i&&h(-1)}}},focusedIndex:c,setFocusedIndex:f,descendants:u}}var[pq,tS]=Jt({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function hq(e){const{isDisabled:t,isFocusable:n,id:r,...o}=e,{getAccordionItemProps:i,setFocusedIndex:s}=tS(),u=_.exports.useRef(null),c=_.exports.useId(),f=r??c,p=`accordion-button-${f}`,h=`accordion-panel-${f}`;vq(e);const{register:m,index:v,descendants:y}=fq({disabled:t&&!n}),{isOpen:x,onChange:E}=i(v===-1?null:v);yq({isOpen:x,isDisabled:t});const S=()=>{E?.(!0)},b=()=>{E?.(!1)},C=_.exports.useCallback(()=>{E?.(!x),s(v)},[v,s,x,E]),A=_.exports.useCallback($=>{const W={ArrowDown:()=>{const te=y.nextEnabled(v);te?.node.focus()},ArrowUp:()=>{const te=y.prevEnabled(v);te?.node.focus()},Home:()=>{const te=y.firstEnabled();te?.node.focus()},End:()=>{const te=y.lastEnabled();te?.node.focus()}}[$.key];W&&($.preventDefault(),W($))},[y,v]),I=_.exports.useCallback(()=>{s(v)},[s,v]),N=_.exports.useCallback(function(K={},W=null){return{...K,type:"button",ref:Xn(m,u,W),id:p,disabled:!!t,"aria-expanded":!!x,"aria-controls":h,onClick:O1(K.onClick,C),onFocus:O1(K.onFocus,I),onKeyDown:O1(K.onKeyDown,A)}},[p,t,x,C,I,A,h,m]),L=_.exports.useCallback(function(K={},W=null){return{...K,ref:W,role:"region",id:h,"aria-labelledby":p,hidden:!x}},[p,x,h]);return{isOpen:x,isDisabled:t,isFocusable:n,onOpen:S,onClose:b,getButtonProps:N,getPanelProps:L,htmlProps:o}}function mq(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;$m({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function gq(e){$m({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function vq(e){$m({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. + `})}function yq(e){$m({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function hs(e){const{isOpen:t,isDisabled:n}=eS(),{reduceMotion:r}=tS(),o=id("chakra-accordion__icon",e.className),i=Vm(),s={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...i.icon};return w(To,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:s,...e,children:w("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}hs.displayName="AccordionIcon";var ms=de(function(t,n){const{children:r,className:o}=t,{htmlProps:i,...s}=hq(t),c={...Vm().container,overflowAnchor:"none"},f=_.exports.useMemo(()=>s,[s]);return ee.createElement(lq,{value:f},ee.createElement(ie.div,{ref:n,...i,className:id("chakra-accordion__item",o),__css:c},typeof r=="function"?r({isExpanded:!!s.isOpen,isDisabled:!!s.isDisabled}):r))});ms.displayName="AccordionItem";var gs=de(function(t,n){const{reduceMotion:r}=tS(),{getPanelProps:o,isOpen:i}=eS(),s=o(t,n),u=id("chakra-accordion__panel",t.className),c=Vm();r||delete s.hidden;const f=ee.createElement(ie.div,{...s,__css:c.panel,className:u});return r?f:w(xT,{in:i,children:f})});gs.displayName="AccordionPanel";var _T=de(function({children:t,reduceMotion:n,...r},o){const i=$r("Accordion",r),s=xt(r),{htmlProps:u,descendants:c,...f}=dq(s),p=_.exports.useMemo(()=>({...f,reduceMotion:!!n}),[f,n]);return ee.createElement(uq,{value:c},ee.createElement(pq,{value:p},ee.createElement(sq,{value:i},ee.createElement(ie.div,{ref:o,...u,className:id("chakra-accordion",r.className),__css:i.root},t))))});_T.displayName="Accordion";var bq=(...e)=>e.filter(Boolean).join(" "),xq=Qf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Wm=de((e,t)=>{const n=er("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:u,...c}=xt(e),f=bq("chakra-spinner",u),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${xq} ${i} linear infinite`,...n};return ee.createElement(ie.div,{ref:t,__css:p,className:f,...c},r&&ee.createElement(ie.span,{srOnly:!0},r))});Wm.displayName="Spinner";var jm=(...e)=>e.filter(Boolean).join(" ");function Sq(e){return w(To,{viewBox:"0 0 24 24",...e,children:w("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 wq(e){return w(To,{viewBox:"0 0 24 24",...e,children:w("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 Q_(e){return w(To,{viewBox:"0 0 24 24",...e,children:w("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[Cq,_q]=Jt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[kq,nS]=Jt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),kT={info:{icon:wq,colorScheme:"blue"},warning:{icon:Q_,colorScheme:"orange"},success:{icon:Sq,colorScheme:"green"},error:{icon:Q_,colorScheme:"red"},loading:{icon:Wm,colorScheme:"blue"}};function Eq(e){return kT[e].colorScheme}function Aq(e){return kT[e].icon}var ET=de(function(t,n){const{status:r="info",addRole:o=!0,...i}=xt(t),s=t.colorScheme??Eq(r),u=$r("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return ee.createElement(Cq,{value:{status:r}},ee.createElement(kq,{value:u},ee.createElement(ie.div,{role:o?"alert":void 0,ref:n,...i,className:jm("chakra-alert",t.className),__css:c})))});ET.displayName="Alert";var AT=de(function(t,n){const r=nS(),o={display:"inline",...r.description};return ee.createElement(ie.div,{ref:n,...t,className:jm("chakra-alert__desc",t.className),__css:o})});AT.displayName="AlertDescription";function PT(e){const{status:t}=_q(),n=Aq(t),r=nS(),o=t==="loading"?r.spinner:r.icon;return ee.createElement(ie.span,{display:"inherit",...e,className:jm("chakra-alert__icon",e.className),__css:o},e.children||w(n,{h:"100%",w:"100%"}))}PT.displayName="AlertIcon";var TT=de(function(t,n){const r=nS();return ee.createElement(ie.div,{ref:n,...t,className:jm("chakra-alert__title",t.className),__css:r.title})});TT.displayName="AlertTitle";function Pq(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Tq(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:u,ignoreFallback:c}=e,[f,p]=_.exports.useState("pending");_.exports.useEffect(()=>{p(n?"loading":"pending")},[n]);const h=_.exports.useRef(),m=_.exports.useCallback(()=>{if(!n)return;v();const y=new Image;y.src=n,s&&(y.crossOrigin=s),r&&(y.srcset=r),u&&(y.sizes=u),t&&(y.loading=t),y.onload=x=>{v(),p("loaded"),o?.(x)},y.onerror=x=>{v(),p("failed"),i?.(x)},h.current=y},[n,s,r,u,o,i,t]),v=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return Di(()=>{if(!c)return f==="loading"&&m(),()=>{v()}},[f,m,c]),c?"loaded":f}var Iq=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",k0=de(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return w("img",{width:r,height:o,ref:n,alt:i,...s})});k0.displayName="NativeImage";var If=de(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:s,align:u,fit:c,loading:f,ignoreFallback:p,crossOrigin:h,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:v,...y}=t,x=r!==void 0||o!==void 0,E=f!=null||p||!x,S=Tq({...t,ignoreFallback:E}),b=Iq(S,m),C={ref:n,objectFit:c,objectPosition:u,...E?y:Pq(y,["onError","onLoad"])};return b?o||ee.createElement(ie.img,{as:k0,className:"chakra-image__placeholder",src:r,...C}):ee.createElement(ie.img,{as:k0,src:i,srcSet:s,crossOrigin:h,loading:f,referrerPolicy:v,className:"chakra-image",...C})});If.displayName="Image";de((e,t)=>ee.createElement(ie.img,{ref:t,as:k0,className:"chakra-image",...e}));var Oq=Object.create,IT=Object.defineProperty,Rq=Object.getOwnPropertyDescriptor,OT=Object.getOwnPropertyNames,Mq=Object.getPrototypeOf,Nq=Object.prototype.hasOwnProperty,RT=(e,t)=>function(){return t||(0,e[OT(e)[0]])((t={exports:{}}).exports,t),t.exports},Lq=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of OT(t))!Nq.call(e,o)&&o!==n&&IT(e,o,{get:()=>t[o],enumerable:!(r=Rq(t,o))||r.enumerable});return e},Dq=(e,t,n)=>(n=e!=null?Oq(Mq(e)):{},Lq(t||!e||!e.__esModule?IT(n,"default",{value:e,enumerable:!0}):n,e)),Fq=RT({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function v(R){return R===null||typeof R!="object"?null:(R=m&&R[m]||R["@@iterator"],typeof R=="function"?R:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,E={};function S(R,H,se){this.props=R,this.context=H,this.refs=E,this.updater=se||y}S.prototype.isReactComponent={},S.prototype.setState=function(R,H){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,H,"setState")},S.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function b(){}b.prototype=S.prototype;function C(R,H,se){this.props=R,this.context=H,this.refs=E,this.updater=se||y}var A=C.prototype=new b;A.constructor=C,x(A,S.prototype),A.isPureReactComponent=!0;var I=Array.isArray,N=Object.prototype.hasOwnProperty,L={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function K(R,H,se){var le,he={},ge=null,Ee=null;if(H!=null)for(le in H.ref!==void 0&&(Ee=H.ref),H.key!==void 0&&(ge=""+H.key),H)N.call(H,le)&&!$.hasOwnProperty(le)&&(he[le]=H[le]);var fe=arguments.length-2;if(fe===1)he.children=se;else if(1(0,J_.isValidElement)(t))}/** + * @license React + * react.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *//** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Um=(...e)=>e.filter(Boolean).join(" "),ek=e=>e?"":void 0,[Bq,$q]=Jt({strict:!1,name:"ButtonGroupContext"});function T2(e){const{children:t,className:n,...r}=e,o=_.exports.isValidElement(t)?_.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Um("chakra-button__icon",n);return ee.createElement(ie.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i},o)}T2.displayName="ButtonIcon";function I2(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=w(Wm,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...u}=e,c=Um("chakra-button__spinner",i),f=n==="start"?"marginEnd":"marginStart",p=_.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,f,r]);return ee.createElement(ie.div,{className:c,...u,__css:p},o)}I2.displayName="ButtonSpinner";function Vq(e){const[t,n]=_.exports.useState(!e);return{ref:_.exports.useCallback(i=>{!i||n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}var ii=de((e,t)=>{const n=$q(),r=er("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:i,isActive:s,children:u,leftIcon:c,rightIcon:f,loadingText:p,iconSpacing:h="0.5rem",type:m,spinner:v,spinnerPlacement:y="start",className:x,as:E,...S}=xt(e),b=_.exports.useMemo(()=>{const N={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:N}}},[r,n]),{ref:C,type:A}=Vq(E),I={rightIcon:f,leftIcon:c,iconSpacing:h,children:u};return ee.createElement(ie.button,{disabled:o||i,ref:JV(t,C),as:E,type:m??A,"data-active":ek(s),"data-loading":ek(i),__css:b,className:Um("chakra-button",x),...S},i&&y==="start"&&w(I2,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:h,children:v}),i?p||ee.createElement(ie.span,{opacity:0},w(tk,{...I})):w(tk,{...I}),i&&y==="end"&&w(I2,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:h,children:v}))});ii.displayName="Button";function tk(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return ne(Bn,{children:[t&&w(T2,{marginEnd:o,children:t}),r,n&&w(T2,{marginStart:o,children:n})]})}var Wq=de(function(t,n){const{size:r,colorScheme:o,variant:i,className:s,spacing:u="0.5rem",isAttached:c,isDisabled:f,...p}=t,h=Um("chakra-button__group",s),m=_.exports.useMemo(()=>({size:r,colorScheme:o,variant:i,isDisabled:f}),[r,o,i,f]);let v={display:"inline-flex"};return c?v={...v,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:v={...v,"& > *:not(style) ~ *:not(style)":{marginStart:u}},ee.createElement(Bq,{value:m},ee.createElement(ie.div,{ref:n,role:"group",__css:v,className:h,"data-attached":c?"":void 0,...p}))});Wq.displayName="ButtonGroup";var cr=de((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,u=n||r,c=_.exports.isValidElement(u)?_.exports.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null;return w(ii,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:c})});cr.displayName="IconButton";var Eu=(...e)=>e.filter(Boolean).join(" "),Hp=e=>e?"":void 0,R1=e=>e?!0:void 0;function nk(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[jq,MT]=Jt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Uq,Au]=Jt({strict:!1,name:"FormControlContext"});function Hq(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,u=_.exports.useId(),c=t||`field-${u}`,f=`${c}-label`,p=`${c}-feedback`,h=`${c}-helptext`,[m,v]=_.exports.useState(!1),[y,x]=_.exports.useState(!1),[E,S]=_.exports.useState(!1),b=_.exports.useCallback((L={},$=null)=>({id:h,...L,ref:Xn($,K=>{!K||x(!0)})}),[h]),C=_.exports.useCallback((L={},$=null)=>({...L,ref:$,"data-focus":Hp(E),"data-disabled":Hp(o),"data-invalid":Hp(r),"data-readonly":Hp(i),id:L.id??f,htmlFor:L.htmlFor??c}),[c,o,E,r,i,f]),A=_.exports.useCallback((L={},$=null)=>({id:p,...L,ref:Xn($,K=>{!K||v(!0)}),"aria-live":"polite"}),[p]),I=_.exports.useCallback((L={},$=null)=>({...L,...s,ref:$,role:"group"}),[s]),N=_.exports.useCallback((L={},$=null)=>({...L,ref:$,role:"presentation","aria-hidden":!0,children:L.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!E,onFocus:()=>S(!0),onBlur:()=>S(!1),hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:y,setHasHelpText:x,id:c,labelId:f,feedbackId:p,helpTextId:h,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:A,getRootProps:I,getLabelProps:C,getRequiredIndicatorProps:N}}var Wa=de(function(t,n){const r=$r("Form",t),o=xt(t),{getRootProps:i,htmlProps:s,...u}=Hq(o),c=Eu("chakra-form-control",t.className);return ee.createElement(Uq,{value:u},ee.createElement(jq,{value:r},ee.createElement(ie.div,{...i({},n),className:c,__css:r.container})))});Wa.displayName="FormControl";var Gq=de(function(t,n){const r=Au(),o=MT(),i=Eu("chakra-form__helper-text",t.className);return ee.createElement(ie.div,{...r?.getHelpTextProps(t,n),__css:o.helperText,className:i})});Gq.displayName="FormHelperText";function oS(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=iS(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":R1(n),"aria-required":R1(o),"aria-readonly":R1(r)}}function iS(e){const t=Au(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:u,isReadOnly:c,isDisabled:f,onFocus:p,onBlur:h,...m}=e,v=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&v.push(t.feedbackId),t?.hasHelpText&&v.push(t.helpTextId),{...m,"aria-describedby":v.join(" ")||void 0,id:n??t?.id,isDisabled:r??f??t?.isDisabled,isReadOnly:o??c??t?.isReadOnly,isRequired:i??s??t?.isRequired,isInvalid:u??t?.isInvalid,onFocus:nk(t?.onFocus,p),onBlur:nk(t?.onBlur,h)}}var[qq,Kq]=Jt({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Yq=de((e,t)=>{const n=$r("FormError",e),r=xt(e),o=Au();return o?.isInvalid?ee.createElement(qq,{value:n},ee.createElement(ie.div,{...o?.getErrorMessageProps(r,t),className:Eu("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});Yq.displayName="FormErrorMessage";var Zq=de((e,t)=>{const n=Kq(),r=Au();if(!r?.isInvalid)return null;const o=Eu("chakra-form__error-icon",e.className);return w(To,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:w("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"})})});Zq.displayName="FormErrorIcon";var ja=de(function(t,n){const r=er("FormLabel",t),o=xt(t),{className:i,children:s,requiredIndicator:u=w(NT,{}),optionalIndicator:c=null,...f}=o,p=Au(),h=p?.getLabelProps(f,n)??{ref:n,...f};return ee.createElement(ie.label,{...h,className:Eu("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r}},s,p?.isRequired?u:c)});ja.displayName="FormLabel";var NT=de(function(t,n){const r=Au(),o=MT();if(!r?.isRequired)return null;const i=Eu("chakra-form__required-indicator",t.className);return ee.createElement(ie.span,{...r?.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});NT.displayName="RequiredIndicator";function E0(e,t){const n=_.exports.useRef(!1),r=_.exports.useRef(!1);_.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var aS={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Xq=ie("span",{baseStyle:aS});Xq.displayName="VisuallyHidden";var Qq=ie("input",{baseStyle:aS});Qq.displayName="VisuallyHiddenInput";var rk=!1,Hm=null,du=!1,O2=new Set,Jq=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function eK(e){return!(e.metaKey||!Jq&&e.altKey||e.ctrlKey)}function sS(e,t){O2.forEach(n=>n(e,t))}function ok(e){du=!0,eK(e)&&(Hm="keyboard",sS("keyboard",e))}function vl(e){Hm="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(du=!0,sS("pointer",e))}function tK(e){e.target===window||e.target===document||(du||(Hm="keyboard",sS("keyboard",e)),du=!1)}function nK(){du=!1}function ik(){return Hm!=="pointer"}function rK(){if(typeof window>"u"||rk)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){du=!0,e.apply(this,n)},document.addEventListener("keydown",ok,!0),document.addEventListener("keyup",ok,!0),window.addEventListener("focus",tK,!0),window.addEventListener("blur",nK,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",vl,!0),document.addEventListener("pointermove",vl,!0),document.addEventListener("pointerup",vl,!0)):(document.addEventListener("mousedown",vl,!0),document.addEventListener("mousemove",vl,!0),document.addEventListener("mouseup",vl,!0)),rk=!0}function oK(e){rK(),e(ik());const t=()=>e(ik());return O2.add(t),()=>{O2.delete(t)}}var[Hfe,iK]=Jt({name:"CheckboxGroupContext",strict:!1}),aK=(...e)=>e.filter(Boolean).join(" "),Hn=e=>e?"":void 0;function Yr(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function sK(...e){return function(n){e.forEach(r=>{r?.(n)})}}function lK(e){const t=Io;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var LT=lK(ie.svg);function uK(e){return w(LT,{width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:w("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function cK(e){return w(LT,{width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4},...e,children:w("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function fK({open:e,children:t}){return w(qi,{initial:!1,children:e&&ee.createElement(Io.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},t)})}function dK(e){const{isIndeterminate:t,isChecked:n,...r}=e;return w(fK,{open:n||t,children:w(t?cK:uK,{...r})})}function pK(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function DT(e={}){const t=iS(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:u,onFocus:c,"aria-describedby":f}=t,{defaultChecked:p,isChecked:h,isFocusable:m,onChange:v,isIndeterminate:y,name:x,value:E,tabIndex:S=void 0,"aria-label":b,"aria-labelledby":C,"aria-invalid":A,...I}=e,N=pK(I,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),L=Fn(v),$=Fn(u),K=Fn(c),[W,te]=_.exports.useState(!1),[we,_e]=_.exports.useState(!1),[xe,ue]=_.exports.useState(!1),[ve,Ae]=_.exports.useState(!1);_.exports.useEffect(()=>oK(te),[]);const j=_.exports.useRef(null),[Z,q]=_.exports.useState(!0),[R,H]=_.exports.useState(!!p),se=h!==void 0,le=se?h:R,he=_.exports.useCallback(ye=>{if(r||n){ye.preventDefault();return}se||H(le?ye.target.checked:y?!0:ye.target.checked),L?.(ye)},[r,n,le,se,y,L]);Di(()=>{j.current&&(j.current.indeterminate=Boolean(y))},[y]),E0(()=>{n&&_e(!1)},[n,_e]),Di(()=>{const ye=j.current;!ye?.form||(ye.form.onreset=()=>{H(!!p)})},[]);const ge=n&&!m,Ee=_.exports.useCallback(ye=>{ye.key===" "&&Ae(!0)},[Ae]),fe=_.exports.useCallback(ye=>{ye.key===" "&&Ae(!1)},[Ae]);Di(()=>{if(!j.current)return;j.current.checked!==le&&H(j.current.checked)},[j.current]);const Pe=_.exports.useCallback((ye={},Nt=null)=>{const en=at=>{we&&at.preventDefault(),Ae(!0)};return{...ye,ref:Nt,"data-active":Hn(ve),"data-hover":Hn(xe),"data-checked":Hn(le),"data-focus":Hn(we),"data-focus-visible":Hn(we&&W),"data-indeterminate":Hn(y),"data-disabled":Hn(n),"data-invalid":Hn(i),"data-readonly":Hn(r),"aria-hidden":!0,onMouseDown:Yr(ye.onMouseDown,en),onMouseUp:Yr(ye.onMouseUp,()=>Ae(!1)),onMouseEnter:Yr(ye.onMouseEnter,()=>ue(!0)),onMouseLeave:Yr(ye.onMouseLeave,()=>ue(!1))}},[ve,le,n,we,W,xe,y,i,r]),Le=_.exports.useCallback((ye={},Nt=null)=>({...N,...ye,ref:Xn(Nt,en=>{!en||q(en.tagName==="LABEL")}),onClick:Yr(ye.onClick,()=>{var en;Z||((en=j.current)==null||en.click(),requestAnimationFrame(()=>{var at;(at=j.current)==null||at.focus()}))}),"data-disabled":Hn(n),"data-checked":Hn(le),"data-invalid":Hn(i)}),[N,n,le,i,Z]),gt=_.exports.useCallback((ye={},Nt=null)=>({...ye,ref:Xn(j,Nt),type:"checkbox",name:x,value:E,id:s,tabIndex:S,onChange:Yr(ye.onChange,he),onBlur:Yr(ye.onBlur,$,()=>_e(!1)),onFocus:Yr(ye.onFocus,K,()=>_e(!0)),onKeyDown:Yr(ye.onKeyDown,Ee),onKeyUp:Yr(ye.onKeyUp,fe),required:o,checked:le,disabled:ge,readOnly:r,"aria-label":b,"aria-labelledby":C,"aria-invalid":A?Boolean(A):i,"aria-describedby":f,"aria-disabled":n,style:aS}),[x,E,s,he,$,K,Ee,fe,o,le,ge,r,b,C,A,i,f,n,S]),Mt=_.exports.useCallback((ye={},Nt=null)=>({...ye,ref:Nt,onMouseDown:Yr(ye.onMouseDown,ak),onTouchStart:Yr(ye.onTouchStart,ak),"data-disabled":Hn(n),"data-checked":Hn(le),"data-invalid":Hn(i)}),[le,n,i]);return{state:{isInvalid:i,isFocused:we,isChecked:le,isActive:ve,isHovered:xe,isIndeterminate:y,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Le,getCheckboxProps:Pe,getInputProps:gt,getLabelProps:Mt,htmlProps:N}}function ak(e){e.preventDefault(),e.stopPropagation()}var hK=ie("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),mK=ie("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),gK=de(function(t,n){const r=iK(),o={...r,...t},i=$r("Checkbox",o),s=xt(t),{spacing:u="0.5rem",className:c,children:f,iconColor:p,iconSize:h,icon:m=w(dK,{}),isChecked:v,isDisabled:y=r?.isDisabled,onChange:x,inputProps:E,...S}=s;let b=v;r?.value&&s.value&&(b=r.value.includes(s.value));let C=x;r?.onChange&&s.value&&(C=sK(r.onChange,x));const{state:A,getInputProps:I,getCheckboxProps:N,getLabelProps:L,getRootProps:$}=DT({...S,isDisabled:y,isChecked:b,onChange:C}),K=_.exports.useMemo(()=>({opacity:A.isChecked||A.isIndeterminate?1:0,transform:A.isChecked||A.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:h,color:p,...i.icon}),[p,h,A.isChecked,A.isIndeterminate,i.icon]),W=_.exports.cloneElement(m,{__css:K,isIndeterminate:A.isIndeterminate,isChecked:A.isChecked});return ne(mK,{__css:i.container,className:aK("chakra-checkbox",c),...$(),children:[w("input",{className:"chakra-checkbox__input",...I(E,n)}),w(hK,{__css:i.control,className:"chakra-checkbox__control",...N(),children:W}),f&&ee.createElement(ie.span,{className:"chakra-checkbox__label",...L(),__css:{marginStart:u,...i.label}},f)]})});gK.displayName="Checkbox";function vK(e){return w(To,{focusable:"false","aria-hidden":!0,...e,children:w("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 lS=de(function(t,n){const r=er("CloseButton",t),{children:o,isDisabled:i,__css:s,...u}=xt(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return ee.createElement(ie.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...c,...r,...s},...u},o||w(vK,{width:"1em",height:"1em"}))});lS.displayName="CloseButton";function yK(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function FT(e,t){let n=yK(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function sk(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function bK(e,t,n){return e==null?e:(nr==null?"":M1(r,i,n)??""),m=typeof o<"u",v=m?o:p,y=zT(da(v),i),x=n??y,E=_.exports.useCallback(W=>{W!==v&&(m||h(W.toString()),f?.(W.toString(),da(W)))},[f,m,v]),S=_.exports.useCallback(W=>{let te=W;return c&&(te=bK(te,s,u)),FT(te,x)},[x,c,u,s]),b=_.exports.useCallback((W=i)=>{let te;v===""?te=da(W):te=da(v)+W,te=S(te),E(te)},[S,i,E,v]),C=_.exports.useCallback((W=i)=>{let te;v===""?te=da(-W):te=da(v)-W,te=S(te),E(te)},[S,i,E,v]),A=_.exports.useCallback(()=>{let W;r==null?W="":W=M1(r,i,n)??s,E(W)},[r,n,i,E,s]),I=_.exports.useCallback(W=>{const te=M1(W,i,x)??s;E(te)},[x,i,E,s]),N=da(v);return{isOutOfRange:N>u||Nw(Pm,{styles:BT}),wK=()=>w(Pm,{styles:` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + font-feature-settings: 'kern'; + } + + *, + *::before, + *::after { + border-width: 0; + border-style: solid; + box-sizing: border-box; + } + + main { + display: block; + } + + hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + pre, + code, + kbd, + samp { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + b, + strong { + font-weight: bold; + } + + small { + font-size: 80%; + } + + sub, + sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + sub { + bottom: -0.25em; + } + + sup { + top: -0.5em; + } + + img { + border-style: none; + } + + button, + input, + optgroup, + select, + textarea { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + button, + input { + overflow: visible; + } + + button, + select { + text-transform: none; + } + + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; + } + + fieldset { + padding: 0.35em 0.75em 0.625em; + } + + legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + progress { + vertical-align: baseline; + } + + textarea { + overflow: auto; + } + + [type="checkbox"], + [type="radio"] { + box-sizing: border-box; + padding: 0; + } + + [type="number"]::-webkit-inner-spin-button, + [type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + input[type="number"] { + -moz-appearance: textfield; + } + + [type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + [type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + details { + display: block; + } + + summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + body, + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre { + margin: 0; + } + + button { + background: transparent; + padding: 0; + } + + fieldset { + margin: 0; + padding: 0; + } + + ol, + ul { + margin: 0; + padding: 0; + } + + textarea { + resize: vertical; + } + + button, + [role="button"] { + cursor: pointer; + } + + button::-moz-focus-inner { + border: 0 !important; + } + + table { + border-collapse: collapse; + } + + h1, + h2, + h3, + h4, + h5, + h6 { + font-size: inherit; + font-weight: inherit; + } + + button, + input, + optgroup, + select, + textarea { + padding: 0; + line-height: inherit; + color: inherit; + } + + img, + svg, + video, + canvas, + audio, + iframe, + embed, + object { + display: block; + } + + img, + video { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) { + outline: none; + box-shadow: none; + } + + select::-ms-expand { + display: none; + } + + ${BT} + `});function R2(e,t,n,r){const o=Fn(n);return _.exports.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i?.removeEventListener(t,o,r)}}var CK=_V?_.exports.useLayoutEffect:_.exports.useEffect;function lk(e,t=[]){const n=_.exports.useRef(e);return CK(()=>{n.current=e}),_.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function _K(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function kK(e,t){const n=_.exports.useId();return _.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function M2(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=lk(n),s=lk(t),[u,c]=_.exports.useState(e.defaultIsOpen||!1),[f,p]=_K(r,u),h=kK(o,"disclosure"),m=_.exports.useCallback(()=>{f||c(!1),s?.()},[f,s]),v=_.exports.useCallback(()=>{f||c(!0),i?.()},[f,i]),y=_.exports.useCallback(()=>{(p?m:v)()},[p,v,m]);return{isOpen:!!p,onOpen:v,onClose:m,onToggle:y,isControlled:f,getButtonProps:(x={})=>({...x,"aria-expanded":p,"aria-controls":h,onClick:kV(x.onClick,y)}),getDisclosureProps:(x={})=>({...x,hidden:!p,id:h})}}function uS(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var cS=de(function(t,n){const{htmlSize:r,...o}=t,i=$r("Input",o),s=xt(o),u=oS(s),c=Gt("chakra-input",t.className);return ee.createElement(ie.input,{size:r,...u,__css:i.field,ref:n,className:c})});cS.displayName="Input";cS.id="Input";var[EK,$T]=Jt({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),AK=de(function(t,n){const r=$r("Input",t),{children:o,className:i,...s}=xt(t),u=Gt("chakra-input__group",i),c={},f=rS(o),p=r.field;f.forEach(m=>{!r||(p&&m.type.id==="InputLeftElement"&&(c.paddingStart=p.height??p.h),p&&m.type.id==="InputRightElement"&&(c.paddingEnd=p.height??p.h),m.type.id==="InputRightAddon"&&(c.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const h=f.map(m=>{var v,y;const x=uS({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((y=m.props)==null?void 0:y.variant)||t.variant});return m.type.id!=="Input"?_.exports.cloneElement(m,x):_.exports.cloneElement(m,Object.assign(x,c,m.props))});return ee.createElement(ie.div,{className:u,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...s},w(EK,{value:r,children:h}))});AK.displayName="InputGroup";var PK={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},TK=ie("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),fS=de(function(t,n){const{placement:r="left",...o}=t,i=PK[r]??{},s=$T();return w(TK,{ref:n,...o,__css:{...s.addon,...i}})});fS.displayName="InputAddon";var VT=de(function(t,n){return w(fS,{ref:n,placement:"left",...t,className:Gt("chakra-input__left-addon",t.className)})});VT.displayName="InputLeftAddon";VT.id="InputLeftAddon";var WT=de(function(t,n){return w(fS,{ref:n,placement:"right",...t,className:Gt("chakra-input__right-addon",t.className)})});WT.displayName="InputRightAddon";WT.id="InputRightAddon";var IK=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Gm=de(function(t,n){const{placement:r="left",...o}=t,i=$T(),s=i.field,c={[r==="left"?"insetStart":"insetEnd"]:"0",width:s?.height??s?.h,height:s?.height??s?.h,fontSize:s?.fontSize,...i.element};return w(IK,{ref:n,__css:c,...o})});Gm.id="InputElement";Gm.displayName="InputElement";var jT=de(function(t,n){const{className:r,...o}=t,i=Gt("chakra-input__left-element",r);return w(Gm,{ref:n,placement:"left",className:i,...o})});jT.id="InputLeftElement";jT.displayName="InputLeftElement";var UT=de(function(t,n){const{className:r,...o}=t,i=Gt("chakra-input__right-element",r);return w(Gm,{ref:n,placement:"right",className:i,...o})});UT.id="InputRightElement";UT.displayName="InputRightElement";function OK(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Ua(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):OK(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var RK=de(function(e,t){const{ratio:n=4/3,children:r,className:o,...i}=e,s=_.exports.Children.only(r),u=Gt("chakra-aspect-ratio",o);return ee.createElement(ie.div,{ref:t,position:"relative",className:u,_before:{height:0,content:'""',display:"block",paddingBottom:Ua(n,c=>`${1/c*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...i},s)});RK.displayName="AspectRatio";var MK=de(function(t,n){const r=er("Badge",t),{className:o,...i}=xt(t);return ee.createElement(ie.span,{ref:n,className:Gt("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});MK.displayName="Badge";var Fi=ie("div");Fi.displayName="Box";var HT=de(function(t,n){const{size:r,centerContent:o=!0,...i}=t;return w(Fi,{ref:n,boxSize:r,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});HT.displayName="Square";var NK=de(function(t,n){const{size:r,...o}=t;return w(HT,{size:r,ref:n,borderRadius:"9999px",...o})});NK.displayName="Circle";var Of=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Of.displayName="Center";var LK={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};de(function(t,n){const{axis:r="both",...o}=t;return ee.createElement(ie.div,{ref:n,__css:LK[r],...o,position:"absolute"})});var DK=de(function(t,n){const r=er("Code",t),{className:o,...i}=xt(t);return ee.createElement(ie.code,{ref:n,className:Gt("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});DK.displayName="Code";var FK=de(function(t,n){const{className:r,centerContent:o,...i}=xt(t),s=er("Container",t);return ee.createElement(ie.div,{ref:n,className:Gt("chakra-container",r),...i,__css:{...s,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});FK.displayName="Container";var zK=de(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:u,borderStyle:c,borderColor:f,...p}=er("Divider",t),{className:h,orientation:m="horizontal",__css:v,...y}=xt(t),x={vertical:{borderLeftWidth:r||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||u||"1px",width:"100%"}};return ee.createElement(ie.hr,{ref:n,"aria-orientation":m,...y,__css:{...p,border:"0",borderColor:f,borderStyle:c,...x[m],...v},className:Gt("chakra-divider",h)})});zK.displayName="Divider";var We=de(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:u,grow:c,shrink:f,...p}=t,h={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:u,flexGrow:c,flexShrink:f};return ee.createElement(ie.div,{ref:n,__css:h,...p})});We.displayName="Flex";var dS=de(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:u,row:c,autoFlow:f,autoRows:p,templateRows:h,autoColumns:m,templateColumns:v,...y}=t,x={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:m,gridColumn:u,gridRow:c,gridAutoFlow:f,gridAutoRows:p,gridTemplateRows:h,gridTemplateColumns:v};return ee.createElement(ie.div,{ref:n,__css:x,...y})});dS.displayName="Grid";function uk(e){return Ua(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var pa=de(function(t,n){const{area:r,colSpan:o,colStart:i,colEnd:s,rowEnd:u,rowSpan:c,rowStart:f,...p}=t,h=uS({gridArea:r,gridColumn:uk(o),gridRow:uk(c),gridColumnStart:i,gridColumnEnd:s,gridRowStart:f,gridRowEnd:u});return ee.createElement(ie.div,{ref:n,__css:h,...p})});pa.displayName="GridItem";var pS=de(function(t,n){const r=er("Heading",t),{className:o,...i}=xt(t);return ee.createElement(ie.h2,{ref:n,className:Gt("chakra-heading",t.className),...i,__css:r})});pS.displayName="Heading";de(function(t,n){const r=er("Mark",t),o=xt(t);return w(Fi,{ref:n,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...r}})});var BK=de(function(t,n){const r=er("Kbd",t),{className:o,...i}=xt(t);return ee.createElement(ie.kbd,{ref:n,className:Gt("chakra-kbd",o),...i,__css:{fontFamily:"mono",...r}})});BK.displayName="Kbd";var Rf=de(function(t,n){const r=er("Link",t),{className:o,isExternal:i,...s}=xt(t);return ee.createElement(ie.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:Gt("chakra-link",o),...s,__css:r})});Rf.displayName="Link";de(function(t,n){const{isExternal:r,target:o,rel:i,className:s,...u}=t;return ee.createElement(ie.a,{...u,ref:n,className:Gt("chakra-linkbox__overlay",s),rel:r?"noopener noreferrer":i,target:r?"_blank":o,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});de(function(t,n){const{className:r,...o}=t;return ee.createElement(ie.div,{ref:n,position:"relative",...o,className:Gt("chakra-linkbox",r),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[$K,GT]=Jt({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),hS=de(function(t,n){const r=$r("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:u,...c}=xt(t),f=rS(o),h=u?{["& > *:not(style) ~ *:not(style)"]:{mt:u}}:{};return ee.createElement($K,{value:r},ee.createElement(ie.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...h},...c},f))});hS.displayName="List";var VK=de((e,t)=>{const{as:n,...r}=e;return w(hS,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});VK.displayName="OrderedList";var WK=de(function(t,n){const{as:r,...o}=t;return w(hS,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});WK.displayName="UnorderedList";var jK=de(function(t,n){const r=GT();return ee.createElement(ie.li,{ref:n,...t,__css:r.item})});jK.displayName="ListItem";var UK=de(function(t,n){const r=GT();return w(To,{ref:n,role:"presentation",...t,__css:r.icon})});UK.displayName="ListIcon";var HK=de(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:u,...c}=t,f=Px(),p=u?qK(u,f):KK(r);return w(dS,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:p,...c})});HK.displayName="SimpleGrid";function GK(e){return typeof e=="number"?`${e}px`:e}function qK(e,t){return Ua(e,n=>{const r=WV("sizes",n,GK(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function KK(e){return Ua(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var qT=ie("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});qT.displayName="Spacer";var N2="& > *:not(style) ~ *:not(style)";function YK(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[N2]:Ua(n,o=>r[o])}}function ZK(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Ua(n,o=>r[o])}}var KT=e=>ee.createElement(ie.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});KT.displayName="StackItem";var mS=de((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:u,children:c,divider:f,className:p,shouldWrapChildren:h,...m}=e,v=n?"row":r??"column",y=_.exports.useMemo(()=>YK({direction:v,spacing:s}),[v,s]),x=_.exports.useMemo(()=>ZK({spacing:s,direction:v}),[s,v]),E=!!f,S=!h&&!E,b=rS(c),C=S?b:b.map((I,N)=>{const L=typeof I.key<"u"?I.key:N,$=N+1===b.length,W=h?w(KT,{children:I},L):I;if(!E)return W;const te=_.exports.cloneElement(f,{__css:x}),we=$?null:te;return ne(_.exports.Fragment,{children:[W,we]},L)}),A=Gt("chakra-stack",p);return ee.createElement(ie.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:y.flexDirection,flexWrap:u,className:A,__css:E?{}:{[N2]:y[N2]},...m},C)});mS.displayName="Stack";var A0=de((e,t)=>w(mS,{align:"center",...e,direction:"row",ref:t}));A0.displayName="HStack";var XK=de((e,t)=>w(mS,{align:"center",...e,direction:"column",ref:t}));XK.displayName="VStack";var Ut=de(function(t,n){const r=er("Text",t),{className:o,align:i,decoration:s,casing:u,...c}=xt(t),f=uS({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return ee.createElement(ie.p,{ref:n,className:Gt("chakra-text",t.className),...f,...c,__css:r})});Ut.displayName="Text";function ck(e){return typeof e=="number"?`${e}px`:e}var QK=de(function(t,n){const{spacing:r="0.5rem",spacingX:o,spacingY:i,children:s,justify:u,direction:c,align:f,className:p,shouldWrapChildren:h,...m}=t,v=_.exports.useMemo(()=>{const{spacingX:x=r,spacingY:E=r}={spacingX:o,spacingY:i};return{"--chakra-wrap-x-spacing":S=>Ua(x,b=>ck(Xy("space",b)(S))),"--chakra-wrap-y-spacing":S=>Ua(E,b=>ck(Xy("space",b)(S))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:u,alignItems:f,flexDirection:c,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[r,o,i,u,f,c]),y=h?_.exports.Children.map(s,(x,E)=>w(YT,{children:x},E)):s;return ee.createElement(ie.div,{ref:n,className:Gt("chakra-wrap",p),overflow:"hidden",...m},ee.createElement(ie.ul,{className:"chakra-wrap__list",__css:v},y))});QK.displayName="Wrap";var YT=de(function(t,n){const{className:r,...o}=t;return ee.createElement(ie.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:Gt("chakra-wrap__listitem",r),...o})});YT.displayName="WrapItem";var JK={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}}},ZT=JK,yl=()=>{},eY={document:ZT,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:yl,removeEventListener:yl,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:yl,removeListener:yl}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:yl,setInterval:()=>0,clearInterval:yl},tY=eY,nY={window:tY,document:ZT},XT=typeof window<"u"?{window,document}:nY,QT=_.exports.createContext(XT);QT.displayName="EnvironmentContext";function JT(e){const{children:t,environment:n}=e,[r,o]=_.exports.useState(null),[i,s]=_.exports.useState(!1);_.exports.useEffect(()=>s(!0),[]);const u=_.exports.useMemo(()=>{if(n)return n;const c=r?.ownerDocument,f=r?.ownerDocument.defaultView;return c?{document:c,window:f}:XT},[r,n]);return ne(QT.Provider,{value:u,children:[t,!n&&i&&w("span",{id:"__chakra_env",hidden:!0,ref:c=>{_.exports.startTransition(()=>{c&&o(c)})}})]})}JT.displayName="EnvironmentProvider";function rY(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function oY(e){if(!rY(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var iY=e=>e.hasAttribute("tabindex");function aY(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function eI(e){return e.parentElement&&eI(e.parentElement)?!0:e.hidden}function sY(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function lY(e){if(!oY(e)||eI(e)||aY(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():sY(e)?!0:iY(e)}var uY=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],cY=uY.join(),fY=e=>e.offsetWidth>0&&e.offsetHeight>0;function dY(e){const t=Array.from(e.querySelectorAll(cY));return t.unshift(e),t.filter(n=>lY(n)&&fY(n))}var hr="top",oo="bottom",io="right",mr="left",gS="auto",ad=[hr,oo,io,mr],pu="start",Mf="end",pY="clippingParents",tI="viewport",gc="popper",hY="reference",fk=ad.reduce(function(e,t){return e.concat([t+"-"+pu,t+"-"+Mf])},[]),nI=[].concat(ad,[gS]).reduce(function(e,t){return e.concat([t,t+"-"+pu,t+"-"+Mf])},[]),mY="beforeRead",gY="read",vY="afterRead",yY="beforeMain",bY="main",xY="afterMain",SY="beforeWrite",wY="write",CY="afterWrite",_Y=[mY,gY,vY,yY,bY,xY,SY,wY,CY];function ai(e){return e?(e.nodeName||"").toLowerCase():null}function ao(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zs(e){var t=ao(e).Element;return e instanceof t||e instanceof Element}function to(e){var t=ao(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vS(e){if(typeof ShadowRoot>"u")return!1;var t=ao(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kY(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!to(i)||!ai(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var u=o[s];u===!1?i.removeAttribute(s):i.setAttribute(s,u===!0?"":u)}))})}function EY(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=s.reduce(function(c,f){return c[f]="",c},{});!to(o)||!ai(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const AY={name:"applyStyles",enabled:!0,phase:"write",fn:kY,effect:EY,requires:["computeStyles"]};function ei(e){return e.split("-")[0]}var Is=Math.max,P0=Math.min,hu=Math.round;function L2(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function rI(){return!/^((?!chrome|android).)*safari/i.test(L2())}function mu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&to(e)&&(o=e.offsetWidth>0&&hu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&hu(r.height)/e.offsetHeight||1);var s=zs(e)?ao(e):window,u=s.visualViewport,c=!rI()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function yS(e){var t=mu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function oI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ji(e){return ao(e).getComputedStyle(e)}function PY(e){return["table","td","th"].indexOf(ai(e))>=0}function Qa(e){return((zs(e)?e.ownerDocument:e.document)||window.document).documentElement}function qm(e){return ai(e)==="html"?e:e.assignedSlot||e.parentNode||(vS(e)?e.host:null)||Qa(e)}function dk(e){return!to(e)||ji(e).position==="fixed"?null:e.offsetParent}function TY(e){var t=/firefox/i.test(L2()),n=/Trident/i.test(L2());if(n&&to(e)){var r=ji(e);if(r.position==="fixed")return null}var o=qm(e);for(vS(o)&&(o=o.host);to(o)&&["html","body"].indexOf(ai(o))<0;){var i=ji(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function sd(e){for(var t=ao(e),n=dk(e);n&&PY(n)&&ji(n).position==="static";)n=dk(n);return n&&(ai(n)==="html"||ai(n)==="body"&&ji(n).position==="static")?t:n||TY(e)||t}function bS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gc(e,t,n){return Is(e,P0(t,n))}function IY(e,t,n){var r=Gc(e,t,n);return r>n?n:r}function iI(){return{top:0,right:0,bottom:0,left:0}}function aI(e){return Object.assign({},iI(),e)}function sI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var OY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,aI(typeof t!="number"?t:sI(t,ad))};function RY(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,u=ei(n.placement),c=bS(u),f=[mr,io].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!s)){var h=OY(o.padding,n),m=yS(i),v=c==="y"?hr:mr,y=c==="y"?oo:io,x=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],E=s[c]-n.rects.reference[c],S=sd(i),b=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,C=x/2-E/2,A=h[v],I=b-m[p]-h[y],N=b/2-m[p]/2+C,L=Gc(A,N,I),$=c;n.modifiersData[r]=(t={},t[$]=L,t.centerOffset=L-N,t)}}function MY(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!oI(t.elements.popper,o)||(t.elements.arrow=o))}const NY={name:"arrow",enabled:!0,phase:"main",fn:RY,effect:MY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gu(e){return e.split("-")[1]}var LY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:hu(t*o)/o||0,y:hu(n*o)/o||0}}function pk(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,y=s.y,x=y===void 0?0:y,E=typeof p=="function"?p({x:v,y:x}):{x:v,y:x};v=E.x,x=E.y;var S=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),C=mr,A=hr,I=window;if(f){var N=sd(n),L="clientHeight",$="clientWidth";if(N===ao(n)&&(N=Qa(n),ji(N).position!=="static"&&u==="absolute"&&(L="scrollHeight",$="scrollWidth")),N=N,o===hr||(o===mr||o===io)&&i===Mf){A=oo;var K=h&&N===I&&I.visualViewport?I.visualViewport.height:N[L];x-=K-r.height,x*=c?1:-1}if(o===mr||(o===hr||o===oo)&&i===Mf){C=io;var W=h&&N===I&&I.visualViewport?I.visualViewport.width:N[$];v-=W-r.width,v*=c?1:-1}}var te=Object.assign({position:u},f&&LY),we=p===!0?DY({x:v,y:x}):{x:v,y:x};if(v=we.x,x=we.y,c){var _e;return Object.assign({},te,(_e={},_e[A]=b?"0":"",_e[C]=S?"0":"",_e.transform=(I.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",_e))}return Object.assign({},te,(t={},t[A]=b?x+"px":"",t[C]=S?v+"px":"",t.transform="",t))}function FY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:ei(t.placement),variation:gu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,pk(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,pk(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const zY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FY,data:{}};var Gp={passive:!0};function BY(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,u=s===void 0?!0:s,c=ao(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Gp)}),u&&c.addEventListener("resize",n.update,Gp),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Gp)}),u&&c.removeEventListener("resize",n.update,Gp)}}const $Y={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:BY,data:{}};var VY={left:"right",right:"left",bottom:"top",top:"bottom"};function Eh(e){return e.replace(/left|right|bottom|top/g,function(t){return VY[t]})}var WY={start:"end",end:"start"};function hk(e){return e.replace(/start|end/g,function(t){return WY[t]})}function xS(e){var t=ao(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function SS(e){return mu(Qa(e)).left+xS(e).scrollLeft}function jY(e,t){var n=ao(e),r=Qa(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,u=0,c=0;if(o){i=o.width,s=o.height;var f=rI();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:u+SS(e),y:c}}function UY(e){var t,n=Qa(e),r=xS(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Is(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Is(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+SS(e),c=-r.scrollTop;return ji(o||n).direction==="rtl"&&(u+=Is(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:u,y:c}}function wS(e){var t=ji(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function lI(e){return["html","body","#document"].indexOf(ai(e))>=0?e.ownerDocument.body:to(e)&&wS(e)?e:lI(qm(e))}function qc(e,t){var n;t===void 0&&(t=[]);var r=lI(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=ao(r),s=o?[i].concat(i.visualViewport||[],wS(r)?r:[]):r,u=t.concat(s);return o?u:u.concat(qc(qm(s)))}function D2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function HY(e,t){var n=mu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function mk(e,t,n){return t===tI?D2(jY(e,n)):zs(t)?HY(t,n):D2(UY(Qa(e)))}function GY(e){var t=qc(qm(e)),n=["absolute","fixed"].indexOf(ji(e).position)>=0,r=n&&to(e)?sd(e):e;return zs(r)?t.filter(function(o){return zs(o)&&oI(o,r)&&ai(o)!=="body"}):[]}function qY(e,t,n,r){var o=t==="clippingParents"?GY(e):[].concat(t),i=[].concat(o,[n]),s=i[0],u=i.reduce(function(c,f){var p=mk(e,f,r);return c.top=Is(p.top,c.top),c.right=P0(p.right,c.right),c.bottom=P0(p.bottom,c.bottom),c.left=Is(p.left,c.left),c},mk(e,s,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function uI(e){var t=e.reference,n=e.element,r=e.placement,o=r?ei(r):null,i=r?gu(r):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case hr:c={x:s,y:t.y-n.height};break;case oo:c={x:s,y:t.y+t.height};break;case io:c={x:t.x+t.width,y:u};break;case mr:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?bS(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case pu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Mf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Nf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,u=n.boundary,c=u===void 0?pY:u,f=n.rootBoundary,p=f===void 0?tI:f,h=n.elementContext,m=h===void 0?gc:h,v=n.altBoundary,y=v===void 0?!1:v,x=n.padding,E=x===void 0?0:x,S=aI(typeof E!="number"?E:sI(E,ad)),b=m===gc?hY:gc,C=e.rects.popper,A=e.elements[y?b:m],I=qY(zs(A)?A:A.contextElement||Qa(e.elements.popper),c,p,s),N=mu(e.elements.reference),L=uI({reference:N,element:C,strategy:"absolute",placement:o}),$=D2(Object.assign({},C,L)),K=m===gc?$:N,W={top:I.top-K.top+S.top,bottom:K.bottom-I.bottom+S.bottom,left:I.left-K.left+S.left,right:K.right-I.right+S.right},te=e.modifiersData.offset;if(m===gc&&te){var we=te[o];Object.keys(W).forEach(function(_e){var xe=[io,oo].indexOf(_e)>=0?1:-1,ue=[hr,oo].indexOf(_e)>=0?"y":"x";W[_e]+=we[ue]*xe})}return W}function KY(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?nI:c,p=gu(r),h=p?u?fk:fk.filter(function(y){return gu(y)===p}):ad,m=h.filter(function(y){return f.indexOf(y)>=0});m.length===0&&(m=h);var v=m.reduce(function(y,x){return y[x]=Nf(e,{placement:x,boundary:o,rootBoundary:i,padding:s})[ei(x)],y},{});return Object.keys(v).sort(function(y,x){return v[y]-v[x]})}function YY(e){if(ei(e)===gS)return[];var t=Eh(e);return[hk(e),t,hk(t)]}function ZY(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,x=n.allowedAutoPlacements,E=t.options.placement,S=ei(E),b=S===E,C=c||(b||!y?[Eh(E)]:YY(E)),A=[E].concat(C).reduce(function(le,he){return le.concat(ei(he)===gS?KY(t,{placement:he,boundary:p,rootBoundary:h,padding:f,flipVariations:y,allowedAutoPlacements:x}):he)},[]),I=t.rects.reference,N=t.rects.popper,L=new Map,$=!0,K=A[0],W=0;W=0,ue=xe?"width":"height",ve=Nf(t,{placement:te,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),Ae=xe?_e?io:mr:_e?oo:hr;I[ue]>N[ue]&&(Ae=Eh(Ae));var j=Eh(Ae),Z=[];if(i&&Z.push(ve[we]<=0),u&&Z.push(ve[Ae]<=0,ve[j]<=0),Z.every(function(le){return le})){K=te,$=!1;break}L.set(te,Z)}if($)for(var q=y?3:1,R=function(he){var ge=A.find(function(Ee){var fe=L.get(Ee);if(fe)return fe.slice(0,he).every(function(Pe){return Pe})});if(ge)return K=ge,"break"},H=q;H>0;H--){var se=R(H);if(se==="break")break}t.placement!==K&&(t.modifiersData[r]._skip=!0,t.placement=K,t.reset=!0)}}const XY={name:"flip",enabled:!0,phase:"main",fn:ZY,requiresIfExists:["offset"],data:{_skip:!1}};function gk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function vk(e){return[hr,io,oo,mr].some(function(t){return e[t]>=0})}function QY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Nf(t,{elementContext:"reference"}),u=Nf(t,{altBoundary:!0}),c=gk(s,r),f=gk(u,o,i),p=vk(c),h=vk(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const JY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QY};function eZ(e,t,n){var r=ei(e),o=[mr,hr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],u=i[1];return s=s||0,u=(u||0)*o,[mr,io].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function tZ(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=nI.reduce(function(p,h){return p[h]=eZ(h,t.rects,i),p},{}),u=s[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const nZ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tZ};function rZ(e){var t=e.state,n=e.name;t.modifiersData[n]=uI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oZ={name:"popperOffsets",enabled:!0,phase:"read",fn:rZ,data:{}};function iZ(e){return e==="x"?"y":"x"}function aZ(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,y=n.tetherOffset,x=y===void 0?0:y,E=Nf(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),S=ei(t.placement),b=gu(t.placement),C=!b,A=bS(S),I=iZ(A),N=t.modifiersData.popperOffsets,L=t.rects.reference,$=t.rects.popper,K=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,W=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),te=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,we={x:0,y:0};if(!!N){if(i){var _e,xe=A==="y"?hr:mr,ue=A==="y"?oo:io,ve=A==="y"?"height":"width",Ae=N[A],j=Ae+E[xe],Z=Ae-E[ue],q=v?-$[ve]/2:0,R=b===pu?L[ve]:$[ve],H=b===pu?-$[ve]:-L[ve],se=t.elements.arrow,le=v&&se?yS(se):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:iI(),ge=he[xe],Ee=he[ue],fe=Gc(0,L[ve],le[ve]),Pe=C?L[ve]/2-q-fe-ge-W.mainAxis:R-fe-ge-W.mainAxis,Le=C?-L[ve]/2+q+fe+Ee+W.mainAxis:H+fe+Ee+W.mainAxis,gt=t.elements.arrow&&sd(t.elements.arrow),Mt=gt?A==="y"?gt.clientTop||0:gt.clientLeft||0:0,Pn=(_e=te?.[A])!=null?_e:0,ye=Ae+Pe-Pn-Mt,Nt=Ae+Le-Pn,en=Gc(v?P0(j,ye):j,Ae,v?Is(Z,Nt):Z);N[A]=en,we[A]=en-Ae}if(u){var at,br=A==="x"?hr:mr,xr=A==="x"?oo:io,St=N[I],kt=I==="y"?"height":"width",tn=St+E[br],$t=St-E[xr],ce=[hr,mr].indexOf(S)!==-1,Ce=(at=te?.[I])!=null?at:0,st=ce?tn:St-L[kt]-$[kt]-Ce+W.altAxis,rt=ce?St+L[kt]+$[kt]-Ce-W.altAxis:$t,re=v&&ce?IY(st,St,rt):Gc(v?st:tn,St,v?rt:$t);N[I]=re,we[I]=re-St}t.modifiersData[r]=we}}const sZ={name:"preventOverflow",enabled:!0,phase:"main",fn:aZ,requiresIfExists:["offset"]};function lZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uZ(e){return e===ao(e)||!to(e)?xS(e):lZ(e)}function cZ(e){var t=e.getBoundingClientRect(),n=hu(t.width)/e.offsetWidth||1,r=hu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function fZ(e,t,n){n===void 0&&(n=!1);var r=to(t),o=to(t)&&cZ(t),i=Qa(t),s=mu(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ai(t)!=="body"||wS(i))&&(u=uZ(t)),to(t)?(c=mu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=SS(i))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function dZ(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function pZ(e){var t=dZ(e);return _Y.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function hZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mZ(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var yk={placement:"bottom",modifiers:[],strategy:"absolute"};function bk(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Cn={arrowShadowColor:bl("--popper-arrow-shadow-color"),arrowSize:bl("--popper-arrow-size","8px"),arrowSizeHalf:bl("--popper-arrow-size-half"),arrowBg:bl("--popper-arrow-bg"),transformOrigin:bl("--popper-transform-origin"),arrowOffset:bl("--popper-arrow-offset")};function bZ(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var xZ={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},SZ=e=>xZ[e],xk={scroll:!0,resize:!0};function wZ(e){let t;return typeof e=="object"?t={enabled:!0,options:{...xk,...e}}:t={enabled:e,options:xk},t}var CZ={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},_Z={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Sk(e)},effect:({state:e})=>()=>{Sk(e)}},Sk=e=>{e.elements.popper.style.setProperty(Cn.transformOrigin.var,SZ(e.placement))},kZ={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{EZ(e)}},EZ=e=>{var t;if(!e.placement)return;const n=AZ(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:Cn.arrowSize.varRef,height:Cn.arrowSize.varRef,zIndex:-1});const r={[Cn.arrowSizeHalf.var]:`calc(${Cn.arrowSize.varRef} / 2)`,[Cn.arrowOffset.var]:`calc(${Cn.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},AZ=e=>{if(e.startsWith("top"))return{property:"bottom",value:Cn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Cn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Cn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Cn.arrowOffset.varRef}},PZ={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{wk(e)},effect:({state:e})=>()=>{wk(e)}},wk=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");!t||Object.assign(t.style,{transform:"rotate(45deg)",background:Cn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:bZ(e.placement)})},TZ={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},IZ={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function OZ(e,t="ltr"){var n;const r=((n=TZ[e])==null?void 0:n[t])||e;return t==="ltr"?r:IZ[e]??r}function RZ(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:s=!0,offset:u,gutter:c=8,flip:f=!0,boundary:p="clippingParents",preventOverflow:h=!0,matchWidth:m,direction:v="ltr"}=e,y=_.exports.useRef(null),x=_.exports.useRef(null),E=_.exports.useRef(null),S=OZ(r,v),b=_.exports.useRef(()=>{}),C=_.exports.useCallback(()=>{var W;!t||!y.current||!x.current||((W=b.current)==null||W.call(b),E.current=yZ(y.current,x.current,{placement:S,modifiers:[PZ,kZ,_Z,{...CZ,enabled:!!m},{name:"eventListeners",...wZ(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:u??[0,c]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:p}},...n??[]],strategy:o}),E.current.forceUpdate(),b.current=E.current.destroy)},[S,t,n,m,s,i,u,c,f,h,p,o]);_.exports.useEffect(()=>()=>{var W;!y.current&&!x.current&&((W=E.current)==null||W.destroy(),E.current=null)},[]);const A=_.exports.useCallback(W=>{y.current=W,C()},[C]),I=_.exports.useCallback((W={},te=null)=>({...W,ref:Xn(A,te)}),[A]),N=_.exports.useCallback(W=>{x.current=W,C()},[C]),L=_.exports.useCallback((W={},te=null)=>({...W,ref:Xn(N,te),style:{...W.style,position:o,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[o,N,m]),$=_.exports.useCallback((W={},te=null)=>{const{size:we,shadowColor:_e,bg:xe,style:ue,...ve}=W;return{...ve,ref:te,"data-popper-arrow":"",style:MZ(W)}},[]),K=_.exports.useCallback((W={},te=null)=>({...W,ref:te,"data-popper-arrow-inner":""}),[]);return{update(){var W;(W=E.current)==null||W.update()},forceUpdate(){var W;(W=E.current)==null||W.forceUpdate()},transformOrigin:Cn.transformOrigin.varRef,referenceRef:A,popperRef:N,getPopperProps:L,getArrowProps:$,getArrowInnerProps:K,getReferenceProps:I}}function MZ(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}function NZ(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Fn(n),s=Fn(t),[u,c]=_.exports.useState(e.defaultIsOpen||!1),f=r!==void 0?r:u,p=r!==void 0,h=o??`disclosure-${_.exports.useId()}`,m=_.exports.useCallback(()=>{p||c(!1),s?.()},[p,s]),v=_.exports.useCallback(()=>{p||c(!0),i?.()},[p,i]),y=_.exports.useCallback(()=>{f?m():v()},[f,v,m]);function x(S={}){return{...S,"aria-expanded":f,"aria-controls":h,onClick(b){var C;(C=S.onClick)==null||C.call(S,b),y()}}}function E(S={}){return{...S,hidden:!f,id:h}}return{isOpen:f,onOpen:v,onClose:m,onToggle:y,isControlled:p,getButtonProps:x,getDisclosureProps:E}}var[LZ,DZ]=Jt({strict:!1,name:"PortalManagerContext"});function cI(e){const{children:t,zIndex:n}=e;return w(LZ,{value:{zIndex:n},children:t})}cI.displayName="PortalManager";var[fI,FZ]=Jt({strict:!1,name:"PortalContext"}),CS="chakra-portal",zZ=".chakra-portal",BZ=e=>w("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),$Z=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=_.exports.useState(null),i=_.exports.useRef(null),[,s]=_.exports.useState({});_.exports.useEffect(()=>s({}),[]);const u=FZ(),c=DZ();Di(()=>{if(!r)return;const p=r.ownerDocument,h=t?u??p.body:p.body;if(!h)return;i.current=p.createElement("div"),i.current.className=CS,h.appendChild(i.current),s({});const m=i.current;return()=>{h.contains(m)&&h.removeChild(m)}},[r]);const f=c?.zIndex?w(BZ,{zIndex:c?.zIndex,children:n}):n;return i.current?Gf.exports.createPortal(w(fI,{value:i.current,children:f}),i.current):w("span",{ref:p=>{p&&o(p)}})},VZ=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=_.exports.useMemo(()=>{const c=o?.ownerDocument.createElement("div");return c&&(c.className=CS),c},[o]),[,u]=_.exports.useState({});return Di(()=>u({}),[]),Di(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Gf.exports.createPortal(w(fI,{value:r?s:null,children:t}),s):null};function Us(e){const{containerRef:t,...n}=e;return t?w(VZ,{containerRef:t,...n}):w($Z,{...n})}Us.defaultProps={appendToParentPortal:!0};Us.className=CS;Us.selector=zZ;Us.displayName="Portal";var WZ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xl=new WeakMap,qp=new WeakMap,Kp={},N1=0,jZ=function(e,t,n,r){var o=Array.isArray(e)?e:[e];Kp[n]||(Kp[n]=new WeakMap);var i=Kp[n],s=[],u=new Set,c=new Set(o),f=function(h){!h||u.has(h)||(u.add(h),f(h.parentNode))};o.forEach(f);var p=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(u.has(m))p(m);else{var v=m.getAttribute(r),y=v!==null&&v!=="false",x=(xl.get(m)||0)+1,E=(i.get(m)||0)+1;xl.set(m,x),i.set(m,E),s.push(m),x===1&&y&&qp.set(m,!0),E===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}})};return p(t),u.clear(),N1++,function(){s.forEach(function(h){var m=xl.get(h)-1,v=i.get(h)-1;xl.set(h,m),i.set(h,v),m||(qp.has(h)||h.removeAttribute(r),qp.delete(h)),v||h.removeAttribute(n)}),N1--,N1||(xl=new WeakMap,xl=new WeakMap,qp=new WeakMap,Kp={})}},UZ=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||WZ(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),jZ(r,o,n,"aria-hidden")):function(){return null}};function HZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var mt={exports:{}},GZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qZ=GZ,KZ=qZ;function dI(){}function pI(){}pI.resetWarningCache=dI;var YZ=function(){function e(r,o,i,s,u,c){if(c!==KZ){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:pI,resetWarningCache:dI};return n.PropTypes=n,n};mt.exports=YZ();var F2="data-focus-lock",hI="data-focus-lock-disabled",ZZ="data-no-focus-lock",XZ="data-autofocus-inside",QZ="data-no-autofocus";function JZ(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function eX(e,t){var n=_.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function mI(e,t){return eX(t||null,function(n){return e.forEach(function(r){return JZ(r,n)})})}var L1={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function gI(e){return e}function vI(e,t){t===void 0&&(t=gI);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(u){return u!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var u=n;n=[],u.forEach(i),s=n}var c=function(){var p=s;s=[],p.forEach(i)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(p){s.push(p),f()},filter:function(p){return s=s.filter(p),n}}}};return o}function _S(e,t){return t===void 0&&(t=gI),vI(e,t)}function yI(e){e===void 0&&(e={});var t=vI(null);return t.options=Ho({async:!0,ssr:!1},e),t}var bI=function(e){var t=e.sideCar,n=Nm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w(r,{...Ho({},n)})};bI.isSideCarExport=!0;function tX(e,t){return e.useMedium(t),bI}var xI=_S({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),SI=_S(),nX=_S(),rX=yI({async:!0}),oX=[],kS=_.exports.forwardRef(function(t,n){var r,o=_.exports.useState(),i=o[0],s=o[1],u=_.exports.useRef(),c=_.exports.useRef(!1),f=_.exports.useRef(null),p=t.children,h=t.disabled,m=t.noFocusGuards,v=t.persistentFocus,y=t.crossFrame,x=t.autoFocus;t.allowTextSelection;var E=t.group,S=t.className,b=t.whiteList,C=t.hasPositiveIndices,A=t.shards,I=A===void 0?oX:A,N=t.as,L=N===void 0?"div":N,$=t.lockProps,K=$===void 0?{}:$,W=t.sideCar,te=t.returnFocus,we=t.focusOptions,_e=t.onActivation,xe=t.onDeactivation,ue=_.exports.useState({}),ve=ue[0],Ae=_.exports.useCallback(function(){f.current=f.current||document&&document.activeElement,u.current&&_e&&_e(u.current),c.current=!0},[_e]),j=_.exports.useCallback(function(){c.current=!1,xe&&xe(u.current)},[xe]);_.exports.useEffect(function(){h||(f.current=null)},[]);var Z=_.exports.useCallback(function(Ee){var fe=f.current;if(fe&&fe.focus){var Pe=typeof te=="function"?te(fe):te;if(Pe){var Le=typeof Pe=="object"?Pe:void 0;f.current=null,Ee?Promise.resolve().then(function(){return fe.focus(Le)}):fe.focus(Le)}}},[te]),q=_.exports.useCallback(function(Ee){c.current&&xI.useMedium(Ee)},[]),R=SI.useMedium,H=_.exports.useCallback(function(Ee){u.current!==Ee&&(u.current=Ee,s(Ee))},[]),se=bf((r={},r[hI]=h&&"disabled",r[F2]=E,r),K),le=m!==!0,he=le&&m!=="tail",ge=mI([n,H]);return ne(Bn,{children:[le&&[w("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:L1},"guard-first"),C?w("div",{"data-focus-guard":!0,tabIndex:h?-1:1,style:L1},"guard-nearest"):null],!h&&w(W,{id:ve,sideCar:rX,observed:i,disabled:h,persistentFocus:v,crossFrame:y,autoFocus:x,whiteList:b,shards:I,onActivation:Ae,onDeactivation:j,returnFocus:Z,focusOptions:we}),w(L,{ref:ge,...se,className:S,onBlur:R,onFocus:q,children:p}),he&&w("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:L1})]})});kS.propTypes={};kS.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const wI=kS;function z2(e,t){return z2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},z2(e,t)}function iX(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,z2(e,t)}function CI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aX(e,t){function n(r){return r.displayName||r.name||"Component"}return function(o){var i=[],s;function u(){s=e(i.map(function(f){return f.props})),t(s)}var c=function(f){iX(p,f);function p(){return f.apply(this,arguments)||this}p.peek=function(){return s};var h=p.prototype;return h.componentDidMount=function(){i.push(this),u()},h.componentDidUpdate=function(){u()},h.componentWillUnmount=function(){var v=i.indexOf(this);i.splice(v,1),u()},h.render=function(){return w(o,{...this.props})},p}(_.exports.PureComponent);return CI(c,"displayName","SideEffect("+n(o)+")"),c}}var li=function(e){for(var t=Array(e.length),n=0;n=0}).sort(hX)},mX=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],AS=mX.join(","),gX="".concat(AS,", [data-focus-guard]"),RI=function(e,t){var n;return li(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(r,o){return r.concat(o.matches(t?gX:AS)?[o]:[],RI(o))},[])},PS=function(e,t){return e.reduce(function(n,r){return n.concat(RI(r,t),r.parentNode?li(r.parentNode.querySelectorAll(AS)).filter(function(o){return o===r}):[])},[])},vX=function(e){var t=e.querySelectorAll("[".concat(XZ,"]"));return li(t).map(function(n){return PS([n])}).reduce(function(n,r){return n.concat(r)},[])},TS=function(e,t){return li(e).filter(function(n){return EI(t,n)}).filter(function(n){return fX(n)})},Ck=function(e,t){return t===void 0&&(t=new Map),li(e).filter(function(n){return AI(t,n)})},$2=function(e,t,n){return OI(TS(PS(e,n),t),!0,n)},_k=function(e,t){return OI(TS(PS(e),t),!1)},yX=function(e,t){return TS(vX(e),t)},Lf=function(e,t){return(e.shadowRoot?Lf(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||li(e.children).some(function(n){return Lf(n,t)})},bX=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,u){return!t.has(u)})},MI=function(e){return e.parentNode?MI(e.parentNode):e},IS=function(e){var t=B2(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(F2);return n.push.apply(n,o?bX(li(MI(r).querySelectorAll("[".concat(F2,'="').concat(o,'"]:not([').concat(hI,'="disabled"])')))):[r]),n},[])},NI=function(e){return e.activeElement?e.activeElement.shadowRoot?NI(e.activeElement.shadowRoot):e.activeElement:void 0},OS=function(){return document.activeElement?document.activeElement.shadowRoot?NI(document.activeElement.shadowRoot):document.activeElement:void 0},xX=function(e){return e===document.activeElement},SX=function(e){return Boolean(li(e.querySelectorAll("iframe")).some(function(t){return xX(t)}))},LI=function(e){var t=document&&OS();return!t||t.dataset&&t.dataset.focusGuard?!1:IS(e).some(function(n){return Lf(n,t)||SX(n)})},wX=function(){var e=document&&OS();return e?li(document.querySelectorAll("[".concat(ZZ,"]"))).some(function(t){return Lf(t,e)}):!1},CX=function(e,t){return t.filter(II).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},RS=function(e,t){return II(e)&&e.name?CX(e,t):e},_X=function(e){var t=new Set;return e.forEach(function(n){return t.add(RS(n,e))}),e.filter(function(n){return t.has(n)})},kk=function(e){return e[0]&&e.length>1?RS(e[0],e):e[0]},Ek=function(e,t){return e.length>1?e.indexOf(RS(e[t],e)):t},DI="NEW_FOCUS",kX=function(e,t,n,r){var o=e.length,i=e[0],s=e[o-1],u=ES(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?t.indexOf(n):-1,f=r?t.indexOf(r):c,p=r?e.indexOf(r):-1,h=c-f,m=t.indexOf(i),v=t.indexOf(s),y=_X(t),x=n!==void 0?y.indexOf(n):-1,E=x-(r?y.indexOf(r):c),S=Ek(e,0),b=Ek(e,o-1);if(c===-1||p===-1)return DI;if(!h&&p>=0)return p;if(c<=m&&u&&Math.abs(h)>1)return b;if(c>=v&&u&&Math.abs(h)>1)return S;if(h&&Math.abs(E)>1)return p;if(c<=m)return b;if(c>v)return S;if(h)return Math.abs(h)>1?p:(o+p+h)%o}},V2=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&V2(e.parentNode.host||e.parentNode,t),t},D1=function(e,t){for(var n=V2(e),r=V2(t),o=0;o=0)return i}return!1},FI=function(e,t,n){var r=B2(e),o=B2(t),i=r[0],s=!1;return o.filter(Boolean).forEach(function(u){s=D1(s||u,u)||s,n.filter(Boolean).forEach(function(c){var f=D1(i,c);f&&(!s||Lf(f,s)?s=f:s=D1(f,s))})}),s},EX=function(e,t){return e.reduce(function(n,r){return n.concat(yX(r,t))},[])},AX=function(e){return function(t){var n;return t.autofocus||!!(!((n=PI(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},PX=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(pX)},TX=function(e,t){var n=document&&OS(),r=IS(e).filter(T0),o=FI(n||e,e,r),i=new Map,s=_k(r,i),u=$2(r,i).filter(function(v){var y=v.node;return T0(y)});if(!(!u[0]&&(u=s,!u[0]))){var c=_k([o],i).map(function(v){var y=v.node;return y}),f=PX(c,u),p=f.map(function(v){var y=v.node;return y}),h=kX(p,c,n,t);if(h===DI){var m=Ck(s.map(function(v){var y=v.node;return y})).filter(AX(EX(r,i)));return{node:m&&m.length?kk(m):kk(Ck(p))}}return h===void 0?h:f[h]}},IX=function(e){var t=IS(e).filter(T0),n=FI(e,e,t),r=new Map,o=$2([n],r,!0),i=$2(t,r).filter(function(s){var u=s.node;return T0(u)}).map(function(s){var u=s.node;return u});return o.map(function(s){var u=s.node,c=s.index;return{node:u,index:c,lockItem:i.indexOf(u)>=0,guard:ES(u)}})},OX=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},F1=0,z1=!1,RX=function(e,t,n){n===void 0&&(n={});var r=TX(e,t);if(!z1&&r){if(F1>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),z1=!0,setTimeout(function(){z1=!1},1);return}F1++,OX(r.node,n.focusOptions),F1--}};const zI=RX;function BI(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var MX=function(){return document&&document.activeElement===document.body},NX=function(){return MX()||wX()},Ql=null,Vl=null,Jl=null,Df=!1,LX=function(){return!0},DX=function(t){return(Ql.whiteList||LX)(t)},FX=function(t,n){Jl={observerNode:t,portaledElement:n}},zX=function(t){return Jl&&Jl.portaledElement===t};function Ak(e,t,n,r){var o=null,i=e;do{var s=r[i];if(s.guard)s.node.dataset.focusAutoGuard&&(o=s);else if(s.lockItem){if(i!==e)return;o=null}else break}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var BX=function(t){return t&&"current"in t?t.current:t},$X=function(t){return t?Boolean(Df):Df==="meanwhile"},VX=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},WX=function(t,n){return n.some(function(r){return VX(t,r,r)})},I0=function(){var t=!1;if(Ql){var n=Ql,r=n.observed,o=n.persistentFocus,i=n.autoFocus,s=n.shards,u=n.crossFrame,c=n.focusOptions,f=r||Jl&&Jl.portaledElement,p=document&&document.activeElement;if(f){var h=[f].concat(s.map(BX).filter(Boolean));if((!p||DX(p))&&(o||$X(u)||!NX()||!Vl&&i)&&(f&&!(LI(h)||p&&WX(p,h)||zX(p))&&(document&&!Vl&&p&&!i?(p.blur&&p.blur(),document.body.focus()):(t=zI(h,Vl,{focusOptions:c}),Jl={})),Df=!1,Vl=document&&document.activeElement),document){var m=document&&document.activeElement,v=IX(h),y=v.map(function(x){var E=x.node;return E}).indexOf(m);y>-1&&(v.filter(function(x){var E=x.guard,S=x.node;return E&&S.dataset.focusAutoGuard}).forEach(function(x){var E=x.node;return E.removeAttribute("tabIndex")}),Ak(y,v.length,1,v),Ak(y,-1,-1,v))}}}return t},$I=function(t){I0()&&t&&(t.stopPropagation(),t.preventDefault())},MS=function(){return BI(I0)},jX=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||FX(r,n)},UX=function(){return null},VI=function(){Df="just",setTimeout(function(){Df="meanwhile"},0)},HX=function(){document.addEventListener("focusin",$I),document.addEventListener("focusout",MS),window.addEventListener("blur",VI)},GX=function(){document.removeEventListener("focusin",$I),document.removeEventListener("focusout",MS),window.removeEventListener("blur",VI)};function qX(e){return e.filter(function(t){var n=t.disabled;return!n})}function KX(e){var t=e.slice(-1)[0];t&&!Ql&&HX();var n=Ql,r=n&&t&&t.id===n.id;Ql=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(Vl=null,(!r||n.observed!==t.observed)&&t.onActivation(),I0(),BI(I0)):(GX(),Vl=null)}xI.assignSyncMedium(jX);SI.assignMedium(MS);nX.assignMedium(function(e){return e({moveFocusInside:zI,focusInside:LI})});const YX=aX(qX,KX)(UX);var WI=_.exports.forwardRef(function(t,n){return w(wI,{sideCar:YX,ref:n,...t})}),jI=wI.propTypes||{};jI.sideCar;HZ(jI,["sideCar"]);WI.propTypes={};const ZX=WI;var UI=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:f}=e,p=_.exports.useCallback(()=>{t?.current?t.current.focus():r?.current&&dY(r.current).length===0&&requestAnimationFrame(()=>{var y;(y=r.current)==null||y.focus()})},[t,r]),h=_.exports.useCallback(()=>{var v;(v=n?.current)==null||v.focus()},[n]);return w(ZX,{crossFrame:f,persistentFocus:c,autoFocus:u,disabled:s,onActivation:p,onDeactivation:h,returnFocus:o&&!n,children:i})};UI.displayName="FocusLock";var Ah="right-scroll-bar-position",Ph="width-before-scroll-bar",XX="with-scroll-bars-hidden",QX="--removed-body-scroll-bar-size",HI=yI(),B1=function(){},Km=_.exports.forwardRef(function(e,t){var n=_.exports.useRef(null),r=_.exports.useState({onScrollCapture:B1,onWheelCapture:B1,onTouchMoveCapture:B1}),o=r[0],i=r[1],s=e.forwardProps,u=e.children,c=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,v=e.noIsolation,y=e.inert,x=e.allowPinchZoom,E=e.as,S=E===void 0?"div":E,b=Nm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),C=m,A=mI([n,t]),I=Ho(Ho({},b),o);return ne(Bn,{children:[p&&w(C,{sideCar:HI,removeScrollBar:f,shards:h,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n}),s?_.exports.cloneElement(_.exports.Children.only(u),Ho(Ho({},I),{ref:A})):w(S,{...Ho({},I,{className:c,ref:A}),children:u})]})});Km.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Km.classNames={fullWidth:Ph,zeroRight:Ah};var JX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=JX();return t&&e.setAttribute("nonce",t),e}function tQ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function nQ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var rQ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=eQ())&&(tQ(t,n),nQ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},oQ=function(){var e=rQ();return function(t,n){_.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},GI=function(){var e=oQ(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},iQ={left:0,top:0,right:0,gap:0},$1=function(e){return parseInt(e||"",10)||0},aQ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[$1(n),$1(r),$1(o)]},sQ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iQ;var t=aQ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},lQ=GI(),uQ=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,u=e.gap;return n===void 0&&(n="margin"),` + .`.concat(XX,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(u,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(u,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Ah,` { + right: `).concat(u,"px ").concat(r,`; + } + + .`).concat(Ph,` { + margin-right: `).concat(u,"px ").concat(r,`; + } + + .`).concat(Ah," .").concat(Ah,` { + right: 0 `).concat(r,`; + } + + .`).concat(Ph," .").concat(Ph,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(QX,": ").concat(u,`px; + } +`)},cQ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=_.exports.useMemo(function(){return sQ(o)},[o]);return w(lQ,{styles:uQ(i,!t,o,n?"":"!important")})},W2=!1;if(typeof window<"u")try{var Yp=Object.defineProperty({},"passive",{get:function(){return W2=!0,!0}});window.addEventListener("test",Yp,Yp),window.removeEventListener("test",Yp,Yp)}catch{W2=!1}var Sl=W2?{passive:!1}:!1,fQ=function(e){return e.tagName==="TEXTAREA"},qI=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fQ(e)&&n[t]==="visible")},dQ=function(e){return qI(e,"overflowY")},pQ=function(e){return qI(e,"overflowX")},Pk=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=KI(e,n);if(r){var o=YI(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},hQ=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},mQ=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},KI=function(e,t){return e==="v"?dQ(t):pQ(t)},YI=function(e,t){return e==="v"?hQ(t):mQ(t)},gQ=function(e,t){return e==="h"&&t==="rtl"?-1:1},vQ=function(e,t,n,r,o){var i=gQ(e,window.getComputedStyle(t).direction),s=i*r,u=n.target,c=t.contains(u),f=!1,p=s>0,h=0,m=0;do{var v=YI(e,u),y=v[0],x=v[1],E=v[2],S=x-E-i*y;(y||S)&&KI(e,u)&&(h+=S,m+=y),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(p&&(o&&h===0||!o&&s>h)||!p&&(o&&m===0||!o&&-s>m))&&(f=!0),f},Zp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tk=function(e){return[e.deltaX,e.deltaY]},Ik=function(e){return e&&"current"in e?e.current:e},yQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bQ=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},xQ=0,wl=[];function SQ(e){var t=_.exports.useRef([]),n=_.exports.useRef([0,0]),r=_.exports.useRef(),o=_.exports.useState(xQ++)[0],i=_.exports.useState(function(){return GI()})[0],s=_.exports.useRef(e);_.exports.useEffect(function(){s.current=e},[e]),_.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=f2([e.lockRef.current],(e.shards||[]).map(Ik),!0).filter(Boolean);return x.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=_.exports.useCallback(function(x,E){if("touches"in x&&x.touches.length===2)return!s.current.allowPinchZoom;var S=Zp(x),b=n.current,C="deltaX"in x?x.deltaX:b[0]-S[0],A="deltaY"in x?x.deltaY:b[1]-S[1],I,N=x.target,L=Math.abs(C)>Math.abs(A)?"h":"v";if("touches"in x&&L==="h"&&N.type==="range")return!1;var $=Pk(L,N);if(!$)return!0;if($?I=L:(I=L==="v"?"h":"v",$=Pk(L,N)),!$)return!1;if(!r.current&&"changedTouches"in x&&(C||A)&&(r.current=I),!I)return!0;var K=r.current||I;return vQ(K,E,x,K==="h"?C:A,!0)},[]),c=_.exports.useCallback(function(x){var E=x;if(!(!wl.length||wl[wl.length-1]!==i)){var S="deltaY"in E?Tk(E):Zp(E),b=t.current.filter(function(I){return I.name===E.type&&I.target===E.target&&yQ(I.delta,S)})[0];if(b&&b.should){E.cancelable&&E.preventDefault();return}if(!b){var C=(s.current.shards||[]).map(Ik).filter(Boolean).filter(function(I){return I.contains(E.target)}),A=C.length>0?u(E,C[0]):!s.current.noIsolation;A&&E.cancelable&&E.preventDefault()}}},[]),f=_.exports.useCallback(function(x,E,S,b){var C={name:x,delta:E,target:S,should:b};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(A){return A!==C})},1)},[]),p=_.exports.useCallback(function(x){n.current=Zp(x),r.current=void 0},[]),h=_.exports.useCallback(function(x){f(x.type,Tk(x),x.target,u(x,e.lockRef.current))},[]),m=_.exports.useCallback(function(x){f(x.type,Zp(x),x.target,u(x,e.lockRef.current))},[]);_.exports.useEffect(function(){return wl.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Sl),document.addEventListener("touchmove",c,Sl),document.addEventListener("touchstart",p,Sl),function(){wl=wl.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,Sl),document.removeEventListener("touchmove",c,Sl),document.removeEventListener("touchstart",p,Sl)}},[]);var v=e.removeScrollBar,y=e.inert;return ne(Bn,{children:[y?w(i,{styles:bQ(o)}):null,v?w(cQ,{gapMode:"margin"}):null]})}const wQ=tX(HI,SQ);var ZI=_.exports.forwardRef(function(e,t){return w(Km,{...Ho({},e,{ref:t,sideCar:wQ})})});ZI.classNames=Km.classNames;const CQ=ZI;var Hs=(...e)=>e.filter(Boolean).join(" ");function kc(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var _Q=class{modals;constructor(){this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},j2=new _Q;function kQ(e,t){_.exports.useEffect(()=>(t&&j2.add(e),()=>{j2.remove(e)}),[t,e])}function EQ(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:u,onEsc:c}=e,f=_.exports.useRef(null),p=_.exports.useRef(null),[h,m,v]=PQ(r,"chakra-modal","chakra-modal--header","chakra-modal--body");AQ(f,t&&s),kQ(f,t);const y=_.exports.useRef(null),x=_.exports.useCallback($=>{y.current=$.target},[]),E=_.exports.useCallback($=>{$.key==="Escape"&&($.stopPropagation(),i&&n?.(),c?.())},[i,n,c]),[S,b]=_.exports.useState(!1),[C,A]=_.exports.useState(!1),I=_.exports.useCallback(($={},K=null)=>({role:"dialog",...$,ref:Xn(K,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":S?m:void 0,"aria-describedby":C?v:void 0,onClick:kc($.onClick,W=>W.stopPropagation())}),[v,C,h,m,S]),N=_.exports.useCallback($=>{$.stopPropagation(),y.current===$.target&&(!j2.isTopModal(f)||(o&&n?.(),u?.()))},[n,o,u]),L=_.exports.useCallback(($={},K=null)=>({...$,ref:Xn(K,p),onClick:kc($.onClick,N),onKeyDown:kc($.onKeyDown,E),onMouseDown:kc($.onMouseDown,x)}),[E,x,N]);return{isOpen:t,onClose:n,headerId:m,bodyId:v,setBodyMounted:A,setHeaderMounted:b,dialogRef:f,overlayRef:p,getDialogProps:I,getDialogContainerProps:L}}function AQ(e,t){const n=e.current;_.exports.useEffect(()=>{if(!(!e.current||!t))return UZ(e.current)},[t,e,n])}function PQ(e,...t){const n=_.exports.useId(),r=e||n;return _.exports.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}var[TQ,Gs]=Jt({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[IQ,Ha]=Jt({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Ff=e=>{const{portalProps:t,children:n,autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m,onCloseComplete:v}=e,y=$r("Modal",e),E={...EQ(e),autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m};return w(IQ,{value:E,children:w(TQ,{value:y,children:w(qi,{onExitComplete:v,children:E.isOpen&&w(Us,{...t,children:n})})})})};Ff.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};Ff.displayName="Modal";var O0=de((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=Ha();_.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Hs("chakra-modal__body",n),u=Gs();return ee.createElement(ie.div,{ref:t,className:s,id:o,...r,__css:u.body})});O0.displayName="ModalBody";var XI=de((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=Ha(),s=Hs("chakra-modal__close-btn",r),u=Gs();return w(lS,{ref:t,__css:u.closeButton,className:s,onClick:kc(n,c=>{c.stopPropagation(),i()}),...o})});XI.displayName="ModalCloseButton";function QI(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:f,lockFocusAcrossFrames:p}=Ha(),[h,m]=Gx();return _.exports.useEffect(()=>{!h&&m&&setTimeout(m)},[h,m]),w(UI,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:p,children:w(CQ,{removeScrollBar:!f,allowPinchZoom:s,enabled:i,forwardProps:!0,children:e.children})})}var OQ={slideInBottom:{...P2,custom:{offsetY:16,reverse:!0}},slideInRight:{...P2,custom:{offsetX:16,reverse:!0}},scale:{...wT,custom:{initialScale:.95,reverse:!0}},none:{}},RQ=ie(Io.section),JI=_.exports.forwardRef((e,t)=>{const{preset:n,...r}=e,o=OQ[n];return w(RQ,{ref:t,...o,...r})});JI.displayName="ModalTransition";var R0=de((e,t)=>{const{className:n,children:r,containerProps:o,...i}=e,{getDialogProps:s,getDialogContainerProps:u}=Ha(),c=s(i,t),f=u(o),p=Hs("chakra-modal__content",n),h=Gs(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},v={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:y}=Ha();return ee.createElement(QI,null,ee.createElement(ie.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:v},w(JI,{preset:y,className:p,...c,__css:m,children:r})))});R0.displayName="ModalContent";var NS=de((e,t)=>{const{className:n,...r}=e,o=Hs("chakra-modal__footer",n),i=Gs(),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...i.footer};return ee.createElement(ie.footer,{ref:t,...r,__css:s,className:o})});NS.displayName="ModalFooter";var LS=de((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=Ha();_.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Hs("chakra-modal__header",n),u=Gs(),c={flex:0,...u.header};return ee.createElement(ie.header,{ref:t,className:s,id:o,...r,__css:c})});LS.displayName="ModalHeader";var MQ=ie(Io.div),M0=de((e,t)=>{const{className:n,transition:r,...o}=e,i=Hs("chakra-modal__overlay",n),s=Gs(),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...s.overlay},{motionPreset:c}=Ha();return w(MQ,{...c==="none"?{}:ST,__css:u,ref:t,className:i,...o})});M0.displayName="ModalOverlay";function NQ(e){const{leastDestructiveRef:t,...n}=e;return w(Ff,{...n,initialFocusRef:t})}var LQ=de((e,t)=>w(R0,{ref:t,role:"alertdialog",...e})),[Gfe,DQ]=Jt(),FQ=ie(CT),zQ=de((e,t)=>{const{className:n,children:r,...o}=e,{getDialogProps:i,getDialogContainerProps:s,isOpen:u}=Ha(),c=i(o,t),f=s(),p=Hs("chakra-modal__content",n),h=Gs(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},v={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:y}=DQ();return ee.createElement(ie.div,{...f,className:"chakra-modal__content-container",__css:v},w(QI,{children:w(FQ,{direction:y,in:u,className:p,...c,__css:m,children:r})}))});zQ.displayName="DrawerContent";function BQ(e,t){const n=Fn(e);_.exports.useEffect(()=>{let r=null;const o=()=>n();return t!==null&&(r=window.setInterval(o,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var eO=(...e)=>e.filter(Boolean).join(" "),V1=e=>e?!0:void 0;function Fo(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var $Q=e=>w(To,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),VQ=e=>w(To,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function Ok(e,t,n,r){_.exports.useEffect(()=>{if(!e.current||!r)return;const o=e.current.ownerDocument.defaultView??window,i=Array.isArray(t)?t:[t],s=new o.MutationObserver(u=>{for(const c of u)c.type==="attributes"&&c.attributeName&&i.includes(c.attributeName)&&n(c)});return s.observe(e.current,{attributes:!0,attributeFilter:i}),()=>s.disconnect()})}var WQ=50,Rk=300;function jQ(e,t){const[n,r]=_.exports.useState(!1),[o,i]=_.exports.useState(null),[s,u]=_.exports.useState(!0),c=_.exports.useRef(null),f=()=>clearTimeout(c.current);BQ(()=>{o==="increment"&&e(),o==="decrement"&&t()},n?WQ:null);const p=_.exports.useCallback(()=>{s&&e(),c.current=setTimeout(()=>{u(!1),r(!0),i("increment")},Rk)},[e,s]),h=_.exports.useCallback(()=>{s&&t(),c.current=setTimeout(()=>{u(!1),r(!0),i("decrement")},Rk)},[t,s]),m=_.exports.useCallback(()=>{u(!0),r(!1),f()},[]);return _.exports.useEffect(()=>()=>f(),[]),{up:p,down:h,stop:m,isSpinning:n}}var UQ=/^[Ee0-9+\-.]$/;function HQ(e){return UQ.test(e)}function GQ(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function qQ(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:o=Number.MIN_SAFE_INTEGER,max:i=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:u,isDisabled:c,isRequired:f,isInvalid:p,pattern:h="[0-9]*(.[0-9]+)?",inputMode:m="decimal",allowMouseWheel:v,id:y,onChange:x,precision:E,name:S,"aria-describedby":b,"aria-label":C,"aria-labelledby":A,onFocus:I,onBlur:N,onInvalid:L,getAriaValueText:$,isValidCharacter:K,format:W,parse:te,...we}=e,_e=Fn(I),xe=Fn(N),ue=Fn(L),ve=Fn(K??HQ),Ae=Fn($),j=xK(e),{update:Z,increment:q,decrement:R}=j,[H,se]=_.exports.useState(!1),le=!(u||c),he=_.exports.useRef(null),ge=_.exports.useRef(null),Ee=_.exports.useRef(null),fe=_.exports.useRef(null),Pe=_.exports.useCallback(re=>re.split("").filter(ve).join(""),[ve]),Le=_.exports.useCallback(re=>te?.(re)??re,[te]),gt=_.exports.useCallback(re=>(W?.(re)??re).toString(),[W]);E0(()=>{(j.valueAsNumber>i||j.valueAsNumber{if(!he.current)return;if(he.current.value!=j.value){const je=Le(he.current.value);j.setValue(Pe(je))}},[Le,Pe]);const Mt=_.exports.useCallback((re=s)=>{le&&q(re)},[q,le,s]),Pn=_.exports.useCallback((re=s)=>{le&&R(re)},[R,le,s]),ye=jQ(Mt,Pn);Ok(Ee,"disabled",ye.stop,ye.isSpinning),Ok(fe,"disabled",ye.stop,ye.isSpinning);const Nt=_.exports.useCallback(re=>{if(re.nativeEvent.isComposing)return;const wt=Le(re.currentTarget.value);Z(Pe(wt)),ge.current={start:re.currentTarget.selectionStart,end:re.currentTarget.selectionEnd}},[Z,Pe,Le]),en=_.exports.useCallback(re=>{var je;_e?.(re),ge.current&&(re.target.selectionStart=ge.current.start??((je=re.currentTarget.value)==null?void 0:je.length),re.currentTarget.selectionEnd=ge.current.end??re.currentTarget.selectionStart)},[_e]),at=_.exports.useCallback(re=>{if(re.nativeEvent.isComposing)return;GQ(re,ve)||re.preventDefault();const je=br(re)*s,wt=re.key,Tn={ArrowUp:()=>Mt(je),ArrowDown:()=>Pn(je),Home:()=>Z(o),End:()=>Z(i)}[wt];Tn&&(re.preventDefault(),Tn(re))},[ve,s,Mt,Pn,Z,o,i]),br=re=>{let je=1;return(re.metaKey||re.ctrlKey)&&(je=.1),re.shiftKey&&(je=10),je},xr=_.exports.useMemo(()=>{const re=Ae?.(j.value);if(re!=null)return re;const je=j.value.toString();return je||void 0},[j.value,Ae]),St=_.exports.useCallback(()=>{let re=j.value;re!==""&&(j.valueAsNumberi&&(re=i),j.cast(re))},[j,i,o]),kt=_.exports.useCallback(()=>{se(!1),n&&St()},[n,se,St]),tn=_.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var re;(re=he.current)==null||re.focus()})},[t]),$t=_.exports.useCallback(re=>{re.preventDefault(),ye.up(),tn()},[tn,ye]),ce=_.exports.useCallback(re=>{re.preventDefault(),ye.down(),tn()},[tn,ye]);R2(()=>he.current,"wheel",re=>{var je;const gn=(((je=he.current)==null?void 0:je.ownerDocument)??document).activeElement===he.current;if(!v||!gn)return;re.preventDefault();const Tn=br(re)*s,Sr=Math.sign(re.deltaY);Sr===-1?Mt(Tn):Sr===1&&Pn(Tn)},{passive:!1});const Ce=_.exports.useCallback((re={},je=null)=>{const wt=c||r&&j.isAtMax;return{...re,ref:Xn(je,Ee),role:"button",tabIndex:-1,onPointerDown:Fo(re.onPointerDown,gn=>{wt||$t(gn)}),onPointerLeave:Fo(re.onPointerLeave,ye.stop),onPointerUp:Fo(re.onPointerUp,ye.stop),disabled:wt,"aria-disabled":V1(wt)}},[j.isAtMax,r,$t,ye.stop,c]),st=_.exports.useCallback((re={},je=null)=>{const wt=c||r&&j.isAtMin;return{...re,ref:Xn(je,fe),role:"button",tabIndex:-1,onPointerDown:Fo(re.onPointerDown,gn=>{wt||ce(gn)}),onPointerLeave:Fo(re.onPointerLeave,ye.stop),onPointerUp:Fo(re.onPointerUp,ye.stop),disabled:wt,"aria-disabled":V1(wt)}},[j.isAtMin,r,ce,ye.stop,c]),rt=_.exports.useCallback((re={},je=null)=>({name:S,inputMode:m,type:"text",pattern:h,"aria-labelledby":A,"aria-label":C,"aria-describedby":b,id:y,disabled:c,...re,readOnly:re.readOnly??u,"aria-readonly":re.readOnly??u,"aria-required":re.required??f,required:re.required??f,ref:Xn(he,je),value:gt(j.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":Number.isNaN(j.valueAsNumber)?void 0:j.valueAsNumber,"aria-invalid":V1(p??j.isOutOfRange),"aria-valuetext":xr,autoComplete:"off",autoCorrect:"off",onChange:Fo(re.onChange,Nt),onKeyDown:Fo(re.onKeyDown,at),onFocus:Fo(re.onFocus,en,()=>se(!0)),onBlur:Fo(re.onBlur,xe,kt)}),[S,m,h,A,C,gt,b,y,c,f,u,p,j.value,j.valueAsNumber,j.isOutOfRange,o,i,xr,Nt,at,en,xe,kt]);return{value:gt(j.value),valueAsNumber:j.valueAsNumber,isFocused:H,isDisabled:c,isReadOnly:u,getIncrementButtonProps:Ce,getDecrementButtonProps:st,getInputProps:rt,htmlProps:we}}var[KQ,Ym]=Jt({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[YQ,DS]=Jt({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),tO=de(function(t,n){const r=$r("NumberInput",t),o=xt(t),i=iS(o),{htmlProps:s,...u}=qQ(i),c=_.exports.useMemo(()=>u,[u]);return ee.createElement(YQ,{value:c},ee.createElement(KQ,{value:r},ee.createElement(ie.div,{...s,ref:n,className:eO("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})))});tO.displayName="NumberInput";var nO=de(function(t,n){const r=Ym();return ee.createElement(ie.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});nO.displayName="NumberInputStepper";var rO=de(function(t,n){const{getInputProps:r}=DS(),o=r(t,n),i=Ym();return ee.createElement(ie.input,{...o,className:eO("chakra-numberinput__field",t.className),__css:{width:"100%",...i.field}})});rO.displayName="NumberInputField";var oO=ie("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),iO=de(function(t,n){const r=Ym(),{getDecrementButtonProps:o}=DS(),i=o(t,n);return w(oO,{...i,__css:r.stepper,children:t.children??w($Q,{})})});iO.displayName="NumberDecrementStepper";var aO=de(function(t,n){const{getIncrementButtonProps:r}=DS(),o=r(t,n),i=Ym();return w(oO,{...o,__css:i.stepper,children:t.children??w(VQ,{})})});aO.displayName="NumberIncrementStepper";function ZQ(e,t,n){return(e-t)*100/(n-t)}Qf({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Qf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var XQ=Qf({"0%":{left:"-40%"},"100%":{left:"100%"}}),QQ=Qf({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function JQ(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:s}=e,u=ZQ(t,n,r);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,u):o})(),role:"progressbar"},percent:u,value:t}}var[eJ,tJ]=Jt({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),nJ=e=>{const{min:t,max:n,value:r,isIndeterminate:o,...i}=e,s=JQ({value:r,min:t,max:n,isIndeterminate:o}),u=tJ(),c={height:"100%",...u.filledTrack};return ee.createElement(ie.div,{style:{width:`${s.percent}%`,...i.style},...s.bind,...i,__css:c})},sO=e=>{var t;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:s,children:u,borderRadius:c,isIndeterminate:f,"aria-label":p,"aria-labelledby":h,...m}=xt(e),v=$r("Progress",e),y=c??((t=v.track)==null?void 0:t.borderRadius),x={animation:`${QQ} 1s linear infinite`},b={...!f&&i&&s&&x,...f&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${XQ} 1s ease infinite normal none running`}},C={overflow:"hidden",position:"relative",...v.track};return ee.createElement(ie.div,{borderRadius:y,__css:C,...m},ne(eJ,{value:v,children:[w(nJ,{"aria-label":p,"aria-labelledby":h,min:r,max:o,value:n,isIndeterminate:f,css:b,borderRadius:y}),u]}))};sO.displayName="Progress";var rJ=ie("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});rJ.displayName="CircularProgressLabel";var oJ=(...e)=>e.filter(Boolean).join(" "),iJ=e=>e?"":void 0;function aJ(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}var lO=de(function(t,n){const{children:r,placeholder:o,className:i,...s}=t;return ee.createElement(ie.select,{...s,ref:n,className:oJ("chakra-select",i)},o&&w("option",{value:"",children:o}),r)});lO.displayName="SelectField";var uO=de((e,t)=>{var n;const r=$r("Select",e),{rootProps:o,placeholder:i,icon:s,color:u,height:c,h:f,minH:p,minHeight:h,iconColor:m,iconSize:v,...y}=xt(e),[x,E]=aJ(y,p$),S=oS(E),b={width:"100%",height:"fit-content",position:"relative",color:u},C={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return ee.createElement(ie.div,{className:"chakra-select__wrapper",__css:b,...x,...o},w(lO,{ref:t,height:f??c,minH:p??h,placeholder:i,...S,__css:C,children:e.children}),w(cO,{"data-disabled":iJ(S.disabled),...(m||u)&&{color:m||u},__css:r.icon,...v&&{fontSize:v},children:s}))});uO.displayName="Select";var sJ=e=>w("svg",{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),lJ=ie("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),cO=e=>{const{children:t=w(sJ,{}),...n}=e,r=_.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return w(lJ,{...n,className:"chakra-select__icon-wrapper",children:_.exports.isValidElement(t)?r:null})};cO.displayName="SelectIcon";var uJ=(...e)=>e.filter(Boolean).join(" "),Mk=e=>e?"":void 0,Da=de(function(t,n){const r=$r("Switch",t),{spacing:o="0.5rem",children:i,...s}=xt(t),{state:u,getInputProps:c,getCheckboxProps:f,getRootProps:p,getLabelProps:h}=DT(s),m=_.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),v=_.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),y=_.exports.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return ee.createElement(ie.label,{...p(),className:uJ("chakra-switch",t.className),__css:m},w("input",{className:"chakra-switch__input",...c({},n)}),ee.createElement(ie.span,{...f(),className:"chakra-switch__track",__css:v},ee.createElement(ie.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":Mk(u.isChecked),"data-hover":Mk(u.isHovered)})),i&&ee.createElement(ie.span,{className:"chakra-switch__label",...h(),__css:y},i))});Da.displayName="Switch";var cJ=(...e)=>e.filter(Boolean).join(" ");function fJ(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var dJ=["h","minH","height","minHeight"],fO=de((e,t)=>{const n=er("Textarea",e),{className:r,rows:o,...i}=xt(e),s=oS(i),u=o?fJ(n,dJ):n;return ee.createElement(ie.textarea,{ref:t,rows:o,...s,className:cJ("chakra-textarea",r),__css:u})});fO.displayName="Textarea";function ft(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...p){r();for(const h of p)t[h]=c(h);return ft(e,t)}function i(...p){for(const h of p)h in t||(t[h]=c(h));return ft(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.className]))}function c(p){const v=`chakra-${(["container","root"].includes(p??"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>p}}return{parts:o,toPart:c,extend:i,selectors:s,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var pJ=ft("accordion").parts("root","container","button","panel").extend("icon"),hJ=ft("alert").parts("title","description","container").extend("icon","spinner"),mJ=ft("avatar").parts("label","badge","container").extend("excessLabel","group"),gJ=ft("breadcrumb").parts("link","item","container").extend("separator");ft("button").parts();var vJ=ft("checkbox").parts("control","icon","container").extend("label");ft("progress").parts("track","filledTrack").extend("label");var yJ=ft("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),bJ=ft("editable").parts("preview","input","textarea"),xJ=ft("form").parts("container","requiredIndicator","helperText"),SJ=ft("formError").parts("text","icon"),wJ=ft("input").parts("addon","field","element"),CJ=ft("list").parts("container","item","icon"),_J=ft("menu").parts("button","list","item").extend("groupTitle","command","divider"),kJ=ft("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),EJ=ft("numberinput").parts("root","field","stepperGroup","stepper");ft("pininput").parts("field");var AJ=ft("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),PJ=ft("progress").parts("label","filledTrack","track"),TJ=ft("radio").parts("container","control","label"),IJ=ft("select").parts("field","icon"),OJ=ft("slider").parts("container","track","thumb","filledTrack","mark"),RJ=ft("stat").parts("container","label","helpText","number","icon"),MJ=ft("switch").parts("container","track","thumb"),NJ=ft("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),LJ=ft("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),DJ=ft("tag").parts("container","label","closeButton");function kn(e,t){FJ(e)&&(e="100%");var n=zJ(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Xp(e){return Math.min(1,Math.max(0,e))}function FJ(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function zJ(e){return typeof e=="string"&&e.indexOf("%")!==-1}function dO(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Qp(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Es(e){return e.length===1?"0"+e:String(e)}function BJ(e,t,n){return{r:kn(e,255)*255,g:kn(t,255)*255,b:kn(n,255)*255}}function Nk(e,t,n){e=kn(e,255),t=kn(t,255),n=kn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=0,u=(r+o)/2;if(r===o)s=0,i=0;else{var c=r-o;switch(s=u>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $J(e,t,n){var r,o,i;if(e=kn(e,360),t=kn(t,100),n=kn(n,100),t===0)o=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=W1(u,s,e+1/3),o=W1(u,s,e),i=W1(u,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Lk(e,t,n){e=kn(e,255),t=kn(t,255),n=kn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=r,u=r-o,c=r===0?0:u/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/u+(t>16,g:(e&65280)>>8,b:e&255}}var U2={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function HJ(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,s=!1,u=!1;return typeof e=="string"&&(e=KJ(e)),typeof e=="object"&&(ki(e.r)&&ki(e.g)&&ki(e.b)?(t=BJ(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ki(e.h)&&ki(e.s)&&ki(e.v)?(r=Qp(e.s),o=Qp(e.v),t=VJ(e.h,r,o),s=!0,u="hsv"):ki(e.h)&&ki(e.s)&&ki(e.l)&&(r=Qp(e.s),i=Qp(e.l),t=$J(e.h,r,i),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=dO(n),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var GJ="[-\\+]?\\d+%?",qJ="[-\\+]?\\d*\\.\\d+%?",ka="(?:".concat(qJ,")|(?:").concat(GJ,")"),j1="[\\s|\\(]+(".concat(ka,")[,|\\s]+(").concat(ka,")[,|\\s]+(").concat(ka,")\\s*\\)?"),U1="[\\s|\\(]+(".concat(ka,")[,|\\s]+(").concat(ka,")[,|\\s]+(").concat(ka,")[,|\\s]+(").concat(ka,")\\s*\\)?"),bo={CSS_UNIT:new RegExp(ka),rgb:new RegExp("rgb"+j1),rgba:new RegExp("rgba"+U1),hsl:new RegExp("hsl"+j1),hsla:new RegExp("hsla"+U1),hsv:new RegExp("hsv"+j1),hsva:new RegExp("hsva"+U1),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function KJ(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(U2[e])e=U2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=bo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=bo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=bo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=bo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=bo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=bo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=bo.hex8.exec(e),n?{r:Tr(n[1]),g:Tr(n[2]),b:Tr(n[3]),a:Fk(n[4]),format:t?"name":"hex8"}:(n=bo.hex6.exec(e),n?{r:Tr(n[1]),g:Tr(n[2]),b:Tr(n[3]),format:t?"name":"hex"}:(n=bo.hex4.exec(e),n?{r:Tr(n[1]+n[1]),g:Tr(n[2]+n[2]),b:Tr(n[3]+n[3]),a:Fk(n[4]+n[4]),format:t?"name":"hex8"}:(n=bo.hex3.exec(e),n?{r:Tr(n[1]+n[1]),g:Tr(n[2]+n[2]),b:Tr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ki(e){return Boolean(bo.CSS_UNIT.exec(String(e)))}var ld=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=UJ(t)),this.originalInput=t;var o=HJ(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,s=t.g/255,u=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),u<=.03928?o=u/12.92:o=Math.pow((u+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=dO(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=Lk(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Lk(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Nk(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Nk(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Dk(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),WJ(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(kn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(kn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Dk(this.r,this.g,this.b,!1),n=0,r=Object.entries(U2);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Xp(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Xp(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Xp(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Xp(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,s=[],u=1/t;t--;)s.push(new e({h:r,s:o,v:i})),i=(i+u)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,s=1;sn.length;)e.count=null,e.seed&&(e.seed+=1),n.push(pO(e));return e.count=t,n}var r=YJ(e.hue,e.seed),o=ZJ(r,e),i=XJ(r,o,e),s={h:r,s:o,v:i};return e.alpha!==void 0&&(s.a=e.alpha),new ld(s)}function YJ(e,t){var n=JJ(e),r=N0(n,t);return r<0&&(r=360+r),r}function ZJ(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return N0([0,100],t.seed);var n=hO(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55;break}return N0([r,o],t.seed)}function XJ(e,t,n){var r=QJ(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100;break}return N0([r,o],n.seed)}function QJ(e,t){for(var n=hO(e).lowerBounds,r=0;r=o&&t<=s){var c=(u-i)/(s-o),f=i-c*o;return c*t+f}}return 0}function JJ(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=gO.find(function(s){return s.name===e});if(n){var r=mO(n);if(r.hueRange)return r.hueRange}var o=new ld(e);if(o.isValid){var i=o.toHsv().h;return[i,i]}}return[0,360]}function hO(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=gO;t=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function N0(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0;t=(t*9301+49297)%233280;var o=t/233280;return Math.floor(r+o*(n-r))}function mO(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}var gO=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];function eee(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,cn=(e,t,n)=>{const r=eee(e,`colors.${t}`,t),{isValid:o}=new ld(r);return o?r:n},nee=e=>t=>{const n=cn(t,e);return new ld(n).isDark()?"dark":"light"},ree=e=>t=>nee(e)(t)==="dark",vu=(e,t)=>n=>{const r=cn(n,e);return new ld(r).setAlpha(t).toRgbString()};function zk(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}function oee(e){const t=pO().toHexString();return!e||tee(e)?t:e.string&&e.colors?aee(e.string,e.colors):e.string&&!e.colors?iee(e.string):e.colors&&!e.string?see(e.colors):t}function iee(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255).toString(16)}`.substr(-2);return n}function aee(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function FS(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function lee(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function vO(e){return lee(e)&&e.reference?e.reference:String(e)}var Zm=(e,...t)=>t.map(vO).join(` ${e} `).replace(/calc/g,""),Bk=(...e)=>`calc(${Zm("+",...e)})`,$k=(...e)=>`calc(${Zm("-",...e)})`,H2=(...e)=>`calc(${Zm("*",...e)})`,Vk=(...e)=>`calc(${Zm("/",...e)})`,Wk=e=>{const t=vO(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:H2(t,-1)},Oi=Object.assign(e=>({add:(...t)=>Oi(Bk(e,...t)),subtract:(...t)=>Oi($k(e,...t)),multiply:(...t)=>Oi(H2(e,...t)),divide:(...t)=>Oi(Vk(e,...t)),negate:()=>Oi(Wk(e)),toString:()=>e.toString()}),{add:Bk,subtract:$k,multiply:H2,divide:Vk,negate:Wk});function uee(e){return!Number.isInteger(parseFloat(e.toString()))}function cee(e,t="-"){return e.replace(/\s+/g,t)}function yO(e){const t=cee(e.toString());return t.includes("\\.")?e:uee(e)?t.replace(".","\\."):e}function fee(e,t=""){return[t,yO(e)].filter(Boolean).join("-")}function dee(e,t){return`var(${yO(e)}${t?`, ${t}`:""})`}function pee(e,t=""){return`--${fee(e,t)}`}function yr(e,t){const n=pee(e,t?.prefix);return{variable:n,reference:dee(n,hee(t?.fallback))}}function hee(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:mee,defineMultiStyleConfig:gee}=Rt(pJ.keys),vee={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},yee={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},bee={pt:"2",px:"4",pb:"5"},xee={fontSize:"1.25em"},See=mee({container:vee,button:yee,panel:bee,icon:xee}),wee=gee({baseStyle:See}),{definePartsStyle:ud,defineMultiStyleConfig:Cee}=Rt(hJ.keys),Ui=Xa("alert-fg"),cd=Xa("alert-bg"),_ee=ud({container:{bg:cd.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ui.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ui.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function zS(e){const{theme:t,colorScheme:n}=e,r=cn(t,`${n}.100`,n),o=vu(`${n}.200`,.16)(t);return J(r,o)(e)}var kee=ud(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[cd.variable]:zS(e),[Ui.variable]:`colors.${n}`}}}),Eee=ud(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[cd.variable]:zS(e),[Ui.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ui.reference}}}),Aee=ud(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[cd.variable]:zS(e),[Ui.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Ui.reference}}}),Pee=ud(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e),r=J("white","gray.900")(e);return{container:{[cd.variable]:`colors.${n}`,[Ui.variable]:`colors.${r}`,color:Ui.reference}}}),Tee={subtle:kee,"left-accent":Eee,"top-accent":Aee,solid:Pee},Iee=Cee({baseStyle:_ee,variants:Tee,defaultProps:{variant:"subtle",colorScheme:"blue"}}),bO={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"},Oee={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"},Ree={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Mee={...bO,...Oee,container:Ree},xO=Mee,Nee=e=>typeof e=="function";function Qt(e,...t){return Nee(e)?e(...t):e}var{definePartsStyle:SO,defineMultiStyleConfig:Lee}=Rt(mJ.keys),Dee=e=>({borderRadius:"full",border:"0.2em solid",borderColor:J("white","gray.800")(e)}),Fee=e=>({bg:J("gray.200","whiteAlpha.400")(e)}),zee=e=>{const{name:t,theme:n}=e,r=t?oee({string:t}):"gray.400",o=ree(r)(n);let i="white";o||(i="gray.800");const s=J("white","gray.800")(e);return{bg:r,color:i,borderColor:s,verticalAlign:"top"}},Bee=SO(e=>({badge:Qt(Dee,e),excessLabel:Qt(Fee,e),container:Qt(zee,e)}));function la(e){const t=e!=="100%"?xO[e]:void 0;return SO({container:{width:e,height:e,fontSize:`calc(${t??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t??e} / 2.5)`,lineHeight:e!=="100%"?t??e:void 0}})}var $ee={"2xs":la(4),xs:la(6),sm:la(8),md:la(12),lg:la(16),xl:la(24),"2xl":la(32),full:la("100%")},Vee=Lee({baseStyle:Bee,sizes:$ee,defaultProps:{size:"md"}}),Wee={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},jee=e=>{const{colorScheme:t,theme:n}=e,r=vu(`${t}.500`,.6)(n);return{bg:J(`${t}.500`,r)(e),color:J("white","whiteAlpha.800")(e)}},Uee=e=>{const{colorScheme:t,theme:n}=e,r=vu(`${t}.200`,.16)(n);return{bg:J(`${t}.100`,r)(e),color:J(`${t}.800`,`${t}.200`)(e)}},Hee=e=>{const{colorScheme:t,theme:n}=e,r=vu(`${t}.200`,.8)(n),o=cn(n,`${t}.500`),i=J(o,r)(e);return{color:i,boxShadow:`inset 0 0 0px 1px ${i}`}},Gee={solid:jee,subtle:Uee,outline:Hee},Kc={baseStyle:Wee,variants:Gee,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:qee,definePartsStyle:Kee}=Rt(gJ.keys),Yee={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Zee=Kee({link:Yee}),Xee=qee({baseStyle:Zee}),Qee={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"}}},wO=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:J("inherit","whiteAlpha.900")(e),_hover:{bg:J("gray.100","whiteAlpha.200")(e)},_active:{bg:J("gray.200","whiteAlpha.300")(e)}};const r=vu(`${t}.200`,.12)(n),o=vu(`${t}.200`,.24)(n);return{color:J(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:J(`${t}.50`,r)(e)},_active:{bg:J(`${t}.100`,o)(e)}}},Jee=e=>{const{colorScheme:t}=e,n=J("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...Qt(wO,e)}},ete={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},tte=e=>{const{colorScheme:t}=e;if(t==="gray"){const u=J("gray.100","whiteAlpha.200")(e);return{bg:u,_hover:{bg:J("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:J("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=ete[t]??{},s=J(n,`${t}.200`)(e);return{bg:s,color:J(r,"gray.800")(e),_hover:{bg:J(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:J(i,`${t}.400`)(e)}}},nte=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)}}},rte={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},ote={ghost:wO,outline:Jee,solid:tte,link:nte,unstyled:rte},ite={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"}},ate={baseStyle:Qee,variants:ote,sizes:ite,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Th,defineMultiStyleConfig:ste}=Rt(vJ.keys),Yc=Xa("checkbox-size"),lte=e=>{const{colorScheme:t}=e;return{w:Yc.reference,h:Yc.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)}}},ute={_disabled:{cursor:"not-allowed"}},cte={userSelect:"none",_disabled:{opacity:.4}},fte={transitionProperty:"transform",transitionDuration:"normal"},dte=Th(e=>({icon:fte,container:ute,control:Qt(lte,e),label:cte})),pte={sm:Th({control:{[Yc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Th({control:{[Yc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Th({control:{[Yc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},L0=ste({baseStyle:dte,sizes:pte,defaultProps:{size:"md",colorScheme:"blue"}}),Zc=yr("close-button-size"),hte=e=>{const t=J("blackAlpha.100","whiteAlpha.100")(e),n=J("blackAlpha.200","whiteAlpha.200")(e);return{w:[Zc.reference],h:[Zc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},mte={lg:{[Zc.variable]:"sizes.10",fontSize:"md"},md:{[Zc.variable]:"sizes.8",fontSize:"xs"},sm:{[Zc.variable]:"sizes.6",fontSize:"2xs"}},gte={baseStyle:hte,sizes:mte,defaultProps:{size:"md"}},{variants:vte,defaultProps:yte}=Kc,bte={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},xte={baseStyle:bte,variants:vte,defaultProps:yte},Ste={w:"100%",mx:"auto",maxW:"prose",px:"4"},wte={baseStyle:Ste},Cte={opacity:.6,borderColor:"inherit"},_te={borderStyle:"solid"},kte={borderStyle:"dashed"},Ete={solid:_te,dashed:kte},Ate={baseStyle:Cte,variants:Ete,defaultProps:{variant:"solid"}},{definePartsStyle:G2,defineMultiStyleConfig:Pte}=Rt(yJ.keys);function Cl(e){return G2(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Tte={bg:"blackAlpha.600",zIndex:"overlay"},Ite={display:"flex",zIndex:"modal",justifyContent:"center"},Ote=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:J("white","gray.700")(e),color:"inherit",boxShadow:J("lg","dark-lg")(e)}},Rte={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Mte={position:"absolute",top:"2",insetEnd:"3"},Nte={px:"6",py:"2",flex:"1",overflow:"auto"},Lte={px:"6",py:"4"},Dte=G2(e=>({overlay:Tte,dialogContainer:Ite,dialog:Qt(Ote,e),header:Rte,closeButton:Mte,body:Nte,footer:Lte})),Fte={xs:Cl("xs"),sm:Cl("md"),md:Cl("lg"),lg:Cl("2xl"),xl:Cl("4xl"),full:Cl("full")},zte=Pte({baseStyle:Dte,sizes:Fte,defaultProps:{size:"xs"}}),{definePartsStyle:Bte,defineMultiStyleConfig:$te}=Rt(bJ.keys),Vte={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Wte={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},jte={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Ute=Bte({preview:Vte,input:Wte,textarea:jte}),Hte=$te({baseStyle:Ute}),{definePartsStyle:Gte,defineMultiStyleConfig:qte}=Rt(xJ.keys),Kte=e=>({marginStart:"1",color:J("red.500","red.300")(e)}),Yte=e=>({mt:"2",color:J("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Zte=Gte(e=>({container:{width:"100%",position:"relative"},requiredIndicator:Qt(Kte,e),helperText:Qt(Yte,e)})),Xte=qte({baseStyle:Zte}),{definePartsStyle:Qte,defineMultiStyleConfig:Jte}=Rt(SJ.keys),ene=e=>({color:J("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),tne=e=>({marginEnd:"0.5em",color:J("red.500","red.300")(e)}),nne=Qte(e=>({text:Qt(ene,e),icon:Qt(tne,e)})),rne=Jte({baseStyle:nne}),one={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},ine={baseStyle:one},ane={fontFamily:"heading",fontWeight:"bold"},sne={"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}},lne={baseStyle:ane,sizes:sne,defaultProps:{size:"xl"}},{definePartsStyle:Ni,defineMultiStyleConfig:une}=Rt(wJ.keys),cne=Ni({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),ua={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},fne={lg:Ni({field:ua.lg,addon:ua.lg}),md:Ni({field:ua.md,addon:ua.md}),sm:Ni({field:ua.sm,addon:ua.sm}),xs:Ni({field:ua.xs,addon:ua.xs})};function BS(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||J("blue.500","blue.300")(e),errorBorderColor:n||J("red.500","red.300")(e)}}var dne=Ni(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=BS(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:cn(t,r),boxShadow:`0 0 0 1px ${cn(t,r)}`},_focusVisible:{zIndex:1,borderColor:cn(t,n),boxShadow:`0 0 0 1px ${cn(t,n)}`}},addon:{border:"1px solid",borderColor:J("inherit","whiteAlpha.50")(e),bg:J("gray.100","whiteAlpha.300")(e)}}}),pne=Ni(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=BS(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:cn(t,r)},_focusVisible:{bg:"transparent",borderColor:cn(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e)}}}),hne=Ni(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=BS(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:cn(t,r),boxShadow:`0px 1px 0px 0px ${cn(t,r)}`},_focusVisible:{borderColor:cn(t,n),boxShadow:`0px 1px 0px 0px ${cn(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),mne=Ni({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),gne={outline:dne,filled:pne,flushed:hne,unstyled:mne},nt=une({baseStyle:cne,sizes:fne,variants:gne,defaultProps:{size:"md",variant:"outline"}}),vne=e=>({bg:J("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),yne={baseStyle:vne},bne={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},xne={baseStyle:bne},{defineMultiStyleConfig:Sne,definePartsStyle:wne}=Rt(CJ.keys),Cne={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},_ne=wne({icon:Cne}),kne=Sne({baseStyle:_ne}),{defineMultiStyleConfig:Ene,definePartsStyle:Ane}=Rt(_J.keys),Pne=e=>({bg:J("#fff","gray.700")(e),boxShadow:J("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),Tne=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:J("gray.100","whiteAlpha.100")(e)},_active:{bg:J("gray.200","whiteAlpha.200")(e)},_expanded:{bg:J("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Ine={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},One={opacity:.6},Rne={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Mne={transitionProperty:"common",transitionDuration:"normal"},Nne=Ane(e=>({button:Mne,list:Qt(Pne,e),item:Qt(Tne,e),groupTitle:Ine,command:One,divider:Rne})),Lne=Ene({baseStyle:Nne}),{defineMultiStyleConfig:Dne,definePartsStyle:q2}=Rt(kJ.keys),Fne={bg:"blackAlpha.600",zIndex:"modal"},zne=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},Bne=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:J("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:J("lg","dark-lg")(e)}},$ne={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Vne={position:"absolute",top:"2",insetEnd:"3"},Wne=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},jne={px:"6",py:"4"},Une=q2(e=>({overlay:Fne,dialogContainer:Qt(zne,e),dialog:Qt(Bne,e),header:$ne,closeButton:Vne,body:Qt(Wne,e),footer:jne}));function yo(e){return q2(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Hne={xs:yo("xs"),sm:yo("sm"),md:yo("md"),lg:yo("lg"),xl:yo("xl"),"2xl":yo("2xl"),"3xl":yo("3xl"),"4xl":yo("4xl"),"5xl":yo("5xl"),"6xl":yo("6xl"),full:yo("full")},Gne=Dne({baseStyle:Une,sizes:Hne,defaultProps:{size:"md"}}),qne={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"}},CO=qne,{defineMultiStyleConfig:Kne,definePartsStyle:_O}=Rt(EJ.keys),$S=yr("number-input-stepper-width"),kO=yr("number-input-input-padding"),Yne=Oi($S).add("0.5rem").toString(),Zne={[$S.variable]:"sizes.6",[kO.variable]:Yne},Xne=e=>{var t;return((t=Qt(nt.baseStyle,e))==null?void 0:t.field)??{}},Qne={width:[$S.reference]},Jne=e=>({borderStart:"1px solid",borderStartColor:J("inherit","whiteAlpha.300")(e),color:J("inherit","whiteAlpha.800")(e),_active:{bg:J("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),ere=_O(e=>({root:Zne,field:Xne,stepperGroup:Qne,stepper:Qt(Jne,e)??{}}));function Jp(e){var t,n;const r=(t=nt.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},i=((n=r.field)==null?void 0:n.fontSize)??"md",s=CO.fontSizes[i];return _O({field:{...r.field,paddingInlineEnd:kO.reference,verticalAlign:"top"},stepper:{fontSize:Oi(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var tre={xs:Jp("xs"),sm:Jp("sm"),md:Jp("md"),lg:Jp("lg")},nre=Kne({baseStyle:ere,sizes:tre,variants:nt.variants,defaultProps:nt.defaultProps}),jk,rre={...(jk=nt.baseStyle)==null?void 0:jk.field,textAlign:"center"},ore={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"}},Uk,ire={outline:e=>{var t,n;return((n=Qt((t=nt.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=Qt((t=nt.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=Qt((t=nt.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((Uk=nt.variants)==null?void 0:Uk.unstyled.field)??{}},are={baseStyle:rre,sizes:ore,variants:ire,defaultProps:nt.defaultProps},{defineMultiStyleConfig:sre,definePartsStyle:lre}=Rt(AJ.keys),H1=yr("popper-bg"),ure=yr("popper-arrow-bg"),cre=yr("popper-arrow-shadow-color"),fre={zIndex:10},dre=e=>{const t=J("white","gray.700")(e),n=J("gray.200","whiteAlpha.300")(e);return{[H1.variable]:`colors.${t}`,bg:H1.reference,[ure.variable]:H1.reference,[cre.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},pre={px:3,py:2,borderBottomWidth:"1px"},hre={px:3,py:2},mre={px:3,py:2,borderTopWidth:"1px"},gre={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},vre=lre(e=>({popper:fre,content:dre(e),header:pre,body:hre,footer:mre,closeButton:gre})),yre=sre({baseStyle:vre}),{defineMultiStyleConfig:bre,definePartsStyle:Ec}=Rt(PJ.keys),xre=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=J(zk(),zk("1rem","rgba(0,0,0,0.1)"))(e),s=J(`${t}.500`,`${t}.200`)(e),u=`linear-gradient( + to right, + transparent 0%, + ${cn(n,s)} 50%, + transparent 100% + )`;return{...!r&&o&&i,...r?{bgImage:u}:{bgColor:s}}},Sre={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},wre=e=>({bg:J("gray.100","whiteAlpha.300")(e)}),Cre=e=>({transitionProperty:"common",transitionDuration:"slow",...xre(e)}),_re=Ec(e=>({label:Sre,filledTrack:Cre(e),track:wre(e)})),kre={xs:Ec({track:{h:"1"}}),sm:Ec({track:{h:"2"}}),md:Ec({track:{h:"3"}}),lg:Ec({track:{h:"4"}})},Ere=bre({sizes:kre,baseStyle:_re,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Are,definePartsStyle:Ih}=Rt(TJ.keys),Pre=e=>{var t;const n=(t=Qt(L0.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Tre=Ih(e=>{var t,n,r,o;return{label:(n=(t=L0).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=L0).baseStyle)==null?void 0:o.call(r,e).container,control:Pre(e)}}),Ire={md:Ih({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ih({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ih({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Ore=Are({baseStyle:Tre,sizes:Ire,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Rre,definePartsStyle:Mre}=Rt(IJ.keys),Nre=e=>{var t;return{...(t=nt.baseStyle)==null?void 0:t.field,bg:J("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:J("white","gray.700")(e)}}},Lre={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Dre=Mre(e=>({field:Nre(e),icon:Lre})),eh={paddingInlineEnd:"8"},Hk,Gk,qk,Kk,Yk,Zk,Xk,Qk,Fre={lg:{...(Hk=nt.sizes)==null?void 0:Hk.lg,field:{...(Gk=nt.sizes)==null?void 0:Gk.lg.field,...eh}},md:{...(qk=nt.sizes)==null?void 0:qk.md,field:{...(Kk=nt.sizes)==null?void 0:Kk.md.field,...eh}},sm:{...(Yk=nt.sizes)==null?void 0:Yk.sm,field:{...(Zk=nt.sizes)==null?void 0:Zk.sm.field,...eh}},xs:{...(Xk=nt.sizes)==null?void 0:Xk.xs,field:{...(Qk=nt.sizes)==null?void 0:Qk.sm.field,...eh},icon:{insetEnd:"1"}}},zre=Rre({baseStyle:Dre,sizes:Fre,variants:nt.variants,defaultProps:nt.defaultProps}),Bre=Xa("skeleton-start-color"),$re=Xa("skeleton-end-color"),Vre=e=>{const t=J("gray.100","gray.800")(e),n=J("gray.400","gray.600")(e),{startColor:r=t,endColor:o=n,theme:i}=e,s=cn(i,r),u=cn(i,o);return{[Bre.variable]:s,[$re.variable]:u,opacity:.7,borderRadius:"2px",borderColor:s,background:u}},Wre={baseStyle:Vre},jre=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:J("white","gray.700")(e)}}),Ure={baseStyle:jre},{defineMultiStyleConfig:Hre,definePartsStyle:Xm}=Rt(OJ.keys),zf=Xa("slider-thumb-size"),Bf=Xa("slider-track-size"),Gre=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...FS({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},qre=e=>({...FS({orientation:e.orientation,horizontal:{h:Bf.reference},vertical:{w:Bf.reference}}),overflow:"hidden",borderRadius:"sm",bg:J("gray.200","whiteAlpha.200")(e),_disabled:{bg:J("gray.300","whiteAlpha.300")(e)}}),Kre=e=>{const{orientation:t}=e;return{...FS({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:zf.reference,h:zf.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"}}},Yre=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:J(`${t}.500`,`${t}.200`)(e)}},Zre=Xm(e=>({container:Gre(e),track:qre(e),thumb:Kre(e),filledTrack:Yre(e)})),Xre=Xm({container:{[zf.variable]:"sizes.4",[Bf.variable]:"sizes.1"}}),Qre=Xm({container:{[zf.variable]:"sizes.3.5",[Bf.variable]:"sizes.1"}}),Jre=Xm({container:{[zf.variable]:"sizes.2.5",[Bf.variable]:"sizes.0.5"}}),eoe={lg:Xre,md:Qre,sm:Jre},toe=Hre({baseStyle:Zre,sizes:eoe,defaultProps:{size:"md",colorScheme:"blue"}}),bs=yr("spinner-size"),noe={width:[bs.reference],height:[bs.reference]},roe={xs:{[bs.variable]:"sizes.3"},sm:{[bs.variable]:"sizes.4"},md:{[bs.variable]:"sizes.6"},lg:{[bs.variable]:"sizes.8"},xl:{[bs.variable]:"sizes.12"}},ooe={baseStyle:noe,sizes:roe,defaultProps:{size:"md"}},{defineMultiStyleConfig:ioe,definePartsStyle:EO}=Rt(RJ.keys),aoe={fontWeight:"medium"},soe={opacity:.8,marginBottom:"2"},loe={verticalAlign:"baseline",fontWeight:"semibold"},uoe={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},coe=EO({container:{},label:aoe,helpText:soe,number:loe,icon:uoe}),foe={md:EO({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},doe=ioe({baseStyle:coe,sizes:foe,defaultProps:{size:"md"}}),{defineMultiStyleConfig:poe,definePartsStyle:Oh}=Rt(MJ.keys),Xc=yr("switch-track-width"),Os=yr("switch-track-height"),G1=yr("switch-track-diff"),hoe=Oi.subtract(Xc,Os),K2=yr("switch-thumb-x"),moe=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Xc.reference],height:[Os.reference],transitionProperty:"common",transitionDuration:"fast",bg:J("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:J(`${t}.500`,`${t}.200`)(e)}}},goe={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Os.reference],height:[Os.reference],_checked:{transform:`translateX(${K2.reference})`}},voe=Oh(e=>({container:{[G1.variable]:hoe,[K2.variable]:G1.reference,_rtl:{[K2.variable]:Oi(G1).negate().toString()}},track:moe(e),thumb:goe})),yoe={sm:Oh({container:{[Xc.variable]:"1.375rem",[Os.variable]:"sizes.3"}}),md:Oh({container:{[Xc.variable]:"1.875rem",[Os.variable]:"sizes.4"}}),lg:Oh({container:{[Xc.variable]:"2.875rem",[Os.variable]:"sizes.6"}})},boe=poe({baseStyle:voe,sizes:yoe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:xoe,definePartsStyle:eu}=Rt(NJ.keys),Soe=eu({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"}}),D0={"&[data-is-numeric=true]":{textAlign:"end"}},woe=eu(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...D0},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...D0},caption:{color:J("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Coe=eu(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...D0},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...D0},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}}}}}}),_oe={simple:woe,striped:Coe,unstyled:{}},koe={sm:eu({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:eu({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:eu({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Eoe=xoe({baseStyle:Soe,variants:_oe,sizes:koe,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:Aoe,definePartsStyle:ti}=Rt(LJ.keys),Poe=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Toe=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}}},Ioe=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},Ooe={p:4},Roe=ti(e=>({root:Poe(e),tab:Toe(e),tablist:Ioe(e),tabpanel:Ooe})),Moe={sm:ti({tab:{py:1,px:4,fontSize:"sm"}}),md:ti({tab:{fontSize:"md",py:2,px:4}}),lg:ti({tab:{fontSize:"lg",py:3,px:4}})},Noe=ti(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=n==="vertical"?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{color:J(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:J("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),Loe=ti(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:J(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:J("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Doe=ti(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:J("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:J("#fff","gray.800")(e),color:J(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Foe=ti(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:cn(n,`${t}.700`),bg:cn(n,`${t}.100`)}}}}),zoe=ti(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:J("gray.600","inherit")(e),_selected:{color:J("#fff","gray.800")(e),bg:J(`${t}.600`,`${t}.300`)(e)}}}}),Boe=ti({}),$oe={line:Noe,enclosed:Loe,"enclosed-colored":Doe,"soft-rounded":Foe,"solid-rounded":zoe,unstyled:Boe},Voe=Aoe({baseStyle:Roe,sizes:Moe,variants:$oe,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:Woe,definePartsStyle:Rs}=Rt(DJ.keys),joe={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},Uoe={lineHeight:1.2,overflow:"visible"},Hoe={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}},Goe=Rs({container:joe,label:Uoe,closeButton:Hoe}),qoe={sm:Rs({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Rs({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Rs({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},Koe={subtle:Rs(e=>{var t;return{container:(t=Kc.variants)==null?void 0:t.subtle(e)}}),solid:Rs(e=>{var t;return{container:(t=Kc.variants)==null?void 0:t.solid(e)}}),outline:Rs(e=>{var t;return{container:(t=Kc.variants)==null?void 0:t.outline(e)}})},Yoe=Woe({variants:Koe,baseStyle:Goe,sizes:qoe,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),Jk,Zoe={...(Jk=nt.baseStyle)==null?void 0:Jk.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},e3,Xoe={outline:e=>{var t;return((t=nt.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=nt.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=nt.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((e3=nt.variants)==null?void 0:e3.unstyled.field)??{}},t3,n3,r3,o3,Qoe={xs:((t3=nt.sizes)==null?void 0:t3.xs.field)??{},sm:((n3=nt.sizes)==null?void 0:n3.sm.field)??{},md:((r3=nt.sizes)==null?void 0:r3.md.field)??{},lg:((o3=nt.sizes)==null?void 0:o3.lg.field)??{}},Joe={baseStyle:Zoe,sizes:Qoe,variants:Xoe,defaultProps:{size:"md",variant:"outline"}},q1=yr("tooltip-bg"),i3=yr("tooltip-fg"),eie=yr("popper-arrow-bg"),tie=e=>{const t=J("gray.700","gray.300")(e),n=J("whiteAlpha.900","gray.900")(e);return{bg:q1.reference,color:i3.reference,[q1.variable]:`colors.${t}`,[i3.variable]:`colors.${n}`,[eie.variable]:q1.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},nie={baseStyle:tie},rie={Accordion:wee,Alert:Iee,Avatar:Vee,Badge:Kc,Breadcrumb:Xee,Button:ate,Checkbox:L0,CloseButton:gte,Code:xte,Container:wte,Divider:Ate,Drawer:zte,Editable:Hte,Form:Xte,FormError:rne,FormLabel:ine,Heading:lne,Input:nt,Kbd:yne,Link:xne,List:kne,Menu:Lne,Modal:Gne,NumberInput:nre,PinInput:are,Popover:yre,Progress:Ere,Radio:Ore,Select:zre,Skeleton:Wre,SkipLink:Ure,Slider:toe,Spinner:ooe,Stat:doe,Switch:boe,Table:Eoe,Tabs:Voe,Tag:Yoe,Textarea:Joe,Tooltip:nie},oie={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},iie=oie,aie={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},sie=aie,lie={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"}},uie=lie,cie={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},fie=cie,die={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"},pie=die,hie={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"},mie={"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)"},gie={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},vie={property:hie,easing:mie,duration:gie},yie=vie,bie={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},xie=bie,Sie={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},wie=Sie,Cie={breakpoints:sie,zIndices:xie,radii:fie,blur:wie,colors:uie,...CO,sizes:xO,shadows:pie,space:bO,borders:iie,transition:yie},_ie={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-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},kie={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",wordWrap:"break-word"}}};function Eie(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Aie=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Pie(e){return Eie(e)?Aie.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var Tie="ltr",Iie={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},AO={semanticTokens:_ie,direction:Tie,...Cie,components:rie,styles:kie,config:Iie};function Oie(e,t){const n=Fn(e);_.exports.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function Y2(e,...t){return Rie(e)?e(...t):e}var Rie=e=>typeof e=="function";function Mie(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return o?.[t]??n}var Nie=(e,t)=>e.find(n=>n.id===t);function a3(e,t){const n=PO(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function PO(e,t){for(const[n,r]of Object.entries(e))if(Nie(r,t))return n}function Lie(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function Die(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var Fie={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Go=zie(Fie);function zie(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(u=>u.id!=o)}))},notify:(o,i)=>{const s=Bie(o,i),{position:u,id:c}=s;return r(f=>{const h=u.includes("top")?[s,...f[u]??[]]:[...f[u]??[],s];return{...f,[u]:h}}),c},update:(o,i)=>{!o||r(s=>{const u={...s},{position:c,index:f}=a3(u,o);return c&&f!==-1&&(u[c][f]={...u[c][f],...i,message:TO(i)}),u})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,f)=>(c[f]=i[f].map(p=>({...p,requestClose:!0})),c),{...i}))},close:o=>{r(i=>{const s=PO(i,o);return s?{...i,[s]:i[s].map(u=>u.id==o?{...u,requestClose:!0}:u)}:i})},isActive:o=>Boolean(a3(Go.getState(),o).position)}}var s3=0;function Bie(e,t={}){s3+=1;const n=t.id??s3,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Go.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var $ie=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:u,icon:c}=e,f=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return ee.createElement(ET,{addRole:!1,status:t,variant:n,id:f?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},w(PT,{children:c}),ee.createElement(ie.div,{flex:"1",maxWidth:"100%"},o&&w(TT,{id:f?.title,children:o}),u&&w(AT,{id:f?.description,display:"block",children:u})),i&&w(lS,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1}))};function TO(e={}){const{render:t,toastComponent:n=$ie}=e;return o=>typeof t=="function"?t(o):w(n,{...o,...e})}function Vie(e,t){const n=o=>({...t,...o,position:Mie(o?.position??t?.position,e)}),r=o=>{const i=n(o),s=TO(i);return Go.notify(s,i)};return r.update=(o,i)=>{Go.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(u=>r.update(s,{status:"success",duration:5e3,...Y2(i.success,u)})).catch(u=>r.update(s,{status:"error",duration:5e3,...Y2(i.error,u)}))},r.closeAll=Go.closeAll,r.close=Go.close,r.isActive=Go.isActive,r}function Wie(e){const{theme:t}=UA();return _.exports.useMemo(()=>Vie(t.direction,e),[e,t.direction])}var jie={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},IO=_.exports.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:u=5e3,containerStyle:c,motionVariants:f=jie,toastSpacing:p="0.5rem"}=e,[h,m]=_.exports.useState(u),v=RU();E0(()=>{v||r?.()},[v]),E0(()=>{m(u)},[u]);const y=()=>m(null),x=()=>m(u),E=()=>{v&&o()};_.exports.useEffect(()=>{v&&i&&o()},[v,i,o]),Oie(E,h);const S=_.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...c}),[c,p]),b=_.exports.useMemo(()=>Lie(s),[s]);return ee.createElement(Io.li,{layout:!0,className:"chakra-toast",variants:f,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:x,custom:{position:s},style:b},ee.createElement(ie.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:S},Y2(n,{id:t,onClose:E})))});IO.displayName="ToastComponent";var Uie=e=>{const t=_.exports.useSyncExternalStore(Go.subscribe,Go.getState,Go.getState),{children:n,motionVariants:r,component:o=IO,portalProps:i}=e,u=Object.keys(t).map(c=>{const f=t[c];return w("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${c}`,style:Die(c),children:w(qi,{initial:!1,children:f.map(p=>w(o,{motionVariants:r,...p},p.id))})},c)});return ne(Bn,{children:[n,w(Us,{...i,children:u})]})};function Hie(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Gie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var qie={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function vc(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var Z2=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},X2=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Kie(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnEsc:i=!0,onOpen:s,onClose:u,placement:c,id:f,isOpen:p,defaultIsOpen:h,arrowSize:m=10,arrowShadowColor:v,arrowPadding:y,modifiers:x,isDisabled:E,gutter:S,offset:b,direction:C,...A}=e,{isOpen:I,onOpen:N,onClose:L}=NZ({isOpen:p,defaultIsOpen:h,onOpen:s,onClose:u}),{referenceRef:$,getPopperProps:K,getArrowInnerProps:W,getArrowProps:te}=RZ({enabled:I,placement:c,arrowPadding:y,modifiers:x,gutter:S,offset:b,direction:C}),we=_.exports.useId(),xe=`tooltip-${f??we}`,ue=_.exports.useRef(null),ve=_.exports.useRef(),Ae=_.exports.useRef(),j=_.exports.useCallback(()=>{Ae.current&&(clearTimeout(Ae.current),Ae.current=void 0),L()},[L]),Z=Yie(ue,j),q=_.exports.useCallback(()=>{if(!E&&!ve.current){Z();const fe=X2(ue);ve.current=fe.setTimeout(N,t)}},[Z,E,N,t]),R=_.exports.useCallback(()=>{ve.current&&(clearTimeout(ve.current),ve.current=void 0);const fe=X2(ue);Ae.current=fe.setTimeout(j,n)},[n,j]),H=_.exports.useCallback(()=>{I&&r&&R()},[r,R,I]),se=_.exports.useCallback(()=>{I&&o&&R()},[o,R,I]),le=_.exports.useCallback(fe=>{I&&fe.key==="Escape"&&R()},[I,R]);R2(()=>Z2(ue),"keydown",i?le:void 0),_.exports.useEffect(()=>()=>{clearTimeout(ve.current),clearTimeout(Ae.current)},[]),R2(()=>ue.current,"mouseleave",R);const he=_.exports.useCallback((fe={},Pe=null)=>({...fe,ref:Xn(ue,Pe,$),onMouseEnter:vc(fe.onMouseEnter,q),onClick:vc(fe.onClick,H),onMouseDown:vc(fe.onMouseDown,se),onFocus:vc(fe.onFocus,q),onBlur:vc(fe.onBlur,R),"aria-describedby":I?xe:void 0}),[q,R,se,I,xe,H,$]),ge=_.exports.useCallback((fe={},Pe=null)=>K({...fe,style:{...fe.style,[Cn.arrowSize.var]:m?`${m}px`:void 0,[Cn.arrowShadowColor.var]:v}},Pe),[K,m,v]),Ee=_.exports.useCallback((fe={},Pe=null)=>{const Le={...fe.style,position:"relative",transformOrigin:Cn.transformOrigin.varRef};return{ref:Pe,...A,...fe,id:xe,role:"tooltip",style:Le}},[A,xe]);return{isOpen:I,show:q,hide:R,getTriggerProps:he,getTooltipProps:Ee,getTooltipPositionerProps:ge,getArrowProps:te,getArrowInnerProps:W}}var K1="chakra-ui:close-tooltip";function Yie(e,t){return _.exports.useEffect(()=>{const n=Z2(e);return n.addEventListener(K1,t),()=>n.removeEventListener(K1,t)},[t,e]),()=>{const n=Z2(e),r=X2(e);n.dispatchEvent(new r.CustomEvent(K1))}}var Zie=ie(Io.div),Fa=de((e,t)=>{const n=er("Tooltip",e),r=xt(e),o=Px(),{children:i,label:s,shouldWrapChildren:u,"aria-label":c,hasArrow:f,bg:p,portalProps:h,background:m,backgroundColor:v,bgColor:y,...x}=r,E=m??v??p??y;if(E){n.bg=E;const $=k$(o,"colors",E);n[Cn.arrowBg.var]=$}const S=Kie({...x,direction:o.direction}),b=typeof i=="string"||u;let C;if(b)C=ee.createElement(ie.span,{tabIndex:0,...S.getTriggerProps()},i);else{const $=_.exports.Children.only(i);C=_.exports.cloneElement($,S.getTriggerProps($.props,$.ref))}const A=!!c,I=S.getTooltipProps({},t),N=A?Hie(I,["role","id"]):I,L=Gie(I,["role","id"]);return s?ne(Bn,{children:[C,w(qi,{children:S.isOpen&&ee.createElement(Us,{...h},ee.createElement(ie.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},ne(Zie,{variants:qie,...N,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[s,A&&ee.createElement(ie.span,{srOnly:!0,...L},c),f&&ee.createElement(ie.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},ee.createElement(ie.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]})))})]}):w(Bn,{children:i})});Fa.displayName="Tooltip";var Xie=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetCSS:o=!0,theme:i={},environment:s,cssVarsRoot:u}=e,c=w(JT,{environment:s,children:t});return w(jV,{theme:i,cssVarsRoot:u,children:ne(dA,{colorModeManager:n,options:i.config,children:[o?w(wK,{}):w(SK,{}),w(HV,{}),r?w(cI,{zIndex:r,children:c}):c]})})};function Qie({children:e,theme:t=AO,toastOptions:n,...r}){return ne(Xie,{theme:t,...r,children:[e,w(Uie,{...n})]})}function Jie(...e){let t=[...e],n=e[e.length-1];return Pie(n)&&t.length>1?t=t.slice(0,t.length-1):n=AO,EV(...t.map(r=>o=>zl(r)?r(o):eae(o,r)))(n)}function eae(...e){return Va({},...e,OO)}function OO(e,t,n,r){if((zl(e)||zl(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=zl(e)?e(...o):e,s=zl(t)?t(...o):t;return Va({},i,s,OO)}}function _o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:VS(e)?2:WS(e)?3:0}function tu(e,t){return Pu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function tae(e,t){return Pu(e)===2?e.get(t):e[t]}function RO(e,t,n){var r=Pu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function MO(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function VS(e){return sae&&e instanceof Map}function WS(e){return lae&&e instanceof Set}function vs(e){return e.o||e.t}function jS(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=LO(e);delete t[It];for(var n=nu(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=nae),Object.freeze(e),t&&Bs(e,function(n,r){return US(r,!0)},!0)),e}function nae(){_o(2)}function HS(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ni(e){var t=tb[e];return t||_o(18,e),t}function rae(e,t){tb[e]||(tb[e]=t)}function Q2(){return $f}function Y1(e,t){t&&(ni("Patches"),e.u=[],e.s=[],e.v=t)}function F0(e){J2(e),e.p.forEach(oae),e.p=null}function J2(e){e===$f&&($f=e.l)}function l3(e){return $f={p:[],l:$f,h:e,m:!0,_:0}}function oae(e){var t=e[It];t.i===0||t.i===1?t.j():t.O=!0}function Z1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ni("ES5").S(t,e,r),r?(n[It].P&&(F0(t),_o(4)),Hi(e)&&(e=z0(t,e),t.l||B0(t,e)),t.u&&ni("Patches").M(n[It].t,e,t.u,t.s)):e=z0(t,n,[]),F0(t),t.u&&t.v(t.u,t.s),e!==NO?e:void 0}function z0(e,t,n){if(HS(t))return t;var r=t[It];if(!r)return Bs(t,function(i,s){return u3(e,r,t,i,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return B0(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=jS(r.k):r.o;Bs(r.i===3?new Set(o):o,function(i,s){return u3(e,r,o,i,s,n)}),B0(e,o,!1),n&&e.u&&ni("Patches").R(r,n,e.u,e.s)}return r.o}function u3(e,t,n,r,o,i){if(Ga(o)){var s=z0(e,o,i&&t&&t.i!==3&&!tu(t.D,r)?i.concat(r):void 0);if(RO(n,r,s),!Ga(s))return;e.m=!1}if(Hi(o)&&!HS(o)){if(!e.h.F&&e._<1)return;z0(e,o),t&&t.A.l||B0(e,o)}}function B0(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&US(t,n)}function X1(e,t){var n=e[It];return(n?vs(n):e)[t]}function c3(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ba(e){e.P||(e.P=!0,e.l&&ba(e.l))}function Q1(e){e.o||(e.o=jS(e.t))}function eb(e,t,n){var r=VS(t)?ni("MapSet").N(t,n):WS(t)?ni("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),u={i:s?1:0,A:i?i.A:Q2(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=u,f=Vf;s&&(c=[u],f=Ac);var p=Proxy.revocable(c,f),h=p.revoke,m=p.proxy;return u.k=m,u.j=h,m}(t,n):ni("ES5").J(t,n);return(n?n.A:Q2()).p.push(r),r}function iae(e){return Ga(e)||_o(22,e),function t(n){if(!Hi(n))return n;var r,o=n[It],i=Pu(n);if(o){if(!o.P&&(o.i<4||!ni("ES5").K(o)))return o.t;o.I=!0,r=f3(n,i),o.I=!1}else r=f3(n,i);return Bs(r,function(s,u){o&&tae(o.t,s)===u||RO(r,s,t(u))}),i===3?new Set(r):r}(e)}function f3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return jS(e)}function aae(){function e(i,s){var u=o[i];return u?u.enumerable=s:o[i]=u={configurable:!0,enumerable:s,get:function(){var c=this[It];return Vf.get(c,i)},set:function(c){var f=this[It];Vf.set(f,i,c)}},u}function t(i){for(var s=i.length-1;s>=0;s--){var u=i[s][It];if(!u.P)switch(u.i){case 5:r(u)&&ba(u);break;case 4:n(u)&&ba(u)}}}function n(i){for(var s=i.t,u=i.k,c=nu(u),f=c.length-1;f>=0;f--){var p=c[f];if(p!==It){var h=s[p];if(h===void 0&&!tu(s,p))return!0;var m=u[p],v=m&&m[It];if(v?v.t!==h:!MO(m,h))return!0}}var y=!!s[It];return c.length!==nu(s).length+(y?0:1)}function r(i){var s=i.k;if(s.length!==i.t.length)return!0;var u=Object.getOwnPropertyDescriptor(s,s.length-1);if(u&&!u.get)return!0;for(var c=0;c1?S-1:0),C=1;C1?p-1:0),m=1;m=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=ni("Patches").$;return Ga(n)?s(n,r):this.produce(n,function(u){return s(u,r)})},e}(),Dr=new cae,DO=Dr.produce;Dr.produceWithPatches.bind(Dr);Dr.setAutoFreeze.bind(Dr);Dr.setUseProxies.bind(Dr);Dr.applyPatches.bind(Dr);Dr.createDraft.bind(Dr);Dr.finishDraft.bind(Dr);function m3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function g3(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ln(1));return n(qS)(e,t)}if(typeof e!="function")throw new Error(Ln(2));var o=e,i=t,s=[],u=s,c=!1;function f(){u===s&&(u=s.slice())}function p(){if(c)throw new Error(Ln(3));return i}function h(x){if(typeof x!="function")throw new Error(Ln(4));if(c)throw new Error(Ln(5));var E=!0;return f(),u.push(x),function(){if(!!E){if(c)throw new Error(Ln(6));E=!1,f();var b=u.indexOf(x);u.splice(b,1),s=null}}}function m(x){if(!fae(x))throw new Error(Ln(7));if(typeof x.type>"u")throw new Error(Ln(8));if(c)throw new Error(Ln(9));try{c=!0,i=o(i,x)}finally{c=!1}for(var E=s=u,S=0;S"u")throw new Error(Ln(12));if(typeof n(void 0,{type:$0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ln(13))})}function FO(e){for(var t=Object.keys(e),n={},r=0;r"u")throw f&&f.type,new Error(Ln(14));h[v]=E,p=p||E!==x}return p=p||i.length!==Object.keys(c).length,p?h:c}}function V0(){for(var e=arguments.length,t=new Array(e),n=0;n-1){var f=n[c];return c>0&&(n.splice(c,1),n.unshift(f)),f.value}return W0}function o(u,c){r(u)===W0&&(n.unshift({key:u,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var gae=function(t,n){return t===n};function vae(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?jae:Wae;WO.useSyncExternalStore=yu.useSyncExternalStore!==void 0?yu.useSyncExternalStore:Uae;(function(e){e.exports=WO})(VO);var jO={exports:{}},UO={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qm=_.exports,Hae=VO.exports;function Gae(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qae=typeof Object.is=="function"?Object.is:Gae,Kae=Hae.useSyncExternalStore,Yae=Qm.useRef,Zae=Qm.useEffect,Xae=Qm.useMemo,Qae=Qm.useDebugValue;UO.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Yae(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Xae(function(){function c(v){if(!f){if(f=!0,p=v,v=r(v),o!==void 0&&s.hasValue){var y=s.value;if(o(y,v))return h=y}return h=v}if(y=h,qae(p,v))return y;var x=r(v);return o!==void 0&&o(y,x)?y:(p=v,h=x)}var f=!1,p,h,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,o]);var u=Kae(e,i[0],i[1]);return Zae(function(){s.hasValue=!0,s.value=u},[u]),Qae(u),u};(function(e){e.exports=UO})(jO);function Jae(e){e()}let HO=Jae;const ese=e=>HO=e,tse=()=>HO,qa=ee.createContext(null);function GO(){return _.exports.useContext(qa)}const nse=()=>{throw new Error("uSES not initialized!")};let qO=nse;const rse=e=>{qO=e},ose=(e,t)=>e===t;function ise(e=qa){const t=e===qa?GO:()=>_.exports.useContext(e);return function(r,o=ose){const{store:i,subscription:s,getServerState:u}=t(),c=qO(s.addNestedSub,i.getState,u||i.getState,r,o);return _.exports.useDebugValue(c),c}}const ase=ise();var sse={exports:{}},pt={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ZS=Symbol.for("react.element"),XS=Symbol.for("react.portal"),Jm=Symbol.for("react.fragment"),eg=Symbol.for("react.strict_mode"),tg=Symbol.for("react.profiler"),ng=Symbol.for("react.provider"),rg=Symbol.for("react.context"),lse=Symbol.for("react.server_context"),og=Symbol.for("react.forward_ref"),ig=Symbol.for("react.suspense"),ag=Symbol.for("react.suspense_list"),sg=Symbol.for("react.memo"),lg=Symbol.for("react.lazy"),use=Symbol.for("react.offscreen"),KO;KO=Symbol.for("react.module.reference");function so(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ZS:switch(e=e.type,e){case Jm:case tg:case eg:case ig:case ag:return e;default:switch(e=e&&e.$$typeof,e){case lse:case rg:case og:case lg:case sg:case ng:return e;default:return t}}case XS:return t}}}pt.ContextConsumer=rg;pt.ContextProvider=ng;pt.Element=ZS;pt.ForwardRef=og;pt.Fragment=Jm;pt.Lazy=lg;pt.Memo=sg;pt.Portal=XS;pt.Profiler=tg;pt.StrictMode=eg;pt.Suspense=ig;pt.SuspenseList=ag;pt.isAsyncMode=function(){return!1};pt.isConcurrentMode=function(){return!1};pt.isContextConsumer=function(e){return so(e)===rg};pt.isContextProvider=function(e){return so(e)===ng};pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ZS};pt.isForwardRef=function(e){return so(e)===og};pt.isFragment=function(e){return so(e)===Jm};pt.isLazy=function(e){return so(e)===lg};pt.isMemo=function(e){return so(e)===sg};pt.isPortal=function(e){return so(e)===XS};pt.isProfiler=function(e){return so(e)===tg};pt.isStrictMode=function(e){return so(e)===eg};pt.isSuspense=function(e){return so(e)===ig};pt.isSuspenseList=function(e){return so(e)===ag};pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jm||e===tg||e===eg||e===ig||e===ag||e===use||typeof e=="object"&&e!==null&&(e.$$typeof===lg||e.$$typeof===sg||e.$$typeof===ng||e.$$typeof===rg||e.$$typeof===og||e.$$typeof===KO||e.getModuleId!==void 0)};pt.typeOf=so;(function(e){e.exports=pt})(sse);function cse(){const e=tse();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const S3={notify(){},get:()=>[]};function fse(e,t){let n,r=S3;function o(h){return c(),r.subscribe(h)}function i(){r.notify()}function s(){p.onStateChange&&p.onStateChange()}function u(){return Boolean(n)}function c(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=cse())}function f(){n&&(n(),n=void 0,r.clear(),r=S3)}const p={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:s,isSubscribed:u,trySubscribe:c,tryUnsubscribe:f,getListeners:()=>r};return p}const dse=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pse=dse?_.exports.useLayoutEffect:_.exports.useEffect;function hse({store:e,context:t,children:n,serverState:r}){const o=_.exports.useMemo(()=>{const u=fse(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0}},[e,r]),i=_.exports.useMemo(()=>e.getState(),[e]);return pse(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),i!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,i]),w((t||qa).Provider,{value:o,children:n})}function YO(e=qa){const t=e===qa?GO:()=>_.exports.useContext(e);return function(){const{store:r}=t();return r}}const mse=YO();function gse(e=qa){const t=e===qa?mse:YO(e);return function(){return t().dispatch}}const vse=gse();rse(jO.exports.useSyncExternalStoreWithSelector);ese(Gf.exports.unstable_batchedUpdates);var QS="persist:",ZO="persist/FLUSH",JS="persist/REHYDRATE",XO="persist/PAUSE",QO="persist/PERSIST",JO="persist/PURGE",e9="persist/REGISTER",yse=-1;function Rh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rh=function(n){return typeof n}:Rh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rh(e)}function w3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bse(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Ise(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Ose=5e3;function t9(e,t){var n=e.version!==void 0?e.version:yse;e.debug;var r=e.stateReconciler===void 0?Sse:e.stateReconciler,o=e.getStoredState||_se,i=e.timeout!==void 0?e.timeout:Ose,s=null,u=!1,c=!0,f=function(h){return h._persist.rehydrated&&s&&!c&&s.update(h),h};return function(p,h){var m=p||{},v=m._persist,y=Tse(m,["_persist"]),x=y;if(h.type===QO){var E=!1,S=function($,K){E||(h.rehydrate(e.key,$,K),E=!0)};if(i&&setTimeout(function(){!E&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),c=!1,s||(s=wse(e)),v)return Ei({},t(x,h),{_persist:v});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),o(e).then(function(L){var $=e.migrate||function(K,W){return Promise.resolve(K)};$(L,n).then(function(K){S(K)},function(K){S(void 0,K)})},function(L){S(void 0,L)}),Ei({},t(x,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===JO)return u=!0,h.result(Ese(e)),Ei({},t(x,h),{_persist:v});if(h.type===ZO)return h.result(s&&s.flush()),Ei({},t(x,h),{_persist:v});if(h.type===XO)c=!0;else if(h.type===JS){if(u)return Ei({},x,{_persist:Ei({},v,{rehydrated:!0})});if(h.key===e.key){var b=t(x,h),C=h.payload,A=r!==!1&&C!==void 0?r(C,p,b,e):b,I=Ei({},A,{_persist:Ei({},v,{rehydrated:!0})});return f(I)}}}if(!v)return t(p,h);var N=t(x,h);return N===x?p:f(Ei({},N,{_persist:v}))}}function _3(e){return Nse(e)||Mse(e)||Rse()}function Rse(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Mse(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Nse(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:n9,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case e9:return rb({},t,{registry:[].concat(_3(t.registry),[n.key])});case JS:var r=t.registry.indexOf(n.key),o=_3(t.registry);return o.splice(r,1),rb({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function Fse(e,t,n){var r=n||!1,o=qS(Dse,n9,t&&t.enhancer?t.enhancer:void 0),i=function(f){o.dispatch({type:e9,key:f})},s=function(f,p,h){var m={type:JS,payload:p,err:h,key:f};e.dispatch(m),o.dispatch(m),r&&u.getState().bootstrapped&&(r(),r=!1)},u=rb({},o,{purge:function(){var f=[];return e.dispatch({type:JO,result:function(h){f.push(h)}}),Promise.all(f)},flush:function(){var f=[];return e.dispatch({type:ZO,result:function(h){f.push(h)}}),Promise.all(f)},pause:function(){e.dispatch({type:XO})},persist:function(){e.dispatch({type:QO,register:i,rehydrate:s})}});return t&&t.manualPersist||u.persist(),u}var ew={},tw={};tw.__esModule=!0;tw.default=$se;function Mh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mh=function(n){return typeof n}:Mh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mh(e)}function ty(){}var zse={getItem:ty,setItem:ty,removeItem:ty};function Bse(e){if((typeof self>"u"?"undefined":Mh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function $se(e){var t="".concat(e,"Storage");return Bse(t)?self[t]:zse}ew.__esModule=!0;ew.default=jse;var Vse=Wse(tw);function Wse(e){return e&&e.__esModule?e:{default:e}}function jse(e){var t=(0,Vse.default)(e);return{getItem:function(r){return new Promise(function(o,i){o(t.getItem(r))})},setItem:function(r,o){return new Promise(function(i,s){i(t.setItem(r,o))})},removeItem:function(r){return new Promise(function(o,i){o(t.removeItem(r))})}}}var nw=void 0,Use=Hse(ew);function Hse(e){return e&&e.__esModule?e:{default:e}}var Gse=(0,Use.default)("local");nw=Gse;const ob=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),qse=e=>{const r=e.split(",").map(o=>o.split(":")).map(o=>({seed:parseInt(o[0]),weight:parseFloat(o[1])}));return rw(r)?r:!1},rw=e=>Boolean(typeof e=="string"?qse(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,o=!isNaN(parseInt(n.toString(),10)),i=!isNaN(parseInt(r.toString(),10))&&r>=0&&r<=1;return!(o&&i)})),ib=e=>e.reduce((t,n,r,o)=>{const{seed:i,weight:s}=n;return t+=`${i}:${s}`,r!==o.length-1&&(t+=","),t},""),Kse=e=>e.split(",").map(r=>r.split(":")).map(r=>[parseInt(r[0]),parseFloat(r[1])]),r9={prompt:"",iterations:1,steps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",threshold:0,perlin:0,seed:0,seamless:!1,shouldUseInitImage:!1,img2imgStrength:.75,initialImagePath:"",maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variationAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunGFPGAN:!1,gfpganStrength:.8,shouldRandomizeSeed:!0},Yse=r9,o9=KS({name:"options",initialState:Yse,reducers:{setPrompt:(e,t)=>{const n=t.payload;typeof n=="string"?e.prompt=n:e.prompt=ob(n)},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{e.steps=t.payload},setCfgScale:(e,t)=>{e.cfgScale=t.payload},setThreshold:(e,t)=>{e.threshold=t.payload},setPerlin:(e,t)=>{e.perlin=t.payload},setHeight:(e,t)=>{e.height=t.payload},setWidth:(e,t)=>{e.width=t.payload},setSampler:(e,t)=>{e.sampler=t.payload},setSeed:(e,t)=>{e.seed=t.payload,e.shouldRandomizeSeed=!1},setImg2imgStrength:(e,t)=>{e.img2imgStrength=t.payload},setGfpganStrength:(e,t)=>{e.gfpganStrength=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setShouldUseInitImage:(e,t)=>{e.shouldUseInitImage=t.payload},setInitialImagePath:(e,t)=>{const n=t.payload;e.shouldUseInitImage=!!n,e.initialImagePath=n},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:n,value:r}=t.payload,o={...e,[n]:r};return n==="seed"&&(o.shouldRandomizeSeed=!1),n==="initialImagePath"&&r===""&&(o.shouldUseInitImage=!1),o},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllParameters:(e,t)=>{const{type:n,postprocessing:r,sampler:o,prompt:i,seed:s,variations:u,steps:c,cfg_scale:f,threshold:p,perlin:h,seamless:m,width:v,height:y,strength:x,fit:E,init_image_path:S,mask_image_path:b}=t.payload.image;n==="img2img"?(S&&(e.initialImagePath=S),b&&(e.maskPath=b),x&&(e.img2imgStrength=x),typeof E=="boolean"&&(e.shouldFitToWidthHeight=E),e.shouldUseInitImage=!0):e.shouldUseInitImage=!1,u&&u.length>0?(e.seedWeights=ib(u),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,s&&(e.seed=s,e.shouldRandomizeSeed=!1);let C=["gfpgan","esrgan"];r&&r.length>0&&r.forEach(A=>{if(A.type==="gfpgan"){const{strength:I}=A;I&&(e.gfpganStrength=I),e.shouldRunGFPGAN=!0,C=C.filter(N=>N!=="gfpgan")}if(A.type==="esrgan"){const{scale:I,strength:N}=A;I&&(e.upscalingLevel=I),N&&(e.upscalingStrength=N),e.shouldRunESRGAN=!0,C=C.filter(L=>L!=="esrgan")}}),C.forEach(A=>{A==="esrgan"&&(e.shouldRunESRGAN=!1),A==="gfpgan"&&(e.shouldRunGFPGAN=!1)}),i&&(e.prompt=ob(i)),o&&(e.sampler=o),c&&(e.steps=c),f&&(e.cfgScale=f),p&&(e.threshold=p),h&&(e.perlin=h),typeof m=="boolean"&&(e.seamless=m),v&&(e.width=v),y&&(e.height=y)},resetOptionsState:e=>({...e,...r9}),setShouldRunGFPGAN:(e,t)=>{e.shouldRunGFPGAN=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload}}}),{setPrompt:i9,setIterations:Zse,setSteps:a9,setCfgScale:s9,setThreshold:Xse,setPerlin:Qse,setHeight:l9,setWidth:ab,setSampler:u9,setSeed:jf,setSeamless:Jse,setImg2imgStrength:c9,setGfpganStrength:sb,setUpscalingLevel:lb,setUpscalingStrength:ub,setShouldUseInitImage:ele,setInitialImagePath:ug,setMaskPath:ow,resetSeed:qfe,resetOptionsState:Kfe,setShouldFitToWidthHeight:f9,setParameter:Yfe,setShouldGenerateVariations:tle,setSeedWeights:d9,setVariationAmount:nle,setAllParameters:p9,setShouldRunGFPGAN:rle,setShouldRunESRGAN:ole,setShouldRandomizeSeed:ile}=o9.actions,ale=o9.reducer;var Ht={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,v=4,y=1,x=2,E=1,S=2,b=4,C=8,A=16,I=32,N=64,L=128,$=256,K=512,W=30,te="...",we=800,_e=16,xe=1,ue=2,ve=3,Ae=1/0,j=9007199254740991,Z=17976931348623157e292,q=0/0,R=4294967295,H=R-1,se=R>>>1,le=[["ary",L],["bind",E],["bindKey",S],["curry",C],["curryRight",A],["flip",K],["partial",I],["partialRight",N],["rearg",$]],he="[object Arguments]",ge="[object Array]",Ee="[object AsyncFunction]",fe="[object Boolean]",Pe="[object Date]",Le="[object DOMException]",gt="[object Error]",Mt="[object Function]",Pn="[object GeneratorFunction]",ye="[object Map]",Nt="[object Number]",en="[object Null]",at="[object Object]",br="[object Promise]",xr="[object Proxy]",St="[object RegExp]",kt="[object Set]",tn="[object String]",$t="[object Symbol]",ce="[object Undefined]",Ce="[object WeakMap]",st="[object WeakSet]",rt="[object ArrayBuffer]",re="[object DataView]",je="[object Float32Array]",wt="[object Float64Array]",gn="[object Int8Array]",Tn="[object Int16Array]",Sr="[object Int32Array]",Oo="[object Uint8Array]",ui="[object Uint8ClampedArray]",$n="[object Uint16Array]",Vr="[object Uint32Array]",Ja=/\b__p \+= '';/g,qs=/\b(__p \+=) '' \+/g,fg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Iu=/&(?:amp|lt|gt|quot|#39);/g,Ki=/[&<>"']/g,dg=RegExp(Iu.source),ci=RegExp(Ki.source),pg=/<%-([\s\S]+?)%>/g,hg=/<%([\s\S]+?)%>/g,dd=/<%=([\s\S]+?)%>/g,mg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gg=/^\w*$/,lo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ou=/[\\^$.*+?()[\]{}|]/g,vg=RegExp(Ou.source),Ru=/^\s+/,yg=/\s/,bg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yi=/\{\n\/\* \[wrapped with (.+)\] \*/,xg=/,? & /,Sg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wg=/[()=,{}\[\]\/\s]/,Cg=/\\(\\)?/g,_g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fi=/\w*$/,kg=/^[-+]0x[0-9a-f]+$/i,Eg=/^0b[01]+$/i,Ag=/^\[object .+?Constructor\]$/,Pg=/^0o[0-7]+$/i,Tg=/^(?:0|[1-9]\d*)$/,Ig=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zi=/($^)/,Og=/['\n\r\u2028\u2029\\]/g,di="\\ud800-\\udfff",Mu="\\u0300-\\u036f",Rg="\\ufe20-\\ufe2f",Ks="\\u20d0-\\u20ff",Nu=Mu+Rg+Ks,pd="\\u2700-\\u27bf",hd="a-z\\xdf-\\xf6\\xf8-\\xff",Mg="\\xac\\xb1\\xd7\\xf7",md="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ng="\\u2000-\\u206f",Lg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gd="A-Z\\xc0-\\xd6\\xd8-\\xde",vd="\\ufe0e\\ufe0f",yd=Mg+md+Ng+Lg,Lu="['\u2019]",Dg="["+di+"]",bd="["+yd+"]",Ys="["+Nu+"]",xd="\\d+",Zs="["+pd+"]",Xs="["+hd+"]",Sd="[^"+di+yd+xd+pd+hd+gd+"]",Du="\\ud83c[\\udffb-\\udfff]",wd="(?:"+Ys+"|"+Du+")",Cd="[^"+di+"]",Fu="(?:\\ud83c[\\udde6-\\uddff]){2}",zu="[\\ud800-\\udbff][\\udc00-\\udfff]",pi="["+gd+"]",_d="\\u200d",kd="(?:"+Xs+"|"+Sd+")",Fg="(?:"+pi+"|"+Sd+")",Qs="(?:"+Lu+"(?:d|ll|m|re|s|t|ve))?",Ed="(?:"+Lu+"(?:D|LL|M|RE|S|T|VE))?",Ad=wd+"?",Pd="["+vd+"]?",Js="(?:"+_d+"(?:"+[Cd,Fu,zu].join("|")+")"+Pd+Ad+")*",Bu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$u="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",el=Pd+Ad+Js,zg="(?:"+[Zs,Fu,zu].join("|")+")"+el,Td="(?:"+[Cd+Ys+"?",Ys,Fu,zu,Dg].join("|")+")",Vu=RegExp(Lu,"g"),Id=RegExp(Ys,"g"),uo=RegExp(Du+"(?="+Du+")|"+Td+el,"g"),es=RegExp([pi+"?"+Xs+"+"+Qs+"(?="+[bd,pi,"$"].join("|")+")",Fg+"+"+Ed+"(?="+[bd,pi+kd,"$"].join("|")+")",pi+"?"+kd+"+"+Qs,pi+"+"+Ed,$u,Bu,xd,zg].join("|"),"g"),Bg=RegExp("["+_d+di+Nu+vd+"]"),Od=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$g=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rd=-1,vt={};vt[je]=vt[wt]=vt[gn]=vt[Tn]=vt[Sr]=vt[Oo]=vt[ui]=vt[$n]=vt[Vr]=!0,vt[he]=vt[ge]=vt[rt]=vt[fe]=vt[re]=vt[Pe]=vt[gt]=vt[Mt]=vt[ye]=vt[Nt]=vt[at]=vt[St]=vt[kt]=vt[tn]=vt[Ce]=!1;var ht={};ht[he]=ht[ge]=ht[rt]=ht[re]=ht[fe]=ht[Pe]=ht[je]=ht[wt]=ht[gn]=ht[Tn]=ht[Sr]=ht[ye]=ht[Nt]=ht[at]=ht[St]=ht[kt]=ht[tn]=ht[$t]=ht[Oo]=ht[ui]=ht[$n]=ht[Vr]=!0,ht[gt]=ht[Mt]=ht[Ce]=!1;var Md={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Vg={"&":"&","<":"<",">":">",'"':""","'":"'"},O={"&":"&","<":"<",">":">",""":'"',"'":"'"},F={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},U=parseFloat,me=parseInt,Ue=typeof Ii=="object"&&Ii&&Ii.Object===Object&&Ii,lt=typeof self=="object"&&self&&self.Object===Object&&self,Fe=Ue||lt||Function("return this")(),$e=t&&!t.nodeType&&t,Qe=$e&&!0&&e&&!e.nodeType&&e,Vn=Qe&&Qe.exports===$e,vn=Vn&&Ue.process,fn=function(){try{var B=Qe&&Qe.require&&Qe.require("util").types;return B||vn&&vn.binding&&vn.binding("util")}catch{}}(),tl=fn&&fn.isArrayBuffer,nl=fn&&fn.isDate,Wu=fn&&fn.isMap,lw=fn&&fn.isRegExp,uw=fn&&fn.isSet,cw=fn&&fn.isTypedArray;function wr(B,Y,G){switch(G.length){case 0:return B.call(Y);case 1:return B.call(Y,G[0]);case 2:return B.call(Y,G[0],G[1]);case 3:return B.call(Y,G[0],G[1],G[2])}return B.apply(Y,G)}function e8(B,Y,G,be){for(var Ne=-1,Je=B==null?0:B.length;++Ne-1}function Wg(B,Y,G){for(var be=-1,Ne=B==null?0:B.length;++be-1;);return G}function yw(B,Y){for(var G=B.length;G--&&rl(Y,B[G],0)>-1;);return G}function u8(B,Y){for(var G=B.length,be=0;G--;)B[G]===Y&&++be;return be}var c8=Gg(Md),f8=Gg(Vg);function d8(B){return"\\"+F[B]}function p8(B,Y){return B==null?n:B[Y]}function ol(B){return Bg.test(B)}function h8(B){return Od.test(B)}function m8(B){for(var Y,G=[];!(Y=B.next()).done;)G.push(Y.value);return G}function Zg(B){var Y=-1,G=Array(B.size);return B.forEach(function(be,Ne){G[++Y]=[Ne,be]}),G}function bw(B,Y){return function(G){return B(Y(G))}}function Ji(B,Y){for(var G=-1,be=B.length,Ne=0,Je=[];++G-1}function nR(a,l){var d=this.__data__,g=Xd(d,a);return g<0?(++this.size,d.push([a,l])):d[g][1]=l,this}hi.prototype.clear=Q8,hi.prototype.delete=J8,hi.prototype.get=eR,hi.prototype.has=tR,hi.prototype.set=nR;function mi(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l=l?a:l)),a}function Hr(a,l,d,g,k,T){var M,D=l&h,V=l&m,X=l&v;if(d&&(M=k?d(a,g,k,T):d(a)),M!==n)return M;if(!Lt(a))return a;var Q=De(a);if(Q){if(M=a7(a),!D)return nr(a,M)}else{var oe=On(a),pe=oe==Mt||oe==Pn;if(ia(a))return t5(a,D);if(oe==at||oe==he||pe&&!k){if(M=V||pe?{}:x5(a),!D)return V?YR(a,yR(M,a)):KR(a,Ow(M,a))}else{if(!ht[oe])return k?a:{};M=s7(a,oe,D)}}T||(T=new fo);var ke=T.get(a);if(ke)return ke;T.set(a,M),Y5(a)?a.forEach(function(Re){M.add(Hr(Re,l,d,Re,a,T))}):q5(a)&&a.forEach(function(Re,He){M.set(He,Hr(Re,l,d,He,a,T))});var Oe=X?V?wv:Sv:V?or:dn,Be=Q?n:Oe(a);return Wr(Be||a,function(Re,He){Be&&(He=Re,Re=a[He]),Yu(M,He,Hr(Re,l,d,He,a,T))}),M}function bR(a){var l=dn(a);return function(d){return Rw(d,a,l)}}function Rw(a,l,d){var g=d.length;if(a==null)return!g;for(a=yt(a);g--;){var k=d[g],T=l[k],M=a[k];if(M===n&&!(k in a)||!T(M))return!1}return!0}function Mw(a,l,d){if(typeof a!="function")throw new jr(s);return nc(function(){a.apply(n,d)},l)}function Zu(a,l,d,g){var k=-1,T=Nd,M=!0,D=a.length,V=[],X=l.length;if(!D)return V;d&&(l=Tt(l,Cr(d))),g?(T=Wg,M=!1):l.length>=o&&(T=ju,M=!1,l=new rs(l));e:for(;++kk?0:k+d),g=g===n||g>k?k:ze(g),g<0&&(g+=k),g=d>g?0:X5(g);d0&&d(D)?l>1?yn(D,l-1,d,g,k):Qi(k,D):g||(k[k.length]=D)}return k}var rv=s5(),Dw=s5(!0);function Ro(a,l){return a&&rv(a,l,dn)}function ov(a,l){return a&&Dw(a,l,dn)}function Jd(a,l){return Xi(l,function(d){return xi(a[d])})}function is(a,l){l=ra(l,a);for(var d=0,g=l.length;a!=null&&dl}function wR(a,l){return a!=null&&ut.call(a,l)}function CR(a,l){return a!=null&&l in yt(a)}function _R(a,l,d){return a>=In(l,d)&&a=120&&Q.length>=120)?new rs(M&&Q):n}Q=a[0];var oe=-1,pe=D[0];e:for(;++oe-1;)D!==a&&Ud.call(D,V,1),Ud.call(a,V,1);return a}function qw(a,l){for(var d=a?l.length:0,g=d-1;d--;){var k=l[d];if(d==g||k!==T){var T=k;bi(k)?Ud.call(a,k,1):hv(a,k)}}return a}function fv(a,l){return a+qd(Aw()*(l-a+1))}function FR(a,l,d,g){for(var k=-1,T=sn(Gd((l-a)/(d||1)),0),M=G(T);T--;)M[g?T:++k]=a,a+=d;return M}function dv(a,l){var d="";if(!a||l<1||l>j)return d;do l%2&&(d+=a),l=qd(l/2),l&&(a+=a);while(l);return d}function Ve(a,l){return Tv(C5(a,l,ir),a+"")}function zR(a){return Iw(ml(a))}function BR(a,l){var d=ml(a);return cp(d,os(l,0,d.length))}function Ju(a,l,d,g){if(!Lt(a))return a;l=ra(l,a);for(var k=-1,T=l.length,M=T-1,D=a;D!=null&&++kk?0:k+l),d=d>k?k:d,d<0&&(d+=k),k=l>d?0:d-l>>>0,l>>>=0;for(var T=G(k);++g>>1,M=a[T];M!==null&&!kr(M)&&(d?M<=l:M=o){var X=l?null:JR(a);if(X)return Dd(X);M=!1,k=ju,V=new rs}else V=l?[]:D;e:for(;++g=g?a:Gr(a,l,d)}var e5=I8||function(a){return Fe.clearTimeout(a)};function t5(a,l){if(l)return a.slice();var d=a.length,g=ww?ww(d):new a.constructor(d);return a.copy(g),g}function yv(a){var l=new a.constructor(a.byteLength);return new Wd(l).set(new Wd(a)),l}function UR(a,l){var d=l?yv(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.byteLength)}function HR(a){var l=new a.constructor(a.source,fi.exec(a));return l.lastIndex=a.lastIndex,l}function GR(a){return Ku?yt(Ku.call(a)):{}}function n5(a,l){var d=l?yv(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.length)}function r5(a,l){if(a!==l){var d=a!==n,g=a===null,k=a===a,T=kr(a),M=l!==n,D=l===null,V=l===l,X=kr(l);if(!D&&!X&&!T&&a>l||T&&M&&V&&!D&&!X||g&&M&&V||!d&&V||!k)return 1;if(!g&&!T&&!X&&a=D)return V;var X=d[g];return V*(X=="desc"?-1:1)}}return a.index-l.index}function o5(a,l,d,g){for(var k=-1,T=a.length,M=d.length,D=-1,V=l.length,X=sn(T-M,0),Q=G(V+X),oe=!g;++D1?d[k-1]:n,M=k>2?d[2]:n;for(T=a.length>3&&typeof T=="function"?(k--,T):n,M&&jn(d[0],d[1],M)&&(T=k<3?n:T,k=1),l=yt(l);++g-1?k[T?l[M]:M]:n}}function c5(a){return yi(function(l){var d=l.length,g=d,k=Ur.prototype.thru;for(a&&l.reverse();g--;){var T=l[g];if(typeof T!="function")throw new jr(s);if(k&&!M&&lp(T)=="wrapper")var M=new Ur([],!0)}for(g=M?g:d;++g1&&Ke.reverse(),Q&&VD))return!1;var X=T.get(a),Q=T.get(l);if(X&&Q)return X==l&&Q==a;var oe=-1,pe=!0,ke=d&x?new rs:n;for(T.set(a,l),T.set(l,a);++oe1?"& ":"")+l[g],l=l.join(d>2?", ":" "),a.replace(bg,`{ +/* [wrapped with `+l+`] */ +`)}function u7(a){return De(a)||ls(a)||!!(kw&&a&&a[kw])}function bi(a,l){var d=typeof a;return l=l??j,!!l&&(d=="number"||d!="symbol"&&Tg.test(a))&&a>-1&&a%1==0&&a0){if(++l>=we)return arguments[0]}else l=0;return a.apply(n,arguments)}}function cp(a,l){var d=-1,g=a.length,k=g-1;for(l=l===n?g:l;++d1?a[l-1]:n;return d=typeof d=="function"?(a.pop(),d):n,L5(a,d)});function D5(a){var l=P(a);return l.__chain__=!0,l}function xM(a,l){return l(a),a}function fp(a,l){return l(a)}var SM=yi(function(a){var l=a.length,d=l?a[0]:0,g=this.__wrapped__,k=function(T){return nv(T,a)};return l>1||this.__actions__.length||!(g instanceof Ge)||!bi(d)?this.thru(k):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:fp,args:[k],thisArg:n}),new Ur(g,this.__chain__).thru(function(T){return l&&!T.length&&T.push(n),T}))});function wM(){return D5(this)}function CM(){return new Ur(this.value(),this.__chain__)}function _M(){this.__values__===n&&(this.__values__=Z5(this.value()));var a=this.__index__>=this.__values__.length,l=a?n:this.__values__[this.__index__++];return{done:a,value:l}}function kM(){return this}function EM(a){for(var l,d=this;d instanceof Zd;){var g=T5(d);g.__index__=0,g.__values__=n,l?k.__wrapped__=g:l=g;var k=g;d=d.__wrapped__}return k.__wrapped__=a,l}function AM(){var a=this.__wrapped__;if(a instanceof Ge){var l=a;return this.__actions__.length&&(l=new Ge(this)),l=l.reverse(),l.__actions__.push({func:fp,args:[Iv],thisArg:n}),new Ur(l,this.__chain__)}return this.thru(Iv)}function PM(){return Qw(this.__wrapped__,this.__actions__)}var TM=rp(function(a,l,d){ut.call(a,d)?++a[d]:gi(a,d,1)});function IM(a,l,d){var g=De(a)?fw:xR;return d&&jn(a,l,d)&&(l=n),g(a,Ie(l,3))}function OM(a,l){var d=De(a)?Xi:Lw;return d(a,Ie(l,3))}var RM=u5(I5),MM=u5(O5);function NM(a,l){return yn(dp(a,l),1)}function LM(a,l){return yn(dp(a,l),Ae)}function DM(a,l,d){return d=d===n?1:ze(d),yn(dp(a,l),d)}function F5(a,l){var d=De(a)?Wr:ta;return d(a,Ie(l,3))}function z5(a,l){var d=De(a)?t8:Nw;return d(a,Ie(l,3))}var FM=rp(function(a,l,d){ut.call(a,d)?a[d].push(l):gi(a,d,[l])});function zM(a,l,d,g){a=rr(a)?a:ml(a),d=d&&!g?ze(d):0;var k=a.length;return d<0&&(d=sn(k+d,0)),vp(a)?d<=k&&a.indexOf(l,d)>-1:!!k&&rl(a,l,d)>-1}var BM=Ve(function(a,l,d){var g=-1,k=typeof l=="function",T=rr(a)?G(a.length):[];return ta(a,function(M){T[++g]=k?wr(l,M,d):Xu(M,l,d)}),T}),$M=rp(function(a,l,d){gi(a,d,l)});function dp(a,l){var d=De(a)?Tt:Vw;return d(a,Ie(l,3))}function VM(a,l,d,g){return a==null?[]:(De(l)||(l=l==null?[]:[l]),d=g?n:d,De(d)||(d=d==null?[]:[d]),Hw(a,l,d))}var WM=rp(function(a,l,d){a[d?0:1].push(l)},function(){return[[],[]]});function jM(a,l,d){var g=De(a)?jg:mw,k=arguments.length<3;return g(a,Ie(l,4),d,k,ta)}function UM(a,l,d){var g=De(a)?n8:mw,k=arguments.length<3;return g(a,Ie(l,4),d,k,Nw)}function HM(a,l){var d=De(a)?Xi:Lw;return d(a,mp(Ie(l,3)))}function GM(a){var l=De(a)?Iw:zR;return l(a)}function qM(a,l,d){(d?jn(a,l,d):l===n)?l=1:l=ze(l);var g=De(a)?mR:BR;return g(a,l)}function KM(a){var l=De(a)?gR:VR;return l(a)}function YM(a){if(a==null)return 0;if(rr(a))return vp(a)?il(a):a.length;var l=On(a);return l==ye||l==kt?a.size:lv(a).length}function ZM(a,l,d){var g=De(a)?Ug:WR;return d&&jn(a,l,d)&&(l=n),g(a,Ie(l,3))}var XM=Ve(function(a,l){if(a==null)return[];var d=l.length;return d>1&&jn(a,l[0],l[1])?l=[]:d>2&&jn(l[0],l[1],l[2])&&(l=[l[0]]),Hw(a,yn(l,1),[])}),pp=O8||function(){return Fe.Date.now()};function QM(a,l){if(typeof l!="function")throw new jr(s);return a=ze(a),function(){if(--a<1)return l.apply(this,arguments)}}function B5(a,l,d){return l=d?n:l,l=a&&l==null?a.length:l,vi(a,L,n,n,n,n,l)}function $5(a,l){var d;if(typeof l!="function")throw new jr(s);return a=ze(a),function(){return--a>0&&(d=l.apply(this,arguments)),a<=1&&(l=n),d}}var Rv=Ve(function(a,l,d){var g=E;if(d.length){var k=Ji(d,pl(Rv));g|=I}return vi(a,g,l,d,k)}),V5=Ve(function(a,l,d){var g=E|S;if(d.length){var k=Ji(d,pl(V5));g|=I}return vi(l,g,a,d,k)});function W5(a,l,d){l=d?n:l;var g=vi(a,C,n,n,n,n,n,l);return g.placeholder=W5.placeholder,g}function j5(a,l,d){l=d?n:l;var g=vi(a,A,n,n,n,n,n,l);return g.placeholder=j5.placeholder,g}function U5(a,l,d){var g,k,T,M,D,V,X=0,Q=!1,oe=!1,pe=!0;if(typeof a!="function")throw new jr(s);l=Kr(l)||0,Lt(d)&&(Q=!!d.leading,oe="maxWait"in d,T=oe?sn(Kr(d.maxWait)||0,l):T,pe="trailing"in d?!!d.trailing:pe);function ke(Yt){var ho=g,wi=k;return g=k=n,X=Yt,M=a.apply(wi,ho),M}function Oe(Yt){return X=Yt,D=nc(He,l),Q?ke(Yt):M}function Be(Yt){var ho=Yt-V,wi=Yt-X,uC=l-ho;return oe?In(uC,T-wi):uC}function Re(Yt){var ho=Yt-V,wi=Yt-X;return V===n||ho>=l||ho<0||oe&&wi>=T}function He(){var Yt=pp();if(Re(Yt))return Ke(Yt);D=nc(He,Be(Yt))}function Ke(Yt){return D=n,pe&&g?ke(Yt):(g=k=n,M)}function Er(){D!==n&&e5(D),X=0,g=V=k=D=n}function Un(){return D===n?M:Ke(pp())}function Ar(){var Yt=pp(),ho=Re(Yt);if(g=arguments,k=this,V=Yt,ho){if(D===n)return Oe(V);if(oe)return e5(D),D=nc(He,l),ke(V)}return D===n&&(D=nc(He,l)),M}return Ar.cancel=Er,Ar.flush=Un,Ar}var JM=Ve(function(a,l){return Mw(a,1,l)}),eN=Ve(function(a,l,d){return Mw(a,Kr(l)||0,d)});function tN(a){return vi(a,K)}function hp(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new jr(s);var d=function(){var g=arguments,k=l?l.apply(this,g):g[0],T=d.cache;if(T.has(k))return T.get(k);var M=a.apply(this,g);return d.cache=T.set(k,M)||T,M};return d.cache=new(hp.Cache||mi),d}hp.Cache=mi;function mp(a){if(typeof a!="function")throw new jr(s);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function nN(a){return $5(2,a)}var rN=jR(function(a,l){l=l.length==1&&De(l[0])?Tt(l[0],Cr(Ie())):Tt(yn(l,1),Cr(Ie()));var d=l.length;return Ve(function(g){for(var k=-1,T=In(g.length,d);++k=l}),ls=zw(function(){return arguments}())?zw:function(a){return Vt(a)&&ut.call(a,"callee")&&!_w.call(a,"callee")},De=G.isArray,yN=tl?Cr(tl):ER;function rr(a){return a!=null&&gp(a.length)&&!xi(a)}function Kt(a){return Vt(a)&&rr(a)}function bN(a){return a===!0||a===!1||Vt(a)&&Wn(a)==fe}var ia=M8||Uv,xN=nl?Cr(nl):AR;function SN(a){return Vt(a)&&a.nodeType===1&&!rc(a)}function wN(a){if(a==null)return!0;if(rr(a)&&(De(a)||typeof a=="string"||typeof a.splice=="function"||ia(a)||hl(a)||ls(a)))return!a.length;var l=On(a);if(l==ye||l==kt)return!a.size;if(tc(a))return!lv(a).length;for(var d in a)if(ut.call(a,d))return!1;return!0}function CN(a,l){return Qu(a,l)}function _N(a,l,d){d=typeof d=="function"?d:n;var g=d?d(a,l):n;return g===n?Qu(a,l,n,d):!!g}function Nv(a){if(!Vt(a))return!1;var l=Wn(a);return l==gt||l==Le||typeof a.message=="string"&&typeof a.name=="string"&&!rc(a)}function kN(a){return typeof a=="number"&&Ew(a)}function xi(a){if(!Lt(a))return!1;var l=Wn(a);return l==Mt||l==Pn||l==Ee||l==xr}function G5(a){return typeof a=="number"&&a==ze(a)}function gp(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=j}function Lt(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Vt(a){return a!=null&&typeof a=="object"}var q5=Wu?Cr(Wu):TR;function EN(a,l){return a===l||sv(a,l,_v(l))}function AN(a,l,d){return d=typeof d=="function"?d:n,sv(a,l,_v(l),d)}function PN(a){return K5(a)&&a!=+a}function TN(a){if(d7(a))throw new Ne(i);return Bw(a)}function IN(a){return a===null}function ON(a){return a==null}function K5(a){return typeof a=="number"||Vt(a)&&Wn(a)==Nt}function rc(a){if(!Vt(a)||Wn(a)!=at)return!1;var l=jd(a);if(l===null)return!0;var d=ut.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Bd.call(d)==A8}var Lv=lw?Cr(lw):IR;function RN(a){return G5(a)&&a>=-j&&a<=j}var Y5=uw?Cr(uw):OR;function vp(a){return typeof a=="string"||!De(a)&&Vt(a)&&Wn(a)==tn}function kr(a){return typeof a=="symbol"||Vt(a)&&Wn(a)==$t}var hl=cw?Cr(cw):RR;function MN(a){return a===n}function NN(a){return Vt(a)&&On(a)==Ce}function LN(a){return Vt(a)&&Wn(a)==st}var DN=sp(uv),FN=sp(function(a,l){return a<=l});function Z5(a){if(!a)return[];if(rr(a))return vp(a)?co(a):nr(a);if(Uu&&a[Uu])return m8(a[Uu]());var l=On(a),d=l==ye?Zg:l==kt?Dd:ml;return d(a)}function Si(a){if(!a)return a===0?a:0;if(a=Kr(a),a===Ae||a===-Ae){var l=a<0?-1:1;return l*Z}return a===a?a:0}function ze(a){var l=Si(a),d=l%1;return l===l?d?l-d:l:0}function X5(a){return a?os(ze(a),0,R):0}function Kr(a){if(typeof a=="number")return a;if(kr(a))return q;if(Lt(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=Lt(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=gw(a);var d=Eg.test(a);return d||Pg.test(a)?me(a.slice(2),d?2:8):kg.test(a)?q:+a}function Q5(a){return Mo(a,or(a))}function zN(a){return a?os(ze(a),-j,j):a===0?a:0}function ot(a){return a==null?"":_r(a)}var BN=fl(function(a,l){if(tc(l)||rr(l)){Mo(l,dn(l),a);return}for(var d in l)ut.call(l,d)&&Yu(a,d,l[d])}),J5=fl(function(a,l){Mo(l,or(l),a)}),yp=fl(function(a,l,d,g){Mo(l,or(l),a,g)}),$N=fl(function(a,l,d,g){Mo(l,dn(l),a,g)}),VN=yi(nv);function WN(a,l){var d=cl(a);return l==null?d:Ow(d,l)}var jN=Ve(function(a,l){a=yt(a);var d=-1,g=l.length,k=g>2?l[2]:n;for(k&&jn(l[0],l[1],k)&&(g=1);++d1),T}),Mo(a,wv(a),d),g&&(d=Hr(d,h|m|v,e7));for(var k=l.length;k--;)hv(d,l[k]);return d});function sL(a,l){return tC(a,mp(Ie(l)))}var lL=yi(function(a,l){return a==null?{}:LR(a,l)});function tC(a,l){if(a==null)return{};var d=Tt(wv(a),function(g){return[g]});return l=Ie(l),Gw(a,d,function(g,k){return l(g,k[0])})}function uL(a,l,d){l=ra(l,a);var g=-1,k=l.length;for(k||(k=1,a=n);++gl){var g=a;a=l,l=g}if(d||a%1||l%1){var k=Aw();return In(a+k*(l-a+U("1e-"+((k+"").length-1))),l)}return fv(a,l)}var xL=dl(function(a,l,d){return l=l.toLowerCase(),a+(d?oC(l):l)});function oC(a){return zv(ot(a).toLowerCase())}function iC(a){return a=ot(a),a&&a.replace(Ig,c8).replace(Id,"")}function SL(a,l,d){a=ot(a),l=_r(l);var g=a.length;d=d===n?g:os(ze(d),0,g);var k=d;return d-=l.length,d>=0&&a.slice(d,k)==l}function wL(a){return a=ot(a),a&&ci.test(a)?a.replace(Ki,f8):a}function CL(a){return a=ot(a),a&&vg.test(a)?a.replace(Ou,"\\$&"):a}var _L=dl(function(a,l,d){return a+(d?"-":"")+l.toLowerCase()}),kL=dl(function(a,l,d){return a+(d?" ":"")+l.toLowerCase()}),EL=l5("toLowerCase");function AL(a,l,d){a=ot(a),l=ze(l);var g=l?il(a):0;if(!l||g>=l)return a;var k=(l-g)/2;return ap(qd(k),d)+a+ap(Gd(k),d)}function PL(a,l,d){a=ot(a),l=ze(l);var g=l?il(a):0;return l&&g>>0,d?(a=ot(a),a&&(typeof l=="string"||l!=null&&!Lv(l))&&(l=_r(l),!l&&ol(a))?oa(co(a),0,d):a.split(l,d)):[]}var LL=dl(function(a,l,d){return a+(d?" ":"")+zv(l)});function DL(a,l,d){return a=ot(a),d=d==null?0:os(ze(d),0,a.length),l=_r(l),a.slice(d,d+l.length)==l}function FL(a,l,d){var g=P.templateSettings;d&&jn(a,l,d)&&(l=n),a=ot(a),l=yp({},l,g,m5);var k=yp({},l.imports,g.imports,m5),T=dn(k),M=Yg(k,T),D,V,X=0,Q=l.interpolate||Zi,oe="__p += '",pe=Xg((l.escape||Zi).source+"|"+Q.source+"|"+(Q===dd?_g:Zi).source+"|"+(l.evaluate||Zi).source+"|$","g"),ke="//# sourceURL="+(ut.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rd+"]")+` +`;a.replace(pe,function(Re,He,Ke,Er,Un,Ar){return Ke||(Ke=Er),oe+=a.slice(X,Ar).replace(Og,d8),He&&(D=!0,oe+=`' + +__e(`+He+`) + +'`),Un&&(V=!0,oe+=`'; +`+Un+`; +__p += '`),Ke&&(oe+=`' + +((__t = (`+Ke+`)) == null ? '' : __t) + +'`),X=Ar+Re.length,Re}),oe+=`'; +`;var Oe=ut.call(l,"variable")&&l.variable;if(!Oe)oe=`with (obj) { +`+oe+` +} +`;else if(wg.test(Oe))throw new Ne(u);oe=(V?oe.replace(Ja,""):oe).replace(qs,"$1").replace(fg,"$1;"),oe="function("+(Oe||"obj")+`) { +`+(Oe?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(V?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+oe+`return __p +}`;var Be=sC(function(){return Je(T,ke+"return "+oe).apply(n,M)});if(Be.source=oe,Nv(Be))throw Be;return Be}function zL(a){return ot(a).toLowerCase()}function BL(a){return ot(a).toUpperCase()}function $L(a,l,d){if(a=ot(a),a&&(d||l===n))return gw(a);if(!a||!(l=_r(l)))return a;var g=co(a),k=co(l),T=vw(g,k),M=yw(g,k)+1;return oa(g,T,M).join("")}function VL(a,l,d){if(a=ot(a),a&&(d||l===n))return a.slice(0,xw(a)+1);if(!a||!(l=_r(l)))return a;var g=co(a),k=yw(g,co(l))+1;return oa(g,0,k).join("")}function WL(a,l,d){if(a=ot(a),a&&(d||l===n))return a.replace(Ru,"");if(!a||!(l=_r(l)))return a;var g=co(a),k=vw(g,co(l));return oa(g,k).join("")}function jL(a,l){var d=W,g=te;if(Lt(l)){var k="separator"in l?l.separator:k;d="length"in l?ze(l.length):d,g="omission"in l?_r(l.omission):g}a=ot(a);var T=a.length;if(ol(a)){var M=co(a);T=M.length}if(d>=T)return a;var D=d-il(g);if(D<1)return g;var V=M?oa(M,0,D).join(""):a.slice(0,D);if(k===n)return V+g;if(M&&(D+=V.length-D),Lv(k)){if(a.slice(D).search(k)){var X,Q=V;for(k.global||(k=Xg(k.source,ot(fi.exec(k))+"g")),k.lastIndex=0;X=k.exec(Q);)var oe=X.index;V=V.slice(0,oe===n?D:oe)}}else if(a.indexOf(_r(k),D)!=D){var pe=V.lastIndexOf(k);pe>-1&&(V=V.slice(0,pe))}return V+g}function UL(a){return a=ot(a),a&&dg.test(a)?a.replace(Iu,b8):a}var HL=dl(function(a,l,d){return a+(d?" ":"")+l.toUpperCase()}),zv=l5("toUpperCase");function aC(a,l,d){return a=ot(a),l=d?n:l,l===n?h8(a)?w8(a):i8(a):a.match(l)||[]}var sC=Ve(function(a,l){try{return wr(a,n,l)}catch(d){return Nv(d)?d:new Ne(d)}}),GL=yi(function(a,l){return Wr(l,function(d){d=No(d),gi(a,d,Rv(a[d],a))}),a});function qL(a){var l=a==null?0:a.length,d=Ie();return a=l?Tt(a,function(g){if(typeof g[1]!="function")throw new jr(s);return[d(g[0]),g[1]]}):[],Ve(function(g){for(var k=-1;++kj)return[];var d=R,g=In(a,R);l=Ie(l),a-=R;for(var k=Kg(g,l);++d0||l<0)?new Ge(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),l!==n&&(l=ze(l),d=l<0?d.dropRight(-l):d.take(l-a)),d)},Ge.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Ge.prototype.toArray=function(){return this.take(R)},Ro(Ge.prototype,function(a,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),k=P[g?"take"+(l=="last"?"Right":""):l],T=g||/^find/.test(l);!k||(P.prototype[l]=function(){var M=this.__wrapped__,D=g?[1]:arguments,V=M instanceof Ge,X=D[0],Q=V||De(M),oe=function(He){var Ke=k.apply(P,Qi([He],D));return g&&pe?Ke[0]:Ke};Q&&d&&typeof X=="function"&&X.length!=1&&(V=Q=!1);var pe=this.__chain__,ke=!!this.__actions__.length,Oe=T&&!pe,Be=V&&!ke;if(!T&&Q){M=Be?M:new Ge(this);var Re=a.apply(M,D);return Re.__actions__.push({func:fp,args:[oe],thisArg:n}),new Ur(Re,pe)}return Oe&&Be?a.apply(this,D):(Re=this.thru(oe),Oe?g?Re.value()[0]:Re.value():Re)})}),Wr(["pop","push","shift","sort","splice","unshift"],function(a){var l=Fd[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",g=/^(?:pop|shift)$/.test(a);P.prototype[a]=function(){var k=arguments;if(g&&!this.__chain__){var T=this.value();return l.apply(De(T)?T:[],k)}return this[d](function(M){return l.apply(De(M)?M:[],k)})}}),Ro(Ge.prototype,function(a,l){var d=P[l];if(d){var g=d.name+"";ut.call(ul,g)||(ul[g]=[]),ul[g].push({name:l,func:d})}}),ul[op(n,S).name]=[{name:"wrapper",func:n}],Ge.prototype.clone=U8,Ge.prototype.reverse=H8,Ge.prototype.value=G8,P.prototype.at=SM,P.prototype.chain=wM,P.prototype.commit=CM,P.prototype.next=_M,P.prototype.plant=EM,P.prototype.reverse=AM,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=PM,P.prototype.first=P.prototype.head,Uu&&(P.prototype[Uu]=kM),P},al=C8();Qe?((Qe.exports=al)._=al,$e._=al):Fe._=al}).call(Ii)})(Ht,Ht.exports);const sle={currentImageUuid:"",images:[]},h9=KS({name:"gallery",initialState:sle,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const n=t.payload,r=e.images.filter(o=>o.uuid!==n);if(n===e.currentImageUuid){const o=e.images.findIndex(s=>s.uuid===n),i=Ht.exports.clamp(o-1,0,r.length-1);e.currentImage=r.length?r[i]:void 0,e.currentImageUuid=r.length?r[i].uuid:""}e.images=r},addImage:(e,t)=>{e.images.push(t.payload),e.currentImageUuid=t.payload.uuid,e.intermediateImage=void 0,e.currentImage=t.payload},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},setGalleryImages:(e,t)=>{const n=t.payload;if(n.length){const r=n[n.length-1];e.images=n,e.currentImage=r,e.currentImageUuid=r.uuid}}}}),{addImage:th,clearIntermediateImage:E3,removeImage:lle,setCurrentImage:ule,setGalleryImages:cle,setIntermediateImage:fle}=h9.actions,dle=h9.reducer,ple={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:"",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:""},hle=ple,m9=KS({name:"system",initialState:hle,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>{const n=!t.payload.isProcessing&&e.isConnected?"Connected":t.payload.currentStatus;return{...e,...t.payload,currentStatus:n}},addLogEntry:(e,t)=>{const{timestamp:n,message:r,level:o}=t.payload,s={timestamp:n,message:r,level:o||"info"};e.log.push(s)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload},setSystemConfig:(e,t)=>({...e,...t.payload})}}),{setShouldDisplayInProgress:mle,setIsProcessing:Vo,addLogEntry:Gn,setShouldShowLogViewer:gle,setIsConnected:A3,setSocketId:Zfe,setShouldConfirmOnDelete:g9,setOpenAccordions:vle,setSystemStatus:yle,setCurrentStatus:P3,setSystemConfig:ble}=m9.actions,xle=m9.reducer,si=Object.create(null);si.open="0";si.close="1";si.ping="2";si.pong="3";si.message="4";si.upgrade="5";si.noop="6";const Nh=Object.create(null);Object.keys(si).forEach(e=>{Nh[si[e]]=e});const Sle={type:"error",data:"parser error"},wle=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Cle=typeof ArrayBuffer=="function",_le=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,v9=({type:e,data:t},n,r)=>wle&&t instanceof Blob?n?r(t):T3(t,r):Cle&&(t instanceof ArrayBuffer||_le(t))?n?r(t):T3(new Blob([t]),r):r(si[e]+(t||"")),T3=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},I3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r>4,p[o++]=(s&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},Ele=typeof ArrayBuffer=="function",y9=(e,t)=>{if(typeof e!="string")return{type:"message",data:b9(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Ale(e.substring(1),t)}:Nh[n]?e.length>1?{type:Nh[n],data:e.substring(1)}:{type:Nh[n]}:Sle},Ale=(e,t)=>{if(Ele){const n=kle(e);return b9(n,t)}else return{base64:!0,data:e}},b9=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},x9=String.fromCharCode(30),Ple=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{v9(i,!1,u=>{r[s]=u,++o===n&&t(r.join(x9))})})},Tle=(e,t)=>{const n=e.split(x9),r=[];for(let o=0;otypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function w9(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Ole=setTimeout,Rle=clearTimeout;function cg(e,t){t.useNativeTimers?(e.setTimeoutFn=Ole.bind(Ea),e.clearTimeoutFn=Rle.bind(Ea)):(e.setTimeoutFn=setTimeout.bind(Ea),e.clearTimeoutFn=clearTimeout.bind(Ea))}const Mle=1.33;function Nle(e){return typeof e=="string"?Lle(e):Math.ceil((e.byteLength||e.size)*Mle)}function Lle(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}class Dle extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class C9 extends on{constructor(t){super(),this.writable=!1,cg(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new Dle(t,n,r)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=y9(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const _9="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),cb=64,Fle={};let O3=0,nh=0,R3;function M3(e){let t="";do t=_9[e%cb]+t,e=Math.floor(e/cb);while(e>0);return t}function k9(){const e=M3(+new Date);return e!==R3?(O3=0,R3=e):e+"."+M3(O3++)}for(;nh{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Tle(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ple(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=k9()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const o=E9(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new ri(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class ri extends on{constructor(t,n){super(),cg(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=w9(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new P9(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=ri.requestsCount++,ri.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=$le,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete ri.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}ri.requestsCount=0;ri.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",N3);else if(typeof addEventListener=="function"){const e="onpagehide"in Ea?"pagehide":"unload";addEventListener(e,N3,!1)}}function N3(){for(let e in ri.requests)ri.requests.hasOwnProperty(e)&&ri.requests[e].abort()}const jle=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),rh=Ea.WebSocket||Ea.MozWebSocket,L3=!0,Ule="arraybuffer",D3=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Hle extends C9{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=D3?{}:w9(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=L3&&!D3?n?new rh(t,n):new rh(t):new rh(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||Ule,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{L3&&this.ws.send(i)}catch{}o&&jle(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=k9()),this.supportsBinary||(t.b64=1);const o=E9(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}check(){return!!rh}}const Gle={websocket:Hle,polling:Wle},qle=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Kle=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function fb(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=qle.exec(e||""),i={},s=14;for(;s--;)i[Kle[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Yle(i,i.path),i.queryKey=Zle(i,i.query),i}function Yle(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&r.splice(0,1),t.substr(t.length-1,1)=="/"&&r.splice(r.length-1,1),r}function Zle(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}class xa extends on{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=fb(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=fb(n.host).host),cg(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=zle(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=S9,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Gle[t](r)}open(){let t;if(this.opts.rememberUpgrade&&xa.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;xa.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;xa.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const s=h=>{const m=new Error("probe error: "+h);m.transport=n.name,i(),this.emitReserved("upgradeError",m)};function u(){s("transport closed")}function c(){s("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",s),n.once("close",u),this.once("close",c),this.once("upgrading",f),n.open()}onOpen(){if(this.readyState="open",xa.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){xa.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,T9=Object.prototype.toString,eue=typeof Blob=="function"||typeof Blob<"u"&&T9.call(Blob)==="[object BlobConstructor]",tue=typeof File=="function"||typeof File<"u"&&T9.call(File)==="[object FileConstructor]";function iw(e){return Qle&&(e instanceof ArrayBuffer||Jle(e))||eue&&e instanceof Blob||tue&&e instanceof File}function Lh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num0;case Ye.ACK:case Ye.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class aue{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=rue(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const sue=Object.freeze(Object.defineProperty({__proto__:null,protocol:oue,get PacketType(){return Ye},Encoder:iue,Decoder:aw},Symbol.toStringTag,{value:"Module"}));function wo(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const lue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class I9 extends on{constructor(t,n,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[wo(t,"open",this.onopen.bind(this)),wo(t,"packet",this.onpacket.bind(this)),wo(t,"error",this.onerror.bind(this)),wo(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(lue.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const r={type:Ye.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,u=n.pop();this._registerAckCallback(s,u),r.id=s}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){const r=this.flags.timeout;if(r===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let i=0;i{this.io.clearTimeoutFn(o),n.apply(this,[null,...i])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:Ye.CONNECT,data:t})}):this.packet({type:Ye.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ye.CONNECT:if(t.data&&t.data.sid){const o=t.data.sid;this.onconnect(o)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ye.EVENT:case Ye.BINARY_EVENT:this.onevent(t);break;case Ye.ACK:case Ye.BINARY_ACK:this.onack(t);break;case Ye.DISCONNECT:this.ondisconnect();break;case Ye.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Ye.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ye.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Tu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Tu.prototype.reset=function(){this.attempts=0};Tu.prototype.setMin=function(e){this.ms=e};Tu.prototype.setMax=function(e){this.max=e};Tu.prototype.setJitter=function(e){this.jitter=e};class hb extends on{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,cg(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Tu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||sue;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new xa(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=wo(n,"open",function(){r.onopen(),t&&t()}),i=wo(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),t?t(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&o();const u=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&u.unref(),this.subs.push(function(){clearTimeout(u)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(wo(t,"ping",this.onping.bind(this)),wo(t,"data",this.ondata.bind(this)),wo(t,"error",this.onerror.bind(this)),wo(t,"close",this.onclose.bind(this)),wo(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch{this.onclose("parse error")}}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r||(r=new I9(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const yc={};function Dh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Xle(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=yc[o]&&i in yc[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return u?c=new hb(r,t):(yc[o]||(yc[o]=new hb(r,t)),c=yc[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(Dh,{Manager:hb,Socket:I9,io:Dh,connect:Dh});let oh;const uue=new Uint8Array(16);function cue(){if(!oh&&(oh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!oh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oh(uue)}const xn=[];for(let e=0;e<256;++e)xn.push((e+256).toString(16).slice(1));function fue(e,t=0){return(xn[e[t+0]]+xn[e[t+1]]+xn[e[t+2]]+xn[e[t+3]]+"-"+xn[e[t+4]]+xn[e[t+5]]+"-"+xn[e[t+6]]+xn[e[t+7]]+"-"+xn[e[t+8]]+xn[e[t+9]]+"-"+xn[e[t+10]]+xn[e[t+11]]+xn[e[t+12]]+xn[e[t+13]]+xn[e[t+14]]+xn[e[t+15]]).toLowerCase()}const due=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),F3={randomUUID:due};function bc(e,t,n){if(F3.randomUUID&&!t&&!e)return F3.randomUUID();e=e||{};const r=e.random||(e.rng||cue)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return fue(r)}var pue=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,hue=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,mue=/[^-+\dA-Z]/g;function qn(e,t,n,r){if(arguments.length===1&&typeof e=="string"&&!/\d/.test(e)&&(t=e,e=void 0),e=e||e===0?e:new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");t=String(z3[t]||t||z3.default);var o=t.slice(0,4);(o==="UTC:"||o==="GMT:")&&(t=t.slice(4),n=!0,o==="GMT:"&&(r=!0));var i=function(){return n?"getUTC":"get"},s=function(){return e[i()+"Date"]()},u=function(){return e[i()+"Day"]()},c=function(){return e[i()+"Month"]()},f=function(){return e[i()+"FullYear"]()},p=function(){return e[i()+"Hours"]()},h=function(){return e[i()+"Minutes"]()},m=function(){return e[i()+"Seconds"]()},v=function(){return e[i()+"Milliseconds"]()},y=function(){return n?0:e.getTimezoneOffset()},x=function(){return gue(e)},E=function(){return vue(e)},S={d:function(){return s()},dd:function(){return Pr(s())},ddd:function(){return ar.dayNames[u()]},DDD:function(){return B3({y:f(),m:c(),d:s(),_:i(),dayName:ar.dayNames[u()],short:!0})},dddd:function(){return ar.dayNames[u()+7]},DDDD:function(){return B3({y:f(),m:c(),d:s(),_:i(),dayName:ar.dayNames[u()+7]})},m:function(){return c()+1},mm:function(){return Pr(c()+1)},mmm:function(){return ar.monthNames[c()]},mmmm:function(){return ar.monthNames[c()+12]},yy:function(){return String(f()).slice(2)},yyyy:function(){return Pr(f(),4)},h:function(){return p()%12||12},hh:function(){return Pr(p()%12||12)},H:function(){return p()},HH:function(){return Pr(p())},M:function(){return h()},MM:function(){return Pr(h())},s:function(){return m()},ss:function(){return Pr(m())},l:function(){return Pr(v(),3)},L:function(){return Pr(Math.floor(v()/10))},t:function(){return p()<12?ar.timeNames[0]:ar.timeNames[1]},tt:function(){return p()<12?ar.timeNames[2]:ar.timeNames[3]},T:function(){return p()<12?ar.timeNames[4]:ar.timeNames[5]},TT:function(){return p()<12?ar.timeNames[6]:ar.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":yue(e)},o:function(){return(y()>0?"-":"+")+Pr(Math.floor(Math.abs(y())/60)*100+Math.abs(y())%60,4)},p:function(){return(y()>0?"-":"+")+Pr(Math.floor(Math.abs(y())/60),2)+":"+Pr(Math.floor(Math.abs(y())%60),2)},S:function(){return["th","st","nd","rd"][s()%10>3?0:(s()%100-s()%10!=10)*s()%10]},W:function(){return x()},WW:function(){return Pr(x())},N:function(){return E()}};return t.replace(pue,function(b){return b in S?S[b]():b.slice(1,b.length-1)})}var z3={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},ar={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},Pr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},B3=function(t){var n=t.y,r=t.m,o=t.d,i=t._,s=t.dayName,u=t.short,c=u===void 0?!1:u,f=new Date,p=new Date;p.setDate(p[i+"Date"]()-1);var h=new Date;h.setDate(h[i+"Date"]()+1);var m=function(){return f[i+"Date"]()},v=function(){return f[i+"Month"]()},y=function(){return f[i+"FullYear"]()},x=function(){return p[i+"Date"]()},E=function(){return p[i+"Month"]()},S=function(){return p[i+"FullYear"]()},b=function(){return h[i+"Date"]()},C=function(){return h[i+"Month"]()},A=function(){return h[i+"FullYear"]()};return y()===n&&v()===r&&m()===o?c?"Tdy":"Today":S()===n&&E()===r&&x()===o?c?"Ysd":"Yesterday":A()===n&&C()===r&&b()===o?c?"Tmw":"Tomorrow":s},gue=function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=new Date(n.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var o=n.getTimezoneOffset()-r.getTimezoneOffset();n.setHours(n.getHours()-o);var i=(n-r)/(864e5*7);return 1+Math.floor(i)},vue=function(t){var n=t.getDay();return n===0&&(n=7),n},yue=function(t){return(String(t).match(hue)||[""]).pop().replace(mue,"").replace(/GMT\+0000/g,"UTC")};const bue=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(A3(!0)),t(P3("Connected"))}catch(r){console.error(r)}},onDisconnect:()=>{try{t(A3(!1)),t(Vo(!1)),t(P3("Disconnected")),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(r){console.error(r)}},onGenerationResult:r=>{try{const{url:o,metadata:i}=r,s=bc();t(th({uuid:s,url:o,metadata:i})),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Image generated: ${o}`})),t(Vo(!1))}catch(o){console.error(o)}},onIntermediateResult:r=>{try{const o=bc(),{url:i,metadata:s}=r;t(fle({uuid:o,url:i,metadata:s})),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Intermediate image generated: ${i}`})),t(Vo(!1))}catch(o){console.error(o)}},onESRGANResult:r=>{try{const{url:o,metadata:i}=r;t(th({uuid:bc(),url:o,metadata:i})),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Upscaled: ${o}`})),t(Vo(!1))}catch(o){console.error(o)}},onGFPGANResult:r=>{try{const{url:o,metadata:i}=r;t(th({uuid:bc(),url:o,metadata:i})),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Fixed faces: ${o}`}))}catch(o){console.error(o)}},onProgressUpdate:r=>{try{t(Vo(!0)),t(yle(r))}catch(o){console.error(o)}},onError:r=>{const{message:o,additionalData:i}=r;try{t(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Server error: ${o}`,level:"error"})),t(Vo(!1)),t(E3())}catch(s){console.error(s)}},onGalleryImages:r=>{const{images:o}=r,i=o.map(s=>{const{url:u,metadata:c}=s;return{uuid:bc(),url:u,metadata:c}});t(cle(i)),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Loaded ${o.length} images`}))},onProcessingCanceled:()=>{t(Vo(!1));const{intermediateImage:r}=n().gallery;r&&(t(th(r)),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Intermediate image saved: ${r.url}`})),t(E3())),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:r=>{const{url:o,uuid:i}=r;t(lle(i)),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Image deleted: ${o}`}))},onInitialImageUploaded:r=>{const{url:o}=r;t(ug(o)),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Initial image uploaded: ${o}`}))},onMaskImageUploaded:r=>{const{url:o}=r;t(ow(o)),t(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Mask image uploaded: ${o}`}))},onSystemConfig:r=>{t(ble(r))}}},xue=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],Sue=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],wue=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],Cue=[{key:"2x",value:2},{key:"4x",value:4}],mb=0,gb=4294967295,O9=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),_ue=(e,t)=>{const{prompt:n,iterations:r,steps:o,cfgScale:i,threshold:s,perlin:u,height:c,width:f,sampler:p,seed:h,seamless:m,shouldUseInitImage:v,img2imgStrength:y,initialImagePath:x,maskPath:E,shouldFitToWidthHeight:S,shouldGenerateVariations:b,variationAmount:C,seedWeights:A,shouldRunESRGAN:I,upscalingLevel:N,upscalingStrength:L,shouldRunGFPGAN:$,gfpganStrength:K,shouldRandomizeSeed:W}=e,{shouldDisplayInProgress:te}=t,we={prompt:n,iterations:r,steps:o,cfg_scale:i,threshold:s,perlin:u,height:c,width:f,sampler_name:p,seed:h,seamless:m,progress_images:te};we.seed=W?O9(mb,gb):h,v&&(we.init_img=x,we.strength=y,we.fit=S,E&&(we.init_mask=E)),b?(we.variation_amount=C,A&&(we.with_variations=Kse(A))):we.variation_amount=0;let _e=!1,xe=!1;return I&&(_e={level:N,strength:L}),$&&(xe={strength:K}),{generationParameters:we,esrganParameters:_e,gfpganParameters:xe}},kue=(e,t)=>{const{dispatch:n,getState:r}=e;return{emitGenerateImage:()=>{n(Vo(!0));const{generationParameters:o,esrganParameters:i,gfpganParameters:s}=_ue(r().options,r().system);t.emit("generateImage",o,i,s),n(Gn({timestamp:qn(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...o,...i,...s})}`}))},emitRunESRGAN:o=>{n(Vo(!0));const{upscalingLevel:i,upscalingStrength:s}=r().options,u={upscale:[i,s]};t.emit("runESRGAN",o,u),n(Gn({timestamp:qn(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...u})}`}))},emitRunGFPGAN:o=>{n(Vo(!0));const{gfpganStrength:i}=r().options,s={gfpgan_strength:i};t.emit("runGFPGAN",o,s),n(Gn({timestamp:qn(new Date,"isoDateTime"),message:`GFPGAN fix faces requested: ${JSON.stringify({file:o.url,...s})}`}))},emitDeleteImage:o=>{const{url:i,uuid:s}=o;t.emit("deleteImage",i,s)},emitRequestAllImages:()=>{t.emit("requestAllImages")},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)},emitRequestSystemConfig:()=>{t.emit("requestSystemConfig")}}},Eue=()=>{const{hostname:e,port:t}=new URL(window.location.href),n=Dh(`http://${e}:9090`);let r=!1;return i=>s=>u=>{const{onConnect:c,onDisconnect:f,onError:p,onESRGANResult:h,onGFPGANResult:m,onGenerationResult:v,onIntermediateResult:y,onProgressUpdate:x,onGalleryImages:E,onProcessingCanceled:S,onImageDeleted:b,onInitialImageUploaded:C,onMaskImageUploaded:A,onSystemConfig:I}=bue(i),{emitGenerateImage:N,emitRunESRGAN:L,emitRunGFPGAN:$,emitDeleteImage:K,emitRequestAllImages:W,emitCancelProcessing:te,emitUploadInitialImage:we,emitUploadMaskImage:_e,emitRequestSystemConfig:xe}=kue(i,n);switch(r||(n.on("connect",()=>c()),n.on("disconnect",()=>f()),n.on("error",ue=>p(ue)),n.on("generationResult",ue=>v(ue)),n.on("esrganResult",ue=>h(ue)),n.on("gfpganResult",ue=>m(ue)),n.on("intermediateResult",ue=>y(ue)),n.on("progressUpdate",ue=>x(ue)),n.on("galleryImages",ue=>E(ue)),n.on("processingCanceled",()=>{S()}),n.on("imageDeleted",ue=>{b(ue)}),n.on("initialImageUploaded",ue=>{C(ue)}),n.on("maskImageUploaded",ue=>{A(ue)}),n.on("systemConfig",ue=>{I(ue)}),r=!0),u.type){case"socketio/generateImage":{N();break}case"socketio/runESRGAN":{L(u.payload);break}case"socketio/runGFPGAN":{$(u.payload);break}case"socketio/deleteImage":{K(u.payload);break}case"socketio/requestAllImages":{W();break}case"socketio/cancelProcessing":{te();break}case"socketio/uploadInitialImage":{we(u.payload);break}case"socketio/uploadMaskImage":{_e(u.payload);break}case"socketio/requestSystemConfig":{xe();break}}s(u)}},Aue={key:"root",storage:nw,blacklist:["gallery","system"]},Pue={key:"system",storage:nw,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},Tue=FO({options:ale,gallery:dle,system:t9(Pue,xle)}),Iue=t9(Aue,Tue),R9=Rae({reducer:Iue,middleware:e=>e({serializableCheck:!1}).concat(Eue())}),An=vse,bt=ase;function Fh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fh=function(n){return typeof n}:Fh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fh(e)}function Oue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $3(e,t){for(var n=0;n({textColor:e.colorMode==="dark"?"gray.800":"gray.100"})},Accordion:{baseStyle:e=>({button:{fontWeight:"bold",_hover:{bgColor:e.colorMode==="dark"?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.05)"}},panel:{paddingBottom:2}})},FormLabel:{baseStyle:{fontWeight:"light"}},Button:{variants:{imageHoverIconButton:e=>({bg:e.colorMode==="dark"?"blackAlpha.700":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.700":"blackAlpha.700",_hover:{bg:e.colorMode==="dark"?"blackAlpha.800":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.900":"blackAlpha.900"}})}}}}),N9=()=>w(We,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:w(Wm,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"})});var W3={path:ne("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w("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"}),w("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},L9=de((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:u,__css:c,...f}=e,p=Gt("chakra-icon",u),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c},m={ref:t,focusable:i,className:p,__css:h},v=r??W3.viewBox;if(n&&typeof n!="string")return ee.createElement(ie.svg,{as:n,...m,...f});const y=s??W3.path;return ee.createElement(ie.svg,{verticalAlign:"middle",viewBox:v,...m,...f},y)});L9.displayName="Icon";function Te(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=_.exports.Children.toArray(e.path),s=de((u,c)=>w(L9,{ref:c,viewBox:t,...o,...u,children:i.length?i:w("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}Te({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Te({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Te({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Te({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Te({displayName:"SunIcon",path:ne("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[w("circle",{cx:"12",cy:"12",r:"5"}),w("path",{d:"M12 1v2"}),w("path",{d:"M12 21v2"}),w("path",{d:"M4.22 4.22l1.42 1.42"}),w("path",{d:"M18.36 18.36l1.42 1.42"}),w("path",{d:"M1 12h2"}),w("path",{d:"M21 12h2"}),w("path",{d:"M4.22 19.78l1.42-1.42"}),w("path",{d:"M18.36 5.64l1.42-1.42"})]})});Te({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"});Te({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:w("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})});Te({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Te({displayName:"CheckCircleIcon",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"});Te({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Te({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Te({displayName:"ViewIcon",path:ne("g",{fill:"currentColor",children:[w("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),w("circle",{cx:"12",cy:"12",r:"2"})]})});Te({displayName:"ViewOffIcon",path:ne("g",{fill:"currentColor",children:[w("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),w("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"})]})});Te({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});Te({displayName:"DeleteIcon",path:w("g",{fill:"currentColor",children:w("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"})})});Te({displayName:"RepeatIcon",path:ne("g",{fill:"currentColor",children:[w("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),w("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})});Te({displayName:"RepeatClockIcon",path:ne("g",{fill:"currentColor",children:[w("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),w("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"})]})});Te({displayName:"EditIcon",path:ne("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[w("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),w("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})});Te({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});Te({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Te({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Te({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Te({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Te({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Te({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Te({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});Te({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});var D9=Te({displayName:"ExternalLinkIcon",path:ne("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[w("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),w("path",{d:"M15 3h6v6"}),w("path",{d:"M10 14L21 3"})]})});Te({displayName:"LinkIcon",path:ne("g",{fill:"currentColor",children:[w("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),w("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"})]})});Te({displayName:"PlusSquareIcon",path:ne("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[w("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),w("path",{d:"M12 8v8"}),w("path",{d:"M8 12h8"})]})});Te({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Te({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Te({displayName:"TimeIcon",path:ne("g",{fill:"currentColor",children:[w("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),w("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"})]})});Te({displayName:"ArrowRightIcon",path:ne("g",{fill:"currentColor",children:[w("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),w("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})});Te({displayName:"ArrowLeftIcon",path:ne("g",{fill:"currentColor",children:[w("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),w("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})});Te({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Te({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Te({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Te({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Te({displayName:"EmailIcon",path:ne("g",{fill:"currentColor",children:[w("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),w("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"})]})});Te({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Te({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Te({displayName:"SpinnerIcon",path:ne(Bn,{children:[w("defs",{children:ne("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[w("stop",{stopColor:"currentColor",offset:"0%"}),w("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"})]})}),ne("g",{transform:"translate(2)",fill:"none",children:[w("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),w("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),w("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})]})]})});Te({displayName:"CloseIcon",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"});Te({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:w("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})});Te({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});Te({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});Te({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});Te({displayName:"InfoOutlineIcon",path:ne("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[w("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),w("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),w("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"})]})});Te({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Te({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"});Te({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Te({displayName:"QuestionOutlineIcon",path:ne("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w("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"}),w("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]})});Te({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",displayName:"WarningIcon"});Te({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});Te({viewBox:"0 0 14 14",path:w("g",{fill:"currentColor",children:w("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})});Te({displayName:"MinusIcon",path:w("g",{fill:"currentColor",children:w("rect",{height:"4",width:"20",x:"2",y:"10"})})});Te({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var F9={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j3=ee.createContext&&ee.createContext(F9),za=globalThis&&globalThis.__assign||function(){return za=Object.assign||function(e){for(var t,n=1,r=arguments.length;nne(We,{gap:2,children:[n&&w(Fa,{label:`Recall ${e}`,children:w(cr,{"aria-label":"Use this parameter",icon:w(B9,{}),size:"xs",variant:"ghost",fontSize:20,onClick:n})}),ne(Ut,{fontWeight:"semibold",whiteSpace:"nowrap",children:[e,":"]}),r?ne(Rf,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",w(D9,{mx:"2px"})]}):w(Ut,{maxHeight:100,overflowY:"scroll",wordBreak:"break-all",children:t.toString()})]}),que=(e,t)=>e.image.uuid===t.image.uuid,Kue=_.exports.memo(({image:e})=>{const t=An(),n=La("blackAlpha.100","whiteAlpha.100"),r=e?.metadata?.image||{},{type:o,postprocessing:i,sampler:s,prompt:u,seed:c,variations:f,steps:p,cfg_scale:h,seamless:m,width:v,height:y,strength:x,fit:E,init_image_path:S,mask_image_path:b,orig_path:C,scale:A}=r,I=JSON.stringify(r,null,2);return ne(We,{gap:1,direction:"column",overflowY:"scroll",width:"100%",children:[ne(We,{gap:2,children:[w(Ut,{fontWeight:"semibold",children:"File:"}),ne(Rf,{href:e.url,isExternal:!0,children:[e.url,w(D9,{mx:"2px"})]})]}),Object.keys(r).length>0?ne(Bn,{children:[o&&w(Zt,{label:"Type",value:o}),["esrgan","gfpgan"].includes(o)&&w(Zt,{label:"Original image",value:C,isLink:!0}),o==="gfpgan"&&x&&w(Zt,{label:"Fix faces strength",value:x,onClick:()=>t(sb(x))}),o==="esrgan"&&A&&w(Zt,{label:"Upscaling scale",value:A,onClick:()=>t(lb(A))}),o==="esrgan"&&x&&w(Zt,{label:"Upscaling strength",value:x,onClick:()=>t(ub(x))}),u&&w(Zt,{label:"Prompt",value:ob(u),onClick:()=>t(i9(u))}),c&&w(Zt,{label:"Seed",value:c,onClick:()=>t(jf(c))}),s&&w(Zt,{label:"Sampler",value:s,onClick:()=>t(u9(s))}),p&&w(Zt,{label:"Steps",value:p,onClick:()=>t(a9(p))}),h&&w(Zt,{label:"CFG scale",value:h,onClick:()=>t(s9(h))}),f&&f.length>0&&w(Zt,{label:"Seed-weight pairs",value:ib(f),onClick:()=>t(d9(ib(f)))}),m&&w(Zt,{label:"Seamless",value:m,onClick:()=>t(ab(m))}),v&&w(Zt,{label:"Width",value:v,onClick:()=>t(ab(v))}),y&&w(Zt,{label:"Height",value:y,onClick:()=>t(l9(y))}),S&&w(Zt,{label:"Initial image",value:S,isLink:!0,onClick:()=>t(ug(S))}),b&&w(Zt,{label:"Mask image",value:b,isLink:!0,onClick:()=>t(ow(b))}),o==="img2img"&&x&&w(Zt,{label:"Image to image strength",value:x,onClick:()=>t(c9(x))}),E&&w(Zt,{label:"Image to image fit",value:E,onClick:()=>t(f9(E))}),i&&i.length>0&&i.map(N=>{if(N.type==="esrgan"){const{scale:L,strength:$}=N;return ne(Bn,{children:[w(Zt,{label:"Upscaling scale",value:L,onClick:()=>t(lb(L))}),w(Zt,{label:"Upscaling strength",value:$,onClick:()=>t(ub($))})]})}else if(N.type==="gfpgan"){const{strength:L}=N;return w(Zt,{label:"Fix faces strength",value:L,onClick:()=>t(sb(L))})}}),ne(We,{gap:2,direction:"column",children:[ne(We,{gap:2,children:[w(Fa,{label:"Copy metadata JSON",children:w(cr,{"aria-label":"Copy metadata JSON",icon:w(Vue,{}),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(I)})}),w(Ut,{fontWeight:"semibold",children:"Metadata JSON:"})]}),w(Fi,{overflow:"scroll",flexGrow:3,wordBreak:"break-all",bgColor:n,padding:2,children:w("pre",{children:I})})]})]}):w(Of,{width:"100%",pt:10,children:w(Ut,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"})})]})},que),$9=vr("socketio/generateImage"),Yue=vr("socketio/runESRGAN"),Zue=vr("socketio/runGFPGAN"),Xue=vr("socketio/deleteImage"),Que=vr("socketio/requestAllImages"),Jue=vr("socketio/cancelProcessing"),ece=vr("socketio/uploadInitialImage"),tce=vr("socketio/uploadMaskImage"),nce=vr("socketio/requestSystemConfig"),rce=qt(e=>e.system,e=>e.shouldConfirmOnDelete),V9=_.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:r,onOpen:o,onClose:i}=M2(),s=An(),u=bt(rce),c=_.exports.useRef(null),f=m=>{m.stopPropagation(),u?o():p()},p=()=>{s(Xue(e)),i()},h=m=>s(g9(!m.target.checked));return ne(Bn,{children:[_.exports.cloneElement(t,{onClick:f,ref:n}),w(NQ,{isOpen:r,leastDestructiveRef:c,onClose:i,children:w(M0,{children:ne(LQ,{children:[w(LS,{fontSize:"lg",fontWeight:"bold",children:"Delete image"}),w(O0,{children:ne(We,{direction:"column",gap:5,children:[w(Ut,{children:"Are you sure? You can't undo this action afterwards."}),w(Wa,{children:ne(We,{alignItems:"center",children:[w(ja,{mb:0,children:"Don't ask me again"}),w(Da,{checked:!u,onChange:h})]})})]})}),ne(NS,{children:[w(ii,{ref:c,onClick:i,children:"Cancel"}),w(ii,{colorScheme:"red",onClick:p,ml:3,children:"Delete"})]})]})})})]})}),Pi=e=>{const{label:t,size:n="sm",...r}=e;return w(ii,{size:n,...r,children:t})},oce=qt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),ice=({image:e,shouldShowImageDetails:t,setShouldShowImageDetails:n})=>{const r=An(),{intermediateImage:o}=bt(S=>S.gallery),{upscalingLevel:i,gfpganStrength:s}=bt(S=>S.options),{isProcessing:u,isConnected:c,isGFPGANAvailable:f,isESRGANAvailable:p}=bt(oce),h=()=>r(ug(e.url)),m=()=>r(p9(e.metadata)),v=()=>r(jf(e.metadata.image.seed)),y=()=>r(Yue(e)),x=()=>r(Zue(e)),E=()=>n(!t);return ne(We,{gap:2,children:[w(Pi,{label:"Use as initial image",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:h}),w(Pi,{label:"Use all",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!["txt2img","img2img"].includes(e?.metadata?.image?.type),onClick:m}),w(Pi,{label:"Use seed",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!e?.metadata?.image?.seed,onClick:v}),w(Pi,{label:"Upscale",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!p||Boolean(o)||!(c&&!u)||!i,onClick:y}),w(Pi,{label:"Fix faces",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!f||Boolean(o)||!(c&&!u)||!s,onClick:x}),w(Pi,{label:"Details",colorScheme:"gray",variant:t?"solid":"outline",borderWidth:1,flexGrow:1,onClick:E}),w(V9,{image:e,children:w(Pi,{label:"Delete",colorScheme:"red",flexGrow:1,variant:"outline",isDisabled:Boolean(o)})})]})},ace="calc(100vh - 238px)",sce=()=>{const{currentImage:e,intermediateImage:t}=bt(s=>s.gallery),n=La("rgba(255, 255, 255, 0.85)","rgba(0, 0, 0, 0.8)"),[r,o]=_.exports.useState(!1),i=t||e;return i?ne(We,{direction:"column",borderWidth:1,rounded:"md",p:2,gap:2,children:[w(ice,{image:i,shouldShowImageDetails:r,setShouldShowImageDetails:o}),ne(Of,{height:ace,position:"relative",children:[w(If,{src:i.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"}),r&&w(We,{width:"100%",height:"100%",position:"absolute",top:0,left:0,p:3,boxSizing:"border-box",backgroundColor:n,overflow:"scroll",children:w(Kue,{image:i})})]})]}):w(Of,{height:"100%",position:"relative",children:w(Ut,{size:"xl",children:"No image selected"})})},lce=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,uce=_.exports.memo(e=>{const[t,n]=_.exports.useState(!1),r=An(),o=La("green.600","green.300"),i=La("gray.200","gray.700"),s=La("radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 20%, rgba(0,0,0,0) 100%)","radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 100%)"),{image:u,isSelected:c}=e,{url:f,uuid:p,metadata:h}=u,m=()=>n(!0),v=()=>n(!1),y=S=>{S.stopPropagation(),r(p9(h))},x=S=>{S.stopPropagation(),r(jf(u.metadata.image.seed))};return ne(Fi,{position:"relative",children:[w(If,{width:120,height:120,objectFit:"cover",rounded:"md",src:f,loading:"lazy",backgroundColor:i}),ne(We,{cursor:"pointer",position:"absolute",top:0,left:0,rounded:"md",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",background:c?s:void 0,onClick:()=>r(ule(u)),onMouseOver:m,onMouseOut:v,children:[c&&w(To,{fill:o,width:"50%",height:"50%",as:Bue}),t&&ne(We,{direction:"column",gap:1,position:"absolute",top:1,right:1,children:[w(Fa,{label:"Delete image",children:w(V9,{image:u,children:w(cr,{colorScheme:"red","aria-label":"Delete image",icon:w(Gue,{}),size:"xs",variant:"imageHoverIconButton",fontSize:14})})}),["txt2img","img2img"].includes(u?.metadata?.image?.type)&&w(Fa,{label:"Use all parameters",children:w(cr,{"aria-label":"Use all parameters",icon:w(B9,{}),size:"xs",fontSize:18,variant:"imageHoverIconButton",onClickCapture:y})}),u?.metadata?.image?.seed&&w(Fa,{label:"Use seed",children:w(cr,{"aria-label":"Use seed",icon:w(Uue,{}),size:"xs",fontSize:16,variant:"imageHoverIconButton",onClickCapture:x})})]})]})]},p)},lce),cce=()=>{const{images:e,currentImageUuid:t}=bt(n=>n.gallery);return e.length?w(We,{gap:2,wrap:"wrap",pb:2,children:[...e].reverse().map(n=>{const{uuid:r}=n;return w(uce,{image:n,isSelected:t===r},r)})}):w(Of,{height:"100%",position:"relative",children:w(Ut,{size:"xl",children:"No images in gallery"})})},fce=qt(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),dce=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=bt(fce),o=t?Math.round(t*100/n):0;return w(sO,{height:"10px",value:o,isIndeterminate:e&&!r})};function pce(e){return tr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}}]})(e)}function hce(e){return tr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}const mce=qt(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n}},{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),gce=({children:e})=>{const{isOpen:t,onOpen:n,onClose:r}=M2(),{isOpen:o,onOpen:i,onClose:s}=M2(),{shouldDisplayInProgress:u,shouldConfirmOnDelete:c}=bt(mce),f=An(),p=()=>{J9.purge().then(()=>{r(),i()})};return ne(Bn,{children:[_.exports.cloneElement(e,{onClick:n}),ne(Ff,{isOpen:t,onClose:r,children:[w(M0,{}),ne(R0,{children:[w(LS,{children:"Settings"}),w(XI,{}),w(O0,{children:ne(We,{gap:5,direction:"column",children:[w(Wa,{children:ne(A0,{children:[w(ja,{marginBottom:1,children:"Display in-progress images (slower)"}),w(Da,{isChecked:u,onChange:h=>f(mle(h.target.checked))})]})}),w(Wa,{children:ne(A0,{children:[w(ja,{marginBottom:1,children:"Confirm on delete"}),w(Da,{isChecked:c,onChange:h=>f(g9(h.target.checked))})]})}),w(pS,{size:"md",children:"Reset Web UI"}),w(Ut,{children:"Resetting the web UI only resets the browser's local cache of your images and remembered settings. It does not delete any images from disk."}),w(Ut,{children:"If images aren't showing up in the gallery or something else isn't working, please try resetting before submitting an issue on GitHub."}),w(ii,{colorScheme:"red",onClick:p,children:"Reset Web UI"})]})}),w(NS,{children:w(ii,{onClick:r,children:"Close"})})]})]}),ne(Ff,{closeOnOverlayClick:!1,isOpen:o,onClose:s,isCentered:!0,children:[w(M0,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"}),w(R0,{children:w(O0,{pb:6,pt:6,children:w(We,{justifyContent:"center",children:w(Ut,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."})})})})]})]})},vce=qt(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),yce=()=>{const{colorMode:e,toggleColorMode:t}=dm(),{isConnected:n,isProcessing:r,currentIteration:o,totalIterations:i,currentStatus:s}=bt(vce),u=n?"green.500":"red.500",c=e=="light"?w(jue,{}):w(Hue,{}),f=e=="light"?18:20;let p=s;return r&&i>1&&(p+=` [${o}/${i}]`),ne(We,{minWidth:"max-content",alignItems:"center",gap:"1",pl:2,pr:1,children:[w(pS,{size:"lg",children:"InvokeUI"}),w(qT,{}),w(Ut,{textColor:u,children:p}),w(gce,{children:w(cr,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:w(hce,{})})}),w(cr,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:w(Rf,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion/issues",children:w(pce,{})})}),w(cr,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:w(Rf,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion",children:w(Fue,{})})}),w(cr,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:f,icon:c})]})},Ko=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="sm",width:i,isInvalid:s,...u}=e;return w(Wa,{isDisabled:n,width:i,isInvalid:s,children:ne(We,{gap:2,justifyContent:"space-between",alignItems:"center",children:[t&&w(ja,{marginBottom:1,children:w(Ut,{fontSize:r,whiteSpace:"nowrap",children:t})}),ne(tO,{size:o,...u,keepWithinRange:!1,clampValueOnBlur:!0,children:[w(rO,{fontSize:"md"}),ne(nO,{children:[w(aO,{}),w(iO,{})]})]})]})})},U0=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="md",width:i,...s}=e;return w(Wa,{isDisabled:n,width:i,children:ne(We,{justifyContent:"space-between",alignItems:"center",children:[t&&w(ja,{fontSize:r,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t}),w(Da,{size:o,...s})]})})},bce=qt(e=>e.options,e=>({variationAmount:e.variationAmount,seedWeights:e.seedWeights,shouldGenerateVariations:e.shouldGenerateVariations,shouldRandomizeSeed:e.shouldRandomizeSeed,seed:e.seed,iterations:e.iterations}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),xce=()=>{const{shouldGenerateVariations:e,variationAmount:t,seedWeights:n,shouldRandomizeSeed:r,seed:o,iterations:i}=bt(bce),s=An(),u=y=>s(Zse(Number(y))),c=y=>s(ile(y.target.checked)),f=y=>s(jf(Number(y))),p=()=>s(jf(O9(mb,gb))),h=y=>s(tle(y.target.checked)),m=y=>s(nle(Number(y))),v=y=>s(d9(y.target.value));return ne(We,{gap:2,direction:"column",children:[w(Ko,{label:"Images to generate",step:1,min:1,precision:0,onChange:u,value:i}),w(U0,{label:"Randomize seed on generation",isChecked:r,onChange:c}),ne(We,{gap:2,children:[w(Ko,{label:"Seed",step:1,precision:0,flexGrow:1,min:mb,max:gb,isDisabled:r,isInvalid:o<0&&e,onChange:f,value:o}),w(ii,{size:"sm",isDisabled:r,onClick:p,children:w(Ut,{pl:2,pr:2,children:"Shuffle"})})]}),w(U0,{label:"Generate variations",isChecked:e,width:"auto",onChange:h}),w(Ko,{label:"Variation amount",value:t,step:.01,min:0,max:1,isDisabled:!e,onChange:m}),w(Wa,{isInvalid:e&&!(rw(n)||n===""),flexGrow:1,children:ne(A0,{children:[w(ja,{marginInlineEnd:0,marginBottom:1,children:w(Ut,{whiteSpace:"nowrap",children:"Seed Weights"})}),w(cS,{size:"sm",value:n,onChange:v})]})})]})},H0=e=>{const{label:t,isDisabled:n,validValues:r,size:o="sm",fontSize:i="md",marginBottom:s=1,whiteSpace:u="nowrap",...c}=e;return w(Wa,{isDisabled:n,children:ne(We,{justifyContent:"space-between",alignItems:"center",children:[w(ja,{marginBottom:s,children:w(Ut,{fontSize:i,whiteSpace:u,children:t})}),w(uO,{fontSize:i,size:o,...c,children:r.map(f=>typeof f=="string"||typeof f=="number"?w("option",{value:f,children:f},f):w("option",{value:f.value,children:f.key},f.value))})]})})},Sce=qt(e=>e.options,e=>({steps:e.steps,cfgScale:e.cfgScale,sampler:e.sampler,threshold:e.threshold,perlin:e.perlin}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),wce=()=>{const e=An(),{steps:t,cfgScale:n,sampler:r,threshold:o,perlin:i}=bt(Sce);return ne(We,{gap:2,direction:"column",children:[w(Ko,{label:"Steps",min:1,step:1,precision:0,onChange:h=>e(a9(Number(h))),value:t}),w(Ko,{label:"CFG scale",step:.5,onChange:h=>e(s9(Number(h))),value:n}),w(H0,{label:"Sampler",value:r,onChange:h=>e(u9(h.target.value)),validValues:xue}),w(Ko,{label:"Threshold",min:0,step:.1,onChange:h=>e(Xse(Number(h))),value:o}),w(Ko,{label:"Perlin",min:0,max:1,step:.05,onChange:h=>e(Qse(Number(h))),value:i})]})},Cce=qt(e=>e.options,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),_ce=qt(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),kce=()=>{const e=An(),{upscalingLevel:t,upscalingStrength:n}=bt(Cce),{isESRGANAvailable:r}=bt(_ce);return ne(We,{direction:"column",gap:2,children:[w(H0,{isDisabled:!r,label:"Scale",value:t,onChange:s=>e(lb(Number(s.target.value))),validValues:Cue}),w(Ko,{isDisabled:!r,label:"Strength",step:.05,min:0,max:1,onChange:s=>e(ub(Number(s))),value:n})]})},Ece=qt(e=>e.options,e=>({gfpganStrength:e.gfpganStrength}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),Ace=qt(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),Pce=()=>{const e=An(),{gfpganStrength:t}=bt(Ece),{isGFPGANAvailable:n}=bt(Ace);return w(We,{direction:"column",gap:2,children:w(Ko,{isDisabled:!n,label:"Strength",step:.05,min:0,max:1,onChange:o=>e(sb(Number(o))),value:t})})},Tce=qt(e=>e.options,e=>({height:e.height,width:e.width,seamless:e.seamless}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),Ice=()=>{const e=An(),{height:t,width:n,seamless:r}=bt(Tce);return ne(We,{gap:2,direction:"column",children:[ne(We,{gap:2,children:[w(H0,{label:"Width",value:n,flexGrow:1,onChange:u=>e(ab(Number(u.target.value))),validValues:Sue}),w(H0,{label:"Height",value:t,flexGrow:1,onChange:u=>e(l9(Number(u.target.value))),validValues:wue})]}),w(U0,{label:"Seamless tiling",fontSize:"md",isChecked:r,onChange:u=>e(Jse(u.target.checked))})]})};var Oce=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function fd(e,t){var n=Rce(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Rce(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Oce.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Mce=[".DS_Store","Thumbs.db"];function Nce(e){return _u(this,void 0,void 0,function(){return ku(this,function(t){return G0(e)&&Lce(e.dataTransfer)?[2,Bce(e.dataTransfer,e.type)]:Dce(e)?[2,Fce(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,zce(e)]:[2,[]]})})}function Lce(e){return G0(e)}function Dce(e){return G0(e)&&G0(e.target)}function G0(e){return typeof e=="object"&&e!==null}function Fce(e){return bb(e.target.files).map(function(t){return fd(t)})}function zce(e){return _u(this,void 0,void 0,function(){var t;return ku(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return fd(r)})]}})})}function Bce(e,t){return _u(this,void 0,void 0,function(){var n,r;return ku(this,function(o){switch(o.label){case 0:return e.items?(n=bb(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map($ce))]):[3,2];case 1:return r=o.sent(),[2,G3(W9(r))];case 2:return[2,G3(bb(e.files).map(function(i){return fd(i)}))]}})})}function G3(e){return e.filter(function(t){return Mce.indexOf(t.name)===-1})}function bb(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,X3(n)];if(e.sizen)return[!1,X3(n)]}return[!0,null]}function xs(e){return e!=null}function nfe(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,u=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(c){var f=G9(c,n),p=Uf(f,1),h=p[0],m=q9(c,r,o),v=Uf(m,1),y=v[0],x=u?u(c):null;return h&&y&&!x})}function q0(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function ih(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function J3(e){e.preventDefault()}function rfe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function ofe(e){return e.indexOf("Edge/")!==-1}function ife(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return rfe(e)||ofe(e)}function zo(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function wfe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var sw=_.exports.forwardRef(function(e,t){var n=e.children,r=K0(e,ffe),o=Q9(r),i=o.open,s=K0(o,dfe);return _.exports.useImperativeHandle(t,function(){return{open:i}},[i]),w(_.exports.Fragment,{children:n(Dt(Dt({},s),{},{open:i}))})});sw.displayName="Dropzone";var X9={disabled:!1,getFilesFromEvent:Nce,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};sw.defaultProps=X9;sw.propTypes={children:mt.exports.func,accept:mt.exports.objectOf(mt.exports.arrayOf(mt.exports.string)),multiple:mt.exports.bool,preventDropOnDocument:mt.exports.bool,noClick:mt.exports.bool,noKeyboard:mt.exports.bool,noDrag:mt.exports.bool,noDragEventsBubbling:mt.exports.bool,minSize:mt.exports.number,maxSize:mt.exports.number,maxFiles:mt.exports.number,disabled:mt.exports.bool,getFilesFromEvent:mt.exports.func,onFileDialogCancel:mt.exports.func,onFileDialogOpen:mt.exports.func,useFsAccessApi:mt.exports.bool,autoFocus:mt.exports.bool,onDragEnter:mt.exports.func,onDragLeave:mt.exports.func,onDragOver:mt.exports.func,onDrop:mt.exports.func,onDropAccepted:mt.exports.func,onDropRejected:mt.exports.func,onError:mt.exports.func,validator:mt.exports.func};var Cb={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Q9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Dt(Dt({},X9),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,u=t.multiple,c=t.maxFiles,f=t.onDragEnter,p=t.onDragLeave,h=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,y=t.onDropRejected,x=t.onFileDialogCancel,E=t.onFileDialogOpen,S=t.useFsAccessApi,b=t.autoFocus,C=t.preventDropOnDocument,A=t.noClick,I=t.noKeyboard,N=t.noDrag,L=t.noDragEventsBubbling,$=t.onError,K=t.validator,W=_.exports.useMemo(function(){return lfe(n)},[n]),te=_.exports.useMemo(function(){return sfe(n)},[n]),we=_.exports.useMemo(function(){return typeof E=="function"?E:tE},[E]),_e=_.exports.useMemo(function(){return typeof x=="function"?x:tE},[x]),xe=_.exports.useRef(null),ue=_.exports.useRef(null),ve=_.exports.useReducer(Cfe,Cb),Ae=ny(ve,2),j=Ae[0],Z=Ae[1],q=j.isFocused,R=j.isFileDialogActive,H=_.exports.useRef(typeof window<"u"&&window.isSecureContext&&S&&afe()),se=function(){!H.current&&R&&setTimeout(function(){if(ue.current){var Ce=ue.current.files;Ce.length||(Z({type:"closeDialog"}),_e())}},300)};_.exports.useEffect(function(){return window.addEventListener("focus",se,!1),function(){window.removeEventListener("focus",se,!1)}},[ue,R,_e,H]);var le=_.exports.useRef([]),he=function(Ce){xe.current&&xe.current.contains(Ce.target)||(Ce.preventDefault(),le.current=[])};_.exports.useEffect(function(){return C&&(document.addEventListener("dragover",J3,!1),document.addEventListener("drop",he,!1)),function(){C&&(document.removeEventListener("dragover",J3),document.removeEventListener("drop",he))}},[xe,C]),_.exports.useEffect(function(){return!r&&b&&xe.current&&xe.current.focus(),function(){}},[xe,b,r]);var ge=_.exports.useCallback(function(ce){$?$(ce):console.error(ce)},[$]),Ee=_.exports.useCallback(function(ce){ce.preventDefault(),ce.persist(),St(ce),le.current=[].concat(mfe(le.current),[ce.target]),ih(ce)&&Promise.resolve(o(ce)).then(function(Ce){if(!(q0(ce)&&!L)){var st=Ce.length,rt=st>0&&nfe({files:Ce,accept:W,minSize:s,maxSize:i,multiple:u,maxFiles:c,validator:K}),re=st>0&&!rt;Z({isDragAccept:rt,isDragReject:re,isDragActive:!0,type:"setDraggedFiles"}),f&&f(ce)}}).catch(function(Ce){return ge(Ce)})},[o,f,ge,L,W,s,i,u,c,K]),fe=_.exports.useCallback(function(ce){ce.preventDefault(),ce.persist(),St(ce);var Ce=ih(ce);if(Ce&&ce.dataTransfer)try{ce.dataTransfer.dropEffect="copy"}catch{}return Ce&&h&&h(ce),!1},[h,L]),Pe=_.exports.useCallback(function(ce){ce.preventDefault(),ce.persist(),St(ce);var Ce=le.current.filter(function(rt){return xe.current&&xe.current.contains(rt)}),st=Ce.indexOf(ce.target);st!==-1&&Ce.splice(st,1),le.current=Ce,!(Ce.length>0)&&(Z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ih(ce)&&p&&p(ce))},[xe,p,L]),Le=_.exports.useCallback(function(ce,Ce){var st=[],rt=[];ce.forEach(function(re){var je=G9(re,W),wt=ny(je,2),gn=wt[0],Tn=wt[1],Sr=q9(re,s,i),Oo=ny(Sr,2),ui=Oo[0],$n=Oo[1],Vr=K?K(re):null;if(gn&&ui&&!Vr)st.push(re);else{var Ja=[Tn,$n];Vr&&(Ja=Ja.concat(Vr)),rt.push({file:re,errors:Ja.filter(function(qs){return qs})})}}),(!u&&st.length>1||u&&c>=1&&st.length>c)&&(st.forEach(function(re){rt.push({file:re,errors:[tfe]})}),st.splice(0)),Z({acceptedFiles:st,fileRejections:rt,type:"setFiles"}),m&&m(st,rt,Ce),rt.length>0&&y&&y(rt,Ce),st.length>0&&v&&v(st,Ce)},[Z,u,W,s,i,c,m,v,y,K]),gt=_.exports.useCallback(function(ce){ce.preventDefault(),ce.persist(),St(ce),le.current=[],ih(ce)&&Promise.resolve(o(ce)).then(function(Ce){q0(ce)&&!L||Le(Ce,ce)}).catch(function(Ce){return ge(Ce)}),Z({type:"reset"})},[o,Le,ge,L]),Mt=_.exports.useCallback(function(){if(H.current){Z({type:"openDialog"}),we();var ce={multiple:u,types:te};window.showOpenFilePicker(ce).then(function(Ce){return o(Ce)}).then(function(Ce){Le(Ce,null),Z({type:"closeDialog"})}).catch(function(Ce){ufe(Ce)?(_e(Ce),Z({type:"closeDialog"})):cfe(Ce)?(H.current=!1,ue.current?(ue.current.value=null,ue.current.click()):ge(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ge(Ce)});return}ue.current&&(Z({type:"openDialog"}),we(),ue.current.value=null,ue.current.click())},[Z,we,_e,S,Le,ge,te,u]),Pn=_.exports.useCallback(function(ce){!xe.current||!xe.current.isEqualNode(ce.target)||(ce.key===" "||ce.key==="Enter"||ce.keyCode===32||ce.keyCode===13)&&(ce.preventDefault(),Mt())},[xe,Mt]),ye=_.exports.useCallback(function(){Z({type:"focus"})},[]),Nt=_.exports.useCallback(function(){Z({type:"blur"})},[]),en=_.exports.useCallback(function(){A||(ife()?setTimeout(Mt,0):Mt())},[A,Mt]),at=function(Ce){return r?null:Ce},br=function(Ce){return I?null:at(Ce)},xr=function(Ce){return N?null:at(Ce)},St=function(Ce){L&&Ce.stopPropagation()},kt=_.exports.useMemo(function(){return function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ce=ce.refKey,st=Ce===void 0?"ref":Ce,rt=ce.role,re=ce.onKeyDown,je=ce.onFocus,wt=ce.onBlur,gn=ce.onClick,Tn=ce.onDragEnter,Sr=ce.onDragOver,Oo=ce.onDragLeave,ui=ce.onDrop,$n=K0(ce,pfe);return Dt(Dt(wb({onKeyDown:br(zo(re,Pn)),onFocus:br(zo(je,ye)),onBlur:br(zo(wt,Nt)),onClick:at(zo(gn,en)),onDragEnter:xr(zo(Tn,Ee)),onDragOver:xr(zo(Sr,fe)),onDragLeave:xr(zo(Oo,Pe)),onDrop:xr(zo(ui,gt)),role:typeof rt=="string"&&rt!==""?rt:"presentation"},st,xe),!r&&!I?{tabIndex:0}:{}),$n)}},[xe,Pn,ye,Nt,en,Ee,fe,Pe,gt,I,N,r]),tn=_.exports.useCallback(function(ce){ce.stopPropagation()},[]),$t=_.exports.useMemo(function(){return function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ce=ce.refKey,st=Ce===void 0?"ref":Ce,rt=ce.onChange,re=ce.onClick,je=K0(ce,hfe),wt=wb({accept:W,multiple:u,type:"file",style:{display:"none"},onChange:at(zo(rt,gt)),onClick:at(zo(re,tn)),tabIndex:-1},st,ue);return Dt(Dt({},wt),je)}},[ue,n,u,gt,r]);return Dt(Dt({},j),{},{isFocused:q&&!r,getRootProps:kt,getInputProps:$t,rootRef:xe,inputRef:ue,open:at(Mt)})}function Cfe(e,t){switch(t.type){case"focus":return Dt(Dt({},e),{},{isFocused:!0});case"blur":return Dt(Dt({},e),{},{isFocused:!1});case"openDialog":return Dt(Dt({},Cb),{},{isFileDialogActive:!0});case"closeDialog":return Dt(Dt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Dt(Dt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Dt(Dt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Dt({},Cb);default:return e}}function tE(){}const nE=({children:e,fileAcceptedCallback:t,fileRejectionCallback:n})=>{const r=_.exports.useCallback((c,f)=>{f.forEach(p=>{n(p)}),c.forEach(p=>{t(p)})},[t,n]),{getRootProps:o,getInputProps:i,open:s}=Q9({onDrop:r,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),u=c=>{c.stopPropagation(),s()};return ne(Fi,{...o(),flexGrow:3,children:[w("input",{...i({multiple:!1})}),_.exports.cloneElement(e,{onClick:u})]})},_fe=qt(e=>e.options,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),kfe=({setShouldShowMask:e})=>{const t=An(),{initialImagePath:n,maskPath:r}=bt(_fe),o=Wie(),i=y=>{y.stopPropagation(),t(ug(""))},s=y=>{y.stopPropagation(),t(ow(""))},u=()=>e(!1),c=()=>e(!0),f=()=>e(!0),p=()=>e(!0),h=_.exports.useCallback(y=>t(ece(y)),[t]),m=_.exports.useCallback(y=>t(tce(y)),[t]),v=_.exports.useCallback(y=>{const x=y.errors.reduce((E,S)=>E+` +`+S.message,"");o({title:"Upload failed",description:x,status:"error",isClosable:!0})},[o]);return ne(We,{gap:2,justifyContent:"space-between",width:"100%",children:[w(nE,{fileAcceptedCallback:h,fileRejectionCallback:v,children:w(ii,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:u,onMouseOut:c,leftIcon:w(H3,{}),width:"100%",children:"Image"})}),w(cr,{isDisabled:!n,size:"sm","aria-label":"Reset mask",onClick:i,icon:w(U3,{})}),w(nE,{fileAcceptedCallback:m,fileRejectionCallback:v,children:w(ii,{isDisabled:!n,size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:f,onMouseOut:p,leftIcon:w(H3,{}),width:"100%",children:"Mask"})}),w(cr,{isDisabled:!r,size:"sm","aria-label":"Reset mask",onClick:s,icon:w(U3,{})})]})},Efe=qt(e=>e.options,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),Afe=()=>{const{initialImagePath:e,maskPath:t}=bt(Efe),[n,r]=_.exports.useState(!1);return ne(We,{direction:"column",alignItems:"center",gap:2,children:[w(kfe,{setShouldShowMask:r}),e&&ne(We,{position:"relative",width:"100%",children:[w(If,{fit:"contain",src:e,rounded:"md",className:"checkerboard"}),n&&t&&w(If,{position:"absolute",top:0,left:0,fit:"contain",src:t,rounded:"md",zIndex:1})]})]})},Pfe=qt(e=>e.options,e=>({img2imgStrength:e.img2imgStrength,shouldFitToWidthHeight:e.shouldFitToWidthHeight})),Tfe=()=>{const e=An(),{img2imgStrength:t,shouldFitToWidthHeight:n}=bt(Pfe);return ne(We,{direction:"column",gap:2,children:[w(Ko,{label:"Strength",step:.01,min:0,max:1,onChange:i=>e(c9(Number(i))),value:t}),w(U0,{label:"Fit initial image to output size",isChecked:n,onChange:i=>e(f9(i.target.checked))}),w(Afe,{})]})},Ife=qt(e=>e.options,e=>({initialImagePath:e.initialImagePath,shouldUseInitImage:e.shouldUseInitImage,shouldRunESRGAN:e.shouldRunESRGAN,shouldRunGFPGAN:e.shouldRunGFPGAN}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),Ofe=qt(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable,openAccordions:e.openAccordions}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),Rfe=()=>{const{shouldRunESRGAN:e,shouldRunGFPGAN:t,shouldUseInitImage:n,initialImagePath:r}=bt(Ife),{isGFPGANAvailable:o,isESRGANAvailable:i,openAccordions:s}=bt(Ofe),u=An();return ne(_T,{defaultIndex:s,allowMultiple:!0,reduceMotion:!0,onChange:m=>u(vle(m)),children:[ne(ms,{children:[w("h2",{children:ne(ps,{children:[w(Fi,{flex:"1",textAlign:"left",children:"Seed & Variation"}),w(hs,{})]})}),w(gs,{children:w(xce,{})})]}),ne(ms,{children:[w("h2",{children:ne(ps,{children:[w(Fi,{flex:"1",textAlign:"left",children:"Sampler"}),w(hs,{})]})}),w(gs,{children:w(wce,{})})]}),ne(ms,{children:[w("h2",{children:ne(ps,{children:[ne(We,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[w(Ut,{children:"Upscale (ESRGAN)"}),w(Da,{isDisabled:!i,isChecked:e,onChange:m=>u(ole(m.target.checked))})]}),w(hs,{})]})}),w(gs,{children:w(kce,{})})]}),ne(ms,{children:[w("h2",{children:ne(ps,{children:[ne(We,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[w(Ut,{children:"Fix Faces (GFPGAN)"}),w(Da,{isDisabled:!o,isChecked:t,onChange:m=>u(rle(m.target.checked))})]}),w(hs,{})]})}),w(gs,{children:w(Pce,{})})]}),ne(ms,{children:[w("h2",{children:ne(ps,{children:[ne(We,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[w(Ut,{children:"Image to Image"}),w(Da,{isDisabled:!r,isChecked:n,onChange:m=>u(ele(m.target.checked))})]}),w(hs,{})]})}),w(gs,{children:w(Tfe,{})})]}),ne(ms,{children:[w("h2",{children:ne(ps,{children:[w(Fi,{flex:"1",textAlign:"left",children:"Output"}),w(hs,{})]})}),w(gs,{children:w(Ice,{})})]})]})},Mfe=qt(e=>e.options,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),Nfe=qt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),Lfe=()=>{const{prompt:e,shouldGenerateVariations:t,seedWeights:n,maskPath:r,initialImagePath:o,seed:i}=bt(Mfe),{isProcessing:s,isConnected:u}=bt(Nfe);return _.exports.useMemo(()=>!(!e||r&&!o||s||!u||t&&(!(rw(n)||n==="")||i===-1)),[e,r,o,s,u,t,n,i])},Dfe=qt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),Ffe=()=>{const e=An(),{isProcessing:t,isConnected:n}=bt(Dfe),r=Lfe();return ne(We,{gap:2,direction:"column",alignItems:"space-between",height:"100%",children:[w(Pi,{label:"Generate",type:"submit",colorScheme:"green",flexGrow:1,isDisabled:!r,fontSize:"md",size:"md",onClick:()=>e($9())}),w(Pi,{label:"Cancel",colorScheme:"red",flexGrow:1,fontSize:"md",size:"md",isDisabled:!n||!t,onClick:()=>e(Jue())})]})},zfe=()=>{const{prompt:e}=bt(o=>o.options),t=An(),n=o=>t(i9(o.target.value)),r=o=>{o.key==="Enter"&&o.shiftKey===!1&&(o.preventDefault(),t($9()))};return w(fO,{id:"prompt",name:"prompt",resize:"none",size:"lg",height:"100%",isInvalid:!e.length,onChange:n,onKeyDown:r,value:e,placeholder:"I'm dreaming of..."})},Bfe=qt(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),$fe=qt(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer}),{memoizeOptions:{resultEqualityCheck:Ht.exports.isEqual}}),Vfe=()=>{const e=An(),t=bt(Bfe),{shouldShowLogViewer:n}=bt($fe),r=La("gray.50","gray.900"),o=La("gray.500","gray.500"),i=La({info:void 0,warning:"yellow.500",error:"red.500"},{info:void 0,warning:"yellow.300",error:"red.300"}),[s,u]=_.exports.useState(!0),c=_.exports.useRef(null);_.exports.useLayoutEffect(()=>{c.current!==null&&s&&(c.current.scrollTop=c.current.scrollHeight)},[s,t,n]);const f=()=>{e(gle(!n))};return ne(Bn,{children:[n&&w(We,{position:"fixed",left:0,bottom:0,height:"200px",width:"100vw",overflow:"auto",direction:"column",fontFamily:"monospace",fontSize:"sm",pl:12,pr:2,pb:2,borderTopWidth:"4px",borderColor:o,background:r,ref:c,children:t.map((p,h)=>{const{timestamp:m,message:v,level:y}=p;return ne(We,{gap:2,textColor:i[y],children:[ne(Ut,{fontSize:"sm",fontWeight:"semibold",children:[m,":"]}),w(Ut,{fontSize:"sm",wordBreak:"break-all",children:v})]},h)})}),n&&w(Fa,{label:s?"Autoscroll on":"Autoscroll off",children:w(cr,{size:"sm",position:"fixed",left:2,bottom:12,"aria-label":"Toggle autoscroll",variant:"solid",colorScheme:s?"blue":"gray",icon:w(zue,{}),onClick:()=>u(!s)})}),w(Fa,{label:n?"Hide logs":"Show logs",children:w(cr,{size:"sm",position:"fixed",left:2,bottom:2,variant:"solid","aria-label":"Toggle Log Viewer",icon:n?w(Wue,{}):w($ue,{}),onClick:f})})]})},Wfe=()=>{const e=An(),[t,n]=_.exports.useState(!1);return _.exports.useEffect(()=>{e(Que()),e(nce()),n(!0)},[e]),t?ne(Bn,{children:[ne(dS,{width:"100vw",height:"100vh",templateAreas:` + "header header header header" + "progressBar progressBar progressBar progressBar" + "menu prompt processButtons imageRoll" + "menu currentImage currentImage imageRoll"`,gridTemplateRows:"36px 10px 100px auto",gridTemplateColumns:"350px auto 100px 388px",gap:2,children:[w(pa,{area:"header",pt:1,children:w(yce,{})}),w(pa,{area:"progressBar",children:w(dce,{})}),w(pa,{pl:"2",area:"menu",overflowY:"scroll",children:w(Rfe,{})}),w(pa,{area:"prompt",children:w(zfe,{})}),w(pa,{area:"processButtons",children:w(Ffe,{})}),w(pa,{area:"currentImage",children:w(sce,{})}),w(pa,{pr:"2",area:"imageRoll",overflowY:"scroll",children:w(cce,{})})]}),w(Vfe,{})]}):w(N9,{})},J9=Fse(R9);ry.createRoot(document.getElementById("root")).render(w(ee.StrictMode,{children:w(hse,{store:R9,children:w(M9,{loading:w(N9,{}),persistor:J9,children:ne(Qie,{theme:V3,children:[w(uB,{initialColorMode:V3.config.initialColorMode}),w(Wfe,{})]})})})})); diff --git a/frontend/dist/assets/index.632c341a.js b/frontend/dist/assets/index.632c341a.js deleted file mode 100644 index 7328ca2fb4..0000000000 --- a/frontend/dist/assets/index.632c341a.js +++ /dev/null @@ -1,694 +0,0 @@ -function p$(e,t){for(var r=0;ri[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"]'))i(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerpolicy&&(c.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?c.credentials="include":o.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();var hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function h$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D={exports:{}},LR={exports:{}};/** - * @license React - * react.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r="18.2.0",i=Symbol.for("react.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),P=Symbol.iterator,U="@@iterator";function L(b){if(b===null||typeof b!="object")return null;var A=P&&b[P]||b[U];return typeof A=="function"?A:null}var F={current:null},B={transition:null},$={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},Z={},fe=null;function me(b){fe=b}Z.setExtraStackFrame=function(b){fe=b},Z.getCurrentStack=null,Z.getStackAddendum=function(){var b="";fe&&(b+=fe);var A=Z.getCurrentStack;return A&&(b+=A()||""),b};var se=!1,Se=!1,Ke=!1,ae=!1,ce=!1,ge={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:B,ReactCurrentOwner:K};ge.ReactDebugCurrentFrame=Z,ge.ReactCurrentActQueue=$;function _e(b){{for(var A=arguments.length,V=new Array(A>1?A-1:0),G=1;G1?A-1:0),G=1;G1){for(var At=Array(yt),ht=0;ht1){for(var zt=Array(ht),_t=0;_t is not supported and will be removed in a future major release. Did you mean to render instead?")),A.Provider},set:function(Ce){A.Provider=Ce}},_currentValue:{get:function(){return A._currentValue},set:function(Ce){A._currentValue=Ce}},_currentValue2:{get:function(){return A._currentValue2},set:function(Ce){A._currentValue2=Ce}},_threadCount:{get:function(){return A._threadCount},set:function(Ce){A._threadCount=Ce}},Consumer:{get:function(){return V||(V=!0,oe("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),A.Consumer}},displayName:{get:function(){return A.displayName},set:function(Ce){te||(_e("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ce),te=!0)}}}),A.Consumer=Fe}return A._currentRenderer=null,A._currentRenderer2=null,A}var pr=-1,Ma=0,Ii=1,Pa=2;function q(b){if(b._status===pr){var A=b._result,V=A();if(V.then(function(Fe){if(b._status===Ma||b._status===pr){var Ce=b;Ce._status=Ii,Ce._result=Fe}},function(Fe){if(b._status===Ma||b._status===pr){var Ce=b;Ce._status=Pa,Ce._result=Fe}}),b._status===pr){var G=b;G._status=Ma,G._result=V}}if(b._status===Ii){var te=b._result;return te===void 0&&oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s - -Your code should look like: - const MyComponent = lazy(() => import('./MyComponent')) - -Did you accidentally put curly braces around the import?`,te),"default"in te||oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s - -Your code should look like: - const MyComponent = lazy(() => import('./MyComponent'))`,te),te.default}else throw b._result}function Ue(b){var A={_status:pr,_result:b},V={$$typeof:R,_payload:A,_init:q};{var G,te;Object.defineProperties(V,{defaultProps:{configurable:!0,get:function(){return G},set:function(Fe){oe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),G=Fe,Object.defineProperty(V,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return te},set:function(Fe){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),te=Fe,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function qe(b){b!=null&&b.$$typeof===_?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof b!="function"?oe("forwardRef requires a render function but was given %s.",b===null?"null":typeof b):b.length!==0&&b.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",b.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),b!=null&&(b.defaultProps!=null||b.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var A={$$typeof:S,render:b};{var V;Object.defineProperty(A,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(G){V=G,!b.name&&!b.displayName&&(b.displayName=G)}})}return A}var St;St=Symbol.for("react.module.reference");function an(b){return!!(typeof b=="string"||typeof b=="function"||b===c||b===h||ce||b===u||b===x||b===w||ae||b===k||se||Se||Ke||typeof b=="object"&&b!==null&&(b.$$typeof===R||b.$$typeof===_||b.$$typeof===m||b.$$typeof===v||b.$$typeof===S||b.$$typeof===St||b.getModuleId!==void 0))}function Sn(b,A){an(b)||oe("memo: The first argument must be a component. Instead received: %s",b===null?"null":typeof b);var V={$$typeof:_,type:b,compare:A===void 0?null:A};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(te){G=te,!b.name&&!b.displayName&&(b.displayName=te)}})}return V}function tt(){var b=F.current;return b===null&&oe(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: -1. You might have mismatching versions of React and the renderer (such as React DOM) -2. You might be breaking the Rules of Hooks -3. You might have more than one copy of React in the same app -See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),b}function Ht(b){var A=tt();if(b._context!==void 0){var V=b._context;V.Consumer===b?oe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):V.Provider===b&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return A.useContext(b)}function jn(b){var A=tt();return A.useState(b)}function zn(b,A,V){var G=tt();return G.useReducer(b,A,V)}function sn(b){var A=tt();return A.useRef(b)}function zr(b,A){var V=tt();return V.useEffect(b,A)}function hi(b,A){var V=tt();return V.useInsertionEffect(b,A)}function Do(b,A){var V=tt();return V.useLayoutEffect(b,A)}function va(b,A){var V=tt();return V.useCallback(b,A)}function io(b,A){var V=tt();return V.useMemo(b,A)}function wu(b,A,V){var G=tt();return G.useImperativeHandle(b,A,V)}function mi(b,A){{var V=tt();return V.useDebugValue(b,A)}}function $s(){var b=tt();return b.useTransition()}function Fi(b){var A=tt();return A.useDeferredValue(b)}function Jt(){var b=tt();return b.useId()}function zi(b,A,V){var G=tt();return G.useSyncExternalStore(b,A,V)}var ga=0,Mo,os,Po,ss,ls,Lo,Io;function us(){}us.__reactDisabledLog=!0;function Vs(){{if(ga===0){Mo=console.log,os=console.info,Po=console.warn,ss=console.error,ls=console.group,Lo=console.groupCollapsed,Io=console.groupEnd;var b={configurable:!0,enumerable:!0,value:us,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}ga++}}function Hs(){{if(ga--,ga===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Le({},b,{value:Mo}),info:Le({},b,{value:os}),warn:Le({},b,{value:Po}),error:Le({},b,{value:ss}),group:Le({},b,{value:ls}),groupCollapsed:Le({},b,{value:Lo}),groupEnd:Le({},b,{value:Io})})}ga<0&&oe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var vi=ge.ReactCurrentDispatcher,Pr;function La(b,A,V){{if(Pr===void 0)try{throw Error()}catch(te){var G=te.stack.trim().match(/\n( *(at )?)/);Pr=G&&G[1]||""}return` -`+Pr+b}}var ya=!1,Ia;{var cs=typeof WeakMap=="function"?WeakMap:Map;Ia=new cs}function Fo(b,A){if(!b||ya)return"";{var V=Ia.get(b);if(V!==void 0)return V}var G;ya=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=vi.current,vi.current=null,Vs();try{if(A){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(Pt){G=Pt}Reflect.construct(b,[],Ce)}else{try{Ce.call()}catch(Pt){G=Pt}b.call(Ce.prototype)}}else{try{throw Error()}catch(Pt){G=Pt}b()}}catch(Pt){if(Pt&&G&&typeof Pt.stack=="string"){for(var $e=Pt.stack.split(` -`),it=G.stack.split(` -`),yt=$e.length-1,At=it.length-1;yt>=1&&At>=0&&$e[yt]!==it[At];)At--;for(;yt>=1&&At>=0;yt--,At--)if($e[yt]!==it[At]){if(yt!==1||At!==1)do if(yt--,At--,At<0||$e[yt]!==it[At]){var ht=` -`+$e[yt].replace(" at new "," at ");return b.displayName&&ht.includes("")&&(ht=ht.replace("",b.displayName)),typeof b=="function"&&Ia.set(b,ht),ht}while(yt>=1&&At>=0);break}}}finally{ya=!1,vi.current=Fe,Hs(),Error.prepareStackTrace=te}var zt=b?b.displayName||b.name:"",_t=zt?La(zt):"";return typeof b=="function"&&Ia.set(b,_t),_t}function fs(b,A,V){return Fo(b,!1)}function Dl(b){var A=b.prototype;return!!(A&&A.isReactComponent)}function ba(b,A,V){if(b==null)return"";if(typeof b=="function")return Fo(b,Dl(b));if(typeof b=="string")return La(b);switch(b){case x:return La("Suspense");case w:return La("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case S:return fs(b.render);case _:return ba(b.type,A,V);case R:{var G=b,te=G._payload,Fe=G._init;try{return ba(Fe(te),A,V)}catch{}}}return""}var zo={},Fa=ge.ReactDebugCurrentFrame;function gi(b){if(b){var A=b._owner,V=ba(b.type,b._source,A?A.type:null);Fa.setExtraStackFrame(V)}else Fa.setExtraStackFrame(null)}function Ws(b,A,V,G,te){{var Fe=Function.call.bind(hn);for(var Ce in b)if(Fe(b,Ce)){var $e=void 0;try{if(typeof b[Ce]!="function"){var it=Error((G||"React class")+": "+V+" type `"+Ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[Ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw it.name="Invariant Violation",it}$e=b[Ce](A,Ce,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(yt){$e=yt}$e&&!($e instanceof Error)&&(gi(te),oe("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",G||"React class",V,Ce,typeof $e),gi(null)),$e instanceof Error&&!($e.message in zo)&&(zo[$e.message]=!0,gi(te),oe("Failed %s type: %s",V,$e.message),gi(null))}}}function ln(b){if(b){var A=b._owner,V=ba(b.type,b._source,A?A.type:null);me(V)}else me(null)}var yi;yi=!1;function Bo(){if(K.current){var b=jt(K.current.type);if(b)return` - -Check the render method of \``+b+"`."}return""}function Ft(b){if(b!==void 0){var A=b.fileName.replace(/^.*[\\\/]/,""),V=b.lineNumber;return` - -Check your code at `+A+":"+V+"."}return""}function Gs(b){return b!=null?Ft(b.__source):""}var xr={};function Bi(b){var A=Bo();if(!A){var V=typeof b=="string"?b:b.displayName||b.name;V&&(A=` - -Check the top-level render call using <`+V+">.")}return A}function Ha(b,A){if(!(!b._store||b._store.validated||b.key!=null)){b._store.validated=!0;var V=Bi(A);if(!xr[V]){xr[V]=!0;var G="";b&&b._owner&&b._owner!==K.current&&(G=" It was passed a child from "+jt(b._owner.type)+"."),ln(b),oe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,G),ln(null)}}}function oo(b,A){if(typeof b=="object"){if(Kt(b))for(var V=0;V",te=" Did you accidentally export a JSX literal instead of a component?"):Ce=typeof b,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ce,te)}var $e=rt.apply(this,arguments);if($e==null)return $e;if(G)for(var it=2;it10&&_e("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),G._updatedFibers.clear()}}}var so=!1,bi=null;function Ys(b){if(bi===null)try{var A=("require"+Math.random()).slice(0,7),V=e&&e[A];bi=V.call(e,"timers").setImmediate}catch{bi=function(te){so===!1&&(so=!0,typeof MessageChannel>"u"&&oe("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Fe=new MessageChannel;Fe.port1.onmessage=te,Fe.port2.postMessage(void 0)}}return bi(b)}var vn=0,In=!1;function Ml(b){{var A=vn;vn++,$.current===null&&($.current=[]);var V=$.isBatchingLegacy,G;try{if($.isBatchingLegacy=!0,G=b(),!V&&$.didScheduleLegacyUpdate){var te=$.current;te!==null&&($.didScheduleLegacyUpdate=!1,de(te))}}catch(zt){throw za(A),zt}finally{$.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var Fe=G,Ce=!1,$e={then:function(zt,_t){Ce=!0,Fe.then(function(Pt){za(A),vn===0?W(Pt,zt,_t):zt(Pt)},function(Pt){za(A),_t(Pt)})}};return!In&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Ce||(In=!0,oe("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),$e}else{var it=G;if(za(A),vn===0){var yt=$.current;yt!==null&&(de(yt),$.current=null);var At={then:function(zt,_t){$.current===null?($.current=[],W(it,zt,_t)):zt(it)}};return At}else{var ht={then:function(zt,_t){zt(it)}};return ht}}}}function za(b){b!==vn-1&&oe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),vn=b}function W(b,A,V){{var G=$.current;if(G!==null)try{de(G),Ys(function(){G.length===0?($.current=null,A(b)):W(b,A,V)})}catch(te){V(te)}else A(b)}}var Q=!1;function de(b){if(!Q){Q=!0;var A=0;try{for(;A0;){var Qt=mn-1>>>1,Nn=je[Qt];if(v(Nn,rt)>0)je[Qt]=rt,je[mn]=Nn,mn=Qt;else return}}function m(je,rt,wt){for(var mn=wt,Qt=je.length,Nn=Qt>>>1;mnwt&&(!je||lr()));){var mn=ae.callback;if(typeof mn=="function"){ae.callback=null,ce=ae.priorityLevel;var Qt=ae.expirationTime<=wt,Nn=mn(Qt);wt=e.unstable_now(),typeof Nn=="function"?ae.callback=Nn:ae===c(se)&&u(se),we(wt)}else u(se);ae=c(se)}if(ae!==null)return!0;var Ln=c(Se);return Ln!==null&&Rt(Le,Ln.startTime-wt),!1}function st(je,rt){switch(je){case S:case x:case w:case _:case R:break;default:je=w}var wt=ce;ce=je;try{return rt()}finally{ce=wt}}function vt(je){var rt;switch(ce){case S:case x:case w:rt=w;break;default:rt=ce;break}var wt=ce;ce=rt;try{return je()}finally{ce=wt}}function qt(je){var rt=ce;return function(){var wt=ce;ce=rt;try{return je.apply(this,arguments)}finally{ce=wt}}}function Qe(je,rt,wt){var mn=e.unstable_now(),Qt;if(typeof wt=="object"&&wt!==null){var Nn=wt.delay;typeof Nn=="number"&&Nn>0?Qt=mn+Nn:Qt=mn}else Qt=mn;var Ln;switch(je){case S:Ln=$;break;case x:Ln=K;break;case R:Ln=me;break;case _:Ln=fe;break;case w:default:Ln=Z;break}var kr=Qt+Ln,kn={id:Ke++,callback:rt,priorityLevel:je,startTime:Qt,expirationTime:kr,sortIndex:-1};return Qt>mn?(kn.sortIndex=Qt,o(Se,kn),c(se)===null&&kn===c(Se)&&(oe?Oe():oe=!0,Rt(Le,Qt-mn))):(kn.sortIndex=kr,o(se,kn),!_e&&!ge&&(_e=!0,tn(Ie))),kn}function gt(){}function Tt(){!_e&&!ge&&(_e=!0,tn(Ie))}function Ut(){return c(se)}function We(je){je.callback=null}function Kt(){return ce}var be=!1,It=null,Xt=-1,Ct=i,sr=-1;function lr(){var je=e.unstable_now()-sr;return!(je125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}je>0?Ct=Math.floor(1e3/je):Ct=i}var Pn=function(){if(It!==null){var je=e.unstable_now();sr=je;var rt=!0,wt=!0;try{wt=It(rt,je)}finally{wt?gn():(be=!1,It=null)}}else be=!1},gn;if(typeof pe=="function")gn=function(){pe(Pn)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,Xe=Ve.port2;Ve.port1.onmessage=Pn,gn=function(){Xe.postMessage(null)}}else gn=function(){xe(Pn,0)};function tn(je){It=je,be||(be=!0,gn())}function Rt(je,rt){Xt=xe(function(){je(e.unstable_now())},rt)}function Oe(){Te(Xt),Xt=-1}var Vt=jt,_n=null;e.unstable_IdlePriority=R,e.unstable_ImmediatePriority=S,e.unstable_LowPriority=_,e.unstable_NormalPriority=w,e.unstable_Profiling=_n,e.unstable_UserBlockingPriority=x,e.unstable_cancelCallback=We,e.unstable_continueExecution=Tt,e.unstable_forceFrameRate=hn,e.unstable_getCurrentPriorityLevel=Kt,e.unstable_getFirstCallbackNode=Ut,e.unstable_next=vt,e.unstable_pauseExecution=gt,e.unstable_requestPaint=Vt,e.unstable_runWithPriority=st,e.unstable_scheduleCallback=Qe,e.unstable_shouldYield=lr,e.unstable_wrapCallback=qt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(AL);(function(e){e.exports=AL})(RL);/** - * @license React - * react-dom.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=D.exports,t=RL.exports,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function o(n){i=n}function c(n){if(!i){for(var a=arguments.length,s=new Array(a>1?a-1:0),f=1;f1?a-1:0),f=1;f2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function kr(n,a,s,f){if(s!==null&&s.type===Ve)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(f)return!1;if(s!==null)return!s.acceptsBooleans;var p=n.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function kn(n,a,s,f){if(a===null||typeof a>"u"||kr(n,a,s,f))return!0;if(f)return!1;if(s!==null)switch(s.type){case Rt:return!a;case Oe:return a===!1;case Vt:return isNaN(a);case _n:return isNaN(a)||a<1}return!1}function ha(n){return En.hasOwnProperty(n)?En[n]:null}function Un(n,a,s,f,p,y,C){this.acceptsBooleans=a===tn||a===Rt||a===Oe,this.attributeName=f,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=n,this.type=a,this.sanitizeURL=y,this.removeEmptyString=C}var En={},ma=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ma.forEach(function(n){En[n]=new Un(n,Ve,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0],s=n[1];En[a]=new Un(a,Xe,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){En[n]=new Un(n,tn,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){En[n]=new Un(n,tn,!1,n,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"].forEach(function(n){En[n]=new Un(n,Rt,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){En[n]=new Un(n,Rt,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){En[n]=new Un(n,Oe,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){En[n]=new Un(n,_n,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){En[n]=new Un(n,Vt,!1,n.toLowerCase(),null,!1,!1)});var Sr=/[\-\:]([a-z])/g,Ao=function(n){return n[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"].forEach(function(n){var a=n.replace(Sr,Ao);En[a]=new Un(a,Xe,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var a=n.replace(Sr,Ao);En[a]=new Un(a,Xe,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(Sr,Ao);En[a]=new Un(a,Xe,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){En[n]=new Un(n,Xe,!1,n.toLowerCase(),null,!1,!1)});var as="xlinkHref";En[as]=new Un("xlinkHref",Xe,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){En[n]=new Un(n,Xe,!1,n.toLowerCase(),null,!0,!0)});var is=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ko=!1;function Oo(n){!ko&&is.test(n)&&(ko=!0,u("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}function pr(n,a,s,f){if(f.mustUseProperty){var p=f.propertyName;return n[p]}else{sr(s,a),f.sanitizeURL&&Oo(""+s);var y=f.attributeName,C=null;if(f.type===Oe){if(n.hasAttribute(y)){var T=n.getAttribute(y);return T===""?!0:kn(a,s,f,!1)?T:T===""+s?s:T}}else if(n.hasAttribute(y)){if(kn(a,s,f,!1))return n.getAttribute(y);if(f.type===Rt)return s;C=n.getAttribute(y)}return kn(a,s,f,!1)?C===null?s:C:C===""+s?s:C}}function Ma(n,a,s,f){{if(!Nn(a))return;if(!n.hasAttribute(a))return s===void 0?void 0:null;var p=n.getAttribute(a);return sr(s,a),p===""+s?s:p}}function Ii(n,a,s,f){var p=ha(a);if(!Ln(a,p,f)){if(kn(a,s,p,f)&&(s=null),f||p===null){if(Nn(a)){var y=a;s===null?n.removeAttribute(y):(sr(s,a),n.setAttribute(y,""+s))}return}var C=p.mustUseProperty;if(C){var T=p.propertyName;if(s===null){var O=p.type;n[T]=O===Rt?!1:""}else n[T]=s;return}var z=p.attributeName,H=p.attributeNamespace;if(s===null)n.removeAttribute(z);else{var ee=p.type,J;ee===Rt||ee===Oe&&s===!0?J="":(sr(s,z),J=""+s,p.sanitizeURL&&Oo(J.toString())),H?n.setAttributeNS(H,z,J):n.setAttribute(z,J)}}}var Pa=Symbol.for("react.element"),q=Symbol.for("react.portal"),Ue=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),St=Symbol.for("react.profiler"),an=Symbol.for("react.provider"),Sn=Symbol.for("react.context"),tt=Symbol.for("react.forward_ref"),Ht=Symbol.for("react.suspense"),jn=Symbol.for("react.suspense_list"),zn=Symbol.for("react.memo"),sn=Symbol.for("react.lazy"),zr=Symbol.for("react.scope"),hi=Symbol.for("react.debug_trace_mode"),Do=Symbol.for("react.offscreen"),va=Symbol.for("react.legacy_hidden"),io=Symbol.for("react.cache"),wu=Symbol.for("react.tracing_marker"),mi=Symbol.iterator,$s="@@iterator";function Fi(n){if(n===null||typeof n!="object")return null;var a=mi&&n[mi]||n[$s];return typeof a=="function"?a:null}var Jt=Object.assign,zi=0,ga,Mo,os,Po,ss,ls,Lo;function Io(){}Io.__reactDisabledLog=!0;function us(){{if(zi===0){ga=console.log,Mo=console.info,os=console.warn,Po=console.error,ss=console.group,ls=console.groupCollapsed,Lo=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Io,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}zi++}}function Vs(){{if(zi--,zi===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Jt({},n,{value:ga}),info:Jt({},n,{value:Mo}),warn:Jt({},n,{value:os}),error:Jt({},n,{value:Po}),group:Jt({},n,{value:ss}),groupCollapsed:Jt({},n,{value:ls}),groupEnd:Jt({},n,{value:Lo})})}zi<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Hs=r.ReactCurrentDispatcher,vi;function Pr(n,a,s){{if(vi===void 0)try{throw Error()}catch(p){var f=p.stack.trim().match(/\n( *(at )?)/);vi=f&&f[1]||""}return` -`+vi+n}}var La=!1,ya;{var Ia=typeof WeakMap=="function"?WeakMap:Map;ya=new Ia}function cs(n,a){if(!n||La)return"";{var s=ya.get(n);if(s!==void 0)return s}var f;La=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=Hs.current,Hs.current=null,us();try{if(a){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(ve){f=ve}Reflect.construct(n,[],C)}else{try{C.call()}catch(ve){f=ve}n.call(C.prototype)}}else{try{throw Error()}catch(ve){f=ve}n()}}catch(ve){if(ve&&f&&typeof ve.stack=="string"){for(var T=ve.stack.split(` -`),O=f.stack.split(` -`),z=T.length-1,H=O.length-1;z>=1&&H>=0&&T[z]!==O[H];)H--;for(;z>=1&&H>=0;z--,H--)if(T[z]!==O[H]){if(z!==1||H!==1)do if(z--,H--,H<0||T[z]!==O[H]){var ee=` -`+T[z].replace(" at new "," at ");return n.displayName&&ee.includes("")&&(ee=ee.replace("",n.displayName)),typeof n=="function"&&ya.set(n,ee),ee}while(z>=1&&H>=0);break}}}finally{La=!1,Hs.current=y,Vs(),Error.prepareStackTrace=p}var J=n?n.displayName||n.name:"",he=J?Pr(J):"";return typeof n=="function"&&ya.set(n,he),he}function Fo(n,a,s){return cs(n,!0)}function fs(n,a,s){return cs(n,!1)}function Dl(n){var a=n.prototype;return!!(a&&a.isReactComponent)}function ba(n,a,s){if(n==null)return"";if(typeof n=="function")return cs(n,Dl(n));if(typeof n=="string")return Pr(n);switch(n){case Ht:return Pr("Suspense");case jn:return Pr("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case tt:return fs(n.render);case zn:return ba(n.type,a,s);case sn:{var f=n,p=f._payload,y=f._init;try{return ba(y(p),a,s)}catch{}}}return""}function zo(n){switch(n._debugOwner&&n._debugOwner.type,n._debugSource,n.tag){case _:return Pr(n.type);case fe:return Pr("Lazy");case $:return Pr("Suspense");case Se:return Pr("SuspenseList");case m:case S:case Z:return fs(n.type);case F:return fs(n.type.render);case v:return Fo(n.type);default:return""}}function Fa(n){try{var a="",s=n;do a+=zo(s),s=s.return;while(s);return a}catch(f){return` -Error generating stack: `+f.message+` -`+f.stack}}function gi(n,a,s){var f=n.displayName;if(f)return f;var p=a.displayName||a.name||"";return p!==""?s+"("+p+")":s}function Ws(n){return n.displayName||"Context"}function ln(n){if(n==null)return null;if(typeof n.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Ue:return"Fragment";case q:return"Portal";case St:return"Profiler";case qe:return"StrictMode";case Ht:return"Suspense";case jn:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case Sn:var a=n;return Ws(a)+".Consumer";case an:var s=n;return Ws(s._context)+".Provider";case tt:return gi(n,n.render,"ForwardRef");case zn:var f=n.displayName||null;return f!==null?f:ln(n.type)||"Memo";case sn:{var p=n,y=p._payload,C=p._init;try{return ln(C(y))}catch{return null}}}return null}function yi(n,a,s){var f=a.displayName||a.name||"";return n.displayName||(f!==""?s+"("+f+")":s)}function Bo(n){return n.displayName||"Context"}function Ft(n){var a=n.tag,s=n.type;switch(a){case ge:return"Cache";case U:var f=s;return Bo(f)+".Consumer";case L:var p=s;return Bo(p._context)+".Provider";case se:return"DehydratedFragment";case F:return yi(s,s.render,"ForwardRef");case k:return"Fragment";case _:return s;case w:return"Portal";case x:return"Root";case R:return"Text";case fe:return ln(s);case P:return s===qe?"StrictMode":"Mode";case ae:return"Offscreen";case B:return"Profiler";case Ke:return"Scope";case $:return"Suspense";case Se:return"SuspenseList";case _e:return"TracingMarker";case v:case m:case me:case S:case K:case Z:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;break}return null}var Gs=r.ReactDebugCurrentFrame,xr=null,Bi=!1;function Ha(){{if(xr===null)return null;var n=xr._debugOwner;if(n!==null&&typeof n<"u")return Ft(n)}return null}function oo(){return xr===null?"":Fa(xr)}function Er(){Gs.getCurrentStack=null,xr=null,Bi=!1}function rr(n){Gs.getCurrentStack=n===null?null:oo,xr=n,Bi=!1}function Uo(){return xr}function qr(n){Bi=n}function dr(n){return""+n}function aa(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return gn(n),n;default:return""}}var _u={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function so(n,a){_u[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||u("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||u("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function bi(n){var a=n.type,s=n.nodeName;return s&&s.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ys(n){return n._valueTracker}function vn(n){n._valueTracker=null}function In(n){var a="";return n&&(bi(n)?a=n.checked?"true":"false":a=n.value),a}function Ml(n){var a=bi(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);gn(n[a]);var f=""+n[a];if(!(n.hasOwnProperty(a)||typeof s>"u"||typeof s.get!="function"||typeof s.set!="function")){var p=s.get,y=s.set;Object.defineProperty(n,a,{configurable:!0,get:function(){return p.call(this)},set:function(T){gn(T),f=""+T,y.call(this,T)}}),Object.defineProperty(n,a,{enumerable:s.enumerable});var C={getValue:function(){return f},setValue:function(T){gn(T),f=""+T},stopTracking:function(){vn(n),delete n[a]}};return C}}function za(n){Ys(n)||(n._valueTracker=Ml(n))}function W(n){if(!n)return!1;var a=Ys(n);if(!a)return!0;var s=a.getValue(),f=In(n);return f!==s?(a.setValue(f),!0):!1}function Q(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var de=!1,at=!1,un=!1,Fn=!1;function Wt(n){var a=n.type==="checkbox"||n.type==="radio";return a?n.checked!=null:n.value!=null}function b(n,a){var s=n,f=a.checked,p=Jt({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??s._wrapperState.initialChecked});return p}function A(n,a){so("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!at&&(u("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ha()||"A component",a.type),at=!0),a.value!==void 0&&a.defaultValue!==void 0&&!de&&(u("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ha()||"A component",a.type),de=!0);var s=n,f=a.defaultValue==null?"":a.defaultValue;s._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:aa(a.value!=null?a.value:f),controlled:Wt(a)}}function V(n,a){var s=n,f=a.checked;f!=null&&Ii(s,"checked",f,!1)}function G(n,a){var s=n;{var f=Wt(a);!s._wrapperState.controlled&&f&&!Fn&&(u("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Fn=!0),s._wrapperState.controlled&&!f&&!un&&(u("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),un=!0)}V(n,a);var p=aa(a.value),y=a.type;if(p!=null)y==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=dr(p)):s.value!==dr(p)&&(s.value=dr(p));else if(y==="submit"||y==="reset"){s.removeAttribute("value");return}a.hasOwnProperty("value")?$e(s,a.type,p):a.hasOwnProperty("defaultValue")&&$e(s,a.type,aa(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(s.defaultChecked=!!a.defaultChecked)}function te(n,a,s){var f=n;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type,y=p==="submit"||p==="reset";if(y&&(a.value===void 0||a.value===null))return;var C=dr(f._wrapperState.initialValue);s||C!==f.value&&(f.value=C),f.defaultValue=C}var T=f.name;T!==""&&(f.name=""),f.defaultChecked=!f.defaultChecked,f.defaultChecked=!!f._wrapperState.initialChecked,T!==""&&(f.name=T)}function Fe(n,a){var s=n;G(s,a),Ce(s,a)}function Ce(n,a){var s=a.name;if(a.type==="radio"&&s!=null){for(var f=n;f.parentNode;)f=f.parentNode;sr(s,"name");for(var p=f.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),y=0;y.")))}):a.dangerouslySetInnerHTML!=null&&(At||(At=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!it&&(u("Use the `defaultValue` or `value` props on must be a scalar value if `multiple` is false.%s",s,Sa())}}}}function On(n,a,s,f){var p=n.options;if(a){for(var y=s,C={},T=0;T.");var f=Jt({},a,{value:void 0,defaultValue:void 0,children:dr(s._wrapperState.initialValue)});return f}function gv(n,a){var s=n;so("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!Zy&&(u("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ha()||"A component"),Zy=!0);var f=a.value;if(f==null){var p=a.children,y=a.defaultValue;if(p!=null){u("Use the `defaultValue` or `value` props instead of setting children on