From ea597bfb0c3735091a545e786efde4f8312c2c85 Mon Sep 17 00:00:00 2001 From: elimelt <98496503+elimelt@users.noreply.github.com> Date: Wed, 30 Oct 2024 03:18:58 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20hcp-uw/c?= =?UTF-8?q?lub-website-v2@ea13745084be29779b8591cb5a775bdfb8866770=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/browser-Cb_fLYj7.js | 1 + assets/index-BJLxK08n.js | 535 ------------------------------------ assets/index-CzfD0XXp.js | 540 +++++++++++++++++++++++++++++++++++++ index.html | 6 +- 4 files changed, 544 insertions(+), 538 deletions(-) create mode 100644 assets/browser-Cb_fLYj7.js delete mode 100644 assets/index-BJLxK08n.js create mode 100644 assets/index-CzfD0XXp.js diff --git a/assets/browser-Cb_fLYj7.js b/assets/browser-Cb_fLYj7.js new file mode 100644 index 0000000..fb9f204 --- /dev/null +++ b/assets/browser-Cb_fLYj7.js @@ -0,0 +1 @@ +import{g as e}from"./index-CzfD0XXp.js";var o=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")};const r=e(o),s=Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"}));export{s as b}; diff --git a/assets/index-BJLxK08n.js b/assets/index-BJLxK08n.js deleted file mode 100644 index 38c7c8a..0000000 --- a/assets/index-BJLxK08n.js +++ /dev/null @@ -1,535 +0,0 @@ -var B9=Object.defineProperty;var V9=(e,t,r)=>t in e?B9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e,t,r)=>V9(e,typeof t!="symbol"?t+"":t,r);function H9(e,t){for(var r=0;rn[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Md=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var IO={exports:{}},F0={},AO={exports:{}},Oe={};/** - * @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 Yf=Symbol.for("react.element"),Y9=Symbol.for("react.portal"),U9=Symbol.for("react.fragment"),G9=Symbol.for("react.strict_mode"),q9=Symbol.for("react.profiler"),Q9=Symbol.for("react.provider"),X9=Symbol.for("react.context"),K9=Symbol.for("react.forward_ref"),Z9=Symbol.for("react.suspense"),J9=Symbol.for("react.memo"),e8=Symbol.for("react.lazy"),cw=Symbol.iterator;function t8(e){return e===null||typeof e!="object"?null:(e=cw&&e[cw]||e["@@iterator"],typeof e=="function"?e:null)}var FO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},RO=Object.assign,kO={};function Gu(e,t,r){this.props=e,this.context=t,this.refs=kO,this.updater=r||FO}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 NO(){}NO.prototype=Gu.prototype;function Wb(e,t,r){this.props=e,this.context=t,this.refs=kO,this.updater=r||FO}var Bb=Wb.prototype=new NO;Bb.constructor=Wb;RO(Bb,Gu.prototype);Bb.isPureReactComponent=!0;var dw=Array.isArray,LO=Object.prototype.hasOwnProperty,Vb={current:null},zO={key:!0,ref:!0,__self:!0,__source:!0};function WO(e,t,r){var n,a={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)LO.call(t,n)&&!zO.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1>>1,Pe=H[ge];if(0>>1;gea(oe,ie))sea(ut,oe)?(H[ge]=ut,H[se]=ie,ge=se):(H[ge]=oe,H[re]=ie,ge=re);else if(sea(ut,ie))H[ge]=ut,H[se]=ie,ge=se;else break e}}return ae}function a(H,ae){var ie=H.sortIndex-ae.sortIndex;return ie!==0?ie:H.id-ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,m=3,g=!1,x=!1,p=!1,$=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(H){for(var ae=r(c);ae!==null;){if(ae.callback===null)n(c);else if(ae.startTime<=H)n(c),ae.sortIndex=ae.expirationTime,t(u,ae);else break;ae=r(c)}}function M(H){if(p=!1,P(H),!x)if(r(u)!==null)x=!0,Ne(A);else{var ae=r(c);ae!==null&&Se(M,ae.startTime-H)}}function A(H,ae){x=!1,p&&(p=!1,b(z),z=-1),g=!0;var ie=m;try{for(P(ae),f=r(u);f!==null&&(!(f.expirationTime>ae)||H&&!ve());){var ge=f.callback;if(typeof ge=="function"){f.callback=null,m=f.priorityLevel;var Pe=ge(f.expirationTime<=ae);ae=e.unstable_now(),typeof Pe=="function"?f.callback=Pe:f===r(u)&&n(u),P(ae)}else n(u);f=r(u)}if(f!==null)var me=!0;else{var re=r(c);re!==null&&Se(M,re.startTime-ae),me=!1}return me}finally{f=null,m=ie,g=!1}}var F=!1,L=null,z=-1,q=5,Q=-1;function ve(){return!(e.unstable_now()-QH||125ge?(H.sortIndex=ie,t(c,H),r(u)===null&&H===r(c)&&(p?(b(z),z=-1):p=!0,Se(M,ie-ge))):(H.sortIndex=Pe,t(u,H),x||g||(x=!0,Ne(A))),H},e.unstable_shouldYield=ve,e.unstable_wrapCallback=function(H){var ae=m;return function(){var ie=m;m=ae;try{return H.apply(this,arguments)}finally{m=ie}}}})(UO);YO.exports=UO;var f8=YO.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var h8=S,zr=f8;function G(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),i1=Object.prototype.hasOwnProperty,m8=/^[: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]*$/,hw={},mw={};function v8(e){return i1.call(mw,e)?!0:i1.call(hw,e)?!1:m8.test(e)?mw[e]=!0:(hw[e]=!0,!1)}function p8(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function g8(e,t,r,n){if(t===null||typeof t>"u"||p8(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function hr(e,t,r,n,a,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Ut={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ut[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ut[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ut[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ut[e]=new hr(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){Ut[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ut[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ut[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ut[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ut[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yb=/[\-:]([a-z])/g;function Ub(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(Yb,Ub);Ut[t]=new hr(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(Yb,Ub);Ut[t]=new hr(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(Yb,Ub);Ut[t]=new hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!1,!1)});Ut.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ut[e]=new hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gb(e,t,r,n){var a=Ut.hasOwnProperty(t)?Ut[t]:null;(a!==null?a.type!==0:n||!(2l||a[s]!==o[l]){var u=` -`+a[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{_p=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Td(e):""}function b8(e){switch(e.tag){case 5:return Td(e.type);case 16:return Td("Lazy");case 13:return Td("Suspense");case 19:return Td("SuspenseList");case 0:case 2:case 15:return e=xp(e.type,!1),e;case 11:return e=xp(e.type.render,!1),e;case 1:return e=xp(e.type,!0),e;default:return""}}function u1(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 Zl:return"Fragment";case Kl:return"Portal";case o1:return"Profiler";case qb:return"StrictMode";case s1:return"Suspense";case l1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case QO:return(e.displayName||"Context")+".Consumer";case qO:return(e._context.displayName||"Context")+".Provider";case Qb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xb:return t=e.displayName||null,t!==null?t:u1(e.type)||"Memo";case Ki:t=e._payload,e=e._init;try{return u1(e(t))}catch{}}return null}function y8(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 u1(t);case 8:return t===qb?"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 xo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function KO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _8(e){var t=KO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ph(e){e._valueTracker||(e._valueTracker=_8(e))}function ZO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=KO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Bm(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 c1(e,t){var r=t.checked;return ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function pw(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=xo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function JO(e,t){t=t.checked,t!=null&&Gb(e,"checked",t,!1)}function d1(e,t){JO(e,t);var r=xo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?f1(e,t.type,r):t.hasOwnProperty("defaultValue")&&f1(e,t.type,xo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gw(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function f1(e,t,r){(t!=="number"||Bm(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ed=Array.isArray;function _u(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=$h.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var zd={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},x8=["Webkit","ms","Moz","O"];Object.keys(zd).forEach(function(e){x8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zd[t]=zd[e]})});function n5(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||zd.hasOwnProperty(e)&&zd[e]?(""+t).trim():t+"px"}function a5(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=n5(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var w8=ht({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 v1(e,t){if(t){if(w8[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(G(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(G(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(G(61))}if(t.style!=null&&typeof t.style!="object")throw Error(G(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 g1=null;function Kb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var b1=null,xu=null,wu=null;function _w(e){if(e=qf(e)){if(typeof b1!="function")throw Error(G(280));var t=e.stateNode;t&&(t=z0(t),b1(e.stateNode,e.type,t))}}function i5(e){xu?wu?wu.push(e):wu=[e]:xu=e}function o5(){if(xu){var e=xu,t=wu;if(wu=xu=null,_w(e),t)for(e=0;e>>=0,e===0?32:31-(I8(e)/A8|0)|0}var Oh=64,Ch=4194304;function Dd(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 Um(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~a;l!==0?n=Dd(l):(o&=s,o!==0&&(n=Dd(o)))}else s=r&~a,s!==0?n=Dd(s):o!==0&&(n=Dd(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Uf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-En(t),e[t]=r}function N8(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Bd),Tw=" ",Ew=!1;function O5(e,t){switch(e){case"keyup":return fA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function C5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jl=!1;function mA(e,t){switch(e){case"compositionend":return C5(t);case"keypress":return t.which!==32?null:(Ew=!0,Tw);case"textInput":return e=t.data,e===Tw&&Ew?null:e;default:return null}}function vA(e,t){if(Jl)return e==="compositionend"||!iy&&O5(e,t)?(e=P5(),mm=ry=no=null,Jl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Aw(r)}}function D5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?D5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function j5(){for(var e=window,t=Bm();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Bm(e.document)}return t}function oy(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 PA(e){var t=j5(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&D5(r.ownerDocument.documentElement,r)){if(n!==null&&oy(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=Fw(r,o);var s=Fw(r,n);a&&s&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,eu=null,P1=null,Hd=null,$1=!1;function Rw(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$1||eu==null||eu!==Bm(n)||(n=eu,"selectionStart"in n&&oy(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Hd&&vf(Hd,n)||(Hd=n,n=Qm(P1,"onSelect"),0nu||(e.current=D1[nu],D1[nu]=null,nu--)}function nt(e,t){nu++,D1[nu]=e.current,e.current=t}var wo={},nr=Oo(wo),$r=Oo(!1),tl=wo;function Fu(e,t){var r=e.type.contextTypes;if(!r)return wo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Or(e){return e=e.childContextTypes,e!=null}function Km(){st($r),st(nr)}function Vw(e,t,r){if(nr.current!==wo)throw Error(G(168));nt(nr,t),nt($r,r)}function W5(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(G(108,y8(e)||"Unknown",a));return ht({},r,n)}function Zm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wo,tl=nr.current,nt(nr,e),nt($r,$r.current),!0}function Hw(e,t,r){var n=e.stateNode;if(!n)throw Error(G(169));r?(e=W5(e,t,tl),n.__reactInternalMemoizedMergedChildContext=e,st($r),st(nr),nt(nr,e)):st($r),nt($r,r)}var Aa=null,W0=!1,Fp=!1;function B5(e){Aa===null?Aa=[e]:Aa.push(e)}function RA(e){W0=!0,B5(e)}function Co(){if(!Fp&&Aa!==null){Fp=!0;var e=0,t=Ze;try{var r=Aa;for(Ze=1;e>=s,a-=s,ka=1<<32-En(t)+a|r<z?(q=L,L=null):q=L.sibling;var Q=m(b,L,P[z],M);if(Q===null){L===null&&(L=q);break}e&&L&&Q.alternate===null&&t(b,L),y=o(Q,y,z),F===null?A=Q:F.sibling=Q,F=Q,L=q}if(z===P.length)return r(b,L),lt&&js(b,z),A;if(L===null){for(;zz?(q=L,L=null):q=L.sibling;var ve=m(b,L,Q.value,M);if(ve===null){L===null&&(L=q);break}e&&L&&ve.alternate===null&&t(b,L),y=o(ve,y,z),F===null?A=ve:F.sibling=ve,F=ve,L=q}if(Q.done)return r(b,L),lt&&js(b,z),A;if(L===null){for(;!Q.done;z++,Q=P.next())Q=f(b,Q.value,M),Q!==null&&(y=o(Q,y,z),F===null?A=Q:F.sibling=Q,F=Q);return lt&&js(b,z),A}for(L=n(b,L);!Q.done;z++,Q=P.next())Q=g(L,b,z,Q.value,M),Q!==null&&(e&&Q.alternate!==null&&L.delete(Q.key===null?z:Q.key),y=o(Q,y,z),F===null?A=Q:F.sibling=Q,F=Q);return e&&L.forEach(function(Me){return t(b,Me)}),lt&&js(b,z),A}function $(b,y,P,M){if(typeof P=="object"&&P!==null&&P.type===Zl&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Sh:e:{for(var A=P.key,F=y;F!==null;){if(F.key===A){if(A=P.type,A===Zl){if(F.tag===7){r(b,F.sibling),y=a(F,P.props.children),y.return=b,b=y;break e}}else if(F.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ki&&Gw(A)===F.type){r(b,F.sibling),y=a(F,P.props),y.ref=id(b,F,P),y.return=b,b=y;break e}r(b,F);break}else t(b,F);F=F.sibling}P.type===Zl?(y=Gs(P.props.children,b.mode,M,P.key),y.return=b,b=y):(M=wm(P.type,P.key,P.props,null,b.mode,M),M.ref=id(b,y,P),M.return=b,b=M)}return s(b);case Kl:e:{for(F=P.key;y!==null;){if(y.key===F)if(y.tag===4&&y.stateNode.containerInfo===P.containerInfo&&y.stateNode.implementation===P.implementation){r(b,y.sibling),y=a(y,P.children||[]),y.return=b,b=y;break e}else{r(b,y);break}else t(b,y);y=y.sibling}y=Vp(P,b.mode,M),y.return=b,b=y}return s(b);case Ki:return F=P._init,$(b,y,F(P._payload),M)}if(Ed(P))return x(b,y,P,M);if(ed(P))return p(b,y,P,M);Ah(b,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,y!==null&&y.tag===6?(r(b,y.sibling),y=a(y,P),y.return=b,b=y):(r(b,y),y=Bp(P,b.mode,M),y.return=b,b=y),s(b)):r(b,y)}return $}var ku=U5(!0),G5=U5(!1),t0=Oo(null),r0=null,ou=null,cy=null;function dy(){cy=ou=r0=null}function fy(e){var t=t0.current;st(t0),e._currentValue=t}function A1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Pu(e,t){r0=e,cy=ou=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pr=!0),e.firstContext=null)}function ln(e){var t=e._currentValue;if(cy!==e)if(e={context:e,memoizedValue:t,next:null},ou===null){if(r0===null)throw Error(G(308));ou=e,r0.dependencies={lanes:0,firstContext:e}}else ou=ou.next=e;return t}var Ws=null;function hy(e){Ws===null?Ws=[e]:Ws.push(e)}function q5(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,hy(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ka(e,n)}function Ka(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zi=!1;function my(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q5(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ho(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ae&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ka(e,r)}return a=n.interleaved,a===null?(t.next=t,hy(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ka(e,r)}function pm(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Jb(e,r)}}function qw(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function n0(e,t,r,n){var a=e.updateQueue;Zi=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var u=l,c=u.next;u.next=null,s===null?o=c:s.next=c,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(o!==null){var f=a.baseState;s=0,d=c=u=null,l=o;do{var m=l.lane,g=l.eventTime;if((n&m)===m){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,p=l;switch(m=t,g=r,p.tag){case 1:if(x=p.payload,typeof x=="function"){f=x.call(g,f,m);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=p.payload,m=typeof x=="function"?x.call(g,f,m):x,m==null)break e;f=ht({},f,m);break e;case 2:Zi=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=a.effects,m===null?a.effects=[l]:m.push(l))}else g={eventTime:g,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,u=f):d=d.next=g,s|=m;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;m=l,l=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);if(d===null&&(u=f),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do s|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);al|=s,e.lanes=s,e.memoizedState=f}}function Qw(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=kp.transition;kp.transition={};try{e(!1),t()}finally{Ze=r,kp.transition=n}}function fC(){return un().memoizedState}function zA(e,t,r){var n=vo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},hC(e))mC(t,r);else if(r=q5(e,t,r,n),r!==null){var a=cr();Dn(r,e,n,a),vC(r,t,n)}}function WA(e,t,r){var n=vo(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(hC(e))mC(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,r);if(a.hasEagerState=!0,a.eagerState=l,In(l,s)){var u=t.interleaved;u===null?(a.next=a,hy(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=q5(e,t,a,n),r!==null&&(a=cr(),Dn(r,e,n,a),vC(r,t,n))}}function hC(e){var t=e.alternate;return e===ft||t!==null&&t===ft}function mC(e,t){Yd=i0=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function vC(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Jb(e,r)}}var o0={readContext:ln,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},BA={readContext:ln,useCallback:function(e,t){return Qn().memoizedState=[e,t===void 0?null:t],e},useContext:ln,useEffect:Kw,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,bm(4194308,4,sC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bm(4194308,4,e,t)},useInsertionEffect:function(e,t){return bm(4,2,e,t)},useMemo:function(e,t){var r=Qn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Qn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=zA.bind(null,ft,e),[n.memoizedState,e]},useRef:function(e){var t=Qn();return e={current:e},t.memoizedState=e},useState:Xw,useDebugValue:wy,useDeferredValue:function(e){return Qn().memoizedState=e},useTransition:function(){var e=Xw(!1),t=e[0];return e=LA.bind(null,e[1]),Qn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ft,a=Qn();if(lt){if(r===void 0)throw Error(G(407));r=r()}else{if(r=t(),At===null)throw Error(G(349));nl&30||J5(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,Kw(tC.bind(null,n,o,e),[e]),n.flags|=2048,Sf(9,eC.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Qn(),t=At.identifierPrefix;if(lt){var r=Na,n=ka;r=(n&~(1<<32-En(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=xf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Jn]=t,e[bf]=n,$C(e,t,!1,!1),t.stateNode=e;e:{switch(s=p1(r,n),r){case"dialog":it("cancel",e),it("close",e),a=n;break;case"iframe":case"object":case"embed":it("load",e),a=n;break;case"video":case"audio":for(a=0;azu&&(t.flags|=128,n=!0,od(o,!1),t.lanes=4194304)}else{if(!n)if(e=a0(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),od(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!lt)return Xt(t),null}else 2*yt()-o.renderingStartTime>zu&&r!==1073741824&&(t.flags|=128,n=!0,od(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=yt(),t.sibling=null,r=ct.current,nt(ct,n?r&1|2:r&1),t):(Xt(t),null);case 22:case 23:return My(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ar&1073741824&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),null;case 24:return null;case 25:return null}throw Error(G(156,t.tag))}function XA(e,t){switch(ly(t),t.tag){case 1:return Or(t.type)&&Km(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nu(),st($r),st(nr),gy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return py(t),null;case 13:if(st(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(G(340));Ru()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return st(ct),null;case 4:return Nu(),null;case 10:return fy(t.type._context),null;case 22:case 23:return My(),null;case 24:return null;default:return null}}var Rh=!1,Jt=!1,KA=typeof WeakSet=="function"?WeakSet:Set,te=null;function su(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){vt(e,t,n)}else r.current=null}function V1(e,t,r){try{r()}catch(n){vt(e,t,n)}}var lS=!1;function ZA(e,t){if(O1=Gm,e=j5(),oy(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var g;f!==r||a!==0&&f.nodeType!==3||(l=s+a),f!==o||n!==0&&f.nodeType!==3||(u=s+n),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===r&&++c===a&&(l=s),m===o&&++d===n&&(u=s),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(C1={focusedElem:e,selectionRange:r},Gm=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var p=x.memoizedProps,$=x.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?p:On(t.type,p),$);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(G(163))}}catch(M){vt(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return x=lS,lS=!1,x}function Ud(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&V1(t,r,o)}a=a.next}while(a!==n)}}function H0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function H1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function MC(e){var t=e.alternate;t!==null&&(e.alternate=null,MC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jn],delete t[bf],delete t[E1],delete t[AA],delete t[FA])),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 TC(e){return e.tag===5||e.tag===3||e.tag===4}function uS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TC(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 Y1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Xm));else if(n!==4&&(e=e.child,e!==null))for(Y1(e,t,r),e=e.sibling;e!==null;)Y1(e,t,r),e=e.sibling}function U1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(U1(e,t,r),e=e.sibling;e!==null;)U1(e,t,r),e=e.sibling}var Bt=null,Cn=!1;function zi(e,t,r){for(r=r.child;r!==null;)EC(e,t,r),r=r.sibling}function EC(e,t,r){if(ra&&typeof ra.onCommitFiberUnmount=="function")try{ra.onCommitFiberUnmount(R0,r)}catch{}switch(r.tag){case 5:Jt||su(r,t);case 6:var n=Bt,a=Cn;Bt=null,zi(e,t,r),Bt=n,Cn=a,Bt!==null&&(Cn?(e=Bt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Bt.removeChild(r.stateNode));break;case 18:Bt!==null&&(Cn?(e=Bt,r=r.stateNode,e.nodeType===8?Ap(e.parentNode,r):e.nodeType===1&&Ap(e,r),hf(e)):Ap(Bt,r.stateNode));break;case 4:n=Bt,a=Cn,Bt=r.stateNode.containerInfo,Cn=!0,zi(e,t,r),Bt=n,Cn=a;break;case 0:case 11:case 14:case 15:if(!Jt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&V1(r,t,s),a=a.next}while(a!==n)}zi(e,t,r);break;case 1:if(!Jt&&(su(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){vt(r,t,l)}zi(e,t,r);break;case 21:zi(e,t,r);break;case 22:r.mode&1?(Jt=(n=Jt)||r.memoizedState!==null,zi(e,t,r),Jt=n):zi(e,t,r);break;default:zi(e,t,r)}}function cS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new KA),t.forEach(function(n){var a=sF.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Sn(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=s),n&=~o}if(n=a,n=yt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*eF(n/1960))-n,10e?16:e,ao===null)var n=!1;else{if(e=ao,ao=null,u0=0,Ae&6)throw Error(G(331));var a=Ae;for(Ae|=4,te=e.current;te!==null;){var o=te,s=o.child;if(te.flags&16){var l=o.deletions;if(l!==null){for(var u=0;uyt()-Oy?Us(e,0):$y|=r),Cr(e,t)}function NC(e,t){t===0&&(e.mode&1?(t=Ch,Ch<<=1,!(Ch&130023424)&&(Ch=4194304)):t=1);var r=cr();e=Ka(e,t),e!==null&&(Uf(e,t,r),Cr(e,r))}function oF(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),NC(e,r)}function sF(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(G(314))}n!==null&&n.delete(t),NC(e,r)}var LC;LC=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||$r.current)Pr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Pr=!1,qA(e,t,r);Pr=!!(e.flags&131072)}else Pr=!1,lt&&t.flags&1048576&&V5(t,e0,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ym(e,t),e=t.pendingProps;var a=Fu(t,nr.current);Pu(t,r),a=yy(null,t,n,e,a,r);var o=_y();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Or(n)?(o=!0,Zm(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,my(t),a.updater=V0,t.stateNode=a,a._reactInternals=t,R1(t,n,e,r),t=L1(null,t,n,!0,o,r)):(t.tag=0,lt&&o&&sy(t),sr(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ym(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=uF(n),e=On(n,e),a){case 0:t=N1(null,t,n,e,r);break e;case 1:t=iS(null,t,n,e,r);break e;case 11:t=nS(null,t,n,e,r);break e;case 14:t=aS(null,t,n,On(n.type,e),r);break e}throw Error(G(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:On(n,a),N1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:On(n,a),iS(e,t,n,a,r);case 3:e:{if(wC(t),e===null)throw Error(G(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Q5(e,t),n0(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Lu(Error(G(423)),t),t=oS(e,t,n,r,a);break e}else if(n!==a){a=Lu(Error(G(424)),t),t=oS(e,t,n,r,a);break e}else for(Fr=fo(t.stateNode.containerInfo.firstChild),Rr=t,lt=!0,Mn=null,r=G5(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ru(),n===a){t=Za(e,t,r);break e}sr(e,t,n,r)}t=t.child}return t;case 5:return X5(t),e===null&&I1(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,s=a.children,M1(n,a)?s=null:o!==null&&M1(n,o)&&(t.flags|=32),xC(e,t),sr(e,t,s,r),t.child;case 6:return e===null&&I1(t),null;case 13:return SC(e,t,r);case 4:return vy(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ku(t,null,n,r):sr(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:On(n,a),nS(e,t,n,a,r);case 7:return sr(e,t,t.pendingProps,r),t.child;case 8:return sr(e,t,t.pendingProps.children,r),t.child;case 12:return sr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,nt(t0,n._currentValue),n._currentValue=s,o!==null)if(In(o.value,s)){if(o.children===a.children&&!$r.current){t=Za(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=Ba(-1,r&-r),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),A1(o.return,r,t),l.lanes|=r;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(G(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),A1(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}sr(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Pu(t,r),a=ln(a),n=n(a),t.flags|=1,sr(e,t,n,r),t.child;case 14:return n=t.type,a=On(n,t.pendingProps),a=On(n.type,a),aS(e,t,n,a,r);case 15:return yC(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:On(n,a),ym(e,t),t.tag=1,Or(n)?(e=!0,Zm(t)):e=!1,Pu(t,r),pC(t,n,a),R1(t,n,a,r),L1(null,t,n,!0,e,r);case 19:return PC(e,t,r);case 22:return _C(e,t,r)}throw Error(G(156,t.tag))};function zC(e,t){return h5(e,t)}function lF(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(e,t,r,n){return new lF(e,t,r,n)}function Ey(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uF(e){if(typeof e=="function")return Ey(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qb)return 11;if(e===Xb)return 14}return 2}function po(e,t){var r=e.alternate;return r===null?(r=an(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function wm(e,t,r,n,a,o){var s=2;if(n=e,typeof e=="function")Ey(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Zl:return Gs(r.children,a,o,t);case qb:s=8,a|=8;break;case o1:return e=an(12,r,t,a|2),e.elementType=o1,e.lanes=o,e;case s1:return e=an(13,r,t,a),e.elementType=s1,e.lanes=o,e;case l1:return e=an(19,r,t,a),e.elementType=l1,e.lanes=o,e;case XO:return U0(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qO:s=10;break e;case QO:s=9;break e;case Qb:s=11;break e;case Xb:s=14;break e;case Ki:s=16,n=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return t=an(s,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Gs(e,t,r,n){return e=an(7,e,n,t),e.lanes=r,e}function U0(e,t,r,n){return e=an(22,e,n,t),e.elementType=XO,e.lanes=r,e.stateNode={isHidden:!1},e}function Bp(e,t,r){return e=an(6,e,null,t),e.lanes=r,e}function Vp(e,t,r){return t=an(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cF(e,t,r,n,a){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=Sp(0),this.expirationTimes=Sp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sp(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Dy(e,t,r,n,a,o,s,l,u){return e=new cF(e,t,r,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=an(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},my(o),e}function dF(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HC)}catch(e){console.error(e)}}HC(),HO.exports=Br;var Fy=HO.exports,bS=Fy;a1.createRoot=bS.createRoot,a1.hydrateRoot=bS.hydrateRoot;var pF=!1;function gF(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ht(Xu,--Tr):0,Wu--,wt===10&&(Wu=1,Z0--),wt}function kr(){return wt=Tr2||Of(wt)>3?"":" "}function EF(e,t){for(;--t&&kr()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return Xf(e,Sm()+(t<6&&aa()==32&&kr()==32))}function Z1(e){for(;kr();)switch(wt){case e:return Tr;case 34:case 39:e!==34&&e!==39&&Z1(wt);break;case 40:e===41&&Z1(e);break;case 92:kr();break}return Tr}function DF(e,t){for(;kr()&&e+wt!==57;)if(e+wt===84&&aa()===47)break;return"/*"+Xf(t,Tr-1)+"*"+K0(e===47?e:kr())}function jF(e){for(;!Of(aa());)kr();return Xf(e,Tr)}function IF(e){return XC($m("",null,null,null,[""],e=QC(e),0,[0],e))}function $m(e,t,r,n,a,o,s,l,u){for(var c=0,d=0,f=s,m=0,g=0,x=0,p=1,$=1,b=1,y=0,P="",M=a,A=o,F=n,L=P;$;)switch(x=y,y=kr()){case 40:if(x!=108&&Ht(L,f-1)==58){K1(L+=Ve(Pm(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:L+=Pm(y);break;case 9:case 10:case 13:case 32:L+=TF(x);break;case 92:L+=EF(Sm()-1,7);continue;case 47:switch(aa()){case 42:case 47:Lh(AF(DF(kr(),Sm()),t,r),u);break;default:L+="/"}break;case 123*p:l[c++]=Kn(L)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:$=0;case 59+d:b==-1&&(L=Ve(L,/\f/g,"")),g>0&&Kn(L)-f&&Lh(g>32?_S(L+";",n,r,f-1):_S(Ve(L," ","")+";",n,r,f-2),u);break;case 59:L+=";";default:if(Lh(F=yS(L,t,r,c,d,a,l,P,M=[],A=[],f),o),y===123)if(d===0)$m(L,t,F,F,M,o,f,l,A);else switch(m===99&&Ht(L,3)===110?100:m){case 100:case 108:case 109:case 115:$m(e,F,F,n&&Lh(yS(e,F,F,0,0,a,l,P,a,M=[],f),A),a,A,f,l,n?M:A);break;default:$m(L,F,F,F,[""],A,0,l,A)}}c=d=g=0,p=b=1,P=L="",f=s;break;case 58:f=1+Kn(L),g=x;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&MF()==125)continue}switch(L+=K0(y),y*p){case 38:b=d>0?1:(L+="\f",-1);break;case 44:l[c++]=(Kn(L)-1)*b,b=1;break;case 64:aa()===45&&(L+=Pm(kr())),m=aa(),d=f=Kn(P=L+=jF(Sm())),y++;break;case 45:x===45&&Kn(L)==2&&(p=0)}}return o}function yS(e,t,r,n,a,o,s,l,u,c,d){for(var f=a-1,m=a===0?o:[""],g=Ny(m),x=0,p=0,$=0;x0?m[b]+" "+y:Ve(y,/&\f/g,m[b])))&&(u[$++]=P);return J0(e,t,r,a===0?Ry:l,u,c,d)}function AF(e,t,r){return J0(e,t,r,YC,K0(CF()),$f(e,2,-2),0)}function _S(e,t,r,n){return J0(e,t,r,ky,$f(e,0,n),$f(e,n+1,-1),n)}function Ou(e,t){for(var r="",n=Ny(e),a=0;a6)switch(Ht(e,t+1)){case 109:if(Ht(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+f0+(Ht(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~K1(e,"stretch")?ZC(Ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ht(e,t+1)!==115)break;case 6444:switch(Ht(e,Kn(e)-3-(~K1(e,"!important")&&10))){case 107:return Ve(e,":",":"+Be)+e;case 101:return Ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(Ht(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+Kt+"$2box$3")+e}break;case 5936:switch(Ht(e,t+11)){case 114:return Be+e+Kt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+Kt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+Kt+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+Kt+e+e}return e}var VF=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case ky:t.return=ZC(t.value,t.length);break;case UC:return Ou([ld(t,{value:Ve(t.value,"@","@"+Be)})],a);case Ry:if(t.length)return OF(t.props,function(o){switch($F(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ou([ld(t,{props:[Ve(o,/:(read-\w+)/,":"+f0+"$1")]})],a);case"::placeholder":return Ou([ld(t,{props:[Ve(o,/:(plac\w+)/,":"+Be+"input-$1")]}),ld(t,{props:[Ve(o,/:(plac\w+)/,":"+f0+"$1")]}),ld(t,{props:[Ve(o,/:(plac\w+)/,Kt+"input-$1")]})],a)}return""})}},HF=[VF],YF=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var $=p.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var a=t.stylisPlugins||HF,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var $=p.getAttribute("data-emotion").split(" "),b=1;b<$.length;b++)o[$[b]]=!0;l.push(p)});var u,c=[WF,BF];{var d,f=[FF,kF(function(p){d.insert(p)})],m=RF(c.concat(a,f)),g=function($){return Ou(IF($),m)};u=function($,b,y,P){d=y,g($?$+"{"+b.styles+"}":b.styles),P&&(x.inserted[b.name]=!0)}}var x={key:r,sheet:new yF({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return x.sheet.hydrate(l),x};function ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var nR={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},aR=!1,iR=/[A-Z]|^ms/g,oR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iM=function(t){return t.charCodeAt(1)===45},SS=function(t){return t!=null&&typeof t!="boolean"},Hp=KC(function(e){return iM(e)?e:e.replace(iR,"-$&").toLowerCase()}),PS=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(oR,function(n,a,o){return Zn={name:a,styles:o,next:Zn},a})}return nR[t]!==1&&!iM(t)&&typeof r=="number"&&r!==0?r+"px":r},sR="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Cf(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Zn={name:a.name,styles:a.styles,next:Zn},a.name;var o=r;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Zn={name:s.name,styles:s.styles,next:Zn},s=s.next;var l=o.styles+";";return l}return lR(e,t,r)}case"function":{if(e!==void 0){var u=Zn,c=r(e);return Zn=u,Cf(e,t,c)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function lR(e,t,r){var n="";if(Array.isArray(r))for(var a=0;aw.jsx(cv,{styles:dM}),pR=({scope:e=""})=>w.jsx(cv,{styles:cM` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${e} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${e} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${e} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${e} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${e} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${e} :where(b, strong) { - font-weight: bold; - } - - ${e} small { - font-size: 80%; - } - - ${e} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${e} sub { - bottom: -0.25em; - } - - ${e} sup { - top: -0.5em; - } - - ${e} img { - border-style: none; - } - - ${e} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${e} :where(button, input) { - overflow: visible; - } - - ${e} :where(button, select) { - text-transform: none; - } - - ${e} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${e} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${e} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${e} progress { - vertical-align: baseline; - } - - ${e} textarea { - overflow: auto; - } - - ${e} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${e} input[type="number"]::-webkit-inner-spin-button, - ${e} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${e} input[type="number"] { - -moz-appearance: textfield; - } - - ${e} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${e} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${e} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${e} details { - display: block; - } - - ${e} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${e} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${e} button { - background: transparent; - padding: 0; - } - - ${e} fieldset { - margin: 0; - padding: 0; - } - - ${e} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${e} textarea { - resize: vertical; - } - - ${e} :where(button, [role="button"]) { - cursor: pointer; - } - - ${e} button::-moz-focus-inner { - border: 0 !important; - } - - ${e} table { - border-collapse: collapse; - } - - ${e} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${e} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${e} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${e} select::-ms-expand { - display: none; - } - - ${dM} - `});function gR(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Yr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:a="Provider",errorMessage:o,defaultValue:s}=e,l=S.createContext(s);l.displayName=t;function u(){var c;const d=S.useContext(l);if(!d&&r){const f=new Error(o??gR(n,a));throw f.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,f,u),f}return d}return[l.Provider,u,l]}var[bR,yR]=Yr({strict:!1,name:"PortalManagerContext"});function fM(e){const{children:t,zIndex:r}=e;return w.jsx(bR,{value:{zIndex:r},children:t})}fM.displayName="PortalManager";var Tf=globalThis!=null&&globalThis.document?S.useLayoutEffect:S.useEffect,[hM,_R]=Yr({strict:!1,name:"PortalContext"}),Vy="chakra-portal",xR=".chakra-portal",wR=e=>w.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),SR=e=>{const{appendToParentPortal:t,children:r}=e,[n,a]=S.useState(null),o=S.useRef(null),[,s]=S.useState({});S.useEffect(()=>s({}),[]);const l=_R(),u=yR();Tf(()=>{if(!n)return;const d=n.ownerDocument,f=t?l??d.body:d.body;if(!f)return;o.current=d.createElement("div"),o.current.className=Vy,f.appendChild(o.current),s({});const m=o.current;return()=>{f.contains(m)&&f.removeChild(m)}},[n]);const c=u!=null&&u.zIndex?w.jsx(wR,{zIndex:u==null?void 0:u.zIndex,children:r}):r;return o.current?Fy.createPortal(w.jsx(hM,{value:o.current,children:c}),o.current):w.jsx("span",{ref:d=>{d&&a(d)}})},PR=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,a=r.current,o=a??(typeof window<"u"?document.body:void 0),s=S.useMemo(()=>{const u=a==null?void 0:a.ownerDocument.createElement("div");return u&&(u.className=Vy),u},[a]),[,l]=S.useState({});return Tf(()=>l({}),[]),Tf(()=>{if(!(!s||!o))return o.appendChild(s),()=>{o.removeChild(s)}},[s,o]),o&&s?Fy.createPortal(w.jsx(hM,{value:n?s:null,children:t}),s):null};function Kf(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?w.jsx(PR,{containerRef:r,...n}):w.jsx(SR,{...n})}Kf.className=Vy;Kf.selector=xR;Kf.displayName="Portal";function mM(){const e=S.useContext(Mf);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Hy=S.createContext({});Hy.displayName="ColorModeContext";function dv(){const e=S.useContext(Hy);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function tr(e,t){const{colorMode:r}=dv();return r==="dark"?t:e}var zh={light:"chakra-ui-light",dark:"chakra-ui-dark"};function $R(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const a=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,a==null||a()},setClassName(n){document.body.classList.add(n?zh.dark:zh.light),document.body.classList.remove(n?zh.light:zh.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var a;return((a=r.query().matches)!=null?a:n==="dark")?"dark":"light"},addListener(n){const a=r.query(),o=s=>{n(s.matches?"dark":"light")};return typeof a.addListener=="function"?a.addListener(o):a.addEventListener("change",o),()=>{typeof a.removeListener=="function"?a.removeListener(o):a.removeEventListener("change",o)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var OR="chakra-ui-color-mode";function CR(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var MR=CR(OR),CS=()=>{};function MS(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function vM(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:a,disableTransitionOnChange:o}={},colorModeManager:s=MR}=e,l=a==="dark"?"dark":"light",[u,c]=S.useState(()=>MS(s,l)),[d,f]=S.useState(()=>MS(s)),{getSystemTheme:m,setClassName:g,setDataset:x,addListener:p}=S.useMemo(()=>$R({preventTransition:o}),[o]),$=a==="system"&&!u?d:u,b=S.useCallback(M=>{const A=M==="system"?m():M;c(A),g(A==="dark"),x(A),s.set(A)},[s,m,g,x]);Tf(()=>{a==="system"&&f(m())},[]),S.useEffect(()=>{const M=s.get();if(M){b(M);return}if(a==="system"){b("system");return}b(l)},[s,l,a,b]);const y=S.useCallback(()=>{b($==="dark"?"light":"dark")},[$,b]);S.useEffect(()=>{if(n)return p(b)},[n,p,b]);const P=S.useMemo(()=>({colorMode:t??$,toggleColorMode:t?CS:y,setColorMode:t?CS:b,forced:t!==void 0}),[$,y,b,t]);return w.jsx(Hy.Provider,{value:P,children:r})}vM.displayName="ColorModeProvider";function TR(){const e=dv(),t=mM();return{...e,theme:t}}function ER(e,t,r){var n,a;if(t==null)return t;const o=s=>{var l,u;return(u=(l=e.__cssMap)==null?void 0:l[s])==null?void 0:u.value};return(a=(n=o(t))!=null?n:o(r))!=null?a:r}function DR(e,t,r){const n=Array.isArray(t)?t:[t],a=Array.isArray(r)?r:[r];return o=>{const s=a.filter(Boolean),l=n.map((u,c)=>{var d;const f=`${e}.${u}`;return ER(o,f,(d=s[c])!=null?d:u)});return Array.isArray(t)?l:l[0]}}var ke=(...e)=>e.filter(Boolean).join(" ");function jn(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function io(e,...t){return jR(e)?e(...t):e}var jR=e=>typeof e=="function",en=e=>e?"":void 0,Yp=e=>e?!0:void 0;function oo(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var h0={exports:{}};h0.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=800,o=16,s=9007199254740991,l="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",m="[object Error]",g="[object Function]",x="[object GeneratorFunction]",p="[object Map]",$="[object Number]",b="[object Null]",y="[object Object]",P="[object Proxy]",M="[object RegExp]",A="[object Set]",F="[object String]",L="[object Undefined]",z="[object WeakMap]",q="[object ArrayBuffer]",Q="[object DataView]",ve="[object Float32Array]",Me="[object Float64Array]",tt="[object Int8Array]",et="[object Int16Array]",Ce="[object Int32Array]",Ne="[object Uint8Array]",Se="[object Uint8ClampedArray]",H="[object Uint16Array]",ae="[object Uint32Array]",ie=/[\\^$.*+?()[\]{}|]/g,ge=/^\[object .+?Constructor\]$/,Pe=/^(?:0|[1-9]\d*)$/,me={};me[ve]=me[Me]=me[tt]=me[et]=me[Ce]=me[Ne]=me[Se]=me[H]=me[ae]=!0,me[l]=me[u]=me[q]=me[d]=me[Q]=me[f]=me[m]=me[g]=me[p]=me[$]=me[y]=me[M]=me[A]=me[F]=me[z]=!1;var re=typeof Md=="object"&&Md&&Md.Object===Object&&Md,oe=typeof self=="object"&&self&&self.Object===Object&&self,se=re||oe||Function("return this")(),ut=t&&!t.nodeType&&t,mt=ut&&!0&&e&&!e.nodeType&&e,Rt=mt&&mt.exports===ut,pr=Rt&&re.process,Fn=function(){try{var O=mt&&mt.require&&mt.require("util").types;return O||pr&&pr.binding&&pr.binding("util")}catch{}}(),dn=Fn&&Fn.isTypedArray;function ca(O,j,N){switch(N.length){case 0:return O.call(j);case 1:return O.call(j,N[0]);case 2:return O.call(j,N[0],N[1]);case 3:return O.call(j,N[0],N[1],N[2])}return O.apply(j,N)}function fn(O,j){for(var N=-1,Z=Array(O);++N-1}function Vo(O,j){var N=this.__data__,Z=pn(N,O);return Z<0?(++this.size,N.push([O,j])):N[Z][1]=j,this}or.prototype.clear=Wo,or.prototype.delete=Bo,or.prototype.get=yi,or.prototype.has=_i,or.prototype.set=Vo;function Ur(O){var j=-1,N=O==null?0:O.length;for(this.clear();++j1?N[pe-1]:void 0,Le=pe>2?N[2]:void 0;for(Ie=O.length>3&&typeof Ie=="function"?(pe--,Ie):void 0,Le&&ss(N[0],N[1],Le)&&(Ie=pe<3?void 0:Ie,pe=1),j=Object(j);++Z-1&&O%1==0&&O0){if(++j>=a)return arguments[0]}else j=0;return O.apply(void 0,arguments)}}function vs(O){if(O!=null){try{return hn.call(O)}catch{}try{return O+""}catch{}}return""}function Wn(O,j){return O===j||O!==O&&j!==j}var Pa=$i(function(){return arguments}())?$i:function(O){return bn(O)&&ir.call(O,"callee")&&!vi.call(O,"callee")},Bn=Array.isArray;function Vn(O){return O!=null&&Ei(O.length)&&!yr(O)}function ps(O){return bn(O)&&Vn(O)}var gn=gi||ys;function yr(O){if(!_r(O))return!1;var j=Ln(O);return j==g||j==x||j==c||j==P}function Ei(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=s}function _r(O){var j=typeof O;return O!=null&&(j=="object"||j=="function")}function bn(O){return O!=null&&typeof O=="object"}function $a(O){if(!bn(O)||Ln(O)!=y)return!1;var j=hi(O);if(j===null)return!0;var N=ir.call(j,"constructor")&&j.constructor;return typeof N=="function"&&N instanceof N&&hn.call(N)==di}var Hn=dn?da(dn):Jo;function gs(O){return Oi(O,Oa(O))}function Oa(O){return Vn(O)?Pi(O):ya(O)}var Qr=Ci(function(O,j,N,Z){jr(O,j,N,Z)});function bs(O){return function(){return O}}function Di(O){return O}function ys(){return!1}e.exports=Qr})(h0,h0.exports);var IR=h0.exports;const ta=zb(IR);var AR=e=>/!(important)?$/.test(e),TS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,FR=(e,t)=>r=>{const n=String(t),a=AR(n),o=TS(n),s=e?`${e}.${o}`:o;let l=jn(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return l=TS(l),a?`${l} !important`:l};function Yy(e){const{scale:t,transform:r,compose:n}=e;return(o,s)=>{var l;const u=FR(t,o)(s);let c=(l=r==null?void 0:r(u,s))!=null?l:u;return n&&(c=n(c,s)),c}}var Wh=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Xr(e,t){return r=>{const n={property:r,scale:e};return n.transform=Yy({scale:e,transform:t}),n}}var RR=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function kR(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:RR(t),transform:r?Yy({scale:r,compose:n}):n}}var pM=["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 NR(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...pM].join(" ")}function LR(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...pM].join(" ")}var zR={"--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(" ")},WR={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 BR(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 VR={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},J1={"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"},HR=new Set(Object.values(J1)),eb=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),YR=e=>e.trim();function UR(e,t){if(e==null||eb.has(e))return e;if(!(tb(e)||eb.has(e)))return`url('${e}')`;const a=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=a==null?void 0:a[1],s=a==null?void 0:a[2];if(!o||!s)return e;const l=o.includes("-gradient")?o:`${o}-gradient`,[u,...c]=s.split(",").map(YR).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const d=u in J1?J1[u]:u;c.unshift(d);const f=c.map(m=>{if(HR.has(m))return m;const g=m.indexOf(" "),[x,p]=g!==-1?[m.substr(0,g),m.substr(g+1)]:[m],$=tb(p)?p:p&&p.split(" "),b=`colors.${x}`,y=b in t.__cssMap?t.__cssMap[b].varRef:x;return $?[y,...Array.isArray($)?$:[$]].join(" "):y});return`${l}(${f.join(", ")})`}var tb=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),GR=(e,t)=>UR(e,t??{});function qR(e){return/^var\(--.+\)$/.test(e)}var QR=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Un=e=>t=>`${e}(${t})`,Ee={filter(e){return e!=="auto"?e:zR},backdropFilter(e){return e!=="auto"?e:WR},ring(e){return BR(Ee.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?NR():e==="auto-gpu"?LR():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=QR(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(qR(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:GR,blur:Un("blur"),opacity:Un("opacity"),brightness:Un("brightness"),contrast:Un("contrast"),dropShadow:Un("drop-shadow"),grayscale:Un("grayscale"),hueRotate:e=>Un("hue-rotate")(Ee.degree(e)),invert:Un("invert"),saturate:Un("saturate"),sepia:Un("sepia"),bgImage(e){return e==null||tb(e)||eb.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=VR[e])!=null?t:{},a={flexDirection:e};return r&&(a[r]=1),n&&(a[n]=1),a}},I={borderWidths:Xr("borderWidths"),borderStyles:Xr("borderStyles"),colors:Xr("colors"),borders:Xr("borders"),gradients:Xr("gradients",Ee.gradient),radii:Xr("radii",Ee.px),space:Xr("space",Wh(Ee.vh,Ee.px)),spaceT:Xr("space",Wh(Ee.vh,Ee.px)),degreeT(e){return{property:e,transform:Ee.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:Yy({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Xr("sizes",Wh(Ee.vh,Ee.px)),sizesT:Xr("sizes",Wh(Ee.vh,Ee.fraction)),shadows:Xr("shadows"),logical:kR,blur:Xr("blur",Ee.blur)},Om={background:I.colors("background"),backgroundColor:I.colors("backgroundColor"),backgroundImage:I.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ee.bgClip},bgSize:I.prop("backgroundSize"),bgPosition:I.prop("backgroundPosition"),bg:I.colors("background"),bgColor:I.colors("backgroundColor"),bgPos:I.prop("backgroundPosition"),bgRepeat:I.prop("backgroundRepeat"),bgAttachment:I.prop("backgroundAttachment"),bgGradient:I.gradients("backgroundImage"),bgClip:{transform:Ee.bgClip}};Object.assign(Om,{bgImage:Om.backgroundImage,bgImg:Om.backgroundImage});var We={border:I.borders("border"),borderWidth:I.borderWidths("borderWidth"),borderStyle:I.borderStyles("borderStyle"),borderColor:I.colors("borderColor"),borderRadius:I.radii("borderRadius"),borderTop:I.borders("borderTop"),borderBlockStart:I.borders("borderBlockStart"),borderTopLeftRadius:I.radii("borderTopLeftRadius"),borderStartStartRadius:I.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:I.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:I.radii("borderTopRightRadius"),borderStartEndRadius:I.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:I.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:I.borders("borderRight"),borderInlineEnd:I.borders("borderInlineEnd"),borderBottom:I.borders("borderBottom"),borderBlockEnd:I.borders("borderBlockEnd"),borderBottomLeftRadius:I.radii("borderBottomLeftRadius"),borderBottomRightRadius:I.radii("borderBottomRightRadius"),borderLeft:I.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:I.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:I.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:I.borders(["borderLeft","borderRight"]),borderInline:I.borders("borderInline"),borderY:I.borders(["borderTop","borderBottom"]),borderBlock:I.borders("borderBlock"),borderTopWidth:I.borderWidths("borderTopWidth"),borderBlockStartWidth:I.borderWidths("borderBlockStartWidth"),borderTopColor:I.colors("borderTopColor"),borderBlockStartColor:I.colors("borderBlockStartColor"),borderTopStyle:I.borderStyles("borderTopStyle"),borderBlockStartStyle:I.borderStyles("borderBlockStartStyle"),borderBottomWidth:I.borderWidths("borderBottomWidth"),borderBlockEndWidth:I.borderWidths("borderBlockEndWidth"),borderBottomColor:I.colors("borderBottomColor"),borderBlockEndColor:I.colors("borderBlockEndColor"),borderBottomStyle:I.borderStyles("borderBottomStyle"),borderBlockEndStyle:I.borderStyles("borderBlockEndStyle"),borderLeftWidth:I.borderWidths("borderLeftWidth"),borderInlineStartWidth:I.borderWidths("borderInlineStartWidth"),borderLeftColor:I.colors("borderLeftColor"),borderInlineStartColor:I.colors("borderInlineStartColor"),borderLeftStyle:I.borderStyles("borderLeftStyle"),borderInlineStartStyle:I.borderStyles("borderInlineStartStyle"),borderRightWidth:I.borderWidths("borderRightWidth"),borderInlineEndWidth:I.borderWidths("borderInlineEndWidth"),borderRightColor:I.colors("borderRightColor"),borderInlineEndColor:I.colors("borderInlineEndColor"),borderRightStyle:I.borderStyles("borderRightStyle"),borderInlineEndStyle:I.borderStyles("borderInlineEndStyle"),borderTopRadius:I.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:I.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:I.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:I.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(We,{rounded:We.borderRadius,roundedTop:We.borderTopRadius,roundedTopLeft:We.borderTopLeftRadius,roundedTopRight:We.borderTopRightRadius,roundedTopStart:We.borderStartStartRadius,roundedTopEnd:We.borderStartEndRadius,roundedBottom:We.borderBottomRadius,roundedBottomLeft:We.borderBottomLeftRadius,roundedBottomRight:We.borderBottomRightRadius,roundedBottomStart:We.borderEndStartRadius,roundedBottomEnd:We.borderEndEndRadius,roundedLeft:We.borderLeftRadius,roundedRight:We.borderRightRadius,roundedStart:We.borderInlineStartRadius,roundedEnd:We.borderInlineEndRadius,borderStart:We.borderInlineStart,borderEnd:We.borderInlineEnd,borderTopStartRadius:We.borderStartStartRadius,borderTopEndRadius:We.borderStartEndRadius,borderBottomStartRadius:We.borderEndStartRadius,borderBottomEndRadius:We.borderEndEndRadius,borderStartRadius:We.borderInlineStartRadius,borderEndRadius:We.borderInlineEndRadius,borderStartWidth:We.borderInlineStartWidth,borderEndWidth:We.borderInlineEndWidth,borderStartColor:We.borderInlineStartColor,borderEndColor:We.borderInlineEndColor,borderStartStyle:We.borderInlineStartStyle,borderEndStyle:We.borderInlineEndStyle});var XR={color:I.colors("color"),textColor:I.colors("color"),fill:I.colors("fill"),stroke:I.colors("stroke")},rb={boxShadow:I.shadows("boxShadow"),mixBlendMode:!0,blendMode:I.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:I.prop("backgroundBlendMode"),opacity:!0};Object.assign(rb,{shadow:rb.boxShadow});var KR={filter:{transform:Ee.filter},blur:I.blur("--chakra-blur"),brightness:I.propT("--chakra-brightness",Ee.brightness),contrast:I.propT("--chakra-contrast",Ee.contrast),hueRotate:I.propT("--chakra-hue-rotate",Ee.hueRotate),invert:I.propT("--chakra-invert",Ee.invert),saturate:I.propT("--chakra-saturate",Ee.saturate),dropShadow:I.propT("--chakra-drop-shadow",Ee.dropShadow),backdropFilter:{transform:Ee.backdropFilter},backdropBlur:I.blur("--chakra-backdrop-blur"),backdropBrightness:I.propT("--chakra-backdrop-brightness",Ee.brightness),backdropContrast:I.propT("--chakra-backdrop-contrast",Ee.contrast),backdropHueRotate:I.propT("--chakra-backdrop-hue-rotate",Ee.hueRotate),backdropInvert:I.propT("--chakra-backdrop-invert",Ee.invert),backdropSaturate:I.propT("--chakra-backdrop-saturate",Ee.saturate)},m0={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ee.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:I.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:I.space("gap"),rowGap:I.space("rowGap"),columnGap:I.space("columnGap")};Object.assign(m0,{flexDir:m0.flexDirection});var gM={gridGap:I.space("gridGap"),gridColumnGap:I.space("gridColumnGap"),gridRowGap:I.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},ZR={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ee.outline},outlineOffset:!0,outlineColor:I.colors("outlineColor")},Zr={width:I.sizesT("width"),inlineSize:I.sizesT("inlineSize"),height:I.sizes("height"),blockSize:I.sizes("blockSize"),boxSize:I.sizes(["width","height"]),minWidth:I.sizes("minWidth"),minInlineSize:I.sizes("minInlineSize"),minHeight:I.sizes("minHeight"),minBlockSize:I.sizes("minBlockSize"),maxWidth:I.sizes("maxWidth"),maxInlineSize:I.sizes("maxInlineSize"),maxHeight:I.sizes("maxHeight"),maxBlockSize:I.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,a;return{[`@media screen and (min-width: ${(a=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?a:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,a;return{[`@media screen and (max-width: ${(a=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?a:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:I.propT("float",Ee.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 JR={listStyleType:!0,listStylePosition:!0,listStylePos:I.prop("listStylePosition"),listStyleImage:!0,listStyleImg:I.prop("listStyleImage")};function ek(e,t,r,n){const a=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,a,o,s)=>{if(typeof n>"u")return e(n,a,o);t.has(n)||t.set(n,new Map);const l=t.get(n);if(l.has(a))return l.get(a);const u=e(n,a,o,s);return l.set(a,u),u}},rk=tk(ek),nk={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ak={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Up=(e,t,r)=>{const n={},a=rk(e,t,{});for(const o in a)o in r&&r[o]!=null||(n[o]=a[o]);return n},ik={srOnly:{transform(e){return e===!0?nk:e==="focusable"?ak:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Up(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Up(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Up(t,e,r)}},Qd={position:!0,pos:I.prop("position"),zIndex:I.prop("zIndex","zIndices"),inset:I.spaceT("inset"),insetX:I.spaceT(["left","right"]),insetInline:I.spaceT("insetInline"),insetY:I.spaceT(["top","bottom"]),insetBlock:I.spaceT("insetBlock"),top:I.spaceT("top"),insetBlockStart:I.spaceT("insetBlockStart"),bottom:I.spaceT("bottom"),insetBlockEnd:I.spaceT("insetBlockEnd"),left:I.spaceT("left"),insetInlineStart:I.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:I.spaceT("right"),insetInlineEnd:I.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Qd,{insetStart:Qd.insetInlineStart,insetEnd:Qd.insetInlineEnd});var ok={ring:{transform:Ee.ring},ringColor:I.colors("--chakra-ring-color"),ringOffset:I.prop("--chakra-ring-offset-width"),ringOffsetColor:I.colors("--chakra-ring-offset-color"),ringInset:I.prop("--chakra-ring-inset")},ot={margin:I.spaceT("margin"),marginTop:I.spaceT("marginTop"),marginBlockStart:I.spaceT("marginBlockStart"),marginRight:I.spaceT("marginRight"),marginInlineEnd:I.spaceT("marginInlineEnd"),marginBottom:I.spaceT("marginBottom"),marginBlockEnd:I.spaceT("marginBlockEnd"),marginLeft:I.spaceT("marginLeft"),marginInlineStart:I.spaceT("marginInlineStart"),marginX:I.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:I.spaceT("marginInline"),marginY:I.spaceT(["marginTop","marginBottom"]),marginBlock:I.spaceT("marginBlock"),padding:I.space("padding"),paddingTop:I.space("paddingTop"),paddingBlockStart:I.space("paddingBlockStart"),paddingRight:I.space("paddingRight"),paddingBottom:I.space("paddingBottom"),paddingBlockEnd:I.space("paddingBlockEnd"),paddingLeft:I.space("paddingLeft"),paddingInlineStart:I.space("paddingInlineStart"),paddingInlineEnd:I.space("paddingInlineEnd"),paddingX:I.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:I.space("paddingInline"),paddingY:I.space(["paddingTop","paddingBottom"]),paddingBlock:I.space("paddingBlock")};Object.assign(ot,{m:ot.margin,mt:ot.marginTop,mr:ot.marginRight,me:ot.marginInlineEnd,marginEnd:ot.marginInlineEnd,mb:ot.marginBottom,ml:ot.marginLeft,ms:ot.marginInlineStart,marginStart:ot.marginInlineStart,mx:ot.marginX,my:ot.marginY,p:ot.padding,pt:ot.paddingTop,py:ot.paddingY,px:ot.paddingX,pb:ot.paddingBottom,pl:ot.paddingLeft,ps:ot.paddingInlineStart,paddingStart:ot.paddingInlineStart,pr:ot.paddingRight,pe:ot.paddingInlineEnd,paddingEnd:ot.paddingInlineEnd});var sk={textDecorationColor:I.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:I.shadows("textShadow")},lk={clipPath:!0,transform:I.propT("transform",Ee.transform),transformOrigin:!0,translateX:I.spaceT("--chakra-translate-x"),translateY:I.spaceT("--chakra-translate-y"),skewX:I.degreeT("--chakra-skew-x"),skewY:I.degreeT("--chakra-skew-y"),scaleX:I.prop("--chakra-scale-x"),scaleY:I.prop("--chakra-scale-y"),scale:I.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:I.degreeT("--chakra-rotate")},uk={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:I.prop("transitionDuration","transition.duration"),transitionProperty:I.prop("transitionProperty","transition.property"),transitionTimingFunction:I.prop("transitionTimingFunction","transition.easing")},ck={fontFamily:I.prop("fontFamily","fonts"),fontSize:I.prop("fontSize","fontSizes",Ee.px),fontWeight:I.prop("fontWeight","fontWeights"),lineHeight:I.prop("lineHeight","lineHeights"),letterSpacing:I.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},dk={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:I.spaceT("scrollMargin"),scrollMarginTop:I.spaceT("scrollMarginTop"),scrollMarginBottom:I.spaceT("scrollMarginBottom"),scrollMarginLeft:I.spaceT("scrollMarginLeft"),scrollMarginRight:I.spaceT("scrollMarginRight"),scrollMarginX:I.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:I.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:I.spaceT("scrollPadding"),scrollPaddingTop:I.spaceT("scrollPaddingTop"),scrollPaddingBottom:I.spaceT("scrollPaddingBottom"),scrollPaddingLeft:I.spaceT("scrollPaddingLeft"),scrollPaddingRight:I.spaceT("scrollPaddingRight"),scrollPaddingX:I.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:I.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function bM(e){return jn(e)&&e.reference?e.reference:String(e)}var fv=(e,...t)=>t.map(bM).join(` ${e} `).replace(/calc/g,""),ES=(...e)=>`calc(${fv("+",...e)})`,DS=(...e)=>`calc(${fv("-",...e)})`,nb=(...e)=>`calc(${fv("*",...e)})`,jS=(...e)=>`calc(${fv("/",...e)})`,IS=e=>{const t=bM(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:nb(t,-1)},Ns=Object.assign(e=>({add:(...t)=>Ns(ES(e,...t)),subtract:(...t)=>Ns(DS(e,...t)),multiply:(...t)=>Ns(nb(e,...t)),divide:(...t)=>Ns(jS(e,...t)),negate:()=>Ns(IS(e)),toString:()=>e.toString()}),{add:ES,subtract:DS,multiply:nb,divide:jS,negate:IS});function fk(e,t="-"){return e.replace(/\s+/g,t)}function hk(e){const t=fk(e.toString());return vk(mk(t))}function mk(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function vk(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function pk(e,t=""){return[t,e].filter(Boolean).join("-")}function gk(e,t){return`var(${e}${t?`, ${t}`:""})`}function bk(e,t=""){return hk(`--${pk(e,t)}`)}function ue(e,t,r){const n=bk(e,r);return{variable:n,reference:gk(n,t)}}function yk(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[a,o]=n;r[a]=ue(`${e}-${a}`,o);continue}r[n]=ue(`${e}-${n}`)}return r}function _k(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function xk(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function ab(e){if(e==null)return e;const{unitless:t}=xk(e);return t||typeof e=="number"?`${e}px`:e}var yM=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Uy=e=>Object.fromEntries(Object.entries(e).sort(yM));function AS(e){const t=Uy(e);return Object.assign(Object.values(t),t)}function wk(e){const t=Object.keys(Uy(e));return new Set(t)}function FS(e){var t;if(!e)return e;e=(t=ab(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Id(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${ab(e)})`),t&&r.push("and",`(max-width: ${ab(t)})`),r.join(" ")}function Sk(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=AS(e),n=Object.entries(e).sort(yM).map(([s,l],u,c)=>{var d;let[,f]=(d=c[u+1])!=null?d:[];return f=parseFloat(f)>0?FS(f):void 0,{_minW:FS(l),breakpoint:s,minW:l,maxW:f,maxWQuery:Id(null,f),minWQuery:Id(l),minMaxQuery:Id(l,f)}}),a=wk(e),o=Array.from(a.values());return{keys:a,normalized:r,isResponsive(s){const l=Object.keys(s);return l.length>0&&l.every(u=>a.has(u))},asObject:Uy(e),asArray:AS(e),details:n,get(s){return n.find(l=>l.breakpoint===s)},media:[null,...r.map(s=>Id(s)).slice(1)],toArrayValue(s){if(!jn(s))throw new Error("toArrayValue: value must be an object");const l=o.map(u=>{var c;return(c=s[u])!=null?c:null});for(;_k(l)===null;)l.pop();return l},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((l,u,c)=>{const d=o[c];return d!=null&&u!=null&&(l[d]=u),l},{})}}}var Wt={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}`},Wi=e=>_M(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ja=e=>_M(t=>e(t,"~ &"),"[data-peer]",".peer"),_M=(e,...t)=>t.map(e).join(", "),hv={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Wi(Wt.hover),_peerHover:ja(Wt.hover),_groupFocus:Wi(Wt.focus),_peerFocus:ja(Wt.focus),_groupFocusVisible:Wi(Wt.focusVisible),_peerFocusVisible:ja(Wt.focusVisible),_groupActive:Wi(Wt.active),_peerActive:ja(Wt.active),_groupDisabled:Wi(Wt.disabled),_peerDisabled:ja(Wt.disabled),_groupInvalid:Wi(Wt.invalid),_peerInvalid:ja(Wt.invalid),_groupChecked:Wi(Wt.checked),_peerChecked:ja(Wt.checked),_groupFocusWithin:Wi(Wt.focusWithin),_peerFocusWithin:ja(Wt.focusWithin),_peerPlaceholderShown:ja(Wt.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},xM=Object.keys(hv);function RS(e,t){return ue(String(e).replace(/\./g,"-"),void 0,t)}function Pk(e,t){let r={};const n={};for(const[a,o]of Object.entries(e)){const{isSemantic:s,value:l}=o,{variable:u,reference:c}=RS(a,t==null?void 0:t.cssVarPrefix);if(!s){if(a.startsWith("space")){const m=a.split("."),[g,...x]=m,p=`${g}.-${x.join(".")}`,$=Ns.negate(l),b=Ns.negate(c);n[p]={value:$,var:u,varRef:b}}r[u]=l,n[a]={value:l,var:u,varRef:c};continue}const d=m=>{const x=[String(a).split(".")[0],m].join(".");if(!e[x])return m;const{reference:$}=RS(x,t==null?void 0:t.cssVarPrefix);return $},f=jn(l)?l:{default:l};r=ta(r,Object.entries(f).reduce((m,[g,x])=>{var p,$;if(!x)return m;const b=d(`${x}`);if(g==="default")return m[u]=b,m;const y=($=(p=hv)==null?void 0:p[g])!=null?$:g;return m[y]={[u]:b},m},{})),n[a]={value:c,var:u,varRef:c}}return{cssVars:r,cssMap:n}}function $k(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Ok(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Ck(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function kS(e,t,r={}){const{stop:n,getKey:a}=r;function o(s,l=[]){var u;if(Ck(s)||Array.isArray(s)){const c={};for(const[d,f]of Object.entries(s)){const m=(u=a==null?void 0:a(d))!=null?u:d,g=[...l,m];if(n!=null&&n(s,g))return t(s,l);c[m]=o(f,g)}return c}return t(s,l)}return o(e)}var Mk=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Tk(e){return Ok(e,Mk)}function Ek(e){return e.semanticTokens}function Dk(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...a}=e;return a}var jk=e=>xM.includes(e)||e==="default";function Ik({tokens:e,semanticTokens:t}){const r={};return kS(e,(n,a)=>{n!=null&&(r[a.join(".")]={isSemantic:!1,value:n})}),kS(t,(n,a)=>{n!=null&&(r[a.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(jk)}),r}function Ak(e){var t;const r=Dk(e),n=Tk(r),a=Ek(r),o=Ik({tokens:n,semanticTokens:a}),s=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:l,cssVars:u}=Pk(o,{cssVarPrefix:s});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...u},__cssMap:l,__breakpoints:Sk(r.breakpoints)}),r}var Gy=ta({},Om,We,XR,m0,Zr,KR,ok,ZR,gM,ik,Qd,rb,ot,dk,ck,sk,lk,JR,uk),Fk=Object.assign({},ot,Zr,m0,gM,Qd),Rk=Object.keys(Fk),kk=[...Object.keys(Gy),...xM],Nk={...Gy,...hv},Lk=e=>e in Nk,zk=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:a}=t.__breakpoints,o={};for(const s in e){let l=io(e[s],t);if(l==null)continue;if(l=jn(l)&&r(l)?n(l):l,!Array.isArray(l)){o[s]=l;continue}const u=l.slice(0,a.length).length;for(let c=0;ce.startsWith("--")&&typeof t=="string"&&!Bk(t),Hk=(e,t)=>{var r,n;if(t==null)return t;const a=u=>{var c,d;return(d=(c=e.__cssMap)==null?void 0:c[u])==null?void 0:d.varRef},o=u=>{var c;return(c=a(u))!=null?c:u},[s,l]=Wk(t);return t=(n=(r=a(s))!=null?r:o(l))!=null?n:o(t),t};function Yk(e){const{configs:t={},pseudos:r={},theme:n}=e,a=(o,s=!1)=>{var l,u,c;const d=io(o,n),f=zk(d)(n);let m={};for(let g in f){const x=f[g];let p=io(x,n);g in r&&(g=r[g]),Vk(g,p)&&(p=Hk(n,p));let $=t[g];if($===!0&&($={property:g}),jn(p)){m[g]=(l=m[g])!=null?l:{},m[g]=ta({},m[g],a(p,!0));continue}let b=(c=(u=$==null?void 0:$.transform)==null?void 0:u.call($,p,n,d))!=null?c:p;b=$!=null&&$.processResult?a(b,!0):b;const y=io($==null?void 0:$.property,n);if(!s&&($!=null&&$.static)){const P=io($.static,n);m=ta({},m,P)}if(y&&Array.isArray(y)){for(const P of y)m[P]=b;continue}if(y){y==="&"&&jn(b)?m=ta({},m,b):m[y]=b;continue}if(jn(b)){m=ta({},m,b);continue}m[g]=b}return m};return a}var wM=e=>t=>Yk({theme:t,pseudos:hv,configs:Gy})(e);function at(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Uk(e,t){if(Array.isArray(e))return e;if(jn(e))return t(e);if(e!=null)return[e]}function Gk(e,t){for(let r=t+1;r{ta(c,{[P]:m?y[P]:{[b]:y[P]}})});continue}if(!g){m?ta(c,y):c[b]=y;continue}c[b]=y}}return c}}function Qk(e){return t=>{var r;const{variant:n,size:a,theme:o}=t,s=qk(o);return ta({},io((r=e.baseStyle)!=null?r:{},t),s(e,"sizes",a,t),s(e,"variants",n,t))}}function mr(e){return $k(e,["styleConfig","size","variant","colorScheme"])}var Xk={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"},Kk={"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)"},Zk={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Jk={property:Xk,easing:Kk,duration:Zk},e7=Jk,t7={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},r7=t7,n7={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},a7=n7,i7={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},o7=i7,s7={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"}},l7=s7,u7={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},c7=u7,d7={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"},f7=d7,h7={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},m7=h7,v7={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"}},SM=v7,PM={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"},p7={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"},g7={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},b7={...PM,...p7,container:g7},$M=b7,y7={breakpoints:o7,zIndices:r7,radii:c7,blur:m7,colors:l7,...SM,sizes:$M,shadows:f7,space:PM,borders:a7,transition:e7},{defineMultiStyleConfig:_7,definePartsStyle:Ad}=at(["stepper","step","title","description","indicator","separator","icon","number"]),Fa=ue("stepper-indicator-size"),uu=ue("stepper-icon-size"),cu=ue("stepper-title-font-size"),Fd=ue("stepper-description-font-size"),ud=ue("stepper-accent-color"),x7=Ad(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ud.variable]:`colors.${e}.500`,_dark:{[ud.variable]:`colors.${e}.200`}},title:{fontSize:cu.reference,fontWeight:"medium"},description:{fontSize:Fd.reference,color:"chakra-subtle-text"},number:{fontSize:cu.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:uu.reference,height:uu.reference},indicator:{flexShrink:0,borderRadius:"full",width:Fa.reference,height:Fa.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ud.reference},"&[data-status=complete]":{bg:ud.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ud.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Fa.reference} - 8px)`,top:`calc(${Fa.reference} + 4px)`,insetStart:`calc(${Fa.reference} / 2 - 1px)`}}})),w7=_7({baseStyle:x7,sizes:{xs:Ad({stepper:{[Fa.variable]:"sizes.4",[uu.variable]:"sizes.3",[cu.variable]:"fontSizes.xs",[Fd.variable]:"fontSizes.xs"}}),sm:Ad({stepper:{[Fa.variable]:"sizes.6",[uu.variable]:"sizes.4",[cu.variable]:"fontSizes.sm",[Fd.variable]:"fontSizes.xs"}}),md:Ad({stepper:{[Fa.variable]:"sizes.8",[uu.variable]:"sizes.5",[cu.variable]:"fontSizes.md",[Fd.variable]:"fontSizes.sm"}}),lg:Ad({stepper:{[Fa.variable]:"sizes.10",[uu.variable]:"sizes.6",[cu.variable]:"fontSizes.lg",[Fd.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Ye(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function a(...d){n();for(const f of d)t[f]=u(f);return Ye(e,t)}function o(...d){for(const f of d)f in t||(t[f]=u(f));return Ye(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([f,m])=>[f,m.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,m])=>[f,m.className]))}function u(d){const g=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:g,selector:`.${g}`,toString:()=>d}}return{parts:a,toPart:u,extend:o,selectors:s,classnames:l,get keys(){return Object.keys(t)},__type:{}}}var S7=Ye("accordion").parts("root","container","button","panel").extend("icon"),P7=Ye("alert").parts("title","description","container").extend("icon","spinner"),$7=Ye("avatar").parts("label","badge","container").extend("excessLabel","group"),O7=Ye("breadcrumb").parts("link","item","container").extend("separator");Ye("button").parts();var C7=Ye("checkbox").parts("control","icon","container").extend("label");Ye("progress").parts("track","filledTrack").extend("label");var M7=Ye("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),T7=Ye("editable").parts("preview","input","textarea"),E7=Ye("form").parts("container","requiredIndicator","helperText"),D7=Ye("formError").parts("text","icon"),j7=Ye("input").parts("addon","field","element","group"),I7=Ye("list").parts("container","item","icon"),A7=Ye("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),F7=Ye("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),R7=Ye("numberinput").parts("root","field","stepperGroup","stepper");Ye("pininput").parts("field");var k7=Ye("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),N7=Ye("progress").parts("label","filledTrack","track"),L7=Ye("radio").parts("container","control","label"),z7=Ye("select").parts("field","icon"),W7=Ye("slider").parts("container","track","thumb","filledTrack","mark"),B7=Ye("stat").parts("container","label","helpText","number","icon"),V7=Ye("switch").parts("container","track","thumb","label"),H7=Ye("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Y7=Ye("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),U7=Ye("tag").parts("container","label","closeButton"),G7=Ye("card").parts("container","header","body","footer");Ye("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Vs(e,t,r){return Math.min(Math.max(e,r),t)}class q7 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Rd=q7;function qy(e){if(typeof e!="string")throw new Rd(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=rN.test(e)?K7(e):e;const r=Z7.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(l=>parseInt(Ef(l,2),16)),parseInt(Ef(s[3]||"f",2),16)/255]}const n=J7.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(l=>parseInt(l,16)),parseInt(s[3]||"ff",16)/255]}const a=eN.exec(t);if(a){const s=Array.from(a).slice(1);return[...s.slice(0,3).map(l=>parseInt(l,10)),parseFloat(s[3]||"1")]}const o=tN.exec(t);if(o){const[s,l,u,c]=Array.from(o).slice(1).map(parseFloat);if(Vs(0,100,l)!==l)throw new Rd(e);if(Vs(0,100,u)!==u)throw new Rd(e);return[...nN(s,l,u),Number.isNaN(c)?1:c]}throw new Rd(e)}function Q7(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const NS=e=>parseInt(e.replace(/_/g,""),36),X7="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=NS(t.substring(0,3)),n=NS(t.substring(3)).toString(16);let a="";for(let o=0;o<6-n.length;o++)a+="0";return e[r]=`${a}${n}`,e},{});function K7(e){const t=e.toLowerCase().trim(),r=X7[Q7(t)];if(!r)throw new Rd(e);return`#${r}`}const Ef=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Z7=new RegExp(`^#${Ef("([a-f0-9])",3)}([a-f0-9])?$`,"i"),J7=new RegExp(`^#${Ef("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),eN=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Ef(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),tN=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,rN=/^[a-z]+$/i,LS=e=>Math.round(e*255),nN=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(LS);const a=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),s=o*(1-Math.abs(a%2-1));let l=0,u=0,c=0;a>=0&&a<1?(l=o,u=s):a>=1&&a<2?(l=s,u=o):a>=2&&a<3?(u=o,c=s):a>=3&&a<4?(u=s,c=o):a>=4&&a<5?(l=s,c=o):a>=5&&a<6&&(l=o,c=s);const d=n-o/2,f=l+d,m=u+d,g=c+d;return[f,m,g].map(LS)};function aN(e,t,r,n){return`rgba(${Vs(0,255,e).toFixed()}, ${Vs(0,255,t).toFixed()}, ${Vs(0,255,r).toFixed()}, ${parseFloat(Vs(0,1,n).toFixed(3))})`}function iN(e,t){const[r,n,a,o]=qy(e);return aN(r,n,a,o-t)}function oN(e){const[t,r,n,a]=qy(e);let o=s=>{const l=Vs(0,255,s).toString(16);return l.length===1?`0${l}`:l};return`#${o(t)}${o(r)}${o(n)}${a<1?o(Math.round(a*255)):""}`}function sN(e,t,r,n,a){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,ur=(e,t,r)=>{const n=sN(e,`colors.${t}`,t);try{return oN(n),n}catch{return r??"#000000"}},uN=e=>{const[t,r,n]=qy(e);return(t*299+r*587+n*114)/1e3},cN=e=>t=>{const r=ur(t,e);return uN(r)<128?"dark":"light"},dN=e=>t=>cN(e)(t)==="dark",Bu=(e,t)=>r=>{const n=ur(r,e);return iN(n,1-t)};function zS(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}`}}var fN=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function hN(e){const t=fN();return!e||lN(e)?t:e.string&&e.colors?vN(e.string,e.colors):e.string&&!e.colors?mN(e.string):e.colors&&!e.string?pN(e.colors):t}function mN(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${a.toString(16)}`.substr(-2)}return r}function vN(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function Qy(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function OM(e){return jn(e)&&e.reference?e.reference:String(e)}var mv=(e,...t)=>t.map(OM).join(` ${e} `).replace(/calc/g,""),WS=(...e)=>`calc(${mv("+",...e)})`,BS=(...e)=>`calc(${mv("-",...e)})`,ib=(...e)=>`calc(${mv("*",...e)})`,VS=(...e)=>`calc(${mv("/",...e)})`,HS=e=>{const t=OM(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ib(t,-1)},Ra=Object.assign(e=>({add:(...t)=>Ra(WS(e,...t)),subtract:(...t)=>Ra(BS(e,...t)),multiply:(...t)=>Ra(ib(e,...t)),divide:(...t)=>Ra(VS(e,...t)),negate:()=>Ra(HS(e)),toString:()=>e.toString()}),{add:WS,subtract:BS,multiply:ib,divide:VS,negate:HS});function gN(e){return!Number.isInteger(parseFloat(e.toString()))}function bN(e,t="-"){return e.replace(/\s+/g,t)}function CM(e){const t=bN(e.toString());return t.includes("\\.")?e:gN(e)?t.replace(".","\\."):e}function yN(e,t=""){return[t,CM(e)].filter(Boolean).join("-")}function _N(e,t){return`var(${CM(e)}${t?`, ${t}`:""})`}function xN(e,t=""){return`--${yN(e,t)}`}function Et(e,t){const r=xN(e,void 0);return{variable:r,reference:_N(r,wN(void 0))}}function wN(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:SN,definePartsStyle:Cm}=at(V7.keys),Xd=Et("switch-track-width"),qs=Et("switch-track-height"),Gp=Et("switch-track-diff"),PN=Ra.subtract(Xd,qs),ob=Et("switch-thumb-x"),cd=Et("switch-bg"),$N=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Xd.reference],height:[qs.reference],transitionProperty:"common",transitionDuration:"fast",[cd.variable]:"colors.gray.300",_dark:{[cd.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[cd.variable]:`colors.${t}.500`,_dark:{[cd.variable]:`colors.${t}.200`}},bg:cd.reference}},ON={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[qs.reference],height:[qs.reference],_checked:{transform:`translateX(${ob.reference})`}},CN=Cm(e=>({container:{[Gp.variable]:PN,[ob.variable]:Gp.reference,_rtl:{[ob.variable]:Ra(Gp).negate().toString()}},track:$N(e),thumb:ON})),MN={sm:Cm({container:{[Xd.variable]:"1.375rem",[qs.variable]:"sizes.3"}}),md:Cm({container:{[Xd.variable]:"1.875rem",[qs.variable]:"sizes.4"}}),lg:Cm({container:{[Xd.variable]:"2.875rem",[qs.variable]:"sizes.6"}})},TN=SN({baseStyle:CN,sizes:MN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:EN,definePartsStyle:Cu}=at(H7.keys),DN=Cu({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"}}),v0={"&[data-is-numeric=true]":{textAlign:"end"}},jN=Cu(e=>{const{colorScheme:t}=e;return{th:{color:le("gray.600","gray.400")(e),borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...v0},td:{borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...v0},caption:{color:le("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),IN=Cu(e=>{const{colorScheme:t}=e;return{th:{color:le("gray.600","gray.400")(e),borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...v0},td:{borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...v0},caption:{color:le("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e)},td:{background:le(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),AN={simple:jN,striped:IN,unstyled:{}},FN={sm:Cu({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:Cu({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Cu({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},RN=EN({baseStyle:DN,variants:AN,sizes:FN,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Sr=ue("tabs-color"),Tn=ue("tabs-bg"),Bh=ue("tabs-border-color"),{defineMultiStyleConfig:kN,definePartsStyle:ia}=at(Y7.keys),NN=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},LN=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}}},zN=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},WN={p:4},BN=ia(e=>({root:NN(e),tab:LN(e),tablist:zN(e),tabpanel:WN})),VN={sm:ia({tab:{py:1,px:4,fontSize:"sm"}}),md:ia({tab:{fontSize:"md",py:2,px:4}}),lg:ia({tab:{fontSize:"lg",py:3,px:4}})},HN=ia(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",a=n?"borderStart":"borderBottom",o=n?"marginStart":"marginBottom";return{tablist:{[a]:"2px solid",borderColor:"inherit"},tab:{[a]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[Sr.variable]:`colors.${t}.600`,_dark:{[Sr.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Tn.variable]:"colors.gray.200",_dark:{[Tn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Sr.reference,bg:Tn.reference}}}),YN=ia(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Bh.variable]:"transparent",_selected:{[Sr.variable]:`colors.${t}.600`,[Bh.variable]:"colors.white",_dark:{[Sr.variable]:`colors.${t}.300`,[Bh.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Bh.reference},color:Sr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),UN=ia(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Tn.variable]:"colors.gray.50",_dark:{[Tn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Tn.variable]:"colors.white",[Sr.variable]:`colors.${t}.600`,_dark:{[Tn.variable]:"colors.gray.800",[Sr.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Sr.reference,bg:Tn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),GN=ia(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ur(r,`${t}.700`),bg:ur(r,`${t}.100`)}}}}),qN=ia(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Sr.variable]:"colors.gray.600",_dark:{[Sr.variable]:"inherit"},_selected:{[Sr.variable]:"colors.white",[Tn.variable]:`colors.${t}.600`,_dark:{[Sr.variable]:"colors.gray.800",[Tn.variable]:`colors.${t}.300`}},color:Sr.reference,bg:Tn.reference}}}),QN=ia({}),XN={line:HN,enclosed:YN,"enclosed-colored":UN,"soft-rounded":GN,"solid-rounded":qN,unstyled:QN},KN=kN({baseStyle:BN,sizes:VN,variants:XN,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),_t=yk("badge",["bg","color","shadow"]),ZN={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:_t.bg.reference,color:_t.color.reference,boxShadow:_t.shadow.reference},JN=e=>{const{colorScheme:t,theme:r}=e,n=Bu(`${t}.500`,.6)(r);return{[_t.bg.variable]:`colors.${t}.500`,[_t.color.variable]:"colors.white",_dark:{[_t.bg.variable]:n,[_t.color.variable]:"colors.whiteAlpha.800"}}},eL=e=>{const{colorScheme:t,theme:r}=e,n=Bu(`${t}.200`,.16)(r);return{[_t.bg.variable]:`colors.${t}.100`,[_t.color.variable]:`colors.${t}.800`,_dark:{[_t.bg.variable]:n,[_t.color.variable]:`colors.${t}.200`}}},tL=e=>{const{colorScheme:t,theme:r}=e,n=Bu(`${t}.200`,.8)(r);return{[_t.color.variable]:`colors.${t}.500`,_dark:{[_t.color.variable]:n},[_t.shadow.variable]:`inset 0 0 0px 1px ${_t.color.reference}`}},rL={solid:JN,subtle:eL,outline:tL},Kd={baseStyle:ZN,variants:rL,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:nL,definePartsStyle:Qs}=at(U7.keys),YS=ue("tag-bg"),US=ue("tag-color"),qp=ue("tag-shadow"),Mm=ue("tag-min-height"),Tm=ue("tag-min-width"),Em=ue("tag-font-size"),Dm=ue("tag-padding-inline"),aL={fontWeight:"medium",lineHeight:1.2,outline:0,[US.variable]:_t.color.reference,[YS.variable]:_t.bg.reference,[qp.variable]:_t.shadow.reference,color:US.reference,bg:YS.reference,boxShadow:qp.reference,borderRadius:"md",minH:Mm.reference,minW:Tm.reference,fontSize:Em.reference,px:Dm.reference,_focusVisible:{[qp.variable]:"shadows.outline"}},iL={lineHeight:1.2,overflow:"visible"},oL={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}},sL=Qs({container:aL,label:iL,closeButton:oL}),lL={sm:Qs({container:{[Mm.variable]:"sizes.5",[Tm.variable]:"sizes.5",[Em.variable]:"fontSizes.xs",[Dm.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Qs({container:{[Mm.variable]:"sizes.6",[Tm.variable]:"sizes.6",[Em.variable]:"fontSizes.sm",[Dm.variable]:"space.2"}}),lg:Qs({container:{[Mm.variable]:"sizes.8",[Tm.variable]:"sizes.8",[Em.variable]:"fontSizes.md",[Dm.variable]:"space.3"}})},uL={subtle:Qs(e=>{var t;return{container:(t=Kd.variants)==null?void 0:t.subtle(e)}}),solid:Qs(e=>{var t;return{container:(t=Kd.variants)==null?void 0:t.solid(e)}}),outline:Qs(e=>{var t;return{container:(t=Kd.variants)==null?void 0:t.outline(e)}})},cL=nL({variants:uL,baseStyle:sL,sizes:lL,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:La,defineMultiStyleConfig:dL}=at(j7.keys),du=ue("input-height"),fu=ue("input-font-size"),hu=ue("input-padding"),mu=ue("input-border-radius"),fL=La({addon:{height:du.reference,fontSize:fu.reference,px:hu.reference,borderRadius:mu.reference},field:{width:"100%",height:du.reference,fontSize:fu.reference,px:hu.reference,borderRadius:mu.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Bi={lg:{[fu.variable]:"fontSizes.lg",[hu.variable]:"space.4",[mu.variable]:"radii.md",[du.variable]:"sizes.12"},md:{[fu.variable]:"fontSizes.md",[hu.variable]:"space.4",[mu.variable]:"radii.md",[du.variable]:"sizes.10"},sm:{[fu.variable]:"fontSizes.sm",[hu.variable]:"space.3",[mu.variable]:"radii.sm",[du.variable]:"sizes.8"},xs:{[fu.variable]:"fontSizes.xs",[hu.variable]:"space.2",[mu.variable]:"radii.sm",[du.variable]:"sizes.6"}},hL={lg:La({field:Bi.lg,group:Bi.lg}),md:La({field:Bi.md,group:Bi.md}),sm:La({field:Bi.sm,group:Bi.sm}),xs:La({field:Bi.xs,group:Bi.xs})};function Xy(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||le("blue.500","blue.300")(e),errorBorderColor:r||le("red.500","red.300")(e)}}var mL=La(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Xy(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:le("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ur(t,n),boxShadow:`0 0 0 1px ${ur(t,n)}`},_focusVisible:{zIndex:1,borderColor:ur(t,r),boxShadow:`0 0 0 1px ${ur(t,r)}`}},addon:{border:"1px solid",borderColor:le("inherit","whiteAlpha.50")(e),bg:le("gray.100","whiteAlpha.300")(e)}}}),vL=La(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Xy(e);return{field:{border:"2px solid",borderColor:"transparent",bg:le("gray.100","whiteAlpha.50")(e),_hover:{bg:le("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ur(t,n)},_focusVisible:{bg:"transparent",borderColor:ur(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:le("gray.100","whiteAlpha.50")(e)}}}),pL=La(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Xy(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ur(t,n),boxShadow:`0px 1px 0px 0px ${ur(t,n)}`},_focusVisible:{borderColor:ur(t,r),boxShadow:`0px 1px 0px 0px ${ur(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),gL=La({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),bL={outline:mL,filled:vL,flushed:pL,unstyled:gL},He=dL({baseStyle:fL,sizes:hL,variants:bL,defaultProps:{size:"md",variant:"outline"}}),GS,yL={...(GS=He.baseStyle)==null?void 0:GS.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},qS,QS,_L={outline:e=>{var t,r;return(r=(t=He.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=He.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=He.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(QS=(qS=He.variants)==null?void 0:qS.unstyled.field)!=null?QS:{}},XS,KS,ZS,JS,eP,tP,rP,nP,xL={xs:(KS=(XS=He.sizes)==null?void 0:XS.xs.field)!=null?KS:{},sm:(JS=(ZS=He.sizes)==null?void 0:ZS.sm.field)!=null?JS:{},md:(tP=(eP=He.sizes)==null?void 0:eP.md.field)!=null?tP:{},lg:(nP=(rP=He.sizes)==null?void 0:rP.lg.field)!=null?nP:{}},wL={baseStyle:yL,sizes:xL,variants:_L,defaultProps:{size:"md",variant:"outline"}},Vh=Et("tooltip-bg"),Qp=Et("tooltip-fg"),SL=Et("popper-arrow-bg"),PL={bg:Vh.reference,color:Qp.reference,[Vh.variable]:"colors.gray.700",[Qp.variable]:"colors.whiteAlpha.900",_dark:{[Vh.variable]:"colors.gray.300",[Qp.variable]:"colors.gray.900"},[SL.variable]:Vh.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},$L={baseStyle:PL},{defineMultiStyleConfig:OL,definePartsStyle:kd}=at(N7.keys),CL=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:a}=e,o=le(zS(),zS("1rem","rgba(0,0,0,0.1)"))(e),s=le(`${t}.500`,`${t}.200`)(e),l=`linear-gradient( - to right, - transparent 0%, - ${ur(r,s)} 50%, - transparent 100% - )`;return{...!n&&a&&o,...n?{bgImage:l}:{bgColor:s}}},ML={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},TL=e=>({bg:le("gray.100","whiteAlpha.300")(e)}),EL=e=>({transitionProperty:"common",transitionDuration:"slow",...CL(e)}),DL=kd(e=>({label:ML,filledTrack:EL(e),track:TL(e)})),jL={xs:kd({track:{h:"1"}}),sm:kd({track:{h:"2"}}),md:kd({track:{h:"3"}}),lg:kd({track:{h:"4"}})},IL=OL({sizes:jL,baseStyle:DL,defaultProps:{size:"md",colorScheme:"blue"}}),AL=e=>typeof e=="function";function dr(e,...t){return AL(e)?e(...t):e}var{definePartsStyle:jm,defineMultiStyleConfig:FL}=at(C7.keys),Zd=ue("checkbox-size"),RL=e=>{const{colorScheme:t}=e;return{w:Zd.reference,h:Zd.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:le(`${t}.500`,`${t}.200`)(e),borderColor:le(`${t}.500`,`${t}.200`)(e),color:le("white","gray.900")(e),_hover:{bg:le(`${t}.600`,`${t}.300`)(e),borderColor:le(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:le("gray.200","transparent")(e),bg:le("gray.200","whiteAlpha.300")(e),color:le("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:le(`${t}.500`,`${t}.200`)(e),borderColor:le(`${t}.500`,`${t}.200`)(e),color:le("white","gray.900")(e)},_disabled:{bg:le("gray.100","whiteAlpha.100")(e),borderColor:le("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:le("red.500","red.300")(e)}}},kL={_disabled:{cursor:"not-allowed"}},NL={userSelect:"none",_disabled:{opacity:.4}},LL={transitionProperty:"transform",transitionDuration:"normal"},zL=jm(e=>({icon:LL,container:kL,control:dr(RL,e),label:NL})),WL={sm:jm({control:{[Zd.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:jm({control:{[Zd.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:jm({control:{[Zd.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},p0=FL({baseStyle:zL,sizes:WL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:BL,definePartsStyle:Im}=at(L7.keys),VL=e=>{var t;const r=(t=dr(p0.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},HL=Im(e=>{var t,r,n,a;return{label:(r=(t=p0).baseStyle)==null?void 0:r.call(t,e).label,container:(a=(n=p0).baseStyle)==null?void 0:a.call(n,e).container,control:VL(e)}}),YL={md:Im({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Im({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Im({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},UL=BL({baseStyle:HL,sizes:YL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:GL,definePartsStyle:qL}=at(z7.keys),Hh=ue("select-bg"),aP,QL={...(aP=He.baseStyle)==null?void 0:aP.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Hh.reference,[Hh.variable]:"colors.white",_dark:{[Hh.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Hh.reference}},XL={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},KL=qL({field:QL,icon:XL}),Yh={paddingInlineEnd:"8"},iP,oP,sP,lP,uP,cP,dP,fP,ZL={lg:{...(iP=He.sizes)==null?void 0:iP.lg,field:{...(oP=He.sizes)==null?void 0:oP.lg.field,...Yh}},md:{...(sP=He.sizes)==null?void 0:sP.md,field:{...(lP=He.sizes)==null?void 0:lP.md.field,...Yh}},sm:{...(uP=He.sizes)==null?void 0:uP.sm,field:{...(cP=He.sizes)==null?void 0:cP.sm.field,...Yh}},xs:{...(dP=He.sizes)==null?void 0:dP.xs,field:{...(fP=He.sizes)==null?void 0:fP.xs.field,...Yh},icon:{insetEnd:"1"}}},JL=GL({baseStyle:KL,sizes:ZL,variants:He.variants,defaultProps:He.defaultProps}),Xp=ue("skeleton-start-color"),Kp=ue("skeleton-end-color"),ez={[Xp.variable]:"colors.gray.100",[Kp.variable]:"colors.gray.400",_dark:{[Xp.variable]:"colors.gray.800",[Kp.variable]:"colors.gray.600"},background:Xp.reference,borderColor:Kp.reference,opacity:.7,borderRadius:"sm"},tz={baseStyle:ez},Zp=ue("skip-link-bg"),rz={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Zp.variable]:"colors.white",_dark:{[Zp.variable]:"colors.gray.700"},bg:Zp.reference}},nz={baseStyle:rz},{defineMultiStyleConfig:az,definePartsStyle:vv}=at(W7.keys),Df=ue("slider-thumb-size"),jf=ue("slider-track-size"),ro=ue("slider-bg"),iz=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Qy({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},oz=e=>({...Qy({orientation:e.orientation,horizontal:{h:jf.reference},vertical:{w:jf.reference}}),overflow:"hidden",borderRadius:"sm",[ro.variable]:"colors.gray.200",_dark:{[ro.variable]:"colors.whiteAlpha.200"},_disabled:{[ro.variable]:"colors.gray.300",_dark:{[ro.variable]:"colors.whiteAlpha.300"}},bg:ro.reference}),sz=e=>{const{orientation:t}=e;return{...Qy({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:Df.reference,h:Df.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"}}},lz=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ro.variable]:`colors.${t}.500`,_dark:{[ro.variable]:`colors.${t}.200`},bg:ro.reference}},uz=vv(e=>({container:iz(e),track:oz(e),thumb:sz(e),filledTrack:lz(e)})),cz=vv({container:{[Df.variable]:"sizes.4",[jf.variable]:"sizes.1"}}),dz=vv({container:{[Df.variable]:"sizes.3.5",[jf.variable]:"sizes.1"}}),fz=vv({container:{[Df.variable]:"sizes.2.5",[jf.variable]:"sizes.0.5"}}),hz={lg:cz,md:dz,sm:fz},mz=az({baseStyle:uz,sizes:hz,defaultProps:{size:"md",colorScheme:"blue"}}),Ls=Et("spinner-size"),vz={width:[Ls.reference],height:[Ls.reference]},pz={xs:{[Ls.variable]:"sizes.3"},sm:{[Ls.variable]:"sizes.4"},md:{[Ls.variable]:"sizes.6"},lg:{[Ls.variable]:"sizes.8"},xl:{[Ls.variable]:"sizes.12"}},gz={baseStyle:vz,sizes:pz,defaultProps:{size:"md"}},{defineMultiStyleConfig:bz,definePartsStyle:MM}=at(B7.keys),yz={fontWeight:"medium"},_z={opacity:.8,marginBottom:"2"},xz={verticalAlign:"baseline",fontWeight:"semibold"},wz={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Sz=MM({container:{},label:yz,helpText:_z,number:xz,icon:wz}),Pz={md:MM({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},$z=bz({baseStyle:Sz,sizes:Pz,defaultProps:{size:"md"}}),Jp=ue("kbd-bg"),Oz={[Jp.variable]:"colors.gray.100",_dark:{[Jp.variable]:"colors.whiteAlpha.100"},bg:Jp.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},Cz={baseStyle:Oz},Mz={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Tz={baseStyle:Mz},{defineMultiStyleConfig:Ez,definePartsStyle:Dz}=at(I7.keys),jz={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Iz=Dz({icon:jz}),Az=Ez({baseStyle:Iz}),{defineMultiStyleConfig:Fz,definePartsStyle:Rz}=at(A7.keys),Xn=ue("menu-bg"),eg=ue("menu-shadow"),kz={[Xn.variable]:"#fff",[eg.variable]:"shadows.sm",_dark:{[Xn.variable]:"colors.gray.700",[eg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Xn.reference,boxShadow:eg.reference},Nz={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Xn.variable]:"colors.gray.100",_dark:{[Xn.variable]:"colors.whiteAlpha.100"}},_active:{[Xn.variable]:"colors.gray.200",_dark:{[Xn.variable]:"colors.whiteAlpha.200"}},_expanded:{[Xn.variable]:"colors.gray.100",_dark:{[Xn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Xn.reference},Lz={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},zz={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},Wz={opacity:.6},Bz={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Vz={transitionProperty:"common",transitionDuration:"normal"},Hz=Rz({button:Vz,list:kz,item:Nz,groupTitle:Lz,icon:zz,command:Wz,divider:Bz}),Yz=Fz({baseStyle:Hz}),{defineMultiStyleConfig:Uz,definePartsStyle:sb}=at(F7.keys),tg=ue("modal-bg"),rg=ue("modal-shadow"),Gz={bg:"blackAlpha.600",zIndex:"modal"},qz=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},Qz=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[tg.variable]:"colors.white",[rg.variable]:"shadows.lg",_dark:{[tg.variable]:"colors.gray.700",[rg.variable]:"shadows.dark-lg"},bg:tg.reference,boxShadow:rg.reference}},Xz={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Kz={position:"absolute",top:"2",insetEnd:"3"},Zz=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Jz={px:"6",py:"4"},eW=sb(e=>({overlay:Gz,dialogContainer:dr(qz,e),dialog:dr(Qz,e),header:Xz,closeButton:Kz,body:dr(Zz,e),footer:Jz}));function Pn(e){return sb(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var tW={xs:Pn("xs"),sm:Pn("sm"),md:Pn("md"),lg:Pn("lg"),xl:Pn("xl"),"2xl":Pn("2xl"),"3xl":Pn("3xl"),"4xl":Pn("4xl"),"5xl":Pn("5xl"),"6xl":Pn("6xl"),full:Pn("full")},rW=Uz({baseStyle:eW,sizes:tW,defaultProps:{size:"md"}}),{defineMultiStyleConfig:nW,definePartsStyle:TM}=at(R7.keys),Ky=Et("number-input-stepper-width"),EM=Et("number-input-input-padding"),aW=Ra(Ky).add("0.5rem").toString(),ng=Et("number-input-bg"),ag=Et("number-input-color"),ig=Et("number-input-border-color"),iW={[Ky.variable]:"sizes.6",[EM.variable]:aW},oW=e=>{var t,r;return(r=(t=dr(He.baseStyle,e))==null?void 0:t.field)!=null?r:{}},sW={width:Ky.reference},lW={borderStart:"1px solid",borderStartColor:ig.reference,color:ag.reference,bg:ng.reference,[ag.variable]:"colors.chakra-body-text",[ig.variable]:"colors.chakra-border-color",_dark:{[ag.variable]:"colors.whiteAlpha.800",[ig.variable]:"colors.whiteAlpha.300"},_active:{[ng.variable]:"colors.gray.200",_dark:{[ng.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},uW=TM(e=>{var t;return{root:iW,field:(t=dr(oW,e))!=null?t:{},stepperGroup:sW,stepper:lW}});function Uh(e){var t,r,n;const a=(t=He.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=a.field)==null?void 0:r.fontSize)!=null?n:"md",l=SM.fontSizes[s];return TM({field:{...a.field,paddingInlineEnd:EM.reference,verticalAlign:"top"},stepper:{fontSize:Ra(l).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var cW={xs:Uh("xs"),sm:Uh("sm"),md:Uh("md"),lg:Uh("lg")},dW=nW({baseStyle:uW,sizes:cW,variants:He.variants,defaultProps:He.defaultProps}),hP,fW={...(hP=He.baseStyle)==null?void 0:hP.field,textAlign:"center"},hW={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"}},mP,vP,mW={outline:e=>{var t,r,n;return(n=(r=dr((t=He.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=dr((t=He.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=dr((t=He.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(vP=(mP=He.variants)==null?void 0:mP.unstyled.field)!=null?vP:{}},vW={baseStyle:fW,sizes:hW,variants:mW,defaultProps:He.defaultProps},{defineMultiStyleConfig:pW,definePartsStyle:gW}=at(k7.keys),Gh=Et("popper-bg"),bW=Et("popper-arrow-bg"),pP=Et("popper-arrow-shadow-color"),yW={zIndex:10},_W={[Gh.variable]:"colors.white",bg:Gh.reference,[bW.variable]:Gh.reference,[pP.variable]:"colors.gray.200",_dark:{[Gh.variable]:"colors.gray.700",[pP.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},xW={px:3,py:2,borderBottomWidth:"1px"},wW={px:3,py:2},SW={px:3,py:2,borderTopWidth:"1px"},PW={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},$W=gW({popper:yW,content:_W,header:xW,body:wW,footer:SW,closeButton:PW}),OW=pW({baseStyle:$W}),{definePartsStyle:lb,defineMultiStyleConfig:CW}=at(M7.keys),og=ue("drawer-bg"),sg=ue("drawer-box-shadow");function zl(e){return lb(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var MW={bg:"blackAlpha.600",zIndex:"modal"},TW={display:"flex",zIndex:"modal",justifyContent:"center"},EW=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[og.variable]:"colors.white",[sg.variable]:"shadows.lg",_dark:{[og.variable]:"colors.gray.700",[sg.variable]:"shadows.dark-lg"},bg:og.reference,boxShadow:sg.reference}},DW={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},jW={position:"absolute",top:"2",insetEnd:"3"},IW={px:"6",py:"2",flex:"1",overflow:"auto"},AW={px:"6",py:"4"},FW=lb(e=>({overlay:MW,dialogContainer:TW,dialog:dr(EW,e),header:DW,closeButton:jW,body:IW,footer:AW})),RW={xs:zl("xs"),sm:zl("md"),md:zl("lg"),lg:zl("2xl"),xl:zl("4xl"),full:zl("full")},kW=CW({baseStyle:FW,sizes:RW,defaultProps:{size:"xs"}}),{definePartsStyle:NW,defineMultiStyleConfig:LW}=at(T7.keys),zW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},WW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},BW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},VW=NW({preview:zW,input:WW,textarea:BW}),HW=LW({baseStyle:VW}),{definePartsStyle:YW,defineMultiStyleConfig:UW}=at(E7.keys),Mu=ue("form-control-color"),GW={marginStart:"1",[Mu.variable]:"colors.red.500",_dark:{[Mu.variable]:"colors.red.300"},color:Mu.reference},qW={mt:"2",[Mu.variable]:"colors.gray.600",_dark:{[Mu.variable]:"colors.whiteAlpha.600"},color:Mu.reference,lineHeight:"normal",fontSize:"sm"},QW=YW({container:{width:"100%",position:"relative"},requiredIndicator:GW,helperText:qW}),XW=UW({baseStyle:QW}),{definePartsStyle:KW,defineMultiStyleConfig:ZW}=at(D7.keys),Tu=ue("form-error-color"),JW={[Tu.variable]:"colors.red.500",_dark:{[Tu.variable]:"colors.red.300"},color:Tu.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},eB={marginEnd:"0.5em",[Tu.variable]:"colors.red.500",_dark:{[Tu.variable]:"colors.red.300"},color:Tu.reference},tB=KW({text:JW,icon:eB}),rB=ZW({baseStyle:tB}),nB={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},aB={baseStyle:nB},iB={fontFamily:"heading",fontWeight:"bold"},oB={"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}},sB={baseStyle:iB,sizes:oB,defaultProps:{size:"xl"}},{defineMultiStyleConfig:lB,definePartsStyle:uB}=at(O7.keys),lg=ue("breadcrumb-link-decor"),cB={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:lg.reference,[lg.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[lg.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},dB=uB({link:cB}),fB=lB({baseStyle:dB}),hB={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"}}},DM=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:le("gray.800","whiteAlpha.900")(e),_hover:{bg:le("gray.100","whiteAlpha.200")(e)},_active:{bg:le("gray.200","whiteAlpha.300")(e)}};const n=Bu(`${t}.200`,.12)(r),a=Bu(`${t}.200`,.24)(r);return{color:le(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:le(`${t}.50`,n)(e)},_active:{bg:le(`${t}.100`,a)(e)}}},mB=e=>{const{colorScheme:t}=e,r=le("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...dr(DM,e)}},vB={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},pB=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const u=le("gray.100","whiteAlpha.200")(e);return{bg:u,color:le("gray.800","whiteAlpha.900")(e),_hover:{bg:le("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:le("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:a="white",hoverBg:o=`${r}.600`,activeBg:s=`${r}.700`}=(t=vB[r])!=null?t:{},l=le(n,`${r}.200`)(e);return{bg:l,color:le(a,"gray.800")(e),_hover:{bg:le(o,`${r}.300`)(e),_disabled:{bg:l}},_active:{bg:le(s,`${r}.400`)(e)}}},gB=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:le(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:le(`${t}.700`,`${t}.500`)(e)}}},bB={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},yB={ghost:DM,outline:mB,solid:pB,link:gB,unstyled:bB},_B={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"}},xB={baseStyle:hB,variants:yB,sizes:_B,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Xs,defineMultiStyleConfig:wB}=at(G7.keys),g0=ue("card-bg"),Va=ue("card-padding"),jM=ue("card-shadow"),Am=ue("card-radius"),IM=ue("card-border-width","0"),AM=ue("card-border-color"),SB=Xs({container:{[g0.variable]:"colors.chakra-body-bg",backgroundColor:g0.reference,boxShadow:jM.reference,borderRadius:Am.reference,color:"chakra-body-text",borderWidth:IM.reference,borderColor:AM.reference},body:{padding:Va.reference,flex:"1 1 0%"},header:{padding:Va.reference},footer:{padding:Va.reference}}),PB={sm:Xs({container:{[Am.variable]:"radii.base",[Va.variable]:"space.3"}}),md:Xs({container:{[Am.variable]:"radii.md",[Va.variable]:"space.5"}}),lg:Xs({container:{[Am.variable]:"radii.xl",[Va.variable]:"space.7"}})},$B={elevated:Xs({container:{[jM.variable]:"shadows.base",_dark:{[g0.variable]:"colors.gray.700"}}}),outline:Xs({container:{[IM.variable]:"1px",[AM.variable]:"colors.chakra-border-color"}}),filled:Xs({container:{[g0.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Va.variable]:0},header:{[Va.variable]:0},footer:{[Va.variable]:0}}},OB=wB({baseStyle:SB,variants:$B,sizes:PB,defaultProps:{variant:"elevated",size:"md"}}),Jd=Et("close-button-size"),dd=Et("close-button-bg"),CB={w:[Jd.reference],h:[Jd.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[dd.variable]:"colors.blackAlpha.100",_dark:{[dd.variable]:"colors.whiteAlpha.100"}},_active:{[dd.variable]:"colors.blackAlpha.200",_dark:{[dd.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:dd.reference},MB={lg:{[Jd.variable]:"sizes.10",fontSize:"md"},md:{[Jd.variable]:"sizes.8",fontSize:"xs"},sm:{[Jd.variable]:"sizes.6",fontSize:"2xs"}},TB={baseStyle:CB,sizes:MB,defaultProps:{size:"md"}},{variants:EB,defaultProps:DB}=Kd,jB={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:_t.bg.reference,color:_t.color.reference,boxShadow:_t.shadow.reference},IB={baseStyle:jB,variants:EB,defaultProps:DB},AB={w:"100%",mx:"auto",maxW:"prose",px:"4"},FB={baseStyle:AB},RB={opacity:.6,borderColor:"inherit"},kB={borderStyle:"solid"},NB={borderStyle:"dashed"},LB={solid:kB,dashed:NB},zB={baseStyle:RB,variants:LB,defaultProps:{variant:"solid"}},{definePartsStyle:WB,defineMultiStyleConfig:BB}=at(S7.keys),VB={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},HB={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},YB={pt:"2",px:"4",pb:"5"},UB={fontSize:"1.25em"},GB=WB({container:VB,button:HB,panel:YB,icon:UB}),qB=BB({baseStyle:GB}),{definePartsStyle:Zf,defineMultiStyleConfig:QB}=at(P7.keys),Nr=ue("alert-fg"),Ja=ue("alert-bg"),XB=Zf({container:{bg:Ja.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Nr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Nr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Zy(e){const{theme:t,colorScheme:r}=e,n=Bu(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var KB=Zf(e=>{const{colorScheme:t}=e,r=Zy(e);return{container:{[Nr.variable]:`colors.${t}.600`,[Ja.variable]:r.light,_dark:{[Nr.variable]:`colors.${t}.200`,[Ja.variable]:r.dark}}}}),ZB=Zf(e=>{const{colorScheme:t}=e,r=Zy(e);return{container:{[Nr.variable]:`colors.${t}.600`,[Ja.variable]:r.light,_dark:{[Nr.variable]:`colors.${t}.200`,[Ja.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Nr.reference}}}),JB=Zf(e=>{const{colorScheme:t}=e,r=Zy(e);return{container:{[Nr.variable]:`colors.${t}.600`,[Ja.variable]:r.light,_dark:{[Nr.variable]:`colors.${t}.200`,[Ja.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Nr.reference}}}),eV=Zf(e=>{const{colorScheme:t}=e;return{container:{[Nr.variable]:"colors.white",[Ja.variable]:`colors.${t}.600`,_dark:{[Nr.variable]:"colors.gray.900",[Ja.variable]:`colors.${t}.200`},color:Nr.reference}}}),tV={subtle:KB,"left-accent":ZB,"top-accent":JB,solid:eV},rV=QB({baseStyle:XB,variants:tV,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:FM,defineMultiStyleConfig:nV}=at($7.keys),Eu=ue("avatar-border-color"),ef=ue("avatar-bg"),If=ue("avatar-font-size"),Vu=ue("avatar-size"),aV={borderRadius:"full",border:"0.2em solid",borderColor:Eu.reference,[Eu.variable]:"white",_dark:{[Eu.variable]:"colors.gray.800"}},iV={bg:ef.reference,fontSize:If.reference,width:Vu.reference,height:Vu.reference,lineHeight:"1",[ef.variable]:"colors.gray.200",_dark:{[ef.variable]:"colors.whiteAlpha.400"}},oV=e=>{const{name:t,theme:r}=e,n=t?hN({string:t}):"colors.gray.400",a=dN(n)(r);let o="white";return a||(o="gray.800"),{bg:ef.reference,fontSize:If.reference,color:o,borderColor:Eu.reference,verticalAlign:"top",width:Vu.reference,height:Vu.reference,"&:not([data-loaded])":{[ef.variable]:n},[Eu.variable]:"colors.white",_dark:{[Eu.variable]:"colors.gray.800"}}},sV={fontSize:If.reference,lineHeight:"1"},lV=FM(e=>({badge:dr(aV,e),excessLabel:dr(iV,e),container:dr(oV,e),label:sV}));function Vi(e){const t=e!=="100%"?$M[e]:void 0;return FM({container:{[Vu.variable]:t??e,[If.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Vu.variable]:t??e,[If.variable]:`calc(${t??e} / 2.5)`}})}var uV={"2xs":Vi(4),xs:Vi(6),sm:Vi(8),md:Vi(12),lg:Vi(16),xl:Vi(24),"2xl":Vi(32),full:Vi("100%")},cV=nV({baseStyle:lV,sizes:uV,defaultProps:{size:"md"}}),dV={Accordion:qB,Alert:rV,Avatar:cV,Badge:Kd,Breadcrumb:fB,Button:xB,Checkbox:p0,CloseButton:TB,Code:IB,Container:FB,Divider:zB,Drawer:kW,Editable:HW,Form:XW,FormError:rB,FormLabel:aB,Heading:sB,Input:He,Kbd:Cz,Link:Tz,List:Az,Menu:Yz,Modal:rW,NumberInput:dW,PinInput:vW,Popover:OW,Progress:IL,Radio:UL,Select:JL,Skeleton:tz,SkipLink:nz,Slider:mz,Spinner:gz,Stat:$z,Switch:TN,Table:RN,Tabs:KN,Tag:cL,Textarea:wL,Tooltip:$L,Card:OB,Stepper:w7},fV={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},hV={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"}}},mV="ltr",vV={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},RM={semanticTokens:fV,direction:mV,...y7,components:dV,styles:hV,config:vV};function pV(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var gV=pV();function bV(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function yV(e,t,r,n){const a=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,a,o,s)=>{if(typeof n>"u")return e(n,a,o);t.has(n)||t.set(n,new Map);const l=t.get(n);if(l.has(a))return l.get(a);const u=e(n,a,o,s);return l.set(a,u),u}},kM=_V(yV);function NM(e,t){const r={};return Object.keys(e).forEach(n=>{const a=e[n];t(a,n,e)&&(r[n]=a)}),r}var LM=e=>NM(e,t=>t!=null);function xV(e){return typeof e=="function"}function zM(e,...t){return xV(e)?e(...t):e}function wV(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var SV=typeof Element<"u",PV=typeof Map=="function",$V=typeof Set=="function",OV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Fm(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Fm(e[n],t[n]))return!1;return!0}var o;if(PV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!Fm(n.value[1],t.get(n.value[0])))return!1;return!0}if($V&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(OV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;if(SV&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!Fm(e[a[n]],t[a[n]]))return!1;return!0}return e!==e&&t!==t}var CV=function(t,r){try{return Fm(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const MV=zb(CV);function WM(e,t={}){var r;const{styleConfig:n,...a}=t,{theme:o,colorMode:s}=TR(),l=e?kM(o,`components.${e}`):void 0,u=n||l,c=ta({theme:o,colorMode:s},(r=u==null?void 0:u.defaultProps)!=null?r:{},LM(bV(a,["children"]))),d=S.useRef({});if(u){const m=Qk(u)(c);MV(d.current,m)||(d.current=m)}return d.current}function ri(e,t={}){return WM(e,t)}function Mo(e,t={}){return WM(e,t)}var TV=new Set([...kk,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),EV=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function DV(e){return EV.has(e)||!TV.has(e)}function jV(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a in r&&delete r[a],r[a]=n[a]);return r}function Jy(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var IV=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,AV=KC(function(e){return IV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FV=AV,RV=function(t){return t!=="theme"},gP=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?FV:RV},bP=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},kV=!1,NV=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return nM(r,n,a),cR(function(){return aM(r,n,a)}),null},LV=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var l=bP(t,r,n),u=l||gP(a),c=!u("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var m=d.length,g=1;gt=>{const{theme:r,css:n,__css:a,sx:o,...s}=t,l=NM(s,(f,m)=>Lk(m)),u=zM(e,t),c=jV({},a,u,LM(l),o),d=wM(c)(t.theme);return n?[d,n]:d};function ug(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=DV);const a=BV({baseStyle:r}),o=WV(e,n)(a);return on.forwardRef(function(u,c){const{colorMode:d,forced:f}=dv();return on.createElement(o,{ref:c,"data-theme":f?d:void 0,...u})})}function VV(){const e=new Map;return new Proxy(ug,{apply(t,r,n){return ug(...n)},get(t,r){return e.has(r)||e.set(r,ug(r)),e.get(r)}})}var fe=VV();function he(e){return S.forwardRef(e)}function HV(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,a=S.createContext(void 0);a.displayName=n;function o(){var s;const l=S.useContext(a);if(!l&&t){const u=new Error(r);throw u.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,u,o),u}return l}return[a.Provider,o,a]}function YV(e){const{cssVarsRoot:t,theme:r,children:n}=e,a=S.useMemo(()=>Ak(r),[r]);return w.jsxs(hR,{theme:a,children:[w.jsx(UV,{root:t}),n]})}function UV({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w.jsx(cv,{styles:r=>({[t]:r.__cssVars})})}HV({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function GV(){const{colorMode:e}=dv();return w.jsx(cv,{styles:t=>{const r=kM(t,"styles.global"),n=zM(r,{theme:t,colorMode:e});return n?wM(n)(t):void 0}})}var BM=S.createContext({getDocument(){return document},getWindow(){return window}});BM.displayName="EnvironmentContext";function VM(e){const{children:t,environment:r,disabled:n}=e,a=S.useRef(null),o=S.useMemo(()=>r||{getDocument:()=>{var l,u;return(u=(l=a.current)==null?void 0:l.ownerDocument)!=null?u:document},getWindow:()=>{var l,u;return(u=(l=a.current)==null?void 0:l.ownerDocument.defaultView)!=null?u:window}},[r]),s=!n||!r;return w.jsxs(BM.Provider,{value:o,children:[t,s&&w.jsx("span",{id:"__chakra_env",hidden:!0,ref:a})]})}VM.displayName="EnvironmentProvider";var qV=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:a,resetCSS:o=!0,theme:s={},environment:l,cssVarsRoot:u,disableEnvironment:c,disableGlobalStyle:d}=e,f=w.jsx(VM,{environment:l,disabled:c,children:t});return w.jsx(YV,{theme:s,cssVarsRoot:u,children:w.jsxs(vM,{colorModeManager:r,options:s.config,children:[o?w.jsx(pR,{scope:a}):w.jsx(vR,{}),!d&&w.jsx(GV,{}),n?w.jsx(fM,{zIndex:n,children:f}):f]})})},QV=(e,t)=>e.find(r=>r.id===t);function _P(e,t){const r=HM(e,t),n=r?e[r].findIndex(a=>a.id===t):-1;return{position:r,index:n}}function HM(e,t){for(const[r,n]of Object.entries(e))if(QV(n,t))return r}function XV(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function KV(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,a=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:a,right:o,left:s}}function ZV(e,t=[]){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useCallback((...n)=>{var a;return(a=r.current)==null?void 0:a.call(r,...n)},t)}function JV(e,t){const r=ZV(e);S.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function xP(e,t){const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const e_=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),pv=S.createContext({}),Jf=S.createContext(null),t_=typeof document<"u",r_=t_?S.useLayoutEffect:S.useEffect,YM=S.createContext({strict:!1}),gv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eH="framerAppearId",UM="data-"+gv(eH),tH={skipAnimations:!1,useManualTiming:!1};function rH(e){let t=new Set,r=new Set,n=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(s)}const u={schedule:(c,d=!1,f=!1)=>{const g=f&&n?t:r;return d&&o.add(c),g.has(c)||g.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(s=c,n){a=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(l),n=!1,a&&(a=!1,u.process(c))}};return u}const qh=["read","resolveKeyframes","update","preRender","render","postRender"],nH=40;function GM(e,t){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,s=qh.reduce((b,y)=>(b[y]=rH(o),b),{}),{read:l,resolveKeyframes:u,update:c,preRender:d,render:f,postRender:m}=s,g=()=>{const b=performance.now();r=!1,a.delta=n?1e3/60:Math.max(Math.min(b-a.timestamp,nH),1),a.timestamp=b,a.isProcessing=!0,l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),m.process(a),a.isProcessing=!1,r&&t&&(n=!1,e(g))},x=()=>{r=!0,n=!0,a.isProcessing||e(g)};return{schedule:qh.reduce((b,y)=>{const P=s[y];return b[y]=(M,A=!1,F=!1)=>(r||x(),P.schedule(M,A,F)),b},{}),cancel:b=>{for(let y=0;y{d&&d.update(r,l)});const m=S.useRef(!!(r[UM]&&!window.HandoffComplete));return r_(()=>{d&&(d.updateFeatures(),n_.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(m.current=!1,wP||(wP=!0,queueMicrotask(iH))))}),d}function iH(){window.HandoffComplete=!0}function oH(e,t,r,n){const{layoutId:a,layout:o,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:QM(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!s||l&&vu(l),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,layoutScroll:u,layoutRoot:c})}function QM(e){if(e)return e.options.allowProjection!==!1?e.projection:QM(e.parent)}function sH(e,t,r){return S.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):vu(r)&&(r.current=n))},[t])}function Af(e){return typeof e=="string"||Array.isArray(e)}function Ff(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const a_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i_=["initial",...a_];function bv(e){return Ff(e.animate)||i_.some(t=>Af(e[t]))}function XM(e){return!!(bv(e)||e.variants)}function lH(e,t){if(bv(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Af(r)?r:void 0,animate:Af(n)?n:void 0}}return e.inherit!==!1?t:{}}function uH(e){const{initial:t,animate:r}=lH(e,S.useContext(pv));return S.useMemo(()=>({initial:t,animate:r}),[SP(t),SP(r)])}function SP(e){return Array.isArray(e)?e.join(" "):e}const PP={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hu={};for(const e in PP)Hu[e]={isEnabled:t=>PP[e].some(r=>!!t[r])};function cH(e){for(const t in e)Hu[t]={...Hu[t],...e[t]}}const o_=S.createContext({}),dH=Symbol.for("motionComponentSymbol"),rr=e=>e;let ub=rr;function fH({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:a}){e&&cH(e);function o(l,u){let c;const d={...S.useContext(e_),...l,layoutId:hH(l)},{isStatic:f}=d,m=uH(l),g=n(l,f);if(!f&&t_){mH();const x=vH(d);c=x.MeasureLayout,m.visualElement=aH(a,g,d,t,x.ProjectionNode)}return w.jsxs(pv.Provider,{value:m,children:[c&&m.visualElement?w.jsx(c,{visualElement:m.visualElement,...d}):null,r(a,l,sH(g,m.visualElement,u),g,f,m.visualElement)]})}const s=S.forwardRef(o);return s[dH]=a,s}function hH({layoutId:e}){const t=S.useContext(o_).id;return t&&e!==void 0?t+"-"+e:e}function mH(e,t){S.useContext(YM).strict}function vH(e){const{drag:t,layout:r}=Hu;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function pH(e){function t(n,a={}){return fH(e(n,a))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,a)=>(r.has(a)||r.set(a,t(a)),r.get(a))})}const gH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s_(e){return typeof e!="string"||e.includes("-")?!1:!!(gH.indexOf(e)>-1||/[A-Z]/u.test(e))}const y0={};function bH(e){Object.assign(y0,e)}const eh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],To=new Set(eh);function KM(e,{layout:t,layoutId:r}){return To.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!y0[e]||e==="opacity")}const er=e=>!!(e&&e.getVelocity),yH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_H=eh.length;function xH(e,t,r){let n="";for(let a=0;a<_H;a++){const o=eh[a];if(e[o]!==void 0){const s=yH[o]||o;n+=`${s}(${e[o]}) `}}return n=n.trim(),r?n=r(e,t?"":n):t&&(n="none"),n}const ZM=e=>t=>typeof t=="string"&&t.startsWith(e),JM=ZM("--"),wH=ZM("var(--"),l_=e=>wH(e)?SH.test(e.split("/*")[0].trim()):!1,SH=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,PH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,So=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},tf={...Ku,transform:e=>So(0,1,e)},Qh={...Ku,default:1},rf=e=>Math.round(e*1e5)/1e5,u_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,$H=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,OH=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function th(e){return typeof e=="string"}function CH(e){return e==null}const rh=e=>({test:t=>th(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qi=rh("deg"),oa=rh("%"),de=rh("px"),MH=rh("vh"),TH=rh("vw"),$P={...oa,parse:e=>oa.parse(e)/100,transform:e=>oa.transform(e*100)},OP={...Ku,transform:Math.round},eT={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,size:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,rotate:Qi,rotateX:Qi,rotateY:Qi,rotateZ:Qi,scale:Qh,scaleX:Qh,scaleY:Qh,scaleZ:Qh,skew:Qi,skewX:Qi,skewY:Qi,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:tf,originX:$P,originY:$P,originZ:de,zIndex:OP,backgroundPositionX:de,backgroundPositionY:de,fillOpacity:tf,strokeOpacity:tf,numOctaves:OP};function c_(e,t,r){const{style:n,vars:a,transform:o,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(JM(d)){a[d]=f;continue}const m=eT[d],g=PH(f,m);if(To.has(d)){if(l=!0,o[d]=g,!c)continue;f!==(m.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=g):n[d]=g}if(t.transform||(l||r?n.transform=xH(e.transform,c,r):n.transform&&(n.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:m=0}=s;n.transformOrigin=`${d} ${f} ${m}`}}const d_=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tT(e,t,r){for(const n in t)!er(t[n])&&!KM(n,r)&&(e[n]=t[n])}function EH({transformTemplate:e},t){return S.useMemo(()=>{const r=d_();return c_(r,t,e),Object.assign({},r.vars,r.style)},[t])}function DH(e,t){const r=e.style||{},n={};return tT(n,r,e),Object.assign(n,EH(e,t)),n}function jH(e,t){const r={},n=DH(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const IH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||IH.has(e)}let rT=e=>!_0(e);function AH(e){e&&(rT=t=>t.startsWith("on")?!_0(t):e(t))}try{AH(require("@emotion/is-prop-valid").default)}catch{}function FH(e,t,r){const n={};for(const a in e)a==="values"&&typeof e.values=="object"||(rT(a)||r===!0&&_0(a)||!t&&!_0(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}function CP(e,t,r){return typeof e=="string"?e:de.transform(t+r*e)}function RH(e,t,r){const n=CP(t,e.x,e.width),a=CP(r,e.y,e.height);return`${n} ${a}`}const kH={offset:"stroke-dashoffset",array:"stroke-dasharray"},NH={offset:"strokeDashoffset",array:"strokeDasharray"};function LH(e,t,r=1,n=0,a=!0){e.pathLength=1;const o=a?kH:NH;e[o.offset]=de.transform(-n);const s=de.transform(t),l=de.transform(r);e[o.array]=`${s} ${l}`}function f_(e,{attrX:t,attrY:r,attrScale:n,originX:a,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...c},d,f){if(c_(e,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:x}=e;m.transform&&(x&&(g.transform=m.transform),delete m.transform),x&&(a!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=RH(x,a!==void 0?a:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),r!==void 0&&(m.y=r),n!==void 0&&(m.scale=n),s!==void 0&&LH(m,s,l,u,!1)}const nT=()=>({...d_(),attrs:{}}),h_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zH(e,t,r,n){const a=S.useMemo(()=>{const o=nT();return f_(o,t,h_(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};tT(o,e.style,e),a.style={...o,...a.style}}return a}function WH(e=!1){return(r,n,a,{latestValues:o},s)=>{const u=(s_(r)?zH:jH)(n,o,s,r),c=FH(n,typeof r=="string",e),d=r!==S.Fragment?{...c,...u,ref:a}:{},{children:f}=n,m=S.useMemo(()=>er(f)?f.get():f,[f]);return S.createElement(r,{...d,children:m})}}function aT(e,{style:t,vars:r},n,a){Object.assign(e.style,t,a&&a.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const iT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function oT(e,t,r,n){aT(e,t,void 0,n);for(const a in t.attrs)e.setAttribute(iT.has(a)?a:gv(a),t.attrs[a])}function m_(e,t,r){var n;const{style:a}=e,o={};for(const s in a)(er(a[s])||t.style&&er(t.style[s])||KM(s,e)||((n=r==null?void 0:r.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(o[s]=a[s]);return r&&a&&typeof a.willChange=="string"&&(r.applyWillChange=!1),o}function sT(e,t,r){const n=m_(e,t,r);for(const a in e)if(er(e[a])||er(t[a])){const o=eh.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[o]=e[a]}return n}function MP(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function v_(e,t,r,n){if(typeof t=="function"){const[a,o]=MP(n);t=t(r!==void 0?r:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,o]=MP(n);t=t(r!==void 0?r:e.custom,a,o)}return t}function lT(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const cb=e=>Array.isArray(e),BH=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),VH=e=>cb(e)?e[e.length-1]||0:e;function Rm(e){const t=er(e)?e.get():e;return BH(t)?t.toValue():t}const uT=new Set(["opacity","clipPath","filter","transform"]);function cT(e){if(To.has(e))return"transform";if(uT.has(e))return gv(e)}function yv(e,t){e.indexOf(t)===-1&&e.push(t)}function _v(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function HH({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},a,o,s,l){const u={latestValues:UH(a,o,s,l?!1:e,t),renderState:r()};return n&&(u.mount=c=>n(a,c,u)),u}const dT=e=>(t,r)=>{const n=S.useContext(pv),a=S.useContext(Jf),o=()=>HH(e,t,n,a,r);return r?o():lT(o)};function YH(e,t){const r=cT(t);r&&yv(e,r)}function TP(e,t,r){const n=Array.isArray(t)?t:[t];for(let a=0;a{for(const y in $){let P=$[y];if(Array.isArray(P)){const M=x?P.length-1:0;P=P[M]}P!==null&&(s[y]=P)}for(const y in b)s[y]=b[y]}),u&&(f&&d!==!1&&!Ff(f)&&TP(e,f,$=>{for(const b in $)YH(l,b)}),l.length&&(s.willChange=l.join(","))),s}const{schedule:Xe,cancel:ei,state:Vt,steps:cg}=GM(typeof requestAnimationFrame<"u"?requestAnimationFrame:rr,!0),GH={useVisualState:dT({scrapeMotionValuesFromProps:sT,createRenderState:nT,onMount:(e,t,{renderState:r,latestValues:n})=>{Xe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Xe.render(()=>{f_(r,n,h_(t.tagName),e.transformTemplate),oT(t,r)})}})},qH={useVisualState:dT({applyWillChange:!0,scrapeMotionValuesFromProps:m_,createRenderState:d_})};function QH(e,{forwardMotionProps:t=!1},r,n){return{...s_(e)?GH:qH,preloadedFeatures:r,useRender:WH(t),createVisualElement:n,Component:e}}function za(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const fT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function xv(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const XH=e=>t=>fT(t)&&e(t,xv(t));function Ha(e,t,r,n){return za(e,t,XH(r),n)}const KH=(e,t)=>r=>t(e(r)),Ya=(...e)=>e.reduce(KH);function hT(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const EP=hT("dragHorizontal"),DP=hT("dragVertical");function mT(e){let t=!1;if(e==="y")t=DP();else if(e==="x")t=EP();else{const r=EP(),n=DP();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function vT(){const e=mT(!0);return e?(e(),!1):!0}class Eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function jP(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",a=(o,s)=>{if(o.pointerType==="touch"||vT())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t);const u=l[n];u&&Xe.postRender(()=>u(o,s))};return Ha(e.current,r,a,{passive:!e.getProps()[n]})}class ZH extends Eo{mount(){this.unmount=Ya(jP(this.node,!0),jP(this.node,!1))}unmount(){}}class JH extends Eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ya(za(this.node.current,"focus",()=>this.onFocus()),za(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const pT=(e,t)=>t?e===t?!0:pT(e,t.parentElement):!1;function dg(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,xv(r))}class eY extends Eo{constructor(){super(...arguments),this.removeStartListeners=rr,this.removeEndListeners=rr,this.removeAccessibleListeners=rr,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=Ha(window,"pointerup",(l,u)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:f}=this.node.getProps(),m=!f&&!pT(this.node.current,l.target)?d:c;m&&Xe.update(()=>m(l,u))},{passive:!(n.onTap||n.onPointerUp)}),s=Ha(window,"pointercancel",(l,u)=>this.cancelPress(l,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ya(o,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||dg("up",(u,c)=>{const{onTap:d}=this.node.getProps();d&&Xe.postRender(()=>d(u,c))})};this.removeEndListeners(),this.removeEndListeners=za(this.node.current,"keyup",s),dg("down",(l,u)=>{this.startPress(l,u)})},r=za(this.node.current,"keydown",t),n=()=>{this.isPressing&&dg("cancel",(o,s)=>this.cancelPress(o,s))},a=za(this.node.current,"blur",n);this.removeAccessibleListeners=Ya(r,a)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Xe.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!vT()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Xe.postRender(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Ha(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=za(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ya(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const db=new WeakMap,fg=new WeakMap,tY=e=>{const t=db.get(e.target);t&&t(e)},rY=e=>{e.forEach(tY)};function nY({root:e,...t}){const r=e||document;fg.has(r)||fg.set(r,{});const n=fg.get(r),a=JSON.stringify(t);return n[a]||(n[a]=new IntersectionObserver(rY,{root:e,...t})),n[a]}function aY(e,t,r){const n=nY(t);return db.set(e,r),n.observe(e),()=>{db.delete(e),n.unobserve(e)}}const iY={some:0,all:1};class oY extends Eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:o}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:iY[a]},l=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=c?d:f;m&&m(u)};return aY(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(sY(t,r))&&this.startObserver()}unmount(){}}function sY({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const lY={inView:{Feature:oY},tap:{Feature:eY},focus:{Feature:JH},hover:{Feature:ZH}};function gT(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;ne*1e3,Ua=e=>e/1e3,uY={type:"spring",stiffness:500,damping:25,restSpeed:10},cY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dY={type:"keyframes",duration:.8},fY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hY=(e,{keyframes:t})=>t.length>2?dY:To.has(e)?e.startsWith("scale")?cY(t[1]):uY:fY;function mY({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:o,repeatType:s,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length}function p_(e,t){return e[t]||e.default||e}const vY=e=>e!==null;function Sv(e,{repeat:t,repeatType:r="loop"},n){const a=e.filter(vY),o=t&&r!=="loop"&&t%2===1?0:a.length-1;return!o||n===void 0?a[o]:n}let km;function pY(){km=void 0}const bo={now:()=>(km===void 0&&bo.set(Vt.isProcessing||tH.useManualTiming?Vt.timestamp:performance.now()),km),set:e=>{km=e,queueMicrotask(pY)}},bT=e=>/^0[^.\s]+$/u.test(e);function gY(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bT(e):!0}const yT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),bY=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yY(e){const t=bY.exec(e);if(!t)return[,];const[,r,n,a]=t;return[`--${r??n}`,a]}function _T(e,t,r=1){const[n,a]=yY(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const s=o.trim();return yT(s)?parseFloat(s):s}return l_(a)?_T(a,t,r+1):a}const _Y=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),IP=e=>e===Ku||e===de,AP=(e,t)=>parseFloat(e.split(", ")[t]),FP=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const a=n.match(/^matrix3d\((.+)\)$/u);if(a)return AP(a[1],t);{const o=n.match(/^matrix\((.+)\)$/u);return o?AP(o[1],e):0}},xY=new Set(["x","y","z"]),wY=eh.filter(e=>!xY.has(e));function SY(e){const t=[];return wY.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Yu={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:FP(4,13),y:FP(5,14)};Yu.translateX=Yu.x;Yu.translateY=Yu.y;const xT=e=>t=>t.test(e),PY={test:e=>e==="auto",parse:e=>e},wT=[Ku,de,oa,Qi,TH,MH,PY],RP=e=>wT.find(xT(e)),Ks=new Set;let fb=!1,hb=!1;function ST(){if(hb){const e=Array.from(Ks).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const a=SY(n);a.length&&(r.set(n,a),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const a=r.get(n);a&&a.forEach(([o,s])=>{var l;(l=n.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}hb=!1,fb=!1,Ks.forEach(e=>e.complete()),Ks.clear()}function PT(){Ks.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hb=!0)})}function $Y(){PT(),ST()}class g_{constructor(t,r,n,a,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=a,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ks.add(this),fb||(fb=!0,Xe.read(PT),Xe.resolveKeyframes(ST))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:a}=this;for(let o=0;or=>!!(th(r)&&OH.test(r)&&r.startsWith(e)||t&&!CH(r)&&Object.prototype.hasOwnProperty.call(r,t)),$T=(e,t,r)=>n=>{if(!th(n))return n;const[a,o,s,l]=n.match(u_);return{[e]:parseFloat(a),[t]:parseFloat(o),[r]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},OY=e=>So(0,255,e),hg={...Ku,transform:e=>Math.round(OY(e))},Hs={test:b_("rgb","red"),parse:$T("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+hg.transform(e)+", "+hg.transform(t)+", "+hg.transform(r)+", "+rf(tf.transform(n))+")"};function CY(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}const mb={test:b_("#"),parse:CY,transform:Hs.transform},pu={test:b_("hsl","hue"),parse:$T("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+oa.transform(rf(t))+", "+oa.transform(rf(r))+", "+rf(tf.transform(n))+")"},Zt={test:e=>Hs.test(e)||mb.test(e)||pu.test(e),parse:e=>Hs.test(e)?Hs.parse(e):pu.test(e)?pu.parse(e):mb.parse(e),transform:e=>th(e)?e:e.hasOwnProperty("red")?Hs.transform(e):pu.transform(e)};function MY(e){var t,r;return isNaN(e)&&th(e)&&(((t=e.match(u_))===null||t===void 0?void 0:t.length)||0)+(((r=e.match($H))===null||r===void 0?void 0:r.length)||0)>0}const OT="number",CT="color",TY="var",EY="var(",kP="${}",DY=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Rf(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},a=[];let o=0;const l=t.replace(DY,u=>(Zt.test(u)?(n.color.push(o),a.push(CT),r.push(Zt.parse(u))):u.startsWith(EY)?(n.var.push(o),a.push(TY),r.push(u)):(n.number.push(o),a.push(OT),r.push(parseFloat(u))),++o,kP)).split(kP);return{values:r,split:l,indexes:n,types:a}}function MT(e){return Rf(e).values}function TT(e){const{split:t,types:r}=Rf(e),n=t.length;return a=>{let o="";for(let s=0;stypeof e=="number"?0:e;function IY(e){const t=MT(e);return TT(e)(t.map(jY))}const Po={test:MY,parse:MT,createTransformer:TT,getAnimatableNone:IY},AY=new Set(["brightness","contrast","saturate","opacity"]);function FY(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(u_)||[];if(!n)return e;const a=r.replace(n,"");let o=AY.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+a+")"}const RY=/\b([a-z-]*)\(.*?\)/gu,vb={...Po,getAnimatableNone:e=>{const t=e.match(RY);return t?t.map(FY).join(" "):e}},kY={...eT,color:Zt,backgroundColor:Zt,outlineColor:Zt,fill:Zt,stroke:Zt,borderColor:Zt,borderTopColor:Zt,borderRightColor:Zt,borderBottomColor:Zt,borderLeftColor:Zt,filter:vb,WebkitFilter:vb},y_=e=>kY[e];function ET(e,t){let r=y_(e);return r!==vb&&(r=Po),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const NY=new Set(["auto","none","0"]);function LY(e,t,r){let n=0,a;for(;n{r.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function jT(e){let t;return()=>(t===void 0&&(t=e()),t)}const NP=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Po.test(e)||e==="0")&&!e.startsWith("url("));function zY(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r{this.resolveFinishedPromise=t})}}function AT(e,t){return t?e*(1e3/t):0}const BY=5;function FT(e,t,r){const n=Math.max(t-BY,0);return AT(r-e(n),t-n)}const mg=.001,VY=.01,HY=10,YY=.05,UY=1;function GY({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let a,o,s=1-t;s=So(YY,UY,s),e=So(VY,HY,Ua(e)),s<1?(a=c=>{const d=c*s,f=d*e,m=d-r,g=pb(c,s),x=Math.exp(-f);return mg-m/g*x},o=c=>{const f=c*s*e,m=f*r+r,g=Math.pow(s,2)*Math.pow(c,2)*e,x=Math.exp(-f),p=pb(Math.pow(c,2),s);return(-a(c)+mg>0?-1:1)*((m-g)*x)/p}):(a=c=>{const d=Math.exp(-c*e),f=(c-r)*e+1;return-mg+d*f},o=c=>{const d=Math.exp(-c*e),f=(r-c)*(e*e);return d*f});const l=5/e,u=QY(a,o,l);if(e=go(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(u,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const qY=12;function QY(e,t,r){let n=r;for(let a=1;ae[r]!==void 0)}function ZY(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!LP(e,KY)&&LP(e,XY)){const r=GY(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function RT({keyframes:e,restDelta:t,restSpeed:r,...n}){const a=e[0],o=e[e.length-1],s={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:m}=ZY({...n,velocity:-Ua(n.velocity||0)}),g=f||0,x=u/(2*Math.sqrt(l*c)),p=o-a,$=Ua(Math.sqrt(l/c)),b=Math.abs(p)<5;r||(r=b?.01:2),t||(t=b?.005:.5);let y;if(x<1){const P=pb($,x);y=M=>{const A=Math.exp(-x*$*M);return o-A*((g+x*$*p)/P*Math.sin(P*M)+p*Math.cos(P*M))}}else if(x===1)y=P=>o-Math.exp(-$*P)*(p+(g+$*p)*P);else{const P=$*Math.sqrt(x*x-1);y=M=>{const A=Math.exp(-x*$*M),F=Math.min(P*M,300);return o-A*((g+x*$*p)*Math.sinh(F)+P*p*Math.cosh(F))/P}}return{calculatedDuration:m&&d||null,next:P=>{const M=y(P);if(m)s.done=P>=d;else{let A=g;P!==0&&(x<1?A=FT(y,P,M):A=0);const F=Math.abs(A)<=r,L=Math.abs(o-M)<=t;s.done=F&&L}return s.value=s.done?o:M,s}}}function zP({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},g=z=>l!==void 0&&zu,x=z=>l===void 0?u:u===void 0||Math.abs(l-z)-p*Math.exp(-z/n),P=z=>b+y(z),M=z=>{const q=y(z),Q=P(z);m.done=Math.abs(q)<=c,m.value=m.done?b:Q};let A,F;const L=z=>{g(m.value)&&(A=z,F=RT({keyframes:[m.value,x(m.value)],velocity:FT(P,z,m.value),damping:a,stiffness:o,restDelta:c,restSpeed:d}))};return L(0),{calculatedDuration:null,next:z=>{let q=!1;return!F&&A===void 0&&(q=!0,M(z),L(z)),A!==void 0&&z>=A?F.next(z-A):(!q&&M(z),m)}}}const kT=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,JY=1e-7,eU=12;function tU(e,t,r,n,a){let o,s,l=0;do s=t+(r-t)/2,o=kT(s,n,a)-e,o>0?r=s:t=s;while(Math.abs(o)>JY&&++ltU(o,0,1,e,r);return o=>o===0||o===1?o:kT(a(o),t,n)}const rU=nh(.42,0,1,1),nU=nh(0,0,.58,1),NT=nh(.42,0,.58,1),aU=e=>Array.isArray(e)&&typeof e[0]!="number",LT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zT=e=>t=>1-e(1-t),__=e=>1-Math.sin(Math.acos(e)),WT=zT(__),iU=LT(__),BT=nh(.33,1.53,.69,.99),x_=zT(BT),oU=LT(x_),sU=e=>(e*=2)<1?.5*x_(e):.5*(2-Math.pow(2,-10*(e-1))),WP={linear:rr,easeIn:rU,easeInOut:NT,easeOut:nU,circIn:__,circInOut:iU,circOut:WT,backIn:x_,backInOut:oU,backOut:BT,anticipate:sU},BP=e=>{if(Array.isArray(e)){ub(e.length===4);const[t,r,n,a]=e;return nh(t,r,n,a)}else if(typeof e=="string")return ub(WP[e]!==void 0),WP[e];return e},kf=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},dt=(e,t,r)=>e+(t-e)*r;function vg(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function lU({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let a=0,o=0,s=0;if(!t)a=o=s=r;else{const l=r<.5?r*(1+t):r+t-r*t,u=2*r-l;a=vg(u,l,e+1/3),o=vg(u,l,e),s=vg(u,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}function x0(e,t){return r=>r>0?t:e}const pg=(e,t,r)=>{const n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},uU=[mb,Hs,pu],cU=e=>uU.find(t=>t.test(e));function VP(e){const t=cU(e);if(!t)return!1;let r=t.parse(e);return t===pu&&(r=lU(r)),r}const HP=(e,t)=>{const r=VP(e),n=VP(t);if(!r||!n)return x0(e,t);const a={...r};return o=>(a.red=pg(r.red,n.red,o),a.green=pg(r.green,n.green,o),a.blue=pg(r.blue,n.blue,o),a.alpha=dt(r.alpha,n.alpha,o),Hs.transform(a))},gb=new Set(["none","hidden"]);function dU(e,t){return gb.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function fU(e,t){return r=>dt(e,t,r)}function w_(e){return typeof e=="number"?fU:typeof e=="string"?l_(e)?x0:Zt.test(e)?HP:vU:Array.isArray(e)?VT:typeof e=="object"?Zt.test(e)?HP:hU:x0}function VT(e,t){const r=[...e],n=r.length,a=e.map((o,s)=>w_(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in n)r[o]=n[o](a);return r}}function mU(e,t){var r;const n=[],a={color:0,var:0,number:0};for(let o=0;o{const r=Po.createTransformer(t),n=Rf(e),a=Rf(t);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?gb.has(e)&&!a.values.length||gb.has(t)&&!n.values.length?dU(e,t):Ya(VT(mU(n,a),a.values),r):x0(e,t)};function HT(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?dt(e,t,r):w_(e)(e,t)}function pU(e,t,r){const n=[],a=r||HT,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=pU(t,n,a),l=s.length,u=c=>{let d=0;if(l>1)for(;du(So(e[0],e[o-1],c)):u}function bU(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const a=kf(0,t,n);e.push(dt(r,1,a))}}function yU(e){const t=[0];return bU(t,e.length-1),t}function _U(e,t){return e.map(r=>r*t)}function xU(e,t){return e.map(()=>t||NT).splice(0,e.length-1)}function w0({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const a=aU(n)?n.map(BP):BP(n),o={done:!1,value:t[0]},s=_U(r&&r.length===t.length?r:yU(t),e),l=gU(s,t,{ease:Array.isArray(a)?a:xU(t,a)});return{calculatedDuration:e,next:u=>(o.value=l(u),o.done=u>=e,o)}}const YP=2e4;function wU(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=YP?1/0:t}const SU=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Xe.update(t,!0),stop:()=>ei(t),now:()=>Vt.isProcessing?Vt.timestamp:bo.now()}},PU={decay:zP,inertia:zP,tween:w0,keyframes:w0,spring:RT},$U=e=>e/100;class S_ extends IT{constructor({KeyframeResolver:t=g_,...r}){super(r),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:a,keyframes:o}=this.options,s=(l,u)=>this.onKeyframesResolved(l,u);n&&a&&a.owner?this.resolver=a.owner.resolveKeyframes(o,s,n,a):this.resolver=new t(o,s,n,a),this.resolver.scheduleResolve()}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:o,velocity:s=0}=this.options,l=PU[r]||w0;let u,c;l!==w0&&typeof t[0]!="number"&&(u=Ya($U,HT(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(c=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=wU(d));const{calculatedDuration:f}=d,m=f+a,g=m*(n+1)-a;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:u,calculatedDuration:f,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:z}=this.options;return{done:!0,value:z[z.length-1]}}const{finalKeyframe:a,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=n;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:x,repeatDelay:p,onUpdate:$}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let P=this.currentTime,M=o;if(g){const z=Math.min(this.currentTime,d)/f;let q=Math.floor(z),Q=z%1;!Q&&z>=1&&(Q=1),Q===1&&q--,q=Math.min(q,g+1),!!(q%2)&&(x==="reverse"?(Q=1-Q,p&&(Q-=p/f)):x==="mirror"&&(M=s)),P=So(0,1,Q)*f}const A=y?{done:!1,value:u[0]}:M.next(P);l&&(A.value=l(A.value));let{done:F}=A;!y&&c!==null&&(F=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return L&&a!==void 0&&(A.value=Sv(u,this.options,a)),$&&$(A.value),L&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Ua(t.calculatedDuration):0}get time(){return Ua(this.currentTime)}set time(t){t=go(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Ua(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=SU,onPlay:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),r&&r();const n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=n),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const YT=e=>Array.isArray(e)&&typeof e[0]=="number";function UT(e){return!!(!e||typeof e=="string"&&e in P_||YT(e)||Array.isArray(e)&&e.every(UT))}const Nd=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,P_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nd([0,.65,.55,1]),circOut:Nd([.55,0,1,.45]),backIn:Nd([.31,.01,.66,-.59]),backOut:Nd([.33,1.53,.69,.99])};function OU(e){return GT(e)||P_.easeOut}function GT(e){if(e)return YT(e)?Nd(e):Array.isArray(e)?e.map(OU):P_[e]}function CU(e,t,r,{delay:n=0,duration:a=300,repeat:o=0,repeatType:s="loop",ease:l,times:u}={}){const c={[t]:r};u&&(c.offset=u);const d=GT(l);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:n,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const MU=jT(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),S0=10,TU=2e4;function EU(e){return e.type==="spring"||!UT(e.ease)}function DU(e,t){const r=new S_({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const a=[];let o=0;for(;!n.done&&othis.onKeyframesResolved(o,s),r,n),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:a=300,times:o,ease:s,type:l,motionValue:u,name:c}=this.options;if(!(!((n=u.owner)===null||n===void 0)&&n.current))return!1;if(EU(this.options)){const{onComplete:f,onUpdate:m,motionValue:g,...x}=this.options,p=DU(t,x);t=p.keyframes,t.length===1&&(t[1]=t[0]),a=p.duration,o=p.times,s=p.ease,l="keyframes"}const d=CU(u.owner.current,c,t,{...this.options,duration:a,times:o,ease:s});return d.startTime=bo.now(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(Sv(t,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:a,times:o,type:l,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return Ua(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return Ua(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=go(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return rr;const{animation:n}=r;n.timeline=t,n.onfinish=null}return rr}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:a,type:o,ease:s,times:l}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,...m}=this.options,g=new S_({...m,keyframes:n,duration:a,type:o,ease:s,times:l,isGenerator:!0}),x=go(this.time);c.setWithVelocity(g.sample(x-S0).value,g.sample(x).value,S0)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:a,repeatType:o,damping:s,type:l}=t;return MU()&&n&&uT.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!a&&o!=="mirror"&&s!==0&&l!=="inertia"}}function jU(e,t){let r;const n=()=>{const{currentTime:a}=t,s=(a===null?0:a.value)/100;r!==s&&e(s),r=s};return Xe.update(n,!0),()=>ei(n)}const IU=jT(()=>window.ScrollTimeline!==void 0);class AU{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n{if(IU()&&n.attachTimeline)n.attachTimeline(t);else return n.pause(),jU(a=>{n.time=n.duration*a},t)});return()=>{r.forEach((n,a)=>{n&&n(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let r=0;rr[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const $_=(e,t,r,n={},a,o,s)=>l=>{const u=p_(n,e)||{},c=u.delay||n.delay||0;let{elapsed:d=0}=n;d=d-go(c);let f={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{l(),u.onComplete&&u.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:o?void 0:a};mY(u)||(f={...f,...hY(e,f)}),f.duration&&(f.duration=go(f.duration)),f.repeatDelay&&(f.repeatDelay=go(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let m=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(m=!0)),m&&!o&&t.get()!==void 0){const g=Sv(f.keyframes,u);if(g!==void 0)return Xe.update(()=>{f.onUpdate(g),f.onComplete()}),new AU([])}return!o&&UP.supports(f)?new UP(f):new S_(f)};class O_{constructor(){this.subscriptions=[]}add(t){return yv(this.subscriptions,t),()=>_v(this.subscriptions,t)}notify(t,r,n){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,n);else for(let o=0;o!isNaN(parseFloat(e));class qT{constructor(t,r={}){this.version="11.3.8",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,a=!0)=>{const o=bo.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=bo.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=FU(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new O_);const n=this.events[t].add(r);return t==="change"?()=>{n(),Xe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=bo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>GP)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,GP);return AT(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Nf(e,t){return new qT(e,t)}function RU(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Nf(r))}function kU(e,t){const r=wv(e,t);let{transitionEnd:n={},transition:a={},...o}=r||{};o={...o,...n};for(const s in o){const l=VH(o[s]);RU(e,s,l)}}function QT(e){return e.getProps()[UM]}class NU extends qT{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const r=cT(t);if(!r)return;const n=this.counts.get(r)||0;this.counts.set(r,n+1),n===0&&(this.output.push(r),this.update());let a=!1;return()=>{if(a)return;a=!0;const o=this.counts.get(r)-1;this.counts.set(r,o),o===0&&(_v(this.output,r),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function LU(e){return!!(er(e)&&e.add)}function bb(e,t){var r;if(!e.applyWillChange)return;let n=e.getValue("willChange");if(!n&&!(!((r=e.props.style)===null||r===void 0)&&r.willChange)&&(n=new NU("auto"),e.addValue("willChange",n)),LU(n))return n.add(t)}function zU({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function XT(e,t,{delay:r=0,transitionOverride:n,type:a}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;n&&(s=n);const c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in u){const m=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),g=u[f];if(g===void 0||d&&zU(d,f))continue;const x={delay:r,elapsed:0,...p_(s||{},f)};let p=!1;if(window.HandoffAppearAnimations){const b=QT(e);if(b){const y=window.HandoffAppearAnimations(b,f,m,Xe);y!==null&&(x.elapsed=y,p=!0)}}m.start($_(f,m,g,e.shouldReduceMotion&&To.has(f)?{type:!1}:x,e,p,bb(e,f)));const $=m.animation;$&&c.push($)}return l&&Promise.all(c).then(()=>{Xe.update(()=>{l&&kU(e,l)})}),c}function yb(e,t,r={}){var n;const a=wv(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(o=r.transitionOverride);const s=a?()=>Promise.all(XT(e,a,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:m}=o;return WU(e,t,d+c,f,m,r)}:()=>Promise.resolve(),{when:u}=o;if(u){const[c,d]=u==="beforeChildren"?[s,l]:[l,s];return c().then(()=>d())}else return Promise.all([s(),l(r.delay)])}function WU(e,t,r=0,n=0,a=1,o){const s=[],l=(e.variantChildren.size-1)*n,u=a===1?(c=0)=>c*n:(c=0)=>l-c*n;return Array.from(e.variantChildren).sort(BU).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(yb(c,t,{...o,delay:r+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function BU(e,t){return e.sortNodePosition(t)}function VU(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const a=t.map(o=>yb(e,o,r));n=Promise.all(a)}else if(typeof t=="string")n=yb(e,t,r);else{const a=typeof t=="function"?wv(e,t,r.custom):t;n=Promise.all(XT(e,a,r))}return n.then(()=>{Xe.postRender(()=>{e.notify("AnimationComplete",t)})})}const HU=[...a_].reverse(),YU=a_.length;function UU(e){return t=>Promise.all(t.map(({animation:r,options:n})=>VU(e,r,n)))}function GU(e){let t=UU(e),r=qP(),n=!0;const a=u=>(c,d)=>{var f;const m=wv(e,d,u==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(m){const{transition:g,transitionEnd:x,...p}=m;c={...c,...p,...x}}return c};function o(u){t=u(e)}function s(u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],m=new Set;let g={},x=1/0;for(let $=0;$x&&M,q=!1;const Q=Array.isArray(P)?P:[P];let ve=Q.reduce(a(b),{});A===!1&&(ve={});const{prevResolvedValues:Me={}}=y,tt={...Me,...ve},et=Ce=>{z=!0,m.has(Ce)&&(q=!0,m.delete(Ce)),y.needsAnimating[Ce]=!0;const Ne=e.getValue(Ce);Ne&&(Ne.liveStyle=!1)};for(const Ce in tt){const Ne=ve[Ce],Se=Me[Ce];if(g.hasOwnProperty(Ce))continue;let H=!1;cb(Ne)&&cb(Se)?H=!gT(Ne,Se):H=Ne!==Se,H?Ne!=null?et(Ce):m.add(Ce):Ne!==void 0&&m.has(Ce)?et(Ce):y.protectedKeys[Ce]=!0}y.prevProp=P,y.prevResolvedValues=ve,y.isActive&&(g={...g,...ve}),n&&e.blockInitialAnimation&&(z=!1),z&&(!F||q)&&f.push(...Q.map(Ce=>({animation:Ce,options:{type:b}})))}if(m.size){const $={};m.forEach(b=>{const y=e.getBaseTarget(b),P=e.getValue(b);P&&(P.liveStyle=!0),$[b]=y??null}),f.push({animation:$})}let p=!!f.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(f):Promise.resolve()}function l(u,c){var d;if(r[u].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(u,c)}),r[u].isActive=c;const f=s(u);for(const m in r)r[m].protectedKeys={};return f}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>r,reset:()=>{r=qP(),n=!0}}}function qU(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gT(t,e):!1}function Ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qP(){return{animate:Ts(!0),whileInView:Ts(),whileHover:Ts(),whileTap:Ts(),whileDrag:Ts(),whileFocus:Ts(),exit:Ts()}}class QU extends Eo{constructor(t){super(t),t.animationState||(t.animationState=GU(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ff(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let XU=0;class KU extends Eo{constructor(){super(...arguments),this.id=XU++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const ZU={animation:{Feature:QU},exit:{Feature:KU}},QP=(e,t)=>Math.abs(e-t);function JU(e,t){const r=QP(e.x,t.x),n=QP(e.y,t.y);return Math.sqrt(r**2+n**2)}class KT{constructor(t,r,{transformPagePoint:n,contextWindow:a,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=bg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=JU(f.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:x}=f,{timestamp:p}=Vt;this.history.push({...x,timestamp:p});const{onStart:$,onMove:b}=this.handlers;m||($&&$(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=gg(m,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=bg(f.type==="pointercancel"?this.lastMoveEventInfo:gg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,$),x&&x(f,$)},!fT(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=n,this.contextWindow=a||window;const s=xv(t),l=gg(s,this.transformPagePoint),{point:u}=l,{timestamp:c}=Vt;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=r;d&&d(t,bg(l,this.history)),this.removeListeners=Ya(Ha(this.contextWindow,"pointermove",this.handlePointerMove),Ha(this.contextWindow,"pointerup",this.handlePointerUp),Ha(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ei(this.updatePoint)}}function gg(e,t){return t?{point:t(e.point)}:e}function XP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bg({point:e},t){return{point:e,delta:XP(e,ZT(t)),offset:XP(e,eG(t)),velocity:tG(t,.1)}}function eG(e){return e[0]}function ZT(e){return e[e.length-1]}function tG(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const a=ZT(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>go(t)));)r--;if(!n)return{x:0,y:0};const o=Ua(a.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const s={x:(a.x-n.x)/o,y:(a.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const JT=1e-4,rG=1-JT,nG=1+JT,eE=.01,aG=0-eE,iG=0+eE;function Wr(e){return e.max-e.min}function oG(e,t,r){return Math.abs(e-t)<=r}function KP(e,t,r,n=.5){e.origin=n,e.originPoint=dt(t.min,t.max,e.origin),e.scale=Wr(r)/Wr(t),e.translate=dt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=rG&&e.scale<=nG||isNaN(e.scale))&&(e.scale=1),(e.translate>=aG&&e.translate<=iG||isNaN(e.translate))&&(e.translate=0)}function nf(e,t,r,n){KP(e.x,t.x,r.x,n?n.originX:void 0),KP(e.y,t.y,r.y,n?n.originY:void 0)}function ZP(e,t,r){e.min=r.min+t.min,e.max=e.min+Wr(t)}function sG(e,t,r){ZP(e.x,t.x,r.x),ZP(e.y,t.y,r.y)}function JP(e,t,r){e.min=t.min-r.min,e.max=e.min+Wr(t)}function af(e,t,r){JP(e.x,t.x,r.x),JP(e.y,t.y,r.y)}function lG(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?dt(r,e,n.max):Math.min(e,r)),e}function e$(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function uG(e,{top:t,left:r,bottom:n,right:a}){return{x:e$(e.x,r,a),y:e$(e.y,t,n)}}function t$(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=kf(t.min,t.max-n,e.min):n>a&&(r=kf(e.min,e.max-a,t.min)),So(0,1,r)}function fG(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const _b=.35;function hG(e=_b){return e===!1?e=0:e===!0&&(e=_b),{x:r$(e,"left","right"),y:r$(e,"top","bottom")}}function r$(e,t,r){return{min:n$(e,t),max:n$(e,r)}}function n$(e,t){return typeof e=="number"?e:e[t]||0}const a$=()=>({translate:0,scale:1,origin:0,originPoint:0}),gu=()=>({x:a$(),y:a$()}),i$=()=>({min:0,max:0}),bt=()=>({x:i$(),y:i$()});function Jr(e){return[e("x"),e("y")]}function tE({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function mG({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function vG(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function yg(e){return e===void 0||e===1}function xb({scale:e,scaleX:t,scaleY:r}){return!yg(e)||!yg(t)||!yg(r)}function As(e){return xb(e)||rE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rE(e){return o$(e.x)||o$(e.y)}function o$(e){return e&&e!=="0%"}function P0(e,t,r){const n=e-r,a=t*n;return r+a}function s$(e,t,r,n,a){return a!==void 0&&(e=P0(e,a,n)),P0(e,r,n)+t}function wb(e,t=0,r=1,n,a){e.min=s$(e.min,t,r,n,a),e.max=s$(e.max,t,r,n,a)}function nE(e,{x:t,y:r}){wb(e.x,t.translate,t.scale,t.originPoint),wb(e.y,r.translate,r.scale,r.originPoint)}const l$=.999999999999,u$=1.0000000000001;function pG(e,t,r,n=!1){const a=r.length;if(!a)return;t.x=t.y=1;let o,s;for(let l=0;ll$&&(t.x=1),t.yl$&&(t.y=1)}function Ji(e,t){e.min=e.min+t,e.max=e.max+t}function c$(e,t,r,n,a=.5){const o=dt(e.min,e.max,a);wb(e,t,r,o,n)}function bu(e,t){c$(e.x,t.x,t.scaleX,t.scale,t.originX),c$(e.y,t.y,t.scaleY,t.scale,t.originY)}function aE(e,t){return tE(vG(e.getBoundingClientRect(),t))}function gG(e,t,r){const n=aE(e,r),{scroll:a}=t;return a&&(Ji(n.x,a.offset.x),Ji(n.y,a.offset.y)),n}const iE=({current:e})=>e?e.ownerDocument.defaultView:null,bG=new WeakMap;class yG{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(xv(d,"page").point)},o=(d,f)=>{var m;const{drag:g,dragPropagation:x,onDragStart:p}=this.getProps();if(g&&!x&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=mT(g),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Jr(b=>{let y=this.getAxisMotionValue(b).get()||0;if(oa.test(y)){const{projection:P}=this.visualElement;if(P&&P.layout){const M=P.layout.layoutBox[b];M&&(y=Wr(M)*(parseFloat(y)/100))}}this.originPoint[b]=y}),p&&Xe.postRender(()=>p(d,f)),(m=this.removeWillChange)===null||m===void 0||m.call(this),this.removeWillChange=bb(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:x,onDrag:p}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:$}=f;if(g&&this.currentDirection===null){this.currentDirection=_G($),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,$),this.updateAxis("y",f.point,$),this.visualElement.render(),p&&p(d,f)},l=(d,f)=>this.stop(d,f),u=()=>Jr(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new KT(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:iE(this.visualElement)})}stop(t,r){var n;(n=this.removeWillChange)===null||n===void 0||n.call(this);const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&Xe.postRender(()=>s(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:a}=this.getProps();if(!n||!Xh(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=lG(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;r&&vu(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=uG(a.layoutBox,r):this.constraints=!1,this.elastic=hG(n),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Jr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=fG(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!vu(t))return!1;const n=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=gG(n,a.root,this.visualElement.getTransformPagePoint());let s=cG(a.layout.layoutBox,o);if(r){const l=r(mG(s));this.hasMutatedConstraints=!!l,l&&(s=tE(l))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},c=Jr(d=>{if(!Xh(d,r,this.currentDirection))return;let f=u&&u[d]||{};s&&(f={min:0,max:0});const m=a?200:1e6,g=a?40:1e7,x={type:"inertia",velocity:n?t[d]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(l)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start($_(t,n,0,r,this.visualElement,!1,bb(this.visualElement,t)))}stopAnimation(){Jr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Jr(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Jr(r=>{const{drag:n}=this.getProps();if(!Xh(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(r);if(a&&a.layout){const{min:s,max:l}=a.layout.layoutBox[r];o.set(t[r]-dt(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!vu(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Jr(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const u=l.get();a[s]=dG({min:u,max:u},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Jr(s=>{if(!Xh(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];l.set(dt(u,c,a[s]))})}addListeners(){if(!this.visualElement.current)return;bG.set(this.visualElement,this);const t=this.visualElement.current,r=Ha(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();vu(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,o=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Xe.read(n);const s=za(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Jr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{s(),r(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:s=_b,dragMomentum:l=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Xh(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function _G(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class xG extends Eo{constructor(t){super(t),this.removeGroupControls=rr,this.removeListeners=rr,this.controls=new yG(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rr}unmount(){this.removeGroupControls(),this.removeListeners()}}const d$=e=>(t,r)=>{e&&Xe.postRender(()=>e(t,r))};class wG extends Eo{constructor(){super(...arguments),this.removePointerDownListener=rr}onPointerDown(t){this.session=new KT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:d$(t),onStart:d$(r),onMove:n,onEnd:(o,s)=>{delete this.session,a&&Xe.postRender(()=>a(o,s))}}}mount(){this.removePointerDownListener=Ha(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function oE(){const e=S.useContext(Jf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,a=S.useId();return S.useEffect(()=>n(a),[]),!t&&r?[!1,()=>r&&r(a)]:[!0]}function SG(){return PG(S.useContext(Jf))}function PG(e){return e===null?!0:e.isPresent}const Nm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function f$(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;const r=f$(e,t.target.x),n=f$(e,t.target.y);return`${r}% ${n}%`}},$G={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,a=Po.parse(e);if(a.length>5)return n;const o=Po.createTransformer(e),s=typeof a[0]!="number"?1:0,l=r.x.scale*t.x,u=r.y.scale*t.y;a[0+s]/=l,a[1+s]/=u;const c=dt(l,u,.5);return typeof a[2+s]=="number"&&(a[2+s]/=c),typeof a[3+s]=="number"&&(a[3+s]/=c),o(a)}};class OG extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:o}=t;bH(CG),o&&(r.group&&r.group.add(o),n&&n.register&&a&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Nm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:a,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,a||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Xe.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),n_.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sE(e){const[t,r]=oE(),n=S.useContext(o_);return w.jsx(OG,{...e,layoutGroup:n,switchLayoutGroup:S.useContext(qM),isPresent:t,safeToRemove:r})}const CG={borderRadius:{...fd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fd,borderTopRightRadius:fd,borderBottomLeftRadius:fd,borderBottomRightRadius:fd,boxShadow:$G},lE=["TopLeft","TopRight","BottomLeft","BottomRight"],MG=lE.length,h$=e=>typeof e=="string"?parseFloat(e):e,m$=e=>typeof e=="number"||de.test(e);function TG(e,t,r,n,a,o){a?(e.opacity=dt(0,r.opacity!==void 0?r.opacity:1,EG(n)),e.opacityExit=dt(t.opacity!==void 0?t.opacity:1,0,DG(n))):o&&(e.opacity=dt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(kf(e,t,n))}function p$(e,t){e.min=t.min,e.max=t.max}function Kr(e,t){p$(e.x,t.x),p$(e.y,t.y)}function g$(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function b$(e,t,r,n,a){return e-=t,e=P0(e,1/r,n),a!==void 0&&(e=P0(e,1/a,n)),e}function jG(e,t=0,r=1,n=.5,a,o=e,s=e){if(oa.test(t)&&(t=parseFloat(t),t=dt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=dt(o.min,o.max,n);e===o&&(l-=t),e.min=b$(e.min,t,r,l,a),e.max=b$(e.max,t,r,l,a)}function y$(e,t,[r,n,a],o,s){jG(e,t[r],t[n],t[a],t.scale,o,s)}const IG=["x","scaleX","originX"],AG=["y","scaleY","originY"];function _$(e,t,r,n){y$(e.x,t,IG,r?r.x:void 0,n?n.x:void 0),y$(e.y,t,AG,r?r.y:void 0,n?n.y:void 0)}function x$(e){return e.translate===0&&e.scale===1}function cE(e){return x$(e.x)&&x$(e.y)}function FG(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,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function w$(e){return Wr(e.x)/Wr(e.y)}function S$(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class RG{constructor(){this.members=[]}add(t){yv(this.members,t),t.scheduleRender()}remove(t){if(_v(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(a=>t===a);if(r===0)return!1;let n;for(let a=r;a>=0;a--){const o=this.members[a];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kG(e,t,r){let n="";const a=e.x.translate/t.x,o=e.y.translate/t.y,s=(r==null?void 0:r.z)||0;if((a||o||s)&&(n=`translate3d(${a}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:m,skewX:g,skewY:x}=r;c&&(n=`perspective(${c}px) ${n}`),d&&(n+=`rotate(${d}deg) `),f&&(n+=`rotateX(${f}deg) `),m&&(n+=`rotateY(${m}deg) `),g&&(n+=`skewX(${g}deg) `),x&&(n+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(n+=`scale(${l}, ${u})`),n||"none"}const NG=(e,t)=>e.depth-t.depth;class LG{constructor(){this.children=[],this.isDirty=!1}add(t){yv(this.children,t),this.isDirty=!0}remove(t){_v(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(NG),this.isDirty=!1,this.children.forEach(t)}}function zG(e,t){const r=bo.now(),n=({timestamp:a})=>{const o=a-r;o>=t&&(ei(n),e(o-t))};return Xe.read(n,!0),()=>ei(n)}function WG(e){return e instanceof SVGElement&&e.tagName!=="svg"}function BG(e,t,r){const n=er(e)?e:Nf(e);return n.start($_("",n,t,r)),n.animation}const Fs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},_g=["","X","Y","Z"],VG={visibility:"hidden"},P$=1e3;let HG=0;function xg(e,t,r,n){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),n&&(n[e]=0))}function fE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?QT(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?fE(e.parent):!1:!1}function hE({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(s={},l=t==null?void 0:t()){this.id=HG++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,window.MotionDebug&&(Fs.totalNodes=Fs.resolvedTargetDeltas=Fs.recalculatedProjection=0),this.nodes.forEach(GG),this.nodes.forEach(ZG),this.nodes.forEach(JG),this.nodes.forEach(qG),window.MotionDebug&&window.MotionDebug.record(Fs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=zG(m,250),Nm.hasAnimatedSinceResize&&(Nm.hasAnimatedSinceResize=!1,this.nodes.forEach(O$))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||d.getDefaultTransition()||aq,{onLayoutAnimationStart:$,onLayoutAnimationComplete:b}=d.getProps(),y=!this.targetLayout||!dE(this.targetLayout,x)||g,P=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,P);const M={...p_(p,"layout"),onPlay:$,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M)}else m||O$(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ei(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eq),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&fE(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const A=M/1e3;C$(f.x,s.x,A),C$(f.y,s.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(af(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rq(this.relativeTarget,this.relativeTargetOrigin,m,A),P&&FG(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=bt()),Kr(P,this.relativeTarget)),p&&(this.animationValues=d,TG(d,c,this.latestValues,A,y,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ei(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{Nm.hasAnimatedSinceResize=!0,this.currentAnimation=BG(0,P$,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(P$),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=s;if(!(!l||!u||!c)){if(this!==s&&this.layout&&c&&mE(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||bt();const f=Wr(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+f;const m=Wr(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}Kr(l,u),bu(l,d),nf(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new RG),this.sharedNodes.get(s).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(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:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&xg("z",s,c,this.animationValues);for(let d=0;d<_g.length;d++)xg(`rotate${_g[d]}`,s,c,this.animationValues),xg(`skew${_g[d]}`,s,c,this.animationValues);s.render();for(const d in c)s.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);s.scheduleRender()}getProjectionStyles(s){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return VG;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Rm(s==null?void 0:s.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Rm(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!As(this.latestValues)&&(p.transform=d?d({},""):"none",this.hasProjected=!1),p}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=kG(this.projectionDeltaWithTransform,this.treeScale,m),d&&(c.transform=d(m,c.transform));const{x:g,y:x}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${x.origin*100}% 0`,f.animationValues?c.opacity=f===this?(u=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:c.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const p in y0){if(m[p]===void 0)continue;const{correct:$,applyTo:b}=y0[p],y=c.transform==="none"?m[p]:$(m[p],f);if(b){const P=b.length;for(let M=0;M{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach($$),this.root.sharedNodes.clear()}}}function YG(e){e.updateLayout()}function UG(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=e.layout,{animationType:o}=e.options,s=r.source!==e.layout.source;o==="size"?Jr(f=>{const m=s?r.measuredBox[f]:r.layoutBox[f],g=Wr(m);m.min=n[f].min,m.max=m.min+g}):mE(o,r.layoutBox,n)&&Jr(f=>{const m=s?r.measuredBox[f]:r.layoutBox[f],g=Wr(n[f]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=gu();nf(l,n,r.layoutBox);const u=gu();s?nf(u,e.applyTransform(a,!0),r.measuredBox):nf(u,n,r.layoutBox);const c=!cE(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:g}=f;if(m&&g){const x=bt();af(x,r.layoutBox,m.layoutBox);const p=bt();af(p,n,g.layoutBox),dE(x,p)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function GG(e){window.MotionDebug&&Fs.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function qG(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function QG(e){e.clearSnapshot()}function $$(e){e.clearMeasurements()}function XG(e){e.isLayoutDirty=!1}function KG(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function O$(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ZG(e){e.resolveTargetDelta()}function JG(e){e.calcProjection()}function eq(e){e.resetSkewAndRotation()}function tq(e){e.removeLeadSnapshot()}function C$(e,t,r){e.translate=dt(t.translate,0,r),e.scale=dt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function M$(e,t,r,n){e.min=dt(t.min,r.min,n),e.max=dt(t.max,r.max,n)}function rq(e,t,r,n){M$(e.x,t.x,r.x,n),M$(e.y,t.y,r.y,n)}function nq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aq={duration:.45,ease:[.4,0,.1,1]},T$=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),E$=T$("applewebkit/")&&!T$("chrome/")?Math.round:rr;function D$(e){e.min=E$(e.min),e.max=E$(e.max)}function iq(e){D$(e.x),D$(e.y)}function mE(e,t,r){return e==="position"||e==="preserve-aspect"&&!oG(w$(t),w$(r),.2)}const oq=hE({attachResizeListener:(e,t)=>za(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wg={current:void 0},vE=hE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wg.current){const e=new oq({});e.mount(window),e.setOptions({layoutScroll:!0}),wg.current=e}return wg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sq={pan:{Feature:wG},drag:{Feature:xG,ProjectionNode:vE,MeasureLayout:sE}},Sb={current:null},pE={current:!1};function lq(){if(pE.current=!0,!!t_)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Sb.current=e.matches;e.addListener(t),t()}else Sb.current=!1}function uq(e,t,r){for(const n in t){const a=t[n],o=r[n];if(er(a))e.addValue(n,a);else if(er(o))e.addValue(n,Nf(a,{owner:e}));else if(o!==a)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(n);e.addValue(n,Nf(s!==void 0?s:a,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const j$=new WeakMap,cq=[...wT,Zt,Po],dq=e=>cq.find(xT(e)),I$=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],fq=i_.length;class hq{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:o,visualState:s},l={}){this.applyWillChange=!1,this.resolveKeyframes=(m,g,x,p)=>new this.KeyframeResolver(m,g,x,p,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=g_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,Xe.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=bv(r),this.isVariantNode=XM(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(const m in f){const g=f[m];u[m]!==void 0&&er(g)&&g.set(u[m],!1)}}mount(t){this.current=t,j$.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),pE.current||lq(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sb.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){j$.delete(this.current),this.projection&&this.projection.unmount(),ei(this.notifyUpdate),ei(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){const n=To.has(t),a=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Xe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{a(),o(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hu){const r=Hu[t];if(!r)continue;const{isEnabled:n,Feature:a}=r;if(!this.features[t]&&a&&n(this.props)&&(this.features[t]=new a(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Nf(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(yT(a)||bT(a))?a=parseFloat(a):!dq(a)&&Po.test(r)&&(a=ET(t,r)),this.setBaseTarget(t,er(a)?a.get():a)),er(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const s=v_(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);s&&(a=s[t])}if(n&&a!==void 0)return a;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!er(o)?o:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new O_),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class gE extends hq{constructor(){super(...arguments),this.KeyframeResolver=DT}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}}function mq(e){return window.getComputedStyle(e)}class vq extends gE{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=aT}readValueFromInstance(t,r){if(To.has(r)){const n=y_(r);return n&&n.default||0}else{const n=mq(t),a=(JM(r)?n.getPropertyValue(r):n[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return aE(t,r)}build(t,r,n){c_(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return m_(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;er(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class pq extends gE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(To.has(r)){const n=y_(r);return n&&n.default||0}return r=iT.has(r)?r:gv(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return sT(t,r,n)}build(t,r,n){f_(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,a){oT(t,r,n,a)}mount(t){this.isSVGTag=h_(t.tagName),super.mount(t)}}const gq=(e,t)=>s_(e)?new pq(t):new vq(t,{allowProjection:e!==S.Fragment}),bq={layout:{ProjectionNode:vE,MeasureLayout:sE}},yq={...ZU,...lY,...sq,...bq},ni=pH((e,t)=>QH(e,t,yq,gq));function bE(){const e=S.useRef(!1);return r_(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _q(){const e=bE(),[t,r]=S.useState(0),n=S.useCallback(()=>{e.current&&r(t+1)},[t]);return[S.useCallback(()=>Xe.postRender(n),[n]),t]}class xq extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function wq({children:e,isPresent:t}){const r=S.useId(),n=S.useRef(null),a=S.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=S.useContext(e_);return S.useInsertionEffect(()=>{const{width:s,height:l,top:u,left:c}=a.current;if(t||!n.current||!s||!l)return;n.current.dataset.motionPopId=r;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${s}px !important; - height: ${l}px !important; - top: ${u}px !important; - left: ${c}px !important; - } - `),()=>{document.head.removeChild(d)}},[t]),w.jsx(xq,{isPresent:t,childRef:n,sizeRef:a,children:S.cloneElement(e,{ref:n})})}const Sg=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:a,presenceAffectsLayout:o,mode:s})=>{const l=lT(Sq),u=S.useId(),c=S.useMemo(()=>({id:u,initial:t,isPresent:r,custom:a,onExitComplete:d=>{l.set(d,!0);for(const f of l.values())if(!f)return;n&&n()},register:d=>(l.set(d,!1),()=>l.delete(d))}),o?[Math.random()]:[r]);return S.useMemo(()=>{l.forEach((d,f)=>l.set(f,!1))},[r]),S.useEffect(()=>{!r&&!l.size&&n&&n()},[r]),s==="popLayout"&&(e=w.jsx(wq,{isPresent:r,children:e})),w.jsx(Jf.Provider,{value:c,children:e})};function Sq(){return new Map}function Pq(e){return S.useEffect(()=>()=>e(),[])}const Rs=e=>e.key||"";function $q(e,t){e.forEach(r=>{const n=Rs(r);t.set(n,r)})}function Oq(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const Zu=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:a,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const l=S.useContext(o_).forceRender||_q()[0],u=bE(),c=Oq(e);let d=c;const f=S.useRef(new Map).current,m=S.useRef(d),g=S.useRef(new Map).current,x=S.useRef(!0);if(r_(()=>{x.current=!1,$q(c,g),m.current=d}),Pq(()=>{x.current=!0,g.clear(),f.clear()}),x.current)return w.jsx(w.Fragment,{children:d.map(y=>w.jsx(Sg,{isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s,children:y},Rs(y)))});d=[...d];const p=m.current.map(Rs),$=c.map(Rs),b=p.length;for(let y=0;y{if($.indexOf(P)!==-1)return;const M=g.get(P);if(!M)return;const A=p.indexOf(P);let F=y;if(!F){const L=()=>{f.delete(P);const z=Array.from(g.keys()).filter(q=>!$.includes(q));if(z.forEach(q=>g.delete(q)),m.current=c.filter(q=>{const Q=Rs(q);return Q===P||z.includes(Q)}),!f.size){if(u.current===!1)return;l(),n&&n()}};F=w.jsx(Sg,{isPresent:!1,onExitComplete:L,custom:t,presenceAffectsLayout:o,mode:s,children:M},Rs(M)),f.set(P,F)}d.splice(A,0,F)}),d=d.map(y=>{const P=y.key;return f.has(P)?y:w.jsx(Sg,{isPresent:!0,presenceAffectsLayout:o,mode:s,children:y},Rs(y))}),w.jsx(w.Fragment,{children:f.size?d:d.map(y=>S.cloneElement(y))})};var Cq={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},yE=S.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:a,requestClose:o=!1,position:s="bottom",duration:l=5e3,containerStyle:u,motionVariants:c=Cq,toastSpacing:d="0.5rem"}=e,[f,m]=S.useState(l),g=SG();xP(()=>{g||n==null||n()},[g]),xP(()=>{m(l)},[l]);const x=()=>m(null),p=()=>m(l),$=()=>{g&&a()};S.useEffect(()=>{g&&o&&a()},[g,o,a]),JV($,f);const b=S.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u}),[u,d]),y=S.useMemo(()=>XV(s),[s]);return w.jsx(ni.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:x,onHoverEnd:p,custom:{position:s},style:y,children:w.jsx(fe.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:io(r,{id:t,onClose:$})})})});yE.displayName="ToastComponent";var A$={path:w.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),w.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Lr=he((e,t)=>{const{as:r,viewBox:n,color:a="currentColor",focusable:o=!1,children:s,className:l,__css:u,...c}=e,d=ke("chakra-icon",l),f=ri("Icon",e),m={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a,...u,...f},g={ref:t,focusable:o,className:d,__css:m},x=n??A$.viewBox;if(r&&typeof r!="string")return w.jsx(fe.svg,{as:r,...g,...c});const p=s??A$.path;return w.jsx(fe.svg,{verticalAlign:"middle",viewBox:x,...g,...c,children:p})});Lr.displayName="Icon";function _E(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:a={}}=e,o=S.Children.toArray(e.path),s=he((l,u)=>w.jsx(Lr,{ref:u,viewBox:t,...a,...l,children:o.length?o:w.jsx("path",{fill:"currentColor",d:r})}));return s.displayName=n,s}function Mq(e){return w.jsx(Lr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Tq(e){return w.jsx(Lr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function F$(e){return w.jsx(Lr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var Eq=uM({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),fl=he((e,t)=>{const r=ri("Spinner",e),{label:n="Loading...",thickness:a="2px",speed:o="0.45s",emptyColor:s="transparent",className:l,...u}=mr(e),c=ke("chakra-spinner",l),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:a,borderBottomColor:s,borderLeftColor:s,animation:`${Eq} ${o} linear infinite`,...r};return w.jsx(fe.div,{ref:t,__css:d,className:c,...u,children:n&&w.jsx(fe.span,{srOnly:!0,children:n})})});fl.displayName="Spinner";var[Dq,C_]=Yr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[jq,M_]=Yr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),xE={info:{icon:Tq,colorScheme:"blue"},warning:{icon:F$,colorScheme:"orange"},success:{icon:Mq,colorScheme:"green"},error:{icon:F$,colorScheme:"red"},loading:{icon:fl,colorScheme:"blue"}};function Iq(e){return xE[e].colorScheme}function Aq(e){return xE[e].icon}var wE=he(function(t,r){const n=M_(),{status:a}=C_(),o={display:"inline",...n.description};return w.jsx(fe.div,{ref:r,"data-status":a,...t,className:ke("chakra-alert__desc",t.className),__css:o})});wE.displayName="AlertDescription";function SE(e){const{status:t}=C_(),r=Aq(t),n=M_(),a=t==="loading"?n.spinner:n.icon;return w.jsx(fe.span,{display:"inherit","data-status":t,...e,className:ke("chakra-alert__icon",e.className),__css:a,children:e.children||w.jsx(r,{h:"100%",w:"100%"})})}SE.displayName="AlertIcon";var PE=he(function(t,r){const n=M_(),{status:a}=C_();return w.jsx(fe.div,{ref:r,"data-status":a,...t,className:ke("chakra-alert__title",t.className),__css:n.title})});PE.displayName="AlertTitle";var $E=he(function(t,r){var n;const{status:a="info",addRole:o=!0,...s}=mr(t),l=(n=t.colorScheme)!=null?n:Iq(a),u=Mo("Alert",{...t,colorScheme:l}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return w.jsx(Dq,{value:{status:a},children:w.jsx(jq,{value:u,children:w.jsx(fe.div,{"data-status":a,role:o?"alert":void 0,ref:r,...s,className:ke("chakra-alert",t.className),__css:c})})})});$E.displayName="Alert";function Fq(e){return w.jsx(Lr,{focusable:"false","aria-hidden":!0,...e,children:w.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var T_=he(function(t,r){const n=ri("CloseButton",t),{children:a,isDisabled:o,__css:s,...l}=mr(t),u={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return w.jsx(fe.button,{type:"button","aria-label":"Close",ref:r,disabled:o,__css:{...u,...n,...s},...l,children:a||w.jsx(Fq,{width:"1em",height:"1em"})})});T_.displayName="CloseButton";var Rq={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},of=kq(Rq);function kq(e){let t=e;const r=new Set,n=a=>{t=a(t),r.forEach(o=>o())};return{getState:()=>t,subscribe:a=>(r.add(a),()=>{n(()=>e),r.delete(a)}),removeToast:(a,o)=>{n(s=>({...s,[o]:s[o].filter(l=>l.id!=a)}))},notify:(a,o)=>{const s=Nq(a,o),{position:l,id:u}=s;return n(c=>{var d,f;const g=l.includes("top")?[s,...(d=c[l])!=null?d:[]]:[...(f=c[l])!=null?f:[],s];return{...c,[l]:g}}),u},update:(a,o)=>{a&&n(s=>{const l={...s},{position:u,index:c}=_P(l,a);return u&&c!==-1&&(l[u][c]={...l[u][c],...o,message:zq(o)}),l})},closeAll:({positions:a}={})=>{n(o=>(a??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((u,c)=>(u[c]=o[c].map(d=>({...d,requestClose:!0})),u),{...o}))},close:a=>{n(o=>{const s=HM(o,a);return s?{...o,[s]:o[s].map(l=>l.id==a?{...l,requestClose:!0}:l)}:o})},isActive:a=>!!_P(of.getState(),a).position}}var R$=0;function Nq(e,t={}){var r,n;R$+=1;const a=(r=t.id)!=null?r:R$,o=(n=t.position)!=null?n:"bottom";return{id:a,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>of.removeToast(String(a),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Lq=e=>{const{status:t,variant:r="solid",id:n,title:a,isClosable:o,onClose:s,description:l,colorScheme:u,icon:c}=e,d=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return w.jsxs($E,{addRole:!1,status:t,variant:r,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[w.jsx(SE,{children:c}),w.jsxs(fe.div,{flex:"1",maxWidth:"100%",children:[a&&w.jsx(PE,{id:d==null?void 0:d.title,children:a}),l&&w.jsx(wE,{id:d==null?void 0:d.description,display:"block",children:l})]}),o&&w.jsx(T_,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function zq(e={}){const{render:t,toastComponent:r=Lq}=e;return a=>typeof t=="function"?t({...a,...e}):w.jsx(r,{...a,...e})}var[Wq,Lme]=Yr({name:"ToastOptionsContext",strict:!1}),Bq=e=>{const t=S.useSyncExternalStore(of.subscribe,of.getState,of.getState),{motionVariants:r,component:n=yE,portalProps:a}=e,s=Object.keys(t).map(l=>{const u=t[l];return w.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:KV(l),children:w.jsx(Zu,{initial:!1,children:u.map(c=>w.jsx(n,{motionVariants:r,...c},c.id))})},l)});return w.jsx(Kf,{...a,children:s})},Vq=e=>function({children:r,theme:n=e,toastOptions:a,...o}){return w.jsxs(qV,{theme:n,...o,children:[w.jsx(Wq,{value:a==null?void 0:a.defaultOptions,children:r}),w.jsx(Bq,{...a})]})},Hq=Vq(RM);function Yq(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 Lf(...e){return t=>{e.forEach(r=>{Yq(r,t)})}}function Uq(...e){return S.useMemo(()=>Lf(...e),e)}var k$={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Zs={enter:{duration:.2,ease:k$.easeOut},exit:{duration:.1,ease:k$.easeIn}},Js={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},Gq={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:(n=e==null?void 0:e.enter)!=null?n:Js.enter(Zs.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:(n=e==null?void 0:e.exit)!=null?n:Js.exit(Zs.exit,r),transitionEnd:t==null?void 0:t.exit}}},OE={initial:"exit",animate:"enter",exit:"exit",variants:Gq},qq=S.forwardRef(function(t,r){const{unmountOnExit:n,in:a,className:o,transition:s,transitionEnd:l,delay:u,...c}=t,d=a||n?"enter":"exit",f=n?a&&n:!0,m={transition:s,transitionEnd:l,delay:u};return w.jsx(Zu,{custom:m,children:f&&w.jsx(ni.div,{ref:r,className:ke("chakra-fade",o),custom:m,...OE,animate:d,...c})})});qq.displayName="Fade";var Qq={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:a})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(o=r==null?void 0:r.exit)!=null?o:Js.exit(Zs.exit,a)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:(n=t==null?void 0:t.enter)!=null?n:Js.enter(Zs.enter,r),transitionEnd:e==null?void 0:e.enter}}},CE={initial:"exit",animate:"enter",exit:"exit",variants:Qq},Xq=S.forwardRef(function(t,r){const{unmountOnExit:n,in:a,reverse:o=!0,initialScale:s=.95,className:l,transition:u,transitionEnd:c,delay:d,...f}=t,m=n?a&&n:!0,g=a||n?"enter":"exit",x={initialScale:s,reverse:o,transition:u,transitionEnd:c,delay:d};return w.jsx(Zu,{custom:x,children:m&&w.jsx(ni.div,{ref:r,className:ke("chakra-offset-slide",l),...CE,animate:g,custom:x,...f})})});Xq.displayName="ScaleFade";var Kq={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:a})=>{var o;return{opacity:0,x:e,y:t,transition:(o=r==null?void 0:r.exit)!=null?o:Js.exit(Zs.exit,a),transitionEnd:n==null?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:(n=e==null?void 0:e.enter)!=null?n:Js.enter(Zs.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:a,delay:o})=>{var s;const l={x:t,y:e};return{opacity:0,transition:(s=r==null?void 0:r.exit)!=null?s:Js.exit(Zs.exit,o),...a?{...l,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...l,...n==null?void 0:n.exit}}}}},Ld={initial:"initial",animate:"enter",exit:"exit",variants:Kq},Zq=S.forwardRef(function(t,r){const{unmountOnExit:n,in:a,reverse:o=!0,className:s,offsetX:l=0,offsetY:u=8,transition:c,transitionEnd:d,delay:f,...m}=t,g=n?a&&n:!0,x=a||n?"enter":"exit",p={offsetX:l,offsetY:u,reverse:o,transition:c,transitionEnd:d,delay:f};return w.jsx(Zu,{custom:p,children:g&&w.jsx(ni.div,{ref:r,className:ke("chakra-offset-slide",s),custom:p,...Ld,animate:x,...m})})});Zq.displayName="SlideFade";var[Jq,eQ]=Yr({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function tQ(e){var t;const r=e.split(" "),n=(t=r[0])!=null?t:"",a=r.length>1?r[r.length-1]:"";return n&&a?`${n.charAt(0)}${a.charAt(0)}`:n.charAt(0)}function ME(e){const{name:t,getInitials:r,...n}=e,a=eQ();return w.jsx(fe.div,{role:"img","aria-label":t,...n,__css:a.label,children:t?r==null?void 0:r(t):null})}ME.displayName="AvatarName";var TE=e=>w.jsxs(fe.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[w.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),w.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]}),Pb=he(function(t,r){const{htmlWidth:n,htmlHeight:a,alt:o,...s}=t;return w.jsx("img",{width:n,height:a,ref:r,alt:o,...s})});Pb.displayName="NativeImage";function EE(e){const{loading:t,src:r,srcSet:n,onLoad:a,onError:o,crossOrigin:s,sizes:l,ignoreFallback:u}=e,[c,d]=S.useState("pending");S.useEffect(()=>{d(r?"loading":"pending")},[r]);const f=S.useRef(),m=S.useCallback(()=>{if(!r)return;g();const x=new Image;x.src=r,s&&(x.crossOrigin=s),n&&(x.srcset=n),l&&(x.sizes=l),t&&(x.loading=t),x.onload=p=>{g(),d("loaded"),a==null||a(p)},x.onerror=p=>{g(),d("failed"),o==null||o(p)},f.current=x},[r,s,n,l,a,o,t]),g=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return Tf(()=>{if(!u)return c==="loading"&&m(),()=>{g()}},[c,m,u]),u?"loaded":c}var rQ=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function nQ(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var Pv=he(function(t,r){const{fallbackSrc:n,fallback:a,src:o,srcSet:s,align:l,fit:u,loading:c,ignoreFallback:d,crossOrigin:f,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:g,...x}=t,p=n!==void 0||a!==void 0,$=c!=null||d||!p,b=EE({...t,crossOrigin:f,ignoreFallback:$}),y=rQ(b,m),P={ref:r,objectFit:u,objectPosition:l,...$?x:nQ(x,["onError","onLoad"])};return y?a||w.jsx(fe.img,{as:Pb,className:"chakra-image__placeholder",src:n,...P}):w.jsx(fe.img,{as:Pb,src:o,srcSet:s,crossOrigin:f,loading:c,referrerPolicy:g,className:"chakra-image",...P})});Pv.displayName="Image";function DE(e){const{src:t,srcSet:r,onError:n,onLoad:a,getInitials:o,name:s,borderRadius:l,loading:u,iconLabel:c,icon:d=w.jsx(TE,{}),ignoreFallback:f,referrerPolicy:m,crossOrigin:g}=e,p=EE({src:t,onError:n,crossOrigin:g,ignoreFallback:f})==="loaded";return!t||!p?s?w.jsx(ME,{className:"chakra-avatar__initials",getInitials:o,name:s}):S.cloneElement(d,{role:"img","aria-label":c}):w.jsx(fe.img,{src:t,srcSet:r,alt:s,onLoad:a,referrerPolicy:m,crossOrigin:g??void 0,className:"chakra-avatar__img",loading:u,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}})}DE.displayName="AvatarImage";var aQ={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},E_=he((e,t)=>{const r=Mo("Avatar",e),[n,a]=S.useState(!1),{src:o,srcSet:s,name:l,showBorder:u,borderRadius:c="full",onError:d,onLoad:f,getInitials:m=tQ,icon:g=w.jsx(TE,{}),iconLabel:x=" avatar",loading:p,children:$,borderColor:b,ignoreFallback:y,crossOrigin:P,referrerPolicy:M,...A}=mr(e),F={borderRadius:c,borderWidth:u?"2px":void 0,...aQ,...r.container};return b&&(F.borderColor=b),w.jsx(fe.span,{ref:t,...A,className:ke("chakra-avatar",e.className),"data-loaded":en(n),__css:F,children:w.jsxs(Jq,{value:r,children:[w.jsx(DE,{src:o,srcSet:s,loading:p,onLoad:oo(f,()=>{a(!0)}),onError:d,getInitials:m,name:l,borderRadius:c,icon:g,iconLabel:x,ignoreFallback:y,crossOrigin:P,referrerPolicy:M}),$]})})});E_.displayName="Avatar";function D_(e){return S.Children.toArray(e).filter(t=>S.isValidElement(t))}var[zme,iQ]=Yr({strict:!1,name:"ButtonGroupContext"});function oQ(e){const[t,r]=S.useState(!e);return{ref:S.useCallback(o=>{o&&r(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function $b(e){const{children:t,className:r,...n}=e,a=S.isValidElement(t)?S.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=ke("chakra-button__icon",r);return w.jsx(fe.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:o,children:a})}$b.displayName="ButtonIcon";function Ob(e){const{label:t,placement:r,spacing:n="0.5rem",children:a=w.jsx(fl,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...l}=e,u=ke("chakra-button__spinner",o),c=r==="start"?"marginEnd":"marginStart",d=S.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,c,n]);return w.jsx(fe.div,{className:u,...l,__css:d,children:a})}Ob.displayName="ButtonSpinner";var Ju=he((e,t)=>{const r=iQ(),n=ri("Button",{...r,...e}),{isDisabled:a=r==null?void 0:r.isDisabled,isLoading:o,isActive:s,children:l,leftIcon:u,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:m,spinner:g,spinnerPlacement:x="start",className:p,as:$,...b}=mr(e),y=S.useMemo(()=>{const F={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:F}}},[n,r]),{ref:P,type:M}=oQ($),A={rightIcon:c,leftIcon:u,iconSpacing:f,children:l};return w.jsxs(fe.button,{ref:Uq(t,P),as:$,type:m??M,"data-active":en(s),"data-loading":en(o),__css:y,className:ke("chakra-button",p),...b,disabled:a||o,children:[o&&x==="start"&&w.jsx(Ob,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:g}),o?d||w.jsx(fe.span,{opacity:0,children:w.jsx(N$,{...A})}):w.jsx(N$,{...A}),o&&x==="end"&&w.jsx(Ob,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:g})]})});Ju.displayName="Button";function N$(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:a}=e;return w.jsxs(w.Fragment,{children:[t&&w.jsx($b,{marginEnd:a,children:t}),n,r&&w.jsx($b,{marginStart:a,children:r})]})}var[sQ,lQ]=Yr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[uQ,jE]=Yr({strict:!1,name:"FormControlContext"});function cQ(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:a,isReadOnly:o,...s}=e,l=S.useId(),u=t||`field-${l}`,c=`${u}-label`,d=`${u}-feedback`,f=`${u}-helptext`,[m,g]=S.useState(!1),[x,p]=S.useState(!1),[$,b]=S.useState(!1),y=S.useCallback((L={},z=null)=>({id:f,...L,ref:Lf(z,q=>{q&&p(!0)})}),[f]),P=S.useCallback((L={},z=null)=>({...L,ref:z,"data-focus":en($),"data-disabled":en(a),"data-invalid":en(n),"data-readonly":en(o),id:L.id!==void 0?L.id:c,htmlFor:L.htmlFor!==void 0?L.htmlFor:u}),[u,a,$,n,o,c]),M=S.useCallback((L={},z=null)=>({id:d,...L,ref:Lf(z,q=>{q&&g(!0)}),"aria-live":"polite"}),[d]),A=S.useCallback((L={},z=null)=>({...L,...s,ref:z,role:"group","data-focus":en($),"data-disabled":en(a),"data-invalid":en(n),"data-readonly":en(o)}),[s,a,$,n,o]),F=S.useCallback((L={},z=null)=>({...L,ref:z,role:"presentation","aria-hidden":!0,children:L.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!o,isDisabled:!!a,isFocused:!!$,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:x,setHasHelpText:p,id:u,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:M,getRootProps:A,getLabelProps:P,getRequiredIndicatorProps:F}}var dQ=he(function(t,r){const n=Mo("Form",t),a=mr(t),{getRootProps:o,htmlProps:s,...l}=cQ(a),u=ke("chakra-form-control",t.className);return w.jsx(uQ,{value:l,children:w.jsx(sQ,{value:n,children:w.jsx(fe.div,{...o({},r),className:u,__css:n.container})})})});dQ.displayName="FormControl";var fQ=he(function(t,r){const n=jE(),a=lQ(),o=ke("chakra-form__helper-text",t.className);return w.jsx(fe.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:a.helperText,className:o})});fQ.displayName="FormHelperText";function IE(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:a,...o}=hQ(e);return{...o,disabled:t,readOnly:n,required:a,"aria-invalid":Yp(r),"aria-required":Yp(a),"aria-readonly":Yp(n)}}function hQ(e){var t,r,n;const a=jE(),{id:o,disabled:s,readOnly:l,required:u,isRequired:c,isInvalid:d,isReadOnly:f,isDisabled:m,onFocus:g,onBlur:x,...p}=e,$=e["aria-describedby"]?[e["aria-describedby"]]:[];return a!=null&&a.hasFeedbackText&&(a!=null&&a.isInvalid)&&$.push(a.feedbackId),a!=null&&a.hasHelpText&&$.push(a.helpTextId),{...p,"aria-describedby":$.join(" ")||void 0,id:o??(a==null?void 0:a.id),isDisabled:(t=s??m)!=null?t:a==null?void 0:a.isDisabled,isReadOnly:(r=l??f)!=null?r:a==null?void 0:a.isReadOnly,isRequired:(n=u??c)!=null?n:a==null?void 0:a.isRequired,isInvalid:d??(a==null?void 0:a.isInvalid),onFocus:oo(a==null?void 0:a.onFocus,g),onBlur:oo(a==null?void 0:a.onBlur,x)}}function mQ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var Cb="data-focus-lock",AE="data-focus-lock-disabled",vQ="data-no-focus-lock",pQ="data-autofocus-inside",gQ="data-no-autofocus";function Pg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bQ(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var yQ=typeof window<"u"?S.useLayoutEffect:S.useEffect,L$=new WeakMap;function FE(e,t){var r=bQ(null,function(n){return e.forEach(function(a){return Pg(a,n)})});return yQ(function(){var n=L$.get(r);if(n){var a=new Set(n),o=new Set(e),s=r.current;a.forEach(function(l){o.has(l)||Pg(l,null)}),o.forEach(function(l){a.has(l)||Pg(l,s)})}L$.set(r,e)},[e]),r}var $g={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},ea=function(){return ea=Object.assign||function(t){for(var r,n=1,a=arguments.length;n=0}).sort(LQ)},WQ=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],R_=WQ.join(","),BQ="".concat(R_,", [data-focus-guard]"),KE=function(e,t){return sa((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?BQ:R_)?[n]:[],KE(n))},[])},VQ=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?Uu([e.contentDocument.body],t):[e]},Uu=function(e,t){return e.reduce(function(r,n){var a,o=KE(n,t),s=(a=[]).concat.apply(a,o.map(function(l){return VQ(l,t)}));return r.concat(s,n.parentNode?sa(n.parentNode.querySelectorAll(R_)).filter(function(l){return l===n}):[])},[])},HQ=function(e){var t=e.querySelectorAll("[".concat(pQ,"]"));return sa(t).map(function(r){return Uu([r])}).reduce(function(r,n){return r.concat(n)},[])},k_=function(e,t){return sa(e).filter(function(r){return UE(t,r)}).filter(function(r){return RQ(r)})},z$=function(e,t){return t===void 0&&(t=new Map),sa(e).filter(function(r){return GE(t,r)})},N_=function(e,t,r){return F_(k_(Uu(e,r),t),!0,r)},$0=function(e,t){return F_(k_(Uu(e),t),!1)},YQ=function(e,t){return k_(HQ(e),t)},el=function(e,t){return e.shadowRoot?el(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:sa(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var a=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return a?el(a,t):!1}return el(r,t)})},UQ=function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(a),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(s,l){return!t.has(l)})},ZE=function(e){return e.parentNode?ZE(e.parentNode):e},L_=function(e){var t=sl(e);return t.filter(Boolean).reduce(function(r,n){var a=n.getAttribute(Cb);return r.push.apply(r,a?UQ(sa(ZE(n).querySelectorAll("[".concat(Cb,'="').concat(a,'"]:not([').concat(AE,'="disabled"])')))):[n]),r},[])},GQ=function(e){try{return e()}catch{return}},Wf=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Wf(t.shadowRoot):t instanceof HTMLIFrameElement&&GQ(function(){return t.contentWindow.document})?Wf(t.contentWindow.document):t}},qQ=function(e,t){return e===t},QQ=function(e,t){return!!sa(e.querySelectorAll("iframe")).some(function(r){return qQ(r,t)})},JE=function(e,t){return t===void 0&&(t=Wf(VE(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:L_(e).some(function(r){return el(r,t)||QQ(r,t)})},XQ=function(e){e===void 0&&(e=document);var t=Wf(e);return t?sa(e.querySelectorAll("[".concat(vQ,"]"))).some(function(r){return el(r,t)}):!1},KQ=function(e,t){return t.filter(XE).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},z_=function(e,t){return XE(e)&&e.name?KQ(e,t):e},ZQ=function(e){var t=new Set;return e.forEach(function(r){return t.add(z_(r,e))}),e.filter(function(r){return t.has(r)})},W$=function(e){return e[0]&&e.length>1?z_(e[0],e):e[0]},B$=function(e,t){return e.indexOf(z_(t,e))},Eb="NEW_FOCUS",JQ=function(e,t,r,n,a){var o=e.length,s=e[0],l=e[o-1],u=A_(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?r.indexOf(n):-1,d=a?r.indexOf(a):c,f=a?e.indexOf(a):-1;if(c===-1)return f!==-1?f:Eb;if(f===-1)return Eb;var m=c-d,g=r.indexOf(s),x=r.indexOf(l),p=ZQ(r),$=n!==void 0?p.indexOf(n):-1,b=$-(a?p.indexOf(a):c);if(!m&&f>=0||t.length===0)return f;var y=B$(e,t[0]),P=B$(e,t[t.length-1]);if(c<=g&&u&&Math.abs(m)>1)return P;if(c>=x&&u&&Math.abs(m)>1)return y;if(m&&Math.abs(b)>1)return f;if(c<=g)return P;if(c>x)return y;if(m)return Math.abs(m)>1?f:(o+f+m)%o}},eX=function(e){return function(t){var r,n=(r=qE(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},V$=function(e,t,r){var n=e.map(function(o){var s=o.node;return s}),a=z$(n.filter(eX(r)));return a&&a.length?W$(a):W$(z$(t))},Db=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Db(e.parentNode.host||e.parentNode,t),t},Og=function(e,t){for(var r=Db(e),n=Db(t),a=0;a=0)return o}return!1},e4=function(e,t,r){var n=sl(e),a=sl(t),o=n[0],s=!1;return a.filter(Boolean).forEach(function(l){s=Og(s||l,l)||s,r.filter(Boolean).forEach(function(u){var c=Og(o,u);c&&(!s||el(c,s)?s=c:s=Og(c,s))})}),s},H$=function(e,t){return e.reduce(function(r,n){return r.concat(YQ(n,t))},[])},tX=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(NQ)},rX=function(e,t){var r=Wf(sl(e).length>0?document:VE(e).ownerDocument),n=L_(e).filter(Tb),a=e4(r||e,e,n),o=new Map,s=$0(n,o),l=s.filter(function(x){var p=x.node;return Tb(p)});if(l[0]){var u=$0([a],o).map(function(x){var p=x.node;return p}),c=tX(u,l),d=c.map(function(x){var p=x.node;return p}),f=c.filter(function(x){var p=x.tabIndex;return p>=0}).map(function(x){var p=x.node;return p}),m=JQ(d,f,u,r,t);if(m===Eb){var g=V$(s,f,H$(n,o))||V$(s,d,H$(n,o));if(g)return{node:g};console.warn("focus-lock: cannot find any node to move focus into");return}return m===void 0?m:c[m]}},nX=function(e){var t=L_(e).filter(Tb),r=e4(e,e,t),n=F_(Uu([r],!0),!0,!0),a=Uu(t,!1);return n.map(function(o){var s=o.node,l=o.index;return{node:s,index:l,lockItem:a.indexOf(s)>=0,guard:A_(s)}})},W_=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Cg=0,Mg=!1,t4=function(e,t,r){r===void 0&&(r={});var n=rX(e,t);if(!Mg&&n){if(Cg>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Mg=!0,setTimeout(function(){Mg=!1},1);return}Cg++,W_(n.node,r.focusOptions),Cg--}};function hd(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var aX=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:hd(r),parent:hd(r.parentElement),left:hd(r.previousElementSibling),right:hd(r.nextElementSibling)}),r=r.parentElement;return{element:hd(e),stack:t,ownerDocument:e.ownerDocument}},iX=function(e){var t,r,n,a,o;if(e)for(var s=e.stack,l=e.ownerDocument,u=new Map,c=0,d=s;c-1&&(g.filter(function(p){var $=p.guard,b=p.node;return $&&b.dataset.focusAutoGuard}).forEach(function(p){var $=p.node;return $.removeAttribute("tabIndex")}),Y$(x,g.length,1,g),Y$(x,-1,-1,g))}}}return t},a4=function(t){O0()&&t&&(t.stopPropagation(),t.preventDefault())},V_=function(){return B_(O0)},PX=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||yX(n,r)},$X=function(){return null},i4=function(){Bf="just",B_(function(){Bf="meanwhile"})},OX=function(){document.addEventListener("focusin",a4),document.addEventListener("focusout",V_),window.addEventListener("blur",i4)},CX=function(){document.removeEventListener("focusin",a4),document.removeEventListener("focusout",V_),window.removeEventListener("blur",i4)};function MX(e){return e.filter(function(t){var r=t.disabled;return!r})}var o4={moveFocusInside:t4,focusInside:JE,focusNextElement:cX,focusPrevElement:dX,focusFirstElement:fX,focusLastElement:hX,captureFocusRestore:oX};function TX(e){var t=e.slice(-1)[0];t&&!Du&&OX();var r=Du,n=r&&t&&t.id===r.id;Du=t,r&&!n&&(r.onDeactivation(),e.filter(function(a){var o=a.id;return o===r.id}).length||r.returnFocus(!t)),t?(yu=null,(!n||r.observed!==t.observed)&&t.onActivation(o4),O0(),B_(O0)):(CX(),yu=null)}WE.assignSyncMedium(PX);BE.assignMedium(V_);wQ.assignMedium(function(e){return e(o4)});const EX=EQ(MX,TX)($X);var jb=S.forwardRef(function(t,r){return S.createElement(I_,ol({sideCar:EX,ref:r},t))}),s4=I_.propTypes||{};s4.sideCar;mQ(s4,["sideCar"]);jb.propTypes={};function DX(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function jX(e){var t;if(!DX(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}var IX=e=>e.hasAttribute("tabindex");function AX(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function l4(e){return e.parentElement&&l4(e.parentElement)?!0:e.hidden}function FX(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function RX(e){if(!jX(e)||l4(e)||AX(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():FX(e)?!0:IX(e)}var kX=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],NX=kX.join(),LX=e=>e.offsetWidth>0&&e.offsetHeight>0;function zX(e){const t=Array.from(e.querySelectorAll(NX));return t.unshift(e),t.filter(r=>RX(r)&&LX(r))}var U$,WX=(U$=jb.default)!=null?U$:jb,u4=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:a,children:o,isDisabled:s,autoFocus:l,persistentFocus:u,lockFocusAcrossFrames:c}=e,d=S.useCallback(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&zX(n.current).length===0&&requestAnimationFrame(()=>{var x;(x=n.current)==null||x.focus()})},[t,n]),f=S.useCallback(()=>{var g;(g=r==null?void 0:r.current)==null||g.focus()},[r]),m=a&&!r;return w.jsx(WX,{crossFrame:c,persistentFocus:u,autoFocus:l,disabled:s,onActivation:d,onDeactivation:f,returnFocus:m,children:o})};u4.displayName="FocusLock";var BX=gV?S.useLayoutEffect:S.useEffect;function G$(e,t=[]){const r=S.useRef(e);return BX(()=>{r.current=e}),S.useCallback((...n)=>{var a;return(a=r.current)==null?void 0:a.call(r,...n)},t)}function VX(e,t){const r=S.useId();return S.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function HX(e,t){const r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}function YX(e={}){const{onClose:t,onOpen:r,isOpen:n,id:a}=e,o=G$(r),s=G$(t),[l,u]=S.useState(e.defaultIsOpen||!1),[c,d]=HX(n,l),f=VX(a,"disclosure"),m=S.useCallback(()=>{c||u(!1),s==null||s()},[c,s]),g=S.useCallback(()=>{c||u(!0),o==null||o()},[c,o]),x=S.useCallback(()=>{(d?m:g)()},[d,g,m]);return{isOpen:!!d,onOpen:g,onClose:m,onToggle:x,isControlled:c,getButtonProps:(p={})=>({...p,"aria-expanded":d,"aria-controls":f,onClick:wV(p.onClick,x)}),getDisclosureProps:(p={})=>({...p,hidden:!d,id:f})}}var[UX,GX]=Yr({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),$v=he(function(t,r){const n=Mo("Input",t),{children:a,className:o,...s}=mr(t),l=ke("chakra-input__group",o),u={},c=D_(a),d=n.field;c.forEach(m=>{var g,x;n&&(d&&m.type.id==="InputLeftElement"&&(u.paddingStart=(g=d.height)!=null?g:d.h),d&&m.type.id==="InputRightElement"&&(u.paddingEnd=(x=d.height)!=null?x:d.h),m.type.id==="InputRightAddon"&&(u.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(u.borderStartRadius=0))});const f=c.map(m=>{var g,x;const p=Jy({size:((g=m.props)==null?void 0:g.size)||t.size,variant:((x=m.props)==null?void 0:x.variant)||t.variant});return m.type.id!=="Input"?S.cloneElement(m,p):S.cloneElement(m,Object.assign(p,u,m.props))});return w.jsx(fe.div,{className:l,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...s,children:w.jsx(UX,{value:n,children:f})})});$v.displayName="InputGroup";var qX=fe("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Ov=he(function(t,r){var n,a;const{placement:o="left",...s}=t,l=GX(),u=l.field,d={[o==="left"?"insetStart":"insetEnd"]:"0",width:(n=u==null?void 0:u.height)!=null?n:u==null?void 0:u.h,height:(a=u==null?void 0:u.height)!=null?a:u==null?void 0:u.h,fontSize:u==null?void 0:u.fontSize,...l.element};return w.jsx(qX,{ref:r,__css:d,...s})});Ov.id="InputElement";Ov.displayName="InputElement";var ah=he(function(t,r){const{className:n,...a}=t,o=ke("chakra-input__left-element",n);return w.jsx(Ov,{ref:r,placement:"left",className:o,...a})});ah.id="InputLeftElement";ah.displayName="InputLeftElement";var c4=he(function(t,r){const{className:n,...a}=t,o=ke("chakra-input__right-element",n);return w.jsx(Ov,{ref:r,placement:"right",className:o,...a})});c4.id="InputRightElement";c4.displayName="InputRightElement";var ih=he(function(t,r){const{htmlSize:n,...a}=t,o=Mo("Input",a),s=mr(a),l=IE(s),u=ke("chakra-input",t.className);return w.jsx(fe.input,{size:n,...l,__css:o.field,ref:r,className:u})});ih.displayName="Input";ih.id="Input";var Ga=he(function(t,r){const n=ri("Link",t),{className:a,isExternal:o,...s}=mr(t);return w.jsx(fe.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:r,className:ke("chakra-link",a),...s,__css:n})});Ga.displayName="Link";var[QX,d4]=Yr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Cv=he(function(t,r){const n=Mo("List",t),{children:a,styleType:o="none",stylePosition:s,spacing:l,...u}=mr(t),c=D_(a),f=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return w.jsx(QX,{value:n,children:w.jsx(fe.ul,{ref:r,listStyleType:o,listStylePosition:s,role:"list",__css:{...n.container,...f},...u,children:c})})});Cv.displayName="List";var XX=he((e,t)=>{const{as:r,...n}=e;return w.jsx(Cv,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});XX.displayName="OrderedList";var KX=he(function(t,r){const{as:n,...a}=t;return w.jsx(Cv,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...a})});KX.displayName="UnorderedList";var f4=he(function(t,r){const n=d4();return w.jsx(fe.li,{ref:r,...t,__css:n.item})});f4.displayName="ListItem";var ZX=he(function(t,r){const n=d4();return w.jsx(Lr,{ref:r,role:"presentation",...t,__css:n.icon})});ZX.displayName="ListIcon";var H_=he(function(t,r){const{templateAreas:n,gap:a,rowGap:o,columnGap:s,column:l,row:u,autoFlow:c,autoRows:d,templateRows:f,autoColumns:m,templateColumns:g,...x}=t,p={display:"grid",gridTemplateAreas:n,gridGap:a,gridRowGap:o,gridColumnGap:s,gridAutoColumns:m,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:g};return w.jsx(fe.div,{ref:r,__css:p,...x})});H_.displayName="Grid";function Mv(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):jn(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}var Tv=he(function(t,r){const{columns:n,spacingX:a,spacingY:o,spacing:s,minChildWidth:l,...u}=t,c=mM(),d=l?eK(l,c):tK(n);return w.jsx(H_,{ref:r,gap:s,columnGap:a,rowGap:o,templateColumns:d,...u})});Tv.displayName="SimpleGrid";function JX(e){return typeof e=="number"?`${e}px`:e}function eK(e,t){return Mv(e,r=>{const n=DR("sizes",r,JX(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function tK(e){return Mv(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Qe=he(function(t,r){const n=ri("Text",t),{className:a,align:o,decoration:s,casing:l,...u}=mr(t),c=Jy({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return w.jsx(fe.p,{ref:r,className:ke("chakra-text",t.className),...c,...u,__css:n})});Qe.displayName="Text";var h4=e=>w.jsx(fe.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});h4.displayName="StackItem";function rK(e){const{spacing:t,direction:r}=e,n={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{"&":Mv(r,a=>n[a])}}var Y_=he((e,t)=>{const{isInline:r,direction:n,align:a,justify:o,spacing:s="0.5rem",wrap:l,children:u,divider:c,className:d,shouldWrapChildren:f,...m}=e,g=r?"row":n??"column",x=S.useMemo(()=>rK({spacing:s,direction:g}),[s,g]),p=!!c,$=!f&&!p,b=S.useMemo(()=>{const P=D_(u);return $?P:P.map((M,A)=>{const F=typeof M.key<"u"?M.key:A,L=A+1===P.length,q=f?w.jsx(h4,{children:M},F):M;if(!p)return q;const Q=S.cloneElement(c,{__css:x}),ve=L?null:Q;return w.jsxs(S.Fragment,{children:[q,ve]},F)})},[c,x,p,$,f,u]),y=ke("chakra-stack",d);return w.jsx(fe.div,{ref:t,display:"flex",alignItems:a,justifyContent:o,flexDirection:g,flexWrap:l,gap:p?void 0:s,className:y,...m,children:b})});Y_.displayName="Stack";var cn=he((e,t)=>w.jsx(Y_,{align:"center",...e,direction:"column",ref:t}));cn.displayName="VStack";var qa=he((e,t)=>w.jsx(Y_,{align:"center",...e,direction:"row",ref:t}));qa.displayName="HStack";function q$(e){return Mv(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Ib=he(function(t,r){const{area:n,colSpan:a,colStart:o,colEnd:s,rowEnd:l,rowSpan:u,rowStart:c,...d}=t,f=Jy({gridArea:n,gridColumn:q$(a),gridRow:q$(u),gridColumnStart:o,gridColumnEnd:s,gridRowStart:c,gridRowEnd:l});return w.jsx(fe.div,{ref:r,__css:f,...d})});Ib.displayName="GridItem";var Do=he(function(t,r){const n=ri("Heading",t),{className:a,...o}=mr(t);return w.jsx(fe.h2,{ref:r,className:ke("chakra-heading",t.className),...o,__css:n})});Do.displayName="Heading";var Mt=fe("div");Mt.displayName="Box";var m4=he(function(t,r){const{size:n,centerContent:a=!0,...o}=t,s=a?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return w.jsx(Mt,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...o})});m4.displayName="Square";var nK=he(function(t,r){const{size:n,...a}=t;return w.jsx(m4,{size:n,ref:r,borderRadius:"9999px",...a})});nK.displayName="Circle";var v4=he(function(t,r){const n=ri("Badge",t),{className:a,...o}=mr(t);return w.jsx(fe.span,{ref:r,className:ke("chakra-badge",t.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});v4.displayName="Badge";var Lm=he(function(t,r){const{className:n,centerContent:a,...o}=mr(t),s=ri("Container",t);return w.jsx(fe.div,{ref:r,className:ke("chakra-container",n),...o,__css:{...s,...a&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Lm.displayName="Container";var Ys=he(function(t,r){const{direction:n,align:a,justify:o,wrap:s,basis:l,grow:u,shrink:c,...d}=t,f={display:"flex",flexDirection:n,alignItems:a,justifyContent:o,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c};return w.jsx(fe.div,{ref:r,__css:f,...d})});Ys.displayName="Flex";var aK={slideInBottom:{...Ld,custom:{offsetY:16,reverse:!0}},slideInRight:{...Ld,custom:{offsetX:16,reverse:!0}},slideInTop:{...Ld,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Ld,custom:{offsetX:-16,reverse:!0}},scale:{...CE,custom:{initialScale:.95,reverse:!0}},none:{}},iK=fe(ni.section),oK=e=>aK[e||"none"],p4=S.forwardRef((e,t)=>{const{preset:r,motionProps:n=oK(r),...a}=e;return w.jsx(iK,{ref:t,...n,...a})});p4.displayName="ModalTransition";var sK=Object.defineProperty,lK=(e,t,r)=>t in e?sK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uK=(e,t,r)=>(lK(e,t+"",r),r),cK=class{constructor(){uK(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},Ab=new cK;function g4(e,t){const[r,n]=S.useState(0);return S.useEffect(()=>{const a=e.current;if(a){if(t){const o=Ab.add(a);n(o)}return()=>{Ab.remove(a),n(0)}}},[t,e]),r}var dK=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wl=new WeakMap,Kh=new WeakMap,Zh={},Tg=0,b4=function(e){return e&&(e.host||b4(e.parentNode))},fK=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=b4(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},hK=function(e,t,r,n){var a=fK(t,Array.isArray(e)?e:[e]);Zh[r]||(Zh[r]=new WeakMap);var o=Zh[r],s=[],l=new Set,u=new Set(a),c=function(f){!f||l.has(f)||(l.add(f),c(f.parentNode))};a.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))d(m);else try{var g=m.getAttribute(n),x=g!==null&&g!=="false",p=(Wl.get(m)||0)+1,$=(o.get(m)||0)+1;Wl.set(m,p),o.set(m,$),s.push(m),p===1&&x&&Kh.set(m,!0),$===1&&m.setAttribute(r,"true"),x||m.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",m,b)}})};return d(t),l.clear(),Tg++,function(){s.forEach(function(f){var m=Wl.get(f)-1,g=o.get(f)-1;Wl.set(f,m),o.set(f,g),m||(Kh.has(f)||f.removeAttribute(n),Kh.delete(f)),g||f.removeAttribute(r)}),Tg--,Tg||(Wl=new WeakMap,Wl=new WeakMap,Kh=new WeakMap,Zh={})}},mK=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=dK(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),hK(n,a,r,"aria-hidden")):function(){return null}};function vK(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:a=!0,closeOnEsc:o=!0,useInert:s=!0,onOverlayClick:l,onEsc:u}=e,c=S.useRef(null),d=S.useRef(null),[f,m,g]=gK(n,"chakra-modal","chakra-modal--header","chakra-modal--body");pK(c,t&&s);const x=g4(c,t),p=S.useRef(null),$=S.useCallback(q=>{p.current=q.target},[]),b=S.useCallback(q=>{q.key==="Escape"&&(q.stopPropagation(),o&&(r==null||r()),u==null||u())},[o,r,u]),[y,P]=S.useState(!1),[M,A]=S.useState(!1),F=S.useCallback((q={},Q=null)=>({role:"dialog",...q,ref:Lf(Q,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?m:void 0,"aria-describedby":M?g:void 0,onClick:oo(q.onClick,ve=>ve.stopPropagation())}),[g,M,f,m,y]),L=S.useCallback(q=>{q.stopPropagation(),p.current===q.target&&Ab.isTopModal(c.current)&&(a&&(r==null||r()),l==null||l())},[r,a,l]),z=S.useCallback((q={},Q=null)=>({...q,ref:Lf(Q,d),onClick:oo(q.onClick,L),onKeyDown:oo(q.onKeyDown,b),onMouseDown:oo(q.onMouseDown,$)}),[b,$,L]);return{isOpen:t,onClose:r,headerId:m,bodyId:g,setBodyMounted:A,setHeaderMounted:P,dialogRef:c,overlayRef:d,getDialogProps:F,getDialogContainerProps:z,index:x}}function pK(e,t){const r=e.current;S.useEffect(()=>{if(!(!e.current||!t))return mK(e.current)},[t,e,r])}function gK(e,...t){const r=S.useId(),n=e||r;return S.useMemo(()=>t.map(a=>`${a}-${n}`),[n,t])}var[bK,ec]=Yr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[yK,ll]=Yr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),y4=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:m,lockFocusAcrossFrames:g,onCloseComplete:x}=t,p=Mo("Modal",t),b={...vK(t),autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:m,lockFocusAcrossFrames:g};return w.jsx(yK,{value:b,children:w.jsx(bK,{value:p,children:w.jsx(Zu,{onExitComplete:x,children:b.isOpen&&w.jsx(Kf,{...r,children:n})})})})};y4.displayName="Modal";var zm="right-scroll-bar-position",Wm="width-before-scroll-bar",_K="with-scroll-bars-hidden",xK="--removed-body-scroll-bar-size",_4=LE(),Eg=function(){},Ev=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:Eg,onWheelCapture:Eg,onTouchMoveCapture:Eg}),a=n[0],o=n[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,g=e.noIsolation,x=e.inert,p=e.allowPinchZoom,$=e.as,b=$===void 0?"div":$,y=e.gapMode,P=RE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=m,A=FE([r,t]),F=ea(ea({},P),a);return S.createElement(S.Fragment,null,d&&S.createElement(M,{sideCar:_4,removeScrollBar:c,shards:f,noIsolation:g,inert:x,setCallbacks:o,allowPinchZoom:!!p,lockRef:r,gapMode:y}),s?S.cloneElement(S.Children.only(l),ea(ea({},F),{ref:A})):S.createElement(b,ea({},F,{className:u,ref:A}),l))});Ev.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ev.classNames={fullWidth:Wm,zeroRight:zm};var wK=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SK(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wK();return t&&e.setAttribute("nonce",t),e}function PK(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $K(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var OK=function(){var e=0,t=null;return{add:function(r){e==0&&(t=SK())&&(PK(t,r),$K(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},CK=function(){var e=OK();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},x4=function(){var e=CK(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},MK={left:0,top:0,right:0,gap:0},Dg=function(e){return parseInt(e||"",10)||0},TK=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Dg(r),Dg(n),Dg(a)]},EK=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MK;var t=TK(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},DK=x4(),Iu="data-scroll-locked",jK=function(e,t,r,n){var a=e.left,o=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),` - .`.concat(_K,` { - overflow: hidden `).concat(n,`; - padding-right: `).concat(l,"px ").concat(n,`; - } - body[`).concat(Iu,`] { - overflow: hidden `).concat(n,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` - padding-left: `.concat(a,`px; - padding-top: `).concat(o,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(l,"px ").concat(n,`; - `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),` - } - - .`).concat(zm,` { - right: `).concat(l,"px ").concat(n,`; - } - - .`).concat(Wm,` { - margin-right: `).concat(l,"px ").concat(n,`; - } - - .`).concat(zm," .").concat(zm,` { - right: 0 `).concat(n,`; - } - - .`).concat(Wm," .").concat(Wm,` { - margin-right: 0 `).concat(n,`; - } - - body[`).concat(Iu,`] { - `).concat(xK,": ").concat(l,`px; - } -`)},Q$=function(){var e=parseInt(document.body.getAttribute(Iu)||"0",10);return isFinite(e)?e:0},IK=function(){S.useEffect(function(){return document.body.setAttribute(Iu,(Q$()+1).toString()),function(){var e=Q$()-1;e<=0?document.body.removeAttribute(Iu):document.body.setAttribute(Iu,e.toString())}},[])},AK=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;IK();var o=S.useMemo(function(){return EK(a)},[a]);return S.createElement(DK,{styles:jK(o,!t,a,r?"":"!important")})},Fb=!1;if(typeof window<"u")try{var Jh=Object.defineProperty({},"passive",{get:function(){return Fb=!0,!0}});window.addEventListener("test",Jh,Jh),window.removeEventListener("test",Jh,Jh)}catch{Fb=!1}var Bl=Fb?{passive:!1}:!1,FK=function(e){return e.tagName==="TEXTAREA"},w4=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!FK(e)&&r[t]==="visible")},RK=function(e){return w4(e,"overflowY")},kK=function(e){return w4(e,"overflowX")},X$=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=S4(e,n);if(a){var o=P4(e,n),s=o[1],l=o[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},NK=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},LK=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},S4=function(e,t){return e==="v"?RK(t):kK(t)},P4=function(e,t){return e==="v"?NK(t):LK(t)},zK=function(e,t){return e==="h"&&t==="rtl"?-1:1},WK=function(e,t,r,n,a){var o=zK(e,window.getComputedStyle(t).direction),s=o*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,m=0;do{var g=P4(e,l),x=g[0],p=g[1],$=g[2],b=p-$-o*x;(x||b)&&S4(e,l)&&(f+=b,m+=x),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(d&&(Math.abs(f)<1||!a)||!d&&(Math.abs(m)<1||!a))&&(c=!0),c},em=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},K$=function(e){return[e.deltaX,e.deltaY]},Z$=function(e){return e&&"current"in e?e.current:e},BK=function(e,t){return e[0]===t[0]&&e[1]===t[1]},VK=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},HK=0,Vl=[];function YK(e){var t=S.useRef([]),r=S.useRef([0,0]),n=S.useRef(),a=S.useState(HK++)[0],o=S.useState(x4)[0],s=S.useRef(e);S.useEffect(function(){s.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var p=_Q([e.lockRef.current],(e.shards||[]).map(Z$),!0).filter(Boolean);return p.forEach(function($){return $.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),p.forEach(function($){return $.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=S.useCallback(function(p,$){if("touches"in p&&p.touches.length===2)return!s.current.allowPinchZoom;var b=em(p),y=r.current,P="deltaX"in p?p.deltaX:y[0]-b[0],M="deltaY"in p?p.deltaY:y[1]-b[1],A,F=p.target,L=Math.abs(P)>Math.abs(M)?"h":"v";if("touches"in p&&L==="h"&&F.type==="range")return!1;var z=X$(L,F);if(!z)return!0;if(z?A=L:(A=L==="v"?"h":"v",z=X$(L,F)),!z)return!1;if(!n.current&&"changedTouches"in p&&(P||M)&&(n.current=A),!A)return!0;var q=n.current||A;return WK(q,$,p,q==="h"?P:M,!0)},[]),u=S.useCallback(function(p){var $=p;if(!(!Vl.length||Vl[Vl.length-1]!==o)){var b="deltaY"in $?K$($):em($),y=t.current.filter(function(A){return A.name===$.type&&(A.target===$.target||$.target===A.shadowParent)&&BK(A.delta,b)})[0];if(y&&y.should){$.cancelable&&$.preventDefault();return}if(!y){var P=(s.current.shards||[]).map(Z$).filter(Boolean).filter(function(A){return A.contains($.target)}),M=P.length>0?l($,P[0]):!s.current.noIsolation;M&&$.cancelable&&$.preventDefault()}}},[]),c=S.useCallback(function(p,$,b,y){var P={name:p,delta:$,target:b,should:y,shadowParent:UK(b)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(M){return M!==P})},1)},[]),d=S.useCallback(function(p){r.current=em(p),n.current=void 0},[]),f=S.useCallback(function(p){c(p.type,K$(p),p.target,l(p,e.lockRef.current))},[]),m=S.useCallback(function(p){c(p.type,em(p),p.target,l(p,e.lockRef.current))},[]);S.useEffect(function(){return Vl.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",u,Bl),document.addEventListener("touchmove",u,Bl),document.addEventListener("touchstart",d,Bl),function(){Vl=Vl.filter(function(p){return p!==o}),document.removeEventListener("wheel",u,Bl),document.removeEventListener("touchmove",u,Bl),document.removeEventListener("touchstart",d,Bl)}},[]);var g=e.removeScrollBar,x=e.inert;return S.createElement(S.Fragment,null,x?S.createElement(o,{styles:VK(a)}):null,g?S.createElement(AK,{gapMode:e.gapMode}):null)}function UK(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const GK=xQ(_4,YK);var $4=S.forwardRef(function(e,t){return S.createElement(Ev,ea({},e,{ref:t,sideCar:GK}))});$4.classNames=Ev.classNames;function qK(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:a,blockScrollOnMount:o,allowPinchZoom:s,finalFocusRef:l,returnFocusOnClose:u,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=ll(),[m,g]=oE();S.useEffect(()=>{!m&&g&&setTimeout(g)},[m,g]);const x=g4(n,f);return w.jsx(u4,{autoFocus:t,isDisabled:!r,initialFocusRef:a,finalFocusRef:l,restoreFocus:u,contentRef:n,lockFocusAcrossFrames:d,children:w.jsx($4,{removeScrollBar:!c,allowPinchZoom:s,enabled:x===1&&o,forwardProps:!0,children:e.children})})}var O4=he((e,t)=>{const{className:r,children:n,containerProps:a,motionProps:o,...s}=e,{getDialogProps:l,getDialogContainerProps:u}=ll(),c=l(s,t),d=u(a),f=ke("chakra-modal__content",r),m=ec(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog},x={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer},{motionPreset:p}=ll();return w.jsx(qK,{children:w.jsx(fe.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:x,children:w.jsx(p4,{preset:p,motionProps:o,className:f,...c,__css:g,children:n})})})});O4.displayName="ModalContent";var C4=he((e,t)=>{const{className:r,...n}=e,a=ke("chakra-modal__footer",r),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...ec().footer};return w.jsx(fe.footer,{ref:t,...n,__css:s,className:a})});C4.displayName="ModalFooter";var M4=he((e,t)=>{const{className:r,...n}=e,{headerId:a,setHeaderMounted:o}=ll();S.useEffect(()=>(o(!0),()=>o(!1)),[o]);const s=ke("chakra-modal__header",r),u={flex:0,...ec().header};return w.jsx(fe.header,{ref:t,className:s,id:a,...n,__css:u})});M4.displayName="ModalHeader";var QK=fe(ni.div),T4=he((e,t)=>{const{className:r,transition:n,motionProps:a,...o}=e,s=ke("chakra-modal__overlay",r),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ec().overlay},{motionPreset:c}=ll(),f=a||(c==="none"?{}:OE);return w.jsx(QK,{...f,__css:u,ref:t,className:s,...o})});T4.displayName="ModalOverlay";var E4=he((e,t)=>{const{className:r,...n}=e,{bodyId:a,setBodyMounted:o}=ll();S.useEffect(()=>(o(!0),()=>o(!1)),[o]);const s=ke("chakra-modal__body",r),l=ec();return w.jsx(fe.div,{ref:t,className:s,id:a,...n,__css:l.body})});E4.displayName="ModalBody";var D4=he((e,t)=>{const{onClick:r,className:n,...a}=e,{onClose:o}=ll(),s=ke("chakra-modal__close-btn",n),l=ec();return w.jsx(T_,{ref:t,__css:l.closeButton,className:s,onClick:oo(r,u=>{u.stopPropagation(),o()}),...a})});D4.displayName="ModalCloseButton";var j4=he(function(t,r){const{children:n,placeholder:a,className:o,...s}=t;return w.jsxs(fe.select,{...s,ref:r,className:ke("chakra-select",o),children:[a&&w.jsx("option",{value:"",children:a}),n]})});j4.displayName="SelectField";function XK(e,t){const r={},n={};for(const[a,o]of Object.entries(e))t.includes(a)?r[a]=o:n[a]=o;return[r,n]}var I4=he((e,t)=>{var r;const n=Mo("Select",e),{rootProps:a,placeholder:o,icon:s,color:l,height:u,h:c,minH:d,minHeight:f,iconColor:m,iconSize:g,...x}=mr(e),[p,$]=XK(x,Rk),b=IE($),y={width:"100%",height:"fit-content",position:"relative",color:l},P={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(r=n.field)==null?void 0:r._focus}};return w.jsxs(fe.div,{className:"chakra-select__wrapper",__css:y,...p,...a,children:[w.jsx(j4,{ref:t,height:c??u,minH:d??f,placeholder:o,...b,__css:P,children:e.children}),w.jsx(A4,{"data-disabled":en(b.disabled),...(m||l)&&{color:m||l},__css:n.icon,...g&&{fontSize:g},children:s})]})});I4.displayName="Select";var KK=e=>w.jsx("svg",{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),ZK=fe("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),A4=e=>{const{children:t=w.jsx(KK,{}),...r}=e,n=S.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return w.jsx(ZK,{...r,className:"chakra-select__icon-wrapper",children:S.isValidElement(t)?n:null})};A4.displayName="SelectIcon";/** - * @remix-run/router v1.18.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function U_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function eZ(){return Math.random().toString(36).substr(2,8)}function e3(e,t){return{usr:e.state,key:e.key,idx:t}}function Rb(e,t,r,n){return r===void 0&&(r=null),Vf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hl(t):t,{state:r,key:t&&t.key||n||eZ()})}function C0(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function hl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function tZ(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,s=a.history,l=so.Pop,u=null,c=d();c==null&&(c=0,s.replaceState(Vf({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function f(){l=so.Pop;let $=d(),b=$==null?null:$-c;c=$,u&&u({action:l,location:p.location,delta:b})}function m($,b){l=so.Push;let y=Rb(p.location,$,b);r&&r(y,$),c=d()+1;let P=e3(y,c),M=p.createHref(y);try{s.pushState(P,"",M)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;a.location.assign(M)}o&&u&&u({action:l,location:p.location,delta:1})}function g($,b){l=so.Replace;let y=Rb(p.location,$,b);r&&r(y,$),c=d();let P=e3(y,c),M=p.createHref(y);s.replaceState(P,"",M),o&&u&&u({action:l,location:p.location,delta:0})}function x($){let b=a.location.origin!=="null"?a.location.origin:a.location.href,y=typeof $=="string"?$:C0($);return y=y.replace(/ $/,"%20"),Pt(b,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,b)}let p={get action(){return l},get location(){return e(a,s)},listen($){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(J$,f),u=$,()=>{a.removeEventListener(J$,f),u=null}},createHref($){return t(a,$)},createURL:x,encodeLocation($){let b=x($);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:m,replace:g,go($){return s.go($)}};return p}var t3;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(t3||(t3={}));function rZ(e,t,r){return r===void 0&&(r="/"),nZ(e,t,r,!1)}function nZ(e,t,r,n){let a=typeof t=="string"?hl(t):t,o=G_(a.pathname||"/",r);if(o==null)return null;let s=F4(e);aZ(s);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(Pt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=yo([n,u.relativePath]),d=r.concat(u);o.children&&o.children.length>0&&(Pt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),F4(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:dZ(c,o.index),routesMeta:d})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,s);else for(let u of R4(o.path))a(o,s,u)}),t}function R4(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let s=R4(n.join("/")),l=[];return l.push(...s.map(u=>u===""?o:[o,u].join("/"))),a&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function aZ(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:fZ(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const iZ=/^:[\w-]+$/,oZ=3,sZ=2,lZ=1,uZ=10,cZ=-2,r3=e=>e==="*";function dZ(e,t){let r=e.split("/"),n=r.length;return r.some(r3)&&(n+=cZ),t&&(n+=sZ),r.filter(a=>!r3(a)).reduce((a,o)=>a+(iZ.test(o)?oZ:o===""?lZ:uZ),n)}function fZ(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function hZ(e,t,r){let{routesMeta:n}=e,a={},o="/",s=[];for(let l=0;l{let{paramName:m,isOptional:g}=d;if(m==="*"){let p=l[f]||"";s=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}const x=l[f];return g&&!x?c[m]=void 0:c[m]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function mZ(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),U_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,u)=>(n.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function vZ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return U_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function G_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function pZ(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?hl(e):e;return{pathname:r?r.startsWith("/")?r:gZ(r,t):t,search:_Z(n),hash:xZ(a)}}function gZ(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function jg(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function bZ(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function k4(e,t){let r=bZ(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function N4(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=hl(e):(a=Vf({},e),Pt(!a.pathname||!a.pathname.includes("?"),jg("?","pathname","search",a)),Pt(!a.pathname||!a.pathname.includes("#"),jg("#","pathname","hash",a)),Pt(!a.search||!a.search.includes("#"),jg("#","search","hash",a)));let o=e===""||a.pathname==="",s=o?"/":a.pathname,l;if(s==null)l=r;else{let f=t.length-1;if(!n&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),f-=1;a.pathname=m.join("/")}l=f>=0?t[f]:"/"}let u=pZ(a,l),c=s&&s!=="/"&&s.endsWith("/"),d=(o||s===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const yo=e=>e.join("/").replace(/\/\/+/g,"/"),yZ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_Z=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xZ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function wZ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const L4=["post","put","patch","delete"];new Set(L4);const SZ=["get",...L4];new Set(SZ);/** - * React Router v6.25.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Hf(){return Hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),S.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){n.go(c);return}let f=N4(c,JSON.parse(s),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:yo([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,s,o,e])}function MZ(){let{matches:e}=S.useContext(jo),t=e[e.length-1];return t?t.params:{}}function B4(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=S.useContext(ml),{matches:a}=S.useContext(jo),{pathname:o}=jv(),s=JSON.stringify(k4(a,n.v7_relativeSplatPath));return S.useMemo(()=>N4(e,JSON.parse(s),o,r==="path"),[e,s,o,r])}function TZ(e,t){return EZ(e,t)}function EZ(e,t,r,n){oh()||Pt(!1);let{navigator:a}=S.useContext(ml),{matches:o}=S.useContext(jo),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=jv(),d;if(t){var f;let $=typeof t=="string"?hl(t):t;u==="/"||(f=$.pathname)!=null&&f.startsWith(u)||Pt(!1),d=$}else d=c;let m=d.pathname||"/",g=m;if(u!=="/"){let $=u.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice($.length).join("/")}let x=rZ(e,{pathname:g}),p=FZ(x&&x.map($=>Object.assign({},$,{params:Object.assign({},l,$.params),pathname:yo([u,a.encodeLocation?a.encodeLocation($.pathname).pathname:$.pathname]),pathnameBase:$.pathnameBase==="/"?u:yo([u,a.encodeLocation?a.encodeLocation($.pathnameBase).pathname:$.pathnameBase])})),o,r,n);return t&&p?S.createElement(Dv.Provider,{value:{location:Hf({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:so.Pop}},p):p}function DZ(){let e=LZ(),t=wZ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:a},r):null,null)}const jZ=S.createElement(DZ,null);class IZ extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?S.createElement(jo.Provider,{value:this.props.routeContext},S.createElement(z4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function AZ(e){let{routeContext:t,match:r,children:n}=e,a=S.useContext(q_);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(jo.Provider,{value:t},n)}function FZ(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let s=e,l=(a=r)==null?void 0:a.errors;if(l!=null){let d=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||Pt(!1),s=s.slice(0,Math.min(s.length,d+1))}let u=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,f,m)=>{let g,x=!1,p=null,$=null;r&&(g=l&&f.route.id?l[f.route.id]:void 0,p=f.route.errorElement||jZ,u&&(c<0&&m===0?(x=!0,$=null):c===m&&(x=!0,$=f.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,m+1)),y=()=>{let P;return g?P=p:x?P=$:f.route.Component?P=S.createElement(f.route.Component,null):f.route.element?P=f.route.element:P=d,S.createElement(AZ,{match:f,routeContext:{outlet:d,matches:b,isDataRoute:r!=null},children:P})};return r&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?S.createElement(IZ,{location:r.location,revalidation:r.revalidation,component:p,error:g,children:y(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):y()},null)}var V4=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(V4||{}),M0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(M0||{});function RZ(e){let t=S.useContext(q_);return t||Pt(!1),t}function kZ(e){let t=S.useContext(PZ);return t||Pt(!1),t}function NZ(e){let t=S.useContext(jo);return t||Pt(!1),t}function H4(e){let t=NZ(),r=t.matches[t.matches.length-1];return r.route.id||Pt(!1),r.route.id}function LZ(){var e;let t=S.useContext(z4),r=kZ(M0.UseRouteError),n=H4(M0.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function zZ(){let{router:e}=RZ(V4.UseNavigateStable),t=H4(M0.UseNavigateStable),r=S.useRef(!1);return W4(()=>{r.current=!0}),S.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Hf({fromRouteId:t},o)))},[e,t])}function Xi(e){Pt(!1)}function WZ(e){let{basename:t="/",children:r=null,location:n,navigationType:a=so.Pop,navigator:o,static:s=!1,future:l}=e;oh()&&Pt(!1);let u=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:u,navigator:o,static:s,future:Hf({v7_relativeSplatPath:!1},l)}),[u,l,o,s]);typeof n=="string"&&(n=hl(n));let{pathname:d="/",search:f="",hash:m="",state:g=null,key:x="default"}=n,p=S.useMemo(()=>{let $=G_(d,u);return $==null?null:{location:{pathname:$,search:f,hash:m,state:g,key:x},navigationType:a}},[u,d,f,m,g,x,a]);return p==null?null:S.createElement(ml.Provider,{value:c},S.createElement(Dv.Provider,{children:r,value:p}))}function BZ(e){let{children:t,location:r}=e;return TZ(kb(t),r)}new Promise(()=>{});function kb(e,t){t===void 0&&(t=[]);let r=[];return S.Children.forEach(e,(n,a)=>{if(!S.isValidElement(n))return;let o=[...t,a];if(n.type===S.Fragment){r.push.apply(r,kb(n.props.children,o));return}n.type!==Xi&&Pt(!1),!n.props.index||!n.props.children||Pt(!1);let s={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=kb(n.props.children,o)),r.push(s)}),r}/** - * React Router DOM v6.25.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function HZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YZ(e,t){return e.button===0&&(!t||t==="_self")&&!HZ(e)}const UZ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],GZ="6";try{window.__reactRouterVersion=GZ}catch{}const qZ="startTransition",a3=n1[qZ];function QZ(e){let{basename:t,children:r,future:n,window:a}=e,o=S.useRef();o.current==null&&(o.current=JK({window:a,v5Compat:!0}));let s=o.current,[l,u]=S.useState({action:s.action,location:s.location}),{v7_startTransition:c}=n||{},d=S.useCallback(f=>{c&&a3?a3(()=>u(f)):u(f)},[u,c]);return S.useLayoutEffect(()=>s.listen(d),[s,d]),S.createElement(WZ,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}const XZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KZ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Iv=S.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:s,state:l,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,m=VZ(t,UZ),{basename:g}=S.useContext(ml),x,p=!1;if(typeof c=="string"&&KZ.test(c)&&(x=c,XZ))try{let P=new URL(window.location.href),M=c.startsWith("//")?new URL(P.protocol+c):new URL(c),A=G_(M.pathname,g);M.origin===P.origin&&A!=null?c=A+M.search+M.hash:p=!0}catch{}let $=$Z(c,{relative:a}),b=ZZ(c,{replace:s,state:l,target:u,preventScrollReset:d,relative:a,unstable_viewTransition:f});function y(P){n&&n(P),P.defaultPrevented||b(P)}return S.createElement("a",Nb({},m,{href:x||$,onClick:p||o?n:y,ref:r,target:u}))});var i3;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(i3||(i3={}));var o3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(o3||(o3={}));function ZZ(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:s,unstable_viewTransition:l}=t===void 0?{}:t,u=OZ(),c=jv(),d=B4(e,{relative:s});return S.useCallback(f=>{if(YZ(f,r)){f.preventDefault();let m=n!==void 0?n:C0(c)===C0(d);u(e,{replace:m,state:a,preventScrollReset:o,relative:s,unstable_viewTransition:l})}},[c,u,d,n,a,r,e,o,s,l])}var Q_=_E({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"}),JZ=_E({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"}),Y4={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s3=on.createContext&&on.createContext(Y4),eJ=["attr","size","title"];function tJ(e,t){if(e==null)return{};var r=rJ(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function T0(){return T0=Object.assign?Object.assign.bind():function(e){for(var t=1;ton.createElement(t.tag,E0({key:r},t.attr),U4(t.child)))}function ai(e){return t=>on.createElement(oJ,T0({attr:E0({},e.attr)},t),U4(e.child))}function oJ(e){var t=r=>{var{attr:n,size:a,title:o}=e,s=tJ(e,eJ),l=a||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),on.createElement("svg",T0({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:u,style:E0(E0({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&on.createElement("title",null,o),e.children)};return s3!==void 0?on.createElement(s3.Consumer,null,r=>t(r)):t(Y4)}function X_(e){return ai({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(e)}function sJ(e){return ai({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function lJ(e){return ai({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function K_(e){return ai({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(e)}function uJ(e){return ai({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(e)}function cJ(e){return ai({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function dJ(e){return ai({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(e)}function Z_(e){return ai({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function fJ(e){return ai({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"},child:[]}]})(e)}const hJ=({member:e})=>{const t=tr("white","gray.800"),r=tr("gray.200","gray.600");return w.jsx(Mt,{as:Iv,to:`/members/${e.memberId}`,borderWidth:"1px",borderRadius:"lg",p:6,boxShadow:"md",transition:"all 0.3s",_hover:{transform:"translateY(-5px)",boxShadow:"xl"},bg:t,borderColor:r,textDecoration:"none",children:w.jsxs(cn,{spacing:4,align:"center",children:[w.jsx(E_,{size:"xl",name:`${e.firstName} ${e.lastName}`,src:e.profilePicture}),w.jsxs(cn,{spacing:1,textAlign:"center",children:[w.jsx(Qe,{fontWeight:"bold",fontSize:"xl",children:`${e.firstName} ${e.lastName}`}),w.jsx(Qe,{fontSize:"sm",color:"gray.500",children:e.email})]}),w.jsxs(qa,{spacing:4,children:[w.jsx(Ga,{href:`mailto:${e.email}`,isExternal:!0,onClick:n=>n.stopPropagation(),children:w.jsx(Lr,{as:Z_,w:5,h:5,color:"gray.500",_hover:{color:"blue.500"}})}),w.jsx(Ga,{href:`https://discord.com/users/${e.discord}`,isExternal:!0,onClick:n=>n.stopPropagation(),children:w.jsx(Lr,{as:X_,w:5,h:5,color:"gray.500",_hover:{color:"blue.500"}})}),w.jsx(Ga,{href:e.linkedin,isExternal:!0,onClick:n=>n.stopPropagation(),children:w.jsx(Lr,{as:K_,w:5,h:5,color:"gray.500",_hover:{color:"blue.500"}})})]})]})})},$n=[{memberId:1n,createdAt:new Date,firstName:"John",lastName:"Doe",email:"john.doe@example.com",discord:"john_doe#1234",linkedin:"https://www.linkedin.com/johndoe",github:"elimelt",profilePicture:"john-doe.jpg"},{memberId:2n,createdAt:new Date,firstName:"Jane",lastName:"Smith",email:"jane.smith@example.com",discord:"jane_smith#5678",linkedin:"https://www.linkedin.com/janesmith",github:"janesmith",profilePicture:"jane-smith.jpg"}],G4={getAllMembers:async()=>$n,getMemberById:async e=>$n.find(t=>t.memberId===e),createMember:async e=>{const t={memberId:BigInt($n.length+1),createdAt:new Date,...e};return $n.push(t),t},updateMember:async(e,t)=>{const r=$n.findIndex(n=>n.memberId===e);if(r!==-1)return $n[r]={...$n[r],...t},$n[r]},deleteMember:async e=>{const t=$n.findIndex(r=>r.memberId===e);t!==-1&&$n.splice(t,1)}},md=({children:e,to:t})=>w.jsx(Iv,{to:t,children:w.jsx(Mt,{px:4,py:2,rounded:"md",_hover:{textDecoration:"none",bg:tr("gray.100","gray.700")},children:e})}),vd=({href:e,icon:t})=>w.jsx(Ga,{href:e,isExternal:!0,children:w.jsx(Mt,{as:"span",fontSize:"xl",children:t})}),mJ=ni(Mt),Mr=({children:e})=>{const[t,r]=S.useState(!1),n=tr("gray.50","gray.900"),a=tr("white","gray.800"),o=tr("gray.50","gray.900"),s=()=>w.jsx("span",{style:{fontSize:"1.5rem",fontWeight:"bold",marginRight:"1em"},children:""}),l=()=>r(!t);return w.jsxs(Mt,{minH:"100vh",bg:n,display:"flex",flexDirection:"column",children:[w.jsx(Mt,{bg:a,boxShadow:"sm",position:"fixed",width:"full",zIndex:10,children:w.jsx(Lm,{maxW:"container.xl",children:w.jsx(Ys,{h:16,alignItems:"center",justifyContent:"space-between",children:w.jsxs(Ys,{alignItems:"center",children:[w.jsx(Iv,{to:"/",children:w.jsx(s,{})}),w.jsx(md,{to:"/members",children:"Members"}),w.jsx(md,{to:"/teams",children:"Teams"}),w.jsx(md,{to:"/events",children:"Events"}),w.jsx(md,{to:"/about",children:"About"}),w.jsx(md,{to:"/join",children:"Join"})]})})})}),w.jsx(Lm,{maxW:"container.xl",pt:20,flex:1,children:e}),w.jsx(Mt,{as:"footer",bg:o,py:6,mt:8,children:w.jsx(Lm,{maxW:"container.xl",children:w.jsxs(Ys,{justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",children:[w.jsxs(Ys,{alignItems:"center",children:[w.jsx(Ju,{onClick:l,variant:"link",fontWeight:"bold",rightIcon:w.jsx(dJ,{}),transform:t?"scaleY(1.01)":"none",transition:"transform 0.3s",children:"Connect with us"}),w.jsx(Zu,{children:t&&w.jsx(mJ,{initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{duration:.3},overflow:"hidden",ml:4,children:w.jsxs(qa,{spacing:10,children:[w.jsx(vd,{href:"mailto:your-email@example.com",icon:w.jsx(Z_,{})}),w.jsx(vd,{href:"https://github.com/your-org/your-repo",icon:w.jsx(sJ,{})}),w.jsx(vd,{href:"https://twitter.com/your-twitter",icon:w.jsx(uJ,{})}),w.jsx(vd,{href:"https://linkedin.com/company/your-company",icon:w.jsx(K_,{})}),w.jsx(vd,{href:"https://instagram.com/your-instagram",icon:w.jsx(lJ,{})})]})})})]}),w.jsxs(Qe,{children:["© ",new Date().getFullYear()," Husky Coding Project. All rights reserved."]})]})})})]})};var q4=(e=>(e.FIRST_NAME="First Name",e.LAST_NAME="Last Name",e.EMAIL="Email",e.DISCORD="Discord",e))(q4||{});const vJ=()=>{const[e,t]=S.useState([]),[r,n]=S.useState([]),[a,o]=S.useState(!0),[s,l]=S.useState(null),[u,c]=S.useState(""),[d,f]=S.useState("First Name");return S.useEffect(()=>{(async()=>{try{const g=await G4.getAllMembers();t(g),n(g)}catch{l("Failed to fetch members")}finally{o(!1)}})()},[]),S.useEffect(()=>{let m;switch(d){case"First Name":m=e.filter(g=>g.firstName.toLowerCase().includes(u.toLowerCase()));break;case"Last Name":m=e.filter(g=>g.lastName.toLowerCase().includes(u.toLowerCase()));break;case"Email":m=e.filter(g=>g.email.toLowerCase().includes(u.toLowerCase()));break;case"Discord":m=e.filter(g=>g.discord.toLowerCase().includes(u.toLowerCase()));break;default:m=e}n(m)},[u,e,d]),a?w.jsx(Mr,{children:w.jsx(fl,{size:"xl"})}):s?w.jsx(Mr,{children:w.jsx(Qe,{color:"red.500",children:s})}):w.jsx(Mr,{children:w.jsxs(cn,{spacing:8,align:"stretch",children:[w.jsx(Do,{children:"Members"}),w.jsxs($v,{children:[w.jsx(ah,{pointerEvents:"none",children:w.jsx(Q_,{color:"gray.300"})}),w.jsx(ih,{type:"text",placeholder:"Search members...",value:u,onChange:m=>c(m.target.value)}),w.jsx(I4,{value:d,onChange:m=>f(m.target.value),w:"15%",paddingLeft:6,children:Object.values(q4).map(m=>w.jsx("option",{value:m,children:m},m))})]}),w.jsx(Tv,{columns:[1,2,3,4],spacing:6,children:r.map(m=>{var g;return w.jsx(hJ,{member:m},(g=m.memberId)==null?void 0:g.toString())})})]})})},Gn=[{teamId:1n,name:"Team A",createdAt:new Date,logo:"team-a-logo.jpg",deployLink:"https://team-a-deploy.example.com"},{teamId:2n,name:"Team B",createdAt:new Date,logo:"https://wivolixjgzmaigovvchs.supabase.co/storage/v1/object/public/club-website-assets/elijah-profile.png?t=2024-07-21T09%3A58%3A03.289Z",deployLink:"https://team-b-deploy.example.com"}],pd=[{id:1n,createdAt:new Date,teamId:1n,memberId:1n},{id:2n,createdAt:new Date,teamId:2n,memberId:2n}],Lb={getAllTeams:async()=>Gn,getTeamById:async e=>Gn.find(t=>t.teamId===e),createTeam:async e=>{const t={teamId:BigInt(Gn.length+1),createdAt:new Date,...e};return Gn.push(t),t},updateTeam:async(e,t)=>{const r=Gn.findIndex(n=>n.teamId===e);if(r!==-1)return Gn[r]={...Gn[r],...t},Gn[r]},deleteTeam:async e=>{const t=Gn.findIndex(r=>r.teamId===e);t!==-1&&Gn.splice(t,1)},getTeamMembers:async e=>pd.filter(t=>t.teamId===e),addTeamMember:async(e,t)=>{const r={id:BigInt(pd.length+1),createdAt:new Date,teamId:e,memberId:t};return pd.push(r),r},removeTeamMember:async(e,t)=>{const r=pd.findIndex(n=>n.teamId===e&&n.memberId===t);r!==-1&&pd.splice(r,1)},getMemberById:async e=>$n.find(t=>t.memberId===e)},pJ=ni(Mt),gJ=({team:e})=>{const{isOpen:t,onOpen:r,onClose:n}=YX(),[a,o]=S.useState([]),[s,l]=S.useState(!1),u=tr("white","gray.800"),c=tr("gray.200","gray.600"),d=async()=>{try{l(!0);const f=await Lb.getTeamMembers(e.teamId),m=(await Promise.all(f.map(g=>Lb.getMemberById(g.memberId)))).filter(g=>g!==void 0);o(m),r()}catch(f){console.error("Error fetching team members:",f)}finally{l(!1)}};return w.jsxs(w.Fragment,{children:[w.jsx(pJ,{borderWidth:"1px",borderRadius:"lg",p:6,boxShadow:"md",cursor:"pointer",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2},onClick:d,bg:u,borderColor:c,children:w.jsxs(cn,{spacing:4,align:"center",children:[e.logo&&w.jsx(Pv,{src:e.logo,alt:"Team Logo",boxSize:"100px",objectFit:"contain",borderRadius:"full"}),w.jsx(Qe,{fontWeight:"bold",fontSize:"xl",children:e.name||`Team ${e.teamId}`}),e.teamId!==null&&e.teamId!==void 0&&w.jsxs(v4,{colorScheme:"green",children:["PM ID: ",e.teamId.toString()]}),e.deployLink&&w.jsx(Ga,{href:e.deployLink,isExternal:!0,color:"blue.500",onClick:f=>f.stopPropagation(),children:"View Deployment"}),w.jsxs(Qe,{fontSize:"sm",color:"gray.500",children:["Created: ",e.createdAt&&new Date(e.createdAt).toLocaleDateString()]})]})}),w.jsxs(y4,{isOpen:t&&!s,onClose:n,children:[w.jsx(T4,{}),w.jsxs(O4,{children:[w.jsx(M4,{children:e.name||`Team ${e.teamId}`}),w.jsx(D4,{}),w.jsx(E4,{children:w.jsxs(cn,{align:"start",spacing:4,children:[w.jsx(Do,{size:"md",children:"Team Members"}),w.jsx(Cv,{spacing:3,width:"100%",children:a.map(f=>{var m;return w.jsx(f4,{children:w.jsxs(qa,{children:[w.jsx(E_,{size:"sm",name:`${f.firstName} ${f.lastName}`}),w.jsxs(Qe,{children:[f.firstName," ",f.lastName]}),w.jsx(Qe,{fontSize:"sm",color:"gray.500",children:f.email})]})},(m=f.memberId)==null?void 0:m.toString())})}),a.length===0&&w.jsx(Qe,{children:"No team members found."})]})}),w.jsx(C4,{children:w.jsx(Ju,{colorScheme:"blue",mr:3,onClick:n,children:"Close"})})]})]})]})},bJ=()=>{const[e,t]=S.useState([]),[r,n]=S.useState([]),[a,o]=S.useState(!0),[s,l]=S.useState(null),[u,c]=S.useState("");return S.useEffect(()=>{(async()=>{try{const f=await Lb.getAllTeams();t(f),n(f)}catch{l("Failed to fetch teams")}finally{o(!1)}})()},[]),S.useEffect(()=>{const d=e.filter(f=>{var m;return(m=f.name)==null?void 0:m.toLowerCase().includes(u.toLowerCase())});n(d)},[u,e]),a?w.jsx(Mr,{children:w.jsx(fl,{size:"xl"})}):s?w.jsx(Mr,{children:w.jsx(Qe,{color:"red.500",children:s})}):w.jsx(Mr,{children:w.jsxs(cn,{spacing:8,align:"stretch",children:[w.jsx(Do,{children:"Teams"}),w.jsxs($v,{children:[w.jsx(ah,{pointerEvents:"none",children:w.jsx(Q_,{color:"gray.300"})}),w.jsx(ih,{type:"text",placeholder:"Search teams...",value:u,onChange:d=>c(d.target.value)})]}),w.jsx(Tv,{columns:[1,2,3],spacing:6,children:r.map(d=>{var f;return w.jsx(gJ,{team:d},(f=d.teamId)==null?void 0:f.toString())})})]})})},yJ=({event:e})=>{const t=tr("white","gray.800"),r=tr("gray.200","gray.600");return w.jsxs(Mt,{borderWidth:"1px",borderRadius:"lg",overflow:"hidden",boxShadow:"lg",transition:"all 0.3s",_hover:{transform:"translateY(-5px)",boxShadow:"xl"},bg:t,borderColor:r,children:[w.jsx(Pv,{src:e.eventImage,alt:e.name,objectFit:"cover",height:"200px",width:"100%"}),w.jsx(Mt,{p:6,children:w.jsxs(cn,{align:"start",spacing:3,children:[w.jsx(Do,{size:"md",children:e.name}),w.jsx(Qe,{noOfLines:2,color:"gray.600",children:e.description}),w.jsxs(qa,{spacing:4,children:[w.jsxs(qa,{children:[w.jsx(fJ,{color:"gray.500"}),w.jsx(Qe,{fontSize:"sm",color:"gray.500",children:e.location})]}),w.jsxs(qa,{children:[w.jsx(JZ,{color:"gray.500"}),w.jsx(Qe,{fontSize:"sm",color:"gray.500",children:e.createdAt&&new Date(e.createdAt).toLocaleDateString()})]})]}),w.jsx(Ju,{as:"a",href:e.rsvpLink,target:"_blank",colorScheme:"teal",size:"sm",width:"full",children:"RSVP"})]})})]})},qn=[{id:1n,createdAt:new Date,name:"Mock Event 1",description:"Mock description for Event 1",location:"Mock Location 1",rsvpLink:"https://example.com/rsvp/1",eventImage:"mock-event-1.jpg"},{id:2n,createdAt:new Date,name:"Mock Event 2",description:"Mock description for Event 2",location:"Mock Location 2",rsvpLink:"https://example.com/rsvp/2",eventImage:"mock-event-2.jpg"}],_J={getAllEvents:async()=>qn,getEventById:async e=>qn.find(t=>t.id===e),createEvent:async e=>{const t={id:BigInt(qn.length+1),createdAt:new Date,...e};return qn.push(t),t},updateEvent:async(e,t)=>{const r=qn.findIndex(n=>n.id===e);if(r!==-1)return qn[r]={...qn[r],...t},qn[r]},deleteEvent:async e=>{const t=qn.findIndex(r=>r.id===e);t!==-1&&qn.splice(t,1)}},xJ=()=>{const[e,t]=S.useState([]),[r,n]=S.useState([]),[a,o]=S.useState(!0),[s,l]=S.useState(null),[u,c]=S.useState("");return S.useEffect(()=>{(async()=>{try{const f=await _J.getAllEvents();t(f),n(f)}catch{l("Failed to fetch events")}finally{o(!1)}})()},[]),S.useEffect(()=>{const d=e.filter(f=>f.name.toLowerCase().includes(u.toLowerCase()));n(d)},[u,e]),a?w.jsx(Mr,{children:w.jsx(fl,{size:"xl"})}):s?w.jsx(Mr,{children:w.jsx(Qe,{color:"red.500",children:s})}):w.jsx(Mr,{children:w.jsxs(cn,{spacing:8,align:"stretch",children:[w.jsx(Do,{children:"Events"}),w.jsxs($v,{children:[w.jsx(ah,{pointerEvents:"none",children:w.jsx(Q_,{color:"gray.300"})}),w.jsx(ih,{type:"text",placeholder:"Search events...",value:u,onChange:d=>c(d.target.value)})]}),w.jsx(Tv,{columns:[1,2,3],spacing:6,children:r.map(d=>{var f;return w.jsx(yJ,{event:d},(f=d.id)==null?void 0:f.toString())})})]})})};var Q4={},Av={},X4={exports:{}};/** - * chroma.js - JavaScript library for color conversions - * - * Copyright (c) 2011-2019, Gregor Aisch - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * 3. The name Gregor Aisch may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, - * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * ------------------------------------------------------- - * - * chroma.js includes colors from colorbrewer2.org, which are released under - * the following license: - * - * Copyright (c) 2002 Cynthia Brewer, Mark Harrower, - * and The Pennsylvania State University. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific - * language governing permissions and limitations under the License. - * - * ------------------------------------------------------ - * - * Named colors are taken from X11 Color Names. - * http://www.w3.org/TR/css3-color/#svg-color - * - * @preserve - */(function(e,t){(function(r,n){e.exports=n()})(Md,function(){for(var r=function(h,v,_){return v===void 0&&(v=0),_===void 0&&(_=1),h_?_:h},n=r,a=function(h){h._clipped=!1,h._unclipped=h.slice(0);for(var v=0;v<=3;v++)v<3?((h[v]<0||h[v]>255)&&(h._clipped=!0),h[v]=n(h[v],0,255)):v===3&&(h[v]=n(h[v],0,1));return h},o={},s=0,l=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];s=3?Array.prototype.slice.call(h):d(h[0])=="object"&&v?v.split("").filter(function(_){return h[0][_]!==void 0}).map(function(_){return h[0][_]}):h[0]},m=c,g=function(h){if(h.length<2)return null;var v=h.length-1;return m(h[v])=="string"?h[v].toLowerCase():null},x=Math.PI,p={clip_rgb:a,limit:r,type:c,unpack:f,last:g,PI:x,TWOPI:x*2,PITHIRD:x/3,DEG2RAD:x/180,RAD2DEG:180/x},$={format:{},autodetect:[]},b=p.last,y=p.clip_rgb,P=p.type,M=$,A=function(){for(var v=[],_=arguments.length;_--;)v[_]=arguments[_];var C=this;if(P(v[0])==="object"&&v[0].constructor&&v[0].constructor===this.constructor)return v[0];var E=b(v),D=!1;if(!E){D=!0,M.sorted||(M.autodetect=M.autodetect.sort(function(V,K){return K.p-V.p}),M.sorted=!0);for(var T=0,R=M.autodetect;T4?h[4]:1;return D===1?[0,0,0,T]:[_>=1?0:255*(1-_)*(1-D),C>=1?0:255*(1-C)*(1-D),E>=1?0:255*(1-E)*(1-D),T]},Ce=et,Ne=z,Se=F,H=$,ae=p.unpack,ie=p.type,ge=Me;Se.prototype.cmyk=function(){return ge(this._rgb)},Ne.cmyk=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(Se,[null].concat(h,["cmyk"])))},H.format.cmyk=Ce,H.autodetect.push({p:2,test:function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];if(h=ae(h,"cmyk"),ie(h)==="array"&&h.length===4)return"cmyk"}});var Pe=p.unpack,me=p.last,re=function(h){return Math.round(h*100)/100},oe=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=Pe(h,"hsla"),C=me(h)||"lsa";return _[0]=re(_[0]||0),_[1]=re(_[1]*100)+"%",_[2]=re(_[2]*100)+"%",C==="hsla"||_.length>3&&_[3]<1?(_[3]=_.length>3?_[3]:1,C="hsla"):_.length=3,C+"("+_.join(",")+")"},se=oe,ut=p.unpack,mt=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];h=ut(h,"rgba");var _=h[0],C=h[1],E=h[2];_/=255,C/=255,E/=255;var D=Math.min(_,C,E),T=Math.max(_,C,E),R=(T+D)/2,k,B;return T===D?(k=0,B=Number.NaN):k=R<.5?(T-D)/(T+D):(T-D)/(2-T-D),_==T?B=(C-E)/(T-D):C==T?B=2+(E-_)/(T-D):E==T&&(B=4+(_-C)/(T-D)),B*=60,B<0&&(B+=360),h.length>3&&h[3]!==void 0?[B,k,R,h[3]]:[B,k,R]},Rt=mt,pr=p.unpack,Fn=p.last,dn=se,ca=Rt,fn=Math.round,da=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=pr(h,"rgba"),C=Fn(h)||"rgb";return C.substr(0,3)=="hsl"?dn(ca(_),C):(_[0]=fn(_[0]),_[1]=fn(_[1]),_[2]=fn(_[2]),(C==="rgba"||_.length>3&&_[3]<1)&&(_[3]=_.length>3?_[3]:1,C="rgba"),C+"("+_.slice(0,C==="rgb"?3:4).join(",")+")")},kt=da,gr=p.unpack,qt=Math.round,ar=function(){for(var h,v=[],_=arguments.length;_--;)v[_]=arguments[_];v=gr(v,"hsl");var C=v[0],E=v[1],D=v[2],T,R,k;if(E===0)T=R=k=D*255;else{var B=[0,0,0],V=[0,0,0],K=D<.5?D*(1+E):D+E-D*E,Y=2*D-K,ne=C/360;B[0]=ne+1/3,B[1]=ne,B[2]=ne-1/3;for(var ee=0;ee<3;ee++)B[ee]<0&&(B[ee]+=1),B[ee]>1&&(B[ee]-=1),6*B[ee]<1?V[ee]=Y+(K-Y)*6*B[ee]:2*B[ee]<1?V[ee]=K:3*B[ee]<2?V[ee]=Y+(K-Y)*(2/3-B[ee])*6:V[ee]=Y;h=[qt(V[0]*255),qt(V[1]*255),qt(V[2]*255)],T=h[0],R=h[1],k=h[2]}return v.length>3?[T,R,k,v[3]]:[T,R,k,1]},br=ar,Rn=br,hn=$,ir=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,fa=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,ha=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,di=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,fi=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,mn=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ma=Math.round,va=function(h){h=h.toLowerCase().trim();var v;if(hn.format.named)try{return hn.format.named(h)}catch{}if(v=h.match(ir)){for(var _=v.slice(1,4),C=0;C<3;C++)_[C]=+_[C];return _[3]=1,_}if(v=h.match(fa)){for(var E=v.slice(1,5),D=0;D<4;D++)E[D]=+E[D];return E}if(v=h.match(ha)){for(var T=v.slice(1,4),R=0;R<3;R++)T[R]=ma(T[R]*2.55);return T[3]=1,T}if(v=h.match(di)){for(var k=v.slice(1,5),B=0;B<3;B++)k[B]=ma(k[B]*2.55);return k[3]=+k[3],k}if(v=h.match(fi)){var V=v.slice(1,4);V[1]*=.01,V[2]*=.01;var K=Rn(V);return K[3]=1,K}if(v=h.match(mn)){var Y=v.slice(1,4);Y[1]*=.01,Y[2]*=.01;var ne=Rn(Y);return ne[3]=+v[4],ne}};va.test=function(h){return ir.test(h)||fa.test(h)||ha.test(h)||di.test(h)||fi.test(h)||mn.test(h)};var hi=va,mi=z,vi=F,pi=$,Er=p.type,kn=kt,gi=hi;vi.prototype.css=function(h){return kn(this._rgb,h)},mi.css=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(vi,[null].concat(h,["css"])))},pi.format.css=gi,pi.autodetect.push({p:5,test:function(h){for(var v=[],_=arguments.length-1;_-- >0;)v[_]=arguments[_+1];if(!v.length&&Er(h)==="string"&&gi.test(h))return"css"}});var pa=F,Ao=z,bi=$,vn=p.unpack;bi.format.gl=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=vn(h,"rgba");return _[0]*=255,_[1]*=255,_[2]*=255,_},Ao.gl=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(pa,[null].concat(h,["gl"])))},pa.prototype.gl=function(){var h=this._rgb;return[h[0]/255,h[1]/255,h[2]/255,h[3]]};var Fo=p.unpack,Dr=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=Fo(h,"rgb"),C=_[0],E=_[1],D=_[2],T=Math.min(C,E,D),R=Math.max(C,E,D),k=R-T,B=k*100/255,V=T/(255-k)*100,K;return k===0?K=Number.NaN:(C===R&&(K=(E-D)/k),E===R&&(K=2+(D-C)/k),D===R&&(K=4+(C-E)/k),K*=60,K<0&&(K+=360)),[K,B,V]},Ro=Dr,ko=p.unpack,No=Math.floor,Lo=function(){for(var h,v,_,C,E,D,T=[],R=arguments.length;R--;)T[R]=arguments[R];T=ko(T,"hcg");var k=T[0],B=T[1],V=T[2],K,Y,ne;V=V*255;var ee=B*255;if(B===0)K=Y=ne=V;else{k===360&&(k=0),k>360&&(k-=360),k<0&&(k+=360),k/=60;var be=No(k),$e=k-be,De=V*(1-B),ze=De+ee*(1-$e),Lt=De+ee*$e,jt=De+ee;switch(be){case 0:h=[jt,Lt,De],K=h[0],Y=h[1],ne=h[2];break;case 1:v=[ze,jt,De],K=v[0],Y=v[1],ne=v[2];break;case 2:_=[De,jt,Lt],K=_[0],Y=_[1],ne=_[2];break;case 3:C=[De,ze,jt],K=C[0],Y=C[1],ne=C[2];break;case 4:E=[Lt,De,jt],K=E[0],Y=E[1],ne=E[2];break;case 5:D=[jt,De,ze],K=D[0],Y=D[1],ne=D[2];break}}return[K,Y,ne,T.length>3?T[3]:1]},zo=Lo,or=p.unpack,Wo=p.type,Bo=z,yi=F,_i=$,Vo=Ro;yi.prototype.hcg=function(){return Vo(this._rgb)},Bo.hcg=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(yi,[null].concat(h,["hcg"])))},_i.format.hcg=zo,_i.autodetect.push({p:1,test:function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];if(h=or(h,"hcg"),Wo(h)==="array"&&h.length===3)return"hcg"}});var Ur=p.unpack,Ho=p.last,Nn=Math.round,Yo=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=Ur(h,"rgba"),C=_[0],E=_[1],D=_[2],T=_[3],R=Ho(h)||"auto";T===void 0&&(T=1),R==="auto"&&(R=T<1?"rgba":"rgb"),C=Nn(C),E=Nn(E),D=Nn(D);var k=C<<16|E<<8|D,B="000000"+k.toString(16);B=B.substr(B.length-6);var V="0"+Nn(T*255).toString(16);switch(V=V.substr(V.length-2),R.toLowerCase()){case"rgba":return"#"+B+V;case"argb":return"#"+V+B;default:return"#"+B}},xi=Yo,Uo=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Gr=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Go=function(h){if(h.match(Uo)){(h.length===4||h.length===7)&&(h=h.substr(1)),h.length===3&&(h=h.split(""),h=h[0]+h[0]+h[1]+h[1]+h[2]+h[2]);var v=parseInt(h,16),_=v>>16,C=v>>8&255,E=v&255;return[_,C,E,1]}if(h.match(Gr)){(h.length===5||h.length===9)&&(h=h.substr(1)),h.length===4&&(h=h.split(""),h=h[0]+h[0]+h[1]+h[1]+h[2]+h[2]+h[3]+h[3]);var D=parseInt(h,16),T=D>>24&255,R=D>>16&255,k=D>>8&255,B=Math.round((D&255)/255*100)/100;return[T,R,k,B]}throw new Error("unknown hex color: "+h)},wi=Go,qo=z,Si=F,Qo=p.type,Pi=$,ga=xi;Si.prototype.hex=function(h){return ga(this._rgb,h)},qo.hex=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(Si,[null].concat(h,["hex"])))},Pi.format.hex=wi,Pi.autodetect.push({p:4,test:function(h){for(var v=[],_=arguments.length-1;_-- >0;)v[_]=arguments[_+1];if(!v.length&&Qo(h)==="string"&&[3,4,5,6,7,8,9].indexOf(h.length)>=0)return"hex"}});var Xo=p.unpack,pn=p.TWOPI,ba=Math.min,Ko=Math.sqrt,Ln=Math.acos,$i=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=Xo(h,"rgb"),C=_[0],E=_[1],D=_[2];C/=255,E/=255,D/=255;var T,R=ba(C,E,D),k=(C+E+D)/3,B=k>0?1-R/k:0;return B===0?T=NaN:(T=(C-E+(C-D))/2,T/=Ko((C-E)*(C-E)+(C-D)*(E-D)),T=Ln(T),D>E&&(T=pn-T),T/=pn),[T*360,B,k]},Zo=$i,Jo=p.unpack,ya=p.limit,jr=p.TWOPI,_a=p.PITHIRD,qr=Math.cos,es=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];h=Jo(h,"hsi");var _=h[0],C=h[1],E=h[2],D,T,R;return isNaN(_)&&(_=0),isNaN(C)&&(C=0),_>360&&(_-=360),_<0&&(_+=360),_/=360,_<1/3?(R=(1-C)/3,D=(1+C*qr(jr*_)/qr(_a-jr*_))/3,T=1-(R+D)):_<2/3?(_-=1/3,D=(1-C)/3,T=(1+C*qr(jr*_)/qr(_a-jr*_))/3,R=1-(D+T)):(_-=2/3,T=(1-C)/3,R=(1+C*qr(jr*_)/qr(_a-jr*_))/3,D=1-(T+R)),D=ya(E*D*3),T=ya(E*T*3),R=ya(E*R*3),[D*255,T*255,R*255,h.length>3?h[3]:1]},ts=es,rs=p.unpack,ns=p.type,as=z,Oi=F,Ci=$,is=Zo;Oi.prototype.hsi=function(){return is(this._rgb)},as.hsi=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(Oi,[null].concat(h,["hsi"])))},Ci.format.hsi=ts,Ci.autodetect.push({p:2,test:function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];if(h=rs(h,"hsi"),ns(h)==="array"&&h.length===3)return"hsi"}});var zn=p.unpack,xa=p.type,os=z,Mi=F,wa=$,ss=Rt;Mi.prototype.hsl=function(){return ss(this._rgb)},os.hsl=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(Mi,[null].concat(h,["hsl"])))},wa.format.hsl=br,wa.autodetect.push({p:2,test:function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];if(h=zn(h,"hsl"),xa(h)==="array"&&h.length===3)return"hsl"}});var ls=p.unpack,us=Math.min,Ti=Math.max,cs=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];h=ls(h,"rgb");var _=h[0],C=h[1],E=h[2],D=us(_,C,E),T=Ti(_,C,E),R=T-D,k,B,V;return V=T/255,T===0?(k=Number.NaN,B=0):(B=R/T,_===T&&(k=(C-E)/R),C===T&&(k=2+(E-_)/R),E===T&&(k=4+(_-C)/R),k*=60,k<0&&(k+=360)),[k,B,V]},ds=cs,fs=p.unpack,Sa=Math.floor,hs=function(){for(var h,v,_,C,E,D,T=[],R=arguments.length;R--;)T[R]=arguments[R];T=fs(T,"hsv");var k=T[0],B=T[1],V=T[2],K,Y,ne;if(V*=255,B===0)K=Y=ne=V;else{k===360&&(k=0),k>360&&(k-=360),k<0&&(k+=360),k/=60;var ee=Sa(k),be=k-ee,$e=V*(1-B),De=V*(1-B*be),ze=V*(1-B*(1-be));switch(ee){case 0:h=[V,ze,$e],K=h[0],Y=h[1],ne=h[2];break;case 1:v=[De,V,$e],K=v[0],Y=v[1],ne=v[2];break;case 2:_=[$e,V,ze],K=_[0],Y=_[1],ne=_[2];break;case 3:C=[$e,De,V],K=C[0],Y=C[1],ne=C[2];break;case 4:E=[ze,$e,V],K=E[0],Y=E[1],ne=E[2];break;case 5:D=[V,$e,De],K=D[0],Y=D[1],ne=D[2];break}}return[K,Y,ne,T.length>3?T[3]:1]},ms=hs,vs=p.unpack,Wn=p.type,Pa=z,Bn=F,Vn=$,ps=ds;Bn.prototype.hsv=function(){return ps(this._rgb)},Pa.hsv=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(Bn,[null].concat(h,["hsv"])))},Vn.format.hsv=ms,Vn.autodetect.push({p:2,test:function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];if(h=vs(h,"hsv"),Wn(h)==="array"&&h.length===3)return"hsv"}});var gn={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},yr=gn,Ei=p.unpack,_r=Math.pow,bn=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=Ei(h,"rgb"),C=_[0],E=_[1],D=_[2],T=gs(C,E,D),R=T[0],k=T[1],B=T[2],V=116*k-16;return[V<0?0:V,500*(R-k),200*(k-B)]},$a=function(h){return(h/=255)<=.04045?h/12.92:_r((h+.055)/1.055,2.4)},Hn=function(h){return h>yr.t3?_r(h,1/3):h/yr.t2+yr.t0},gs=function(h,v,_){h=$a(h),v=$a(v),_=$a(_);var C=Hn((.4124564*h+.3575761*v+.1804375*_)/yr.Xn),E=Hn((.2126729*h+.7151522*v+.072175*_)/yr.Yn),D=Hn((.0193339*h+.119192*v+.9503041*_)/yr.Zn);return[C,E,D]},Oa=bn,Qr=gn,bs=p.unpack,Di=Math.pow,ys=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];h=bs(h,"lab");var _=h[0],C=h[1],E=h[2],D,T,R,k,B,V;return T=(_+16)/116,D=isNaN(C)?T:T+C/500,R=isNaN(E)?T:T-E/200,T=Qr.Yn*j(T),D=Qr.Xn*j(D),R=Qr.Zn*j(R),k=O(3.2404542*D-1.5371385*T-.4985314*R),B=O(-.969266*D+1.8760108*T+.041556*R),V=O(.0556434*D-.2040259*T+1.0572252*R),[k,B,V,h.length>3?h[3]:1]},O=function(h){return 255*(h<=.00304?12.92*h:1.055*Di(h,1/2.4)-.055)},j=function(h){return h>Qr.t1?h*h*h:Qr.t2*(h-Qr.t0)},N=ys,Z=p.unpack,pe=p.type,Ie=z,Le=F,_e=$,Ue=Oa;Le.prototype.lab=function(){return Ue(this._rgb)},Ie.lab=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(Le,[null].concat(h,["lab"])))},_e.format.lab=N,_e.autodetect.push({p:2,test:function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];if(h=Z(h,"lab"),pe(h)==="array"&&h.length===3)return"lab"}});var Nt=p.unpack,$t=p.RAD2DEG,yn=Math.sqrt,Ca=Math.atan2,Ma=Math.round,ji=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=Nt(h,"lab"),C=_[0],E=_[1],D=_[2],T=yn(E*E+D*D),R=(Ca(D,E)*$t+360)%360;return Ma(T*1e4)===0&&(R=Number.NaN),[C,T,R]},bl=ji,ic=p.unpack,oc=Oa,sc=bl,lc=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=ic(h,"rgb"),C=_[0],E=_[1],D=_[2],T=oc(C,E,D),R=T[0],k=T[1],B=T[2];return sc(R,k,B)},uc=lc,cc=p.unpack,dc=p.DEG2RAD,fc=Math.sin,hc=Math.cos,mc=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=cc(h,"lch"),C=_[0],E=_[1],D=_[2];return isNaN(D)&&(D=0),D=D*dc,[C,hc(D)*E,fc(D)*E]},yl=mc,vc=p.unpack,pc=yl,gc=N,bc=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];h=vc(h,"lch");var _=h[0],C=h[1],E=h[2],D=pc(_,C,E),T=D[0],R=D[1],k=D[2],B=gc(T,R,k),V=B[0],K=B[1],Y=B[2];return[V,K,Y,h.length>3?h[3]:1]},_l=bc,yc=p.unpack,_c=_l,xc=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=yc(h,"hcl").reverse();return _c.apply(void 0,_)},wc=xc,Sc=p.unpack,Pc=p.type,xl=z,Ii=F,_s=$,wl=uc;Ii.prototype.lch=function(){return wl(this._rgb)},Ii.prototype.hcl=function(){return wl(this._rgb).reverse()},xl.lch=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(Ii,[null].concat(h,["lch"])))},xl.hcl=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(Ii,[null].concat(h,["hcl"])))},_s.format.lch=_l,_s.format.hcl=wc,["lch","hcl"].forEach(function(h){return _s.autodetect.push({p:2,test:function(){for(var v=[],_=arguments.length;_--;)v[_]=arguments[_];if(v=Sc(v,h),Pc(v)==="array"&&v.length===3)return h}})});var $c={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",cornflower:"#6495ed",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",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",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",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",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"},Sl=$c,Oc=F,Pl=$,Cc=p.type,Ta=Sl,Mc=wi,Tc=xi;Oc.prototype.name=function(){for(var h=Tc(this._rgb,"rgb"),v=0,_=Object.keys(Ta);v<_.length;v+=1){var C=_[v];if(Ta[C]===h)return C.toLowerCase()}return h},Pl.format.named=function(h){if(h=h.toLowerCase(),Ta[h])return Mc(Ta[h]);throw new Error("unknown color name: "+h)},Pl.autodetect.push({p:5,test:function(h){for(var v=[],_=arguments.length-1;_-- >0;)v[_]=arguments[_+1];if(!v.length&&Cc(h)==="string"&&Ta[h.toLowerCase()])return"named"}});var Ec=p.unpack,Dc=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=Ec(h,"rgb"),C=_[0],E=_[1],D=_[2];return(C<<16)+(E<<8)+D},jc=Dc,Ic=p.type,Ac=function(h){if(Ic(h)=="number"&&h>=0&&h<=16777215){var v=h>>16,_=h>>8&255,C=h&255;return[v,_,C,1]}throw new Error("unknown num color: "+h)},Fc=Ac,Rc=z,$l=F,Ol=$,kc=p.type,Nc=jc;$l.prototype.num=function(){return Nc(this._rgb)},Rc.num=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply($l,[null].concat(h,["num"])))},Ol.format.num=Fc,Ol.autodetect.push({p:5,test:function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];if(h.length===1&&kc(h[0])==="number"&&h[0]>=0&&h[0]<=16777215)return"num"}});var Lc=z,xs=F,Cl=$,Ml=p.unpack,Tl=p.type,El=Math.round;xs.prototype.rgb=function(h){return h===void 0&&(h=!0),h===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(El)},xs.prototype.rgba=function(h){return h===void 0&&(h=!0),this._rgb.slice(0,4).map(function(v,_){return _<3?h===!1?v:El(v):v})},Lc.rgb=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(xs,[null].concat(h,["rgb"])))},Cl.format.rgb=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=Ml(h,"rgba");return _[3]===void 0&&(_[3]=1),_},Cl.autodetect.push({p:3,test:function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];if(h=Ml(h,"rgba"),Tl(h)==="array"&&(h.length===3||h.length===4&&Tl(h[3])=="number"&&h[3]>=0&&h[3]<=1))return"rgb"}});var Ai=Math.log,zc=function(h){var v=h/100,_,C,E;return v<66?(_=255,C=v<6?0:-155.25485562709179-.44596950469579133*(C=v-2)+104.49216199393888*Ai(C),E=v<20?0:-254.76935184120902+.8274096064007395*(E=v-10)+115.67994401066147*Ai(E)):(_=351.97690566805693+.114206453784165*(_=v-55)-40.25366309332127*Ai(_),C=325.4494125711974+.07943456536662342*(C=v-50)-28.0852963507957*Ai(C),E=255),[_,C,E,1]},Dl=zc,Wc=Dl,Bc=p.unpack,Vc=Math.round,Hc=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];for(var _=Bc(h,"rgb"),C=_[0],E=_[2],D=1e3,T=4e4,R=.4,k;T-D>R;){k=(T+D)*.5;var B=Wc(k);B[2]/B[0]>=E/C?T=k:D=k}return Vc(k)},Yc=Hc,ws=z,Fi=F,Ss=$,Uc=Yc;Fi.prototype.temp=Fi.prototype.kelvin=Fi.prototype.temperature=function(){return Uc(this._rgb)},ws.temp=ws.kelvin=ws.temperature=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(Fi,[null].concat(h,["temp"])))},Ss.format.temp=Ss.format.kelvin=Ss.format.temperature=Dl;var Gc=p.unpack,Ps=Math.cbrt,qc=Math.pow,Qc=Math.sign,Xc=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=Gc(h,"rgb"),C=_[0],E=_[1],D=_[2],T=[$s(C/255),$s(E/255),$s(D/255)],R=T[0],k=T[1],B=T[2],V=Ps(.4122214708*R+.5363325363*k+.0514459929*B),K=Ps(.2119034982*R+.6806995451*k+.1073969566*B),Y=Ps(.0883024619*R+.2817188376*k+.6299787005*B);return[.2104542553*V+.793617785*K-.0040720468*Y,1.9779984951*V-2.428592205*K+.4505937099*Y,.0259040371*V+.7827717662*K-.808675766*Y]},jl=Xc;function $s(h){var v=Math.abs(h);return v<.04045?h/12.92:(Qc(h)||1)*qc((v+.055)/1.055,2.4)}var Kc=p.unpack,i=Math.pow,eI=Math.sign,tI=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];h=Kc(h,"lab");var _=h[0],C=h[1],E=h[2],D=i(_+.3963377774*C+.2158037573*E,3),T=i(_-.1055613458*C-.0638541728*E,3),R=i(_-.0894841775*C-1.291485548*E,3);return[255*np(4.0767416621*D-3.3077115913*T+.2309699292*R),255*np(-1.2684380046*D+2.6097574011*T-.3413193965*R),255*np(-.0041960863*D-.7034186147*T+1.707614701*R),h.length>3?h[3]:1]},Dx=tI;function np(h){var v=Math.abs(h);return v>.0031308?(eI(h)||1)*(1.055*i(v,1/2.4)-.055):h*12.92}var rI=p.unpack,nI=p.type,aI=z,jx=F,Ix=$,iI=jl;jx.prototype.oklab=function(){return iI(this._rgb)},aI.oklab=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(jx,[null].concat(h,["oklab"])))},Ix.format.oklab=Dx,Ix.autodetect.push({p:3,test:function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];if(h=rI(h,"oklab"),nI(h)==="array"&&h.length===3)return"oklab"}});var oI=p.unpack,sI=jl,lI=bl,uI=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];var _=oI(h,"rgb"),C=_[0],E=_[1],D=_[2],T=sI(C,E,D),R=T[0],k=T[1],B=T[2];return lI(R,k,B)},cI=uI,dI=p.unpack,fI=yl,hI=Dx,mI=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];h=dI(h,"lch");var _=h[0],C=h[1],E=h[2],D=fI(_,C,E),T=D[0],R=D[1],k=D[2],B=hI(T,R,k),V=B[0],K=B[1],Y=B[2];return[V,K,Y,h.length>3?h[3]:1]},vI=mI,pI=p.unpack,gI=p.type,bI=z,Ax=F,Fx=$,yI=cI;Ax.prototype.oklch=function(){return yI(this._rgb)},bI.oklch=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];return new(Function.prototype.bind.apply(Ax,[null].concat(h,["oklch"])))},Fx.format.oklch=vI,Fx.autodetect.push({p:3,test:function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];if(h=pI(h,"oklch"),gI(h)==="array"&&h.length===3)return"oklch"}});var Rx=F,_I=p.type;Rx.prototype.alpha=function(h,v){return v===void 0&&(v=!1),h!==void 0&&_I(h)==="number"?v?(this._rgb[3]=h,this):new Rx([this._rgb[0],this._rgb[1],this._rgb[2],h],"rgb"):this._rgb[3]};var xI=F;xI.prototype.clipped=function(){return this._rgb._clipped||!1};var Os=F,wI=gn;Os.prototype.darken=function(h){h===void 0&&(h=1);var v=this,_=v.lab();return _[0]-=wI.Kn*h,new Os(_,"lab").alpha(v.alpha(),!0)},Os.prototype.brighten=function(h){return h===void 0&&(h=1),this.darken(-h)},Os.prototype.darker=Os.prototype.darken,Os.prototype.brighter=Os.prototype.brighten;var SI=F;SI.prototype.get=function(h){var v=h.split("."),_=v[0],C=v[1],E=this[_]();if(C){var D=_.indexOf(C)-(_.substr(0,2)==="ok"?2:0);if(D>-1)return E[D];throw new Error("unknown channel "+C+" in mode "+_)}else return E};var Il=F,PI=p.type,$I=Math.pow,OI=1e-7,CI=20;Il.prototype.luminance=function(h){if(h!==void 0&&PI(h)==="number"){if(h===0)return new Il([0,0,0,this._rgb[3]],"rgb");if(h===1)return new Il([255,255,255,this._rgb[3]],"rgb");var v=this.luminance(),_="rgb",C=CI,E=function(T,R){var k=T.interpolate(R,.5,_),B=k.luminance();return Math.abs(h-B)h?E(T,k):E(k,R)},D=(v>h?E(new Il([0,0,0]),this):E(this,new Il([255,255,255]))).rgb();return new Il(D.concat([this._rgb[3]]))}return MI.apply(void 0,this._rgb.slice(0,3))};var MI=function(h,v,_){return h=ap(h),v=ap(v),_=ap(_),.2126*h+.7152*v+.0722*_},ap=function(h){return h/=255,h<=.03928?h/12.92:$I((h+.055)/1.055,2.4)},Ir={},kx=F,Nx=p.type,yh=Ir,Lx=function(h,v,_){_===void 0&&(_=.5);for(var C=[],E=arguments.length-3;E-- >0;)C[E]=arguments[E+3];var D=C[0]||"lrgb";if(!yh[D]&&!C.length&&(D=Object.keys(yh)[0]),!yh[D])throw new Error("interpolation mode "+D+" is not defined");return Nx(h)!=="object"&&(h=new kx(h)),Nx(v)!=="object"&&(v=new kx(v)),yh[D](h,v,_).alpha(h.alpha()+_*(v.alpha()-h.alpha()))},zx=F,TI=Lx;zx.prototype.mix=zx.prototype.interpolate=function(h,v){v===void 0&&(v=.5);for(var _=[],C=arguments.length-2;C-- >0;)_[C]=arguments[C+2];return TI.apply(void 0,[this,h,v].concat(_))};var Wx=F;Wx.prototype.premultiply=function(h){h===void 0&&(h=!1);var v=this._rgb,_=v[3];return h?(this._rgb=[v[0]*_,v[1]*_,v[2]*_,_],this):new Wx([v[0]*_,v[1]*_,v[2]*_,_],"rgb")};var ip=F,EI=gn;ip.prototype.saturate=function(h){h===void 0&&(h=1);var v=this,_=v.lch();return _[1]+=EI.Kn*h,_[1]<0&&(_[1]=0),new ip(_,"lch").alpha(v.alpha(),!0)},ip.prototype.desaturate=function(h){return h===void 0&&(h=1),this.saturate(-h)};var Bx=F,Vx=p.type;Bx.prototype.set=function(h,v,_){_===void 0&&(_=!1);var C=h.split("."),E=C[0],D=C[1],T=this[E]();if(D){var R=E.indexOf(D)-(E.substr(0,2)==="ok"?2:0);if(R>-1){if(Vx(v)=="string")switch(v.charAt(0)){case"+":T[R]+=+v;break;case"-":T[R]+=+v;break;case"*":T[R]*=+v.substr(1);break;case"/":T[R]/=+v.substr(1);break;default:T[R]=+v}else if(Vx(v)==="number")T[R]=v;else throw new Error("unsupported value for Color.set");var k=new Bx(T,E);return _?(this._rgb=k._rgb,this):k}throw new Error("unknown channel "+D+" in mode "+E)}else return T};var DI=F,jI=function(h,v,_){var C=h._rgb,E=v._rgb;return new DI(C[0]+_*(E[0]-C[0]),C[1]+_*(E[1]-C[1]),C[2]+_*(E[2]-C[2]),"rgb")};Ir.rgb=jI;var II=F,op=Math.sqrt,Al=Math.pow,AI=function(h,v,_){var C=h._rgb,E=C[0],D=C[1],T=C[2],R=v._rgb,k=R[0],B=R[1],V=R[2];return new II(op(Al(E,2)*(1-_)+Al(k,2)*_),op(Al(D,2)*(1-_)+Al(B,2)*_),op(Al(T,2)*(1-_)+Al(V,2)*_),"rgb")};Ir.lrgb=AI;var FI=F,RI=function(h,v,_){var C=h.lab(),E=v.lab();return new FI(C[0]+_*(E[0]-C[0]),C[1]+_*(E[1]-C[1]),C[2]+_*(E[2]-C[2]),"lab")};Ir.lab=RI;var Hx=F,Fl=function(h,v,_,C){var E,D,T,R;C==="hsl"?(T=h.hsl(),R=v.hsl()):C==="hsv"?(T=h.hsv(),R=v.hsv()):C==="hcg"?(T=h.hcg(),R=v.hcg()):C==="hsi"?(T=h.hsi(),R=v.hsi()):C==="lch"||C==="hcl"?(C="hcl",T=h.hcl(),R=v.hcl()):C==="oklch"&&(T=h.oklch().reverse(),R=v.oklch().reverse());var k,B,V,K,Y,ne;(C.substr(0,1)==="h"||C==="oklch")&&(E=T,k=E[0],V=E[1],Y=E[2],D=R,B=D[0],K=D[1],ne=D[2]);var ee,be,$e,De;return!isNaN(k)&&!isNaN(B)?(B>k&&B-k>180?De=B-(k+360):B180?De=B+360-k:De=B-k,be=k+_*De):isNaN(k)?isNaN(B)?be=Number.NaN:(be=B,(Y==1||Y==0)&&C!="hsv"&&(ee=K)):(be=k,(ne==1||ne==0)&&C!="hsv"&&(ee=V)),ee===void 0&&(ee=V+_*(K-V)),$e=Y+_*(ne-Y),C==="oklch"?new Hx([$e,ee,be],C):new Hx([be,ee,$e],C)},kI=Fl,Yx=function(h,v,_){return kI(h,v,_,"lch")};Ir.lch=Yx,Ir.hcl=Yx;var NI=F,LI=function(h,v,_){var C=h.num(),E=v.num();return new NI(C+_*(E-C),"num")};Ir.num=LI;var zI=Fl,WI=function(h,v,_){return zI(h,v,_,"hcg")};Ir.hcg=WI;var BI=Fl,VI=function(h,v,_){return BI(h,v,_,"hsi")};Ir.hsi=VI;var HI=Fl,YI=function(h,v,_){return HI(h,v,_,"hsl")};Ir.hsl=YI;var UI=Fl,GI=function(h,v,_){return UI(h,v,_,"hsv")};Ir.hsv=GI;var qI=F,QI=function(h,v,_){var C=h.oklab(),E=v.oklab();return new qI(C[0]+_*(E[0]-C[0]),C[1]+_*(E[1]-C[1]),C[2]+_*(E[2]-C[2]),"oklab")};Ir.oklab=QI;var XI=Fl,KI=function(h,v,_){return XI(h,v,_,"oklch")};Ir.oklch=KI;var sp=F,ZI=p.clip_rgb,lp=Math.pow,up=Math.sqrt,cp=Math.PI,Ux=Math.cos,Gx=Math.sin,JI=Math.atan2,e9=function(h,v,_){v===void 0&&(v="lrgb"),_===void 0&&(_=null);var C=h.length;_||(_=Array.from(new Array(C)).map(function(){return 1}));var E=C/_.reduce(function(be,$e){return be+$e});if(_.forEach(function(be,$e){_[$e]*=E}),h=h.map(function(be){return new sp(be)}),v==="lrgb")return t9(h,_);for(var D=h.shift(),T=D.get(v),R=[],k=0,B=0,V=0;V=360;)ee-=360;T[ne]=ee}else T[ne]=T[ne]/R[ne];return Y/=C,new sp(T,v).alpha(Y>.99999?1:Y,!0)},t9=function(h,v){for(var _=h.length,C=[0,0,0,0],E=0;E.9999999&&(C[3]=1),new sp(ZI(C))},_n=z,Rl=p.type,r9=Math.pow,dp=function(h){var v="rgb",_=_n("#ccc"),C=0,E=[0,1],D=[],T=[0,0],R=!1,k=[],B=!1,V=0,K=1,Y=!1,ne={},ee=!0,be=1,$e=function(U){if(U=U||["#fff","#000"],U&&Rl(U)==="string"&&_n.brewer&&_n.brewer[U.toLowerCase()]&&(U=_n.brewer[U.toLowerCase()]),Rl(U)==="array"){U.length===1&&(U=[U[0],U[0]]),U=U.slice(0);for(var ce=0;ce=R[xe];)xe++;return xe-1}return 0},ze=function(U){return U},Lt=function(U){return U},jt=function(U,ce){var xe,ye;if(ce==null&&(ce=!1),isNaN(U)||U===null)return _;if(ce)ye=U;else if(R&&R.length>2){var zt=De(U);ye=zt/(R.length-2)}else K!==V?ye=(U-V)/(K-V):ye=1;ye=Lt(ye),ce||(ye=ze(ye)),be!==1&&(ye=r9(ye,be)),ye=T[0]+ye*(1-T[0]-T[1]),ye=Math.min(1,Math.max(0,ye));var rt=Math.floor(ye*1e4);if(ee&&ne[rt])xe=ne[rt];else{if(Rl(k)==="array")for(var je=0;je=Ge&&je===D.length-1){xe=k[je];break}if(ye>Ge&&ye2){var je=U.map(function(qe,Ke){return Ke/(U.length-1)}),Ge=U.map(function(qe){return(qe-V)/(K-V)});Ge.every(function(qe,Ke){return je[Ke]===qe})||(Lt=function(qe){if(qe<=0||qe>=1)return qe;for(var Ke=0;qe>=Ge[Ke+1];)Ke++;var wn=(qe-Ge[Ke])/(Ge[Ke+1]-Ge[Ke]),Ni=je[Ke]+wn*(je[Ke+1]-je[Ke]);return Ni})}}return E=[V,K],Te},Te.mode=function(U){return arguments.length?(v=U,xr(),Te):v},Te.range=function(U,ce){return $e(U),Te},Te.out=function(U){return B=U,Te},Te.spread=function(U){return arguments.length?(C=U,Te):C},Te.correctLightness=function(U){return U==null&&(U=!0),Y=U,xr(),Y?ze=function(ce){for(var xe=jt(0,!0).lab()[0],ye=jt(1,!0).lab()[0],zt=xe>ye,rt=jt(ce,!0).lab()[0],je=xe+(ye-xe)*ce,Ge=rt-je,qe=0,Ke=1,wn=20;Math.abs(Ge)>.01&&wn-- >0;)(function(){return zt&&(Ge*=-1),Ge<0?(qe=ce,ce+=(Ke-ce)*.5):(Ke=ce,ce+=(qe-ce)*.5),rt=jt(ce,!0).lab()[0],Ge=rt-je})();return ce}:ze=function(ce){return ce},Te},Te.padding=function(U){return U!=null?(Rl(U)==="number"&&(U=[U,U]),T=U,Te):T},Te.colors=function(U,ce){arguments.length<2&&(ce="hex");var xe=[];if(arguments.length===0)xe=k.slice(0);else if(U===1)xe=[Te(.5)];else if(U>1){var ye=E[0],zt=E[1]-ye;xe=n9(0,U).map(function(Ke){return Te(ye+Ke/(U-1)*zt)})}else{h=[];var rt=[];if(R&&R.length>2)for(var je=1,Ge=R.length,qe=1<=Ge;qe?jeGe;qe?je++:je--)rt.push((R[je-1]+R[je])*.5);else rt=E;xe=rt.map(function(Ke){return Te(Ke)})}return _n[ce]&&(xe=xe.map(function(Ke){return Ke[ce]()})),xe},Te.cache=function(U){return U!=null?(ee=U,Te):ee},Te.gamma=function(U){return U!=null?(be=U,Te):be},Te.nodata=function(U){return U!=null?(_=_n(U),Te):_},Te};function n9(h,v,_){for(var C=[],E=hD;E?T++:T--)C.push(T);return C}var Zc=F,a9=dp,i9=function(h){for(var v=[1,1],_=1;_=5){var B,V,K;B=h.map(function(Y){return Y.lab()}),K=h.length-1,V=i9(K),E=function(Y){var ne=1-Y,ee=[0,1,2].map(function(be){return B.reduce(function($e,De,ze){return $e+V[ze]*Math.pow(ne,K-ze)*Math.pow(Y,ze)*De[be]},0)});return new Zc(ee,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return E},s9=function(h){var v=o9(h);return v.scale=function(){return a9(v)},v},fp=z,xn=function(h,v,_){if(!xn[_])throw new Error("unknown blend mode "+_);return xn[_](h,v)},Ri=function(h){return function(v,_){var C=fp(_).rgb(),E=fp(v).rgb();return fp.rgb(h(C,E))}},ki=function(h){return function(v,_){var C=[];return C[0]=h(v[0],_[0]),C[1]=h(v[1],_[1]),C[2]=h(v[2],_[2]),C}},l9=function(h){return h},u9=function(h,v){return h*v/255},c9=function(h,v){return h>v?v:h},d9=function(h,v){return h>v?h:v},f9=function(h,v){return 255*(1-(1-h/255)*(1-v/255))},h9=function(h,v){return v<128?2*h*v/255:255*(1-2*(1-h/255)*(1-v/255))},m9=function(h,v){return 255*(1-(1-v/255)/(h/255))},v9=function(h,v){return h===255?255:(h=255*(v/255)/(1-h/255),h>255?255:h)};xn.normal=Ri(ki(l9)),xn.multiply=Ri(ki(u9)),xn.screen=Ri(ki(f9)),xn.overlay=Ri(ki(h9)),xn.darken=Ri(ki(c9)),xn.lighten=Ri(ki(d9)),xn.dodge=Ri(ki(v9)),xn.burn=Ri(ki(m9));for(var p9=xn,hp=p.type,g9=p.clip_rgb,b9=p.TWOPI,y9=Math.pow,_9=Math.sin,x9=Math.cos,qx=z,w9=function(h,v,_,C,E){h===void 0&&(h=300),v===void 0&&(v=-1.5),_===void 0&&(_=1),C===void 0&&(C=1),E===void 0&&(E=[0,1]);var D=0,T;hp(E)==="array"?T=E[1]-E[0]:(T=0,E=[E,E]);var R=function(k){var B=b9*((h+120)/360+v*k),V=y9(E[0]+T*k,C),K=D!==0?_[0]+k*D:_,Y=K*V*(1-V)/2,ne=x9(B),ee=_9(B),be=V+Y*(-.14861*ne+1.78277*ee),$e=V+Y*(-.29227*ne-.90649*ee),De=V+Y*(1.97294*ne);return qx(g9([be*255,$e*255,De*255,1]))};return R.start=function(k){return k==null?h:(h=k,R)},R.rotations=function(k){return k==null?v:(v=k,R)},R.gamma=function(k){return k==null?C:(C=k,R)},R.hue=function(k){return k==null?_:(_=k,hp(_)==="array"?(D=_[1]-_[0],D===0&&(_=_[1])):D=0,R)},R.lightness=function(k){return k==null?E:(hp(k)==="array"?(E=k,T=k[1]-k[0]):(E=[k,k],T=0),R)},R.scale=function(){return qx.scale(R)},R.hue(_),R},S9=F,P9="0123456789abcdef",$9=Math.floor,O9=Math.random,C9=function(){for(var h="#",v=0;v<6;v++)h+=P9.charAt($9(O9()*16));return new S9(h,"hex")},mp=c,Qx=Math.log,M9=Math.pow,T9=Math.floor,E9=Math.abs,Xx=function(h,v){v===void 0&&(v=null);var _={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return mp(h)==="object"&&(h=Object.values(h)),h.forEach(function(C){v&&mp(C)==="object"&&(C=C[v]),C!=null&&!isNaN(C)&&(_.values.push(C),_.sum+=C,C<_.min&&(_.min=C),C>_.max&&(_.max=C),_.count+=1)}),_.domain=[_.min,_.max],_.limits=function(C,E){return Kx(_,C,E)},_},Kx=function(h,v,_){v===void 0&&(v="equal"),_===void 0&&(_=7),mp(h)=="array"&&(h=Xx(h));var C=h.min,E=h.max,D=h.values.sort(function(pp,gp){return pp-gp});if(_===1)return[C,E];var T=[];if(v.substr(0,1)==="c"&&(T.push(C),T.push(E)),v.substr(0,1)==="e"){T.push(C);for(var R=1;R<_;R++)T.push(C+R/_*(E-C));T.push(E)}else if(v.substr(0,1)==="l"){if(C<=0)throw new Error("Logarithmic scales are only possible for values > 0");var k=Math.LOG10E*Qx(C),B=Math.LOG10E*Qx(E);T.push(C);for(var V=1;V<_;V++)T.push(M9(10,k+V/_*(B-k)));T.push(E)}else if(v.substr(0,1)==="q"){T.push(C);for(var K=1;K<_;K++){var Y=(D.length-1)*K/_,ne=T9(Y);if(ne===Y)T.push(D[ne]);else{var ee=Y-ne;T.push(D[ne]*(1-ee)+D[ne+1]*ee)}}T.push(E)}else if(v.substr(0,1)==="k"){var be,$e=D.length,De=new Array($e),ze=new Array(_),Lt=!0,jt=0,xr=null;xr=[],xr.push(C);for(var Te=1;Te<_;Te++)xr.push(C+Te/_*(E-C));for(xr.push(E);Lt;){for(var U=0;U<_;U++)ze[U]=0;for(var ce=0;ce<$e;ce++)for(var xe=D[ce],ye=Number.MAX_VALUE,zt=void 0,rt=0;rt<_;rt++){var je=E9(xr[rt]-xe);je200&&(Lt=!1)}for(var Li={},kl=0;kl<_;kl++)Li[kl]=[];for(var Nl=0;Nl<$e;Nl++)be=De[Nl],Li[be].push(D[Nl]);for(var Da=[],Cs=0;Cs<_;Cs++)Da.push(Li[Cs][0]),Da.push(Li[Cs][Li[Cs].length-1]);Da=Da.sort(function(pp,gp){return pp-gp}),T.push(Da[0]);for(var Jc=1;JcC?(_+.05)/(C+.05):(C+.05)/(_+.05)},ew=F,Ea=Math.sqrt,xt=Math.pow,j9=Math.min,I9=Math.max,tw=Math.atan2,rw=Math.abs,_h=Math.cos,nw=Math.sin,A9=Math.exp,aw=Math.PI,F9=function(h,v,_,C,E){_===void 0&&(_=1),C===void 0&&(C=1),E===void 0&&(E=1);var D=function(Ms){return 360*Ms/(2*aw)},T=function(Ms){return 2*aw*Ms/360};h=new ew(h),v=new ew(v);var R=Array.from(h.lab()),k=R[0],B=R[1],V=R[2],K=Array.from(v.lab()),Y=K[0],ne=K[1],ee=K[2],be=(k+Y)/2,$e=Ea(xt(B,2)+xt(V,2)),De=Ea(xt(ne,2)+xt(ee,2)),ze=($e+De)/2,Lt=.5*(1-Ea(xt(ze,7)/(xt(ze,7)+xt(25,7)))),jt=B*(1+Lt),xr=ne*(1+Lt),Te=Ea(xt(jt,2)+xt(V,2)),U=Ea(xt(xr,2)+xt(ee,2)),ce=(Te+U)/2,xe=D(tw(V,jt)),ye=D(tw(ee,xr)),zt=xe>=0?xe:xe+360,rt=ye>=0?ye:ye+360,je=rw(zt-rt)>180?(zt+rt+360)/2:(zt+rt)/2,Ge=1-.17*_h(T(je-30))+.24*_h(T(2*je))+.32*_h(T(3*je+6))-.2*_h(T(4*je-63)),qe=rt-zt;qe=rw(qe)<=180?qe:rt<=zt?qe+360:qe-360,qe=2*Ea(Te*U)*nw(T(qe)/2);var Ke=Y-k,wn=U-Te,Ni=1+.015*xt(be-50,2)/Ea(20+xt(be-50,2)),Li=1+.045*ce,kl=1+.015*ce*Ge,Nl=30*A9(-xt((je-275)/25,2)),Da=2*Ea(xt(ce,7)/(xt(ce,7)+xt(25,7))),Cs=-Da*nw(2*T(Nl)),Jc=Ea(xt(Ke/(_*Ni),2)+xt(wn/(C*Li),2)+xt(qe/(E*kl),2)+Cs*(wn/(C*Li))*(qe/(E*kl)));return I9(0,j9(100,Jc))},iw=F,R9=function(h,v,_){_===void 0&&(_="lab"),h=new iw(h),v=new iw(v);var C=h.get(_),E=v.get(_),D=0;for(var T in C){var R=(C[T]||0)-(E[T]||0);D+=R*R}return Math.sqrt(D)},k9=F,N9=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];try{return new(Function.prototype.bind.apply(k9,[null].concat(h))),!0}catch{return!1}},ow=z,sw=dp,L9={cool:function(){return sw([ow.hsl(180,1,.9),ow.hsl(250,.7,.4)])},hot:function(){return sw(["#000","#f00","#ff0","#fff"]).mode("rgb")}},xh={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},vp=0,lw=Object.keys(xh);vp=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),n),r)}J_.add=AJ;var EJ=la,DJ=tc,jJ=Fe,IJ=W;function AJ(e,t){const{years:r=0,months:n=0,weeks:a=0,days:o=0,hours:s=0,minutes:l=0,seconds:u=0}=t,c=(0,IJ.toDate)(e),d=n||r?(0,DJ.addMonths)(c,n+r*12):c,f=o||a?(0,EJ.addDays)(d,o+a*7):d,m=l+s*60,x=(u+m*60)*1e3;return(0,jJ.constructFrom)(e,f.getTime()+x)}var e2={},t2={};t2.isSaturday=RJ;var FJ=W;function RJ(e){return(0,FJ.toDate)(e).getDay()===6}var r2={};r2.isSunday=NJ;var kJ=W;function NJ(e){return(0,kJ.toDate)(e).getDay()===0}var sh={};sh.isWeekend=zJ;var LJ=W;function zJ(e){const t=(0,LJ.toDate)(e).getDay();return t===0||t===6}e2.addBusinessDays=YJ;var WJ=Fe,BJ=t2,VJ=r2,Ig=sh,HJ=W;function YJ(e,t){const r=(0,HJ.toDate)(e),n=(0,Ig.isWeekend)(r);if(isNaN(t))return(0,WJ.constructFrom)(e,NaN);const a=r.getHours(),o=t<0?-1:1,s=Math.trunc(t/5);r.setDate(r.getDate()+s*7);let l=Math.abs(t%5);for(;l>0;)r.setDate(r.getDate()+o),(0,Ig.isWeekend)(r)||(l-=1);return n&&(0,Ig.isWeekend)(r)&&t!==0&&((0,BJ.isSaturday)(r)&&r.setDate(r.getDate()+(o<0?2:-1)),(0,VJ.isSunday)(r)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(a),r}var Fv={},rc={};rc.addMilliseconds=qJ;var UJ=W,GJ=Fe;function qJ(e,t){const r=+(0,UJ.toDate)(e);return(0,GJ.constructFrom)(e,r+t)}var X={};X.secondsInYear=X.secondsInWeek=X.secondsInQuarter=X.secondsInMonth=X.secondsInMinute=X.secondsInHour=X.secondsInDay=X.quartersInYear=X.monthsInYear=X.monthsInQuarter=X.minutesInYear=X.minutesInMonth=X.minutesInHour=X.minutesInDay=X.minTime=X.millisecondsInWeek=X.millisecondsInSecond=X.millisecondsInMinute=X.millisecondsInHour=X.millisecondsInDay=X.maxTime=X.daysInYear=X.daysInWeek=void 0;X.daysInWeek=7;const QJ=X.daysInYear=365.2425,XJ=X.maxTime=Math.pow(10,8)*24*60*60*1e3;X.minTime=-XJ;X.millisecondsInWeek=6048e5;X.millisecondsInDay=864e5;X.millisecondsInMinute=6e4;X.millisecondsInHour=36e5;X.millisecondsInSecond=1e3;X.minutesInYear=525600;X.minutesInMonth=43200;X.minutesInDay=1440;X.minutesInHour=60;X.monthsInQuarter=3;X.monthsInYear=12;X.quartersInYear=4;const KJ=X.secondsInHour=3600;X.secondsInMinute=60;const Z4=X.secondsInDay=KJ*24;X.secondsInWeek=Z4*7;const ZJ=X.secondsInYear=Z4*QJ,JJ=X.secondsInMonth=ZJ/12;X.secondsInQuarter=JJ*3;Fv.addHours=ree;var eee=rc,tee=X;function ree(e,t){return(0,eee.addMilliseconds)(e,t*tee.millisecondsInHour)}var n2={},Io={},ua={},An={},Gt={};Gt.getDefaultOptions=nee;Gt.setDefaultOptions=aee;let J4={};function nee(){return J4}function aee(e){J4=e}An.startOfWeek=see;var iee=W,oee=Gt;function see(e,t){var l,u,c,d;const r=(0,oee.getDefaultOptions)(),n=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,a=(0,iee.toDate)(e),o=a.getDay(),s=(o=a.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}var a2={},ii={},lh={};lh.startOfDay=hee;var fee=W;function hee(e){const t=(0,fee.toDate)(e);return t.setHours(0,0,0,0),t}var oi={};oi.getTimezoneOffsetInMilliseconds=vee;var mee=W;function vee(e){const t=(0,mee.toDate)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}ii.differenceInCalendarDays=gee;var pee=X,f3=lh,h3=oi;function gee(e,t){const r=(0,f3.startOfDay)(e),n=(0,f3.startOfDay)(t),a=+r-(0,h3.getTimezoneOffsetInMilliseconds)(r),o=+n-(0,h3.getTimezoneOffsetInMilliseconds)(n);return Math.round((a-o)/pee.millisecondsInDay)}var nc={};nc.startOfISOWeekYear=xee;var bee=Io,yee=ua,_ee=Fe;function xee(e){const t=(0,bee.getISOWeekYear)(e),r=(0,_ee.constructFrom)(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),(0,yee.startOfISOWeek)(r)}a2.setISOWeekYear=$ee;var wee=Fe,See=ii,m3=nc,Pee=W;function $ee(e,t){let r=(0,Pee.toDate)(e);const n=(0,See.differenceInCalendarDays)(r,(0,m3.startOfISOWeekYear)(r)),a=(0,wee.constructFrom)(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),r=(0,m3.startOfISOWeekYear)(a),r.setDate(r.getDate()+n),r}n2.addISOWeekYears=Mee;var Oee=Io,Cee=a2;function Mee(e,t){return(0,Cee.setISOWeekYear)(e,(0,Oee.getISOWeekYear)(e)+t)}var Rv={};Rv.addMinutes=Dee;var Tee=rc,Eee=X;function Dee(e,t){return(0,Tee.addMilliseconds)(e,t*Eee.millisecondsInMinute)}var kv={};kv.addQuarters=Iee;var jee=tc;function Iee(e,t){const r=t*3;return(0,jee.addMonths)(e,r)}var i2={};i2.addSeconds=Fee;var Aee=rc;function Fee(e,t){return(0,Aee.addMilliseconds)(e,t*1e3)}var uh={};uh.addWeeks=kee;var Ree=la;function kee(e,t){const r=t*7;return(0,Ree.addDays)(e,r)}var o2={};o2.addYears=Lee;var Nee=tc;function Lee(e,t){return(0,Nee.addMonths)(e,t*12)}var eD={};eD.areIntervalsOverlapping=zee;var tm=W;function zee(e,t,r){const[n,a]=[+(0,tm.toDate)(e.start),+(0,tm.toDate)(e.end)].sort((l,u)=>l-u),[o,s]=[+(0,tm.toDate)(t.start),+(0,tm.toDate)(t.end)].sort((l,u)=>l-u);return r!=null&&r.inclusive?n<=s&&o<=a:n{const n=(0,Vee.toDate)(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}tD.clamp=Gee;var Yee=s2,Uee=l2;function Gee(e,t){return(0,Uee.min)([(0,Yee.max)([e,t.start]),t.end])}var rD={};rD.closestIndexTo=qee;var v3=W;function qee(e,t){const r=(0,v3.toDate)(e);if(isNaN(Number(r)))return NaN;const n=r.getTime();let a,o;return t.forEach(function(s,l){const u=(0,v3.toDate)(s);if(isNaN(Number(u))){a=NaN,o=NaN;return}const c=Math.abs(n-u.getTime());(a==null||c{const l=(0,g3.toDate)(s);if(isNaN(Number(l))){a=(0,p3.constructFrom)(e,NaN),o=NaN;return}const u=Math.abs(n-l.getTime());(a==null||u0?1:a}var aD={};aD.compareDesc=Kee;var y3=W;function Kee(e,t){const r=(0,y3.toDate)(e),n=(0,y3.toDate)(t),a=r.getTime()-n.getTime();return a>0?-1:a<0?1:a}var vr={};vr.constructNow=Jee;var Zee=Fe;function Jee(e){return(0,Zee.constructFrom)(e,Date.now())}var iD={};iD.daysToWeeks=tte;var ete=X;function tte(e){const t=e/ete.daysInWeek,r=Math.trunc(t);return r===0?0:r}var oD={},ac={};ac.isSameDay=rte;var _3=lh;function rte(e,t){const r=(0,_3.startOfDay)(e),n=(0,_3.startOfDay)(t);return+r==+n}var si={},u2={};u2.isDate=nte;function nte(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}si.isValid=ote;var ate=u2,ite=W;function ote(e){if(!(0,ate.isDate)(e)&&typeof e!="number")return!1;const t=(0,ite.toDate)(e);return!isNaN(Number(t))}oD.differenceInBusinessDays=cte;var x3=la,ste=ii,lte=ac,w3=si,ute=sh,S3=W;function cte(e,t){const r=(0,S3.toDate)(e);let n=(0,S3.toDate)(t);if(!(0,w3.isValid)(r)||!(0,w3.isValid)(n))return NaN;const a=(0,ste.differenceInCalendarDays)(r,n),o=a<0?-1:1,s=Math.trunc(a/7);let l=s*5;for(n=(0,x3.addDays)(n,s*7);!(0,lte.isSameDay)(r,n);)l+=(0,ute.isWeekend)(n)?0:o,n=(0,x3.addDays)(n,o);return l===0?0:l}var c2={};c2.differenceInCalendarISOWeekYears=dte;var P3=Io;function dte(e,t){return(0,P3.getISOWeekYear)(e)-(0,P3.getISOWeekYear)(t)}var sD={};sD.differenceInCalendarISOWeeks=hte;var fte=X,$3=ua,O3=oi;function hte(e,t){const r=(0,$3.startOfISOWeek)(e),n=(0,$3.startOfISOWeek)(t),a=+r-(0,O3.getTimezoneOffsetInMilliseconds)(r),o=+n-(0,O3.getTimezoneOffsetInMilliseconds)(n);return Math.round((a-o)/fte.millisecondsInWeek)}var Nv={};Nv.differenceInCalendarMonths=mte;var C3=W;function mte(e,t){const r=(0,C3.toDate)(e),n=(0,C3.toDate)(t),a=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return a*12+o}var d2={},f2={};f2.getQuarter=pte;var vte=W;function pte(e){const t=(0,vte.toDate)(e);return Math.trunc(t.getMonth()/3)+1}d2.differenceInCalendarQuarters=gte;var M3=f2,T3=W;function gte(e,t){const r=(0,T3.toDate)(e),n=(0,T3.toDate)(t),a=r.getFullYear()-n.getFullYear(),o=(0,M3.getQuarter)(r)-(0,M3.getQuarter)(n);return a*4+o}var Lv={};Lv.differenceInCalendarWeeks=yte;var bte=X,E3=An,D3=oi;function yte(e,t,r){const n=(0,E3.startOfWeek)(e,r),a=(0,E3.startOfWeek)(t,r),o=+n-(0,D3.getTimezoneOffsetInMilliseconds)(n),s=+a-(0,D3.getTimezoneOffsetInMilliseconds)(a);return Math.round((o-s)/bte.millisecondsInWeek)}var zv={};zv.differenceInCalendarYears=_te;var j3=W;function _te(e,t){const r=(0,j3.toDate)(e),n=(0,j3.toDate)(t);return r.getFullYear()-n.getFullYear()}var Wv={};Wv.differenceInDays=wte;var xte=ii,I3=W;function wte(e,t){const r=(0,I3.toDate)(e),n=(0,I3.toDate)(t),a=A3(r,n),o=Math.abs((0,xte.differenceInCalendarDays)(r,n));r.setDate(r.getDate()-a*o);const s=+(A3(r,n)===-a),l=a*(o-s);return l===0?0:l}function A3(e,t){const r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}var Bv={},li={};li.getRoundingMethod=Ste;function Ste(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}var ch={};ch.differenceInMilliseconds=Pte;var F3=W;function Pte(e,t){return+(0,F3.toDate)(e)-+(0,F3.toDate)(t)}Bv.differenceInHours=Mte;var $te=li,Ote=X,Cte=ch;function Mte(e,t,r){const n=(0,Cte.differenceInMilliseconds)(e,t)/Ote.millisecondsInHour;return(0,$te.getRoundingMethod)(r==null?void 0:r.roundingMethod)(n)}var lD={},h2={};h2.subISOWeekYears=Ete;var Tte=n2;function Ete(e,t){return(0,Tte.addISOWeekYears)(e,-t)}lD.differenceInISOWeekYears=Ite;var R3=vl,Dte=c2,jte=h2,k3=W;function Ite(e,t){let r=(0,k3.toDate)(e);const n=(0,k3.toDate)(t),a=(0,R3.compareAsc)(r,n),o=Math.abs((0,Dte.differenceInCalendarISOWeekYears)(r,n));r=(0,jte.subISOWeekYears)(r,a*o);const s=+((0,R3.compareAsc)(r,n)===-a),l=a*(o-s);return l===0?0:l}var Vv={};Vv.differenceInMinutes=kte;var Ate=li,Fte=X,Rte=ch;function kte(e,t,r){const n=(0,Rte.differenceInMilliseconds)(e,t)/Fte.millisecondsInMinute;return(0,Ate.getRoundingMethod)(r==null?void 0:r.roundingMethod)(n)}var dh={},m2={},Hv={};Hv.endOfDay=Lte;var Nte=W;function Lte(e){const t=(0,Nte.toDate)(e);return t.setHours(23,59,59,999),t}var Yv={};Yv.endOfMonth=Wte;var zte=W;function Wte(e){const t=(0,zte.toDate)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}m2.isLastDayOfMonth=Yte;var Bte=Hv,Vte=Yv,Hte=W;function Yte(e){const t=(0,Hte.toDate)(e);return+(0,Bte.endOfDay)(t)==+(0,Vte.endOfMonth)(t)}dh.differenceInMonths=qte;var Ag=vl,Ute=Nv,Gte=m2,Fg=W;function qte(e,t){const r=(0,Fg.toDate)(e),n=(0,Fg.toDate)(t),a=(0,Ag.compareAsc)(r,n),o=Math.abs((0,Ute.differenceInCalendarMonths)(r,n));let s;if(o<1)s=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*o);let l=(0,Ag.compareAsc)(r,n)===-a;(0,Gte.isLastDayOfMonth)((0,Fg.toDate)(e))&&o===1&&(0,Ag.compareAsc)(e,n)===1&&(l=!1),s=a*(o-Number(l))}return s===0?0:s}var uD={};uD.differenceInQuarters=Kte;var Qte=li,Xte=dh;function Kte(e,t,r){const n=(0,Xte.differenceInMonths)(e,t)/3;return(0,Qte.getRoundingMethod)(r==null?void 0:r.roundingMethod)(n)}var fh={};fh.differenceInSeconds=ere;var Zte=li,Jte=ch;function ere(e,t,r){const n=(0,Jte.differenceInMilliseconds)(e,t)/1e3;return(0,Zte.getRoundingMethod)(r==null?void 0:r.roundingMethod)(n)}var cD={};cD.differenceInWeeks=nre;var tre=li,rre=Wv;function nre(e,t,r){const n=(0,rre.differenceInDays)(e,t)/7;return(0,tre.getRoundingMethod)(r==null?void 0:r.roundingMethod)(n)}var v2={};v2.differenceInYears=ire;var N3=vl,are=zv,L3=W;function ire(e,t){const r=(0,L3.toDate)(e),n=(0,L3.toDate)(t),a=(0,N3.compareAsc)(r,n),o=Math.abs((0,are.differenceInCalendarYears)(r,n));r.setFullYear(1584),n.setFullYear(1584);const s=(0,N3.compareAsc)(r,n)===-a,l=a*(o-+s);return l===0?0:l}var p2={};p2.eachDayOfInterval=ore;var Rg=W;function ore(e,t){const r=(0,Rg.toDate)(e.start),n=(0,Rg.toDate)(e.end);let a=+r>+n;const o=a?+r:+n,s=a?n:r;s.setHours(0,0,0,0);let l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=o;)u.push((0,Rg.toDate)(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a?u.reverse():u}var dD={};dD.eachHourOfInterval=lre;var sre=Fv,kg=W;function lre(e,t){const r=(0,kg.toDate)(e.start),n=(0,kg.toDate)(e.end);let a=+r>+n;const o=a?+r:+n;let s=a?n:r;s.setMinutes(0,0,0);let l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=o;)u.push((0,kg.toDate)(s)),s=(0,sre.addHours)(s,l);return a?u.reverse():u}var fD={},Uv={};Uv.startOfMinute=cre;var ure=W;function cre(e){const t=(0,ure.toDate)(e);return t.setSeconds(0,0),t}fD.eachMinuteOfInterval=hre;var dre=Rv,fre=Uv,Ng=W;function hre(e,t){const r=(0,fre.startOfMinute)((0,Ng.toDate)(e.start)),n=(0,Ng.toDate)(e.end);let a=+r>+n;const o=a?+r:+n;let s=a?n:r,l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=o;)u.push((0,Ng.toDate)(s)),s=(0,dre.addMinutes)(s,l);return a?u.reverse():u}var hD={};hD.eachMonthOfInterval=mre;var Lg=W;function mre(e,t){const r=(0,Lg.toDate)(e.start),n=(0,Lg.toDate)(e.end);let a=+r>+n;const o=a?+r:+n,s=a?n:r;s.setHours(0,0,0,0),s.setDate(1);let l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=o;)u.push((0,Lg.toDate)(s)),s.setMonth(s.getMonth()+l);return a?u.reverse():u}var mD={},Gv={};Gv.startOfQuarter=pre;var vre=W;function pre(e){const t=(0,vre.toDate)(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}mD.eachQuarterOfInterval=bre;var gre=kv,rm=Gv,zg=W;function bre(e,t){const r=(0,zg.toDate)(e.start),n=(0,zg.toDate)(e.end);let a=+r>+n;const o=a?+(0,rm.startOfQuarter)(r):+(0,rm.startOfQuarter)(n);let s=a?(0,rm.startOfQuarter)(n):(0,rm.startOfQuarter)(r),l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=o;)u.push((0,zg.toDate)(s)),s=(0,gre.addQuarters)(s,l);return a?u.reverse():u}var vD={};vD.eachWeekOfInterval=_re;var yre=uh,nm=An,Wg=W;function _re(e,t){const r=(0,Wg.toDate)(e.start),n=(0,Wg.toDate)(e.end);let a=+r>+n;const o=a?(0,nm.startOfWeek)(n,t):(0,nm.startOfWeek)(r,t),s=a?(0,nm.startOfWeek)(r,t):(0,nm.startOfWeek)(n,t);o.setHours(15),s.setHours(15);const l=+s.getTime();let u=o,c=(t==null?void 0:t.step)??1;if(!c)return[];c<0&&(c=-c,a=!a);const d=[];for(;+u<=l;)u.setHours(0),d.push((0,Wg.toDate)(u)),u=(0,yre.addWeeks)(u,c),u.setHours(15);return a?d.reverse():d}var qv={};qv.eachWeekendOfInterval=Sre;var xre=p2,wre=sh;function Sre(e){const t=(0,xre.eachDayOfInterval)(e),r=[];let n=0;for(;n+n;const o=a?+r:+n,s=a?n:r;s.setHours(0,0,0,0),s.setMonth(0,1);let l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=o;)u.push((0,Bg.toDate)(s)),s.setFullYear(s.getFullYear()+l);return a?u.reverse():u}var yD={};yD.endOfDecade=Wre;var zre=W;function Wre(e){const t=(0,zre.toDate)(e),r=t.getFullYear(),n=9+Math.floor(r/10)*10;return t.setFullYear(n,11,31),t.setHours(23,59,59,999),t}var _D={};_D.endOfHour=Vre;var Bre=W;function Vre(e){const t=(0,Bre.toDate)(e);return t.setMinutes(59,59,999),t}var xD={},b2={};b2.endOfWeek=Ure;var Hre=W,Yre=Gt;function Ure(e,t){var l,u,c,d;const r=(0,Yre.getDefaultOptions)(),n=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,a=(0,Hre.toDate)(e),o=a.getDay(),s=(o{let n;const a=une[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};x2.formatDistance=cne;var w2={},TD={};TD.buildFormatLongFn=dne;function dne(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}w2.formatLong=void 0;var Vg=TD;const fne={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hne={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};w2.formatLong={date:(0,Vg.buildFormatLongFn)({formats:fne,defaultWidth:"full"}),time:(0,Vg.buildFormatLongFn)({formats:hne,defaultWidth:"full"}),dateTime:(0,Vg.buildFormatLongFn)({formats:mne,defaultWidth:"full"})};var S2={};S2.formatRelative=void 0;const vne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pne=(e,t,r,n)=>vne[e];S2.formatRelative=pne;var P2={},ED={};ED.buildLocalizeFn=gne;function gne(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let a;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):s;a=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[l]||e.values[s]}const o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}P2.localize=void 0;var gd=ED;const bne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yne={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_ne={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Sne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Pne=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"};P2.localize={ordinalNumber:Pne,era:(0,gd.buildLocalizeFn)({values:bne,defaultWidth:"wide"}),quarter:(0,gd.buildLocalizeFn)({values:yne,defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,gd.buildLocalizeFn)({values:_ne,defaultWidth:"wide"}),day:(0,gd.buildLocalizeFn)({values:xne,defaultWidth:"wide"}),dayPeriod:(0,gd.buildLocalizeFn)({values:wne,defaultWidth:"wide",formattingValues:Sne,defaultFormattingWidth:"wide"})};var $2={},DD={};DD.buildMatchFn=$ne;function $ne(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const s=o[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?Cne(l,f=>f.test(s)):One(l,f=>f.test(s));let c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;const d=t.slice(s.length);return{value:c,rest:d}}}function One(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Cne(e,t){for(let r=0;r{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;const l=t.slice(a.length);return{value:s,rest:l}}}$2.match=void 0;var bd=DD,Tne=jD;const Ene=/^(\d+)(th|st|nd|rd)?/i,Dne=/\d+/i,jne={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ine={any:[/^b/i,/^(a|c)/i]},Ane={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fne={any:[/1/i,/2/i,/3/i,/4/i]},Rne={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},kne={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nne={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Lne={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},zne={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Wne={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};$2.match={ordinalNumber:(0,Tne.buildMatchPatternFn)({matchPattern:Ene,parsePattern:Dne,valueCallback:e=>parseInt(e,10)}),era:(0,bd.buildMatchFn)({matchPatterns:jne,defaultMatchWidth:"wide",parsePatterns:Ine,defaultParseWidth:"any"}),quarter:(0,bd.buildMatchFn)({matchPatterns:Ane,defaultMatchWidth:"wide",parsePatterns:Fne,defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,bd.buildMatchFn)({matchPatterns:Rne,defaultMatchWidth:"wide",parsePatterns:kne,defaultParseWidth:"any"}),day:(0,bd.buildMatchFn)({matchPatterns:Nne,defaultMatchWidth:"wide",parsePatterns:Lne,defaultParseWidth:"any"}),dayPeriod:(0,bd.buildMatchFn)({matchPatterns:zne,defaultMatchWidth:"any",parsePatterns:Wne,defaultParseWidth:"any"})};_2.enUS=void 0;var Bne=x2,Vne=w2,Hne=S2,Yne=P2,Une=$2;_2.enUS={code:"en-US",formatDistance:Bne.formatDistance,formatLong:Vne.formatLong,formatRelative:Hne.formatRelative,localize:Yne.localize,match:Une.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};(function(e){Object.defineProperty(e,"defaultLocale",{enumerable:!0,get:function(){return t.enUS}});var t=_2})(pl);var O2={},C2={};C2.getDayOfYear=Xne;var Gne=ii,qne=Qv,Qne=W;function Xne(e){const t=(0,Qne.toDate)(e);return(0,Gne.differenceInCalendarDays)(t,(0,qne.startOfYear)(t))+1}var Xv={};Xv.getISOWeek=tae;var Kne=X,Zne=ua,Jne=nc,eae=W;function tae(e){const t=(0,eae.toDate)(e),r=+(0,Zne.startOfISOWeek)(t)-+(0,Jne.startOfISOWeekYear)(t);return Math.round(r/Kne.millisecondsInWeek)+1}var Kv={},Zv={},mh={};mh.getWeekYear=aae;var z3=Fe,W3=An,rae=W,nae=Gt;function aae(e,t){var d,f,m,g;const r=(0,rae.toDate)(e),n=r.getFullYear(),a=(0,nae.getDefaultOptions)(),o=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((g=(m=a.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,s=(0,z3.constructFrom)(e,0);s.setFullYear(n+1,0,o),s.setHours(0,0,0,0);const l=(0,W3.startOfWeek)(s,t),u=(0,z3.constructFrom)(e,0);u.setFullYear(n,0,o),u.setHours(0,0,0,0);const c=(0,W3.startOfWeek)(u,t);return r.getTime()>=l.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}Zv.startOfWeekYear=uae;var iae=Fe,oae=mh,sae=An,lae=Gt;function uae(e,t){var l,u,c,d;const r=(0,lae.getDefaultOptions)(),n=(t==null?void 0:t.firstWeekContainsDate)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,a=(0,oae.getWeekYear)(e,t),o=(0,iae.constructFrom)(e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),(0,sae.startOfWeek)(o,t)}Kv.getWeek=mae;var cae=X,dae=An,fae=Zv,hae=W;function mae(e,t){const r=(0,hae.toDate)(e),n=+(0,dae.startOfWeek)(r,t)-+(0,fae.startOfWeekYear)(r,t);return Math.round(n/cae.millisecondsInWeek)+1}var gl={};gl.addLeadingZeros=vae;function vae(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var Jv={};Jv.lightFormatters=void 0;var Hi=gl;Jv.lightFormatters={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return(0,Hi.addLeadingZeros)(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):(0,Hi.addLeadingZeros)(r+1,2)},d(e,t){return(0,Hi.addLeadingZeros)(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return(0,Hi.addLeadingZeros)(e.getHours()%12||12,t.length)},H(e,t){return(0,Hi.addLeadingZeros)(e.getHours(),t.length)},m(e,t){return(0,Hi.addLeadingZeros)(e.getMinutes(),t.length)},s(e,t){return(0,Hi.addLeadingZeros)(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return(0,Hi.addLeadingZeros)(a,t.length)}};O2.formatters=void 0;var pae=C2,gae=Xv,bae=Io,yae=Kv,_ae=mh,gt=gl,Yi=Jv;const Hl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};O2.formatters={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return Yi.lightFormatters.y(e,t)},Y:function(e,t,r,n){const a=(0,_ae.getWeekYear)(e,n),o=a>0?a:1-a;if(t==="YY"){const s=o%100;return(0,gt.addLeadingZeros)(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):(0,gt.addLeadingZeros)(o,t.length)},R:function(e,t){const r=(0,bae.getISOWeekYear)(e);return(0,gt.addLeadingZeros)(r,t.length)},u:function(e,t){const r=e.getFullYear();return(0,gt.addLeadingZeros)(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,gt.addLeadingZeros)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,gt.addLeadingZeros)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Yi.lightFormatters.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return(0,gt.addLeadingZeros)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=(0,yae.getWeek)(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):(0,gt.addLeadingZeros)(a,t.length)},I:function(e,t,r){const n=(0,gae.getISOWeek)(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):(0,gt.addLeadingZeros)(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Yi.lightFormatters.d(e,t)},D:function(e,t,r){const n=(0,pae.getDayOfYear)(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):(0,gt.addLeadingZeros)(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,gt.addLeadingZeros)(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,gt.addLeadingZeros)(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return(0,gt.addLeadingZeros)(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(n===12?a=Hl.noon:n===0?a=Hl.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(n>=17?a=Hl.evening:n>=12?a=Hl.afternoon:n>=4?a=Hl.morning:a=Hl.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Yi.lightFormatters.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Yi.lightFormatters.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):(0,gt.addLeadingZeros)(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):(0,gt.addLeadingZeros)(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Yi.lightFormatters.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Yi.lightFormatters.s(e,t)},S:function(e,t){return Yi.lightFormatters.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return V3(n);case"XXXX":case"XX":return ks(n);case"XXXXX":case"XXX":default:return ks(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return V3(n);case"xxxx":case"xx":return ks(n);case"xxxxx":case"xxx":default:return ks(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+B3(n,":");case"OOOO":default:return"GMT"+ks(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+B3(n,":");case"zzzz":default:return"GMT"+ks(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return(0,gt.addLeadingZeros)(n,t.length)},T:function(e,t,r){const n=e.getTime();return(0,gt.addLeadingZeros)(n,t.length)}};function B3(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?r+String(a):r+String(a)+t+(0,gt.addLeadingZeros)(o,2)}function V3(e,t){return e%60===0?(e>0?"-":"+")+(0,gt.addLeadingZeros)(Math.abs(e)/60,2):ks(e,t)}function ks(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=(0,gt.addLeadingZeros)(Math.trunc(n/60),2),o=(0,gt.addLeadingZeros)(n%60,2);return r+a+t+o}var ep={};ep.longFormatters=void 0;const H3=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ID=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},xae=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return H3(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",H3(n,t)).replace("{{time}}",ID(a,t))};ep.longFormatters={p:ID,P:xae};var vh={};vh.isProtectedDayOfYearToken=$ae;vh.isProtectedWeekYearToken=Oae;vh.warnOrThrowProtectedError=Cae;const wae=/^D+$/,Sae=/^Y+$/,Pae=["D","DD","YY","YYYY"];function $ae(e){return wae.test(e)}function Oae(e){return Sae.test(e)}function Cae(e,t,r){const n=Mae(e,t,r);if(console.warn(n),Pae.includes(e))throw new RangeError(n)}function Mae(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(function(e){e.format=e.formatDate=g,Object.defineProperty(e,"formatters",{enumerable:!0,get:function(){return n.formatters}}),Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return a.longFormatters}});var t=pl,r=Gt,n=O2,a=ep,o=vh,s=si,l=W;const u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,d=/^'([^]*?)'?$/,f=/''/g,m=/[a-zA-Z]/;function g(p,$,b){var q,Q,ve,Me,tt,et,Ce,Ne;const y=(0,r.getDefaultOptions)(),P=(b==null?void 0:b.locale)??y.locale??t.defaultLocale,M=(b==null?void 0:b.firstWeekContainsDate)??((Q=(q=b==null?void 0:b.locale)==null?void 0:q.options)==null?void 0:Q.firstWeekContainsDate)??y.firstWeekContainsDate??((Me=(ve=y.locale)==null?void 0:ve.options)==null?void 0:Me.firstWeekContainsDate)??1,A=(b==null?void 0:b.weekStartsOn)??((et=(tt=b==null?void 0:b.locale)==null?void 0:tt.options)==null?void 0:et.weekStartsOn)??y.weekStartsOn??((Ne=(Ce=y.locale)==null?void 0:Ce.options)==null?void 0:Ne.weekStartsOn)??0,F=(0,l.toDate)(p);if(!(0,s.isValid)(F))throw new RangeError("Invalid time value");let L=$.match(c).map(Se=>{const H=Se[0];if(H==="p"||H==="P"){const ae=a.longFormatters[H];return ae(Se,P.formatLong)}return Se}).join("").match(u).map(Se=>{if(Se==="''")return{isToken:!1,value:"'"};const H=Se[0];if(H==="'")return{isToken:!1,value:x(Se)};if(n.formatters[H])return{isToken:!0,value:Se};if(H.match(m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+H+"`");return{isToken:!1,value:Se}});P.localize.preprocessor&&(L=P.localize.preprocessor(F,L));const z={firstWeekContainsDate:M,weekStartsOn:A,locale:P};return L.map(Se=>{if(!Se.isToken)return Se.value;const H=Se.value;(!(b!=null&&b.useAdditionalWeekYearTokens)&&(0,o.isProtectedWeekYearToken)(H)||!(b!=null&&b.useAdditionalDayOfYearTokens)&&(0,o.isProtectedDayOfYearToken)(H))&&(0,o.warnOrThrowProtectedError)(H,$,String(p));const ae=n.formatters[H[0]];return ae(F,H,P.localize,z)}).join("")}function x(p){const $=p.match(d);return $?$[1].replace(f,"'"):p}})(y2);var M2={};M2.formatDistance=Aae;var Tae=vl,Yl=X,Eae=dh,Dae=fh,am=W,jae=pl,Iae=Gt,Y3=oi;function Aae(e,t,r){const n=(0,Iae.getDefaultOptions)(),a=(r==null?void 0:r.locale)??n.locale??jae.defaultLocale,o=2520,s=(0,Tae.compareAsc)(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const l=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:s});let u,c;s>0?(u=(0,am.toDate)(t),c=(0,am.toDate)(e)):(u=(0,am.toDate)(e),c=(0,am.toDate)(t));const d=(0,Dae.differenceInSeconds)(c,u),f=((0,Y3.getTimezoneOffsetInMilliseconds)(c)-(0,Y3.getTimezoneOffsetInMilliseconds)(u))/1e3,m=Math.round((d-f)/60);let g;if(m<2)return r!=null&&r.includeSeconds?d<5?a.formatDistance("lessThanXSeconds",5,l):d<10?a.formatDistance("lessThanXSeconds",10,l):d<20?a.formatDistance("lessThanXSeconds",20,l):d<40?a.formatDistance("halfAMinute",0,l):d<60?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",1,l):m===0?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",m,l);if(m<45)return a.formatDistance("xMinutes",m,l);if(m<90)return a.formatDistance("aboutXHours",1,l);if(m0?(l=(0,im.toDate)(t),u=(0,im.toDate)(e)):(l=(0,im.toDate)(e),u=(0,im.toDate)(t));const c=(0,kae.getRoundingMethod)((r==null?void 0:r.roundingMethod)??"round"),d=u.getTime()-l.getTime(),f=d/Ui.millisecondsInMinute,m=(0,U3.getTimezoneOffsetInMilliseconds)(u)-(0,U3.getTimezoneOffsetInMilliseconds)(l),g=(d-m)/Ui.millisecondsInMinute,x=r==null?void 0:r.unit;let p;if(x?p=x:f<1?p="second":f<60?p="minute":f{const d=`x${c.replace(/(^.)/,m=>m.toUpperCase())}`,f=e[c];return f!==void 0&&(o||e[c])?u.concat(n.formatDistance(d,f)):u},[]).join(s):""}var kD={};kD.formatISO=Kae;var Xae=W,Gi=gl;function Kae(e,t){const r=(0,Xae.toDate)(e);if(isNaN(r.getTime()))throw new RangeError("Invalid time value");const n=(t==null?void 0:t.format)??"extended",a=(t==null?void 0:t.representation)??"complete";let o="",s="";const l=n==="extended"?"-":"",u=n==="extended"?":":"";if(a!=="time"){const c=(0,Gi.addLeadingZeros)(r.getDate(),2),d=(0,Gi.addLeadingZeros)(r.getMonth()+1,2);o=`${(0,Gi.addLeadingZeros)(r.getFullYear(),4)}${l}${d}${l}${c}`}if(a!=="date"){const c=r.getTimezoneOffset();if(c!==0){const p=Math.abs(c),$=(0,Gi.addLeadingZeros)(Math.trunc(p/60),2),b=(0,Gi.addLeadingZeros)(p%60,2);s=`${c<0?"+":"-"}${$}:${b}`}else s="Z";const d=(0,Gi.addLeadingZeros)(r.getHours(),2),f=(0,Gi.addLeadingZeros)(r.getMinutes(),2),m=(0,Gi.addLeadingZeros)(r.getSeconds(),2),g=o===""?"":"T",x=[d,f,m].join(u);o=`${o}${g}${x}${s}`}return o}var ND={};ND.formatISO9075=eie;var Zae=si,Jae=W,Ul=gl;function eie(e,t){const r=(0,Jae.toDate)(e);if(!(0,Zae.isValid)(r))throw new RangeError("Invalid time value");const n=(t==null?void 0:t.format)??"extended",a=(t==null?void 0:t.representation)??"complete";let o="";const s=n==="extended"?"-":"",l=n==="extended"?":":"";if(a!=="time"){const u=(0,Ul.addLeadingZeros)(r.getDate(),2),c=(0,Ul.addLeadingZeros)(r.getMonth()+1,2);o=`${(0,Ul.addLeadingZeros)(r.getFullYear(),4)}${s}${c}${s}${u}`}if(a!=="date"){const u=(0,Ul.addLeadingZeros)(r.getHours(),2),c=(0,Ul.addLeadingZeros)(r.getMinutes(),2),d=(0,Ul.addLeadingZeros)(r.getSeconds(),2);o=`${o}${o===""?"":" "}${u}${l}${c}${l}${d}`}return o}var LD={};LD.formatISODuration=tie;function tie(e){const{years:t=0,months:r=0,days:n=0,hours:a=0,minutes:o=0,seconds:s=0}=e;return`P${t}Y${r}M${n}DT${a}H${o}M${s}S`}var zD={};zD.formatRFC3339=aie;var rie=si,nie=W,qi=gl;function aie(e,t){const r=(0,nie.toDate)(e);if(!(0,rie.isValid)(r))throw new RangeError("Invalid time value");const n=(t==null?void 0:t.fractionDigits)??0,a=(0,qi.addLeadingZeros)(r.getDate(),2),o=(0,qi.addLeadingZeros)(r.getMonth()+1,2),s=r.getFullYear(),l=(0,qi.addLeadingZeros)(r.getHours(),2),u=(0,qi.addLeadingZeros)(r.getMinutes(),2),c=(0,qi.addLeadingZeros)(r.getSeconds(),2);let d="";if(n>0){const g=r.getMilliseconds(),x=Math.trunc(g*Math.pow(10,n-3));d="."+(0,qi.addLeadingZeros)(x,n)}let f="";const m=r.getTimezoneOffset();if(m!==0){const g=Math.abs(m),x=(0,qi.addLeadingZeros)(Math.trunc(g/60),2),p=(0,qi.addLeadingZeros)(g%60,2);f=`${m<0?"+":"-"}${x}:${p}`}else f="Z";return`${s}-${o}-${a}T${l}:${u}:${c}${d}${f}`}var WD={};WD.formatRFC7231=uie;var iie=si,oie=W,om=gl;const sie=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],lie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function uie(e){const t=(0,oie.toDate)(e);if(!(0,iie.isValid)(t))throw new RangeError("Invalid time value");const r=sie[t.getUTCDay()],n=(0,om.addLeadingZeros)(t.getUTCDate(),2),a=lie[t.getUTCMonth()],o=t.getUTCFullYear(),s=(0,om.addLeadingZeros)(t.getUTCHours(),2),l=(0,om.addLeadingZeros)(t.getUTCMinutes(),2),u=(0,om.addLeadingZeros)(t.getUTCSeconds(),2);return`${r}, ${n} ${a} ${o} ${s}:${l}:${u} GMT`}var BD={};BD.formatRelative=mie;var cie=ii,die=y2,G3=W,fie=pl,hie=Gt;function mie(e,t,r){var f,m,g,x;const n=(0,G3.toDate)(e),a=(0,G3.toDate)(t),o=(0,hie.getDefaultOptions)(),s=(r==null?void 0:r.locale)??o.locale??fie.defaultLocale,l=(r==null?void 0:r.weekStartsOn)??((m=(f=r==null?void 0:r.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??o.weekStartsOn??((x=(g=o.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,u=(0,cie.differenceInCalendarDays)(n,a);if(isNaN(u))throw new RangeError("Invalid time value");let c;u<-6?c="other":u<-1?c="lastWeek":u<0?c="yesterday":u<1?c="today":u<2?c="tomorrow":u<7?c="nextWeek":c="other";const d=s.formatRelative(c,n,a,{locale:s,weekStartsOn:l});return(0,die.format)(n,d,{locale:s,weekStartsOn:l})}var VD={};VD.fromUnixTime=pie;var vie=W;function pie(e){return(0,vie.toDate)(e*1e3)}var E2={};E2.getDate=bie;var gie=W;function bie(e){return(0,gie.toDate)(e).getDate()}var ph={};ph.getDay=_ie;var yie=W;function _ie(e){return(0,yie.toDate)(e).getDay()}var D2={};D2.getDaysInMonth=Sie;var xie=W,wie=Fe;function Sie(e){const t=(0,xie.toDate)(e),r=t.getFullYear(),n=t.getMonth(),a=(0,wie.constructFrom)(e,0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}var HD={},j2={};j2.isLeapYear=$ie;var Pie=W;function $ie(e){const r=(0,Pie.toDate)(e).getFullYear();return r%400===0||r%4===0&&r%100!==0}HD.getDaysInYear=Mie;var Oie=j2,Cie=W;function Mie(e){const t=(0,Cie.toDate)(e);return String(new Date(t))==="Invalid Date"?NaN:(0,Oie.isLeapYear)(t)?366:365}var YD={};YD.getDecade=Eie;var Tie=W;function Eie(e){const r=(0,Tie.toDate)(e).getFullYear();return Math.floor(r/10)*10}var I2={};I2.getDefaultOptions=jie;var Die=Gt;function jie(){return Object.assign({},(0,Die.getDefaultOptions)())}var UD={};UD.getHours=Aie;var Iie=W;function Aie(e){return(0,Iie.toDate)(e).getHours()}var A2={};A2.getISODay=Rie;var Fie=W;function Rie(e){let r=(0,Fie.toDate)(e).getDay();return r===0&&(r=7),r}var GD={};GD.getISOWeeksInYear=Lie;var kie=uh,Nie=X,q3=nc;function Lie(e){const t=(0,q3.startOfISOWeekYear)(e),n=+(0,q3.startOfISOWeekYear)((0,kie.addWeeks)(t,60))-+t;return Math.round(n/Nie.millisecondsInWeek)}var qD={};qD.getMilliseconds=Wie;var zie=W;function Wie(e){return(0,zie.toDate)(e).getMilliseconds()}var QD={};QD.getMinutes=Vie;var Bie=W;function Vie(e){return(0,Bie.toDate)(e).getMinutes()}var XD={};XD.getMonth=Yie;var Hie=W;function Yie(e){return(0,Hie.toDate)(e).getMonth()}var KD={};KD.getOverlappingDaysInIntervals=Gie;var Q3=oi,Uie=X,sm=W;function Gie(e,t){const[r,n]=[+(0,sm.toDate)(e.start),+(0,sm.toDate)(e.end)].sort((f,m)=>f-m),[a,o]=[+(0,sm.toDate)(t.start),+(0,sm.toDate)(t.end)].sort((f,m)=>f-m);if(!(rn?n:o,d=c-(0,Q3.getTimezoneOffsetInMilliseconds)(c);return Math.ceil((d-u)/Uie.millisecondsInDay)}var ZD={};ZD.getSeconds=Qie;var qie=W;function Qie(e){return(0,qie.toDate)(e).getSeconds()}var JD={};JD.getTime=Kie;var Xie=W;function Kie(e){return(0,Xie.toDate)(e).getTime()}var ej={};ej.getUnixTime=Jie;var Zie=W;function Jie(e){return Math.trunc(+(0,Zie.toDate)(e)/1e3)}var tj={};tj.getWeekOfMonth=aoe;var eoe=E2,toe=ph,roe=hh,noe=Gt;function aoe(e,t){var u,c,d,f;const r=(0,noe.getDefaultOptions)(),n=(t==null?void 0:t.weekStartsOn)??((c=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((f=(d=r.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,a=(0,eoe.getDate)(e);if(isNaN(a))return NaN;const o=(0,toe.getDay)((0,roe.startOfMonth)(e));let s=n-o;s<=0&&(s+=7);const l=a-s;return Math.ceil(l/7)+1}var rj={},F2={};F2.lastDayOfMonth=ooe;var ioe=W;function ooe(e){const t=(0,ioe.toDate)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}rj.getWeeksInMonth=coe;var soe=Lv,loe=F2,uoe=hh;function coe(e,t){return(0,soe.differenceInCalendarWeeks)((0,loe.lastDayOfMonth)(e),(0,uoe.startOfMonth)(e),t)+1}var nj={};nj.getYear=foe;var doe=W;function foe(e){return(0,doe.toDate)(e).getFullYear()}var aj={};aj.hoursToMilliseconds=moe;var hoe=X;function moe(e){return Math.trunc(e*hoe.millisecondsInHour)}var ij={};ij.hoursToMinutes=poe;var voe=X;function poe(e){return Math.trunc(e*voe.minutesInHour)}var oj={};oj.hoursToSeconds=boe;var goe=X;function boe(e){return Math.trunc(e*goe.secondsInHour)}var sj={};sj.interval=yoe;var X3=W;function yoe(e,t,r){const n=(0,X3.toDate)(e);if(isNaN(+n))throw new TypeError("Start date is invalid");const a=(0,X3.toDate)(t);if(isNaN(+a))throw new TypeError("End date is invalid");if(r!=null&&r.assertPositive&&+n>+a)throw new TypeError("End date must be after start date");return{start:n,end:a}}var lj={};lj.intervalToDuration=Ooe;var yd=J_,_oe=Wv,xoe=Bv,woe=Vv,Soe=dh,Poe=fh,$oe=v2,K3=W;function Ooe(e){const t=(0,K3.toDate)(e.start),r=(0,K3.toDate)(e.end),n={},a=(0,$oe.differenceInYears)(r,t);a&&(n.years=a);const o=(0,yd.add)(t,{years:n.years}),s=(0,Soe.differenceInMonths)(r,o);s&&(n.months=s);const l=(0,yd.add)(o,{months:n.months}),u=(0,_oe.differenceInDays)(r,l);u&&(n.days=u);const c=(0,yd.add)(l,{days:n.days}),d=(0,xoe.differenceInHours)(r,c);d&&(n.hours=d);const f=(0,yd.add)(c,{hours:n.hours}),m=(0,woe.differenceInMinutes)(r,f);m&&(n.minutes=m);const g=(0,yd.add)(f,{minutes:n.minutes}),x=(0,Poe.differenceInSeconds)(r,g);return x&&(n.seconds=x),n}var uj={};uj.intlFormat=Moe;var Coe=W;function Moe(e,t,r){let n;return Toe(t)?n=t:r=t,new Intl.DateTimeFormat(r==null?void 0:r.locale,n).format((0,Coe.toDate)(e))}function Toe(e){return e!==void 0&&!("locale"in e)}var cj={};cj.intlFormatDistance=Eoe;var Es=X,Hg=ii,Z3=Nv,Yg=d2,J3=Lv,Ug=zv,eO=Bv,tO=Vv,Gg=fh,rO=W;function Eoe(e,t,r){let n=0,a;const o=(0,rO.toDate)(e),s=(0,rO.toDate)(t);if(r!=null&&r.unit)a=r==null?void 0:r.unit,a==="second"?n=(0,Gg.differenceInSeconds)(o,s):a==="minute"?n=(0,tO.differenceInMinutes)(o,s):a==="hour"?n=(0,eO.differenceInHours)(o,s):a==="day"?n=(0,Hg.differenceInCalendarDays)(o,s):a==="week"?n=(0,J3.differenceInCalendarWeeks)(o,s):a==="month"?n=(0,Z3.differenceInCalendarMonths)(o,s):a==="quarter"?n=(0,Yg.differenceInCalendarQuarters)(o,s):a==="year"&&(n=(0,Ug.differenceInCalendarYears)(o,s));else{const u=(0,Gg.differenceInSeconds)(o,s);Math.abs(u)n.getTime()}var fj={};fj.isBefore=joe;var aO=W;function joe(e,t){const r=(0,aO.toDate)(e),n=(0,aO.toDate)(t);return+r<+n}var hj={};hj.isEqual=Ioe;var iO=W;function Ioe(e,t){const r=(0,iO.toDate)(e),n=(0,iO.toDate)(t);return+r==+n}var mj={};mj.isExists=Aoe;function Aoe(e,t,r){const n=new Date(e,t,r);return n.getFullYear()===e&&n.getMonth()===t&&n.getDate()===r}var vj={};vj.isFirstDayOfMonth=Roe;var Foe=W;function Roe(e){return(0,Foe.toDate)(e).getDate()===1}var pj={};pj.isFriday=Noe;var koe=W;function Noe(e){return(0,koe.toDate)(e).getDay()===5}var gj={};gj.isFuture=zoe;var Loe=W;function zoe(e){return+(0,Loe.toDate)(e)>Date.now()}var bj={},R2={},k2={},N2={},Re={},_o={},L2={};L2.transpose=Boe;var Woe=Fe;function Boe(e,t){const r=t instanceof Date?(0,Woe.constructFrom)(t,0):new t(0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}_o.ValueSetter=_o.Setter=_o.DateToSystemTimezoneSetter=void 0;var Voe=L2,Hoe=Fe;const Yoe=10;class z2{constructor(){J(this,"subPriority",0)}validate(t,r){return!0}}_o.Setter=z2;class Uoe extends z2{constructor(t,r,n,a,o){super(),this.value=t,this.validateValue=r,this.setValue=n,this.priority=a,o&&(this.subPriority=o)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,n){return this.setValue(t,r,this.value,n)}}_o.ValueSetter=Uoe;class Goe extends z2{constructor(){super(...arguments);J(this,"priority",Yoe);J(this,"subPriority",-1)}set(r,n){return n.timestampIsSet?r:(0,Hoe.constructFrom)(r,(0,Voe.transpose)(r,Date))}}_o.DateToSystemTimezoneSetter=Goe;Re.Parser=void 0;var qoe=_o;class Qoe{run(t,r,n,a){const o=this.parse(t,r,n,a);return o?{setter:new qoe.ValueSetter(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,r,n){return!0}}Re.Parser=Qoe;N2.EraParser=void 0;var Xoe=Re;class Koe extends Xoe.Parser{constructor(){super(...arguments);J(this,"priority",140);J(this,"incompatibleTokens",["R","u","t","T"])}parse(r,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"})||a.era(r,{width:"narrow"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})||a.era(r,{width:"abbreviated"})||a.era(r,{width:"narrow"})}}set(r,n,a){return n.era=a,r.setFullYear(a,0,1),r.setHours(0,0,0,0),r}}N2.EraParser=Koe;var W2={},we={},Tt={};Tt.timezonePatterns=Tt.numericPatterns=void 0;Tt.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/};Tt.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};we.dayPeriodEnumToHours=nse;we.isLeapYearIndex=ise;we.mapValue=Zoe;we.normalizeTwoDigitYear=ase;we.parseAnyDigitsSigned=ese;we.parseNDigits=tse;we.parseNDigitsSigned=rse;we.parseNumericPattern=nn;we.parseTimezonePattern=Joe;var qg=X,Wa=Tt;function Zoe(e,t){return e&&{value:t(e.value),rest:e.rest}}function nn(e,t){const r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Joe(e,t){const r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};const n=r[1]==="+"?1:-1,a=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(a*qg.millisecondsInHour+o*qg.millisecondsInMinute+s*qg.millisecondsInSecond),rest:t.slice(r[0].length)}}function ese(e){return nn(Wa.numericPatterns.anyDigitsSigned,e)}function tse(e,t){switch(e){case 1:return nn(Wa.numericPatterns.singleDigit,t);case 2:return nn(Wa.numericPatterns.twoDigits,t);case 3:return nn(Wa.numericPatterns.threeDigits,t);case 4:return nn(Wa.numericPatterns.fourDigits,t);default:return nn(new RegExp("^\\d{1,"+e+"}"),t)}}function rse(e,t){switch(e){case 1:return nn(Wa.numericPatterns.singleDigitSigned,t);case 2:return nn(Wa.numericPatterns.twoDigitsSigned,t);case 3:return nn(Wa.numericPatterns.threeDigitsSigned,t);case 4:return nn(Wa.numericPatterns.fourDigitsSigned,t);default:return nn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function nse(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ase(e,t){const r=t>0,n=r?t:1-t;let a;if(n<=50)a=e||100;else{const o=n+50,s=Math.trunc(o/100)*100,l=e>=o%100;a=e+s-(l?100:0)}return r?a:1-a}function ise(e){return e%400===0||e%4===0&&e%100!==0}W2.YearParser=void 0;var ose=Re,Gl=we;class sse extends ose.Parser{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(r,n,a){const o=s=>({year:s,isTwoDigitYear:n==="yy"});switch(n){case"y":return(0,Gl.mapValue)((0,Gl.parseNDigits)(4,r),o);case"yo":return(0,Gl.mapValue)(a.ordinalNumber(r,{unit:"year"}),o);default:return(0,Gl.mapValue)((0,Gl.parseNDigits)(n.length,r),o)}}validate(r,n){return n.isTwoDigitYear||n.year>0}set(r,n,a){const o=r.getFullYear();if(a.isTwoDigitYear){const l=(0,Gl.normalizeTwoDigitYear)(a.year,o);return r.setFullYear(l,0,1),r.setHours(0,0,0,0),r}const s=!("era"in n)||n.era===1?a.year:1-a.year;return r.setFullYear(s,0,1),r.setHours(0,0,0,0),r}}W2.YearParser=sse;var B2={};B2.LocalWeekYearParser=void 0;var lse=mh,oO=An,use=Re,ql=we;class cse extends use.Parser{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(r,n,a){const o=s=>({year:s,isTwoDigitYear:n==="YY"});switch(n){case"Y":return(0,ql.mapValue)((0,ql.parseNDigits)(4,r),o);case"Yo":return(0,ql.mapValue)(a.ordinalNumber(r,{unit:"year"}),o);default:return(0,ql.mapValue)((0,ql.parseNDigits)(n.length,r),o)}}validate(r,n){return n.isTwoDigitYear||n.year>0}set(r,n,a,o){const s=(0,lse.getWeekYear)(r,o);if(a.isTwoDigitYear){const u=(0,ql.normalizeTwoDigitYear)(a.year,s);return r.setFullYear(u,0,o.firstWeekContainsDate),r.setHours(0,0,0,0),(0,oO.startOfWeek)(r,o)}const l=!("era"in n)||n.era===1?a.year:1-a.year;return r.setFullYear(l,0,o.firstWeekContainsDate),r.setHours(0,0,0,0),(0,oO.startOfWeek)(r,o)}}B2.LocalWeekYearParser=cse;var V2={};V2.ISOWeekYearParser=void 0;var dse=ua,fse=Fe,hse=Re,sO=we;class mse extends hse.Parser{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(r,n){return n==="R"?(0,sO.parseNDigitsSigned)(4,r):(0,sO.parseNDigitsSigned)(n.length,r)}set(r,n,a){const o=(0,fse.constructFrom)(r,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),(0,dse.startOfISOWeek)(o)}}V2.ISOWeekYearParser=mse;var H2={};H2.ExtendedYearParser=void 0;var vse=Re,lO=we;class pse extends vse.Parser{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(r,n){return n==="u"?(0,lO.parseNDigitsSigned)(4,r):(0,lO.parseNDigitsSigned)(n.length,r)}set(r,n,a){return r.setFullYear(a,0,1),r.setHours(0,0,0,0),r}}H2.ExtendedYearParser=pse;var Y2={};Y2.QuarterParser=void 0;var gse=Re,bse=we;class yse extends gse.Parser{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(r,n,a){switch(n){case"Q":case"QQ":return(0,bse.parseNDigits)(n.length,r);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"})||a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})||a.quarter(r,{width:"abbreviated",context:"formatting"})||a.quarter(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=1&&n<=4}set(r,n,a){return r.setMonth((a-1)*3,1),r.setHours(0,0,0,0),r}}Y2.QuarterParser=yse;var U2={};U2.StandAloneQuarterParser=void 0;var _se=Re,xse=we;class wse extends _se.Parser{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(r,n,a){switch(n){case"q":case"qq":return(0,xse.parseNDigits)(n.length,r);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"})||a.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})||a.quarter(r,{width:"abbreviated",context:"standalone"})||a.quarter(r,{width:"narrow",context:"standalone"})}}validate(r,n){return n>=1&&n<=4}set(r,n,a){return r.setMonth((a-1)*3,1),r.setHours(0,0,0,0),r}}U2.StandAloneQuarterParser=wse;var G2={};G2.MonthParser=void 0;var Sse=Tt,Pse=Re,_d=we;class $se extends Pse.Parser{constructor(){super(...arguments);J(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);J(this,"priority",110)}parse(r,n,a){const o=s=>s-1;switch(n){case"M":return(0,_d.mapValue)((0,_d.parseNumericPattern)(Sse.numericPatterns.month,r),o);case"MM":return(0,_d.mapValue)((0,_d.parseNDigits)(2,r),o);case"Mo":return(0,_d.mapValue)(a.ordinalNumber(r,{unit:"month"}),o);case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"})||a.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})||a.month(r,{width:"abbreviated",context:"formatting"})||a.month(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=0&&n<=11}set(r,n,a){return r.setMonth(a,1),r.setHours(0,0,0,0),r}}G2.MonthParser=$se;var q2={};q2.StandAloneMonthParser=void 0;var Ose=Tt,Cse=Re,xd=we;class Mse extends Cse.Parser{constructor(){super(...arguments);J(this,"priority",110);J(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(r,n,a){const o=s=>s-1;switch(n){case"L":return(0,xd.mapValue)((0,xd.parseNumericPattern)(Ose.numericPatterns.month,r),o);case"LL":return(0,xd.mapValue)((0,xd.parseNDigits)(2,r),o);case"Lo":return(0,xd.mapValue)(a.ordinalNumber(r,{unit:"month"}),o);case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"})||a.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})||a.month(r,{width:"abbreviated",context:"standalone"})||a.month(r,{width:"narrow",context:"standalone"})}}validate(r,n){return n>=0&&n<=11}set(r,n,a){return r.setMonth(a,1),r.setHours(0,0,0,0),r}}q2.StandAloneMonthParser=Mse;var Q2={},X2={};X2.setWeek=Dse;var Tse=Kv,Ese=W;function Dse(e,t,r){const n=(0,Ese.toDate)(e),a=(0,Tse.getWeek)(n,r)-t;return n.setDate(n.getDate()-a*7),n}Q2.LocalWeekParser=void 0;var jse=X2,Ise=An,Ase=Tt,Fse=Re,uO=we;class Rse extends Fse.Parser{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(r,n,a){switch(n){case"w":return(0,uO.parseNumericPattern)(Ase.numericPatterns.week,r);case"wo":return a.ordinalNumber(r,{unit:"week"});default:return(0,uO.parseNDigits)(n.length,r)}}validate(r,n){return n>=1&&n<=53}set(r,n,a,o){return(0,Ise.startOfWeek)((0,jse.setWeek)(r,a,o),o)}}Q2.LocalWeekParser=Rse;var K2={},Z2={};Z2.setISOWeek=Lse;var kse=Xv,Nse=W;function Lse(e,t){const r=(0,Nse.toDate)(e),n=(0,kse.getISOWeek)(r)-t;return r.setDate(r.getDate()-n*7),r}K2.ISOWeekParser=void 0;var zse=Z2,Wse=ua,Bse=Tt,Vse=Re,cO=we;class Hse extends Vse.Parser{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(r,n,a){switch(n){case"I":return(0,cO.parseNumericPattern)(Bse.numericPatterns.week,r);case"Io":return a.ordinalNumber(r,{unit:"week"});default:return(0,cO.parseNDigits)(n.length,r)}}validate(r,n){return n>=1&&n<=53}set(r,n,a){return(0,Wse.startOfISOWeek)((0,zse.setISOWeek)(r,a))}}K2.ISOWeekParser=Hse;var J2={};J2.DateParser=void 0;var Yse=Tt,Use=Re,Qg=we;const Gse=[31,28,31,30,31,30,31,31,30,31,30,31],qse=[31,29,31,30,31,30,31,31,30,31,30,31];class Qse extends Use.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"subPriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(r,n,a){switch(n){case"d":return(0,Qg.parseNumericPattern)(Yse.numericPatterns.date,r);case"do":return a.ordinalNumber(r,{unit:"date"});default:return(0,Qg.parseNDigits)(n.length,r)}}validate(r,n){const a=r.getFullYear(),o=(0,Qg.isLeapYearIndex)(a),s=r.getMonth();return o?n>=1&&n<=qse[s]:n>=1&&n<=Gse[s]}set(r,n,a){return r.setDate(a),r.setHours(0,0,0,0),r}}J2.DateParser=Qse;var ex={};ex.DayOfYearParser=void 0;var Xse=Tt,Kse=Re,Xg=we;class Zse extends Kse.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"subpriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(r,n,a){switch(n){case"D":case"DD":return(0,Xg.parseNumericPattern)(Xse.numericPatterns.dayOfYear,r);case"Do":return a.ordinalNumber(r,{unit:"date"});default:return(0,Xg.parseNDigits)(n.length,r)}}validate(r,n){const a=r.getFullYear();return(0,Xg.isLeapYearIndex)(a)?n>=1&&n<=366:n>=1&&n<=365}set(r,n,a){return r.setMonth(0,a),r.setHours(0,0,0,0),r}}ex.DayOfYearParser=Zse;var tx={},gh={};gh.setDay=rle;var Jse=la,ele=W,tle=Gt;function rle(e,t,r){var f,m,g,x;const n=(0,tle.getDefaultOptions)(),a=(r==null?void 0:r.weekStartsOn)??((m=(f=r==null?void 0:r.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??n.weekStartsOn??((x=(g=n.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,o=(0,ele.toDate)(e),s=o.getDay(),u=(t%7+7)%7,c=7-a,d=t<0||t>6?t-(s+c)%7:(u+c)%7-(s+c)%7;return(0,Jse.addDays)(o,d)}tx.DayParser=void 0;var nle=gh,ale=Re;class ile extends ale.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(r,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})||a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=0&&n<=6}set(r,n,a,o){return r=(0,nle.setDay)(r,a,o),r.setHours(0,0,0,0),r}}tx.DayParser=ile;var rx={};rx.LocalDayParser=void 0;var ole=gh,sle=Re,Kg=we;class lle extends sle.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(r,n,a,o){const s=l=>{const u=Math.floor((l-1)/7)*7;return(l+o.weekStartsOn+6)%7+u};switch(n){case"e":case"ee":return(0,Kg.mapValue)((0,Kg.parseNDigits)(n.length,r),s);case"eo":return(0,Kg.mapValue)(a.ordinalNumber(r,{unit:"day"}),s);case"eee":return a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})||a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=0&&n<=6}set(r,n,a,o){return r=(0,ole.setDay)(r,a,o),r.setHours(0,0,0,0),r}}rx.LocalDayParser=lle;var nx={};nx.StandAloneLocalDayParser=void 0;var ule=gh,cle=Re,Zg=we;class dle extends cle.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(r,n,a,o){const s=l=>{const u=Math.floor((l-1)/7)*7;return(l+o.weekStartsOn+6)%7+u};switch(n){case"c":case"cc":return(0,Zg.mapValue)((0,Zg.parseNDigits)(n.length,r),s);case"co":return(0,Zg.mapValue)(a.ordinalNumber(r,{unit:"day"}),s);case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"})||a.day(r,{width:"short",context:"standalone"})||a.day(r,{width:"narrow",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"})||a.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})||a.day(r,{width:"abbreviated",context:"standalone"})||a.day(r,{width:"short",context:"standalone"})||a.day(r,{width:"narrow",context:"standalone"})}}validate(r,n){return n>=0&&n<=6}set(r,n,a,o){return r=(0,ule.setDay)(r,a,o),r.setHours(0,0,0,0),r}}nx.StandAloneLocalDayParser=dle;var ax={},ix={};ix.setISODay=vle;var fle=la,hle=A2,mle=W;function vle(e,t){const r=(0,mle.toDate)(e),n=(0,hle.getISODay)(r),a=t-n;return(0,fle.addDays)(r,a)}ax.ISODayParser=void 0;var ple=ix,gle=Re,wd=we;class ble extends gle.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(r,n,a){const o=s=>s===0?7:s;switch(n){case"i":case"ii":return(0,wd.parseNDigits)(n.length,r);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return(0,wd.mapValue)(a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"}),o);case"iiiii":return(0,wd.mapValue)(a.day(r,{width:"narrow",context:"formatting"}),o);case"iiiiii":return(0,wd.mapValue)(a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"}),o);case"iiii":default:return(0,wd.mapValue)(a.day(r,{width:"wide",context:"formatting"})||a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"}),o)}}validate(r,n){return n>=1&&n<=7}set(r,n,a){return r=(0,ple.setISODay)(r,a),r.setHours(0,0,0,0),r}}ax.ISODayParser=ble;var ox={};ox.AMPMParser=void 0;var yle=Re,_le=we;class xle extends yle.Parser{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(r,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})||a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,n,a){return r.setHours((0,_le.dayPeriodEnumToHours)(a),0,0,0),r}}ox.AMPMParser=xle;var sx={};sx.AMPMMidnightParser=void 0;var wle=Re,Sle=we;class Ple extends wle.Parser{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(r,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})||a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,n,a){return r.setHours((0,Sle.dayPeriodEnumToHours)(a),0,0,0),r}}sx.AMPMMidnightParser=Ple;var lx={};lx.DayPeriodParser=void 0;var $le=Re,Ole=we;class Cle extends $le.Parser{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","b","t","T"])}parse(r,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})||a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,n,a){return r.setHours((0,Ole.dayPeriodEnumToHours)(a),0,0,0),r}}lx.DayPeriodParser=Cle;var ux={};ux.Hour1to12Parser=void 0;var Mle=Tt,Tle=Re,dO=we;class Ele extends Tle.Parser{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["H","K","k","t","T"])}parse(r,n,a){switch(n){case"h":return(0,dO.parseNumericPattern)(Mle.numericPatterns.hour12h,r);case"ho":return a.ordinalNumber(r,{unit:"hour"});default:return(0,dO.parseNDigits)(n.length,r)}}validate(r,n){return n>=1&&n<=12}set(r,n,a){const o=r.getHours()>=12;return o&&a<12?r.setHours(a+12,0,0,0):!o&&a===12?r.setHours(0,0,0,0):r.setHours(a,0,0,0),r}}ux.Hour1to12Parser=Ele;var cx={};cx.Hour0to23Parser=void 0;var Dle=Tt,jle=Re,fO=we;class Ile extends jle.Parser{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(r,n,a){switch(n){case"H":return(0,fO.parseNumericPattern)(Dle.numericPatterns.hour23h,r);case"Ho":return a.ordinalNumber(r,{unit:"hour"});default:return(0,fO.parseNDigits)(n.length,r)}}validate(r,n){return n>=0&&n<=23}set(r,n,a){return r.setHours(a,0,0,0),r}}cx.Hour0to23Parser=Ile;var dx={};dx.Hour0To11Parser=void 0;var Ale=Tt,Fle=Re,hO=we;class Rle extends Fle.Parser{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["h","H","k","t","T"])}parse(r,n,a){switch(n){case"K":return(0,hO.parseNumericPattern)(Ale.numericPatterns.hour11h,r);case"Ko":return a.ordinalNumber(r,{unit:"hour"});default:return(0,hO.parseNDigits)(n.length,r)}}validate(r,n){return n>=0&&n<=11}set(r,n,a){return r.getHours()>=12&&a<12?r.setHours(a+12,0,0,0):r.setHours(a,0,0,0),r}}dx.Hour0To11Parser=Rle;var fx={};fx.Hour1To24Parser=void 0;var kle=Tt,Nle=Re,mO=we;class Lle extends Nle.Parser{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(r,n,a){switch(n){case"k":return(0,mO.parseNumericPattern)(kle.numericPatterns.hour24h,r);case"ko":return a.ordinalNumber(r,{unit:"hour"});default:return(0,mO.parseNDigits)(n.length,r)}}validate(r,n){return n>=1&&n<=24}set(r,n,a){const o=a<=24?a%24:a;return r.setHours(o,0,0,0),r}}fx.Hour1To24Parser=Lle;var hx={};hx.MinuteParser=void 0;var zle=Tt,Wle=Re,vO=we;class Ble extends Wle.Parser{constructor(){super(...arguments);J(this,"priority",60);J(this,"incompatibleTokens",["t","T"])}parse(r,n,a){switch(n){case"m":return(0,vO.parseNumericPattern)(zle.numericPatterns.minute,r);case"mo":return a.ordinalNumber(r,{unit:"minute"});default:return(0,vO.parseNDigits)(n.length,r)}}validate(r,n){return n>=0&&n<=59}set(r,n,a){return r.setMinutes(a,0,0),r}}hx.MinuteParser=Ble;var mx={};mx.SecondParser=void 0;var Vle=Tt,Hle=Re,pO=we;class Yle extends Hle.Parser{constructor(){super(...arguments);J(this,"priority",50);J(this,"incompatibleTokens",["t","T"])}parse(r,n,a){switch(n){case"s":return(0,pO.parseNumericPattern)(Vle.numericPatterns.second,r);case"so":return a.ordinalNumber(r,{unit:"second"});default:return(0,pO.parseNDigits)(n.length,r)}}validate(r,n){return n>=0&&n<=59}set(r,n,a){return r.setSeconds(a,0),r}}mx.SecondParser=Yle;var vx={};vx.FractionOfSecondParser=void 0;var Ule=Re,gO=we;class Gle extends Ule.Parser{constructor(){super(...arguments);J(this,"priority",30);J(this,"incompatibleTokens",["t","T"])}parse(r,n){const a=o=>Math.trunc(o*Math.pow(10,-n.length+3));return(0,gO.mapValue)((0,gO.parseNDigits)(n.length,r),a)}set(r,n,a){return r.setMilliseconds(a),r}}vx.FractionOfSecondParser=Gle;var px={};px.ISOTimezoneWithZParser=void 0;var qle=Fe,Qle=oi,Sd=Tt,Xle=Re,Pd=we;class Kle extends Xle.Parser{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","x"])}parse(r,n){switch(n){case"X":return(0,Pd.parseTimezonePattern)(Sd.timezonePatterns.basicOptionalMinutes,r);case"XX":return(0,Pd.parseTimezonePattern)(Sd.timezonePatterns.basic,r);case"XXXX":return(0,Pd.parseTimezonePattern)(Sd.timezonePatterns.basicOptionalSeconds,r);case"XXXXX":return(0,Pd.parseTimezonePattern)(Sd.timezonePatterns.extendedOptionalSeconds,r);case"XXX":default:return(0,Pd.parseTimezonePattern)(Sd.timezonePatterns.extended,r)}}set(r,n,a){return n.timestampIsSet?r:(0,qle.constructFrom)(r,r.getTime()-(0,Qle.getTimezoneOffsetInMilliseconds)(r)-a)}}px.ISOTimezoneWithZParser=Kle;var gx={};gx.ISOTimezoneParser=void 0;var Zle=Fe,Jle=oi,$d=Tt,eue=Re,Od=we;class tue extends eue.Parser{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","X"])}parse(r,n){switch(n){case"x":return(0,Od.parseTimezonePattern)($d.timezonePatterns.basicOptionalMinutes,r);case"xx":return(0,Od.parseTimezonePattern)($d.timezonePatterns.basic,r);case"xxxx":return(0,Od.parseTimezonePattern)($d.timezonePatterns.basicOptionalSeconds,r);case"xxxxx":return(0,Od.parseTimezonePattern)($d.timezonePatterns.extendedOptionalSeconds,r);case"xxx":default:return(0,Od.parseTimezonePattern)($d.timezonePatterns.extended,r)}}set(r,n,a){return n.timestampIsSet?r:(0,Zle.constructFrom)(r,r.getTime()-(0,Jle.getTimezoneOffsetInMilliseconds)(r)-a)}}gx.ISOTimezoneParser=tue;var bx={};bx.TimestampSecondsParser=void 0;var rue=Fe,nue=Re,aue=we;class iue extends nue.Parser{constructor(){super(...arguments);J(this,"priority",40);J(this,"incompatibleTokens","*")}parse(r){return(0,aue.parseAnyDigitsSigned)(r)}set(r,n,a){return[(0,rue.constructFrom)(r,a*1e3),{timestampIsSet:!0}]}}bx.TimestampSecondsParser=iue;var yx={};yx.TimestampMillisecondsParser=void 0;var oue=Fe,sue=Re,lue=we;class uue extends sue.Parser{constructor(){super(...arguments);J(this,"priority",20);J(this,"incompatibleTokens","*")}parse(r){return(0,lue.parseAnyDigitsSigned)(r)}set(r,n,a){return[(0,oue.constructFrom)(r,a),{timestampIsSet:!0}]}}yx.TimestampMillisecondsParser=uue;k2.parsers=void 0;var cue=N2,due=W2,fue=B2,hue=V2,mue=H2,vue=Y2,pue=U2,gue=G2,bue=q2,yue=Q2,_ue=K2,xue=J2,wue=ex,Sue=tx,Pue=rx,$ue=nx,Oue=ax,Cue=ox,Mue=sx,Tue=lx,Eue=ux,Due=cx,jue=dx,Iue=fx,Aue=hx,Fue=mx,Rue=vx,kue=px,Nue=gx,Lue=bx,zue=yx;k2.parsers={G:new cue.EraParser,y:new due.YearParser,Y:new fue.LocalWeekYearParser,R:new hue.ISOWeekYearParser,u:new mue.ExtendedYearParser,Q:new vue.QuarterParser,q:new pue.StandAloneQuarterParser,M:new gue.MonthParser,L:new bue.StandAloneMonthParser,w:new yue.LocalWeekParser,I:new _ue.ISOWeekParser,d:new xue.DateParser,D:new wue.DayOfYearParser,E:new Sue.DayParser,e:new Pue.LocalDayParser,c:new $ue.StandAloneLocalDayParser,i:new Oue.ISODayParser,a:new Cue.AMPMParser,b:new Mue.AMPMMidnightParser,B:new Tue.DayPeriodParser,h:new Eue.Hour1to12Parser,H:new Due.Hour0to23Parser,K:new jue.Hour0To11Parser,k:new Iue.Hour1To24Parser,m:new Aue.MinuteParser,s:new Fue.SecondParser,S:new Rue.FractionOfSecondParser,X:new kue.ISOTimezoneWithZParser,x:new Nue.ISOTimezoneParser,t:new Lue.TimestampSecondsParser,T:new zue.TimestampMillisecondsParser};(function(e){Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return o.longFormatters}}),e.parse=p,Object.defineProperty(e,"parsers",{enumerable:!0,get:function(){return l.parsers}});var t=Fe,r=I2,n=pl,a=W,o=ep,s=vh,l=k2,u=_o;const c=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f=/^'([^]*?)'?$/,m=/''/g,g=/\S/,x=/[a-zA-Z]/;function p(b,y,P,M){var Ne,Se,H,ae,ie,ge,Pe,me;const A=(0,r.getDefaultOptions)(),F=(M==null?void 0:M.locale)??A.locale??n.defaultLocale,L=(M==null?void 0:M.firstWeekContainsDate)??((Se=(Ne=M==null?void 0:M.locale)==null?void 0:Ne.options)==null?void 0:Se.firstWeekContainsDate)??A.firstWeekContainsDate??((ae=(H=A.locale)==null?void 0:H.options)==null?void 0:ae.firstWeekContainsDate)??1,z=(M==null?void 0:M.weekStartsOn)??((ge=(ie=M==null?void 0:M.locale)==null?void 0:ie.options)==null?void 0:ge.weekStartsOn)??A.weekStartsOn??((me=(Pe=A.locale)==null?void 0:Pe.options)==null?void 0:me.weekStartsOn)??0;if(y==="")return b===""?(0,a.toDate)(P):(0,t.constructFrom)(P,NaN);const q={firstWeekContainsDate:L,weekStartsOn:z,locale:F},Q=[new u.DateToSystemTimezoneSetter],ve=y.match(d).map(re=>{const oe=re[0];if(oe in o.longFormatters){const se=o.longFormatters[oe];return se(re,F.formatLong)}return re}).join("").match(c),Me=[];for(let re of ve){!(M!=null&&M.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(re)&&(0,s.warnOrThrowProtectedError)(re,y,b),!(M!=null&&M.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(re)&&(0,s.warnOrThrowProtectedError)(re,y,b);const oe=re[0],se=l.parsers[oe];if(se){const{incompatibleTokens:ut}=se;if(Array.isArray(ut)){const Rt=Me.find(pr=>ut.includes(pr.token)||pr.token===oe);if(Rt)throw new RangeError(`The format string mustn't contain \`${Rt.fullToken}\` and \`${re}\` at the same time`)}else if(se.incompatibleTokens==="*"&&Me.length>0)throw new RangeError(`The format string mustn't contain \`${re}\` and any other token at the same time`);Me.push({token:oe,fullToken:re});const mt=se.run(b,re,F.match,q);if(!mt)return(0,t.constructFrom)(P,NaN);Q.push(mt.setter),b=mt.rest}else{if(oe.match(x))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");if(re==="''"?re="'":oe==="'"&&(re=$(re)),b.indexOf(re)===0)b=b.slice(re.length);else return(0,t.constructFrom)(P,NaN)}}if(b.length>0&&g.test(b))return(0,t.constructFrom)(P,NaN);const tt=Q.map(re=>re.priority).sort((re,oe)=>oe-re).filter((re,oe,se)=>se.indexOf(re)===oe).map(re=>Q.filter(oe=>oe.priority===re).sort((oe,se)=>se.subPriority-oe.subPriority)).map(re=>re[0]);let et=(0,a.toDate)(P);if(isNaN(et.getTime()))return(0,t.constructFrom)(P,NaN);const Ce={};for(const re of tt){if(!re.validate(et,q))return(0,t.constructFrom)(P,NaN);const oe=re.set(et,Ce,q);Array.isArray(oe)?(et=oe[0],Object.assign(Ce,oe[1])):et=oe}return(0,t.constructFrom)(P,et)}function $(b){return b.match(f)[1].replace(m,"'")}})(R2);bj.isMatch=Vue;var Wue=si,Bue=R2;function Vue(e,t,r){return(0,Wue.isValid)((0,Bue.parse)(e,t,new Date,r))}var yj={};yj.isMonday=Yue;var Hue=W;function Yue(e){return(0,Hue.toDate)(e).getDay()===1}var _j={};_j.isPast=Gue;var Uue=W;function Gue(e){return+(0,Uue.toDate)(e)o-s);return r>=n&&r<=a}var Rj={},bh={};bh.subDays=Gce;var Uce=la;function Gce(e,t){return(0,Uce.addDays)(e,-t)}Rj.isYesterday=Kce;var qce=vr,Qce=ac,Xce=bh;function Kce(e){return(0,Qce.isSameDay)(e,(0,Xce.subDays)((0,qce.constructNow)(e),1))}var kj={};kj.lastDayOfDecade=Jce;var Zce=W;function Jce(e){const t=(0,Zce.toDate)(e),r=t.getFullYear(),n=9+Math.floor(r/10)*10;return t.setFullYear(n+1,0,0),t.setHours(0,0,0,0),t}var Nj={},Tx={};Tx.lastDayOfWeek=rde;var ede=W,tde=Gt;function rde(e,t){var l,u,c,d;const r=(0,tde.getDefaultOptions)(),n=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,a=(0,ede.toDate)(e),o=a.getDay(),s=(o{if(p==="''")return"'";const $=p[0];if($==="'")return c(p);const b=n.lightFormatters[$];if(b)return b(m,p);if($.match(l))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return p}).join(""):""}function c(d){const f=d.match(o);return f?f[1].replace(s,"'"):d}})(Bj);var Vj={};Vj.milliseconds=hde;var OO=X;function hde({years:e,months:t,weeks:r,days:n,hours:a,minutes:o,seconds:s}){let l=0;e&&(l+=e*OO.daysInYear),t&&(l+=t*(OO.daysInYear/12)),r&&(l+=r*7),n&&(l+=n);let u=l*24*60*60;return a&&(u+=a*60*60),o&&(u+=o*60),s&&(u+=s),Math.trunc(u*1e3)}var Hj={};Hj.millisecondsToHours=vde;var mde=X;function vde(e){const t=e/mde.millisecondsInHour;return Math.trunc(t)}var Yj={};Yj.millisecondsToMinutes=gde;var pde=X;function gde(e){const t=e/pde.millisecondsInMinute;return Math.trunc(t)}var Uj={};Uj.millisecondsToSeconds=yde;var bde=X;function yde(e){const t=e/bde.millisecondsInSecond;return Math.trunc(t)}var Gj={};Gj.minutesToHours=xde;var _de=X;function xde(e){const t=e/_de.minutesInHour;return Math.trunc(t)}var qj={};qj.minutesToMilliseconds=Sde;var wde=X;function Sde(e){return Math.trunc(e*wde.millisecondsInMinute)}var Qj={};Qj.minutesToSeconds=$de;var Pde=X;function $de(e){return Math.trunc(e*Pde.secondsInMinute)}var Xj={};Xj.monthsToQuarters=Cde;var Ode=X;function Cde(e){const t=e/Ode.monthsInQuarter;return Math.trunc(t)}var Kj={};Kj.monthsToYears=Tde;var Mde=X;function Tde(e){const t=e/Mde.monthsInYear;return Math.trunc(t)}var ui={};ui.nextDay=jde;var Ede=la,Dde=ph;function jde(e,t){let r=t-(0,Dde.getDay)(e);return r<=0&&(r+=7),(0,Ede.addDays)(e,r)}var Zj={};Zj.nextFriday=Ade;var Ide=ui;function Ade(e){return(0,Ide.nextDay)(e,5)}var Jj={};Jj.nextMonday=Rde;var Fde=ui;function Rde(e){return(0,Fde.nextDay)(e,1)}var e6={};e6.nextSaturday=Nde;var kde=ui;function Nde(e){return(0,kde.nextDay)(e,6)}var t6={};t6.nextSunday=zde;var Lde=ui;function zde(e){return(0,Lde.nextDay)(e,0)}var r6={};r6.nextThursday=Bde;var Wde=ui;function Bde(e){return(0,Wde.nextDay)(e,4)}var n6={};n6.nextTuesday=Hde;var Vde=ui;function Hde(e){return(0,Vde.nextDay)(e,2)}var a6={};a6.nextWednesday=Ude;var Yde=ui;function Ude(e){return(0,Yde.nextDay)(e,3)}var i6={};i6.parseISO=Gde;var D0=X;function Gde(e,t){const r=(t==null?void 0:t.additionalDigits)??2,n=Kde(e);let a;if(n.date){const u=Zde(n.date,r);a=Jde(u.restDateString,u.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const o=a.getTime();let s=0,l;if(n.time&&(s=efe(n.time),isNaN(s)))return new Date(NaN);if(n.timezone){if(l=tfe(n.timezone),isNaN(l))return new Date(NaN)}else{const u=new Date(o+s),c=new Date(0);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return new Date(o+s+l)}const lm={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},qde=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Qde=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Xde=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Kde(e){const t={},r=e.split(lm.dateTimeDelimiter);let n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],lm.timeZoneDelimiter.test(t.date)&&(t.date=e.split(lm.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const a=lm.timezone.exec(n);a?(t.time=n.replace(a[1],""),t.timezone=a[1]):t.time=n}return t}function Zde(e,t){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};const a=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?a:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function Jde(e,t){if(t===null)return new Date(NaN);const r=e.match(qde);if(!r)return new Date(NaN);const n=!!r[4],a=Cd(r[1]),o=Cd(r[2])-1,s=Cd(r[3]),l=Cd(r[4]),u=Cd(r[5])-1;if(n)return ofe(t,l,u)?rfe(t,l,u):new Date(NaN);{const c=new Date(0);return!afe(t,o,s)||!ife(t,a)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(a,s)),c)}}function Cd(e){return e?parseInt(e):1}function efe(e){const t=e.match(Qde);if(!t)return NaN;const r=e1(t[1]),n=e1(t[2]),a=e1(t[3]);return sfe(r,n,a)?r*D0.millisecondsInHour+n*D0.millisecondsInMinute+a*1e3:NaN}function e1(e){return e&&parseFloat(e.replace(",","."))||0}function tfe(e){if(e==="Z")return 0;const t=e.match(Xde);if(!t)return 0;const r=t[1]==="+"?-1:1,n=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return lfe(n,a)?r*(n*D0.millisecondsInHour+a*D0.millisecondsInMinute):NaN}function rfe(e,t,r){const n=new Date(0);n.setUTCFullYear(e,0,4);const a=n.getUTCDay()||7,o=(t-1)*7+r+1-a;return n.setUTCDate(n.getUTCDate()+o),n}const nfe=[31,null,31,30,31,30,31,31,30,31,30,31];function o6(e){return e%400===0||e%4===0&&e%100!==0}function afe(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(nfe[t]||(o6(e)?29:28))}function ife(e,t){return t>=1&&t<=(o6(e)?366:365)}function ofe(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function sfe(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function lfe(e,t){return t>=0&&t<=59}var s6={};s6.parseJSON=ufe;function ufe(e){const t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*(t[8]=="-"?-1:1),+t[5]-(+t[10]||0)*(t[8]=="-"?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}var ci={};ci.previousDay=ffe;var cfe=ph,dfe=bh;function ffe(e,t){let r=(0,cfe.getDay)(e)-t;return r<=0&&(r+=7),(0,dfe.subDays)(e,r)}var l6={};l6.previousFriday=mfe;var hfe=ci;function mfe(e){return(0,hfe.previousDay)(e,5)}var u6={};u6.previousMonday=pfe;var vfe=ci;function pfe(e){return(0,vfe.previousDay)(e,1)}var c6={};c6.previousSaturday=bfe;var gfe=ci;function bfe(e){return(0,gfe.previousDay)(e,6)}var d6={};d6.previousSunday=_fe;var yfe=ci;function _fe(e){return(0,yfe.previousDay)(e,0)}var f6={};f6.previousThursday=wfe;var xfe=ci;function wfe(e){return(0,xfe.previousDay)(e,4)}var h6={};h6.previousTuesday=Pfe;var Sfe=ci;function Pfe(e){return(0,Sfe.previousDay)(e,2)}var m6={};m6.previousWednesday=Ofe;var $fe=ci;function Ofe(e){return(0,$fe.previousDay)(e,3)}var v6={};v6.quartersToMonths=Mfe;var Cfe=X;function Mfe(e){return Math.trunc(e*Cfe.monthsInQuarter)}var p6={};p6.quartersToYears=Efe;var Tfe=X;function Efe(e){const t=e/Tfe.quartersInYear;return Math.trunc(t)}var g6={};g6.roundToNearestHours=Ife;var Dfe=li,CO=Fe,jfe=W;function Ife(e,t){const r=(t==null?void 0:t.nearestTo)??1;if(r<1||r>12)return(0,CO.constructFrom)(e,NaN);const n=(0,jfe.toDate)(e),a=n.getMinutes()/60,o=n.getSeconds()/60/60,s=n.getMilliseconds()/1e3/60/60,l=n.getHours()+a+o+s,u=(t==null?void 0:t.roundingMethod)??"round",d=(0,Dfe.getRoundingMethod)(u)(l/r)*r,f=(0,CO.constructFrom)(e,n);return f.setHours(d,0,0,0),f}var b6={};b6.roundToNearestMinutes=Rfe;var Afe=li,MO=Fe,Ffe=W;function Rfe(e,t){const r=(t==null?void 0:t.nearestTo)??1;if(r<1||r>30)return(0,MO.constructFrom)(e,NaN);const n=(0,Ffe.toDate)(e),a=n.getSeconds()/60,o=n.getMilliseconds()/1e3/60,s=n.getMinutes()+a+o,l=(t==null?void 0:t.roundingMethod)??"round",c=(0,Afe.getRoundingMethod)(l)(s/r)*r,d=(0,MO.constructFrom)(e,n);return d.setMinutes(c,0,0),d}var y6={};y6.secondsToHours=Nfe;var kfe=X;function Nfe(e){const t=e/kfe.secondsInHour;return Math.trunc(t)}var _6={};_6.secondsToMilliseconds=zfe;var Lfe=X;function zfe(e){return e*Lfe.millisecondsInSecond}var x6={};x6.secondsToMinutes=Bfe;var Wfe=X;function Bfe(e){const t=e/Wfe.secondsInMinute;return Math.trunc(t)}var w6={},rp={};rp.setMonth=Ufe;var Vfe=Fe,Hfe=D2,Yfe=W;function Ufe(e,t){const r=(0,Yfe.toDate)(e),n=r.getFullYear(),a=r.getDate(),o=(0,Vfe.constructFrom)(e,0);o.setFullYear(n,t,15),o.setHours(0,0,0,0);const s=(0,Hfe.getDaysInMonth)(o);return r.setMonth(t,Math.min(a,s)),r}w6.set=Xfe;var Gfe=Fe,qfe=rp,Qfe=W;function Xfe(e,t){let r=(0,Qfe.toDate)(e);return isNaN(+r)?(0,Gfe.constructFrom)(e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=(0,qfe.setMonth)(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}var S6={};S6.setDate=Zfe;var Kfe=W;function Zfe(e,t){const r=(0,Kfe.toDate)(e);return r.setDate(t),r}var P6={};P6.setDayOfYear=ehe;var Jfe=W;function ehe(e,t){const r=(0,Jfe.toDate)(e);return r.setMonth(0),r.setDate(t),r}var $6={};$6.setDefaultOptions=the;var TO=Gt;function the(e){const t={},r=(0,TO.getDefaultOptions)();for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]===void 0?delete t[n]:t[n]=e[n]);(0,TO.setDefaultOptions)(t)}var O6={};O6.setHours=nhe;var rhe=W;function nhe(e,t){const r=(0,rhe.toDate)(e);return r.setHours(t),r}var C6={};C6.setMilliseconds=ihe;var ahe=W;function ihe(e,t){const r=(0,ahe.toDate)(e);return r.setMilliseconds(t),r}var M6={};M6.setMinutes=she;var ohe=W;function she(e,t){const r=(0,ohe.toDate)(e);return r.setMinutes(t),r}var T6={};T6.setQuarter=che;var lhe=rp,uhe=W;function che(e,t){const r=(0,uhe.toDate)(e),n=Math.trunc(r.getMonth()/3)+1,a=t-n;return(0,lhe.setMonth)(r,r.getMonth()+a*3)}var E6={};E6.setSeconds=fhe;var dhe=W;function fhe(e,t){const r=(0,dhe.toDate)(e);return r.setSeconds(t),r}var D6={};D6.setWeekYear=ghe;var hhe=Fe,mhe=ii,EO=Zv,vhe=W,phe=Gt;function ghe(e,t,r){var u,c,d,f;const n=(0,phe.getDefaultOptions)(),a=(r==null?void 0:r.firstWeekContainsDate)??((c=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1;let o=(0,vhe.toDate)(e);const s=(0,mhe.differenceInCalendarDays)(o,(0,EO.startOfWeekYear)(o,r)),l=(0,hhe.constructFrom)(e,0);return l.setFullYear(t,0,a),l.setHours(0,0,0,0),o=(0,EO.startOfWeekYear)(l,r),o.setDate(o.getDate()+s),o}var j6={};j6.setYear=_he;var bhe=Fe,yhe=W;function _he(e,t){const r=(0,yhe.toDate)(e);return isNaN(+r)?(0,bhe.constructFrom)(e,NaN):(r.setFullYear(t),r)}var I6={};I6.startOfDecade=whe;var xhe=W;function whe(e){const t=(0,xhe.toDate)(e),r=t.getFullYear(),n=Math.floor(r/10)*10;return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}var A6={};A6.startOfToday=Phe;var She=lh;function Phe(){return(0,She.startOfDay)(Date.now())}var F6={};F6.startOfTomorrow=$he;function $he(){const e=new Date,t=e.getFullYear(),r=e.getMonth(),n=e.getDate(),a=new Date(0);return a.setFullYear(t,r,n+1),a.setHours(0,0,0,0),a}var R6={};R6.startOfYesterday=Ohe;function Ohe(){const e=new Date,t=e.getFullYear(),r=e.getMonth(),n=e.getDate(),a=new Date(0);return a.setFullYear(t,r,n-1),a.setHours(0,0,0,0),a}var k6={},Ex={};Ex.subMonths=Mhe;var Che=tc;function Mhe(e,t){return(0,Che.addMonths)(e,-t)}k6.sub=jhe;var The=bh,Ehe=Ex,Dhe=Fe;function jhe(e,t){const{years:r=0,months:n=0,weeks:a=0,days:o=0,hours:s=0,minutes:l=0,seconds:u=0}=t,c=(0,Ehe.subMonths)(e,n+r*12),d=(0,The.subDays)(c,o+a*7),f=l+s*60,g=(u+f*60)*1e3;return(0,Dhe.constructFrom)(e,d.getTime()-g)}var N6={};N6.subBusinessDays=Ahe;var Ihe=e2;function Ahe(e,t){return(0,Ihe.addBusinessDays)(e,-t)}var L6={};L6.subHours=Rhe;var Fhe=Fv;function Rhe(e,t){return(0,Fhe.addHours)(e,-t)}var z6={};z6.subMilliseconds=Nhe;var khe=rc;function Nhe(e,t){return(0,khe.addMilliseconds)(e,-t)}var W6={};W6.subMinutes=zhe;var Lhe=Rv;function zhe(e,t){return(0,Lhe.addMinutes)(e,-t)}var B6={};B6.subQuarters=Bhe;var Whe=kv;function Bhe(e,t){return(0,Whe.addQuarters)(e,-t)}var V6={};V6.subSeconds=Hhe;var Vhe=i2;function Hhe(e,t){return(0,Vhe.addSeconds)(e,-t)}var H6={};H6.subWeeks=Uhe;var Yhe=uh;function Uhe(e,t){return(0,Yhe.addWeeks)(e,-t)}var Y6={};Y6.subYears=qhe;var Ghe=o2;function qhe(e,t){return(0,Ghe.addYears)(e,-t)}var U6={};U6.weeksToDays=Xhe;var Qhe=X;function Xhe(e){return Math.trunc(e*Qhe.daysInWeek)}var G6={};G6.yearsToDays=Zhe;var Khe=X;function Zhe(e){return Math.trunc(e*Khe.daysInYear)}var q6={};q6.yearsToMonths=eme;var Jhe=X;function eme(e){return Math.trunc(e*Jhe.monthsInYear)}var Q6={};Q6.yearsToQuarters=rme;var tme=X;function rme(e){return Math.trunc(e*tme.quartersInYear)}(function(e){var t=J_;Object.keys(t).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===t[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[i]}})});var r=e2;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===r[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[i]}})});var n=la;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===n[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[i]}})});var a=Fv;Object.keys(a).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===a[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return a[i]}})});var o=n2;Object.keys(o).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===o[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return o[i]}})});var s=rc;Object.keys(s).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===s[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return s[i]}})});var l=Rv;Object.keys(l).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===l[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return l[i]}})});var u=tc;Object.keys(u).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===u[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return u[i]}})});var c=kv;Object.keys(c).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===c[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return c[i]}})});var d=i2;Object.keys(d).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===d[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return d[i]}})});var f=uh;Object.keys(f).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===f[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return f[i]}})});var m=o2;Object.keys(m).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===m[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return m[i]}})});var g=eD;Object.keys(g).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===g[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return g[i]}})});var x=tD;Object.keys(x).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===x[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return x[i]}})});var p=rD;Object.keys(p).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===p[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return p[i]}})});var $=nD;Object.keys($).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===$[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return $[i]}})});var b=vl;Object.keys(b).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===b[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return b[i]}})});var y=aD;Object.keys(y).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===y[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return y[i]}})});var P=Fe;Object.keys(P).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===P[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return P[i]}})});var M=vr;Object.keys(M).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===M[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return M[i]}})});var A=iD;Object.keys(A).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===A[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return A[i]}})});var F=oD;Object.keys(F).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===F[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return F[i]}})});var L=ii;Object.keys(L).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===L[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return L[i]}})});var z=c2;Object.keys(z).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===z[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return z[i]}})});var q=sD;Object.keys(q).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===q[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return q[i]}})});var Q=Nv;Object.keys(Q).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Q[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Q[i]}})});var ve=d2;Object.keys(ve).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ve[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ve[i]}})});var Me=Lv;Object.keys(Me).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Me[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Me[i]}})});var tt=zv;Object.keys(tt).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===tt[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return tt[i]}})});var et=Wv;Object.keys(et).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===et[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return et[i]}})});var Ce=Bv;Object.keys(Ce).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ce[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ce[i]}})});var Ne=lD;Object.keys(Ne).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ne[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ne[i]}})});var Se=ch;Object.keys(Se).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Se[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Se[i]}})});var H=Vv;Object.keys(H).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===H[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return H[i]}})});var ae=dh;Object.keys(ae).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ae[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ae[i]}})});var ie=uD;Object.keys(ie).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ie[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ie[i]}})});var ge=fh;Object.keys(ge).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ge[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ge[i]}})});var Pe=cD;Object.keys(Pe).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Pe[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Pe[i]}})});var me=v2;Object.keys(me).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===me[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return me[i]}})});var re=p2;Object.keys(re).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===re[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return re[i]}})});var oe=dD;Object.keys(oe).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===oe[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return oe[i]}})});var se=fD;Object.keys(se).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===se[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return se[i]}})});var ut=hD;Object.keys(ut).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ut[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ut[i]}})});var mt=mD;Object.keys(mt).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===mt[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return mt[i]}})});var Rt=vD;Object.keys(Rt).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Rt[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Rt[i]}})});var pr=qv;Object.keys(pr).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===pr[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return pr[i]}})});var Fn=pD;Object.keys(Fn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Fn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Fn[i]}})});var dn=gD;Object.keys(dn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===dn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return dn[i]}})});var ca=bD;Object.keys(ca).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ca[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ca[i]}})});var fn=Hv;Object.keys(fn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===fn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return fn[i]}})});var da=yD;Object.keys(da).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===da[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return da[i]}})});var kt=_D;Object.keys(kt).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===kt[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return kt[i]}})});var gr=xD;Object.keys(gr).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===gr[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return gr[i]}})});var qt=wD;Object.keys(qt).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===qt[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return qt[i]}})});var ar=SD;Object.keys(ar).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ar[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ar[i]}})});var br=Yv;Object.keys(br).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===br[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return br[i]}})});var Rn=PD;Object.keys(Rn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Rn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Rn[i]}})});var hn=$D;Object.keys(hn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===hn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return hn[i]}})});var ir=OD;Object.keys(ir).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ir[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ir[i]}})});var fa=CD;Object.keys(fa).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===fa[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return fa[i]}})});var ha=b2;Object.keys(ha).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ha[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ha[i]}})});var di=g2;Object.keys(di).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===di[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return di[i]}})});var fi=MD;Object.keys(fi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===fi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return fi[i]}})});var mn=y2;Object.keys(mn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===mn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return mn[i]}})});var ma=M2;Object.keys(ma).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ma[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ma[i]}})});var va=T2;Object.keys(va).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===va[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return va[i]}})});var hi=AD;Object.keys(hi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===hi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return hi[i]}})});var mi=FD;Object.keys(mi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===mi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return mi[i]}})});var vi=RD;Object.keys(vi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===vi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return vi[i]}})});var pi=kD;Object.keys(pi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===pi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return pi[i]}})});var Er=ND;Object.keys(Er).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Er[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Er[i]}})});var kn=LD;Object.keys(kn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===kn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return kn[i]}})});var gi=zD;Object.keys(gi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===gi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return gi[i]}})});var pa=WD;Object.keys(pa).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===pa[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return pa[i]}})});var Ao=BD;Object.keys(Ao).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ao[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ao[i]}})});var bi=VD;Object.keys(bi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===bi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return bi[i]}})});var vn=E2;Object.keys(vn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===vn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return vn[i]}})});var Fo=ph;Object.keys(Fo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Fo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Fo[i]}})});var Dr=C2;Object.keys(Dr).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Dr[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Dr[i]}})});var Ro=D2;Object.keys(Ro).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ro[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ro[i]}})});var ko=HD;Object.keys(ko).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ko[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ko[i]}})});var No=YD;Object.keys(No).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===No[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return No[i]}})});var Lo=I2;Object.keys(Lo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Lo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Lo[i]}})});var zo=UD;Object.keys(zo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===zo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return zo[i]}})});var or=A2;Object.keys(or).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===or[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return or[i]}})});var Wo=Xv;Object.keys(Wo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Wo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Wo[i]}})});var Bo=Io;Object.keys(Bo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Bo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Bo[i]}})});var yi=GD;Object.keys(yi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===yi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return yi[i]}})});var _i=qD;Object.keys(_i).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===_i[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return _i[i]}})});var Vo=QD;Object.keys(Vo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Vo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Vo[i]}})});var Ur=XD;Object.keys(Ur).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ur[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ur[i]}})});var Ho=KD;Object.keys(Ho).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ho[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ho[i]}})});var Nn=f2;Object.keys(Nn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Nn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Nn[i]}})});var Yo=ZD;Object.keys(Yo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Yo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Yo[i]}})});var xi=JD;Object.keys(xi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===xi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return xi[i]}})});var Uo=ej;Object.keys(Uo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Uo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Uo[i]}})});var Gr=Kv;Object.keys(Gr).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Gr[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Gr[i]}})});var Go=tj;Object.keys(Go).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Go[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Go[i]}})});var wi=mh;Object.keys(wi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===wi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return wi[i]}})});var qo=rj;Object.keys(qo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===qo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return qo[i]}})});var Si=nj;Object.keys(Si).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Si[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Si[i]}})});var Qo=aj;Object.keys(Qo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Qo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Qo[i]}})});var Pi=ij;Object.keys(Pi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Pi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Pi[i]}})});var ga=oj;Object.keys(ga).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ga[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ga[i]}})});var Xo=sj;Object.keys(Xo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Xo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Xo[i]}})});var pn=lj;Object.keys(pn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===pn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return pn[i]}})});var ba=uj;Object.keys(ba).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ba[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ba[i]}})});var Ko=cj;Object.keys(Ko).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ko[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ko[i]}})});var Ln=dj;Object.keys(Ln).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ln[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ln[i]}})});var $i=fj;Object.keys($i).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===$i[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return $i[i]}})});var Zo=u2;Object.keys(Zo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Zo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Zo[i]}})});var Jo=hj;Object.keys(Jo).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Jo[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Jo[i]}})});var ya=mj;Object.keys(ya).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ya[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ya[i]}})});var jr=vj;Object.keys(jr).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===jr[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return jr[i]}})});var _a=pj;Object.keys(_a).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===_a[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return _a[i]}})});var qr=gj;Object.keys(qr).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===qr[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return qr[i]}})});var es=m2;Object.keys(es).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===es[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return es[i]}})});var ts=j2;Object.keys(ts).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ts[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ts[i]}})});var rs=bj;Object.keys(rs).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===rs[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return rs[i]}})});var ns=yj;Object.keys(ns).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ns[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ns[i]}})});var as=_j;Object.keys(as).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===as[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return as[i]}})});var Oi=ac;Object.keys(Oi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Oi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Oi[i]}})});var Ci=_x;Object.keys(Ci).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ci[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ci[i]}})});var is=wx;Object.keys(is).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===is[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return is[i]}})});var zn=xj;Object.keys(zn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===zn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return zn[i]}})});var xa=Sx;Object.keys(xa).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===xa[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return xa[i]}})});var os=Px;Object.keys(os).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===os[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return os[i]}})});var Mi=$x;Object.keys(Mi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Mi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Mi[i]}})});var wa=Ox;Object.keys(wa).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===wa[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return wa[i]}})});var ss=tp;Object.keys(ss).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ss[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ss[i]}})});var ls=Mx;Object.keys(ls).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ls[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ls[i]}})});var us=t2;Object.keys(us).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===us[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return us[i]}})});var Ti=r2;Object.keys(Ti).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ti[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ti[i]}})});var cs=wj;Object.keys(cs).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===cs[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return cs[i]}})});var ds=Sj;Object.keys(ds).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ds[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ds[i]}})});var fs=Pj;Object.keys(fs).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===fs[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return fs[i]}})});var Sa=$j;Object.keys(Sa).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Sa[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Sa[i]}})});var hs=Oj;Object.keys(hs).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===hs[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return hs[i]}})});var ms=Cj;Object.keys(ms).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ms[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ms[i]}})});var vs=Mj;Object.keys(vs).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===vs[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return vs[i]}})});var Wn=Tj;Object.keys(Wn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Wn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Wn[i]}})});var Pa=Ej;Object.keys(Pa).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Pa[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Pa[i]}})});var Bn=Dj;Object.keys(Bn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Bn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Bn[i]}})});var Vn=jj;Object.keys(Vn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Vn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Vn[i]}})});var ps=Ij;Object.keys(ps).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ps[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ps[i]}})});var gn=si;Object.keys(gn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===gn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return gn[i]}})});var yr=Aj;Object.keys(yr).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===yr[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return yr[i]}})});var Ei=sh;Object.keys(Ei).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ei[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ei[i]}})});var _r=Fj;Object.keys(_r).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===_r[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return _r[i]}})});var bn=Rj;Object.keys(bn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===bn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return bn[i]}})});var $a=kj;Object.keys($a).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===$a[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return $a[i]}})});var Hn=Nj;Object.keys(Hn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Hn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Hn[i]}})});var gs=Lj;Object.keys(gs).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===gs[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return gs[i]}})});var Oa=F2;Object.keys(Oa).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Oa[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Oa[i]}})});var Qr=zj;Object.keys(Qr).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Qr[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Qr[i]}})});var bs=Tx;Object.keys(bs).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===bs[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return bs[i]}})});var Di=Wj;Object.keys(Di).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Di[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Di[i]}})});var ys=Bj;Object.keys(ys).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ys[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ys[i]}})});var O=s2;Object.keys(O).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===O[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return O[i]}})});var j=Vj;Object.keys(j).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===j[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return j[i]}})});var N=Hj;Object.keys(N).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===N[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return N[i]}})});var Z=Yj;Object.keys(Z).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Z[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Z[i]}})});var pe=Uj;Object.keys(pe).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===pe[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return pe[i]}})});var Ie=l2;Object.keys(Ie).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ie[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ie[i]}})});var Le=Gj;Object.keys(Le).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Le[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Le[i]}})});var _e=qj;Object.keys(_e).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===_e[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return _e[i]}})});var Ue=Qj;Object.keys(Ue).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ue[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ue[i]}})});var Nt=Xj;Object.keys(Nt).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Nt[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Nt[i]}})});var $t=Kj;Object.keys($t).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===$t[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return $t[i]}})});var yn=ui;Object.keys(yn).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===yn[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return yn[i]}})});var Ca=Zj;Object.keys(Ca).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ca[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ca[i]}})});var Ma=Jj;Object.keys(Ma).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ma[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ma[i]}})});var ji=e6;Object.keys(ji).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ji[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ji[i]}})});var bl=t6;Object.keys(bl).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===bl[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return bl[i]}})});var ic=r6;Object.keys(ic).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ic[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ic[i]}})});var oc=n6;Object.keys(oc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===oc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return oc[i]}})});var sc=a6;Object.keys(sc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===sc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return sc[i]}})});var lc=R2;Object.keys(lc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===lc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return lc[i]}})});var uc=i6;Object.keys(uc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===uc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return uc[i]}})});var cc=s6;Object.keys(cc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===cc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return cc[i]}})});var dc=ci;Object.keys(dc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===dc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return dc[i]}})});var fc=l6;Object.keys(fc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===fc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return fc[i]}})});var hc=u6;Object.keys(hc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===hc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return hc[i]}})});var mc=c6;Object.keys(mc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===mc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return mc[i]}})});var yl=d6;Object.keys(yl).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===yl[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return yl[i]}})});var vc=f6;Object.keys(vc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===vc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return vc[i]}})});var pc=h6;Object.keys(pc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===pc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return pc[i]}})});var gc=m6;Object.keys(gc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===gc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return gc[i]}})});var bc=v6;Object.keys(bc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===bc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return bc[i]}})});var _l=p6;Object.keys(_l).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===_l[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return _l[i]}})});var yc=g6;Object.keys(yc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===yc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return yc[i]}})});var _c=b6;Object.keys(_c).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===_c[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return _c[i]}})});var xc=y6;Object.keys(xc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===xc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return xc[i]}})});var wc=_6;Object.keys(wc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===wc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return wc[i]}})});var Sc=x6;Object.keys(Sc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Sc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Sc[i]}})});var Pc=w6;Object.keys(Pc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Pc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Pc[i]}})});var xl=S6;Object.keys(xl).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===xl[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return xl[i]}})});var Ii=gh;Object.keys(Ii).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ii[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ii[i]}})});var _s=P6;Object.keys(_s).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===_s[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return _s[i]}})});var wl=$6;Object.keys(wl).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===wl[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return wl[i]}})});var $c=O6;Object.keys($c).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===$c[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return $c[i]}})});var Sl=ix;Object.keys(Sl).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Sl[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Sl[i]}})});var Oc=Z2;Object.keys(Oc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Oc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Oc[i]}})});var Pl=a2;Object.keys(Pl).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Pl[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Pl[i]}})});var Cc=C6;Object.keys(Cc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Cc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Cc[i]}})});var Ta=M6;Object.keys(Ta).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ta[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ta[i]}})});var Mc=rp;Object.keys(Mc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Mc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Mc[i]}})});var Tc=T6;Object.keys(Tc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Tc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Tc[i]}})});var Ec=E6;Object.keys(Ec).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ec[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ec[i]}})});var Dc=X2;Object.keys(Dc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Dc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Dc[i]}})});var jc=D6;Object.keys(jc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===jc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return jc[i]}})});var Ic=j6;Object.keys(Ic).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ic[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ic[i]}})});var Ac=lh;Object.keys(Ac).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ac[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ac[i]}})});var Fc=I6;Object.keys(Fc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Fc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Fc[i]}})});var Rc=xx;Object.keys(Rc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Rc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Rc[i]}})});var $l=ua;Object.keys($l).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===$l[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return $l[i]}})});var Ol=nc;Object.keys(Ol).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ol[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ol[i]}})});var kc=Uv;Object.keys(kc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===kc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return kc[i]}})});var Nc=hh;Object.keys(Nc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Nc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Nc[i]}})});var Lc=Gv;Object.keys(Lc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Lc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Lc[i]}})});var xs=Cx;Object.keys(xs).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===xs[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return xs[i]}})});var Cl=A6;Object.keys(Cl).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Cl[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Cl[i]}})});var Ml=F6;Object.keys(Ml).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ml[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ml[i]}})});var Tl=An;Object.keys(Tl).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Tl[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Tl[i]}})});var El=Zv;Object.keys(El).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===El[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return El[i]}})});var Ai=Qv;Object.keys(Ai).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ai[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ai[i]}})});var zc=R6;Object.keys(zc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===zc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return zc[i]}})});var Dl=k6;Object.keys(Dl).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Dl[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Dl[i]}})});var Wc=N6;Object.keys(Wc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Wc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Wc[i]}})});var Bc=bh;Object.keys(Bc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Bc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Bc[i]}})});var Vc=L6;Object.keys(Vc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Vc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Vc[i]}})});var Hc=h2;Object.keys(Hc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Hc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Hc[i]}})});var Yc=z6;Object.keys(Yc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Yc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Yc[i]}})});var ws=W6;Object.keys(ws).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===ws[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return ws[i]}})});var Fi=Ex;Object.keys(Fi).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Fi[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Fi[i]}})});var Ss=B6;Object.keys(Ss).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ss[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ss[i]}})});var Uc=V6;Object.keys(Uc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Uc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Uc[i]}})});var Gc=H6;Object.keys(Gc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Gc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Gc[i]}})});var Ps=Y6;Object.keys(Ps).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Ps[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Ps[i]}})});var qc=W;Object.keys(qc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===qc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return qc[i]}})});var Qc=L2;Object.keys(Qc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Qc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Qc[i]}})});var Xc=U6;Object.keys(Xc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Xc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Xc[i]}})});var jl=G6;Object.keys(jl).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===jl[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return jl[i]}})});var $s=q6;Object.keys($s).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===$s[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return $s[i]}})});var Kc=Q6;Object.keys(Kc).forEach(function(i){i==="default"||i==="__esModule"||i in e&&e[i]===Kc[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return Kc[i]}})})})(K4);Object.defineProperty(Av,"__esModule",{value:!0});var nme=wJ,lr=K4,ul=S,pt=w;function ame(e){return e&&e.__esModule?e:{default:e}}var j0=ame(nme);const sf="react-activity-calendar",t1=8,X6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ime={months:X6,weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],totalCount:"{{count}} activities in {{year}}",legend:{less:"Less",more:"More"}};function ome(){const[e,t]=ul.useState("light"),r=n=>{t(n.matches?"dark":"light")};return ul.useEffect(()=>{const n=window.matchMedia("(prefers-color-scheme: dark)");return t(n.matches?"dark":"light"),n.addEventListener("change",r),()=>{n.removeEventListener("change",r)}},[]),e}function sme(){const[e,t]=ul.useState(!1);return ul.useEffect(()=>{t(!0)},[]),e}const lme="(prefers-reduced-motion: reduce)";function ume(){const[e,t]=ul.useState(!0);return ul.useEffect(()=>{const r=window.matchMedia(lme);t(r.matches);const n=a=>{t(a.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),e}function cme(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",r==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var dme=`.styles-module_container__GBNxC { - width: max-content; /* Calendar should not grow */ - max-width: 100%; /* Do not remove - flexbox parents */ - display: flex; - flex-direction: column; - gap: 8px; -} - -.styles-module_container__GBNxC rect { - stroke: rgba(0, 0, 0, 0.08); - stroke-width: 1px; - shape-rendering: geometricPrecision; -} - -@media (prefers-color-scheme: dark) { - .styles-module_container__GBNxC rect { - stroke: rgba(255, 255, 255, 0.04); - } -} - -.styles-module_scrollContainer__-bJC8 { - max-width: 100%; - overflow-x: auto; - overflow-y: hidden; -} - -.styles-module_calendar__sT1ND { - display: block; /* SVGs are inline-block by default */ - overflow: visible; /* Weekday labels are rendered left of the container */ -} - -.styles-module_calendar__sT1ND text { - fill: currentColor; -} - -.styles-module_footer__ZQ-Bl { - display: flex; - flex-wrap: wrap; - gap: 4px 16px; - white-space: nowrap; -} - -.styles-module_legendColors__kFY2e { - margin-left: auto; - display: flex; - align-items: center; - gap: 3px; -} - -@keyframes styles-module_loadingAnimation__V0w3h { - 0% { - fill: var(--react-activity-calendar-loading); - } - 50% { - fill: var(--react-activity-calendar-loading-active); - } - 100% { - fill: var(--react-activity-calendar-loading); - } -} -`,Ql={container:"styles-module_container__GBNxC",scrollContainer:"styles-module_scrollContainer__-bJC8",calendar:"styles-module_calendar__sT1ND",footer:"styles-module_footer__ZQ-Bl",legendColors:"styles-module_legendColors__kFY2e",loadingAnimation:"styles-module_loadingAnimation__V0w3h"};cme(dme);function fme(e,t=0){if(e.length===0)return[];const r=hme(e),n=r[0],a=lr.parseISO(n.date),o=lr.getDay(a)===t?a:lr.subWeeks(lr.nextDay(a,t),1),s=[...Array(lr.differenceInCalendarDays(a,o)).fill(void 0),...r],l=Math.ceil(s.length/7);return Array(l).fill(void 0).map((u,c)=>s.slice(c*7,c*7+7))}function hme(e){if(e.length===0)return[];const t=new Map(e.map(a=>[a.date,a])),r=e[0],n=e[e.length-1];return lr.eachDayOfInterval({start:lr.parseISO(r.date),end:lr.parseISO(n.date)}).map(a=>{const o=lr.formatISO(a,{representation:"date"});return t.has(o)?t.get(o):{date:o,count:0,level:0}})}function mme(e,t=X6){return e.reduce((r,n,a)=>{const o=n.find(u=>u!==void 0);if(!o)throw new Error(`Unexpected error: Week ${a+1} is empty: [${n}].`);const s=t[lr.getMonth(lr.parseISO(o.date))];if(!s){const u=new Date(o.date).toLocaleString("en-US",{month:"short"});throw new Error(`Unexpected error: undefined month label for ${u}.`)}const l=r[r.length-1];return a===0||!l||l.label!==s?[...r,{weekIndex:a,label:s}]:r},[]).filter(({weekIndex:r},n,a)=>n===0?a[1]&&a[1].weekIndex-r>=3:n===a.length-1?e.slice(r).length>=3:!0)}function Ds(e,t){return t?`${sf}__${e} ${t}`:`${sf}__${e}`}function vme(){const e=new Date().getFullYear();return lr.eachDayOfInterval({start:new Date(e,0,1),end:new Date(e,11,31)}).map(r=>({date:lr.formatISO(r,{representation:"date"}),count:0,level:0}))}function pme(e,t,r,n){if(r.length!==7)throw new Error("Exactly 7 labels, one for each weekday must be passed.");return e.reduce((a,o,s)=>{if(s%2!==0){const l=(s+t)%7,u=r[l],c=Math.ceil(gme(u,n).width);return Math.max(a,c)}return a},0)}function gme(e,t){if(typeof document>"u"||typeof window>"u")throw new Error("Unexpected error: text dimensions can only be calculated on the client, not the server.");if(t<1)throw new RangeError("fontSize must be positive");if(e.length===0)return{width:0,height:0};const r="http://www.w3.org/2000/svg",n=document.createElementNS(r,"svg");n.style.position="absolute",n.style.visibility="hidden",n.style.fontFamily=window.getComputedStyle(document.body).fontFamily,n.style.fontSize=`${t}px`;const a=document.createElementNS(r,"text");a.textContent=e,n.appendChild(a),document.body.appendChild(n);const o=a.getBBox();return document.body.removeChild(n),{width:o.width,height:o.height}}function bme(e,t=5){const r=yme(t);return e?(_me(e,t),e.light=e.light??r.light,e.dark=e.dark??r.dark,{light:DO(e.light,t)?e.light:I0(e.light,t),dark:DO(e.dark,t)?e.dark:I0(e.dark,t)}):r}function yme(e){return{light:I0(["hsl(0, 0%, 92%)","hsl(0, 0%, 26%)"],e),dark:I0(["hsl(0, 0%, 20%)","hsl(0, 0%, 92%)"],e)}}function _me(e,t){if(typeof e!="object"||e.light===void 0&&e.dark===void 0)throw new Error(`The theme object must contain at least one of the fields "light" and "dark" with exactly 2 or ${t} colors respectively.`);if(e.light){const{length:r}=e.light;if(r!==2&&r!==t)throw new Error(`theme.light must contain exactly 2 or ${t} colors, ${r} passed.`)}if(e.dark){const{length:r}=e.dark;if(r!==2&&r!==t)throw new Error(`theme.dark must contain exactly 2 or ${t} colors, ${r} passed.`)}}function DO(e,t){const r=e.find(n=>!j0.default.valid(n));if(r)throw new Error(`Invalid color "${String(r)}" passed. All CSS color formats are accepted.`);return e.length===t}function I0(e,t){return j0.default.scale(e).mode("lch").colors(t)}const K6=({data:e,blockMargin:t=4,blockRadius:r=2,blockSize:n=12,colorScheme:a=void 0,eventHandlers:o={},fontSize:s=14,hideColorLegend:l=!1,hideMonthLabels:u=!1,hideTotalCount:c=!1,labels:d=void 0,maxLevel:f=4,loading:m=!1,renderBlock:g=void 0,showWeekdayLabels:x=!1,style:p={},theme:$=void 0,totalCount:b=void 0,weekStart:y=0})=>{f=Math.max(1,f);const P=bme($,f+1),M=ome(),A=P[a??M],F=!ume(),L=sme();if(x&&!L||(m&&(e=vme()),e.length===0))return null;const z=e[0],q=lr.getYear(lr.parseISO(z.date)),Q=fme(e,y),ve=Q[0],Me=Object.assign({},ime,d),tt=u?0:s+t1,et=x?pme(ve,y,Me.weekdays,s)+t1:void 0;function Ce(){return{width:Q.length*(n+t)-t,height:tt+(n+t)*7-t}}function Ne(re){return Object.keys(o).reduce((oe,se)=>({...oe,[se]:ut=>{var mt;return(mt=o[se])==null?void 0:mt.call(o,ut)(re)}}),{})}function Se(){return Q.map((re,oe)=>re.map((se,ut)=>{if(!se)return null;if(se.level<0||se.level>f)throw new RangeError(`Provided activity level ${se.level} for ${se.date} is out of range. It must be between 0 and ${f}.`);const mt=m&&F?{animation:`${Ql.loadingAnimation} 1.75s ease-in-out infinite`,animationDelay:`${oe*20+ut*20}ms`}:void 0,Rt=pt.jsx("rect",{...Ne(se),x:0,y:tt+(n+t)*ut,width:n,height:n,rx:r,ry:r,fill:A[se.level],"data-date":se.date,"data-level":se.level,style:mt});return pt.jsx(ul.Fragment,{children:g?g(Rt,se):Rt},se.date)})).map((re,oe)=>pt.jsx("g",{transform:`translate(${(n+t)*oe}, 0)`,children:re},oe))}function H(){if(c&&l)return null;const re=typeof b=="number"?b:e.reduce((oe,se)=>oe+se.count,0);return pt.jsxs("footer",{className:Ds("footer",Ql.footer),style:{marginLeft:et},children:[m&&pt.jsx("div",{children:" "}),!m&&!c&&pt.jsx("div",{className:Ds("count"),children:Me.totalCount?Me.totalCount.replace("{{count}}",String(re)).replace("{{year}}",String(q)):`${re} activities in ${q}`}),!m&&!l&&pt.jsxs("div",{className:Ds("legend-colors",Ql.legendColors),children:[pt.jsx("span",{style:{marginRight:"0.4em"},children:Me.legend.less}),Array(f+1).fill(void 0).map((oe,se)=>pt.jsx("svg",{width:n,height:n,children:pt.jsx("rect",{width:n,height:n,fill:A[se],rx:r,ry:r})},se)),pt.jsx("span",{style:{marginLeft:"0.4em"},children:Me.legend.more})]})]})}function ae(){return!x&&u?null:pt.jsxs(pt.Fragment,{children:[x&&Q[0]&&pt.jsx("g",{className:Ds("legend-weekday"),children:Q[0].map((re,oe)=>{if(oe%2===0)return null;const se=(oe+y)%7;return pt.jsx("text",{x:-t1,y:tt+(n+t)*oe+n/2,dominantBaseline:"middle",textAnchor:"end",children:Me.weekdays[se]},oe)})}),!u&&pt.jsx("g",{className:Ds("legend-month"),children:mme(Q,Me.months).map(({label:re,weekIndex:oe})=>pt.jsx("text",{x:(n+t)*oe,dominantBaseline:"hanging",children:re},oe))})]})}const{width:ie,height:ge}=Ce(),Pe=A[0],me={fontSize:s,...F&&{[`--${sf}-loading`]:Pe,[`--${sf}-loading-active`]:a==="light"?j0.default(Pe).darken(.3).hex():j0.default(Pe).brighten(.25).hex()}};return pt.jsxs("article",{className:`${sf} ${Ql.container}`,style:{...p,...me},children:[pt.jsx("div",{className:Ds("scroll-container",Ql.scrollContainer),children:pt.jsxs("svg",{width:ie,height:ge,viewBox:`0 0 ${ie} ${ge}`,className:Ds("calendar",Ql.calendar),style:{marginLeft:et},children:[!m&&ae(),Se()]})}),H()]})},xme=e=>pt.jsx(K6,{data:[],...e});Av.Skeleton=xme;Av.default=K6;Object.defineProperty(Q4,"__esModule",{value:!0});var Xl=S,Z6=Av;function J6(e){return e&&e.__esModule?e:{default:e}}var r1=J6(Xl),wme=J6(Z6);function A0(){return A0=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(typeof t!="function")return e;const r=t(e);if(!Array.isArray(r))throw Error("Passed function transformData must return a list of Day objects.");if(r.length>0){const n=r[0];if(typeof n.count!="number"||n.count<0)throw Error(`Required property "count: number" missing or invalid. Got: ${n.count}`);if(!/\d{4}-\d{2}-\d{2}/.test(n.date))throw Error(`Required property "date: YYYY-MM-DD" missing or invalid. Got: ${n.date}`);if(typeof n.level!="number"||n.level<0||n.level>4)throw Error(`Required property "level: 0 | 1 | 2 | 3 | 4" missing or invalid: Got: ${n.level}.`)}return r};async function Ome(e,t){const r=await fetch(`${Sme}${e}?y=${t}`),n=await r.json();if(!r.ok)throw Error(`Fetching GitHub contribution data for "${e}" failed: ${n.error}`);return n}const Cme=({username:e,year:t="last",labels:r,transformData:n,transformTotalCount:a=!0,throwOnError:o=!1,errorMessage:s=`Error – Fetching GitHub contribution data for "${e}" failed.`,...l})=>{const[u,c]=Xl.useState(null),[d,f]=Xl.useState(!1),[m,g]=Xl.useState(null),x=Xl.useCallback(()=>{f(!0),g(null),Ome(e,t).then(c).catch(g).finally(()=>f(!1))},[e,t]);if(Xl.useEffect(x,[x]),m){if(o)throw m;return r1.default.createElement("div",null,s)}if(d||!u)return r1.default.createElement(Z6.Skeleton,A0({},l,{loading:!0}));const p=l.theme??Pme,$={totalCount:`{{count}} contributions in ${t==="last"?"the last year":"{{year}}"}`},b=t==="last"?u.total.lastYear:u.total[t];return r1.default.createElement(wme.default,A0({data:$me(u.contributions,n),theme:p,labels:Object.assign({},$,r),totalCount:n&&a?void 0:b},l,{loading:!!l.loading||d,maxLevel:4}))};var Mme=Q4.default=Cme;const Tme=({username:e})=>{const t={display:"flex",justifyContent:"center",alignItems:"center"},r=w.jsx(Mme,{username:Eme(e),colorScheme:"light"});return w.jsx(Mt,{style:t,children:r})},Eme=e=>e.indexOf("/")===-1?e:new URL(e).pathname.split("/")[1],Dme=()=>{const{id:e}=MZ(),[t,r]=S.useState(null),[n,a]=S.useState(!0),[o,s]=S.useState(null),l=tr("white","gray.800"),u=tr("gray.200","gray.600");return S.useEffect(()=>{(async()=>{try{if(e){const d=await G4.getMemberById(BigInt(e));if(d===void 0)throw new Error("Member not found");r(d)}}catch{s("Failed to fetch member details")}finally{a(!1)}})()},[e]),n?w.jsx(Mr,{children:w.jsx(fl,{size:"xl"})}):o||!t?w.jsx(Mr,{children:w.jsx(Qe,{color:"red.500",children:o||"Member not found"})}):w.jsx(Mr,{children:w.jsx(Mt,{borderWidth:"1px",borderRadius:"lg",p:6,boxShadow:"lg",bg:l,borderColor:u,maxWidth:"800px",margin:"auto",children:w.jsxs(cn,{spacing:6,align:"stretch",children:[w.jsx(Ju,{as:Iv,to:"/members",leftIcon:w.jsx(cJ,{}),alignSelf:"flex-start",children:"Back to Members"}),w.jsxs(qa,{spacing:6,children:[w.jsx(Pv,{borderRadius:"full",boxSize:"150px",src:t.profilePicture,alt:`${t.firstName} ${t.lastName}`}),w.jsxs(cn,{align:"start",spacing:2,children:[w.jsxs(Do,{size:"xl",children:[t.firstName," ",t.lastName]}),w.jsx(Qe,{fontSize:"lg",color:"gray.500",children:t.email})]})]}),w.jsx(Tme,{username:t.github}),w.jsxs(qa,{spacing:4,children:[w.jsx(Ga,{href:`mailto:${t.email}`,isExternal:!0,children:w.jsx(Lr,{as:Z_,w:6,h:6,color:"gray.500",_hover:{color:"blue.500"}})}),w.jsx(Ga,{href:`https://discord.com/users/${t.discord}`,isExternal:!0,children:w.jsx(Lr,{as:X_,w:6,h:6,color:"gray.500",_hover:{color:"blue.500"}})}),w.jsx(Ga,{href:t.linkedin,isExternal:!0,children:w.jsx(Lr,{as:K_,w:6,h:6,color:"gray.500",_hover:{color:"blue.500"}})})]})]})})})},um=["git clone git@github.com:hcp-uw/your-new-project.git","cd your-new-project",'echo "# Your New Project" > README.md',"npm init -y","npm install react react-dom react-scripts","git add .",'git commit -m "Initial commit"',"git push origin main","^C","yes | rm -rf node_modules",'echo "node_modules/" > .gitignore',"npm install",'git commit -am "Add node_modules to .gitignore"',"git push origin main","git checkout -b feature/your-new-feature","touch your-new-feature.js","npm run start","^C","git add .",'git commit -m "Added my new feature!"',"git push origin feature/your-new-feature","git checkout main","git merge feature/your-new-feature"],jme=()=>{const[e,t]=S.useState("$ "),[r,n]=S.useState(0),[a,o]=S.useState(0),s=tr("gray.100","gray.700"),l=tr("green.500","green.300");return S.useEffect(()=>{if(r{ac+um[r][a]),o(a+1)):rc+` -$ `),n(r+1),o(0)):n(0)},100);return()=>clearTimeout(u)}},[r,a]),w.jsx(Mt,{bg:s,p:4,borderRadius:"md",fontFamily:"monospace",whiteSpace:"pre-wrap",overflow:"hidden",marginTop:"5em",minHeight:"95vh",width:"100%",children:w.jsx(Qe,{color:l,children:e})})},jO=()=>w.jsx(Mr,{children:w.jsxs(H_,{templateColumns:["1fr","1fr","2fr 1fr"],gap:6,children:[w.jsxs(Ib,{children:[w.jsx(Qe,{fontSize:["3xl","4xl","5xl","6xl"],fontWeight:"semibold",marginTop:"1em",children:"The Problem"}),w.jsx(Qe,{fontSize:["md","xl","2xl"],marginTop:"1em",children:"The majority of projects offered by CS coursework are solo or in pairs, so future programmers miss out on the invaluable experience of working in larger teams. Additionally, the leading motivation to do CS class projects are for grades, rather than for the learning experience."}),w.jsxs(Ys,{direction:"column",width:"100%",marginTop:"3em",children:[w.jsx(Qe,{fontSize:["3xl","4xl","5xl","6xl"],fontWeight:"semibold",children:"The Why"}),w.jsx(Qe,{fontSize:["md","xl","2xl"],marginTop:"1em",children:"Getting internships is the best ways to gain real world experience on the job. However, it is also quite difficult to obtain without having some prior experience."}),w.jsx(Qe,{fontSize:["md","xl","2xl"],marginTop:"1em",children:"This circular logic plagues every generation of programmers."})]}),w.jsxs(Ys,{direction:"column",width:"100%",marginTop:"3em",children:[w.jsx(Qe,{fontSize:["3xl","4xl","5xl","6xl"],fontWeight:"semibold",children:"Our Mission"}),w.jsxs(Mt,{marginBottom:"3em",children:[w.jsx(Qe,{fontSize:["md","xl","2xl"],display:"inline",marginTop:"1em",children:"To create a tech internship-like environment that promotes the growth and development of our club members. We provide team-based programming project experience and encourage"}),w.jsx(Qe,{fontSize:["md","xl","2xl"],display:"inline",color:"brand.pink",children:" peer-to-peer learning"}),w.jsx(Qe,{fontSize:["md","xl","2xl"],display:"inline",children:" to provide the next generation of programmers & designers with the tools and experience to"}),w.jsx(Qe,{fontSize:["md","xl","2xl"],display:"inline",color:"brand.pink",children:" succeed in future tech careers."})]})]})]}),w.jsx(Ib,{children:w.jsx(Mt,{position:"sticky",top:"20px",children:w.jsx(jme,{})})})]})}),Ime=uM` - 0% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.7); } - 70% { box-shadow: 0 0 0 15px rgba(88, 101, 242, 0); } - 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); } -`,cm=ni(Mt),Ame=()=>{const e=tr("grey.100","gray.800"),t=tr("gray.800","gray.100");return w.jsx(Mr,{children:w.jsx(Mt,{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",bg:e,color:t,children:w.jsxs(cn,{spacing:8,align:"center",maxWidth:"600px",textAlign:"center",children:[w.jsx(cm,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.8},children:w.jsx(Do,{as:"h1",size:"2xl",mb:4,children:"Join Our Community"})}),w.jsx(cm,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:w.jsx(Qe,{fontSize:"xl",mb:6,children:"Connect with like-minded developers, share your projects, and grow your skills. Our Discord community is the perfect place to collaborate and learn!"})}),w.jsx(cm,{as:Ju,leftIcon:w.jsx(X_,{}),size:"lg",colorScheme:"purple",_hover:{transform:"translateY(-5px)"},transition:"all 0.2s",onClick:()=>window.open("https://discord.gg/your-invite-link","_blank"),animation:`${Ime} 2s infinite`,whileHover:{scale:1.05},whileTap:{scale:.95},children:"Join our Discord"}),w.jsx(cm,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1,delay:.5},children:w.jsx(Qe,{fontSize:"sm",mt:8,children:"By joining, you agree to our community guidelines and code of conduct."})})]})})})};function Fme(){return w.jsx(Hq,{theme:RM,children:w.jsx(QZ,{children:w.jsxs(BZ,{children:[w.jsx(Xi,{path:"/members",element:w.jsx(vJ,{})}),w.jsx(Xi,{path:"/members/:id",element:w.jsx(Dme,{})}),w.jsx(Xi,{path:"/teams",element:w.jsx(bJ,{})}),w.jsx(Xi,{path:"/events",element:w.jsx(xJ,{})}),w.jsx(Xi,{path:"/about",element:w.jsx(jO,{})}),w.jsx(Xi,{path:"/join",element:w.jsx(Ame,{})}),w.jsx(Xi,{path:"/",element:w.jsx(jO,{})})]})})})}a1.createRoot(document.getElementById("root")).render(w.jsx(on.StrictMode,{children:w.jsx(Fme,{})})); diff --git a/assets/index-CzfD0XXp.js b/assets/index-CzfD0XXp.js new file mode 100644 index 0000000..42a6b39 --- /dev/null +++ b/assets/index-CzfD0XXp.js @@ -0,0 +1,540 @@ +var YR=Object.defineProperty;var GR=(e,t,r)=>t in e?YR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e,t,r)=>GR(e,typeof t!="symbol"?t+"":t,r);function qR(e,t){for(var r=0;rn[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function QR(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var mE={exports:{}},y0={},vE={exports:{}},Ce={};/** + * @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 _h=Symbol.for("react.element"),KR=Symbol.for("react.portal"),XR=Symbol.for("react.fragment"),ZR=Symbol.for("react.strict_mode"),JR=Symbol.for("react.profiler"),e9=Symbol.for("react.provider"),t9=Symbol.for("react.context"),r9=Symbol.for("react.forward_ref"),n9=Symbol.for("react.suspense"),a9=Symbol.for("react.memo"),i9=Symbol.for("react.lazy"),O2=Symbol.iterator;function o9(e){return e===null||typeof e!="object"?null:(e=O2&&e[O2]||e["@@iterator"],typeof e=="function"?e:null)}var pE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gE=Object.assign,yE={};function _c(e,t,r){this.props=e,this.context=t,this.refs=yE,this.updater=r||pE}_c.prototype.isReactComponent={};_c.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")};_c.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bE(){}bE.prototype=_c.prototype;function Hb(e,t,r){this.props=e,this.context=t,this.refs=yE,this.updater=r||pE}var Ub=Hb.prototype=new bE;Ub.constructor=Hb;gE(Ub,_c.prototype);Ub.isPureReactComponent=!0;var C2=Array.isArray,_E=Object.prototype.hasOwnProperty,Yb={current:null},wE={key:!0,ref:!0,__self:!0,__source:!0};function xE(e,t,r){var n,a={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)_E.call(t,n)&&!wE.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1>>1,$e=H[ge];if(0>>1;gea(oe,ie))se<$e&&0>a(ft,oe)?(H[ge]=ft,H[se]=ie,ge=se):(H[ge]=oe,H[re]=ie,ge=re);else if(se<$e&&0>a(ft,ie))H[ge]=ft,H[se]=ie,ge=se;else break e}}return ae}function a(H,ae){var ie=H.sortIndex-ae.sortIndex;return ie!==0?ie:H.id-ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,h=3,v=!1,b=!1,p=!1,$=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(H){for(var ae=r(c);ae!==null;){if(ae.callback===null)n(c);else if(ae.startTime<=H)n(c),ae.sortIndex=ae.expirationTime,t(u,ae);else break;ae=r(c)}}function T(H){if(p=!1,S(H),!b)if(r(u)!==null)b=!0,ze(I);else{var ae=r(c);ae!==null&&Pe(T,ae.startTime-H)}}function I(H,ae){b=!1,p&&(p=!1,y(z),z=-1),v=!0;var ie=h;try{for(S(ae),f=r(u);f!==null&&(!(f.expirationTime>ae)||H&&!ve());){var ge=f.callback;if(typeof ge=="function"){f.callback=null,h=f.priorityLevel;var $e=ge(f.expirationTime<=ae);ae=e.unstable_now(),typeof $e=="function"?f.callback=$e:f===r(u)&&n(u),S(ae)}else n(u);f=r(u)}if(f!==null)var me=!0;else{var re=r(c);re!==null&&Pe(T,re.startTime-ae),me=!1}return me}finally{f=null,h=ie,v=!1}}var A=!1,N=null,z=-1,q=5,Q=-1;function ve(){return!(e.unstable_now()-QH||125ge?(H.sortIndex=ie,t(c,H),r(u)===null&&H===r(c)&&(p?(y(z),z=-1):p=!0,Pe(T,ie-ge))):(H.sortIndex=$e,t(u,H),b||v||(b=!0,ze(I))),H},e.unstable_shouldYield=ve,e.unstable_wrapCallback=function(H){var ae=h;return function(){var ie=h;h=ae;try{return H.apply(this,arguments)}finally{h=ie}}}})(CE);OE.exports=CE;var g9=OE.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var y9=P,Kr=g9;function G(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),J1=Object.prototype.hasOwnProperty,b9=/^[: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]*$/,E2={},M2={};function _9(e){return J1.call(M2,e)?!0:J1.call(E2,e)?!1:b9.test(e)?M2[e]=!0:(E2[e]=!0,!1)}function w9(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function x9(e,t,r,n){if(t===null||typeof t>"u"||w9(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yr(e,t,r,n,a,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xt[e]=new yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xt[t]=new yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xt[e]=new yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xt[e]=new yr(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){Xt[e]=new yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xt[e]=new yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xt[e]=new yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xt[e]=new yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xt[e]=new yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var qb=/[\-:]([a-z])/g;function Qb(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(qb,Qb);Xt[t]=new yr(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(qb,Qb);Xt[t]=new yr(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(qb,Qb);Xt[t]=new yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xt[e]=new yr(e,1,!1,e.toLowerCase(),null,!1,!1)});Xt.xlinkHref=new yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xt[e]=new yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Kb(e,t,r,n){var a=Xt.hasOwnProperty(t)?Xt[t]:null;(a!==null?a.type!==0:n||!(2l||a[s]!==i[l]){var u=` +`+a[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{ug=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?tf(e):""}function S9(e){switch(e.tag){case 5:return tf(e.type);case 16:return tf("Lazy");case 13:return tf("Suspense");case 19:return tf("SuspenseList");case 0:case 2:case 15:return e=cg(e.type,!1),e;case 11:return e=cg(e.type.render,!1),e;case 1:return e=cg(e.type,!0),e;default:return""}}function ny(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 wu:return"Fragment";case _u:return"Portal";case ey:return"Profiler";case Xb:return"StrictMode";case ty:return"Suspense";case ry:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ME:return(e.displayName||"Context")+".Consumer";case EE:return(e._context.displayName||"Context")+".Provider";case Zb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jb:return t=e.displayName||null,t!==null?t:ny(e.type)||"Memo";case so:t=e._payload,e=e._init;try{return ny(e(t))}catch{}}return null}function P9(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 ny(t);case 8:return t===Xb?"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 ko(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function DE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $9(e){var t=DE(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rm(e){e._valueTracker||(e._valueTracker=$9(e))}function IE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=DE(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Pv(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 ay(e,t){var r=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function D2(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ko(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function kE(e,t){t=t.checked,t!=null&&Kb(e,"checked",t,!1)}function iy(e,t){kE(e,t);var r=ko(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oy(e,t.type,r):t.hasOwnProperty("defaultValue")&&oy(e,t.type,ko(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function I2(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function oy(e,t,r){(t!=="number"||Pv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var rf=Array.isArray;function Vu(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=nm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ff(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var mf={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},O9=["Webkit","ms","Moz","O"];Object.keys(mf).forEach(function(e){O9.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mf[t]=mf[e]})});function FE(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||mf.hasOwnProperty(e)&&mf[e]?(""+t).trim():t+"px"}function NE(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=FE(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var C9=pt({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 uy(e,t){if(t){if(C9[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(G(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(G(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(G(61))}if(t.style!=null&&typeof t.style!="object")throw Error(G(62))}}function cy(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 dy=null;function e_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fy=null,Hu=null,Uu=null;function R2(e){if(e=Sh(e)){if(typeof fy!="function")throw Error(G(280));var t=e.stateNode;t&&(t=S0(t),fy(e.stateNode,e.type,t))}}function zE(e){Hu?Uu?Uu.push(e):Uu=[e]:Hu=e}function BE(){if(Hu){var e=Hu,t=Uu;if(Uu=Hu=null,R2(e),t)for(e=0;e>>=0,e===0?32:31-(F9(e)/N9|0)|0}var am=64,im=4194304;function nf(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 Tv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~a;l!==0?n=nf(l):(i&=s,i!==0&&(n=nf(i)))}else s=r&~a,s!==0?n=nf(s):i!==0&&(n=nf(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function wh(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-zn(t),e[t]=r}function V9(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=pf),U2=" ",Y2=!1;function s3(e,t){switch(e){case"keyup":return gL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function l3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xu=!1;function bL(e,t){switch(e){case"compositionend":return l3(t);case"keypress":return t.which!==32?null:(Y2=!0,U2);case"textInput":return e=t.data,e===U2&&Y2?null:e;default:return null}}function _L(e,t){if(xu)return e==="compositionend"||!l_&&s3(e,t)?(e=i3(),Km=i_=po=null,xu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=K2(r)}}function f3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?f3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function h3(){for(var e=window,t=Pv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Pv(e.document)}return t}function u_(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 EL(e){var t=h3(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&f3(r.ownerDocument.documentElement,r)){if(n!==null&&u_(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=X2(r,i);var s=X2(r,n);a&&s&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Su=null,yy=null,yf=null,by=!1;function Z2(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;by||Su==null||Su!==Pv(n)||(n=Su,"selectionStart"in n&&u_(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yf&&Hf(yf,n)||(yf=n,n=jv(yy,"onSelect"),0Ou||(e.current=$y[Ou],$y[Ou]=null,Ou--)}function ot(e,t){Ou++,$y[Ou]=e.current,e.current=t}var Ao={},lr=zo(Ao),Dr=zo(!1),gl=Ao;function ic(e,t){var r=e.type.contextTypes;if(!r)return Ao;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ir(e){return e=e.childContextTypes,e!=null}function Iv(){ct(Dr),ct(lr)}function iP(e,t,r){if(lr.current!==Ao)throw Error(G(168));ot(lr,t),ot(Dr,r)}function x3(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(G(108,P9(e)||"Unknown",a));return pt({},r,n)}function kv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,gl=lr.current,ot(lr,e),ot(Dr,Dr.current),!0}function oP(e,t,r){var n=e.stateNode;if(!n)throw Error(G(169));r?(e=x3(e,t,gl),n.__reactInternalMemoizedMergedChildContext=e,ct(Dr),ct(lr),ot(lr,e)):ct(Dr),ot(Dr,r)}var Ha=null,P0=!1,Pg=!1;function S3(e){Ha===null?Ha=[e]:Ha.push(e)}function BL(e){P0=!0,S3(e)}function Bo(){if(!Pg&&Ha!==null){Pg=!0;var e=0,t=et;try{var r=Ha;for(et=1;e>=s,a-=s,Ga=1<<32-zn(t)+a|r<z?(q=N,N=null):q=N.sibling;var Q=h(y,N,S[z],T);if(Q===null){N===null&&(N=q);break}e&&N&&Q.alternate===null&&t(y,N),_=i(Q,_,z),A===null?I=Q:A.sibling=Q,A=Q,N=q}if(z===S.length)return r(y,N),dt&&Gs(y,z),I;if(N===null){for(;zz?(q=N,N=null):q=N.sibling;var ve=h(y,N,Q.value,T);if(ve===null){N===null&&(N=q);break}e&&N&&ve.alternate===null&&t(y,N),_=i(ve,_,z),A===null?I=ve:A.sibling=ve,A=ve,N=q}if(Q.done)return r(y,N),dt&&Gs(y,z),I;if(N===null){for(;!Q.done;z++,Q=S.next())Q=f(y,Q.value,T),Q!==null&&(_=i(Q,_,z),A===null?I=Q:A.sibling=Q,A=Q);return dt&&Gs(y,z),I}for(N=n(y,N);!Q.done;z++,Q=S.next())Q=v(N,y,z,Q.value,T),Q!==null&&(e&&Q.alternate!==null&&N.delete(Q.key===null?z:Q.key),_=i(Q,_,z),A===null?I=Q:A.sibling=Q,A=Q);return e&&N.forEach(function(Ee){return t(y,Ee)}),dt&&Gs(y,z),I}function $(y,_,S,T){if(typeof S=="object"&&S!==null&&S.type===wu&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case tm:e:{for(var I=S.key,A=_;A!==null;){if(A.key===I){if(I=S.type,I===wu){if(A.tag===7){r(y,A.sibling),_=a(A,S.props.children),_.return=y,y=_;break e}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===so&&uP(I)===A.type){r(y,A.sibling),_=a(A,S.props),_.ref=jd(y,A,S),_.return=y,y=_;break e}r(y,A);break}else t(y,A);A=A.sibling}S.type===wu?(_=cl(S.props.children,y.mode,T,S.key),_.return=y,y=_):(T=av(S.type,S.key,S.props,null,y.mode,T),T.ref=jd(y,_,S),T.return=y,y=T)}return s(y);case _u:e:{for(A=S.key;_!==null;){if(_.key===A)if(_.tag===4&&_.stateNode.containerInfo===S.containerInfo&&_.stateNode.implementation===S.implementation){r(y,_.sibling),_=a(_,S.children||[]),_.return=y,y=_;break e}else{r(y,_);break}else t(y,_);_=_.sibling}_=Dg(S,y.mode,T),_.return=y,y=_}return s(y);case so:return A=S._init,$(y,_,A(S._payload),T)}if(rf(S))return b(y,_,S,T);if(Od(S))return p(y,_,S,T);fm(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,_!==null&&_.tag===6?(r(y,_.sibling),_=a(_,S),_.return=y,y=_):(r(y,_),_=jg(S,y.mode,T),_.return=y,y=_),s(y)):r(y,_)}return $}var sc=C3(!0),T3=C3(!1),Lv=zo(null),Fv=null,Eu=null,h_=null;function m_(){h_=Eu=Fv=null}function v_(e){var t=Lv.current;ct(Lv),e._currentValue=t}function Ty(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Gu(e,t){Fv=e,h_=Eu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(jr=!0),e.firstContext=null)}function yn(e){var t=e._currentValue;if(h_!==e)if(e={context:e,memoizedValue:t,next:null},Eu===null){if(Fv===null)throw Error(G(308));Eu=e,Fv.dependencies={lanes:0,firstContext:e}}else Eu=Eu.next=e;return t}var al=null;function p_(e){al===null?al=[e]:al.push(e)}function E3(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,p_(t)):(r.next=a.next,a.next=r),t.interleaved=r,si(e,n)}function si(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var lo=!1;function g_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function M3(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Za(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Oo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Le&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,si(e,r)}return a=n.interleaved,a===null?(t.next=t,p_(n)):(t.next=a.next,a.next=t),n.interleaved=t,si(e,r)}function Zm(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,r_(e,r)}}function cP(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?a=i=s:i=i.next=s,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Nv(e,t,r,n){var a=e.updateQueue;lo=!1;var i=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var u=l,c=u.next;u.next=null,s===null?i=c:s.next=c,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(i!==null){var f=a.baseState;s=0,d=c=u=null,l=i;do{var h=l.lane,v=l.eventTime;if((n&h)===h){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,p=l;switch(h=t,v=r,p.tag){case 1:if(b=p.payload,typeof b=="function"){f=b.call(v,f,h);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=p.payload,h=typeof b=="function"?b.call(v,f,h):b,h==null)break e;f=pt({},f,h);break e;case 2:lo=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=a.effects,h===null?a.effects=[l]:h.push(l))}else v={eventTime:v,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=v,u=f):d=d.next=v,s|=h;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;h=l,l=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);if(d===null&&(u=f),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do s|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);_l|=s,e.lanes=s,e.memoizedState=f}}function dP(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Og.transition;Og.transition={};try{e(!1),t()}finally{et=r,Og.transition=n}}function G3(){return bn().memoizedState}function UL(e,t,r){var n=To(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},q3(e))Q3(t,r);else if(r=E3(e,t,r,n),r!==null){var a=vr();Bn(r,e,n,a),K3(r,t,n)}}function YL(e,t,r){var n=To(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(q3(e))Q3(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,r);if(a.hasEagerState=!0,a.eagerState=l,Wn(l,s)){var u=t.interleaved;u===null?(a.next=a,p_(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=E3(e,t,a,n),r!==null&&(a=vr(),Bn(r,e,n,a),K3(r,t,n))}}function q3(e){var t=e.alternate;return e===vt||t!==null&&t===vt}function Q3(e,t){bf=Bv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function K3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,r_(e,r)}}var Wv={readContext:yn,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useInsertionEffect:er,useLayoutEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useMutableSource:er,useSyncExternalStore:er,useId:er,unstable_isNewReconciler:!1},GL={readContext:yn,useCallback:function(e,t){return ra().memoizedState=[e,t===void 0?null:t],e},useContext:yn,useEffect:hP,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ev(4194308,4,W3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ev(4194308,4,e,t)},useInsertionEffect:function(e,t){return ev(4,2,e,t)},useMemo:function(e,t){var r=ra();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ra();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=UL.bind(null,vt,e),[n.memoizedState,e]},useRef:function(e){var t=ra();return e={current:e},t.memoizedState=e},useState:fP,useDebugValue:$_,useDeferredValue:function(e){return ra().memoizedState=e},useTransition:function(){var e=fP(!1),t=e[0];return e=HL.bind(null,e[1]),ra().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=vt,a=ra();if(dt){if(r===void 0)throw Error(G(407));r=r()}else{if(r=t(),Ft===null)throw Error(G(349));bl&30||k3(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,hP(R3.bind(null,n,i,e),[e]),n.flags|=2048,Zf(9,A3.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ra(),t=Ft.identifierPrefix;if(dt){var r=qa,n=Ga;r=(n&~(1<<32-zn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Kf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[oa]=t,e[Gf]=n,oM(e,t,!1,!1),t.stateNode=e;e:{switch(s=cy(r,n),r){case"dialog":lt("cancel",e),lt("close",e),a=n;break;case"iframe":case"object":case"embed":lt("load",e),a=n;break;case"video":case"audio":for(a=0;acc&&(t.flags|=128,n=!0,Dd(i,!1),t.lanes=4194304)}else{if(!n)if(e=zv(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Dd(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!dt)return tr(t),null}else 2*xt()-i.renderingStartTime>cc&&r!==1073741824&&(t.flags|=128,n=!0,Dd(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.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,r=ht.current,ot(ht,n?r&1|2:r&1),t):(tr(t),null);case 22:case 23:return j_(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Vr&1073741824&&(tr(t),t.subtreeFlags&6&&(t.flags|=8192)):tr(t),null;case 24:return null;case 25:return null}throw Error(G(156,t.tag))}function tF(e,t){switch(d_(t),t.tag){case 1:return Ir(t.type)&&Iv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lc(),ct(Dr),ct(lr),__(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return b_(t),null;case 13:if(ct(ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(G(340));oc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ct(ht),null;case 4:return lc(),null;case 10:return v_(t.type._context),null;case 22:case 23:return j_(),null;case 24:return null;default:return null}}var mm=!1,ar=!1,rF=typeof WeakSet=="function"?WeakSet:Set,te=null;function Mu(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){yt(e,t,n)}else r.current=null}function Ly(e,t,r){try{r()}catch(n){yt(e,t,n)}}var PP=!1;function nF(e,t){if(_y=Ev,e=h3(),u_(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var v;f!==r||a!==0&&f.nodeType!==3||(l=s+a),f!==i||n!==0&&f.nodeType!==3||(u=s+n),f.nodeType===3&&(s+=f.nodeValue.length),(v=f.firstChild)!==null;)h=f,f=v;for(;;){if(f===e)break t;if(h===r&&++c===a&&(l=s),h===i&&++d===n&&(u=s),(v=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=v}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(wy={focusedElem:e,selectionRange:r},Ev=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var p=b.memoizedProps,$=b.memoizedState,y=t.stateNode,_=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:An(t.type,p),$);y.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(G(163))}}catch(T){yt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return b=PP,PP=!1,b}function _f(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Ly(t,r,i)}a=a.next}while(a!==n)}}function C0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Fy(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function uM(e){var t=e.alternate;t!==null&&(e.alternate=null,uM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oa],delete t[Gf],delete t[Py],delete t[NL],delete t[zL])),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 cM(e){return e.tag===5||e.tag===3||e.tag===4}function $P(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cM(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 Ny(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Dv));else if(n!==4&&(e=e.child,e!==null))for(Ny(e,t,r),e=e.sibling;e!==null;)Ny(e,t,r),e=e.sibling}function zy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(zy(e,t,r),e=e.sibling;e!==null;)zy(e,t,r),e=e.sibling}var Yt=null,Rn=!1;function qi(e,t,r){for(r=r.child;r!==null;)dM(e,t,r),r=r.sibling}function dM(e,t,r){if(ua&&typeof ua.onCommitFiberUnmount=="function")try{ua.onCommitFiberUnmount(b0,r)}catch{}switch(r.tag){case 5:ar||Mu(r,t);case 6:var n=Yt,a=Rn;Yt=null,qi(e,t,r),Yt=n,Rn=a,Yt!==null&&(Rn?(e=Yt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Yt.removeChild(r.stateNode));break;case 18:Yt!==null&&(Rn?(e=Yt,r=r.stateNode,e.nodeType===8?Sg(e.parentNode,r):e.nodeType===1&&Sg(e,r),Wf(e)):Sg(Yt,r.stateNode));break;case 4:n=Yt,a=Rn,Yt=r.stateNode.containerInfo,Rn=!0,qi(e,t,r),Yt=n,Rn=a;break;case 0:case 11:case 14:case 15:if(!ar&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Ly(r,t,s),a=a.next}while(a!==n)}qi(e,t,r);break;case 1:if(!ar&&(Mu(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){yt(r,t,l)}qi(e,t,r);break;case 21:qi(e,t,r);break;case 22:r.mode&1?(ar=(n=ar)||r.memoizedState!==null,qi(e,t,r),ar=n):qi(e,t,r);break;default:qi(e,t,r)}}function OP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new rF),t.forEach(function(n){var a=fF.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Dn(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=s),n&=~i}if(n=a,n=xt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*iF(n/1960))-n,10e?16:e,go===null)var n=!1;else{if(e=go,go=null,Uv=0,Le&6)throw Error(G(331));var a=Le;for(Le|=4,te=e.current;te!==null;){var i=te,s=i.child;if(te.flags&16){var l=i.deletions;if(l!==null){for(var u=0;uxt()-E_?ul(e,0):T_|=r),kr(e,t)}function bM(e,t){t===0&&(e.mode&1?(t=im,im<<=1,!(im&130023424)&&(im=4194304)):t=1);var r=vr();e=si(e,t),e!==null&&(wh(e,t,r),kr(e,r))}function dF(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),bM(e,r)}function fF(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(G(314))}n!==null&&n.delete(t),bM(e,r)}var _M;_M=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dr.current)jr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return jr=!1,JL(e,t,r);jr=!!(e.flags&131072)}else jr=!1,dt&&t.flags&1048576&&P3(t,Rv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;tv(e,t),e=t.pendingProps;var a=ic(t,lr.current);Gu(t,r),a=x_(null,t,n,e,a,r);var i=S_();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ir(n)?(i=!0,kv(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,g_(t),a.updater=O0,t.stateNode=a,a._reactInternals=t,My(t,n,e,r),t=Iy(null,t,n,!0,i,r)):(t.tag=0,dt&&i&&c_(t),fr(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(tv(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=mF(n),e=An(n,e),a){case 0:t=Dy(null,t,n,e,r);break e;case 1:t=wP(null,t,n,e,r);break e;case 11:t=bP(null,t,n,e,r);break e;case 14:t=_P(null,t,n,An(n.type,e),r);break e}throw Error(G(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:An(n,a),Dy(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:An(n,a),wP(e,t,n,a,r);case 3:e:{if(nM(t),e===null)throw Error(G(387));n=t.pendingProps,i=t.memoizedState,a=i.element,M3(e,t),Nv(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=uc(Error(G(423)),t),t=xP(e,t,n,r,a);break e}else if(n!==a){a=uc(Error(G(424)),t),t=xP(e,t,n,r,a);break e}else for(Hr=$o(t.stateNode.containerInfo.firstChild),Ur=t,dt=!0,Fn=null,r=T3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(oc(),n===a){t=li(e,t,r);break e}fr(e,t,n,r)}t=t.child}return t;case 5:return j3(t),e===null&&Cy(t),n=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,s=a.children,xy(n,a)?s=null:i!==null&&xy(n,i)&&(t.flags|=32),rM(e,t),fr(e,t,s,r),t.child;case 6:return e===null&&Cy(t),null;case 13:return aM(e,t,r);case 4:return y_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=sc(t,null,n,r):fr(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:An(n,a),bP(e,t,n,a,r);case 7:return fr(e,t,t.pendingProps,r),t.child;case 8:return fr(e,t,t.pendingProps.children,r),t.child;case 12:return fr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,ot(Lv,n._currentValue),n._currentValue=s,i!==null)if(Wn(i.value,s)){if(i.children===a.children&&!Dr.current){t=li(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var u=l.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=Za(-1,r&-r),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),Ty(i.return,r,t),l.lanes|=r;break}u=u.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(G(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Ty(s,r,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}fr(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Gu(t,r),a=yn(a),n=n(a),t.flags|=1,fr(e,t,n,r),t.child;case 14:return n=t.type,a=An(n,t.pendingProps),a=An(n.type,a),_P(e,t,n,a,r);case 15:return eM(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:An(n,a),tv(e,t),t.tag=1,Ir(n)?(e=!0,kv(t)):e=!1,Gu(t,r),X3(t,n,a),My(t,n,a,r),Iy(null,t,n,!0,e,r);case 19:return iM(e,t,r);case 22:return tM(e,t,r)}throw Error(G(156,t.tag))};function wM(e,t){return qE(e,t)}function hF(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vn(e,t,r,n){return new hF(e,t,r,n)}function I_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mF(e){if(typeof e=="function")return I_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zb)return 11;if(e===Jb)return 14}return 2}function Eo(e,t){var r=e.alternate;return r===null?(r=vn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function av(e,t,r,n,a,i){var s=2;if(n=e,typeof e=="function")I_(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wu:return cl(r.children,a,i,t);case Xb:s=8,a|=8;break;case ey:return e=vn(12,r,t,a|2),e.elementType=ey,e.lanes=i,e;case ty:return e=vn(13,r,t,a),e.elementType=ty,e.lanes=i,e;case ry:return e=vn(19,r,t,a),e.elementType=ry,e.lanes=i,e;case jE:return E0(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case EE:s=10;break e;case ME:s=9;break e;case Zb:s=11;break e;case Jb:s=14;break e;case so:s=16,n=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return t=vn(s,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function cl(e,t,r,n){return e=vn(7,e,n,t),e.lanes=r,e}function E0(e,t,r,n){return e=vn(22,e,n,t),e.elementType=jE,e.lanes=r,e.stateNode={isHidden:!1},e}function jg(e,t,r){return e=vn(6,e,null,t),e.lanes=r,e}function Dg(e,t,r){return t=vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vF(e,t,r,n,a){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=fg(0),this.expirationTimes=fg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fg(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function k_(e,t,r,n,a,i,s,l,u){return e=new vF(e,t,r,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=vn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},g_(i),e}function pF(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($M)}catch(e){console.error(e)}}$M(),$E.exports=Jr;var F_=$E.exports,kP=F_;Z1.createRoot=kP.createRoot,Z1.hydrateRoot=kP.hydrateRoot;var wF=!1;function xF(e){if(e.sheet)return e.sheet;for(var t=0;t0?qt(Sc,--Rr):0,dc--,$t===10&&(dc=1,A0--),$t}function Yr(){return $t=Rr2||th($t)>3?"":" "}function AF(e,t){for(;--t&&Yr()&&!($t<48||$t>102||$t>57&&$t<65||$t>70&&$t<97););return $h(e,iv()+(t<6&&da()==32&&Yr()==32))}function Yy(e){for(;Yr();)switch($t){case e:return Rr;case 34:case 39:e!==34&&e!==39&&Yy($t);break;case 40:e===41&&Yy(e);break;case 92:Yr();break}return Rr}function RF(e,t){for(;Yr()&&e+$t!==57;)if(e+$t===84&&da()===47)break;return"/*"+$h(t,Rr-1)+"*"+k0(e===47?e:Yr())}function LF(e){for(;!th(da());)Yr();return $h(e,Rr)}function FF(e){return jM(sv("",null,null,null,[""],e=MM(e),0,[0],e))}function sv(e,t,r,n,a,i,s,l,u){for(var c=0,d=0,f=s,h=0,v=0,b=0,p=1,$=1,y=1,_=0,S="",T=a,I=i,A=n,N=S;$;)switch(b=_,_=Yr()){case 40:if(b!=108&&qt(N,f-1)==58){Uy(N+=Ue(ov(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:N+=ov(_);break;case 9:case 10:case 13:case 32:N+=kF(b);break;case 92:N+=AF(iv()-1,7);continue;case 47:switch(da()){case 42:case 47:gm(NF(RF(Yr(),iv()),t,r),u);break;default:N+="/"}break;case 123*p:l[c++]=aa(N)*y;case 125*p:case 59:case 0:switch(_){case 0:case 125:$=0;case 59+d:y==-1&&(N=Ue(N,/\f/g,"")),v>0&&aa(N)-f&&gm(v>32?RP(N+";",n,r,f-1):RP(Ue(N," ","")+";",n,r,f-2),u);break;case 59:N+=";";default:if(gm(A=AP(N,t,r,c,d,a,l,S,T=[],I=[],f),i),_===123)if(d===0)sv(N,t,A,A,T,i,f,l,I);else switch(h===99&&qt(N,3)===110?100:h){case 100:case 108:case 109:case 115:sv(e,A,A,n&&gm(AP(e,A,A,0,0,a,l,S,a,T=[],f),I),a,I,f,l,n?T:I);break;default:sv(N,A,A,A,[""],I,0,l,I)}}c=d=v=0,p=y=1,S=N="",f=s;break;case 58:f=1+aa(N),v=b;default:if(p<1){if(_==123)--p;else if(_==125&&p++==0&&IF()==125)continue}switch(N+=k0(_),_*p){case 38:y=d>0?1:(N+="\f",-1);break;case 44:l[c++]=(aa(N)-1)*y,y=1;break;case 64:da()===45&&(N+=ov(Yr())),h=da(),d=f=aa(S=N+=LF(iv())),_++;break;case 45:b===45&&aa(N)==2&&(p=0)}}return i}function AP(e,t,r,n,a,i,s,l,u,c,d){for(var f=a-1,h=a===0?i:[""],v=B_(h),b=0,p=0,$=0;b0?h[y]+" "+_:Ue(_,/&\f/g,h[y])))&&(u[$++]=S);return R0(e,t,r,a===0?N_:l,u,c,d)}function NF(e,t,r){return R0(e,t,r,OM,k0(DF()),eh(e,2,-2),0)}function RP(e,t,r,n){return R0(e,t,r,z_,eh(e,0,n),eh(e,n+1,-1),n)}function Qu(e,t){for(var r="",n=B_(e),a=0;a6)switch(qt(e,t+1)){case 109:if(qt(e,t+4)!==45)break;case 102:return Ue(e,/(.+:)(.+)-([^]+)/,"$1"+He+"$2-$3$1"+qv+(qt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Uy(e,"stretch")?IM(Ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qt(e,t+1)!==115)break;case 6444:switch(qt(e,aa(e)-3-(~Uy(e,"!important")&&10))){case 107:return Ue(e,":",":"+He)+e;case 101:return Ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+He+(qt(e,14)===45?"inline-":"")+"box$3$1"+He+"$2$3$1"+rr+"$2box$3")+e}break;case 5936:switch(qt(e,t+11)){case 114:return He+e+rr+Ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return He+e+rr+Ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return He+e+rr+Ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return He+e+rr+e+e}return e}var qF=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case z_:t.return=IM(t.value,t.length);break;case CM:return Qu([kd(t,{value:Ue(t.value,"@","@"+He)})],a);case N_:if(t.length)return jF(t.props,function(i){switch(MF(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qu([kd(t,{props:[Ue(i,/:(read-\w+)/,":"+qv+"$1")]})],a);case"::placeholder":return Qu([kd(t,{props:[Ue(i,/:(plac\w+)/,":"+He+"input-$1")]}),kd(t,{props:[Ue(i,/:(plac\w+)/,":"+qv+"$1")]}),kd(t,{props:[Ue(i,/:(plac\w+)/,rr+"input-$1")]})],a)}return""})}},QF=[qF],KF=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var $=p.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var a=t.stylisPlugins||QF,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var $=p.getAttribute("data-emotion").split(" "),y=1;y<$.length;y++)i[$[y]]=!0;l.push(p)});var u,c=[YF,GF];{var d,f=[zF,WF(function(p){d.insert(p)})],h=BF(c.concat(a,f)),v=function($){return Qu(FF($),h)};u=function($,y,_,S){d=_,v($?$+"{"+y.styles+"}":y.styles),S&&(b.inserted[y.name]=!0)}}var b={key:r,sheet:new PF({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return b.sheet.hydrate(l),b};function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var lN={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uN=!1,cN=/[A-Z]|^ms/g,dN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zM=function(t){return t.charCodeAt(1)===45},NP=function(t){return t!=null&&typeof t!="boolean"},Ig=DM(function(e){return zM(e)?e:e.replace(cN,"-$&").toLowerCase()}),zP=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(dN,function(n,a,i){return ia={name:a,styles:i,next:ia},a})}return lN[t]!==1&&!zM(t)&&typeof r=="number"&&r!==0?r+"px":r},fN="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function rh(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return ia={name:a.name,styles:a.styles,next:ia},a.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)ia={name:s.name,styles:s.styles,next:ia},s=s.next;var l=i.styles+";";return l}return hN(e,t,r)}case"function":{if(e!==void 0){var u=ia,c=r(e);return ia=u,rh(e,t,c)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function hN(e,t,r){var n="";if(Array.isArray(r))for(var a=0;aw.jsx(G0,{styles:YM}),wN=({scope:e=""})=>w.jsx(G0,{styles:UM` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + margin: 0; + font-feature-settings: "kern"; + } + + ${e} :where(*, *::before, *::after) { + border-width: 0; + border-style: solid; + box-sizing: border-box; + word-wrap: break-word; + } + + main { + display: block; + } + + ${e} hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + ${e} :where(pre, code, kbd,samp) { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + ${e} a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + ${e} abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + ${e} :where(b, strong) { + font-weight: bold; + } + + ${e} small { + font-size: 80%; + } + + ${e} :where(sub,sup) { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + ${e} sub { + bottom: -0.25em; + } + + ${e} sup { + top: -0.5em; + } + + ${e} img { + border-style: none; + } + + ${e} :where(button, input, optgroup, select, textarea) { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + ${e} :where(button, input) { + overflow: visible; + } + + ${e} :where(button, select) { + text-transform: none; + } + + ${e} :where( + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner + ) { + border-style: none; + padding: 0; + } + + ${e} fieldset { + padding: 0.35em 0.75em 0.625em; + } + + ${e} legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + ${e} progress { + vertical-align: baseline; + } + + ${e} textarea { + overflow: auto; + } + + ${e} :where([type="checkbox"], [type="radio"]) { + box-sizing: border-box; + padding: 0; + } + + ${e} input[type="number"]::-webkit-inner-spin-button, + ${e} input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + ${e} input[type="number"] { + -moz-appearance: textfield; + } + + ${e} input[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + ${e} input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ${e} ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + ${e} details { + display: block; + } + + ${e} summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + ${e} :where( + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre + ) { + margin: 0; + } + + ${e} button { + background: transparent; + padding: 0; + } + + ${e} fieldset { + margin: 0; + padding: 0; + } + + ${e} :where(ol, ul) { + margin: 0; + padding: 0; + } + + ${e} textarea { + resize: vertical; + } + + ${e} :where(button, [role="button"]) { + cursor: pointer; + } + + ${e} button::-moz-focus-inner { + border: 0 !important; + } + + ${e} table { + border-collapse: collapse; + } + + ${e} :where(h1, h2, h3, h4, h5, h6) { + font-size: inherit; + font-weight: inherit; + } + + ${e} :where(button, input, optgroup, select, textarea) { + padding: 0; + line-height: inherit; + color: inherit; + } + + ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { + display: block; + } + + ${e} :where(img, video) { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] + :focus:not([data-focus-visible-added]):not( + [data-focus-visible-disabled] + ) { + outline: none; + box-shadow: none; + } + + ${e} select::-ms-expand { + display: none; + } + + ${YM} + `});function xN(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Lr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:a="Provider",errorMessage:i,defaultValue:s}=e,l=P.createContext(s);l.displayName=t;function u(){var c;const d=P.useContext(l);if(!d&&r){const f=new Error(i??xN(n,a));throw f.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,f,u),f}return d}return[l.Provider,u,l]}var[SN,PN]=Lr({strict:!1,name:"PortalManagerContext"});function GM(e){const{children:t,zIndex:r}=e;return w.jsx(SN,{value:{zIndex:r},children:t})}GM.displayName="PortalManager";var fc=globalThis!=null&&globalThis.document?P.useLayoutEffect:P.useEffect,[qM,$N]=Lr({strict:!1,name:"PortalContext"}),Y_="chakra-portal",ON=".chakra-portal",CN=e=>w.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),TN=e=>{const{appendToParentPortal:t,children:r}=e,[n,a]=P.useState(null),i=P.useRef(null),[,s]=P.useState({});P.useEffect(()=>s({}),[]);const l=$N(),u=PN();fc(()=>{if(!n)return;const d=n.ownerDocument,f=t?l??d.body:d.body;if(!f)return;i.current=d.createElement("div"),i.current.className=Y_,f.appendChild(i.current),s({});const h=i.current;return()=>{f.contains(h)&&f.removeChild(h)}},[n]);const c=u!=null&&u.zIndex?w.jsx(CN,{zIndex:u==null?void 0:u.zIndex,children:r}):r;return i.current?F_.createPortal(w.jsx(qM,{value:i.current,children:c}),i.current):w.jsx("span",{ref:d=>{d&&a(d)}})},EN=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,a=r.current,i=a??(typeof window<"u"?document.body:void 0),s=P.useMemo(()=>{const u=a==null?void 0:a.ownerDocument.createElement("div");return u&&(u.className=Y_),u},[a]),[,l]=P.useState({});return fc(()=>l({}),[]),fc(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?F_.createPortal(w.jsx(qM,{value:n?s:null,children:t}),s):null};function Oh(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?w.jsx(EN,{containerRef:r,...n}):w.jsx(TN,{...n})}Oh.className=Y_;Oh.selector=ON;Oh.displayName="Portal";function Ch(){const e=P.useContext(nh);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var G_=P.createContext({});G_.displayName="ColorModeContext";function q0(){const e=P.useContext(G_);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function or(e,t){const{colorMode:r}=q0();return r==="dark"?t:e}var ym={light:"chakra-ui-light",dark:"chakra-ui-dark"};function MN(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const a=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,a==null||a()},setClassName(n){document.body.classList.add(n?ym.dark:ym.light),document.body.classList.remove(n?ym.light:ym.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var a;return((a=r.query().matches)!=null?a:n==="dark")?"dark":"light"},addListener(n){const a=r.query(),i=s=>{n(s.matches?"dark":"light")};return typeof a.addListener=="function"?a.addListener(i):a.addEventListener("change",i),()=>{typeof a.removeListener=="function"?a.removeListener(i):a.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var jN="chakra-ui-color-mode";function DN(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var IN=DN(jN),VP=()=>{};function HP(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function QM(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:a,disableTransitionOnChange:i}={},colorModeManager:s=IN}=e,l=a==="dark"?"dark":"light",[u,c]=P.useState(()=>HP(s,l)),[d,f]=P.useState(()=>HP(s)),{getSystemTheme:h,setClassName:v,setDataset:b,addListener:p}=P.useMemo(()=>MN({preventTransition:i}),[i]),$=a==="system"&&!u?d:u,y=P.useCallback(T=>{const I=T==="system"?h():T;c(I),v(I==="dark"),b(I),s.set(I)},[s,h,v,b]);fc(()=>{a==="system"&&f(h())},[]),P.useEffect(()=>{const T=s.get();if(T){y(T);return}if(a==="system"){y("system");return}y(l)},[s,l,a,y]);const _=P.useCallback(()=>{y($==="dark"?"light":"dark")},[$,y]);P.useEffect(()=>{if(n)return p(y)},[n,p,y]);const S=P.useMemo(()=>({colorMode:t??$,toggleColorMode:t?VP:_,setColorMode:t?VP:y,forced:t!==void 0}),[$,_,y,t]);return w.jsx(G_.Provider,{value:S,children:r})}QM.displayName="ColorModeProvider";function kN(){const e=q0(),t=Ch();return{...e,theme:t}}function AN(e,t,r){var n,a;if(t==null)return t;const i=s=>{var l,u;return(u=(l=e.__cssMap)==null?void 0:l[s])==null?void 0:u.value};return(a=(n=i(t))!=null?n:i(r))!=null?a:r}function RN(e,t,r){const n=Array.isArray(t)?t:[t],a=Array.isArray(r)?r:[r];return i=>{const s=a.filter(Boolean),l=n.map((u,c)=>{var d;const f=`${e}.${u}`;return AN(i,f,(d=s[c])!=null?d:u)});return Array.isArray(t)?l:l[0]}}var Ae=(...e)=>e.filter(Boolean).join(" ");function Gr(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function yo(e,...t){return LN(e)?e(...t):e}var LN=e=>typeof e=="function",dn=e=>e?"":void 0,kg=e=>e?!0:void 0;function bo(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var Qv={exports:{}};Qv.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=800,i=16,s=9007199254740991,l="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",h="[object Error]",v="[object Function]",b="[object GeneratorFunction]",p="[object Map]",$="[object Number]",y="[object Null]",_="[object Object]",S="[object Proxy]",T="[object RegExp]",I="[object Set]",A="[object String]",N="[object Undefined]",z="[object WeakMap]",q="[object ArrayBuffer]",Q="[object DataView]",ve="[object Float32Array]",Ee="[object Float64Array]",nt="[object Int8Array]",rt="[object Int16Array]",Te="[object Int32Array]",ze="[object Uint8Array]",Pe="[object Uint8ClampedArray]",H="[object Uint16Array]",ae="[object Uint32Array]",ie=/[\\^$.*+?()[\]{}|]/g,ge=/^\[object .+?Constructor\]$/,$e=/^(?:0|[1-9]\d*)$/,me={};me[ve]=me[Ee]=me[nt]=me[rt]=me[Te]=me[ze]=me[Pe]=me[H]=me[ae]=!0,me[l]=me[u]=me[q]=me[d]=me[Q]=me[f]=me[h]=me[v]=me[p]=me[$]=me[_]=me[T]=me[I]=me[A]=me[z]=!1;var re=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,oe=typeof self=="object"&&self&&self.Object===Object&&self,se=re||oe||Function("return this")(),ft=t&&!t.nodeType&&t,gt=ft&&!0&&e&&!e.nodeType&&e,zt=gt&>.exports===ft,wr=zt&&re.process,Hn=function(){try{var O=gt&>.require&>.require("util").types;return O||wr&&wr.binding&&wr.binding("util")}catch{}}(),_n=Hn&&Hn.isTypedArray;function _a(O,D,F){switch(F.length){case 0:return O.call(D);case 1:return O.call(D,F[0]);case 2:return O.call(D,F[0],F[1]);case 3:return O.call(D,F[0],F[1],F[2])}return O.apply(D,F)}function wn(O,D){for(var F=-1,Z=Array(O);++F-1}function ns(O,D){var F=this.__data__,Z=$n(F,O);return Z<0?(++this.size,F.push([O,D])):F[Z][1]=D,this}dr.prototype.clear=ts,dr.prototype.delete=rs,dr.prototype.get=Ci,dr.prototype.has=Ti,dr.prototype.set=ns;function rn(O){var D=-1,F=O==null?0:O.length;for(this.clear();++D1?F[pe-1]:void 0,Be=pe>2?F[2]:void 0;for(Re=O.length>3&&typeof Re=="function"?(pe--,Re):void 0,Be&&ws(F[0],F[1],Be)&&(Re=pe<3?void 0:Re,pe=1),D=Object(D);++Z-1&&O%1==0&&O0){if(++D>=a)return arguments[0]}else D=0;return O.apply(void 0,arguments)}}function Es(O){if(O!=null){try{return xn.call(O)}catch{}try{return O+""}catch{}}return""}function Kn(O,D){return O===D||O!==O&&D!==D}var ka=Ii(function(){return arguments}())?Ii:function(O){return Cn(O)&&cr.call(O,"callee")&&!Si.call(O,"callee")},Xn=Array.isArray;function Zn(O){return O!=null&&Fi(O.length)&&!Pr(O)}function Ms(O){return Cn(O)&&Zn(O)}var On=$i||Is;function Pr(O){if(!$r(O))return!1;var D=qn(O);return D==v||D==b||D==c||D==S}function Fi(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=s}function $r(O){var D=typeof O;return O!=null&&(D=="object"||D=="function")}function Cn(O){return O!=null&&typeof O=="object"}function Aa(O){if(!Cn(O)||qn(O)!=_)return!1;var D=wi(O);if(D===null)return!0;var F=cr.call(D,"constructor")&&D.constructor;return typeof F=="function"&&F instanceof F&&xn.call(F)==bi}var Jn=_n?wa(_n):hs;function js(O){return ki(O,Ra(O))}function Ra(O){return Zn(O)?Di(O):Ea(O)}var on=Ai(function(O,D,F,Z){zr(O,D,F,Z)});function Ds(O){return function(){return O}}function Ni(O){return O}function Is(){return!1}e.exports=on})(Qv,Qv.exports);var FN=Qv.exports;const la=Vb(FN);var NN=e=>/!(important)?$/.test(e),UP=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,zN=(e,t)=>r=>{const n=String(t),a=NN(n),i=UP(n),s=e?`${e}.${i}`:i;let l=Gr(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return l=UP(l),a?`${l} !important`:l};function q_(e){const{scale:t,transform:r,compose:n}=e;return(i,s)=>{var l;const u=zN(t,i)(s);let c=(l=r==null?void 0:r(u,s))!=null?l:u;return n&&(c=n(c,s)),c}}var bm=(...e)=>t=>e.reduce((r,n)=>n(r),t);function sn(e,t){return r=>{const n={property:r,scale:e};return n.transform=q_({scale:e,transform:t}),n}}var BN=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function WN(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:BN(t),transform:r?q_({scale:r,compose:n}):n}}var KM=["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 VN(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...KM].join(" ")}function HN(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...KM].join(" ")}var UN={"--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(" ")},YN={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 GN(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 qN={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Gy={"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"},QN=new Set(Object.values(Gy)),qy=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),KN=e=>e.trim();function XN(e,t){if(e==null||qy.has(e))return e;if(!(Qy(e)||qy.has(e)))return`url('${e}')`;const a=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=a==null?void 0:a[1],s=a==null?void 0:a[2];if(!i||!s)return e;const l=i.includes("-gradient")?i:`${i}-gradient`,[u,...c]=s.split(",").map(KN).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const d=u in Gy?Gy[u]:u;c.unshift(d);const f=c.map(h=>{if(QN.has(h))return h;const v=h.indexOf(" "),[b,p]=v!==-1?[h.substr(0,v),h.substr(v+1)]:[h],$=Qy(p)?p:p&&p.split(" "),y=`colors.${b}`,_=y in t.__cssMap?t.__cssMap[y].varRef:b;return $?[_,...Array.isArray($)?$:[$]].join(" "):_});return`${l}(${f.join(", ")})`}var Qy=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),ZN=(e,t)=>XN(e,t??{});function JN(e){return/^var\(--.+\)$/.test(e)}var e8=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},ta=e=>t=>`${e}(${t})`,De={filter(e){return e!=="auto"?e:UN},backdropFilter(e){return e!=="auto"?e:YN},ring(e){return GN(De.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?VN():e==="auto-gpu"?HN():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=e8(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(JN(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:ZN,blur:ta("blur"),opacity:ta("opacity"),brightness:ta("brightness"),contrast:ta("contrast"),dropShadow:ta("drop-shadow"),grayscale:ta("grayscale"),hueRotate:e=>ta("hue-rotate")(De.degree(e)),invert:ta("invert"),saturate:ta("saturate"),sepia:ta("sepia"),bgImage(e){return e==null||Qy(e)||qy.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=qN[e])!=null?t:{},a={flexDirection:e};return r&&(a[r]=1),n&&(a[n]=1),a}},k={borderWidths:sn("borderWidths"),borderStyles:sn("borderStyles"),colors:sn("colors"),borders:sn("borders"),gradients:sn("gradients",De.gradient),radii:sn("radii",De.px),space:sn("space",bm(De.vh,De.px)),spaceT:sn("space",bm(De.vh,De.px)),degreeT(e){return{property:e,transform:De.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:q_({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:sn("sizes",bm(De.vh,De.px)),sizesT:sn("sizes",bm(De.vh,De.fraction)),shadows:sn("shadows"),logical:WN,blur:sn("blur",De.blur)},lv={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:De.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:De.bgClip}};Object.assign(lv,{bgImage:lv.backgroundImage,bgImg:lv.backgroundImage});var Ve={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ve,{rounded:Ve.borderRadius,roundedTop:Ve.borderTopRadius,roundedTopLeft:Ve.borderTopLeftRadius,roundedTopRight:Ve.borderTopRightRadius,roundedTopStart:Ve.borderStartStartRadius,roundedTopEnd:Ve.borderStartEndRadius,roundedBottom:Ve.borderBottomRadius,roundedBottomLeft:Ve.borderBottomLeftRadius,roundedBottomRight:Ve.borderBottomRightRadius,roundedBottomStart:Ve.borderEndStartRadius,roundedBottomEnd:Ve.borderEndEndRadius,roundedLeft:Ve.borderLeftRadius,roundedRight:Ve.borderRightRadius,roundedStart:Ve.borderInlineStartRadius,roundedEnd:Ve.borderInlineEndRadius,borderStart:Ve.borderInlineStart,borderEnd:Ve.borderInlineEnd,borderTopStartRadius:Ve.borderStartStartRadius,borderTopEndRadius:Ve.borderStartEndRadius,borderBottomStartRadius:Ve.borderEndStartRadius,borderBottomEndRadius:Ve.borderEndEndRadius,borderStartRadius:Ve.borderInlineStartRadius,borderEndRadius:Ve.borderInlineEndRadius,borderStartWidth:Ve.borderInlineStartWidth,borderEndWidth:Ve.borderInlineEndWidth,borderStartColor:Ve.borderInlineStartColor,borderEndColor:Ve.borderInlineEndColor,borderStartStyle:Ve.borderInlineStartStyle,borderEndStyle:Ve.borderInlineEndStyle});var t8={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke")},Ky={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(Ky,{shadow:Ky.boxShadow});var r8={filter:{transform:De.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",De.brightness),contrast:k.propT("--chakra-contrast",De.contrast),hueRotate:k.propT("--chakra-hue-rotate",De.hueRotate),invert:k.propT("--chakra-invert",De.invert),saturate:k.propT("--chakra-saturate",De.saturate),dropShadow:k.propT("--chakra-drop-shadow",De.dropShadow),backdropFilter:{transform:De.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",De.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",De.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",De.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",De.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",De.saturate)},Kv={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:De.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(Kv,{flexDir:Kv.flexDirection});var XM={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.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},n8={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:De.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},un={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,a;return{[`@media screen and (min-width: ${(a=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?a:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,a;return{[`@media screen and (max-width: ${(a=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?a:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",De.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(un,{w:un.width,h:un.height,minW:un.minWidth,maxW:un.maxWidth,minH:un.minHeight,maxH:un.maxHeight,overscroll:un.overscrollBehavior,overscrollX:un.overscrollBehaviorX,overscrollY:un.overscrollBehaviorY});var a8={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")};function i8(e,t,r,n){const a=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,a,i,s)=>{if(typeof n>"u")return e(n,a,i);t.has(n)||t.set(n,new Map);const l=t.get(n);if(l.has(a))return l.get(a);const u=e(n,a,i,s);return l.set(a,u),u}},s8=o8(i8),l8={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},u8={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Ag=(e,t,r)=>{const n={},a=s8(e,t,{});for(const i in a)i in r&&r[i]!=null||(n[i]=a[i]);return n},c8={srOnly:{transform(e){return e===!0?l8:e==="focusable"?u8:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Ag(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Ag(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Ag(t,e,r)}},Sf={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Sf,{insetStart:Sf.insetInlineStart,insetEnd:Sf.insetInlineEnd});var d8={ring:{transform:De.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},ut={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(ut,{m:ut.margin,mt:ut.marginTop,mr:ut.marginRight,me:ut.marginInlineEnd,marginEnd:ut.marginInlineEnd,mb:ut.marginBottom,ml:ut.marginLeft,ms:ut.marginInlineStart,marginStart:ut.marginInlineStart,mx:ut.marginX,my:ut.marginY,p:ut.padding,pt:ut.paddingTop,py:ut.paddingY,px:ut.paddingX,pb:ut.paddingBottom,pl:ut.paddingLeft,ps:ut.paddingInlineStart,paddingStart:ut.paddingInlineStart,pr:ut.paddingRight,pe:ut.paddingInlineEnd,paddingEnd:ut.paddingInlineEnd});var f8={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},h8={clipPath:!0,transform:k.propT("transform",De.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},m8={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},v8={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",De.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},p8={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function ZM(e){return Gr(e)&&e.reference?e.reference:String(e)}var Q0=(e,...t)=>t.map(ZM).join(` ${e} `).replace(/calc/g,""),YP=(...e)=>`calc(${Q0("+",...e)})`,GP=(...e)=>`calc(${Q0("-",...e)})`,Xy=(...e)=>`calc(${Q0("*",...e)})`,qP=(...e)=>`calc(${Q0("/",...e)})`,QP=e=>{const t=ZM(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Xy(t,-1)},el=Object.assign(e=>({add:(...t)=>el(YP(e,...t)),subtract:(...t)=>el(GP(e,...t)),multiply:(...t)=>el(Xy(e,...t)),divide:(...t)=>el(qP(e,...t)),negate:()=>el(QP(e)),toString:()=>e.toString()}),{add:YP,subtract:GP,multiply:Xy,divide:qP,negate:QP});function g8(e,t="-"){return e.replace(/\s+/g,t)}function y8(e){const t=g8(e.toString());return _8(b8(t))}function b8(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function _8(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function w8(e,t=""){return[t,e].filter(Boolean).join("-")}function x8(e,t){return`var(${e}${t?`, ${t}`:""})`}function S8(e,t=""){return y8(`--${w8(e,t)}`)}function ue(e,t,r){const n=S8(e,r);return{variable:n,reference:x8(n,t)}}function P8(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[a,i]=n;r[a]=ue(`${e}-${a}`,i);continue}r[n]=ue(`${e}-${n}`)}return r}function $8(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function O8(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function Zy(e){if(e==null)return e;const{unitless:t}=O8(e);return t||typeof e=="number"?`${e}px`:e}var JM=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Q_=e=>Object.fromEntries(Object.entries(e).sort(JM));function KP(e){const t=Q_(e);return Object.assign(Object.values(t),t)}function C8(e){const t=Object.keys(Q_(e));return new Set(t)}function XP(e){var t;if(!e)return e;e=(t=Zy(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function of(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Zy(e)})`),t&&r.push("and",`(max-width: ${Zy(t)})`),r.join(" ")}function T8(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=KP(e),n=Object.entries(e).sort(JM).map(([s,l],u,c)=>{var d;let[,f]=(d=c[u+1])!=null?d:[];return f=parseFloat(f)>0?XP(f):void 0,{_minW:XP(l),breakpoint:s,minW:l,maxW:f,maxWQuery:of(null,f),minWQuery:of(l),minMaxQuery:of(l,f)}}),a=C8(e),i=Array.from(a.values());return{keys:a,normalized:r,isResponsive(s){const l=Object.keys(s);return l.length>0&&l.every(u=>a.has(u))},asObject:Q_(e),asArray:KP(e),details:n,get(s){return n.find(l=>l.breakpoint===s)},media:[null,...r.map(s=>of(s)).slice(1)],toArrayValue(s){if(!Gr(s))throw new Error("toArrayValue: value must be an object");const l=i.map(u=>{var c;return(c=s[u])!=null?c:null});for(;$8(l)===null;)l.pop();return l},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((l,u,c)=>{const d=i[c];return d!=null&&u!=null&&(l[d]=u),l},{})}}}var Ut={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}`},Qi=e=>e5(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Wa=e=>e5(t=>e(t,"~ &"),"[data-peer]",".peer"),e5=(e,...t)=>t.map(e).join(", "),K0={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Qi(Ut.hover),_peerHover:Wa(Ut.hover),_groupFocus:Qi(Ut.focus),_peerFocus:Wa(Ut.focus),_groupFocusVisible:Qi(Ut.focusVisible),_peerFocusVisible:Wa(Ut.focusVisible),_groupActive:Qi(Ut.active),_peerActive:Wa(Ut.active),_groupDisabled:Qi(Ut.disabled),_peerDisabled:Wa(Ut.disabled),_groupInvalid:Qi(Ut.invalid),_peerInvalid:Wa(Ut.invalid),_groupChecked:Qi(Ut.checked),_peerChecked:Wa(Ut.checked),_groupFocusWithin:Qi(Ut.focusWithin),_peerFocusWithin:Wa(Ut.focusWithin),_peerPlaceholderShown:Wa(Ut.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},t5=Object.keys(K0);function ZP(e,t){return ue(String(e).replace(/\./g,"-"),void 0,t)}function E8(e,t){let r={};const n={};for(const[a,i]of Object.entries(e)){const{isSemantic:s,value:l}=i,{variable:u,reference:c}=ZP(a,t==null?void 0:t.cssVarPrefix);if(!s){if(a.startsWith("space")){const h=a.split("."),[v,...b]=h,p=`${v}.-${b.join(".")}`,$=el.negate(l),y=el.negate(c);n[p]={value:$,var:u,varRef:y}}r[u]=l,n[a]={value:l,var:u,varRef:c};continue}const d=h=>{const b=[String(a).split(".")[0],h].join(".");if(!e[b])return h;const{reference:$}=ZP(b,t==null?void 0:t.cssVarPrefix);return $},f=Gr(l)?l:{default:l};r=la(r,Object.entries(f).reduce((h,[v,b])=>{var p,$;if(!b)return h;const y=d(`${b}`);if(v==="default")return h[u]=y,h;const _=($=(p=K0)==null?void 0:p[v])!=null?$:v;return h[_]={[u]:y},h},{})),n[a]={value:c,var:u,varRef:c}}return{cssVars:r,cssMap:n}}function M8(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function j8(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function D8(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function JP(e,t,r={}){const{stop:n,getKey:a}=r;function i(s,l=[]){var u;if(D8(s)||Array.isArray(s)){const c={};for(const[d,f]of Object.entries(s)){const h=(u=a==null?void 0:a(d))!=null?u:d,v=[...l,h];if(n!=null&&n(s,v))return t(s,l);c[h]=i(f,v)}return c}return t(s,l)}return i(e)}var I8=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function k8(e){return j8(e,I8)}function A8(e){return e.semanticTokens}function R8(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...a}=e;return a}var L8=e=>t5.includes(e)||e==="default";function F8({tokens:e,semanticTokens:t}){const r={};return JP(e,(n,a)=>{n!=null&&(r[a.join(".")]={isSemantic:!1,value:n})}),JP(t,(n,a)=>{n!=null&&(r[a.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(L8)}),r}function N8(e){var t;const r=R8(e),n=k8(r),a=A8(r),i=F8({tokens:n,semanticTokens:a}),s=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:l,cssVars:u}=E8(i,{cssVarPrefix:s});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...u},__cssMap:l,__breakpoints:T8(r.breakpoints)}),r}var K_=la({},lv,Ve,t8,Kv,un,r8,d8,n8,XM,c8,Sf,Ky,ut,p8,v8,f8,h8,a8,m8),z8=Object.assign({},ut,un,Kv,XM,Sf),B8=Object.keys(z8),W8=[...Object.keys(K_),...t5],V8={...K_,...K0},H8=e=>e in V8,U8=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:a}=t.__breakpoints,i={};for(const s in e){let l=yo(e[s],t);if(l==null)continue;if(l=Gr(l)&&r(l)?n(l):l,!Array.isArray(l)){i[s]=l;continue}const u=l.slice(0,a.length).length;for(let c=0;ce.startsWith("--")&&typeof t=="string"&&!G8(t),Q8=(e,t)=>{var r,n;if(t==null)return t;const a=u=>{var c,d;return(d=(c=e.__cssMap)==null?void 0:c[u])==null?void 0:d.varRef},i=u=>{var c;return(c=a(u))!=null?c:u},[s,l]=Y8(t);return t=(n=(r=a(s))!=null?r:i(l))!=null?n:i(t),t};function K8(e){const{configs:t={},pseudos:r={},theme:n}=e,a=(i,s=!1)=>{var l,u,c;const d=yo(i,n),f=U8(d)(n);let h={};for(let v in f){const b=f[v];let p=yo(b,n);v in r&&(v=r[v]),q8(v,p)&&(p=Q8(n,p));let $=t[v];if($===!0&&($={property:v}),Gr(p)){h[v]=(l=h[v])!=null?l:{},h[v]=la({},h[v],a(p,!0));continue}let y=(c=(u=$==null?void 0:$.transform)==null?void 0:u.call($,p,n,d))!=null?c:p;y=$!=null&&$.processResult?a(y,!0):y;const _=yo($==null?void 0:$.property,n);if(!s&&($!=null&&$.static)){const S=yo($.static,n);h=la({},h,S)}if(_&&Array.isArray(_)){for(const S of _)h[S]=y;continue}if(_){_==="&"&&Gr(y)?h=la({},h,y):h[_]=y;continue}if(Gr(y)){h=la({},h,y);continue}h[v]=y}return h};return a}var r5=e=>t=>K8({theme:t,pseudos:K0,configs:K_})(e);function st(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function X8(e,t){if(Array.isArray(e))return e;if(Gr(e))return t(e);if(e!=null)return[e]}function Z8(e,t){for(let r=t+1;r{la(c,{[S]:h?_[S]:{[y]:_[S]}})});continue}if(!v){h?la(c,_):c[y]=_;continue}c[y]=_}}return c}}function e7(e){return t=>{var r;const{variant:n,size:a,theme:i}=t,s=J8(i);return la({},yo((r=e.baseStyle)!=null?r:{},t),s(e,"sizes",a,t),s(e,"variants",n,t))}}function br(e){return M8(e,["styleConfig","size","variant","colorScheme"])}var t7={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"},r7={"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)"},n7={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},a7={property:t7,easing:r7,duration:n7},i7=a7,o7={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},s7=o7,l7={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},u7=l7,c7={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},d7=c7,f7={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"}},h7=f7,m7={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},v7=m7,p7={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"},g7=p7,y7={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},b7=y7,_7={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"}},n5=_7,a5={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"},w7={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"},x7={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},S7={...a5,...w7,container:x7},i5=S7,P7={breakpoints:d7,zIndices:s7,radii:v7,blur:b7,colors:h7,...n5,sizes:i5,shadows:g7,space:a5,borders:u7,transition:i7},{defineMultiStyleConfig:$7,definePartsStyle:sf}=st(["stepper","step","title","description","indicator","separator","icon","number"]),Ua=ue("stepper-indicator-size"),Du=ue("stepper-icon-size"),Iu=ue("stepper-title-font-size"),lf=ue("stepper-description-font-size"),Ad=ue("stepper-accent-color"),O7=sf(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Ad.variable]:`colors.${e}.500`,_dark:{[Ad.variable]:`colors.${e}.200`}},title:{fontSize:Iu.reference,fontWeight:"medium"},description:{fontSize:lf.reference,color:"chakra-subtle-text"},number:{fontSize:Iu.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Du.reference,height:Du.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ua.reference,height:Ua.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ad.reference},"&[data-status=complete]":{bg:Ad.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ad.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ua.reference} - 8px)`,top:`calc(${Ua.reference} + 4px)`,insetStart:`calc(${Ua.reference} / 2 - 1px)`}}})),C7=$7({baseStyle:O7,sizes:{xs:sf({stepper:{[Ua.variable]:"sizes.4",[Du.variable]:"sizes.3",[Iu.variable]:"fontSizes.xs",[lf.variable]:"fontSizes.xs"}}),sm:sf({stepper:{[Ua.variable]:"sizes.6",[Du.variable]:"sizes.4",[Iu.variable]:"fontSizes.sm",[lf.variable]:"fontSizes.xs"}}),md:sf({stepper:{[Ua.variable]:"sizes.8",[Du.variable]:"sizes.5",[Iu.variable]:"fontSizes.md",[lf.variable]:"fontSizes.sm"}}),lg:sf({stepper:{[Ua.variable]:"sizes.10",[Du.variable]:"sizes.6",[Iu.variable]:"fontSizes.lg",[lf.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Ge(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function a(...d){n();for(const f of d)t[f]=u(f);return Ge(e,t)}function i(...d){for(const f of d)f in t||(t[f]=u(f));return Ge(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([f,h])=>[f,h.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,h])=>[f,h.className]))}function u(d){const v=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>d}}return{parts:a,toPart:u,extend:i,selectors:s,classnames:l,get keys(){return Object.keys(t)},__type:{}}}var T7=Ge("accordion").parts("root","container","button","panel").extend("icon"),E7=Ge("alert").parts("title","description","container").extend("icon","spinner"),M7=Ge("avatar").parts("label","badge","container").extend("excessLabel","group"),j7=Ge("breadcrumb").parts("link","item","container").extend("separator");Ge("button").parts();var D7=Ge("checkbox").parts("control","icon","container").extend("label");Ge("progress").parts("track","filledTrack").extend("label");var I7=Ge("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),k7=Ge("editable").parts("preview","input","textarea"),A7=Ge("form").parts("container","requiredIndicator","helperText"),R7=Ge("formError").parts("text","icon"),L7=Ge("input").parts("addon","field","element","group"),F7=Ge("list").parts("container","item","icon"),N7=Ge("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),z7=Ge("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),B7=Ge("numberinput").parts("root","field","stepperGroup","stepper");Ge("pininput").parts("field");var W7=Ge("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),V7=Ge("progress").parts("label","filledTrack","track"),H7=Ge("radio").parts("container","control","label"),U7=Ge("select").parts("field","icon"),Y7=Ge("slider").parts("container","track","thumb","filledTrack","mark"),G7=Ge("stat").parts("container","label","helpText","number","icon"),q7=Ge("switch").parts("container","track","thumb","label"),Q7=Ge("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),K7=Ge("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),X7=Ge("tag").parts("container","label","closeButton"),Z7=Ge("card").parts("container","header","body","footer");Ge("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function ol(e,t,r){return Math.min(Math.max(e,r),t)}class J7 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var uf=J7;function X_(e){if(typeof e!="string")throw new uf(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=sz.test(e)?rz(e):e;const r=nz.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(l=>parseInt(ah(l,2),16)),parseInt(ah(s[3]||"f",2),16)/255]}const n=az.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(l=>parseInt(l,16)),parseInt(s[3]||"ff",16)/255]}const a=iz.exec(t);if(a){const s=Array.from(a).slice(1);return[...s.slice(0,3).map(l=>parseInt(l,10)),parseFloat(s[3]||"1")]}const i=oz.exec(t);if(i){const[s,l,u,c]=Array.from(i).slice(1).map(parseFloat);if(ol(0,100,l)!==l)throw new uf(e);if(ol(0,100,u)!==u)throw new uf(e);return[...lz(s,l,u),Number.isNaN(c)?1:c]}throw new uf(e)}function ez(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const e$=e=>parseInt(e.replace(/_/g,""),36),tz="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=e$(t.substring(0,3)),n=e$(t.substring(3)).toString(16);let a="";for(let i=0;i<6-n.length;i++)a+="0";return e[r]=`${a}${n}`,e},{});function rz(e){const t=e.toLowerCase().trim(),r=tz[ez(t)];if(!r)throw new uf(e);return`#${r}`}const ah=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),nz=new RegExp(`^#${ah("([a-f0-9])",3)}([a-f0-9])?$`,"i"),az=new RegExp(`^#${ah("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),iz=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ah(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),oz=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,sz=/^[a-z]+$/i,t$=e=>Math.round(e*255),lz=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(t$);const a=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),s=i*(1-Math.abs(a%2-1));let l=0,u=0,c=0;a>=0&&a<1?(l=i,u=s):a>=1&&a<2?(l=s,u=i):a>=2&&a<3?(u=i,c=s):a>=3&&a<4?(u=s,c=i):a>=4&&a<5?(l=s,c=i):a>=5&&a<6&&(l=i,c=s);const d=n-i/2,f=l+d,h=u+d,v=c+d;return[f,h,v].map(t$)};function uz(e,t,r,n){return`rgba(${ol(0,255,e).toFixed()}, ${ol(0,255,t).toFixed()}, ${ol(0,255,r).toFixed()}, ${parseFloat(ol(0,1,n).toFixed(3))})`}function cz(e,t){const[r,n,a,i]=X_(e);return uz(r,n,a,i-t)}function dz(e){const[t,r,n,a]=X_(e);let i=s=>{const l=ol(0,255,s).toString(16);return l.length===1?`0${l}`:l};return`#${i(t)}${i(r)}${i(n)}${a<1?i(Math.round(a*255)):""}`}function fz(e,t,r,n,a){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,mr=(e,t,r)=>{const n=fz(e,`colors.${t}`,t);try{return dz(n),n}catch{return r??"#000000"}},mz=e=>{const[t,r,n]=X_(e);return(t*299+r*587+n*114)/1e3},vz=e=>t=>{const r=mr(t,e);return mz(r)<128?"dark":"light"},pz=e=>t=>vz(e)(t)==="dark",hc=(e,t)=>r=>{const n=mr(r,e);return cz(n,1-t)};function r$(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}`}}var gz=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function yz(e){const t=gz();return!e||hz(e)?t:e.string&&e.colors?_z(e.string,e.colors):e.string&&!e.colors?bz(e.string):e.colors&&!e.string?wz(e.colors):t}function bz(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${a.toString(16)}`.substr(-2)}return r}function _z(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function Z_(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function o5(e){return Gr(e)&&e.reference?e.reference:String(e)}var X0=(e,...t)=>t.map(o5).join(` ${e} `).replace(/calc/g,""),n$=(...e)=>`calc(${X0("+",...e)})`,a$=(...e)=>`calc(${X0("-",...e)})`,Jy=(...e)=>`calc(${X0("*",...e)})`,i$=(...e)=>`calc(${X0("/",...e)})`,o$=e=>{const t=o5(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Jy(t,-1)},Ya=Object.assign(e=>({add:(...t)=>Ya(n$(e,...t)),subtract:(...t)=>Ya(a$(e,...t)),multiply:(...t)=>Ya(Jy(e,...t)),divide:(...t)=>Ya(i$(e,...t)),negate:()=>Ya(o$(e)),toString:()=>e.toString()}),{add:n$,subtract:a$,multiply:Jy,divide:i$,negate:o$});function xz(e){return!Number.isInteger(parseFloat(e.toString()))}function Sz(e,t="-"){return e.replace(/\s+/g,t)}function s5(e){const t=Sz(e.toString());return t.includes("\\.")?e:xz(e)?t.replace(".","\\."):e}function Pz(e,t=""){return[t,s5(e)].filter(Boolean).join("-")}function $z(e,t){return`var(${s5(e)}${t?`, ${t}`:""})`}function Oz(e,t=""){return`--${Pz(e,t)}`}function It(e,t){const r=Oz(e,void 0);return{variable:r,reference:$z(r,Cz(void 0))}}function Cz(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:Tz,definePartsStyle:uv}=st(q7.keys),Pf=It("switch-track-width"),dl=It("switch-track-height"),Rg=It("switch-track-diff"),Ez=Ya.subtract(Pf,dl),eb=It("switch-thumb-x"),Rd=It("switch-bg"),Mz=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Pf.reference],height:[dl.reference],transitionProperty:"common",transitionDuration:"fast",[Rd.variable]:"colors.gray.300",_dark:{[Rd.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Rd.variable]:`colors.${t}.500`,_dark:{[Rd.variable]:`colors.${t}.200`}},bg:Rd.reference}},jz={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[dl.reference],height:[dl.reference],_checked:{transform:`translateX(${eb.reference})`}},Dz=uv(e=>({container:{[Rg.variable]:Ez,[eb.variable]:Rg.reference,_rtl:{[eb.variable]:Ya(Rg).negate().toString()}},track:Mz(e),thumb:jz})),Iz={sm:uv({container:{[Pf.variable]:"1.375rem",[dl.variable]:"sizes.3"}}),md:uv({container:{[Pf.variable]:"1.875rem",[dl.variable]:"sizes.4"}}),lg:uv({container:{[Pf.variable]:"2.875rem",[dl.variable]:"sizes.6"}})},kz=Tz({baseStyle:Dz,sizes:Iz,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Az,definePartsStyle:Ku}=st(Q7.keys),Rz=Ku({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"}}),Xv={"&[data-is-numeric=true]":{textAlign:"end"}},Lz=Ku(e=>{const{colorScheme:t}=e;return{th:{color:le("gray.600","gray.400")(e),borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...Xv},td:{borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...Xv},caption:{color:le("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Fz=Ku(e=>{const{colorScheme:t}=e;return{th:{color:le("gray.600","gray.400")(e),borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...Xv},td:{borderBottom:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e),...Xv},caption:{color:le("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:le(`${t}.100`,`${t}.700`)(e)},td:{background:le(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Nz={simple:Lz,striped:Fz,unstyled:{}},zz={sm:Ku({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:Ku({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Ku({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Bz=Az({baseStyle:Rz,variants:Nz,sizes:zz,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Mr=ue("tabs-color"),Nn=ue("tabs-bg"),_m=ue("tabs-border-color"),{defineMultiStyleConfig:Wz,definePartsStyle:fa}=st(K7.keys),Vz=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Hz=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}}},Uz=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},Yz={p:4},Gz=fa(e=>({root:Vz(e),tab:Hz(e),tablist:Uz(e),tabpanel:Yz})),qz={sm:fa({tab:{py:1,px:4,fontSize:"sm"}}),md:fa({tab:{fontSize:"md",py:2,px:4}}),lg:fa({tab:{fontSize:"lg",py:3,px:4}})},Qz=fa(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",a=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[a]:"2px solid",borderColor:"inherit"},tab:{[a]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Mr.variable]:`colors.${t}.600`,_dark:{[Mr.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Nn.variable]:"colors.gray.200",_dark:{[Nn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Mr.reference,bg:Nn.reference}}}),Kz=fa(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[_m.variable]:"transparent",_selected:{[Mr.variable]:`colors.${t}.600`,[_m.variable]:"colors.white",_dark:{[Mr.variable]:`colors.${t}.300`,[_m.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:_m.reference},color:Mr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Xz=fa(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Nn.variable]:"colors.gray.50",_dark:{[Nn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Nn.variable]:"colors.white",[Mr.variable]:`colors.${t}.600`,_dark:{[Nn.variable]:"colors.gray.800",[Mr.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Mr.reference,bg:Nn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Zz=fa(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:mr(r,`${t}.700`),bg:mr(r,`${t}.100`)}}}}),Jz=fa(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Mr.variable]:"colors.gray.600",_dark:{[Mr.variable]:"inherit"},_selected:{[Mr.variable]:"colors.white",[Nn.variable]:`colors.${t}.600`,_dark:{[Mr.variable]:"colors.gray.800",[Nn.variable]:`colors.${t}.300`}},color:Mr.reference,bg:Nn.reference}}}),eB=fa({}),tB={line:Qz,enclosed:Kz,"enclosed-colored":Xz,"soft-rounded":Zz,"solid-rounded":Jz,unstyled:eB},rB=Wz({baseStyle:Gz,sizes:qz,variants:tB,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),St=P8("badge",["bg","color","shadow"]),nB={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:St.bg.reference,color:St.color.reference,boxShadow:St.shadow.reference},aB=e=>{const{colorScheme:t,theme:r}=e,n=hc(`${t}.500`,.6)(r);return{[St.bg.variable]:`colors.${t}.500`,[St.color.variable]:"colors.white",_dark:{[St.bg.variable]:n,[St.color.variable]:"colors.whiteAlpha.800"}}},iB=e=>{const{colorScheme:t,theme:r}=e,n=hc(`${t}.200`,.16)(r);return{[St.bg.variable]:`colors.${t}.100`,[St.color.variable]:`colors.${t}.800`,_dark:{[St.bg.variable]:n,[St.color.variable]:`colors.${t}.200`}}},oB=e=>{const{colorScheme:t,theme:r}=e,n=hc(`${t}.200`,.8)(r);return{[St.color.variable]:`colors.${t}.500`,_dark:{[St.color.variable]:n},[St.shadow.variable]:`inset 0 0 0px 1px ${St.color.reference}`}},sB={solid:aB,subtle:iB,outline:oB},$f={baseStyle:nB,variants:sB,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:lB,definePartsStyle:fl}=st(X7.keys),s$=ue("tag-bg"),l$=ue("tag-color"),Lg=ue("tag-shadow"),cv=ue("tag-min-height"),dv=ue("tag-min-width"),fv=ue("tag-font-size"),hv=ue("tag-padding-inline"),uB={fontWeight:"medium",lineHeight:1.2,outline:0,[l$.variable]:St.color.reference,[s$.variable]:St.bg.reference,[Lg.variable]:St.shadow.reference,color:l$.reference,bg:s$.reference,boxShadow:Lg.reference,borderRadius:"md",minH:cv.reference,minW:dv.reference,fontSize:fv.reference,px:hv.reference,_focusVisible:{[Lg.variable]:"shadows.outline"}},cB={lineHeight:1.2,overflow:"visible"},dB={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}},fB=fl({container:uB,label:cB,closeButton:dB}),hB={sm:fl({container:{[cv.variable]:"sizes.5",[dv.variable]:"sizes.5",[fv.variable]:"fontSizes.xs",[hv.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:fl({container:{[cv.variable]:"sizes.6",[dv.variable]:"sizes.6",[fv.variable]:"fontSizes.sm",[hv.variable]:"space.2"}}),lg:fl({container:{[cv.variable]:"sizes.8",[dv.variable]:"sizes.8",[fv.variable]:"fontSizes.md",[hv.variable]:"space.3"}})},mB={subtle:fl(e=>{var t;return{container:(t=$f.variants)==null?void 0:t.subtle(e)}}),solid:fl(e=>{var t;return{container:(t=$f.variants)==null?void 0:t.solid(e)}}),outline:fl(e=>{var t;return{container:(t=$f.variants)==null?void 0:t.outline(e)}})},vB=lB({variants:mB,baseStyle:fB,sizes:hB,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Qa,defineMultiStyleConfig:pB}=st(L7.keys),ku=ue("input-height"),Au=ue("input-font-size"),Ru=ue("input-padding"),Lu=ue("input-border-radius"),gB=Qa({addon:{height:ku.reference,fontSize:Au.reference,px:Ru.reference,borderRadius:Lu.reference},field:{width:"100%",height:ku.reference,fontSize:Au.reference,px:Ru.reference,borderRadius:Lu.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ki={lg:{[Au.variable]:"fontSizes.lg",[Ru.variable]:"space.4",[Lu.variable]:"radii.md",[ku.variable]:"sizes.12"},md:{[Au.variable]:"fontSizes.md",[Ru.variable]:"space.4",[Lu.variable]:"radii.md",[ku.variable]:"sizes.10"},sm:{[Au.variable]:"fontSizes.sm",[Ru.variable]:"space.3",[Lu.variable]:"radii.sm",[ku.variable]:"sizes.8"},xs:{[Au.variable]:"fontSizes.xs",[Ru.variable]:"space.2",[Lu.variable]:"radii.sm",[ku.variable]:"sizes.6"}},yB={lg:Qa({field:Ki.lg,group:Ki.lg}),md:Qa({field:Ki.md,group:Ki.md}),sm:Qa({field:Ki.sm,group:Ki.sm}),xs:Qa({field:Ki.xs,group:Ki.xs})};function J_(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||le("blue.500","blue.300")(e),errorBorderColor:r||le("red.500","red.300")(e)}}var bB=Qa(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=J_(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:le("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mr(t,n),boxShadow:`0 0 0 1px ${mr(t,n)}`},_focusVisible:{zIndex:1,borderColor:mr(t,r),boxShadow:`0 0 0 1px ${mr(t,r)}`}},addon:{border:"1px solid",borderColor:le("inherit","whiteAlpha.50")(e),bg:le("gray.100","whiteAlpha.300")(e)}}}),_B=Qa(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=J_(e);return{field:{border:"2px solid",borderColor:"transparent",bg:le("gray.100","whiteAlpha.50")(e),_hover:{bg:le("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mr(t,n)},_focusVisible:{bg:"transparent",borderColor:mr(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:le("gray.100","whiteAlpha.50")(e)}}}),wB=Qa(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=J_(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mr(t,n),boxShadow:`0px 1px 0px 0px ${mr(t,n)}`},_focusVisible:{borderColor:mr(t,r),boxShadow:`0px 1px 0px 0px ${mr(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),xB=Qa({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),SB={outline:bB,filled:_B,flushed:wB,unstyled:xB},Ye=pB({baseStyle:gB,sizes:yB,variants:SB,defaultProps:{size:"md",variant:"outline"}}),u$,PB={...(u$=Ye.baseStyle)==null?void 0:u$.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},c$,d$,$B={outline:e=>{var t,r;return(r=(t=Ye.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=Ye.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=Ye.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(d$=(c$=Ye.variants)==null?void 0:c$.unstyled.field)!=null?d$:{}},f$,h$,m$,v$,p$,g$,y$,b$,OB={xs:(h$=(f$=Ye.sizes)==null?void 0:f$.xs.field)!=null?h$:{},sm:(v$=(m$=Ye.sizes)==null?void 0:m$.sm.field)!=null?v$:{},md:(g$=(p$=Ye.sizes)==null?void 0:p$.md.field)!=null?g$:{},lg:(b$=(y$=Ye.sizes)==null?void 0:y$.lg.field)!=null?b$:{}},CB={baseStyle:PB,sizes:OB,variants:$B,defaultProps:{size:"md",variant:"outline"}},wm=It("tooltip-bg"),Fg=It("tooltip-fg"),TB=It("popper-arrow-bg"),EB={bg:wm.reference,color:Fg.reference,[wm.variable]:"colors.gray.700",[Fg.variable]:"colors.whiteAlpha.900",_dark:{[wm.variable]:"colors.gray.300",[Fg.variable]:"colors.gray.900"},[TB.variable]:wm.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},MB={baseStyle:EB},{defineMultiStyleConfig:jB,definePartsStyle:cf}=st(V7.keys),DB=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:a}=e,i=le(r$(),r$("1rem","rgba(0,0,0,0.1)"))(e),s=le(`${t}.500`,`${t}.200`)(e),l=`linear-gradient( + to right, + transparent 0%, + ${mr(r,s)} 50%, + transparent 100% + )`;return{...!n&&a&&i,...n?{bgImage:l}:{bgColor:s}}},IB={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},kB=e=>({bg:le("gray.100","whiteAlpha.300")(e)}),AB=e=>({transitionProperty:"common",transitionDuration:"slow",...DB(e)}),RB=cf(e=>({label:IB,filledTrack:AB(e),track:kB(e)})),LB={xs:cf({track:{h:"1"}}),sm:cf({track:{h:"2"}}),md:cf({track:{h:"3"}}),lg:cf({track:{h:"4"}})},FB=jB({sizes:LB,baseStyle:RB,defaultProps:{size:"md",colorScheme:"blue"}}),NB=e=>typeof e=="function";function pr(e,...t){return NB(e)?e(...t):e}var{definePartsStyle:mv,defineMultiStyleConfig:zB}=st(D7.keys),Of=ue("checkbox-size"),BB=e=>{const{colorScheme:t}=e;return{w:Of.reference,h:Of.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:le(`${t}.500`,`${t}.200`)(e),borderColor:le(`${t}.500`,`${t}.200`)(e),color:le("white","gray.900")(e),_hover:{bg:le(`${t}.600`,`${t}.300`)(e),borderColor:le(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:le("gray.200","transparent")(e),bg:le("gray.200","whiteAlpha.300")(e),color:le("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:le(`${t}.500`,`${t}.200`)(e),borderColor:le(`${t}.500`,`${t}.200`)(e),color:le("white","gray.900")(e)},_disabled:{bg:le("gray.100","whiteAlpha.100")(e),borderColor:le("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:le("red.500","red.300")(e)}}},WB={_disabled:{cursor:"not-allowed"}},VB={userSelect:"none",_disabled:{opacity:.4}},HB={transitionProperty:"transform",transitionDuration:"normal"},UB=mv(e=>({icon:HB,container:WB,control:pr(BB,e),label:VB})),YB={sm:mv({control:{[Of.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:mv({control:{[Of.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:mv({control:{[Of.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Zv=zB({baseStyle:UB,sizes:YB,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:GB,definePartsStyle:vv}=st(H7.keys),qB=e=>{var t;const r=(t=pr(Zv.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},QB=vv(e=>{var t,r,n,a;return{label:(r=(t=Zv).baseStyle)==null?void 0:r.call(t,e).label,container:(a=(n=Zv).baseStyle)==null?void 0:a.call(n,e).container,control:qB(e)}}),KB={md:vv({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:vv({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:vv({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},XB=GB({baseStyle:QB,sizes:KB,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ZB,definePartsStyle:JB}=st(U7.keys),xm=ue("select-bg"),_$,eW={...(_$=Ye.baseStyle)==null?void 0:_$.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:xm.reference,[xm.variable]:"colors.white",_dark:{[xm.variable]:"colors.gray.700"},"> option, > optgroup":{bg:xm.reference}},tW={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},rW=JB({field:eW,icon:tW}),Sm={paddingInlineEnd:"8"},w$,x$,S$,P$,$$,O$,C$,T$,nW={lg:{...(w$=Ye.sizes)==null?void 0:w$.lg,field:{...(x$=Ye.sizes)==null?void 0:x$.lg.field,...Sm}},md:{...(S$=Ye.sizes)==null?void 0:S$.md,field:{...(P$=Ye.sizes)==null?void 0:P$.md.field,...Sm}},sm:{...($$=Ye.sizes)==null?void 0:$$.sm,field:{...(O$=Ye.sizes)==null?void 0:O$.sm.field,...Sm}},xs:{...(C$=Ye.sizes)==null?void 0:C$.xs,field:{...(T$=Ye.sizes)==null?void 0:T$.xs.field,...Sm},icon:{insetEnd:"1"}}},aW=ZB({baseStyle:rW,sizes:nW,variants:Ye.variants,defaultProps:Ye.defaultProps}),Ng=ue("skeleton-start-color"),zg=ue("skeleton-end-color"),iW={[Ng.variable]:"colors.gray.100",[zg.variable]:"colors.gray.400",_dark:{[Ng.variable]:"colors.gray.800",[zg.variable]:"colors.gray.600"},background:Ng.reference,borderColor:zg.reference,opacity:.7,borderRadius:"sm"},oW={baseStyle:iW},Bg=ue("skip-link-bg"),sW={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Bg.variable]:"colors.white",_dark:{[Bg.variable]:"colors.gray.700"},bg:Bg.reference}},lW={baseStyle:sW},{defineMultiStyleConfig:uW,definePartsStyle:Z0}=st(Y7.keys),ih=ue("slider-thumb-size"),oh=ue("slider-track-size"),mo=ue("slider-bg"),cW=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Z_({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},dW=e=>({...Z_({orientation:e.orientation,horizontal:{h:oh.reference},vertical:{w:oh.reference}}),overflow:"hidden",borderRadius:"sm",[mo.variable]:"colors.gray.200",_dark:{[mo.variable]:"colors.whiteAlpha.200"},_disabled:{[mo.variable]:"colors.gray.300",_dark:{[mo.variable]:"colors.whiteAlpha.300"}},bg:mo.reference}),fW=e=>{const{orientation:t}=e;return{...Z_({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:ih.reference,h:ih.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"}}},hW=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[mo.variable]:`colors.${t}.500`,_dark:{[mo.variable]:`colors.${t}.200`},bg:mo.reference}},mW=Z0(e=>({container:cW(e),track:dW(e),thumb:fW(e),filledTrack:hW(e)})),vW=Z0({container:{[ih.variable]:"sizes.4",[oh.variable]:"sizes.1"}}),pW=Z0({container:{[ih.variable]:"sizes.3.5",[oh.variable]:"sizes.1"}}),gW=Z0({container:{[ih.variable]:"sizes.2.5",[oh.variable]:"sizes.0.5"}}),yW={lg:vW,md:pW,sm:gW},bW=uW({baseStyle:mW,sizes:yW,defaultProps:{size:"md",colorScheme:"blue"}}),tl=It("spinner-size"),_W={width:[tl.reference],height:[tl.reference]},wW={xs:{[tl.variable]:"sizes.3"},sm:{[tl.variable]:"sizes.4"},md:{[tl.variable]:"sizes.6"},lg:{[tl.variable]:"sizes.8"},xl:{[tl.variable]:"sizes.12"}},xW={baseStyle:_W,sizes:wW,defaultProps:{size:"md"}},{defineMultiStyleConfig:SW,definePartsStyle:l5}=st(G7.keys),PW={fontWeight:"medium"},$W={opacity:.8,marginBottom:"2"},OW={verticalAlign:"baseline",fontWeight:"semibold"},CW={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},TW=l5({container:{},label:PW,helpText:$W,number:OW,icon:CW}),EW={md:l5({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},MW=SW({baseStyle:TW,sizes:EW,defaultProps:{size:"md"}}),Wg=ue("kbd-bg"),jW={[Wg.variable]:"colors.gray.100",_dark:{[Wg.variable]:"colors.whiteAlpha.100"},bg:Wg.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},DW={baseStyle:jW},IW={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},kW={baseStyle:IW},{defineMultiStyleConfig:AW,definePartsStyle:RW}=st(F7.keys),LW={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},FW=RW({icon:LW}),NW=AW({baseStyle:FW}),{defineMultiStyleConfig:zW,definePartsStyle:BW}=st(N7.keys),na=ue("menu-bg"),Vg=ue("menu-shadow"),WW={[na.variable]:"#fff",[Vg.variable]:"shadows.sm",_dark:{[na.variable]:"colors.gray.700",[Vg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:na.reference,boxShadow:Vg.reference},VW={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[na.variable]:"colors.gray.100",_dark:{[na.variable]:"colors.whiteAlpha.100"}},_active:{[na.variable]:"colors.gray.200",_dark:{[na.variable]:"colors.whiteAlpha.200"}},_expanded:{[na.variable]:"colors.gray.100",_dark:{[na.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:na.reference},HW={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},UW={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},YW={opacity:.6},GW={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},qW={transitionProperty:"common",transitionDuration:"normal"},QW=BW({button:qW,list:WW,item:VW,groupTitle:HW,icon:UW,command:YW,divider:GW}),KW=zW({baseStyle:QW}),{defineMultiStyleConfig:XW,definePartsStyle:tb}=st(z7.keys),Hg=ue("modal-bg"),Ug=ue("modal-shadow"),ZW={bg:"blackAlpha.600",zIndex:"modal"},JW=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},eV=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Hg.variable]:"colors.white",[Ug.variable]:"shadows.lg",_dark:{[Hg.variable]:"colors.gray.700",[Ug.variable]:"shadows.dark-lg"},bg:Hg.reference,boxShadow:Ug.reference}},tV={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},rV={position:"absolute",top:"2",insetEnd:"3"},nV=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},aV={px:"6",py:"4"},iV=tb(e=>({overlay:ZW,dialogContainer:pr(JW,e),dialog:pr(eV,e),header:tV,closeButton:rV,body:pr(nV,e),footer:aV}));function In(e){return tb(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var oV={xs:In("xs"),sm:In("sm"),md:In("md"),lg:In("lg"),xl:In("xl"),"2xl":In("2xl"),"3xl":In("3xl"),"4xl":In("4xl"),"5xl":In("5xl"),"6xl":In("6xl"),full:In("full")},sV=XW({baseStyle:iV,sizes:oV,defaultProps:{size:"md"}}),{defineMultiStyleConfig:lV,definePartsStyle:u5}=st(B7.keys),ew=It("number-input-stepper-width"),c5=It("number-input-input-padding"),uV=Ya(ew).add("0.5rem").toString(),Yg=It("number-input-bg"),Gg=It("number-input-color"),qg=It("number-input-border-color"),cV={[ew.variable]:"sizes.6",[c5.variable]:uV},dV=e=>{var t,r;return(r=(t=pr(Ye.baseStyle,e))==null?void 0:t.field)!=null?r:{}},fV={width:ew.reference},hV={borderStart:"1px solid",borderStartColor:qg.reference,color:Gg.reference,bg:Yg.reference,[Gg.variable]:"colors.chakra-body-text",[qg.variable]:"colors.chakra-border-color",_dark:{[Gg.variable]:"colors.whiteAlpha.800",[qg.variable]:"colors.whiteAlpha.300"},_active:{[Yg.variable]:"colors.gray.200",_dark:{[Yg.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},mV=u5(e=>{var t;return{root:cV,field:(t=pr(dV,e))!=null?t:{},stepperGroup:fV,stepper:hV}});function Pm(e){var t,r,n;const a=(t=Ye.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=a.field)==null?void 0:r.fontSize)!=null?n:"md",l=n5.fontSizes[s];return u5({field:{...a.field,paddingInlineEnd:c5.reference,verticalAlign:"top"},stepper:{fontSize:Ya(l).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var vV={xs:Pm("xs"),sm:Pm("sm"),md:Pm("md"),lg:Pm("lg")},pV=lV({baseStyle:mV,sizes:vV,variants:Ye.variants,defaultProps:Ye.defaultProps}),E$,gV={...(E$=Ye.baseStyle)==null?void 0:E$.field,textAlign:"center"},yV={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"}},M$,j$,bV={outline:e=>{var t,r,n;return(n=(r=pr((t=Ye.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=pr((t=Ye.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=pr((t=Ye.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(j$=(M$=Ye.variants)==null?void 0:M$.unstyled.field)!=null?j$:{}},_V={baseStyle:gV,sizes:yV,variants:bV,defaultProps:Ye.defaultProps},{defineMultiStyleConfig:wV,definePartsStyle:xV}=st(W7.keys),$m=It("popper-bg"),SV=It("popper-arrow-bg"),D$=It("popper-arrow-shadow-color"),PV={zIndex:10},$V={[$m.variable]:"colors.white",bg:$m.reference,[SV.variable]:$m.reference,[D$.variable]:"colors.gray.200",_dark:{[$m.variable]:"colors.gray.700",[D$.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},OV={px:3,py:2,borderBottomWidth:"1px"},CV={px:3,py:2},TV={px:3,py:2,borderTopWidth:"1px"},EV={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},MV=xV({popper:PV,content:$V,header:OV,body:CV,footer:TV,closeButton:EV}),jV=wV({baseStyle:MV}),{definePartsStyle:rb,defineMultiStyleConfig:DV}=st(I7.keys),Qg=ue("drawer-bg"),Kg=ue("drawer-box-shadow");function ou(e){return rb(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var IV={bg:"blackAlpha.600",zIndex:"modal"},kV={display:"flex",zIndex:"modal",justifyContent:"center"},AV=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Qg.variable]:"colors.white",[Kg.variable]:"shadows.lg",_dark:{[Qg.variable]:"colors.gray.700",[Kg.variable]:"shadows.dark-lg"},bg:Qg.reference,boxShadow:Kg.reference}},RV={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},LV={position:"absolute",top:"2",insetEnd:"3"},FV={px:"6",py:"2",flex:"1",overflow:"auto"},NV={px:"6",py:"4"},zV=rb(e=>({overlay:IV,dialogContainer:kV,dialog:pr(AV,e),header:RV,closeButton:LV,body:FV,footer:NV})),BV={xs:ou("xs"),sm:ou("md"),md:ou("lg"),lg:ou("2xl"),xl:ou("4xl"),full:ou("full")},WV=DV({baseStyle:zV,sizes:BV,defaultProps:{size:"xs"}}),{definePartsStyle:VV,defineMultiStyleConfig:HV}=st(k7.keys),UV={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},YV={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},GV={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},qV=VV({preview:UV,input:YV,textarea:GV}),QV=HV({baseStyle:qV}),{definePartsStyle:KV,defineMultiStyleConfig:XV}=st(A7.keys),Xu=ue("form-control-color"),ZV={marginStart:"1",[Xu.variable]:"colors.red.500",_dark:{[Xu.variable]:"colors.red.300"},color:Xu.reference},JV={mt:"2",[Xu.variable]:"colors.gray.600",_dark:{[Xu.variable]:"colors.whiteAlpha.600"},color:Xu.reference,lineHeight:"normal",fontSize:"sm"},eH=KV({container:{width:"100%",position:"relative"},requiredIndicator:ZV,helperText:JV}),tH=XV({baseStyle:eH}),{definePartsStyle:rH,defineMultiStyleConfig:nH}=st(R7.keys),Zu=ue("form-error-color"),aH={[Zu.variable]:"colors.red.500",_dark:{[Zu.variable]:"colors.red.300"},color:Zu.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},iH={marginEnd:"0.5em",[Zu.variable]:"colors.red.500",_dark:{[Zu.variable]:"colors.red.300"},color:Zu.reference},oH=rH({text:aH,icon:iH}),sH=nH({baseStyle:oH}),lH={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},uH={baseStyle:lH},cH={fontFamily:"heading",fontWeight:"bold"},dH={"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}},fH={baseStyle:cH,sizes:dH,defaultProps:{size:"xl"}},{defineMultiStyleConfig:hH,definePartsStyle:mH}=st(j7.keys),Xg=ue("breadcrumb-link-decor"),vH={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Xg.reference,[Xg.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Xg.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},pH=mH({link:vH}),gH=hH({baseStyle:pH}),yH={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"}}},d5=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:le("gray.800","whiteAlpha.900")(e),_hover:{bg:le("gray.100","whiteAlpha.200")(e)},_active:{bg:le("gray.200","whiteAlpha.300")(e)}};const n=hc(`${t}.200`,.12)(r),a=hc(`${t}.200`,.24)(r);return{color:le(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:le(`${t}.50`,n)(e)},_active:{bg:le(`${t}.100`,a)(e)}}},bH=e=>{const{colorScheme:t}=e,r=le("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...pr(d5,e)}},_H={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},wH=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const u=le("gray.100","whiteAlpha.200")(e);return{bg:u,color:le("gray.800","whiteAlpha.900")(e),_hover:{bg:le("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:le("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:a="white",hoverBg:i=`${r}.600`,activeBg:s=`${r}.700`}=(t=_H[r])!=null?t:{},l=le(n,`${r}.200`)(e);return{bg:l,color:le(a,"gray.800")(e),_hover:{bg:le(i,`${r}.300`)(e),_disabled:{bg:l}},_active:{bg:le(s,`${r}.400`)(e)}}},xH=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:le(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:le(`${t}.700`,`${t}.500`)(e)}}},SH={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},PH={ghost:d5,outline:bH,solid:wH,link:xH,unstyled:SH},$H={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"}},OH={baseStyle:yH,variants:PH,sizes:$H,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:hl,defineMultiStyleConfig:CH}=st(Z7.keys),Jv=ue("card-bg"),Ja=ue("card-padding"),f5=ue("card-shadow"),pv=ue("card-radius"),h5=ue("card-border-width","0"),m5=ue("card-border-color"),TH=hl({container:{[Jv.variable]:"colors.chakra-body-bg",backgroundColor:Jv.reference,boxShadow:f5.reference,borderRadius:pv.reference,color:"chakra-body-text",borderWidth:h5.reference,borderColor:m5.reference},body:{padding:Ja.reference,flex:"1 1 0%"},header:{padding:Ja.reference},footer:{padding:Ja.reference}}),EH={sm:hl({container:{[pv.variable]:"radii.base",[Ja.variable]:"space.3"}}),md:hl({container:{[pv.variable]:"radii.md",[Ja.variable]:"space.5"}}),lg:hl({container:{[pv.variable]:"radii.xl",[Ja.variable]:"space.7"}})},MH={elevated:hl({container:{[f5.variable]:"shadows.base",_dark:{[Jv.variable]:"colors.gray.700"}}}),outline:hl({container:{[h5.variable]:"1px",[m5.variable]:"colors.chakra-border-color"}}),filled:hl({container:{[Jv.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Ja.variable]:0},header:{[Ja.variable]:0},footer:{[Ja.variable]:0}}},jH=CH({baseStyle:TH,variants:MH,sizes:EH,defaultProps:{variant:"elevated",size:"md"}}),Cf=It("close-button-size"),Ld=It("close-button-bg"),DH={w:[Cf.reference],h:[Cf.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ld.variable]:"colors.blackAlpha.100",_dark:{[Ld.variable]:"colors.whiteAlpha.100"}},_active:{[Ld.variable]:"colors.blackAlpha.200",_dark:{[Ld.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ld.reference},IH={lg:{[Cf.variable]:"sizes.10",fontSize:"md"},md:{[Cf.variable]:"sizes.8",fontSize:"xs"},sm:{[Cf.variable]:"sizes.6",fontSize:"2xs"}},kH={baseStyle:DH,sizes:IH,defaultProps:{size:"md"}},{variants:AH,defaultProps:RH}=$f,LH={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:St.bg.reference,color:St.color.reference,boxShadow:St.shadow.reference},FH={baseStyle:LH,variants:AH,defaultProps:RH},NH={w:"100%",mx:"auto",maxW:"prose",px:"4"},zH={baseStyle:NH},BH={opacity:.6,borderColor:"inherit"},WH={borderStyle:"solid"},VH={borderStyle:"dashed"},HH={solid:WH,dashed:VH},UH={baseStyle:BH,variants:HH,defaultProps:{variant:"solid"}},{definePartsStyle:YH,defineMultiStyleConfig:GH}=st(T7.keys),qH={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},QH={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},KH={pt:"2",px:"4",pb:"5"},XH={fontSize:"1.25em"},ZH=YH({container:qH,button:QH,panel:KH,icon:XH}),JH=GH({baseStyle:ZH}),{definePartsStyle:Th,defineMultiStyleConfig:eU}=st(E7.keys),qr=ue("alert-fg"),ui=ue("alert-bg"),tU=Th({container:{bg:ui.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:qr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:qr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function tw(e){const{theme:t,colorScheme:r}=e,n=hc(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var rU=Th(e=>{const{colorScheme:t}=e,r=tw(e);return{container:{[qr.variable]:`colors.${t}.600`,[ui.variable]:r.light,_dark:{[qr.variable]:`colors.${t}.200`,[ui.variable]:r.dark}}}}),nU=Th(e=>{const{colorScheme:t}=e,r=tw(e);return{container:{[qr.variable]:`colors.${t}.600`,[ui.variable]:r.light,_dark:{[qr.variable]:`colors.${t}.200`,[ui.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:qr.reference}}}),aU=Th(e=>{const{colorScheme:t}=e,r=tw(e);return{container:{[qr.variable]:`colors.${t}.600`,[ui.variable]:r.light,_dark:{[qr.variable]:`colors.${t}.200`,[ui.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:qr.reference}}}),iU=Th(e=>{const{colorScheme:t}=e;return{container:{[qr.variable]:"colors.white",[ui.variable]:`colors.${t}.600`,_dark:{[qr.variable]:"colors.gray.900",[ui.variable]:`colors.${t}.200`},color:qr.reference}}}),oU={subtle:rU,"left-accent":nU,"top-accent":aU,solid:iU},sU=eU({baseStyle:tU,variants:oU,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:v5,defineMultiStyleConfig:lU}=st(M7.keys),Ju=ue("avatar-border-color"),Tf=ue("avatar-bg"),sh=ue("avatar-font-size"),mc=ue("avatar-size"),uU={borderRadius:"full",border:"0.2em solid",borderColor:Ju.reference,[Ju.variable]:"white",_dark:{[Ju.variable]:"colors.gray.800"}},cU={bg:Tf.reference,fontSize:sh.reference,width:mc.reference,height:mc.reference,lineHeight:"1",[Tf.variable]:"colors.gray.200",_dark:{[Tf.variable]:"colors.whiteAlpha.400"}},dU=e=>{const{name:t,theme:r}=e,n=t?yz({string:t}):"colors.gray.400",a=pz(n)(r);let i="white";return a||(i="gray.800"),{bg:Tf.reference,fontSize:sh.reference,color:i,borderColor:Ju.reference,verticalAlign:"top",width:mc.reference,height:mc.reference,"&:not([data-loaded])":{[Tf.variable]:n},[Ju.variable]:"colors.white",_dark:{[Ju.variable]:"colors.gray.800"}}},fU={fontSize:sh.reference,lineHeight:"1"},hU=v5(e=>({badge:pr(uU,e),excessLabel:pr(cU,e),container:pr(dU,e),label:fU}));function Xi(e){const t=e!=="100%"?i5[e]:void 0;return v5({container:{[mc.variable]:t??e,[sh.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[mc.variable]:t??e,[sh.variable]:`calc(${t??e} / 2.5)`}})}var mU={"2xs":Xi(4),xs:Xi(6),sm:Xi(8),md:Xi(12),lg:Xi(16),xl:Xi(24),"2xl":Xi(32),full:Xi("100%")},vU=lU({baseStyle:hU,sizes:mU,defaultProps:{size:"md"}}),pU={Accordion:JH,Alert:sU,Avatar:vU,Badge:$f,Breadcrumb:gH,Button:OH,Checkbox:Zv,CloseButton:kH,Code:FH,Container:zH,Divider:UH,Drawer:WV,Editable:QV,Form:tH,FormError:sH,FormLabel:uH,Heading:fH,Input:Ye,Kbd:DW,Link:kW,List:NW,Menu:KW,Modal:sV,NumberInput:pV,PinInput:_V,Popover:jV,Progress:FB,Radio:XB,Select:aW,Skeleton:oW,SkipLink:lW,Slider:bW,Spinner:xW,Stat:MW,Switch:kz,Table:Bz,Tabs:rB,Tag:vB,Textarea:CB,Tooltip:MB,Card:jH,Stepper:C7},gU={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},yU={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"}}},bU="ltr",_U={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},p5={semanticTokens:gU,direction:bU,...P7,components:pU,styles:yU,config:_U};function wU(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var xU=wU();function SU(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function PU(e,t,r,n){const a=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,a,i,s)=>{if(typeof n>"u")return e(n,a,i);t.has(n)||t.set(n,new Map);const l=t.get(n);if(l.has(a))return l.get(a);const u=e(n,a,i,s);return l.set(a,u),u}},g5=$U(PU);function y5(e,t){const r={};return Object.keys(e).forEach(n=>{const a=e[n];t(a,n,e)&&(r[n]=a)}),r}var b5=e=>y5(e,t=>t!=null);function OU(e){return typeof e=="function"}function _5(e,...t){return OU(e)?e(...t):e}function CU(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var TU=typeof Element<"u",EU=typeof Map=="function",MU=typeof Set=="function",jU=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gv(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!gv(e[n],t[n]))return!1;return!0}var i;if(EU&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!gv(n.value[1],t.get(n.value[0])))return!1;return!0}if(MU&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(jU&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;if(TU&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!gv(e[a[n]],t[a[n]]))return!1;return!0}return e!==e&&t!==t}var DU=function(t,r){try{return gv(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const IU=Vb(DU);function w5(e,t={}){var r;const{styleConfig:n,...a}=t,{theme:i,colorMode:s}=kN(),l=e?g5(i,`components.${e}`):void 0,u=n||l,c=la({theme:i,colorMode:s},(r=u==null?void 0:u.defaultProps)!=null?r:{},b5(SU(a,["children"]))),d=P.useRef({});if(u){const h=e7(u)(c);IU(d.current,h)||(d.current=h)}return d.current}function fi(e,t={}){return w5(e,t)}function Wo(e,t={}){return w5(e,t)}var kU=new Set([...W8,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),AU=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function RU(e){return AU.has(e)||!kU.has(e)}function LU(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a in r&&delete r[a],r[a]=n[a]);return r}function rw(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var FU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,NU=DM(function(e){return FU.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),zU=NU,BU=function(t){return t!=="theme"},I$=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?zU:BU},k$=function(t,r,n){var a;if(r){var i=r.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},WU=!1,VU=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return FM(r,n,a),vN(function(){return NM(r,n,a)}),null},HU=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var l=k$(t,r,n),u=l||I$(a),c=!u("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var h=d.length,v=1;vt=>{const{theme:r,css:n,__css:a,sx:i,...s}=t,l=y5(s,(f,h)=>H8(h)),u=_5(e,t),c=LU({},a,u,b5(l),i),d=r5(c)(t.theme);return n?[d,n]:d};function Zg(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=RU);const a=GU({baseStyle:r}),i=YU(e,n)(a);return pn.forwardRef(function(u,c){const{colorMode:d,forced:f}=q0();return pn.createElement(i,{ref:c,"data-theme":f?d:void 0,...u})})}function qU(){const e=new Map;return new Proxy(Zg,{apply(t,r,n){return Zg(...n)},get(t,r){return e.has(r)||e.set(r,Zg(r)),e.get(r)}})}var fe=qU();function he(e){return P.forwardRef(e)}function QU(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,a=P.createContext(void 0);a.displayName=n;function i(){var s;const l=P.useContext(a);if(!l&&t){const u=new Error(r);throw u.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,u,i),u}return l}return[a.Provider,i,a]}function KU(e){const{cssVarsRoot:t,theme:r,children:n}=e,a=P.useMemo(()=>N8(r),[r]);return w.jsxs(yN,{theme:a,children:[w.jsx(XU,{root:t}),n]})}function XU({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w.jsx(G0,{styles:r=>({[t]:r.__cssVars})})}QU({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function ZU(){const{colorMode:e}=q0();return w.jsx(G0,{styles:t=>{const r=g5(t,"styles.global"),n=_5(r,{theme:t,colorMode:e});return n?r5(n)(t):void 0}})}var nw=P.createContext({getDocument(){return document},getWindow(){return window}});nw.displayName="EnvironmentContext";function JU({defer:e}={}){const[,t]=P.useReducer(r=>r+1,0);return fc(()=>{e&&t()},[e]),P.useContext(nw)}function x5(e){const{children:t,environment:r,disabled:n}=e,a=P.useRef(null),i=P.useMemo(()=>r||{getDocument:()=>{var l,u;return(u=(l=a.current)==null?void 0:l.ownerDocument)!=null?u:document},getWindow:()=>{var l,u;return(u=(l=a.current)==null?void 0:l.ownerDocument.defaultView)!=null?u:window}},[r]),s=!n||!r;return w.jsxs(nw.Provider,{value:i,children:[t,s&&w.jsx("span",{id:"__chakra_env",hidden:!0,ref:a})]})}x5.displayName="EnvironmentProvider";var eY=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:a,resetCSS:i=!0,theme:s={},environment:l,cssVarsRoot:u,disableEnvironment:c,disableGlobalStyle:d}=e,f=w.jsx(x5,{environment:l,disabled:c,children:t});return w.jsx(KU,{theme:s,cssVarsRoot:u,children:w.jsxs(QM,{colorModeManager:r,options:s.config,children:[i?w.jsx(wN,{scope:a}):w.jsx(_N,{}),!d&&w.jsx(ZU,{}),n?w.jsx(GM,{zIndex:n,children:f}):f]})})},tY=(e,t)=>e.find(r=>r.id===t);function R$(e,t){const r=S5(e,t),n=r?e[r].findIndex(a=>a.id===t):-1;return{position:r,index:n}}function S5(e,t){for(const[r,n]of Object.entries(e))if(tY(n,t))return r}function rY(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function nY(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,a=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:a,right:i,left:s}}function aY(e,t=[]){const r=P.useRef(e);return P.useEffect(()=>{r.current=e}),P.useCallback((...n)=>{var a;return(a=r.current)==null?void 0:a.call(r,...n)},t)}function iY(e,t){const r=aY(e);P.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function L$(e,t){const r=P.useRef(!1),n=P.useRef(!1);P.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),P.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const aw=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),J0=P.createContext({}),Eh=P.createContext(null),iw=typeof document<"u",ow=iw?P.useLayoutEffect:P.useEffect,P5=P.createContext({strict:!1}),ep=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oY="framerAppearId",$5="data-"+ep(oY),sY={skipAnimations:!1,useManualTiming:!1};function lY(e){let t=new Set,r=new Set,n=!1,a=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(c){i.has(c)&&(u.schedule(c),e()),c(s)}const u={schedule:(c,d=!1,f=!1)=>{const v=f&&n?t:r;return d&&i.add(c),v.has(c)||v.add(c),c},cancel:c=>{r.delete(c),i.delete(c)},process:c=>{if(s=c,n){a=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(l),n=!1,a&&(a=!1,u.process(c))}};return u}const Om=["read","resolveKeyframes","update","preRender","render","postRender"],uY=40;function O5(e,t){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=Om.reduce((y,_)=>(y[_]=lY(i),y),{}),{read:l,resolveKeyframes:u,update:c,preRender:d,render:f,postRender:h}=s,v=()=>{const y=performance.now();r=!1,a.delta=n?1e3/60:Math.max(Math.min(y-a.timestamp,uY),1),a.timestamp=y,a.isProcessing=!0,l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),h.process(a),a.isProcessing=!1,r&&t&&(n=!1,e(v))},b=()=>{r=!0,n=!0,a.isProcessing||e(v)};return{schedule:Om.reduce((y,_)=>{const S=s[_];return y[_]=(T,I=!1,A=!1)=>(r||b(),S.schedule(T,I,A)),y},{}),cancel:y=>{for(let _=0;_{d&&d.update(r,l)});const h=P.useRef(!!(r[$5]&&!window.HandoffComplete));return ow(()=>{d&&(d.updateFeatures(),sw.render(d.render),h.current&&d.animationState&&d.animationState.animateChanges())}),P.useEffect(()=>{d&&(!h.current&&d.animationState&&d.animationState.animateChanges(),h.current&&(h.current=!1,F$||(F$=!0,queueMicrotask(dY))))}),d}function dY(){window.HandoffComplete=!0}function fY(e,t,r,n){const{layoutId:a,layout:i,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:T5(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!s||l&&Fu(l),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,layoutScroll:u,layoutRoot:c})}function T5(e){if(e)return e.options.allowProjection!==!1?e.projection:T5(e.parent)}function hY(e,t,r){return P.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Fu(r)&&(r.current=n))},[t])}function lh(e){return typeof e=="string"||Array.isArray(e)}function uh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const lw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uw=["initial",...lw];function tp(e){return uh(e.animate)||uw.some(t=>lh(e[t]))}function E5(e){return!!(tp(e)||e.variants)}function mY(e,t){if(tp(e)){const{initial:r,animate:n}=e;return{initial:r===!1||lh(r)?r:void 0,animate:lh(n)?n:void 0}}return e.inherit!==!1?t:{}}function vY(e){const{initial:t,animate:r}=mY(e,P.useContext(J0));return P.useMemo(()=>({initial:t,animate:r}),[N$(t),N$(r)])}function N$(e){return Array.isArray(e)?e.join(" "):e}const z$={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},vc={};for(const e in z$)vc[e]={isEnabled:t=>z$[e].some(r=>!!t[r])};function pY(e){for(const t in e)vc[t]={...vc[t],...e[t]}}const cw=P.createContext({}),gY=Symbol.for("motionComponentSymbol"),sr=e=>e;let nb=sr;function yY({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:a}){e&&pY(e);function i(l,u){let c;const d={...P.useContext(aw),...l,layoutId:bY(l)},{isStatic:f}=d,h=vY(l),v=n(l,f);if(!f&&iw){_Y();const b=wY(d);c=b.MeasureLayout,h.visualElement=cY(a,v,d,t,b.ProjectionNode)}return w.jsxs(J0.Provider,{value:h,children:[c&&h.visualElement?w.jsx(c,{visualElement:h.visualElement,...d}):null,r(a,l,hY(v,h.visualElement,u),v,f,h.visualElement)]})}const s=P.forwardRef(i);return s[gY]=a,s}function bY({layoutId:e}){const t=P.useContext(cw).id;return t&&e!==void 0?t+"-"+e:e}function _Y(e,t){P.useContext(P5).strict}function wY(e){const{drag:t,layout:r}=vc;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function xY(e){function t(n,a={}){return yY(e(n,a))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,a)=>(r.has(a)||r.set(a,t(a)),r.get(a))})}const SY=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function dw(e){return typeof e!="string"||e.includes("-")?!1:!!(SY.indexOf(e)>-1||/[A-Z]/u.test(e))}const t0={};function PY(e){Object.assign(t0,e)}const Mh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vo=new Set(Mh);function M5(e,{layout:t,layoutId:r}){return Vo.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!t0[e]||e==="opacity")}const ir=e=>!!(e&&e.getVelocity),$Y={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},OY=Mh.length;function CY(e,t,r){let n="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),D5=j5("--"),TY=j5("var(--"),fw=e=>TY(e)?EY.test(e.split("/*")[0].trim()):!1,EY=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,MY=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ro=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},Ef={...Pc,transform:e=>Ro(0,1,e)},Cm={...Pc,default:1},Mf=e=>Math.round(e*1e5)/1e5,hw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,jY=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,DY=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function jh(e){return typeof e=="string"}function IY(e){return e==null}const Dh=e=>({test:t=>jh(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),no=Dh("deg"),ha=Dh("%"),de=Dh("px"),kY=Dh("vh"),AY=Dh("vw"),B$={...ha,parse:e=>ha.parse(e)/100,transform:e=>ha.transform(e*100)},W$={...Pc,transform:Math.round},I5={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,size:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,rotate:no,rotateX:no,rotateY:no,rotateZ:no,scale:Cm,scaleX:Cm,scaleY:Cm,scaleZ:Cm,skew:no,skewX:no,skewY:no,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:Ef,originX:B$,originY:B$,originZ:de,zIndex:W$,backgroundPositionX:de,backgroundPositionY:de,fillOpacity:Ef,strokeOpacity:Ef,numOctaves:W$};function mw(e,t,r){const{style:n,vars:a,transform:i,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(D5(d)){a[d]=f;continue}const h=I5[d],v=MY(f,h);if(Vo.has(d)){if(l=!0,i[d]=v,!c)continue;f!==(h.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=v):n[d]=v}if(t.transform||(l||r?n.transform=CY(e.transform,c,r):n.transform&&(n.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:h=0}=s;n.transformOrigin=`${d} ${f} ${h}`}}const vw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function k5(e,t,r){for(const n in t)!ir(t[n])&&!M5(n,r)&&(e[n]=t[n])}function RY({transformTemplate:e},t){return P.useMemo(()=>{const r=vw();return mw(r,t,e),Object.assign({},r.vars,r.style)},[t])}function LY(e,t){const r=e.style||{},n={};return k5(n,r,e),Object.assign(n,RY(e,t)),n}function FY(e,t){const r={},n=LY(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const NY=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function r0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||NY.has(e)}let A5=e=>!r0(e);function zY(e){e&&(A5=t=>t.startsWith("on")?!r0(t):e(t))}try{zY(require("@emotion/is-prop-valid").default)}catch{}function BY(e,t,r){const n={};for(const a in e)a==="values"&&typeof e.values=="object"||(A5(a)||r===!0&&r0(a)||!t&&!r0(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}function V$(e,t,r){return typeof e=="string"?e:de.transform(t+r*e)}function WY(e,t,r){const n=V$(t,e.x,e.width),a=V$(r,e.y,e.height);return`${n} ${a}`}const VY={offset:"stroke-dashoffset",array:"stroke-dasharray"},HY={offset:"strokeDashoffset",array:"strokeDasharray"};function UY(e,t,r=1,n=0,a=!0){e.pathLength=1;const i=a?VY:HY;e[i.offset]=de.transform(-n);const s=de.transform(t),l=de.transform(r);e[i.array]=`${s} ${l}`}function pw(e,{attrX:t,attrY:r,attrScale:n,originX:a,originY:i,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...c},d,f){if(mw(e,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:v,dimensions:b}=e;h.transform&&(b&&(v.transform=h.transform),delete h.transform),b&&(a!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=WY(b,a!==void 0?a:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),s!==void 0&&UY(h,s,l,u,!1)}const R5=()=>({...vw(),attrs:{}}),gw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function YY(e,t,r,n){const a=P.useMemo(()=>{const i=R5();return pw(i,t,gw(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};k5(i,e.style,e),a.style={...i,...a.style}}return a}function GY(e=!1){return(r,n,a,{latestValues:i},s)=>{const u=(dw(r)?YY:FY)(n,i,s,r),c=BY(n,typeof r=="string",e),d=r!==P.Fragment?{...c,...u,ref:a}:{},{children:f}=n,h=P.useMemo(()=>ir(f)?f.get():f,[f]);return P.createElement(r,{...d,children:h})}}function L5(e,{style:t,vars:r},n,a){Object.assign(e.style,t,a&&a.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const F5=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function N5(e,t,r,n){L5(e,t,void 0,n);for(const a in t.attrs)e.setAttribute(F5.has(a)?a:ep(a),t.attrs[a])}function yw(e,t,r){var n;const{style:a}=e,i={};for(const s in a)(ir(a[s])||t.style&&ir(t.style[s])||M5(s,e)||((n=r==null?void 0:r.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(i[s]=a[s]);return r&&a&&typeof a.willChange=="string"&&(r.applyWillChange=!1),i}function z5(e,t,r){const n=yw(e,t,r);for(const a in e)if(ir(e[a])||ir(t[a])){const i=Mh.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[i]=e[a]}return n}function H$(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function bw(e,t,r,n){if(typeof t=="function"){const[a,i]=H$(n);t=t(r!==void 0?r:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=H$(n);t=t(r!==void 0?r:e.custom,a,i)}return t}function B5(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const ab=e=>Array.isArray(e),qY=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),QY=e=>ab(e)?e[e.length-1]||0:e;function yv(e){const t=ir(e)?e.get():e;return qY(t)?t.toValue():t}const W5=new Set(["opacity","clipPath","filter","transform"]);function V5(e){if(Vo.has(e))return"transform";if(W5.has(e))return ep(e)}function rp(e,t){e.indexOf(t)===-1&&e.push(t)}function np(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function KY({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},a,i,s,l){const u={latestValues:ZY(a,i,s,l?!1:e,t),renderState:r()};return n&&(u.mount=c=>n(a,c,u)),u}const H5=e=>(t,r)=>{const n=P.useContext(J0),a=P.useContext(Eh),i=()=>KY(e,t,n,a,r);return r?i():B5(i)};function XY(e,t){const r=V5(t);r&&rp(e,r)}function U$(e,t,r){const n=Array.isArray(t)?t:[t];for(let a=0;a{for(const _ in $){let S=$[_];if(Array.isArray(S)){const T=b?S.length-1:0;S=S[T]}S!==null&&(s[_]=S)}for(const _ in y)s[_]=y[_]}),u&&(f&&d!==!1&&!uh(f)&&U$(e,f,$=>{for(const y in $)XY(l,y)}),l.length&&(s.willChange=l.join(","))),s}const{schedule:Ze,cancel:ci,state:Gt,steps:Jg}=O5(typeof requestAnimationFrame<"u"?requestAnimationFrame:sr,!0),JY={useVisualState:H5({scrapeMotionValuesFromProps:z5,createRenderState:R5,onMount:(e,t,{renderState:r,latestValues:n})=>{Ze.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ze.render(()=>{pw(r,n,gw(t.tagName),e.transformTemplate),N5(t,r)})}})},eG={useVisualState:H5({applyWillChange:!0,scrapeMotionValuesFromProps:yw,createRenderState:vw})};function tG(e,{forwardMotionProps:t=!1},r,n){return{...dw(e)?JY:eG,preloadedFeatures:r,useRender:GY(t),createVisualElement:n,Component:e}}function Ka(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const U5=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ap(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const rG=e=>t=>U5(t)&&e(t,ap(t));function ei(e,t,r,n){return Ka(e,t,rG(r),n)}const nG=(e,t)=>r=>t(e(r)),ti=(...e)=>e.reduce(nG);function Y5(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Y$=Y5("dragHorizontal"),G$=Y5("dragVertical");function G5(e){let t=!1;if(e==="y")t=G$();else if(e==="x")t=Y$();else{const r=Y$(),n=G$();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function q5(){const e=G5(!0);return e?(e(),!1):!0}class Ho{constructor(t){this.isMounted=!1,this.node=t}update(){}}function q$(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",a=(i,s)=>{if(i.pointerType==="touch"||q5())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t);const u=l[n];u&&Ze.postRender(()=>u(i,s))};return ei(e.current,r,a,{passive:!e.getProps()[n]})}class aG extends Ho{mount(){this.unmount=ti(q$(this.node,!0),q$(this.node,!1))}unmount(){}}class iG extends Ho{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ti(Ka(this.node.current,"focus",()=>this.onFocus()),Ka(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Q5=(e,t)=>t?e===t?!0:Q5(e,t.parentElement):!1;function e1(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,ap(r))}class oG extends Ho{constructor(){super(...arguments),this.removeStartListeners=sr,this.removeEndListeners=sr,this.removeAccessibleListeners=sr,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=ei(window,"pointerup",(l,u)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:f}=this.node.getProps(),h=!f&&!Q5(this.node.current,l.target)?d:c;h&&Ze.update(()=>h(l,u))},{passive:!(n.onTap||n.onPointerUp)}),s=ei(window,"pointercancel",(l,u)=>this.cancelPress(l,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ti(i,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||e1("up",(u,c)=>{const{onTap:d}=this.node.getProps();d&&Ze.postRender(()=>d(u,c))})};this.removeEndListeners(),this.removeEndListeners=Ka(this.node.current,"keyup",s),e1("down",(l,u)=>{this.startPress(l,u)})},r=Ka(this.node.current,"keydown",t),n=()=>{this.isPressing&&e1("cancel",(i,s)=>this.cancelPress(i,s))},a=Ka(this.node.current,"blur",n);this.removeAccessibleListeners=ti(r,a)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ze.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!q5()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ze.postRender(()=>n(t,r))}mount(){const t=this.node.getProps(),r=ei(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Ka(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ti(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ib=new WeakMap,t1=new WeakMap,sG=e=>{const t=ib.get(e.target);t&&t(e)},lG=e=>{e.forEach(sG)};function uG({root:e,...t}){const r=e||document;t1.has(r)||t1.set(r,{});const n=t1.get(r),a=JSON.stringify(t);return n[a]||(n[a]=new IntersectionObserver(lG,{root:e,...t})),n[a]}function cG(e,t,r){const n=uG(t);return ib.set(e,r),n.observe(e),()=>{ib.delete(e),n.unobserve(e)}}const dG={some:0,all:1};class fG extends Ho{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:dG[a]},l=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=c?d:f;h&&h(u)};return cG(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(hG(t,r))&&this.startObserver()}unmount(){}}function hG({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const mG={inView:{Feature:fG},tap:{Feature:oG},focus:{Feature:iG},hover:{Feature:aG}};function K5(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;ne*1e3,ri=e=>e/1e3,vG={type:"spring",stiffness:500,damping:25,restSpeed:10},pG=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gG={type:"keyframes",duration:.8},yG={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bG=(e,{keyframes:t})=>t.length>2?gG:Vo.has(e)?e.startsWith("scale")?pG(t[1]):vG:yG;function _G({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length}function _w(e,t){return e[t]||e.default||e}const wG=e=>e!==null;function op(e,{repeat:t,repeatType:r="loop"},n){const a=e.filter(wG),i=t&&r!=="loop"&&t%2===1?0:a.length-1;return!i||n===void 0?a[i]:n}let bv;function xG(){bv=void 0}const jo={now:()=>(bv===void 0&&jo.set(Gt.isProcessing||sY.useManualTiming?Gt.timestamp:performance.now()),bv),set:e=>{bv=e,queueMicrotask(xG)}},X5=e=>/^0[^.\s]+$/u.test(e);function SG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||X5(e):!0}const Z5=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),PG=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $G(e){const t=PG.exec(e);if(!t)return[,];const[,r,n,a]=t;return[`--${r??n}`,a]}function J5(e,t,r=1){const[n,a]=$G(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return Z5(s)?parseFloat(s):s}return fw(a)?J5(a,t,r+1):a}const OG=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Q$=e=>e===Pc||e===de,K$=(e,t)=>parseFloat(e.split(", ")[t]),X$=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const a=n.match(/^matrix3d\((.+)\)$/u);if(a)return K$(a[1],t);{const i=n.match(/^matrix\((.+)\)$/u);return i?K$(i[1],e):0}},CG=new Set(["x","y","z"]),TG=Mh.filter(e=>!CG.has(e));function EG(e){const t=[];return TG.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const pc={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:X$(4,13),y:X$(5,14)};pc.translateX=pc.x;pc.translateY=pc.y;const ej=e=>t=>t.test(e),MG={test:e=>e==="auto",parse:e=>e},tj=[Pc,de,ha,no,AY,kY,MG],Z$=e=>tj.find(ej(e)),ml=new Set;let ob=!1,sb=!1;function rj(){if(sb){const e=Array.from(ml).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const a=EG(n);a.length&&(r.set(n,a),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const a=r.get(n);a&&a.forEach(([i,s])=>{var l;(l=n.getValue(i))===null||l===void 0||l.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}sb=!1,ob=!1,ml.forEach(e=>e.complete()),ml.clear()}function nj(){ml.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sb=!0)})}function jG(){nj(),rj()}class ww{constructor(t,r,n,a,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=a,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ml.add(this),ob||(ob=!0,Ze.read(nj),Ze.resolveKeyframes(rj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:a}=this;for(let i=0;ir=>!!(jh(r)&&DY.test(r)&&r.startsWith(e)||t&&!IY(r)&&Object.prototype.hasOwnProperty.call(r,t)),aj=(e,t,r)=>n=>{if(!jh(n))return n;const[a,i,s,l]=n.match(hw);return{[e]:parseFloat(a),[t]:parseFloat(i),[r]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},DG=e=>Ro(0,255,e),r1={...Pc,transform:e=>Math.round(DG(e))},sl={test:xw("rgb","red"),parse:aj("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+r1.transform(e)+", "+r1.transform(t)+", "+r1.transform(r)+", "+Mf(Ef.transform(n))+")"};function IG(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}const lb={test:xw("#"),parse:IG,transform:sl.transform},Nu={test:xw("hsl","hue"),parse:aj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ha.transform(Mf(t))+", "+ha.transform(Mf(r))+", "+Mf(Ef.transform(n))+")"},nr={test:e=>sl.test(e)||lb.test(e)||Nu.test(e),parse:e=>sl.test(e)?sl.parse(e):Nu.test(e)?Nu.parse(e):lb.parse(e),transform:e=>jh(e)?e:e.hasOwnProperty("red")?sl.transform(e):Nu.transform(e)};function kG(e){var t,r;return isNaN(e)&&jh(e)&&(((t=e.match(hw))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(jY))===null||r===void 0?void 0:r.length)||0)>0}const ij="number",oj="color",AG="var",RG="var(",J$="${}",LG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ch(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},a=[];let i=0;const l=t.replace(LG,u=>(nr.test(u)?(n.color.push(i),a.push(oj),r.push(nr.parse(u))):u.startsWith(RG)?(n.var.push(i),a.push(AG),r.push(u)):(n.number.push(i),a.push(ij),r.push(parseFloat(u))),++i,J$)).split(J$);return{values:r,split:l,indexes:n,types:a}}function sj(e){return ch(e).values}function lj(e){const{split:t,types:r}=ch(e),n=t.length;return a=>{let i="";for(let s=0;stypeof e=="number"?0:e;function NG(e){const t=sj(e);return lj(e)(t.map(FG))}const Lo={test:kG,parse:sj,createTransformer:lj,getAnimatableNone:NG},zG=new Set(["brightness","contrast","saturate","opacity"]);function BG(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(hw)||[];if(!n)return e;const a=r.replace(n,"");let i=zG.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+a+")"}const WG=/\b([a-z-]*)\(.*?\)/gu,ub={...Lo,getAnimatableNone:e=>{const t=e.match(WG);return t?t.map(BG).join(" "):e}},VG={...I5,color:nr,backgroundColor:nr,outlineColor:nr,fill:nr,stroke:nr,borderColor:nr,borderTopColor:nr,borderRightColor:nr,borderBottomColor:nr,borderLeftColor:nr,filter:ub,WebkitFilter:ub},Sw=e=>VG[e];function uj(e,t){let r=Sw(e);return r!==ub&&(r=Lo),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const HG=new Set(["auto","none","0"]);function UG(e,t,r){let n=0,a;for(;n{r.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function dj(e){let t;return()=>(t===void 0&&(t=e()),t)}const eO=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Lo.test(e)||e==="0")&&!e.startsWith("url("));function YG(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r{this.resolveFinishedPromise=t})}}function hj(e,t){return t?e*(1e3/t):0}const qG=5;function mj(e,t,r){const n=Math.max(t-qG,0);return hj(r-e(n),t-n)}const n1=.001,QG=.01,KG=10,XG=.05,ZG=1;function JG({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let a,i,s=1-t;s=Ro(XG,ZG,s),e=Ro(QG,KG,ri(e)),s<1?(a=c=>{const d=c*s,f=d*e,h=d-r,v=cb(c,s),b=Math.exp(-f);return n1-h/v*b},i=c=>{const f=c*s*e,h=f*r+r,v=Math.pow(s,2)*Math.pow(c,2)*e,b=Math.exp(-f),p=cb(Math.pow(c,2),s);return(-a(c)+n1>0?-1:1)*((h-v)*b)/p}):(a=c=>{const d=Math.exp(-c*e),f=(c-r)*e+1;return-n1+d*f},i=c=>{const d=Math.exp(-c*e),f=(r-c)*(e*e);return d*f});const l=5/e,u=tq(a,i,l);if(e=Mo(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(u,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const eq=12;function tq(e,t,r){let n=r;for(let a=1;ae[r]!==void 0)}function aq(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tO(e,nq)&&tO(e,rq)){const r=JG(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function vj({keyframes:e,restDelta:t,restSpeed:r,...n}){const a=e[0],i=e[e.length-1],s={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=aq({...n,velocity:-ri(n.velocity||0)}),v=f||0,b=u/(2*Math.sqrt(l*c)),p=i-a,$=ri(Math.sqrt(l/c)),y=Math.abs(p)<5;r||(r=y?.01:2),t||(t=y?.005:.5);let _;if(b<1){const S=cb($,b);_=T=>{const I=Math.exp(-b*$*T);return i-I*((v+b*$*p)/S*Math.sin(S*T)+p*Math.cos(S*T))}}else if(b===1)_=S=>i-Math.exp(-$*S)*(p+(v+$*p)*S);else{const S=$*Math.sqrt(b*b-1);_=T=>{const I=Math.exp(-b*$*T),A=Math.min(S*T,300);return i-I*((v+b*$*p)*Math.sinh(A)+S*p*Math.cosh(A))/S}}return{calculatedDuration:h&&d||null,next:S=>{const T=_(S);if(h)s.done=S>=d;else{let I=v;S!==0&&(b<1?I=mj(_,S,T):I=0);const A=Math.abs(I)<=r,N=Math.abs(i-T)<=t;s.done=A&&N}return s.value=s.done?i:T,s}}}function rO({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:l,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},v=z=>l!==void 0&&zu,b=z=>l===void 0?u:u===void 0||Math.abs(l-z)-p*Math.exp(-z/n),S=z=>y+_(z),T=z=>{const q=_(z),Q=S(z);h.done=Math.abs(q)<=c,h.value=h.done?y:Q};let I,A;const N=z=>{v(h.value)&&(I=z,A=vj({keyframes:[h.value,b(h.value)],velocity:mj(S,z,h.value),damping:a,stiffness:i,restDelta:c,restSpeed:d}))};return N(0),{calculatedDuration:null,next:z=>{let q=!1;return!A&&I===void 0&&(q=!0,T(z),N(z)),I!==void 0&&z>=I?A.next(z-I):(!q&&T(z),h)}}}const pj=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,iq=1e-7,oq=12;function sq(e,t,r,n,a){let i,s,l=0;do s=t+(r-t)/2,i=pj(s,n,a)-e,i>0?r=s:t=s;while(Math.abs(i)>iq&&++lsq(i,0,1,e,r);return i=>i===0||i===1?i:pj(a(i),t,n)}const lq=Ih(.42,0,1,1),uq=Ih(0,0,.58,1),gj=Ih(.42,0,.58,1),cq=e=>Array.isArray(e)&&typeof e[0]!="number",yj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bj=e=>t=>1-e(1-t),Pw=e=>1-Math.sin(Math.acos(e)),_j=bj(Pw),dq=yj(Pw),wj=Ih(.33,1.53,.69,.99),$w=bj(wj),fq=yj($w),hq=e=>(e*=2)<1?.5*$w(e):.5*(2-Math.pow(2,-10*(e-1))),nO={linear:sr,easeIn:lq,easeInOut:gj,easeOut:uq,circIn:Pw,circInOut:dq,circOut:_j,backIn:$w,backInOut:fq,backOut:wj,anticipate:hq},aO=e=>{if(Array.isArray(e)){nb(e.length===4);const[t,r,n,a]=e;return Ih(t,r,n,a)}else if(typeof e=="string")return nb(nO[e]!==void 0),nO[e];return e},dh=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},mt=(e,t,r)=>e+(t-e)*r;function a1(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function mq({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let a=0,i=0,s=0;if(!t)a=i=s=r;else{const l=r<.5?r*(1+t):r+t-r*t,u=2*r-l;a=a1(u,l,e+1/3),i=a1(u,l,e),s=a1(u,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function n0(e,t){return r=>r>0?t:e}const i1=(e,t,r)=>{const n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},vq=[lb,sl,Nu],pq=e=>vq.find(t=>t.test(e));function iO(e){const t=pq(e);if(!t)return!1;let r=t.parse(e);return t===Nu&&(r=mq(r)),r}const oO=(e,t)=>{const r=iO(e),n=iO(t);if(!r||!n)return n0(e,t);const a={...r};return i=>(a.red=i1(r.red,n.red,i),a.green=i1(r.green,n.green,i),a.blue=i1(r.blue,n.blue,i),a.alpha=mt(r.alpha,n.alpha,i),sl.transform(a))},db=new Set(["none","hidden"]);function gq(e,t){return db.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function yq(e,t){return r=>mt(e,t,r)}function Ow(e){return typeof e=="number"?yq:typeof e=="string"?fw(e)?n0:nr.test(e)?oO:wq:Array.isArray(e)?xj:typeof e=="object"?nr.test(e)?oO:bq:n0}function xj(e,t){const r=[...e],n=r.length,a=e.map((i,s)=>Ow(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in n)r[i]=n[i](a);return r}}function _q(e,t){var r;const n=[],a={color:0,var:0,number:0};for(let i=0;i{const r=Lo.createTransformer(t),n=ch(e),a=ch(t);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?db.has(e)&&!a.values.length||db.has(t)&&!n.values.length?gq(e,t):ti(xj(_q(n,a),a.values),r):n0(e,t)};function Sj(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?mt(e,t,r):Ow(e)(e,t)}function xq(e,t,r){const n=[],a=r||Sj,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=xq(t,n,a),l=s.length,u=c=>{let d=0;if(l>1)for(;du(Ro(e[0],e[i-1],c)):u}function Pq(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const a=dh(0,t,n);e.push(mt(r,1,a))}}function $q(e){const t=[0];return Pq(t,e.length-1),t}function Oq(e,t){return e.map(r=>r*t)}function Cq(e,t){return e.map(()=>t||gj).splice(0,e.length-1)}function a0({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const a=cq(n)?n.map(aO):aO(n),i={done:!1,value:t[0]},s=Oq(r&&r.length===t.length?r:$q(t),e),l=Sq(s,t,{ease:Array.isArray(a)?a:Cq(t,a)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const sO=2e4;function Tq(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=sO?1/0:t}const Eq=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Ze.update(t,!0),stop:()=>ci(t),now:()=>Gt.isProcessing?Gt.timestamp:jo.now()}},Mq={decay:rO,inertia:rO,tween:a0,keyframes:a0,spring:vj},jq=e=>e/100;class Cw extends fj{constructor({KeyframeResolver:t=ww,...r}){super(r),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:a,keyframes:i}=this.options,s=(l,u)=>this.onKeyframesResolved(l,u);n&&a&&a.owner?this.resolver=a.owner.resolveKeyframes(i,s,n,a):this.resolver=new t(i,s,n,a),this.resolver.scheduleResolve()}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:i,velocity:s=0}=this.options,l=Mq[r]||a0;let u,c;l!==a0&&typeof t[0]!="number"&&(u=ti(jq,Sj(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(c=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=Tq(d));const{calculatedDuration:f}=d,h=f+a,v=h*(n+1)-a;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:u,calculatedDuration:f,resolvedDuration:h,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:z}=this.options;return{done:!0,value:z[z.length-1]}}const{finalKeyframe:a,generator:i,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=n;if(this.startTime===null)return i.next(0);const{delay:h,repeat:v,repeatType:b,repeatDelay:p,onUpdate:$}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-h*(this.speed>=0?1:-1),_=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,T=i;if(v){const z=Math.min(this.currentTime,d)/f;let q=Math.floor(z),Q=z%1;!Q&&z>=1&&(Q=1),Q===1&&q--,q=Math.min(q,v+1),!!(q%2)&&(b==="reverse"?(Q=1-Q,p&&(Q-=p/f)):b==="mirror"&&(T=s)),S=Ro(0,1,Q)*f}const I=_?{done:!1,value:u[0]}:T.next(S);l&&(I.value=l(I.value));let{done:A}=I;!_&&c!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return N&&a!==void 0&&(I.value=op(u,this.options,a)),$&&$(I.value),N&&this.finish(),I}get duration(){const{resolved:t}=this;return t?ri(t.calculatedDuration):0}get time(){return ri(this.currentTime)}set time(t){t=Mo(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=ri(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Eq,onPlay:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),r&&r();const n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=n),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Pj=e=>Array.isArray(e)&&typeof e[0]=="number";function $j(e){return!!(!e||typeof e=="string"&&e in Tw||Pj(e)||Array.isArray(e)&&e.every($j))}const df=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Tw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:df([0,.65,.55,1]),circOut:df([.55,0,1,.45]),backIn:df([.31,.01,.66,-.59]),backOut:df([.33,1.53,.69,.99])};function Dq(e){return Oj(e)||Tw.easeOut}function Oj(e){if(e)return Pj(e)?df(e):Array.isArray(e)?e.map(Dq):Tw[e]}function Iq(e,t,r,{delay:n=0,duration:a=300,repeat:i=0,repeatType:s="loop",ease:l,times:u}={}){const c={[t]:r};u&&(c.offset=u);const d=Oj(l);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:n,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const kq=dj(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),i0=10,Aq=2e4;function Rq(e){return e.type==="spring"||!$j(e.ease)}function Lq(e,t){const r=new Cw({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const a=[];let i=0;for(;!n.done&&ithis.onKeyframesResolved(i,s),r,n),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:a=300,times:i,ease:s,type:l,motionValue:u,name:c}=this.options;if(!(!((n=u.owner)===null||n===void 0)&&n.current))return!1;if(Rq(this.options)){const{onComplete:f,onUpdate:h,motionValue:v,...b}=this.options,p=Lq(t,b);t=p.keyframes,t.length===1&&(t[1]=t[0]),a=p.duration,i=p.times,s=p.ease,l="keyframes"}const d=Iq(u.owner.current,c,t,{...this.options,duration:a,times:i,ease:s});return d.startTime=jo.now(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;u.set(op(t,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:a,times:i,type:l,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return ri(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return ri(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=Mo(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return sr;const{animation:n}=r;n.timeline=t,n.onfinish=null}return sr}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:a,type:i,ease:s,times:l}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,...h}=this.options,v=new Cw({...h,keyframes:n,duration:a,type:i,ease:s,times:l,isGenerator:!0}),b=Mo(this.time);c.setWithVelocity(v.sample(b-i0).value,v.sample(b).value,i0)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:a,repeatType:i,damping:s,type:l}=t;return kq()&&n&&W5.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!a&&i!=="mirror"&&s!==0&&l!=="inertia"}}function Fq(e,t){let r;const n=()=>{const{currentTime:a}=t,s=(a===null?0:a.value)/100;r!==s&&e(s),r=s};return Ze.update(n,!0),()=>ci(n)}const Nq=dj(()=>window.ScrollTimeline!==void 0);class zq{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n{if(Nq()&&n.attachTimeline)n.attachTimeline(t);else return n.pause(),Fq(a=>{n.time=n.duration*a},t)});return()=>{r.forEach((n,a)=>{n&&n(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let r=0;rr[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Ew=(e,t,r,n={},a,i,s)=>l=>{const u=_w(n,e)||{},c=u.delay||n.delay||0;let{elapsed:d=0}=n;d=d-Mo(c);let f={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{l(),u.onComplete&&u.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:a};_G(u)||(f={...f,...bG(e,f)}),f.duration&&(f.duration=Mo(f.duration)),f.repeatDelay&&(f.repeatDelay=Mo(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!i&&t.get()!==void 0){const v=op(f.keyframes,u);if(v!==void 0)return Ze.update(()=>{f.onUpdate(v),f.onComplete()}),new zq([])}return!i&&lO.supports(f)?new lO(f):new Cw(f)};class Mw{constructor(){this.subscriptions=[]}add(t){return rp(this.subscriptions,t),()=>np(this.subscriptions,t)}notify(t,r,n){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class Cj{constructor(t,r={}){this.version="11.3.8",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,a=!0)=>{const i=jo.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=jo.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Bq(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Mw);const n=this.events[t].add(r);return t==="change"?()=>{n(),Ze.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=jo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>uO)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,uO);return hj(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fh(e,t){return new Cj(e,t)}function Wq(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,fh(r))}function Vq(e,t){const r=ip(e,t);let{transitionEnd:n={},transition:a={},...i}=r||{};i={...i,...n};for(const s in i){const l=QY(i[s]);Wq(e,s,l)}}function Tj(e){return e.getProps()[$5]}class Hq extends Cj{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const r=V5(t);if(!r)return;const n=this.counts.get(r)||0;this.counts.set(r,n+1),n===0&&(this.output.push(r),this.update());let a=!1;return()=>{if(a)return;a=!0;const i=this.counts.get(r)-1;this.counts.set(r,i),i===0&&(np(this.output,r),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function Uq(e){return!!(ir(e)&&e.add)}function fb(e,t){var r;if(!e.applyWillChange)return;let n=e.getValue("willChange");if(!n&&!(!((r=e.props.style)===null||r===void 0)&&r.willChange)&&(n=new Hq("auto"),e.addValue("willChange",n)),Uq(n))return n.add(t)}function Yq({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Ej(e,t,{delay:r=0,transitionOverride:n,type:a}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;n&&(s=n);const c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in u){const h=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),v=u[f];if(v===void 0||d&&Yq(d,f))continue;const b={delay:r,elapsed:0,..._w(s||{},f)};let p=!1;if(window.HandoffAppearAnimations){const y=Tj(e);if(y){const _=window.HandoffAppearAnimations(y,f,h,Ze);_!==null&&(b.elapsed=_,p=!0)}}h.start(Ew(f,h,v,e.shouldReduceMotion&&Vo.has(f)?{type:!1}:b,e,p,fb(e,f)));const $=h.animation;$&&c.push($)}return l&&Promise.all(c).then(()=>{Ze.update(()=>{l&&Vq(e,l)})}),c}function hb(e,t,r={}){var n;const a=ip(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(i=r.transitionOverride);const s=a?()=>Promise.all(Ej(e,a,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=i;return Gq(e,t,d+c,f,h,r)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,d]=u==="beforeChildren"?[s,l]:[l,s];return c().then(()=>d())}else return Promise.all([s(),l(r.delay)])}function Gq(e,t,r=0,n=0,a=1,i){const s=[],l=(e.variantChildren.size-1)*n,u=a===1?(c=0)=>c*n:(c=0)=>l-c*n;return Array.from(e.variantChildren).sort(qq).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(hb(c,t,{...i,delay:r+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function qq(e,t){return e.sortNodePosition(t)}function Qq(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const a=t.map(i=>hb(e,i,r));n=Promise.all(a)}else if(typeof t=="string")n=hb(e,t,r);else{const a=typeof t=="function"?ip(e,t,r.custom):t;n=Promise.all(Ej(e,a,r))}return n.then(()=>{Ze.postRender(()=>{e.notify("AnimationComplete",t)})})}const Kq=[...lw].reverse(),Xq=lw.length;function Zq(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Qq(e,r,n)))}function Jq(e){let t=Zq(e),r=cO(),n=!0;const a=u=>(c,d)=>{var f;const h=ip(e,d,u==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:v,transitionEnd:b,...p}=h;c={...c,...p,...b}}return c};function i(u){t=u(e)}function s(u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let v={},b=1/0;for(let $=0;$b&&T,q=!1;const Q=Array.isArray(S)?S:[S];let ve=Q.reduce(a(y),{});I===!1&&(ve={});const{prevResolvedValues:Ee={}}=_,nt={...Ee,...ve},rt=Te=>{z=!0,h.has(Te)&&(q=!0,h.delete(Te)),_.needsAnimating[Te]=!0;const ze=e.getValue(Te);ze&&(ze.liveStyle=!1)};for(const Te in nt){const ze=ve[Te],Pe=Ee[Te];if(v.hasOwnProperty(Te))continue;let H=!1;ab(ze)&&ab(Pe)?H=!K5(ze,Pe):H=ze!==Pe,H?ze!=null?rt(Te):h.add(Te):ze!==void 0&&h.has(Te)?rt(Te):_.protectedKeys[Te]=!0}_.prevProp=S,_.prevResolvedValues=ve,_.isActive&&(v={...v,...ve}),n&&e.blockInitialAnimation&&(z=!1),z&&(!A||q)&&f.push(...Q.map(Te=>({animation:Te,options:{type:y}})))}if(h.size){const $={};h.forEach(y=>{const _=e.getBaseTarget(y),S=e.getValue(y);S&&(S.liveStyle=!0),$[y]=_??null}),f.push({animation:$})}let p=!!f.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(f):Promise.resolve()}function l(u,c){var d;if(r[u].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var v;return(v=h.animationState)===null||v===void 0?void 0:v.setActive(u,c)}),r[u].isActive=c;const f=s(u);for(const h in r)r[h].protectedKeys={};return f}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>r,reset:()=>{r=cO(),n=!0}}}function eQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!K5(t,e):!1}function Vs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cO(){return{animate:Vs(!0),whileInView:Vs(),whileHover:Vs(),whileTap:Vs(),whileDrag:Vs(),whileFocus:Vs(),exit:Vs()}}class tQ extends Ho{constructor(t){super(t),t.animationState||(t.animationState=Jq(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();uh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let rQ=0;class nQ extends Ho{constructor(){super(...arguments),this.id=rQ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const aQ={animation:{Feature:tQ},exit:{Feature:nQ}},dO=(e,t)=>Math.abs(e-t);function iQ(e,t){const r=dO(e.x,t.x),n=dO(e.y,t.y);return Math.sqrt(r**2+n**2)}class Mj{constructor(t,r,{transformPagePoint:n,contextWindow:a,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=s1(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,v=iQ(f.offset,{x:0,y:0})>=3;if(!h&&!v)return;const{point:b}=f,{timestamp:p}=Gt;this.history.push({...b,timestamp:p});const{onStart:$,onMove:y}=this.handlers;h||($&&$(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=o1(h,this.transformPagePoint),Ze.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:v,onSessionEnd:b,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=s1(f.type==="pointercancel"?this.lastMoveEventInfo:o1(h,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,$),b&&b(f,$)},!U5(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=a||window;const s=ap(t),l=o1(s,this.transformPagePoint),{point:u}=l,{timestamp:c}=Gt;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=r;d&&d(t,s1(l,this.history)),this.removeListeners=ti(ei(this.contextWindow,"pointermove",this.handlePointerMove),ei(this.contextWindow,"pointerup",this.handlePointerUp),ei(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ci(this.updatePoint)}}function o1(e,t){return t?{point:t(e.point)}:e}function fO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function s1({point:e},t){return{point:e,delta:fO(e,jj(t)),offset:fO(e,oQ(t)),velocity:sQ(t,.1)}}function oQ(e){return e[0]}function jj(e){return e[e.length-1]}function sQ(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const a=jj(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>Mo(t)));)r--;if(!n)return{x:0,y:0};const i=ri(a.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const s={x:(a.x-n.x)/i,y:(a.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const Dj=1e-4,lQ=1-Dj,uQ=1+Dj,Ij=.01,cQ=0-Ij,dQ=0+Ij;function Xr(e){return e.max-e.min}function fQ(e,t,r){return Math.abs(e-t)<=r}function hO(e,t,r,n=.5){e.origin=n,e.originPoint=mt(t.min,t.max,e.origin),e.scale=Xr(r)/Xr(t),e.translate=mt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=lQ&&e.scale<=uQ||isNaN(e.scale))&&(e.scale=1),(e.translate>=cQ&&e.translate<=dQ||isNaN(e.translate))&&(e.translate=0)}function jf(e,t,r,n){hO(e.x,t.x,r.x,n?n.originX:void 0),hO(e.y,t.y,r.y,n?n.originY:void 0)}function mO(e,t,r){e.min=r.min+t.min,e.max=e.min+Xr(t)}function hQ(e,t,r){mO(e.x,t.x,r.x),mO(e.y,t.y,r.y)}function vO(e,t,r){e.min=t.min-r.min,e.max=e.min+Xr(t)}function Df(e,t,r){vO(e.x,t.x,r.x),vO(e.y,t.y,r.y)}function mQ(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?mt(r,e,n.max):Math.min(e,r)),e}function pO(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function vQ(e,{top:t,left:r,bottom:n,right:a}){return{x:pO(e.x,r,a),y:pO(e.y,t,n)}}function gO(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=dh(t.min,t.max-n,e.min):n>a&&(r=dh(e.min,e.max-a,t.min)),Ro(0,1,r)}function yQ(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const mb=.35;function bQ(e=mb){return e===!1?e=0:e===!0&&(e=mb),{x:yO(e,"left","right"),y:yO(e,"top","bottom")}}function yO(e,t,r){return{min:bO(e,t),max:bO(e,r)}}function bO(e,t){return typeof e=="number"?e:e[t]||0}const _O=()=>({translate:0,scale:1,origin:0,originPoint:0}),zu=()=>({x:_O(),y:_O()}),wO=()=>({min:0,max:0}),wt=()=>({x:wO(),y:wO()});function cn(e){return[e("x"),e("y")]}function kj({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function _Q({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function wQ(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function l1(e){return e===void 0||e===1}function vb({scale:e,scaleX:t,scaleY:r}){return!l1(e)||!l1(t)||!l1(r)}function Qs(e){return vb(e)||Aj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Aj(e){return xO(e.x)||xO(e.y)}function xO(e){return e&&e!=="0%"}function o0(e,t,r){const n=e-r,a=t*n;return r+a}function SO(e,t,r,n,a){return a!==void 0&&(e=o0(e,a,n)),o0(e,r,n)+t}function pb(e,t=0,r=1,n,a){e.min=SO(e.min,t,r,n,a),e.max=SO(e.max,t,r,n,a)}function Rj(e,{x:t,y:r}){pb(e.x,t.translate,t.scale,t.originPoint),pb(e.y,r.translate,r.scale,r.originPoint)}const PO=.999999999999,$O=1.0000000000001;function xQ(e,t,r,n=!1){const a=r.length;if(!a)return;t.x=t.y=1;let i,s;for(let l=0;lPO&&(t.x=1),t.y<$O&&t.y>PO&&(t.y=1)}function uo(e,t){e.min=e.min+t,e.max=e.max+t}function OO(e,t,r,n,a=.5){const i=mt(e.min,e.max,a);pb(e,t,r,i,n)}function Bu(e,t){OO(e.x,t.x,t.scaleX,t.scale,t.originX),OO(e.y,t.y,t.scaleY,t.scale,t.originY)}function Lj(e,t){return kj(wQ(e.getBoundingClientRect(),t))}function SQ(e,t,r){const n=Lj(e,r),{scroll:a}=t;return a&&(uo(n.x,a.offset.x),uo(n.y,a.offset.y)),n}const Fj=({current:e})=>e?e.ownerDocument.defaultView:null,PQ=new WeakMap;class $Q{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=wt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(ap(d,"page").point)},i=(d,f)=>{var h;const{drag:v,dragPropagation:b,onDragStart:p}=this.getProps();if(v&&!b&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=G5(v),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),cn(y=>{let _=this.getAxisMotionValue(y).get()||0;if(ha.test(_)){const{projection:S}=this.visualElement;if(S&&S.layout){const T=S.layout.layoutBox[y];T&&(_=Xr(T)*(parseFloat(_)/100))}}this.originPoint[y]=_}),p&&Ze.postRender(()=>p(d,f)),(h=this.removeWillChange)===null||h===void 0||h.call(this),this.removeWillChange=fb(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:h,dragDirectionLock:v,onDirectionLock:b,onDrag:p}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:$}=f;if(v&&this.currentDirection===null){this.currentDirection=OQ($),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,$),this.updateAxis("y",f.point,$),this.visualElement.render(),p&&p(d,f)},l=(d,f)=>this.stop(d,f),u=()=>cn(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Mj(t,{onSessionStart:a,onStart:i,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Fj(this.visualElement)})}stop(t,r){var n;(n=this.removeWillChange)===null||n===void 0||n.call(this);const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Ze.postRender(()=>s(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:a}=this.getProps();if(!n||!Tm(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=mQ(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;r&&Fu(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=vQ(a.layoutBox,r):this.constraints=!1,this.elastic=bQ(n),i!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&cn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=yQ(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Fu(t))return!1;const n=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=SQ(n,a.root,this.visualElement.getTransformPagePoint());let s=pQ(a.layout.layoutBox,i);if(r){const l=r(_Q(s));this.hasMutatedConstraints=!!l,l&&(s=kj(l))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},c=cn(d=>{if(!Tm(d,r,this.currentDirection))return;let f=u&&u[d]||{};s&&(f={min:0,max:0});const h=a?200:1e6,v=a?40:1e7,b={type:"inertia",velocity:n?t[d]:0,bounceStiffness:h,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,b)});return Promise.all(c).then(l)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Ew(t,n,0,r,this.visualElement,!1,fb(this.visualElement,t)))}stopAnimation(){cn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){cn(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){cn(r=>{const{drag:n}=this.getProps();if(!Tm(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(r);if(a&&a.layout){const{min:s,max:l}=a.layout.layoutBox[r];i.set(t[r]-mt(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Fu(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};cn(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const u=l.get();a[s]=gQ({min:u,max:u},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),cn(s=>{if(!Tm(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];l.set(mt(u,c,a[s]))})}addListeners(){if(!this.visualElement.current)return;PQ.set(this.visualElement,this);const t=this.visualElement.current,r=ei(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();Fu(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Ze.read(n);const s=Ka(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(cn(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{s(),r(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:s=mb,dragMomentum:l=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:l}}}function Tm(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function OQ(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class CQ extends Ho{constructor(t){super(t),this.removeGroupControls=sr,this.removeListeners=sr,this.controls=new $Q(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sr}unmount(){this.removeGroupControls(),this.removeListeners()}}const CO=e=>(t,r)=>{e&&Ze.postRender(()=>e(t,r))};class TQ extends Ho{constructor(){super(...arguments),this.removePointerDownListener=sr}onPointerDown(t){this.session=new Mj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fj(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:CO(t),onStart:CO(r),onMove:n,onEnd:(i,s)=>{delete this.session,a&&Ze.postRender(()=>a(i,s))}}}mount(){this.removePointerDownListener=ei(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Nj(){const e=P.useContext(Eh);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,a=P.useId();return P.useEffect(()=>n(a),[]),!t&&r?[!1,()=>r&&r(a)]:[!0]}function EQ(){return MQ(P.useContext(Eh))}function MQ(e){return e===null?!0:e.isPresent}const _v={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function TO(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;const r=TO(e,t.target.x),n=TO(e,t.target.y);return`${r}% ${n}%`}},jQ={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,a=Lo.parse(e);if(a.length>5)return n;const i=Lo.createTransformer(e),s=typeof a[0]!="number"?1:0,l=r.x.scale*t.x,u=r.y.scale*t.y;a[0+s]/=l,a[1+s]/=u;const c=mt(l,u,.5);return typeof a[2+s]=="number"&&(a[2+s]/=c),typeof a[3+s]=="number"&&(a[3+s]/=c),i(a)}};class DQ extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:i}=t;PY(IQ),i&&(r.group&&r.group.add(i),n&&n.register&&a&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),_v.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:a,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,a||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Ze.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),sw.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function zj(e){const[t,r]=Nj(),n=P.useContext(cw);return w.jsx(DQ,{...e,layoutGroup:n,switchLayoutGroup:P.useContext(C5),isPresent:t,safeToRemove:r})}const IQ={borderRadius:{...Fd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fd,borderTopRightRadius:Fd,borderBottomLeftRadius:Fd,borderBottomRightRadius:Fd,boxShadow:jQ},Bj=["TopLeft","TopRight","BottomLeft","BottomRight"],kQ=Bj.length,EO=e=>typeof e=="string"?parseFloat(e):e,MO=e=>typeof e=="number"||de.test(e);function AQ(e,t,r,n,a,i){a?(e.opacity=mt(0,r.opacity!==void 0?r.opacity:1,RQ(n)),e.opacityExit=mt(t.opacity!==void 0?t.opacity:1,0,LQ(n))):i&&(e.opacity=mt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(dh(e,t,n))}function DO(e,t){e.min=t.min,e.max=t.max}function ln(e,t){DO(e.x,t.x),DO(e.y,t.y)}function IO(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function kO(e,t,r,n,a){return e-=t,e=o0(e,1/r,n),a!==void 0&&(e=o0(e,1/a,n)),e}function FQ(e,t=0,r=1,n=.5,a,i=e,s=e){if(ha.test(t)&&(t=parseFloat(t),t=mt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=mt(i.min,i.max,n);e===i&&(l-=t),e.min=kO(e.min,t,r,l,a),e.max=kO(e.max,t,r,l,a)}function AO(e,t,[r,n,a],i,s){FQ(e,t[r],t[n],t[a],t.scale,i,s)}const NQ=["x","scaleX","originX"],zQ=["y","scaleY","originY"];function RO(e,t,r,n){AO(e.x,t,NQ,r?r.x:void 0,n?n.x:void 0),AO(e.y,t,zQ,r?r.y:void 0,n?n.y:void 0)}function LO(e){return e.translate===0&&e.scale===1}function Vj(e){return LO(e.x)&&LO(e.y)}function BQ(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 Hj(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function FO(e){return Xr(e.x)/Xr(e.y)}function NO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class WQ{constructor(){this.members=[]}add(t){rp(this.members,t),t.scheduleRender()}remove(t){if(np(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(a=>t===a);if(r===0)return!1;let n;for(let a=r;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function VQ(e,t,r){let n="";const a=e.x.translate/t.x,i=e.y.translate/t.y,s=(r==null?void 0:r.z)||0;if((a||i||s)&&(n=`translate3d(${a}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:h,skewX:v,skewY:b}=r;c&&(n=`perspective(${c}px) ${n}`),d&&(n+=`rotate(${d}deg) `),f&&(n+=`rotateX(${f}deg) `),h&&(n+=`rotateY(${h}deg) `),v&&(n+=`skewX(${v}deg) `),b&&(n+=`skewY(${b}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(n+=`scale(${l}, ${u})`),n||"none"}const HQ=(e,t)=>e.depth-t.depth;class UQ{constructor(){this.children=[],this.isDirty=!1}add(t){rp(this.children,t),this.isDirty=!0}remove(t){np(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(HQ),this.isDirty=!1,this.children.forEach(t)}}function YQ(e,t){const r=jo.now(),n=({timestamp:a})=>{const i=a-r;i>=t&&(ci(n),e(i-t))};return Ze.read(n,!0),()=>ci(n)}function GQ(e){return e instanceof SVGElement&&e.tagName!=="svg"}function qQ(e,t,r){const n=ir(e)?e:fh(e);return n.start(Ew("",n,t,r)),n.animation}const Ks={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},u1=["","X","Y","Z"],QQ={visibility:"hidden"},zO=1e3;let KQ=0;function c1(e,t,r,n){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Uj(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?Tj(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?Uj(e.parent):!1:!1}function Yj({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(s={},l=t==null?void 0:t()){this.id=KQ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,window.MotionDebug&&(Ks.totalNodes=Ks.resolvedTargetDeltas=Ks.recalculatedProjection=0),this.nodes.forEach(JQ),this.nodes.forEach(aK),this.nodes.forEach(iK),this.nodes.forEach(eK),window.MotionDebug&&window.MotionDebug.record(Ks)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=YQ(h,250),_v.hasAnimatedSinceResize&&(_v.hasAnimatedSinceResize=!1,this.nodes.forEach(WO))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||d.getDefaultTransition()||cK,{onLayoutAnimationStart:$,onLayoutAnimationComplete:y}=d.getProps(),_=!this.targetLayout||!Hj(this.targetLayout,b)||v,S=!h&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||h&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const T={..._w(p,"layout"),onPlay:$,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else h||WO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ci(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oK),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Uj(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const I=T/1e3;VO(f.x,s.x,I),VO(f.y,s.y,I),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Df(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lK(this.relativeTarget,this.relativeTargetOrigin,h,I),S&&BQ(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=wt()),ln(S,this.relativeTarget)),p&&(this.animationValues=d,AQ(d,c,this.latestValues,I,_,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ci(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ze.update(()=>{_v.hasAnimatedSinceResize=!0,this.currentAnimation=qQ(0,zO,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=s;if(!(!l||!u||!c)){if(this!==s&&this.layout&&c&&Gj(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||wt();const f=Xr(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+f;const h=Xr(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+h}ln(l,u),Bu(l,d),jf(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new WQ),this.sharedNodes.get(s).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(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:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&c1("z",s,c,this.animationValues);for(let d=0;d{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(BO),this.root.sharedNodes.clear()}}}function XQ(e){e.updateLayout()}function ZQ(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=e.layout,{animationType:i}=e.options,s=r.source!==e.layout.source;i==="size"?cn(f=>{const h=s?r.measuredBox[f]:r.layoutBox[f],v=Xr(h);h.min=n[f].min,h.max=h.min+v}):Gj(i,r.layoutBox,n)&&cn(f=>{const h=s?r.measuredBox[f]:r.layoutBox[f],v=Xr(n[f]);h.max=h.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+v)});const l=zu();jf(l,n,r.layoutBox);const u=zu();s?jf(u,e.applyTransform(a,!0),r.measuredBox):jf(u,n,r.layoutBox);const c=!Vj(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:v}=f;if(h&&v){const b=wt();Df(b,r.layoutBox,h.layoutBox);const p=wt();Df(p,n,v.layoutBox),Hj(b,p)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=b,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function JQ(e){window.MotionDebug&&Ks.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function eK(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tK(e){e.clearSnapshot()}function BO(e){e.clearMeasurements()}function rK(e){e.isLayoutDirty=!1}function nK(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function WO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aK(e){e.resolveTargetDelta()}function iK(e){e.calcProjection()}function oK(e){e.resetSkewAndRotation()}function sK(e){e.removeLeadSnapshot()}function VO(e,t,r){e.translate=mt(t.translate,0,r),e.scale=mt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function HO(e,t,r,n){e.min=mt(t.min,r.min,n),e.max=mt(t.max,r.max,n)}function lK(e,t,r,n){HO(e.x,t.x,r.x,n),HO(e.y,t.y,r.y,n)}function uK(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cK={duration:.45,ease:[.4,0,.1,1]},UO=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),YO=UO("applewebkit/")&&!UO("chrome/")?Math.round:sr;function GO(e){e.min=YO(e.min),e.max=YO(e.max)}function dK(e){GO(e.x),GO(e.y)}function Gj(e,t,r){return e==="position"||e==="preserve-aspect"&&!fQ(FO(t),FO(r),.2)}const fK=Yj({attachResizeListener:(e,t)=>Ka(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),d1={current:void 0},qj=Yj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!d1.current){const e=new fK({});e.mount(window),e.setOptions({layoutScroll:!0}),d1.current=e}return d1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hK={pan:{Feature:TQ},drag:{Feature:CQ,ProjectionNode:qj,MeasureLayout:zj}},gb={current:null},Qj={current:!1};function mK(){if(Qj.current=!0,!!iw)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gb.current=e.matches;e.addListener(t),t()}else gb.current=!1}function vK(e,t,r){for(const n in t){const a=t[n],i=r[n];if(ir(a))e.addValue(n,a);else if(ir(i))e.addValue(n,fh(a,{owner:e}));else if(i!==a)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(n);e.addValue(n,fh(s!==void 0?s:a,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const qO=new WeakMap,pK=[...tj,nr,Lo],gK=e=>pK.find(ej(e)),QO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],yK=uw.length;class bK{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:i,visualState:s},l={}){this.applyWillChange=!1,this.resolveKeyframes=(h,v,b,p)=>new this.KeyframeResolver(h,v,b,p,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ww,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,Ze.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=tp(r),this.isVariantNode=E5(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(const h in f){const v=f[h];u[h]!==void 0&&ir(v)&&v.set(u[h],!1)}}mount(t){this.current=t,qO.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Qj.current||mK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gb.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){qO.delete(this.current),this.projection&&this.projection.unmount(),ci(this.notifyUpdate),ci(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){const n=Vo.has(t),a=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ze.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{a(),i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in vc){const r=vc[t];if(!r)continue;const{isEnabled:n,Feature:a}=r;if(!this.features[t]&&a&&n(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=fh(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(Z5(a)||X5(a))?a=parseFloat(a):!gK(a)&&Lo.test(r)&&(a=uj(t,r)),this.setBaseTarget(t,ir(a)?a.get():a)),ir(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const s=bw(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);s&&(a=s[t])}if(n&&a!==void 0)return a;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ir(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Mw),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Kj extends bK{constructor(){super(...arguments),this.KeyframeResolver=cj}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}}function _K(e){return window.getComputedStyle(e)}class wK extends Kj{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=L5}readValueFromInstance(t,r){if(Vo.has(r)){const n=Sw(r);return n&&n.default||0}else{const n=_K(t),a=(D5(r)?n.getPropertyValue(r):n[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Lj(t,r)}build(t,r,n){mw(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return yw(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ir(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class xK extends Kj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=wt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Vo.has(r)){const n=Sw(r);return n&&n.default||0}return r=F5.has(r)?r:ep(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return z5(t,r,n)}build(t,r,n){pw(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,a){N5(t,r,n,a)}mount(t){this.isSVGTag=gw(t.tagName),super.mount(t)}}const SK=(e,t)=>dw(e)?new xK(t):new wK(t,{allowProjection:e!==P.Fragment}),PK={layout:{ProjectionNode:qj,MeasureLayout:zj}},$K={...aQ,...mG,...hK,...PK},va=xY((e,t)=>tG(e,t,$K,SK));function Xj(){const e=P.useRef(!1);return ow(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function OK(){const e=Xj(),[t,r]=P.useState(0),n=P.useCallback(()=>{e.current&&r(t+1)},[t]);return[P.useCallback(()=>Ze.postRender(n),[n]),t]}class CK extends P.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function TK({children:e,isPresent:t}){const r=P.useId(),n=P.useRef(null),a=P.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=P.useContext(aw);return P.useInsertionEffect(()=>{const{width:s,height:l,top:u,left:c}=a.current;if(t||!n.current||!s||!l)return;n.current.dataset.motionPopId=r;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${s}px !important; + height: ${l}px !important; + top: ${u}px !important; + left: ${c}px !important; + } + `),()=>{document.head.removeChild(d)}},[t]),w.jsx(CK,{isPresent:t,childRef:n,sizeRef:a,children:P.cloneElement(e,{ref:n})})}const f1=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:a,presenceAffectsLayout:i,mode:s})=>{const l=B5(EK),u=P.useId(),c=P.useMemo(()=>({id:u,initial:t,isPresent:r,custom:a,onExitComplete:d=>{l.set(d,!0);for(const f of l.values())if(!f)return;n&&n()},register:d=>(l.set(d,!1),()=>l.delete(d))}),i?[Math.random()]:[r]);return P.useMemo(()=>{l.forEach((d,f)=>l.set(f,!1))},[r]),P.useEffect(()=>{!r&&!l.size&&n&&n()},[r]),s==="popLayout"&&(e=w.jsx(TK,{isPresent:r,children:e})),w.jsx(Eh.Provider,{value:c,children:e})};function EK(){return new Map}function MK(e){return P.useEffect(()=>()=>e(),[])}const Xs=e=>e.key||"";function jK(e,t){e.forEach(r=>{const n=Xs(r);t.set(n,r)})}function DK(e){const t=[];return P.Children.forEach(e,r=>{P.isValidElement(r)&&t.push(r)}),t}const Cl=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:a,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const l=P.useContext(cw).forceRender||OK()[0],u=Xj(),c=DK(e);let d=c;const f=P.useRef(new Map).current,h=P.useRef(d),v=P.useRef(new Map).current,b=P.useRef(!0);if(ow(()=>{b.current=!1,jK(c,v),h.current=d}),MK(()=>{b.current=!0,v.clear(),f.clear()}),b.current)return w.jsx(w.Fragment,{children:d.map(_=>w.jsx(f1,{isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:s,children:_},Xs(_)))});d=[...d];const p=h.current.map(Xs),$=c.map(Xs),y=p.length;for(let _=0;_{if($.indexOf(S)!==-1)return;const T=v.get(S);if(!T)return;const I=p.indexOf(S);let A=_;if(!A){const N=()=>{f.delete(S);const z=Array.from(v.keys()).filter(q=>!$.includes(q));if(z.forEach(q=>v.delete(q)),h.current=c.filter(q=>{const Q=Xs(q);return Q===S||z.includes(Q)}),!f.size){if(u.current===!1)return;l(),n&&n()}};A=w.jsx(f1,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:s,children:T},Xs(T)),f.set(S,A)}d.splice(I,0,A)}),d=d.map(_=>{const S=_.key;return f.has(S)?_:w.jsx(f1,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:_},Xs(_))}),w.jsx(w.Fragment,{children:f.size?d:d.map(_=>P.cloneElement(_))})};var IK={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Zj=P.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:a,requestClose:i=!1,position:s="bottom",duration:l=5e3,containerStyle:u,motionVariants:c=IK,toastSpacing:d="0.5rem"}=e,[f,h]=P.useState(l),v=EQ();L$(()=>{v||n==null||n()},[v]),L$(()=>{h(l)},[l]);const b=()=>h(null),p=()=>h(l),$=()=>{v&&a()};P.useEffect(()=>{v&&i&&a()},[v,i,a]),iY($,f);const y=P.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u}),[u,d]),_=P.useMemo(()=>rY(s),[s]);return w.jsx(va.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:b,onHoverEnd:p,custom:{position:s},style:_,children:w.jsx(fe.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:yo(r,{id:t,onClose:$})})})});Zj.displayName="ToastComponent";var KO={path:w.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),w.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Qr=he((e,t)=>{const{as:r,viewBox:n,color:a="currentColor",focusable:i=!1,children:s,className:l,__css:u,...c}=e,d=Ae("chakra-icon",l),f=fi("Icon",e),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a,...u,...f},v={ref:t,focusable:i,className:d,__css:h},b=n??KO.viewBox;if(r&&typeof r!="string")return w.jsx(fe.svg,{as:r,...v,...c});const p=s??KO.path;return w.jsx(fe.svg,{verticalAlign:"middle",viewBox:b,...v,...c,children:p})});Qr.displayName="Icon";function Jj(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:a={}}=e,i=P.Children.toArray(e.path),s=he((l,u)=>w.jsx(Qr,{ref:u,viewBox:t,...a,...l,children:i.length?i:w.jsx("path",{fill:"currentColor",d:r})}));return s.displayName=n,s}function kK(e){return w.jsx(Qr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function AK(e){return w.jsx(Qr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function XO(e){return w.jsx(Qr,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var RK=HM({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Tl=he((e,t)=>{const r=fi("Spinner",e),{label:n="Loading...",thickness:a="2px",speed:i="0.45s",emptyColor:s="transparent",className:l,...u}=br(e),c=Ae("chakra-spinner",l),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:a,borderBottomColor:s,borderLeftColor:s,animation:`${RK} ${i} linear infinite`,...r};return w.jsx(fe.div,{ref:t,__css:d,className:c,...u,children:n&&w.jsx(fe.span,{srOnly:!0,children:n})})});Tl.displayName="Spinner";var[LK,jw]=Lr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[FK,Dw]=Lr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),eD={info:{icon:AK,colorScheme:"blue"},warning:{icon:XO,colorScheme:"orange"},success:{icon:kK,colorScheme:"green"},error:{icon:XO,colorScheme:"red"},loading:{icon:Tl,colorScheme:"blue"}};function NK(e){return eD[e].colorScheme}function zK(e){return eD[e].icon}var tD=he(function(t,r){const n=Dw(),{status:a}=jw(),i={display:"inline",...n.description};return w.jsx(fe.div,{ref:r,"data-status":a,...t,className:Ae("chakra-alert__desc",t.className),__css:i})});tD.displayName="AlertDescription";function rD(e){const{status:t}=jw(),r=zK(t),n=Dw(),a=t==="loading"?n.spinner:n.icon;return w.jsx(fe.span,{display:"inherit","data-status":t,...e,className:Ae("chakra-alert__icon",e.className),__css:a,children:e.children||w.jsx(r,{h:"100%",w:"100%"})})}rD.displayName="AlertIcon";var nD=he(function(t,r){const n=Dw(),{status:a}=jw();return w.jsx(fe.div,{ref:r,"data-status":a,...t,className:Ae("chakra-alert__title",t.className),__css:n.title})});nD.displayName="AlertTitle";var aD=he(function(t,r){var n;const{status:a="info",addRole:i=!0,...s}=br(t),l=(n=t.colorScheme)!=null?n:NK(a),u=Wo("Alert",{...t,colorScheme:l}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return w.jsx(LK,{value:{status:a},children:w.jsx(FK,{value:u,children:w.jsx(fe.div,{"data-status":a,role:i?"alert":void 0,ref:r,...s,className:Ae("chakra-alert",t.className),__css:c})})})});aD.displayName="Alert";function BK(e){return w.jsx(Qr,{focusable:"false","aria-hidden":!0,...e,children:w.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var Iw=he(function(t,r){const n=fi("CloseButton",t),{children:a,isDisabled:i,__css:s,...l}=br(t),u={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return w.jsx(fe.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...u,...n,...s},...l,children:a||w.jsx(BK,{width:"1em",height:"1em"})})});Iw.displayName="CloseButton";var WK={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},If=VK(WK);function VK(e){let t=e;const r=new Set,n=a=>{t=a(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:a=>(r.add(a),()=>{n(()=>e),r.delete(a)}),removeToast:(a,i)=>{n(s=>({...s,[i]:s[i].filter(l=>l.id!=a)}))},notify:(a,i)=>{const s=HK(a,i),{position:l,id:u}=s;return n(c=>{var d,f;const v=l.includes("top")?[s,...(d=c[l])!=null?d:[]]:[...(f=c[l])!=null?f:[],s];return{...c,[l]:v}}),u},update:(a,i)=>{a&&n(s=>{const l={...s},{position:u,index:c}=R$(l,a);return u&&c!==-1&&(l[u][c]={...l[u][c],...i,message:YK(i)}),l})},closeAll:({positions:a}={})=>{n(i=>(a??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((u,c)=>(u[c]=i[c].map(d=>({...d,requestClose:!0})),u),{...i}))},close:a=>{n(i=>{const s=S5(i,a);return s?{...i,[s]:i[s].map(l=>l.id==a?{...l,requestClose:!0}:l)}:i})},isActive:a=>!!R$(If.getState(),a).position}}var ZO=0;function HK(e,t={}){var r,n;ZO+=1;const a=(r=t.id)!=null?r:ZO,i=(n=t.position)!=null?n:"bottom";return{id:a,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>If.removeToast(String(a),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var UK=e=>{const{status:t,variant:r="solid",id:n,title:a,isClosable:i,onClose:s,description:l,colorScheme:u,icon:c}=e,d=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return w.jsxs(aD,{addRole:!1,status:t,variant:r,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[w.jsx(rD,{children:c}),w.jsxs(fe.div,{flex:"1",maxWidth:"100%",children:[a&&w.jsx(nD,{id:d==null?void 0:d.title,children:a}),l&&w.jsx(tD,{id:d==null?void 0:d.description,display:"block",children:l})]}),i&&w.jsx(Iw,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function YK(e={}){const{render:t,toastComponent:r=UK}=e;return a=>typeof t=="function"?t({...a,...e}):w.jsx(r,{...a,...e})}var[GK,u1e]=Lr({name:"ToastOptionsContext",strict:!1}),qK=e=>{const t=P.useSyncExternalStore(If.subscribe,If.getState,If.getState),{motionVariants:r,component:n=Zj,portalProps:a}=e,s=Object.keys(t).map(l=>{const u=t[l];return w.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:nY(l),children:w.jsx(Cl,{initial:!1,children:u.map(c=>w.jsx(n,{motionVariants:r,...c},c.id))})},l)});return w.jsx(Oh,{...a,children:s})},QK=e=>function({children:r,theme:n=e,toastOptions:a,...i}){return w.jsxs(eY,{theme:n,...i,children:[w.jsx(GK,{value:a==null?void 0:a.defaultOptions,children:r}),w.jsx(qK,{...a})]})},KK=QK(p5);function XK(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 hh(...e){return t=>{e.forEach(r=>{XK(r,t)})}}function ZK(...e){return P.useMemo(()=>hh(...e),e)}var yb={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Nd={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 bb(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return Nd.slideRight;case"left":return Nd.slideLeft;case"bottom":return Nd.slideDown;case"top":return Nd.slideUp;default:return Nd.slideRight}}var vl={enter:{duration:.2,ease:yb.easeOut},exit:{duration:.1,ease:yb.easeIn}},ni={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},JK={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:(n=e==null?void 0:e.enter)!=null?n:ni.enter(vl.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:(n=e==null?void 0:e.exit)!=null?n:ni.exit(vl.exit,r),transitionEnd:t==null?void 0:t.exit}}},iD={initial:"exit",animate:"enter",exit:"exit",variants:JK},eX=P.forwardRef(function(t,r){const{unmountOnExit:n,in:a,className:i,transition:s,transitionEnd:l,delay:u,...c}=t,d=a||n?"enter":"exit",f=n?a&&n:!0,h={transition:s,transitionEnd:l,delay:u};return w.jsx(Cl,{custom:h,children:f&&w.jsx(va.div,{ref:r,className:Ae("chakra-fade",i),custom:h,...iD,animate:d,...c})})});eX.displayName="Fade";var tX={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:a})=>{var i;return{opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(i=r==null?void 0:r.exit)!=null?i:ni.exit(vl.exit,a)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:(n=t==null?void 0:t.enter)!=null?n:ni.enter(vl.enter,r),transitionEnd:e==null?void 0:e.enter}}},oD={initial:"exit",animate:"enter",exit:"exit",variants:tX},rX=P.forwardRef(function(t,r){const{unmountOnExit:n,in:a,reverse:i=!0,initialScale:s=.95,className:l,transition:u,transitionEnd:c,delay:d,...f}=t,h=n?a&&n:!0,v=a||n?"enter":"exit",b={initialScale:s,reverse:i,transition:u,transitionEnd:c,delay:d};return w.jsx(Cl,{custom:b,children:h&&w.jsx(va.div,{ref:r,className:Ae("chakra-offset-slide",l),...oD,animate:v,custom:b,...f})})});rX.displayName="ScaleFade";var nX={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:a})=>{var i;return{opacity:0,x:e,y:t,transition:(i=r==null?void 0:r.exit)!=null?i:ni.exit(vl.exit,a),transitionEnd:n==null?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:(n=e==null?void 0:e.enter)!=null?n:ni.enter(vl.enter,r),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:a,delay:i})=>{var s;const l={x:t,y:e};return{opacity:0,transition:(s=r==null?void 0:r.exit)!=null?s:ni.exit(vl.exit,i),...a?{...l,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...l,...n==null?void 0:n.exit}}}}},ff={initial:"initial",animate:"enter",exit:"exit",variants:nX},aX=P.forwardRef(function(t,r){const{unmountOnExit:n,in:a,reverse:i=!0,className:s,offsetX:l=0,offsetY:u=8,transition:c,transitionEnd:d,delay:f,...h}=t,v=n?a&&n:!0,b=a||n?"enter":"exit",p={offsetX:l,offsetY:u,reverse:i,transition:c,transitionEnd:d,delay:f};return w.jsx(Cl,{custom:p,children:v&&w.jsx(va.div,{ref:r,className:Ae("chakra-offset-slide",s),custom:p,...ff,animate:b,...h})})});aX.displayName="SlideFade";var JO={exit:{duration:.15,ease:yb.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},iX={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{var a;const{exit:i}=bb({direction:e});return{...i,transition:(a=t==null?void 0:t.exit)!=null?a:ni.exit(JO.exit,n),transitionEnd:r==null?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{var a;const{enter:i}=bb({direction:e});return{...i,transition:(a=r==null?void 0:r.enter)!=null?a:ni.enter(JO.enter,n),transitionEnd:t==null?void 0:t.enter}}},sD=P.forwardRef(function(t,r){const{direction:n="right",style:a,unmountOnExit:i,in:s,className:l,transition:u,transitionEnd:c,delay:d,motionProps:f,...h}=t,v=bb({direction:n}),b=Object.assign({position:"fixed"},v.position,a),p=i?s&&i:!0,$=s||i?"enter":"exit",y={transitionEnd:c,transition:u,direction:n,delay:d};return w.jsx(Cl,{custom:y,children:p&&w.jsx(va.div,{...h,ref:r,initial:"exit",className:Ae("chakra-slide",l),animate:$,exit:"exit",custom:y,variants:iX,style:b,...f})})});sD.displayName="Slide";var[oX,sX]=Lr({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function lX(e){var t;const r=e.split(" "),n=(t=r[0])!=null?t:"",a=r.length>1?r[r.length-1]:"";return n&&a?`${n.charAt(0)}${a.charAt(0)}`:n.charAt(0)}function lD(e){const{name:t,getInitials:r,...n}=e,a=sX();return w.jsx(fe.div,{role:"img","aria-label":t,...n,__css:a.label,children:t?r==null?void 0:r(t):null})}lD.displayName="AvatarName";var uD=e=>w.jsxs(fe.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[w.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),w.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]}),_b=he(function(t,r){const{htmlWidth:n,htmlHeight:a,alt:i,...s}=t;return w.jsx("img",{width:n,height:a,ref:r,alt:i,...s})});_b.displayName="NativeImage";function cD(e){const{loading:t,src:r,srcSet:n,onLoad:a,onError:i,crossOrigin:s,sizes:l,ignoreFallback:u}=e,[c,d]=P.useState("pending");P.useEffect(()=>{d(r?"loading":"pending")},[r]);const f=P.useRef(),h=P.useCallback(()=>{if(!r)return;v();const b=new Image;b.src=r,s&&(b.crossOrigin=s),n&&(b.srcset=n),l&&(b.sizes=l),t&&(b.loading=t),b.onload=p=>{v(),d("loaded"),a==null||a(p)},b.onerror=p=>{v(),d("failed"),i==null||i(p)},f.current=b},[r,s,n,l,a,i,t]),v=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return fc(()=>{if(!u)return c==="loading"&&h(),()=>{v()}},[c,h,u]),u?"loaded":c}var uX=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function cX(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var sp=he(function(t,r){const{fallbackSrc:n,fallback:a,src:i,srcSet:s,align:l,fit:u,loading:c,ignoreFallback:d,crossOrigin:f,fallbackStrategy:h="beforeLoadOrError",referrerPolicy:v,...b}=t,p=n!==void 0||a!==void 0,$=c!=null||d||!p,y=cD({...t,crossOrigin:f,ignoreFallback:$}),_=uX(y,h),S={ref:r,objectFit:u,objectPosition:l,...$?b:cX(b,["onError","onLoad"])};return _?a||w.jsx(fe.img,{as:_b,className:"chakra-image__placeholder",src:n,...S}):w.jsx(fe.img,{as:_b,src:i,srcSet:s,crossOrigin:f,loading:c,referrerPolicy:v,className:"chakra-image",...S})});sp.displayName="Image";function dD(e){const{src:t,srcSet:r,onError:n,onLoad:a,getInitials:i,name:s,borderRadius:l,loading:u,iconLabel:c,icon:d=w.jsx(uD,{}),ignoreFallback:f,referrerPolicy:h,crossOrigin:v}=e,p=cD({src:t,onError:n,crossOrigin:v,ignoreFallback:f})==="loaded";return!t||!p?s?w.jsx(lD,{className:"chakra-avatar__initials",getInitials:i,name:s}):P.cloneElement(d,{role:"img","aria-label":c}):w.jsx(fe.img,{src:t,srcSet:r,alt:s,onLoad:a,referrerPolicy:h,crossOrigin:v??void 0,className:"chakra-avatar__img",loading:u,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}})}dD.displayName="AvatarImage";var dX={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},kw=he((e,t)=>{const r=Wo("Avatar",e),[n,a]=P.useState(!1),{src:i,srcSet:s,name:l,showBorder:u,borderRadius:c="full",onError:d,onLoad:f,getInitials:h=lX,icon:v=w.jsx(uD,{}),iconLabel:b=" avatar",loading:p,children:$,borderColor:y,ignoreFallback:_,crossOrigin:S,referrerPolicy:T,...I}=br(e),A={borderRadius:c,borderWidth:u?"2px":void 0,...dX,...r.container};return y&&(A.borderColor=y),w.jsx(fe.span,{ref:t,...I,className:Ae("chakra-avatar",e.className),"data-loaded":dn(n),__css:A,children:w.jsxs(oX,{value:r,children:[w.jsx(dD,{src:i,srcSet:s,loading:p,onLoad:bo(f,()=>{a(!0)}),onError:d,getInitials:h,name:l,borderRadius:c,icon:v,iconLabel:b,ignoreFallback:_,crossOrigin:S,referrerPolicy:T}),$]})})});kw.displayName="Avatar";function Aw(e){return P.Children.toArray(e).filter(t=>P.isValidElement(t))}var[c1e,fX]=Lr({strict:!1,name:"ButtonGroupContext"});function hX(e){const[t,r]=P.useState(!e);return{ref:P.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function wb(e){const{children:t,className:r,...n}=e,a=P.isValidElement(t)?P.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Ae("chakra-button__icon",r);return w.jsx(fe.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:a})}wb.displayName="ButtonIcon";function xb(e){const{label:t,placement:r,spacing:n="0.5rem",children:a=w.jsx(Tl,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...l}=e,u=Ae("chakra-button__spinner",i),c=r==="start"?"marginEnd":"marginStart",d=P.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,c,n]);return w.jsx(fe.div,{className:u,...l,__css:d,children:a})}xb.displayName="ButtonSpinner";var El=he((e,t)=>{const r=fX(),n=fi("Button",{...r,...e}),{isDisabled:a=r==null?void 0:r.isDisabled,isLoading:i,isActive:s,children:l,leftIcon:u,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:h,spinner:v,spinnerPlacement:b="start",className:p,as:$,...y}=br(e),_=P.useMemo(()=>{const A={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:A}}},[n,r]),{ref:S,type:T}=hX($),I={rightIcon:c,leftIcon:u,iconSpacing:f,children:l};return w.jsxs(fe.button,{ref:ZK(t,S),as:$,type:h??T,"data-active":dn(s),"data-loading":dn(i),__css:_,className:Ae("chakra-button",p),...y,disabled:a||i,children:[i&&b==="start"&&w.jsx(xb,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:v}),i?d||w.jsx(fe.span,{opacity:0,children:w.jsx(eC,{...I})}):w.jsx(eC,{...I}),i&&b==="end"&&w.jsx(xb,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:v})]})});El.displayName="Button";function eC(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:a}=e;return w.jsxs(w.Fragment,{children:[t&&w.jsx(wb,{marginEnd:a,children:t}),n,r&&w.jsx(wb,{marginStart:a,children:r})]})}var fD=he((e,t)=>{const{icon:r,children:n,isRound:a,"aria-label":i,...s}=e,l=r||n,u=P.isValidElement(l)?P.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return w.jsx(El,{padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":i,...s,children:u})});fD.displayName="IconButton";var[mX,vX]=Lr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[pX,hD]=Lr({strict:!1,name:"FormControlContext"});function gX(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:a,isReadOnly:i,...s}=e,l=P.useId(),u=t||`field-${l}`,c=`${u}-label`,d=`${u}-feedback`,f=`${u}-helptext`,[h,v]=P.useState(!1),[b,p]=P.useState(!1),[$,y]=P.useState(!1),_=P.useCallback((N={},z=null)=>({id:f,...N,ref:hh(z,q=>{q&&p(!0)})}),[f]),S=P.useCallback((N={},z=null)=>({...N,ref:z,"data-focus":dn($),"data-disabled":dn(a),"data-invalid":dn(n),"data-readonly":dn(i),id:N.id!==void 0?N.id:c,htmlFor:N.htmlFor!==void 0?N.htmlFor:u}),[u,a,$,n,i,c]),T=P.useCallback((N={},z=null)=>({id:d,...N,ref:hh(z,q=>{q&&v(!0)}),"aria-live":"polite"}),[d]),I=P.useCallback((N={},z=null)=>({...N,...s,ref:z,role:"group","data-focus":dn($),"data-disabled":dn(a),"data-invalid":dn(n),"data-readonly":dn(i)}),[s,a,$,n,i]),A=P.useCallback((N={},z=null)=>({...N,ref:z,role:"presentation","aria-hidden":!0,children:N.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!a,isFocused:!!$,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:h,setHasFeedbackText:v,hasHelpText:b,setHasHelpText:p,id:u,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:_,getErrorMessageProps:T,getRootProps:I,getLabelProps:S,getRequiredIndicatorProps:A}}var yX=he(function(t,r){const n=Wo("Form",t),a=br(t),{getRootProps:i,htmlProps:s,...l}=gX(a),u=Ae("chakra-form-control",t.className);return w.jsx(pX,{value:l,children:w.jsx(mX,{value:n,children:w.jsx(fe.div,{...i({},r),className:u,__css:n.container})})})});yX.displayName="FormControl";var bX=he(function(t,r){const n=hD(),a=vX(),i=Ae("chakra-form__helper-text",t.className);return w.jsx(fe.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:a.helperText,className:i})});bX.displayName="FormHelperText";function mD(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:a,...i}=_X(e);return{...i,disabled:t,readOnly:n,required:a,"aria-invalid":kg(r),"aria-required":kg(a),"aria-readonly":kg(n)}}function _X(e){var t,r,n;const a=hD(),{id:i,disabled:s,readOnly:l,required:u,isRequired:c,isInvalid:d,isReadOnly:f,isDisabled:h,onFocus:v,onBlur:b,...p}=e,$=e["aria-describedby"]?[e["aria-describedby"]]:[];return a!=null&&a.hasFeedbackText&&(a!=null&&a.isInvalid)&&$.push(a.feedbackId),a!=null&&a.hasHelpText&&$.push(a.helpTextId),{...p,"aria-describedby":$.join(" ")||void 0,id:i??(a==null?void 0:a.id),isDisabled:(t=s??h)!=null?t:a==null?void 0:a.isDisabled,isReadOnly:(r=l??f)!=null?r:a==null?void 0:a.isReadOnly,isRequired:(n=u??c)!=null?n:a==null?void 0:a.isRequired,isInvalid:d??(a==null?void 0:a.isInvalid),onFocus:bo(a==null?void 0:a.onFocus,v),onBlur:bo(a==null?void 0:a.onBlur,b)}}function wX(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var Sb="data-focus-lock",vD="data-focus-lock-disabled",xX="data-no-focus-lock",SX="data-autofocus-inside",PX="data-no-autofocus";function h1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $X(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var OX=typeof window<"u"?P.useLayoutEffect:P.useEffect,tC=new WeakMap;function pD(e,t){var r=$X(null,function(n){return e.forEach(function(a){return h1(a,n)})});return OX(function(){var n=tC.get(r);if(n){var a=new Set(n),i=new Set(e),s=r.current;a.forEach(function(l){i.has(l)||h1(l,null)}),i.forEach(function(l){a.has(l)||h1(l,s)})}tC.set(r,e)},[e]),r}var m1={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},sa=function(){return sa=Object.assign||function(t){for(var r,n=1,a=arguments.length;n=0}).sort(YX)},qX=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],zw=qX.join(","),QX="".concat(zw,", [data-focus-guard]"),DD=function(e,t){return pa((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?QX:zw)?[n]:[],DD(n))},[])},KX=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?gc([e.contentDocument.body],t):[e]},gc=function(e,t){return e.reduce(function(r,n){var a,i=DD(n,t),s=(a=[]).concat.apply(a,i.map(function(l){return KX(l,t)}));return r.concat(s,n.parentNode?pa(n.parentNode.querySelectorAll(zw)).filter(function(l){return l===n}):[])},[])},XX=function(e){var t=e.querySelectorAll("[".concat(SX,"]"));return pa(t).map(function(r){return gc([r])}).reduce(function(r,n){return r.concat(n)},[])},Bw=function(e,t){return pa(e).filter(function(r){return CD(t,r)}).filter(function(r){return VX(r)})},rC=function(e,t){return t===void 0&&(t=new Map),pa(e).filter(function(r){return TD(t,r)})},Ww=function(e,t,r){return Nw(Bw(gc(e,r),t),!0,r)},s0=function(e,t){return Nw(Bw(gc(e),t),!1)},ZX=function(e,t){return Bw(XX(e),t)},pl=function(e,t){return e.shadowRoot?pl(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:pa(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var a=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return a?pl(a,t):!1}return pl(r,t)})},JX=function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(a),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(s,l){return!t.has(l)})},ID=function(e){return e.parentNode?ID(e.parentNode):e},Vw=function(e){var t=Sl(e);return t.filter(Boolean).reduce(function(r,n){var a=n.getAttribute(Sb);return r.push.apply(r,a?JX(pa(ID(n).querySelectorAll("[".concat(Sb,'="').concat(a,'"]:not([').concat(vD,'="disabled"])')))):[n]),r},[])},eZ=function(e){try{return e()}catch{return}},vh=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?vh(t.shadowRoot):t instanceof HTMLIFrameElement&&eZ(function(){return t.contentWindow.document})?vh(t.contentWindow.document):t}},tZ=function(e,t){return e===t},rZ=function(e,t){return!!pa(e.querySelectorAll("iframe")).some(function(r){return tZ(r,t)})},kD=function(e,t){return t===void 0&&(t=vh(PD(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Vw(e).some(function(r){return pl(r,t)||rZ(r,t)})},nZ=function(e){e===void 0&&(e=document);var t=vh(e);return t?pa(e.querySelectorAll("[".concat(xX,"]"))).some(function(r){return pl(r,t)}):!1},aZ=function(e,t){return t.filter(jD).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},Hw=function(e,t){return jD(e)&&e.name?aZ(e,t):e},iZ=function(e){var t=new Set;return e.forEach(function(r){return t.add(Hw(r,e))}),e.filter(function(r){return t.has(r)})},nC=function(e){return e[0]&&e.length>1?Hw(e[0],e):e[0]},aC=function(e,t){return e.indexOf(Hw(t,e))},Ob="NEW_FOCUS",oZ=function(e,t,r,n,a){var i=e.length,s=e[0],l=e[i-1],u=Fw(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?r.indexOf(n):-1,d=a?r.indexOf(a):c,f=a?e.indexOf(a):-1;if(c===-1)return f!==-1?f:Ob;if(f===-1)return Ob;var h=c-d,v=r.indexOf(s),b=r.indexOf(l),p=iZ(r),$=n!==void 0?p.indexOf(n):-1,y=$-(a?p.indexOf(a):c);if(!h&&f>=0||t.length===0)return f;var _=aC(e,t[0]),S=aC(e,t[t.length-1]);if(c<=v&&u&&Math.abs(h)>1)return S;if(c>=b&&u&&Math.abs(h)>1)return _;if(h&&Math.abs(y)>1)return f;if(c<=v)return S;if(c>b)return _;if(h)return Math.abs(h)>1?f:(i+f+h)%i}},sZ=function(e){return function(t){var r,n=(r=ED(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},iC=function(e,t,r){var n=e.map(function(i){var s=i.node;return s}),a=rC(n.filter(sZ(r)));return a&&a.length?nC(a):nC(rC(t))},Cb=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Cb(e.parentNode.host||e.parentNode,t),t},v1=function(e,t){for(var r=Cb(e),n=Cb(t),a=0;a=0)return i}return!1},AD=function(e,t,r){var n=Sl(e),a=Sl(t),i=n[0],s=!1;return a.filter(Boolean).forEach(function(l){s=v1(s||l,l)||s,r.filter(Boolean).forEach(function(u){var c=v1(i,u);c&&(!s||pl(c,s)?s=c:s=v1(c,s))})}),s},oC=function(e,t){return e.reduce(function(r,n){return r.concat(ZX(n,t))},[])},lZ=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(UX)},uZ=function(e,t){var r=vh(Sl(e).length>0?document:PD(e).ownerDocument),n=Vw(e).filter($b),a=AD(r||e,e,n),i=new Map,s=s0(n,i),l=s.filter(function(b){var p=b.node;return $b(p)});if(l[0]){var u=s0([a],i).map(function(b){var p=b.node;return p}),c=lZ(u,l),d=c.map(function(b){var p=b.node;return p}),f=c.filter(function(b){var p=b.tabIndex;return p>=0}).map(function(b){var p=b.node;return p}),h=oZ(d,f,u,r,t);if(h===Ob){var v=iC(s,f,oC(n,i))||iC(s,d,oC(n,i));if(v)return{node:v};console.warn("focus-lock: cannot find any node to move focus into");return}return h===void 0?h:c[h]}},cZ=function(e){var t=Vw(e).filter($b),r=AD(e,e,t),n=Nw(gc([r],!0),!0,!0),a=gc(t,!1);return n.map(function(i){var s=i.node,l=i.index;return{node:s,index:l,lockItem:a.indexOf(s)>=0,guard:Fw(s)}})},Uw=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},p1=0,g1=!1,RD=function(e,t,r){r===void 0&&(r={});var n=uZ(e,t);if(!g1&&n){if(p1>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),g1=!0,setTimeout(function(){g1=!1},1);return}p1++,Uw(n.node,r.focusOptions),p1--}};function zd(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var dZ=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:zd(r),parent:zd(r.parentElement),left:zd(r.previousElementSibling),right:zd(r.nextElementSibling)}),r=r.parentElement;return{element:zd(e),stack:t,ownerDocument:e.ownerDocument}},fZ=function(e){var t,r,n,a,i;if(e)for(var s=e.stack,l=e.ownerDocument,u=new Map,c=0,d=s;c-1&&(v.filter(function(p){var $=p.guard,y=p.node;return $&&y.dataset.focusAutoGuard}).forEach(function(p){var $=p.node;return $.removeAttribute("tabIndex")}),sC(b,v.length,1,v),sC(b,-1,-1,v))}}}return t},ND=function(t){l0()&&t&&(t.stopPropagation(),t.preventDefault())},Gw=function(){return Yw(l0)},jZ=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||OZ(n,r)},DZ=function(){return null},zD=function(){ph="just",Yw(function(){ph="meanwhile"})},IZ=function(){document.addEventListener("focusin",ND),document.addEventListener("focusout",Gw),window.addEventListener("blur",zD)},kZ=function(){document.removeEventListener("focusin",ND),document.removeEventListener("focusout",Gw),window.removeEventListener("blur",zD)};function AZ(e){return e.filter(function(t){var r=t.disabled;return!r})}var BD={moveFocusInside:RD,focusInside:kD,focusNextElement:gZ,focusPrevElement:yZ,focusFirstElement:bZ,focusLastElement:_Z,captureFocusRestore:hZ};function RZ(e){var t=e.slice(-1)[0];t&&!ec&&IZ();var r=ec,n=r&&t&&t.id===r.id;ec=t,r&&!n&&(r.onDeactivation(),e.filter(function(a){var i=a.id;return i===r.id}).length||r.returnFocus(!t)),t?(Wu=null,(!n||r.observed!==t.observed)&&t.onActivation(BD),l0(),Yw(l0)):(kZ(),Wu=null)}xD.assignSyncMedium(jZ);SD.assignMedium(Gw);EX.assignMedium(function(e){return e(BD)});const LZ=LX(AZ,RZ)(DZ);var Tb=P.forwardRef(function(t,r){return P.createElement(Lw,xl({sideCar:LZ,ref:r},t))}),WD=Lw.propTypes||{};WD.sideCar;wX(WD,["sideCar"]);Tb.propTypes={};function FZ(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function NZ(e){var t;if(!FZ(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}var zZ=e=>e.hasAttribute("tabindex");function BZ(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function VD(e){return e.parentElement&&VD(e.parentElement)?!0:e.hidden}function WZ(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function VZ(e){if(!NZ(e)||VD(e)||BZ(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():WZ(e)?!0:zZ(e)}var HZ=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],UZ=HZ.join(),YZ=e=>e.offsetWidth>0&&e.offsetHeight>0;function GZ(e){const t=Array.from(e.querySelectorAll(UZ));return t.unshift(e),t.filter(r=>VZ(r)&&YZ(r))}var lC,qZ=(lC=Tb.default)!=null?lC:Tb,HD=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:a,children:i,isDisabled:s,autoFocus:l,persistentFocus:u,lockFocusAcrossFrames:c}=e,d=P.useCallback(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&GZ(n.current).length===0&&requestAnimationFrame(()=>{var b;(b=n.current)==null||b.focus()})},[t,n]),f=P.useCallback(()=>{var v;(v=r==null?void 0:r.current)==null||v.focus()},[r]),h=a&&!r;return w.jsx(qZ,{crossFrame:c,persistentFocus:u,autoFocus:l,disabled:s,onActivation:d,onDeactivation:f,returnFocus:h,children:i})};HD.displayName="FocusLock";var QZ=xU?P.useLayoutEffect:P.useEffect;function uC(e,t=[]){const r=P.useRef(e);return QZ(()=>{r.current=e}),P.useCallback((...n)=>{var a;return(a=r.current)==null?void 0:a.call(r,...n)},t)}function KZ(e,t){const r=P.useId();return P.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function XZ(e,t){const r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}function UD(e={}){const{onClose:t,onOpen:r,isOpen:n,id:a}=e,i=uC(r),s=uC(t),[l,u]=P.useState(e.defaultIsOpen||!1),[c,d]=XZ(n,l),f=KZ(a,"disclosure"),h=P.useCallback(()=>{c||u(!1),s==null||s()},[c,s]),v=P.useCallback(()=>{c||u(!0),i==null||i()},[c,i]),b=P.useCallback(()=>{(d?h:v)()},[d,v,h]);return{isOpen:!!d,onOpen:v,onClose:h,onToggle:b,isControlled:c,getButtonProps:(p={})=>({...p,"aria-expanded":d,"aria-controls":f,onClick:CU(p.onClick,b)}),getDisclosureProps:(p={})=>({...p,hidden:!d,id:f})}}var[ZZ,JZ]=Lr({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),lp=he(function(t,r){const n=Wo("Input",t),{children:a,className:i,...s}=br(t),l=Ae("chakra-input__group",i),u={},c=Aw(a),d=n.field;c.forEach(h=>{var v,b;n&&(d&&h.type.id==="InputLeftElement"&&(u.paddingStart=(v=d.height)!=null?v:d.h),d&&h.type.id==="InputRightElement"&&(u.paddingEnd=(b=d.height)!=null?b:d.h),h.type.id==="InputRightAddon"&&(u.borderEndRadius=0),h.type.id==="InputLeftAddon"&&(u.borderStartRadius=0))});const f=c.map(h=>{var v,b;const p=rw({size:((v=h.props)==null?void 0:v.size)||t.size,variant:((b=h.props)==null?void 0:b.variant)||t.variant});return h.type.id!=="Input"?P.cloneElement(h,p):P.cloneElement(h,Object.assign(p,u,h.props))});return w.jsx(fe.div,{className:l,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...s,children:w.jsx(ZZ,{value:n,children:f})})});lp.displayName="InputGroup";var eJ=fe("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),up=he(function(t,r){var n,a;const{placement:i="left",...s}=t,l=JZ(),u=l.field,d={[i==="left"?"insetStart":"insetEnd"]:"0",width:(n=u==null?void 0:u.height)!=null?n:u==null?void 0:u.h,height:(a=u==null?void 0:u.height)!=null?a:u==null?void 0:u.h,fontSize:u==null?void 0:u.fontSize,...l.element};return w.jsx(eJ,{ref:r,__css:d,...s})});up.id="InputElement";up.displayName="InputElement";var kh=he(function(t,r){const{className:n,...a}=t,i=Ae("chakra-input__left-element",n);return w.jsx(up,{ref:r,placement:"left",className:i,...a})});kh.id="InputLeftElement";kh.displayName="InputLeftElement";var YD=he(function(t,r){const{className:n,...a}=t,i=Ae("chakra-input__right-element",n);return w.jsx(up,{ref:r,placement:"right",className:i,...a})});YD.id="InputRightElement";YD.displayName="InputRightElement";var Ah=he(function(t,r){const{htmlSize:n,...a}=t,i=Wo("Input",a),s=br(a),l=mD(s),u=Ae("chakra-input",t.className);return w.jsx(fe.input,{size:n,...l,__css:i.field,ref:r,className:u})});Ah.displayName="Input";Ah.id="Input";var ai=he(function(t,r){const n=fi("Link",t),{className:a,isExternal:i,...s}=br(t);return w.jsx(fe.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:r,className:Ae("chakra-link",a),...s,__css:n})});ai.displayName="Link";var[tJ,GD]=Lr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),cp=he(function(t,r){const n=Wo("List",t),{children:a,styleType:i="none",stylePosition:s,spacing:l,...u}=br(t),c=Aw(a),f=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return w.jsx(tJ,{value:n,children:w.jsx(fe.ul,{ref:r,listStyleType:i,listStylePosition:s,role:"list",__css:{...n.container,...f},...u,children:c})})});cp.displayName="List";var rJ=he((e,t)=>{const{as:r,...n}=e;return w.jsx(cp,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});rJ.displayName="OrderedList";var nJ=he(function(t,r){const{as:n,...a}=t;return w.jsx(cp,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...a})});nJ.displayName="UnorderedList";var qD=he(function(t,r){const n=GD();return w.jsx(fe.li,{ref:r,...t,__css:n.item})});qD.displayName="ListItem";var aJ=he(function(t,r){const n=GD();return w.jsx(Qr,{ref:r,role:"presentation",...t,__css:n.icon})});aJ.displayName="ListIcon";var qw=he(function(t,r){const{templateAreas:n,gap:a,rowGap:i,columnGap:s,column:l,row:u,autoFlow:c,autoRows:d,templateRows:f,autoColumns:h,templateColumns:v,...b}=t,p={display:"grid",gridTemplateAreas:n,gridGap:a,gridRowGap:i,gridColumnGap:s,gridAutoColumns:h,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:v};return w.jsx(fe.div,{ref:r,__css:p,...b})});qw.displayName="Grid";var QD=Object.freeze(["base","sm","md","lg","xl","2xl"]);function dp(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):Gr(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function iJ(e,t=QD){const r={};return e.forEach((n,a)=>{const i=t[a];n!=null&&(r[i]=n)}),r}var fp=he(function(t,r){const{columns:n,spacingX:a,spacingY:i,spacing:s,minChildWidth:l,...u}=t,c=Ch(),d=l?sJ(l,c):lJ(n);return w.jsx(qw,{ref:r,gap:s,columnGap:a,rowGap:i,templateColumns:d,...u})});fp.displayName="SimpleGrid";function oJ(e){return typeof e=="number"?`${e}px`:e}function sJ(e,t){return dp(e,r=>{const n=RN("sizes",r,oJ(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function lJ(e){return dp(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Xe=he(function(t,r){const n=fi("Text",t),{className:a,align:i,decoration:s,casing:l,...u}=br(t),c=rw({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return w.jsx(fe.p,{ref:r,className:Ae("chakra-text",t.className),...c,...u,__css:n})});Xe.displayName="Text";var KD=e=>w.jsx(fe.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});KD.displayName="StackItem";function uJ(e){const{spacing:t,direction:r}=e,n={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{"&":dp(r,a=>n[a])}}var Qw=he((e,t)=>{const{isInline:r,direction:n,align:a,justify:i,spacing:s="0.5rem",wrap:l,children:u,divider:c,className:d,shouldWrapChildren:f,...h}=e,v=r?"row":n??"column",b=P.useMemo(()=>uJ({spacing:s,direction:v}),[s,v]),p=!!c,$=!f&&!p,y=P.useMemo(()=>{const S=Aw(u);return $?S:S.map((T,I)=>{const A=typeof T.key<"u"?T.key:I,N=I+1===S.length,q=f?w.jsx(KD,{children:T},A):T;if(!p)return q;const Q=P.cloneElement(c,{__css:b}),ve=N?null:Q;return w.jsxs(P.Fragment,{children:[q,ve]},A)})},[c,b,p,$,f,u]),_=Ae("chakra-stack",d);return w.jsx(fe.div,{ref:t,display:"flex",alignItems:a,justifyContent:i,flexDirection:v,flexWrap:l,gap:p?void 0:s,className:_,...h,children:y})});Qw.displayName="Stack";var Zr=he((e,t)=>w.jsx(Qw,{align:"center",...e,direction:"column",ref:t}));Zr.displayName="VStack";var ma=he((e,t)=>w.jsx(Qw,{align:"center",...e,direction:"row",ref:t}));ma.displayName="HStack";function cC(e){return dp(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Eb=he(function(t,r){const{area:n,colSpan:a,colStart:i,colEnd:s,rowEnd:l,rowSpan:u,rowStart:c,...d}=t,f=rw({gridArea:n,gridColumn:cC(a),gridRow:cC(u),gridColumnStart:i,gridColumnEnd:s,gridRowStart:c,gridRowEnd:l});return w.jsx(fe.div,{ref:r,__css:f,...d})});Eb.displayName="GridItem";var Uo=he(function(t,r){const n=fi("Heading",t),{className:a,...i}=br(t);return w.jsx(fe.h2,{ref:r,className:Ae("chakra-heading",t.className),...i,__css:n})});Uo.displayName="Heading";var Ct=fe("div");Ct.displayName="Box";var XD=he(function(t,r){const{size:n,centerContent:a=!0,...i}=t,s=a?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return w.jsx(Ct,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...i})});XD.displayName="Square";var cJ=he(function(t,r){const{size:n,...a}=t;return w.jsx(XD,{size:n,ref:r,borderRadius:"9999px",...a})});cJ.displayName="Circle";var ZD=he(function(t,r){const n=fi("Badge",t),{className:a,...i}=br(t);return w.jsx(fe.span,{ref:r,className:Ae("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});ZD.displayName="Badge";var wv=he(function(t,r){const{className:n,centerContent:a,...i}=br(t),s=fi("Container",t);return w.jsx(fe.div,{ref:r,className:Ae("chakra-container",n),...i,__css:{...s,...a&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});wv.displayName="Container";var ll=he(function(t,r){const{direction:n,align:a,justify:i,wrap:s,basis:l,grow:u,shrink:c,...d}=t,f={display:"flex",flexDirection:n,alignItems:a,justifyContent:i,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c};return w.jsx(fe.div,{ref:r,__css:f,...d})});ll.displayName="Flex";function dJ(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:a}=JU(),i=Array.isArray(e)?e:[e];let s=Array.isArray(n)?n:[n];s=s.filter(c=>c!=null);const[l,u]=P.useState(()=>i.map((c,d)=>({media:c,matches:r?!!s[d]:a().matchMedia(c).matches})));return P.useEffect(()=>{const c=a();u(i.map(h=>({media:h,matches:c.matchMedia(h).matches})));const d=i.map(h=>c.matchMedia(h)),f=h=>{u(v=>v.slice().map(b=>b.media===h.media?{...b,matches:h.matches}:b))};return d.forEach(h=>{typeof h.addListener=="function"?h.addListener(f):h.addEventListener("change",f)}),()=>{d.forEach(h=>{typeof h.removeListener=="function"?h.removeListener(f):h.removeEventListener("change",f)})}},[a]),l.map(c=>c.matches)}function fJ(e,t,r=QD){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let a=r.indexOf(t);for(;a>=0;){const i=r[a];if(e.hasOwnProperty(i)){n=a;break}a-=1}if(n!==-1){const i=r[n];return e[i]}}function hJ(e){var t,r;const n=Gr(e)?e:{fallback:e??"base"},i=Ch().__breakpoints.details.map(({minMaxQuery:c,breakpoint:d})=>({breakpoint:d,query:c.replace("@media screen and ","")})),s=i.map(c=>c.breakpoint===n.fallback),u=dJ(i.map(c=>c.query),{fallback:s,ssr:n.ssr}).findIndex(c=>c==!0);return(r=(t=i[u])==null?void 0:t.breakpoint)!=null?r:n.fallback}function mJ(e,t){var r;const n=Gr(t)?t:{fallback:"base"},a=hJ(n),i=Ch();if(!a)return;const s=Array.from(((r=i.__breakpoints)==null?void 0:r.keys)||[]),l=Array.isArray(e)?Object.fromEntries(Object.entries(iJ(e,s)).map(([u,c])=>[u,c])):e;return fJ(l,a,s)}var vJ={slideInBottom:{...ff,custom:{offsetY:16,reverse:!0}},slideInRight:{...ff,custom:{offsetX:16,reverse:!0}},slideInTop:{...ff,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...ff,custom:{offsetX:-16,reverse:!0}},scale:{...oD,custom:{initialScale:.95,reverse:!0}},none:{}},pJ=fe(va.section),gJ=e=>vJ[e||"none"],JD=P.forwardRef((e,t)=>{const{preset:r,motionProps:n=gJ(r),...a}=e;return w.jsx(pJ,{ref:t,...n,...a})});JD.displayName="ModalTransition";var yJ=Object.defineProperty,bJ=(e,t,r)=>t in e?yJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_J=(e,t,r)=>(bJ(e,t+"",r),r),wJ=class{constructor(){_J(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},Mb=new wJ;function e4(e,t){const[r,n]=P.useState(0);return P.useEffect(()=>{const a=e.current;if(a){if(t){const i=Mb.add(a);n(i)}return()=>{Mb.remove(a),n(0)}}},[t,e]),r}var xJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},su=new WeakMap,Em=new WeakMap,Mm={},y1=0,t4=function(e){return e&&(e.host||t4(e.parentNode))},SJ=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=t4(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},PJ=function(e,t,r,n){var a=SJ(t,Array.isArray(e)?e:[e]);Mm[r]||(Mm[r]=new WeakMap);var i=Mm[r],s=[],l=new Set,u=new Set(a),c=function(f){!f||l.has(f)||(l.add(f),c(f.parentNode))};a.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))d(h);else try{var v=h.getAttribute(n),b=v!==null&&v!=="false",p=(su.get(h)||0)+1,$=(i.get(h)||0)+1;su.set(h,p),i.set(h,$),s.push(h),p===1&&b&&Em.set(h,!0),$===1&&h.setAttribute(r,"true"),b||h.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return d(t),l.clear(),y1++,function(){s.forEach(function(f){var h=su.get(f)-1,v=i.get(f)-1;su.set(f,h),i.set(f,v),h||(Em.has(f)||f.removeAttribute(n),Em.delete(f)),v||f.removeAttribute(r)}),y1--,y1||(su=new WeakMap,su=new WeakMap,Em=new WeakMap,Mm={})}},$J=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=xJ(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),PJ(n,a,r,"aria-hidden")):function(){return null}};function OJ(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:a=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:l,onEsc:u}=e,c=P.useRef(null),d=P.useRef(null),[f,h,v]=TJ(n,"chakra-modal","chakra-modal--header","chakra-modal--body");CJ(c,t&&s);const b=e4(c,t),p=P.useRef(null),$=P.useCallback(q=>{p.current=q.target},[]),y=P.useCallback(q=>{q.key==="Escape"&&(q.stopPropagation(),i&&(r==null||r()),u==null||u())},[i,r,u]),[_,S]=P.useState(!1),[T,I]=P.useState(!1),A=P.useCallback((q={},Q=null)=>({role:"dialog",...q,ref:hh(Q,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":_?h:void 0,"aria-describedby":T?v:void 0,onClick:bo(q.onClick,ve=>ve.stopPropagation())}),[v,T,f,h,_]),N=P.useCallback(q=>{q.stopPropagation(),p.current===q.target&&Mb.isTopModal(c.current)&&(a&&(r==null||r()),l==null||l())},[r,a,l]),z=P.useCallback((q={},Q=null)=>({...q,ref:hh(Q,d),onClick:bo(q.onClick,N),onKeyDown:bo(q.onKeyDown,y),onMouseDown:bo(q.onMouseDown,$)}),[y,$,N]);return{isOpen:t,onClose:r,headerId:h,bodyId:v,setBodyMounted:I,setHeaderMounted:S,dialogRef:c,overlayRef:d,getDialogProps:A,getDialogContainerProps:z,index:b}}function CJ(e,t){const r=e.current;P.useEffect(()=>{if(!(!e.current||!t))return $J(e.current)},[t,e,r])}function TJ(e,...t){const r=P.useId(),n=e||r;return P.useMemo(()=>t.map(a=>`${a}-${n}`),[n,t])}var[EJ,Ml]=Lr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[MJ,Fo]=Lr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Kw=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:a,trapFocus:i,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:h,lockFocusAcrossFrames:v,onCloseComplete:b}=t,p=Wo("Modal",t),y={...OJ(t),autoFocus:a,trapFocus:i,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:h,lockFocusAcrossFrames:v};return w.jsx(MJ,{value:y,children:w.jsx(EJ,{value:p,children:w.jsx(Cl,{onExitComplete:b,children:y.isOpen&&w.jsx(Oh,{...r,children:n})})})})};Kw.displayName="Modal";var xv="right-scroll-bar-position",Sv="width-before-scroll-bar",jJ="with-scroll-bars-hidden",DJ="--removed-body-scroll-bar-size",r4=_D(),b1=function(){},hp=P.forwardRef(function(e,t){var r=P.useRef(null),n=P.useState({onScrollCapture:b1,onWheelCapture:b1,onTouchMoveCapture:b1}),a=n[0],i=n[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,v=e.noIsolation,b=e.inert,p=e.allowPinchZoom,$=e.as,y=$===void 0?"div":$,_=e.gapMode,S=gD(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=h,I=pD([r,t]),A=sa(sa({},S),a);return P.createElement(P.Fragment,null,d&&P.createElement(T,{sideCar:r4,removeScrollBar:c,shards:f,noIsolation:v,inert:b,setCallbacks:i,allowPinchZoom:!!p,lockRef:r,gapMode:_}),s?P.cloneElement(P.Children.only(l),sa(sa({},A),{ref:I})):P.createElement(y,sa({},A,{className:u,ref:I}),l))});hp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};hp.classNames={fullWidth:Sv,zeroRight:xv};var IJ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kJ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=IJ();return t&&e.setAttribute("nonce",t),e}function AJ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function RJ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var LJ=function(){var e=0,t=null;return{add:function(r){e==0&&(t=kJ())&&(AJ(t,r),RJ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},FJ=function(){var e=LJ();return function(t,r){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},n4=function(){var e=FJ(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},NJ={left:0,top:0,right:0,gap:0},_1=function(e){return parseInt(e||"",10)||0},zJ=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[_1(r),_1(n),_1(a)]},BJ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return NJ;var t=zJ(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},WJ=n4(),rc="data-scroll-locked",VJ=function(e,t,r,n){var a=e.left,i=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),` + .`.concat(jJ,` { + overflow: hidden `).concat(n,`; + padding-right: `).concat(l,"px ").concat(n,`; + } + body[`).concat(rc,`] { + overflow: hidden `).concat(n,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` + padding-left: `.concat(a,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(n,`; + `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),` + } + + .`).concat(xv,` { + right: `).concat(l,"px ").concat(n,`; + } + + .`).concat(Sv,` { + margin-right: `).concat(l,"px ").concat(n,`; + } + + .`).concat(xv," .").concat(xv,` { + right: 0 `).concat(n,`; + } + + .`).concat(Sv," .").concat(Sv,` { + margin-right: 0 `).concat(n,`; + } + + body[`).concat(rc,`] { + `).concat(DJ,": ").concat(l,`px; + } +`)},dC=function(){var e=parseInt(document.body.getAttribute(rc)||"0",10);return isFinite(e)?e:0},HJ=function(){P.useEffect(function(){return document.body.setAttribute(rc,(dC()+1).toString()),function(){var e=dC()-1;e<=0?document.body.removeAttribute(rc):document.body.setAttribute(rc,e.toString())}},[])},UJ=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;HJ();var i=P.useMemo(function(){return BJ(a)},[a]);return P.createElement(WJ,{styles:VJ(i,!t,a,r?"":"!important")})},jb=!1;if(typeof window<"u")try{var jm=Object.defineProperty({},"passive",{get:function(){return jb=!0,!0}});window.addEventListener("test",jm,jm),window.removeEventListener("test",jm,jm)}catch{jb=!1}var lu=jb?{passive:!1}:!1,YJ=function(e){return e.tagName==="TEXTAREA"},a4=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!YJ(e)&&r[t]==="visible")},GJ=function(e){return a4(e,"overflowY")},qJ=function(e){return a4(e,"overflowX")},fC=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=i4(e,n);if(a){var i=o4(e,n),s=i[1],l=i[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},QJ=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},KJ=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},i4=function(e,t){return e==="v"?GJ(t):qJ(t)},o4=function(e,t){return e==="v"?QJ(t):KJ(t)},XJ=function(e,t){return e==="h"&&t==="rtl"?-1:1},ZJ=function(e,t,r,n,a){var i=XJ(e,window.getComputedStyle(t).direction),s=i*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var v=o4(e,l),b=v[0],p=v[1],$=v[2],y=p-$-i*b;(b||y)&&i4(e,l)&&(f+=y,h+=b),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(d&&(Math.abs(f)<1||!a)||!d&&(Math.abs(h)<1||!a))&&(c=!0),c},Dm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hC=function(e){return[e.deltaX,e.deltaY]},mC=function(e){return e&&"current"in e?e.current:e},JJ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eee=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},tee=0,uu=[];function ree(e){var t=P.useRef([]),r=P.useRef([0,0]),n=P.useRef(),a=P.useState(tee++)[0],i=P.useState(n4)[0],s=P.useRef(e);P.useEffect(function(){s.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var p=CX([e.lockRef.current],(e.shards||[]).map(mC),!0).filter(Boolean);return p.forEach(function($){return $.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),p.forEach(function($){return $.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=P.useCallback(function(p,$){if("touches"in p&&p.touches.length===2)return!s.current.allowPinchZoom;var y=Dm(p),_=r.current,S="deltaX"in p?p.deltaX:_[0]-y[0],T="deltaY"in p?p.deltaY:_[1]-y[1],I,A=p.target,N=Math.abs(S)>Math.abs(T)?"h":"v";if("touches"in p&&N==="h"&&A.type==="range")return!1;var z=fC(N,A);if(!z)return!0;if(z?I=N:(I=N==="v"?"h":"v",z=fC(N,A)),!z)return!1;if(!n.current&&"changedTouches"in p&&(S||T)&&(n.current=I),!I)return!0;var q=n.current||I;return ZJ(q,$,p,q==="h"?S:T,!0)},[]),u=P.useCallback(function(p){var $=p;if(!(!uu.length||uu[uu.length-1]!==i)){var y="deltaY"in $?hC($):Dm($),_=t.current.filter(function(I){return I.name===$.type&&(I.target===$.target||$.target===I.shadowParent)&&JJ(I.delta,y)})[0];if(_&&_.should){$.cancelable&&$.preventDefault();return}if(!_){var S=(s.current.shards||[]).map(mC).filter(Boolean).filter(function(I){return I.contains($.target)}),T=S.length>0?l($,S[0]):!s.current.noIsolation;T&&$.cancelable&&$.preventDefault()}}},[]),c=P.useCallback(function(p,$,y,_){var S={name:p,delta:$,target:y,should:_,shadowParent:nee(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(T){return T!==S})},1)},[]),d=P.useCallback(function(p){r.current=Dm(p),n.current=void 0},[]),f=P.useCallback(function(p){c(p.type,hC(p),p.target,l(p,e.lockRef.current))},[]),h=P.useCallback(function(p){c(p.type,Dm(p),p.target,l(p,e.lockRef.current))},[]);P.useEffect(function(){return uu.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,lu),document.addEventListener("touchmove",u,lu),document.addEventListener("touchstart",d,lu),function(){uu=uu.filter(function(p){return p!==i}),document.removeEventListener("wheel",u,lu),document.removeEventListener("touchmove",u,lu),document.removeEventListener("touchstart",d,lu)}},[]);var v=e.removeScrollBar,b=e.inert;return P.createElement(P.Fragment,null,b?P.createElement(i,{styles:eee(a)}):null,v?P.createElement(UJ,{gapMode:e.gapMode}):null)}function nee(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aee=TX(r4,ree);var s4=P.forwardRef(function(e,t){return P.createElement(hp,sa({},e,{ref:t,sideCar:aee}))});s4.classNames=hp.classNames;function l4(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:a,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:l,returnFocusOnClose:u,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=Fo(),[h,v]=Nj();P.useEffect(()=>{!h&&v&&setTimeout(v)},[h,v]);const b=e4(n,f);return w.jsx(HD,{autoFocus:t,isDisabled:!r,initialFocusRef:a,finalFocusRef:l,restoreFocus:u,contentRef:n,lockFocusAcrossFrames:d,children:w.jsx(s4,{removeScrollBar:!c,allowPinchZoom:s,enabled:b===1&&i,forwardProps:!0,children:e.children})})}var u4=he((e,t)=>{const{className:r,children:n,containerProps:a,motionProps:i,...s}=e,{getDialogProps:l,getDialogContainerProps:u}=Fo(),c=l(s,t),d=u(a),f=Ae("chakra-modal__content",r),h=Ml(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:p}=Fo();return w.jsx(l4,{children:w.jsx(fe.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:b,children:w.jsx(JD,{preset:p,motionProps:i,className:f,...c,__css:v,children:n})})})});u4.displayName="ModalContent";var[iee,oee]=Lr(),see={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function lee(e,t){var r,n;if(e)return(n=(r=see[e])==null?void 0:r[t])!=null?n:e}function uee(e){var t;const{isOpen:r,onClose:n,placement:a="right",children:i,...s}=e,l=Ch(),u=(t=l.components)==null?void 0:t.Drawer,c=lee(a,l.direction);return w.jsx(iee,{value:{placement:c},children:w.jsx(Kw,{isOpen:r,onClose:n,styleConfig:u,...s,children:i})})}var cee=fe(sD),c4=he((e,t)=>{const{className:r,children:n,motionProps:a,containerProps:i,...s}=e,{getDialogProps:l,getDialogContainerProps:u,isOpen:c}=Fo(),d=l(s,t),f=u(i),h=Ae("chakra-modal__content",r),v=Ml(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{placement:$}=oee();return w.jsx(l4,{children:w.jsx(fe.div,{...f,className:"chakra-modal__content-container",__css:p,children:w.jsx(cee,{motionProps:a,direction:$,in:c,className:h,...d,__css:b,children:n})})})});c4.displayName="DrawerContent";var d4=he((e,t)=>{const{className:r,...n}=e,a=Ae("chakra-modal__footer",r),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...Ml().footer};return w.jsx(fe.footer,{ref:t,...n,__css:s,className:a})});d4.displayName="ModalFooter";var Xw=he((e,t)=>{const{className:r,...n}=e,{headerId:a,setHeaderMounted:i}=Fo();P.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Ae("chakra-modal__header",r),u={flex:0,...Ml().header};return w.jsx(fe.header,{ref:t,className:s,id:a,...n,__css:u})});Xw.displayName="ModalHeader";var dee=fe(va.div),Zw=he((e,t)=>{const{className:r,transition:n,motionProps:a,...i}=e,s=Ae("chakra-modal__overlay",r),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Ml().overlay},{motionPreset:c}=Fo(),f=a||(c==="none"?{}:iD);return w.jsx(dee,{...f,__css:u,ref:t,className:s,...i})});Zw.displayName="ModalOverlay";var Jw=he((e,t)=>{const{className:r,...n}=e,{bodyId:a,setBodyMounted:i}=Fo();P.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Ae("chakra-modal__body",r),l=Ml();return w.jsx(fe.div,{ref:t,className:s,id:a,...n,__css:l.body})});Jw.displayName="ModalBody";var ex=he((e,t)=>{const{onClick:r,className:n,...a}=e,{onClose:i}=Fo(),s=Ae("chakra-modal__close-btn",n),l=Ml();return w.jsx(Iw,{ref:t,__css:l.closeButton,className:s,onClick:bo(r,u=>{u.stopPropagation(),i()}),...a})});ex.displayName="ModalCloseButton";var f4=he(function(t,r){const{children:n,placeholder:a,className:i,...s}=t;return w.jsxs(fe.select,{...s,ref:r,className:Ae("chakra-select",i),children:[a&&w.jsx("option",{value:"",children:a}),n]})});f4.displayName="SelectField";function fee(e,t){const r={},n={};for(const[a,i]of Object.entries(e))t.includes(a)?r[a]=i:n[a]=i;return[r,n]}var h4=he((e,t)=>{var r;const n=Wo("Select",e),{rootProps:a,placeholder:i,icon:s,color:l,height:u,h:c,minH:d,minHeight:f,iconColor:h,iconSize:v,...b}=br(e),[p,$]=fee(b,B8),y=mD($),_={width:"100%",height:"fit-content",position:"relative",color:l},S={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(r=n.field)==null?void 0:r._focus}};return w.jsxs(fe.div,{className:"chakra-select__wrapper",__css:_,...p,...a,children:[w.jsx(f4,{ref:t,height:c??u,minH:d??f,placeholder:i,...y,__css:S,children:e.children}),w.jsx(m4,{"data-disabled":dn(y.disabled),...(h||l)&&{color:h||l},__css:n.icon,...v&&{fontSize:v},children:s})]})});h4.displayName="Select";var hee=e=>w.jsx("svg",{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),mee=fe("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),m4=e=>{const{children:t=w.jsx(hee,{}),...r}=e,n=P.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return w.jsx(mee,{...r,className:"chakra-select__icon-wrapper",children:P.isValidElement(t)?n:null})};m4.displayName="SelectIcon";/** + * @remix-run/router v1.18.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function gh(){return gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function tx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pee(){return Math.random().toString(36).substr(2,8)}function pC(e,t){return{usr:e.state,key:e.key,idx:t}}function Db(e,t,r,n){return r===void 0&&(r=null),gh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jl(t):t,{state:r,key:t&&t.key||n||pee()})}function u0(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function jl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function gee(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,s=a.history,l=_o.Pop,u=null,c=d();c==null&&(c=0,s.replaceState(gh({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function f(){l=_o.Pop;let $=d(),y=$==null?null:$-c;c=$,u&&u({action:l,location:p.location,delta:y})}function h($,y){l=_o.Push;let _=Db(p.location,$,y);r&&r(_,$),c=d()+1;let S=pC(_,c),T=p.createHref(_);try{s.pushState(S,"",T)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;a.location.assign(T)}i&&u&&u({action:l,location:p.location,delta:1})}function v($,y){l=_o.Replace;let _=Db(p.location,$,y);r&&r(_,$),c=d();let S=pC(_,c),T=p.createHref(_);s.replaceState(S,"",T),i&&u&&u({action:l,location:p.location,delta:0})}function b($){let y=a.location.origin!=="null"?a.location.origin:a.location.href,_=typeof $=="string"?$:u0($);return _=_.replace(/ $/,"%20"),Tt(y,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,y)}let p={get action(){return l},get location(){return e(a,s)},listen($){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(vC,f),u=$,()=>{a.removeEventListener(vC,f),u=null}},createHref($){return t(a,$)},createURL:b,encodeLocation($){let y=b($);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:v,go($){return s.go($)}};return p}var gC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gC||(gC={}));function yee(e,t,r){return r===void 0&&(r="/"),bee(e,t,r,!1)}function bee(e,t,r,n){let a=typeof t=="string"?jl(t):t,i=rx(a.pathname||"/",r);if(i==null)return null;let s=v4(e);_ee(s);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};u.relativePath.startsWith("/")&&(Tt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=Do([n,u.relativePath]),d=r.concat(u);i.children&&i.children.length>0&&(Tt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),v4(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Cee(c,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,s);else for(let u of p4(i.path))a(i,s,u)}),t}function p4(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let s=p4(n.join("/")),l=[];return l.push(...s.map(u=>u===""?i:[i,u].join("/"))),a&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function _ee(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Tee(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const wee=/^:[\w-]+$/,xee=3,See=2,Pee=1,$ee=10,Oee=-2,yC=e=>e==="*";function Cee(e,t){let r=e.split("/"),n=r.length;return r.some(yC)&&(n+=Oee),t&&(n+=See),r.filter(a=>!yC(a)).reduce((a,i)=>a+(wee.test(i)?xee:i===""?Pee:$ee),n)}function Tee(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Eee(e,t,r){let{routesMeta:n}=e,a={},i="/",s=[];for(let l=0;l{let{paramName:h,isOptional:v}=d;if(h==="*"){let p=l[f]||"";s=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const b=l[f];return v&&!b?c[h]=void 0:c[h]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function Mee(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),tx(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,u)=>(n.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function jee(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return tx(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function rx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Dee(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?jl(e):e;return{pathname:r?r.startsWith("/")?r:Iee(r,t):t,search:Ree(n),hash:Lee(a)}}function Iee(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function w1(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function kee(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function g4(e,t){let r=kee(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function y4(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=jl(e):(a=gh({},e),Tt(!a.pathname||!a.pathname.includes("?"),w1("?","pathname","search",a)),Tt(!a.pathname||!a.pathname.includes("#"),w1("#","pathname","hash",a)),Tt(!a.search||!a.search.includes("#"),w1("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,l;if(s==null)l=r;else{let f=t.length-1;if(!n&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}l=f>=0?t[f]:"/"}let u=Dee(a,l),c=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const Do=e=>e.join("/").replace(/\/\/+/g,"/"),Aee=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ree=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Lee=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Fee(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const b4=["post","put","patch","delete"];new Set(b4);const Nee=["get",...b4];new Set(Nee);/** + * React Router v6.25.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function yh(){return yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),P.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){n.go(c);return}let f=y4(c,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Do([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,s,i,e])}function Vee(){let{matches:e}=P.useContext(Yo),t=e[e.length-1];return t?t.params:{}}function S4(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=P.useContext(Dl),{matches:a}=P.useContext(Yo),{pathname:i}=vp(),s=JSON.stringify(g4(a,n.v7_relativeSplatPath));return P.useMemo(()=>y4(e,JSON.parse(s),i,r==="path"),[e,s,i,r])}function Hee(e,t){return Uee(e,t)}function Uee(e,t,r,n){Rh()||Tt(!1);let{navigator:a}=P.useContext(Dl),{matches:i}=P.useContext(Yo),s=i[i.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=vp(),d;if(t){var f;let $=typeof t=="string"?jl(t):t;u==="/"||(f=$.pathname)!=null&&f.startsWith(u)||Tt(!1),d=$}else d=c;let h=d.pathname||"/",v=h;if(u!=="/"){let $=u.replace(/^\//,"").split("/");v="/"+h.replace(/^\//,"").split("/").slice($.length).join("/")}let b=yee(e,{pathname:v}),p=Kee(b&&b.map($=>Object.assign({},$,{params:Object.assign({},l,$.params),pathname:Do([u,a.encodeLocation?a.encodeLocation($.pathname).pathname:$.pathname]),pathnameBase:$.pathnameBase==="/"?u:Do([u,a.encodeLocation?a.encodeLocation($.pathnameBase).pathname:$.pathnameBase])})),i,r,n);return t&&p?P.createElement(mp.Provider,{value:{location:yh({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:_o.Pop}},p):p}function Yee(){let e=ete(),t=Fee(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),r?P.createElement("pre",{style:a},r):null,null)}const Gee=P.createElement(Yee,null);class qee extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?P.createElement(Yo.Provider,{value:this.props.routeContext},P.createElement(_4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Qee(e){let{routeContext:t,match:r,children:n}=e,a=P.useContext(nx);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),P.createElement(Yo.Provider,{value:t},n)}function Kee(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if((i=r)!=null&&i.errors)e=r.matches;else return null}let s=e,l=(a=r)==null?void 0:a.errors;if(l!=null){let d=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||Tt(!1),s=s.slice(0,Math.min(s.length,d+1))}let u=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,f,h)=>{let v,b=!1,p=null,$=null;r&&(v=l&&f.route.id?l[f.route.id]:void 0,p=f.route.errorElement||Gee,u&&(c<0&&h===0?(b=!0,$=null):c===h&&(b=!0,$=f.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,h+1)),_=()=>{let S;return v?S=p:b?S=$:f.route.Component?S=P.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,P.createElement(Qee,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:S})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?P.createElement(qee,{location:r.location,revalidation:r.revalidation,component:p,error:v,children:_(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):_()},null)}var P4=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(P4||{}),c0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(c0||{});function Xee(e){let t=P.useContext(nx);return t||Tt(!1),t}function Zee(e){let t=P.useContext(zee);return t||Tt(!1),t}function Jee(e){let t=P.useContext(Yo);return t||Tt(!1),t}function $4(e){let t=Jee(),r=t.matches[t.matches.length-1];return r.route.id||Tt(!1),r.route.id}function ete(){var e;let t=P.useContext(_4),r=Zee(c0.UseRouteError),n=$4(c0.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function tte(){let{router:e}=Xee(P4.UseNavigateStable),t=$4(c0.UseNavigateStable),r=P.useRef(!1);return w4(()=>{r.current=!0}),P.useCallback(function(a,i){i===void 0&&(i={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,yh({fromRouteId:t},i)))},[e,t])}function ao(e){Tt(!1)}function rte(e){let{basename:t="/",children:r=null,location:n,navigationType:a=_o.Pop,navigator:i,static:s=!1,future:l}=e;Rh()&&Tt(!1);let u=t.replace(/^\/*/,"/"),c=P.useMemo(()=>({basename:u,navigator:i,static:s,future:yh({v7_relativeSplatPath:!1},l)}),[u,l,i,s]);typeof n=="string"&&(n=jl(n));let{pathname:d="/",search:f="",hash:h="",state:v=null,key:b="default"}=n,p=P.useMemo(()=>{let $=rx(d,u);return $==null?null:{location:{pathname:$,search:f,hash:h,state:v,key:b},navigationType:a}},[u,d,f,h,v,b,a]);return p==null?null:P.createElement(Dl.Provider,{value:c},P.createElement(mp.Provider,{children:r,value:p}))}function nte(e){let{children:t,location:r}=e;return Hee(Ib(t),r)}new Promise(()=>{});function Ib(e,t){t===void 0&&(t=[]);let r=[];return P.Children.forEach(e,(n,a)=>{if(!P.isValidElement(n))return;let i=[...t,a];if(n.type===P.Fragment){r.push.apply(r,Ib(n.props.children,i));return}n.type!==ao&&Tt(!1),!n.props.index||!n.props.children||Tt(!1);let s={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=Ib(n.props.children,i)),r.push(s)}),r}/** + * React Router DOM v6.25.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function ite(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ote(e,t){return e.button===0&&(!t||t==="_self")&&!ite(e)}const ste=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],lte="6";try{window.__reactRouterVersion=lte}catch{}const ute="startTransition",_C=X1[ute];function cte(e){let{basename:t,children:r,future:n,window:a}=e,i=P.useRef();i.current==null&&(i.current=vee({window:a,v5Compat:!0}));let s=i.current,[l,u]=P.useState({action:s.action,location:s.location}),{v7_startTransition:c}=n||{},d=P.useCallback(f=>{c&&_C?_C(()=>u(f)):u(f)},[u,c]);return P.useLayoutEffect(()=>s.listen(d),[s,d]),P.createElement(rte,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}const dte=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fte=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ax=P.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:i,replace:s,state:l,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,h=ate(t,ste),{basename:v}=P.useContext(Dl),b,p=!1;if(typeof c=="string"&&fte.test(c)&&(b=c,dte))try{let S=new URL(window.location.href),T=c.startsWith("//")?new URL(S.protocol+c):new URL(c),I=rx(T.pathname,v);T.origin===S.origin&&I!=null?c=I+T.search+T.hash:p=!0}catch{}let $=Bee(c,{relative:a}),y=hte(c,{replace:s,state:l,target:u,preventScrollReset:d,relative:a,unstable_viewTransition:f});function _(S){n&&n(S),S.defaultPrevented||y(S)}return P.createElement("a",kb({},h,{href:b||$,onClick:p||i?n:_,ref:r,target:u}))});var wC;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wC||(wC={}));var xC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xC||(xC={}));function hte(e,t){let{target:r,replace:n,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:l}=t===void 0?{}:t,u=x4(),c=vp(),d=S4(e,{relative:s});return P.useCallback(f=>{if(ote(f,r)){f.preventDefault();let h=n!==void 0?n:u0(c)===u0(d);u(e,{replace:h,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:l})}},[c,u,d,n,a,r,e,i,s,l])}var ix=Jj({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"}),mte=Jj({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"}),O4={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},SC=pn.createContext&&pn.createContext(O4),vte=["attr","size","title"];function pte(e,t){if(e==null)return{};var r=gte(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function d0(){return d0=Object.assign?Object.assign.bind():function(e){for(var t=1;tpn.createElement(t.tag,f0({key:r},t.attr),C4(t.child)))}function ga(e){return t=>pn.createElement(wte,d0({attr:f0({},e.attr)},t),C4(e.child))}function wte(e){var t=r=>{var{attr:n,size:a,title:i}=e,s=pte(e,vte),l=a||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),pn.createElement("svg",d0({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:u,style:f0(f0({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&pn.createElement("title",null,i),e.children)};return SC!==void 0?pn.createElement(SC.Consumer,null,r=>t(r)):t(O4)}function ox(e){return ga({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(e)}function xte(e){return ga({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function Ste(e){return ga({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function sx(e){return ga({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(e)}function Pte(e){return ga({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(e)}function $te(e){return ga({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function Ote(e){return ga({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(e)}function Cte(e){return ga({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(e)}function lx(e){return ga({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function Tte(e){return ga({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"},child:[]}]})(e)}const Ete=({member:e})=>{const t=or("white","gray.800"),r=or("gray.200","gray.600"),n=x4();return w.jsx(Ct,{onClick:()=>n(`/members/${e.memberId}`),borderWidth:"1px",borderRadius:"lg",p:6,boxShadow:"md",transition:"all 0.3s",_hover:{transform:"translateY(-5px)",boxShadow:"xl"},bg:t,borderColor:r,textDecoration:"none",children:w.jsxs(Zr,{spacing:4,align:"center",children:[w.jsx(kw,{size:"xl",name:`${e.firstName} ${e.lastName}`,src:e.profilePicture}),w.jsxs(Zr,{spacing:1,textAlign:"center",children:[w.jsx(Xe,{fontWeight:"bold",fontSize:"xl",children:`${e.firstName} ${e.lastName}`}),w.jsx(Xe,{fontSize:"sm",color:"gray.500",children:e.email})]}),w.jsxs(ma,{spacing:4,children:[w.jsx(ai,{href:`mailto:${e.email}`,isExternal:!0,onClick:a=>a.stopPropagation(),children:w.jsx(Qr,{as:lx,w:5,h:5,color:"gray.500",_hover:{color:"blue.500"}})}),w.jsx(ai,{href:`https://discord.com/users/${e.discord}`,isExternal:!0,onClick:a=>a.stopPropagation(),children:w.jsx(Qr,{as:ox,w:5,h:5,color:"gray.500",_hover:{color:"blue.500"}})}),w.jsx(ai,{href:e.linkedin,isExternal:!0,onClick:a=>a.stopPropagation(),children:w.jsx(Qr,{as:sx,w:5,h:5,color:"gray.500",_hover:{color:"blue.500"}})})]})]})})},Mte="modulepreload",jte=function(e){return"/"+e},$C={},yc=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));a=Promise.all(r.map(l=>{if(l=jte(l),l in $C)return;$C[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Mte,u||(d.as="script",d.crossOrigin=""),d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}return a.then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})},Dte=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>yc(async()=>{const{default:n}=await Promise.resolve().then(()=>$c);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)};class ux extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class Ite extends ux{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class kte extends ux{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Ate extends ux{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Ab;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Ab||(Ab={}));var Rte=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function l(d){try{c(n.next(d))}catch(f){s(f)}}function u(d){try{c(n.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):a(d.value).then(l,u)}c((n=n.apply(e,t||[])).next())})};class Lte{constructor(t,{headers:r={},customFetch:n,region:a=Ab.Any}={}){this.url=t,this.headers=r,this.region=a,this.fetch=Dte(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,r={}){var n;return Rte(this,void 0,void 0,function*(){try{const{headers:a,method:i,body:s}=r;let l={},{region:u}=r;u||(u=this.region),u&&u!=="any"&&(l["x-region"]=u);let c;s&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)&&(typeof Blob<"u"&&s instanceof Blob||s instanceof ArrayBuffer?(l["Content-Type"]="application/octet-stream",c=s):typeof s=="string"?(l["Content-Type"]="text/plain",c=s):typeof FormData<"u"&&s instanceof FormData?c=s:(l["Content-Type"]="application/json",c=JSON.stringify(s)));const d=yield this.fetch(`${this.url}/${t}`,{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},l),this.headers),a),body:c}).catch(b=>{throw new Ite(b)}),f=d.headers.get("x-relay-error");if(f&&f==="true")throw new kte(d);if(!d.ok)throw new Ate(d);let h=((n=d.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),v;return h==="application/json"?v=yield d.json():h==="application/octet-stream"?v=yield d.blob():h==="text/event-stream"?v=d:h==="multipart/form-data"?v=yield d.formData():v=yield d.text(),{data:v,error:null}}catch(a){return{data:null,error:a}}})}}var Er={},cx={},pp={},Lh={},gp={},yp={},Fte=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},bc=Fte();const Nte=bc.fetch,T4=bc.fetch.bind(bc),E4=bc.Headers,zte=bc.Request,Bte=bc.Response,$c=Object.freeze(Object.defineProperty({__proto__:null,Headers:E4,Request:zte,Response:Bte,default:T4,fetch:Nte},Symbol.toStringTag,{value:"Module"})),Wte=QR($c);var bp={};Object.defineProperty(bp,"__esModule",{value:!0});class Vte extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}}bp.default=Vte;var M4=Qt&&Qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yp,"__esModule",{value:!0});const Hte=M4(Wte),Ute=M4(bp);let Yte=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=Hte.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,r){return this.headers=Object.assign({},this.headers),this.headers[t]=r,this}then(t,r){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const n=this.fetch;let a=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var s,l,u;let c=null,d=null,f=null,h=i.status,v=i.statusText;if(i.ok){if(this.method!=="HEAD"){const y=await i.text();y===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?d=y:d=JSON.parse(y))}const p=(s=this.headers.Prefer)===null||s===void 0?void 0:s.match(/count=(exact|planned|estimated)/),$=(l=i.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");p&&$&&$.length>1&&(f=parseInt($[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(c={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,f=null,h=406,v="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const p=await i.text();try{c=JSON.parse(p),Array.isArray(c)&&i.status===404&&(d=[],c=null,h=200,v="OK")}catch{i.status===404&&p===""?(h=204,v="No Content"):c={message:p}}if(c&&this.isMaybeSingle&&(!((u=c==null?void 0:c.details)===null||u===void 0)&&u.includes("0 rows"))&&(c=null,h=200,v="OK"),c&&this.shouldThrowOnError)throw new Ute.default(c)}return{error:c,data:d,count:f,status:h,statusText:v}});return this.shouldThrowOnError||(a=a.catch(i=>{var s,l,u;return{error:{message:`${(s=i==null?void 0:i.name)!==null&&s!==void 0?s:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(l=i==null?void 0:i.stack)!==null&&l!==void 0?l:""}`,hint:"",code:`${(u=i==null?void 0:i.code)!==null&&u!==void 0?u:""}`},data:null,count:null,status:0,statusText:""}})),a.then(t,r)}};yp.default=Yte;var Gte=Qt&&Qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gp,"__esModule",{value:!0});const qte=Gte(yp);let Qte=class extends qte.default{select(t){let r=!1;const n=(t??"*").split("").map(a=>/\s/.test(a)&&!r?"":(a==='"'&&(r=!r),a)).join("");return this.url.searchParams.set("select",n),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:r=!0,nullsFirst:n,foreignTable:a,referencedTable:i=a}={}){const s=i?`${i}.order`:"order",l=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${l?`${l},`:""}${t}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:r,referencedTable:n=r}={}){const a=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(a,`${t}`),this}range(t,r,{foreignTable:n,referencedTable:a=n}={}){const i=typeof a>"u"?"offset":`${a}.offset`,s=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(s,`${r-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:t=!1,verbose:r=!1,settings:n=!1,buffers:a=!1,wal:i=!1,format:s="text"}={}){var l;const u=[t?"analyze":null,r?"verbose":null,n?"settings":null,a?"buffers":null,i?"wal":null].filter(Boolean).join("|"),c=(l=this.headers.Accept)!==null&&l!==void 0?l:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${s}; for="${c}"; options=${u};`,s==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};gp.default=Qte;var Kte=Qt&&Qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lh,"__esModule",{value:!0});const Xte=Kte(gp);let Zte=class extends Xte.default{eq(t,r){return this.url.searchParams.append(t,`eq.${r}`),this}neq(t,r){return this.url.searchParams.append(t,`neq.${r}`),this}gt(t,r){return this.url.searchParams.append(t,`gt.${r}`),this}gte(t,r){return this.url.searchParams.append(t,`gte.${r}`),this}lt(t,r){return this.url.searchParams.append(t,`lt.${r}`),this}lte(t,r){return this.url.searchParams.append(t,`lte.${r}`),this}like(t,r){return this.url.searchParams.append(t,`like.${r}`),this}likeAllOf(t,r){return this.url.searchParams.append(t,`like(all).{${r.join(",")}}`),this}likeAnyOf(t,r){return this.url.searchParams.append(t,`like(any).{${r.join(",")}}`),this}ilike(t,r){return this.url.searchParams.append(t,`ilike.${r}`),this}ilikeAllOf(t,r){return this.url.searchParams.append(t,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(t,r){return this.url.searchParams.append(t,`ilike(any).{${r.join(",")}}`),this}is(t,r){return this.url.searchParams.append(t,`is.${r}`),this}in(t,r){const n=Array.from(new Set(r)).map(a=>typeof a=="string"&&new RegExp("[,()]").test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}contains(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cs.{${r.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(r)}`),this}containedBy(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cd.{${r.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(r)}`),this}rangeGt(t,r){return this.url.searchParams.append(t,`sr.${r}`),this}rangeGte(t,r){return this.url.searchParams.append(t,`nxl.${r}`),this}rangeLt(t,r){return this.url.searchParams.append(t,`sl.${r}`),this}rangeLte(t,r){return this.url.searchParams.append(t,`nxr.${r}`),this}rangeAdjacent(t,r){return this.url.searchParams.append(t,`adj.${r}`),this}overlaps(t,r){return typeof r=="string"?this.url.searchParams.append(t,`ov.${r}`):this.url.searchParams.append(t,`ov.{${r.join(",")}}`),this}textSearch(t,r,{config:n,type:a}={}){let i="";a==="plain"?i="pl":a==="phrase"?i="ph":a==="websearch"&&(i="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${i}fts${s}.${r}`),this}match(t){return Object.entries(t).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(t,r,n){return this.url.searchParams.append(t,`not.${r}.${n}`),this}or(t,{foreignTable:r,referencedTable:n=r}={}){const a=n?`${n}.or`:"or";return this.url.searchParams.append(a,`(${t})`),this}filter(t,r,n){return this.url.searchParams.append(t,`${r}.${n}`),this}};Lh.default=Zte;var Jte=Qt&&Qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pp,"__esModule",{value:!0});const Bd=Jte(Lh);let ere=class{constructor(t,{headers:r={},schema:n,fetch:a}){this.url=t,this.headers=r,this.schema=n,this.fetch=a}select(t,{head:r=!1,count:n}={}){const a=r?"HEAD":"GET";let i=!1;const s=(t??"*").split("").map(l=>/\s/.test(l)&&!i?"":(l==='"'&&(i=!i),l)).join("");return this.url.searchParams.set("select",s),n&&(this.headers.Prefer=`count=${n}`),new Bd.default({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:r,defaultToNull:n=!0}={}){const a="POST",i=[];if(this.headers.Prefer&&i.push(this.headers.Prefer),r&&i.push(`count=${r}`),n||i.push("missing=default"),this.headers.Prefer=i.join(","),Array.isArray(t)){const s=t.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(s.length>0){const l=[...new Set(s)].map(u=>`"${u}"`);this.url.searchParams.set("columns",l.join(","))}}return new Bd.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:r,ignoreDuplicates:n=!1,count:a,defaultToNull:i=!0}={}){const s="POST",l=[`resolution=${n?"ignore":"merge"}-duplicates`];if(r!==void 0&&this.url.searchParams.set("on_conflict",r),this.headers.Prefer&&l.push(this.headers.Prefer),a&&l.push(`count=${a}`),i||l.push("missing=default"),this.headers.Prefer=l.join(","),Array.isArray(t)){const u=t.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(u.length>0){const c=[...new Set(u)].map(d=>`"${d}"`);this.url.searchParams.set("columns",c.join(","))}}return new Bd.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:r}={}){const n="PATCH",a=[];return this.headers.Prefer&&a.push(this.headers.Prefer),r&&a.push(`count=${r}`),this.headers.Prefer=a.join(","),new Bd.default({method:n,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const r="DELETE",n=[];return t&&n.push(`count=${t}`),this.headers.Prefer&&n.unshift(this.headers.Prefer),this.headers.Prefer=n.join(","),new Bd.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};pp.default=ere;var _p={},wp={};Object.defineProperty(wp,"__esModule",{value:!0});wp.version=void 0;wp.version="0.0.0-automated";Object.defineProperty(_p,"__esModule",{value:!0});_p.DEFAULT_HEADERS=void 0;const tre=wp;_p.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${tre.version}`};var j4=Qt&&Qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cx,"__esModule",{value:!0});const rre=j4(pp),nre=j4(Lh),are=_p;let ire=class D4{constructor(t,{headers:r={},schema:n,fetch:a}={}){this.url=t,this.headers=Object.assign(Object.assign({},are.DEFAULT_HEADERS),r),this.schemaName=n,this.fetch=a}from(t){const r=new URL(`${this.url}/${t}`);return new rre.default(r,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new D4(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:a=!1,count:i}={}){let s;const l=new URL(`${this.url}/rpc/${t}`);let u;n||a?(s=n?"HEAD":"GET",Object.entries(r).filter(([d,f])=>f!==void 0).map(([d,f])=>[d,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([d,f])=>{l.searchParams.append(d,f)})):(s="POST",u=r);const c=Object.assign({},this.headers);return i&&(c.Prefer=`count=${i}`),new nre.default({method:s,url:l,headers:c,schema:this.schemaName,body:u,fetch:this.fetch,allowEmpty:!1})}};cx.default=ire;var Oc=Qt&&Qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Er,"__esModule",{value:!0});Er.PostgrestError=Er.PostgrestBuilder=Er.PostgrestTransformBuilder=Er.PostgrestFilterBuilder=Er.PostgrestQueryBuilder=Er.PostgrestClient=void 0;const I4=Oc(cx);Er.PostgrestClient=I4.default;const k4=Oc(pp);Er.PostgrestQueryBuilder=k4.default;const A4=Oc(Lh);Er.PostgrestFilterBuilder=A4.default;const R4=Oc(gp);Er.PostgrestTransformBuilder=R4.default;const L4=Oc(yp);Er.PostgrestBuilder=L4.default;const F4=Oc(bp);Er.PostgrestError=F4.default;var ore=Er.default={PostgrestClient:I4.default,PostgrestQueryBuilder:k4.default,PostgrestFilterBuilder:A4.default,PostgrestTransformBuilder:R4.default,PostgrestBuilder:L4.default,PostgrestError:F4.default};const{PostgrestClient:sre,PostgrestQueryBuilder:v1e,PostgrestFilterBuilder:p1e,PostgrestTransformBuilder:g1e,PostgrestBuilder:y1e}=ore,lre="2.10.7",ure={"X-Client-Info":`realtime-js/${lre}`},cre="1.0.0",N4=1e4,dre=1e3;var nc;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(nc||(nc={}));var Wr;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Wr||(Wr={}));var Ln;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Ln||(Ln={}));var Rb;(function(e){e.websocket="websocket"})(Rb||(Rb={}));var rl;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(rl||(rl={}));class fre{constructor(){this.HEADER_LENGTH=1}decode(t,r){return t.constructor===ArrayBuffer?r(this._binaryDecode(t)):r(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const r=new DataView(t),n=new TextDecoder;return this._decodeBroadcast(t,r,n)}_decodeBroadcast(t,r,n){const a=r.getUint8(1),i=r.getUint8(2);let s=this.HEADER_LENGTH+2;const l=n.decode(t.slice(s,s+a));s=s+a;const u=n.decode(t.slice(s,s+i));s=s+i;const c=JSON.parse(n.decode(t.slice(s,t.byteLength)));return{ref:null,topic:l,event:u,payload:c}}}class z4{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var it;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(it||(it={}));const OC=(e,t,r={})=>{var n;const a=(n=r.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(t).reduce((i,s)=>(i[s]=hre(s,e,t,a),i),{})},hre=(e,t,r,n)=>{const a=t.find(l=>l.name===e),i=a==null?void 0:a.type,s=r[e];return i&&!n.includes(i)?B4(i,s):Lb(s)},B4=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return gre(t,r)}switch(e){case it.bool:return mre(t);case it.float4:case it.float8:case it.int2:case it.int4:case it.int8:case it.numeric:case it.oid:return vre(t);case it.json:case it.jsonb:return pre(t);case it.timestamp:return yre(t);case it.abstime:case it.date:case it.daterange:case it.int4range:case it.int8range:case it.money:case it.reltime:case it.text:case it.time:case it.timestamptz:case it.timetz:case it.tsrange:case it.tstzrange:return Lb(t);default:return Lb(t)}},Lb=e=>e,mre=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},vre=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},pre=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},gre=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let i;const s=e.slice(1,r);try{i=JSON.parse("["+s+"]")}catch{i=s?s.split(","):[]}return i.map(l=>B4(t,l))}return e},yre=e=>typeof e=="string"?e.replace(" ","T"):e,W4=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class x1{constructor(t,r,n={},a=N4){this.channel=t,this.event=r,this.payload=n,this.timeout=a,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var CC;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(CC||(CC={}));class kf{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},a=>{const{onJoin:i,onLeave:s,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=kf.syncState(this.state,a,i,s),this.pendingDiffs.forEach(u=>{this.state=kf.syncDiff(this.state,u,i,s)}),this.pendingDiffs=[],l()}),this.channel._on(n.diff,{},a=>{const{onJoin:i,onLeave:s,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=kf.syncDiff(this.state,a,i,s),l())}),this.onJoin((a,i,s)=>{this.channel._trigger("presence",{event:"join",key:a,currentPresences:i,newPresences:s})}),this.onLeave((a,i,s)=>{this.channel._trigger("presence",{event:"leave",key:a,currentPresences:i,leftPresences:s})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,a){const i=this.cloneDeep(t),s=this.transformState(r),l={},u={};return this.map(i,(c,d)=>{s[c]||(u[c]=d)}),this.map(s,(c,d)=>{const f=i[c];if(f){const h=d.map($=>$.presence_ref),v=f.map($=>$.presence_ref),b=d.filter($=>v.indexOf($.presence_ref)<0),p=f.filter($=>h.indexOf($.presence_ref)<0);b.length>0&&(l[c]=b),p.length>0&&(u[c]=p)}else l[c]=d}),this.syncDiff(i,{joins:l,leaves:u},n,a)}static syncDiff(t,r,n,a){const{joins:i,leaves:s}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),a||(a=()=>{}),this.map(i,(l,u)=>{var c;const d=(c=t[l])!==null&&c!==void 0?c:[];if(t[l]=this.cloneDeep(u),d.length>0){const f=t[l].map(v=>v.presence_ref),h=d.filter(v=>f.indexOf(v.presence_ref)<0);t[l].unshift(...h)}n(l,d,u)}),this.map(s,(l,u)=>{let c=t[l];if(!c)return;const d=u.map(f=>f.presence_ref);c=c.filter(f=>d.indexOf(f.presence_ref)<0),t[l]=c,a(l,c,u),c.length===0&&delete t[l]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const a=t[n];return"metas"in a?r[n]=a.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=a,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var TC;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(TC||(TC={}));var EC;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(EC||(EC={}));var MC;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(MC||(MC={}));class dx{constructor(t,r={config:{}},n){this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=Wr.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new x1(this,Ln.join,this.params,this.timeout),this.rejoinTimer=new z4(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Wr.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Wr.closed,this.socket._remove(this)}),this._onError(a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=Wr.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Wr.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Ln.reply,{},(a,i)=>{this._trigger(this._replyEventName(i),a)}),this.presence=new kf(this),this.broadcastEndpointURL=W4(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,r=this.timeout){var n,a;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:i,presence:s,private:l}}=this.params;this._onError(d=>t&&t("CHANNEL_ERROR",d)),this._onClose(()=>t&&t("CLOSED"));const u={},c={broadcast:i,presence:s,postgres_changes:(a=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(d=>d.filter))!==null&&a!==void 0?a:[],private:l};this.socket.accessToken&&(u.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:c},u)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",({postgres_changes:d})=>{var f;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),d===void 0){t&&t("SUBSCRIBED");return}else{const h=this.bindings.postgres_changes,v=(f=h==null?void 0:h.length)!==null&&f!==void 0?f:0,b=[];for(let p=0;p{t&&t("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(d).join(", ")||"error")))}).receive("timeout",()=>{t&&t("TIMED_OUT")})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this._on(t,r,n)}async send(t,r={}){var n,a;if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:s}=t,l={method:"POST",headers:{Authorization:this.socket.accessToken?`Bearer ${this.socket.accessToken}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:s,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((a=u.body)===null||a===void 0?void 0:a.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var s,l,u;const c=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((u=(l=(s=this.params)===null||s===void 0?void 0:s.config)===null||l===void 0?void 0:l.broadcast)===null||u===void 0)&&u.ack)&&i("ok"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Wr.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Ln.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(n=>{const a=new x1(this,Ln.leave,{},t);a.receive("ok",()=>{r(),n("ok")}).receive("timeout",()=>{r(),n("timed out")}).receive("error",()=>{n("error")}),a.send(),this._canPush()||a.trigger("ok",{})})}async _fetchWithTimeout(t,r,n){const a=new AbortController,i=setTimeout(()=>a.abort(),n),s=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:a.signal}));return clearTimeout(i),s}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let a=new x1(this,t,r,n);return this._canPush()?a.send():(a.startTimeout(),this.pushBuffer.push(a)),a}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var a,i;const s=t.toLocaleLowerCase(),{close:l,error:u,leave:c,join:d}=Ln;if(n&&[l,u,c,d].indexOf(s)>=0&&n!==this._joinRef())return;let h=this._onMessage(s,r,n);if(r&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(s)?(a=this.bindings.postgres_changes)===null||a===void 0||a.filter(v=>{var b,p,$;return((b=v.filter)===null||b===void 0?void 0:b.event)==="*"||(($=(p=v.filter)===null||p===void 0?void 0:p.event)===null||$===void 0?void 0:$.toLocaleLowerCase())===s}).map(v=>v.callback(h,n)):(i=this.bindings[s])===null||i===void 0||i.filter(v=>{var b,p,$,y,_,S;if(["broadcast","presence","postgres_changes"].includes(s))if("id"in v){const T=v.id,I=(b=v.filter)===null||b===void 0?void 0:b.event;return T&&((p=r.ids)===null||p===void 0?void 0:p.includes(T))&&(I==="*"||(I==null?void 0:I.toLocaleLowerCase())===(($=r.data)===null||$===void 0?void 0:$.type.toLocaleLowerCase()))}else{const T=(_=(y=v==null?void 0:v.filter)===null||y===void 0?void 0:y.event)===null||_===void 0?void 0:_.toLocaleLowerCase();return T==="*"||T===((S=r==null?void 0:r.event)===null||S===void 0?void 0:S.toLocaleLowerCase())}else return v.type.toLocaleLowerCase()===s}).map(v=>{if(typeof h=="object"&&"ids"in h){const b=h.data,{schema:p,table:$,commit_timestamp:y,type:_,errors:S}=b;h=Object.assign(Object.assign({},{schema:p,table:$,commit_timestamp:y,eventType:_,new:{},old:{},errors:S}),this._getPayloadRecords(b))}v.callback(h,n)})}_isClosed(){return this.state===Wr.closed}_isJoined(){return this.state===Wr.joined}_isJoining(){return this.state===Wr.joining}_isLeaving(){return this.state===Wr.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const a=t.toLocaleLowerCase(),i={type:a,filter:r,callback:n};return this.bindings[a]?this.bindings[a].push(i):this.bindings[a]=[i],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]=this.bindings[n].filter(a=>{var i;return!(((i=a.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&dx.isEqual(a.filter,r))}),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Ln.close,{},t)}_onError(t){this._on(Ln.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Wr.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=OC(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=OC(t.columns,t.old_record)),r}}const bre=()=>{},_re=typeof WebSocket<"u",wre=` + addEventListener("message", (e) => { + if (e.data.event === "start") { + setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); + } + });`;class xre{constructor(t,r){var n;this.accessToken=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=ure,this.params={},this.timeout=N4,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=bre,this.conn=null,this.sendBuffer=[],this.serializer=new fre,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this._resolveFetch=i=>{let s;return i?s=i:typeof fetch>"u"?s=(...l)=>yc(async()=>{const{default:u}=await Promise.resolve().then(()=>$c);return{default:u}},void 0).then(({default:u})=>u(...l)):s=fetch,(...l)=>s(...l)},this.endPoint=`${t}/${Rb.websocket}`,this.httpEndpoint=W4(t),r!=null&&r.transport?this.transport=r.transport:this.transport=null,r!=null&&r.params&&(this.params=r.params),r!=null&&r.headers&&(this.headers=Object.assign(Object.assign({},this.headers),r.headers)),r!=null&&r.timeout&&(this.timeout=r.timeout),r!=null&&r.logger&&(this.logger=r.logger),r!=null&&r.heartbeatIntervalMs&&(this.heartbeatIntervalMs=r.heartbeatIntervalMs);const a=(n=r==null?void 0:r.params)===null||n===void 0?void 0:n.apikey;if(a&&(this.accessToken=a,this.apiKey=a),this.reconnectAfterMs=r!=null&&r.reconnectAfterMs?r.reconnectAfterMs:i=>[1e3,2e3,5e3,1e4][i-1]||1e4,this.encode=r!=null&&r.encode?r.encode:(i,s)=>s(JSON.stringify(i)),this.decode=r!=null&&r.decode?r.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new z4(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(r==null?void 0:r.fetch),r!=null&&r.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(r==null?void 0:r.worker)||!1,this.workerUrl=r==null?void 0:r.workerUrl}}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this._endPointURL(),void 0,{headers:this.headers});return}if(_re){this.conn=new WebSocket(this._endPointURL()),this.setupConnection();return}this.conn=new Sre(this._endPointURL(),void 0,{close:()=>{this.conn=null}}),yc(async()=>{const{default:t}=await import("./browser-Cb_fLYj7.js").then(r=>r.b);return{default:t}},[]).then(({default:t})=>{this.conn=new t(this._endPointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}disconnect(t,r){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,r??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case nc.connecting:return rl.Connecting;case nc.open:return rl.Open;case nc.closing:return rl.Closing;default:return rl.Closed}}isConnected(){return this.connectionState()===rl.Open}channel(t,r={config:{}}){const n=new dx(`realtime:${t}`,r,this);return this.channels.push(n),n}push(t){const{topic:r,event:n,payload:a,ref:i}=t,s=()=>{this.encode(t,l=>{var u;(u=this.conn)===null||u===void 0||u.send(l)})};this.log("push",`${r} ${n} (${i})`,a),this.isConnected()?s():this.sendBuffer.push(s)}setAuth(t){this.accessToken=t,this.channels.forEach(r=>{t&&r.updateJoinPayload({access_token:t}),r.joinedOnce&&r._isJoined()&&r._push(Ln.access_token,{access_token:t})})}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r._joinRef()!==t._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:cre}))}_onConnMessage(t){this.decode(t.data,r=>{let{topic:n,event:a,payload:i,ref:s}=r;(s&&s===this.pendingHeartbeatRef||a===(i==null?void 0:i.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${i.status||""} ${n} ${a} ${s&&"("+s+")"||""}`,i),this.channels.filter(l=>l._isMember(n)).forEach(l=>l._trigger(a,i,s)),this.stateChangeCallbacks.message.forEach(l=>l(r))})}async _onConnOpen(){if(this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs);else{this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this._sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(r=>r(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(r=>r(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(Ln.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",a=new URLSearchParams(r);return`${t}${n}${a}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(dre,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([wre],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}}class Sre{constructor(t,r,n){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=nc.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=n.close}}class fx extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Rt(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class Pre extends fx{constructor(t,r){super(t),this.name="StorageApiError",this.status=r}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Fb extends fx{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}var $re=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function l(d){try{c(n.next(d))}catch(f){s(f)}}function u(d){try{c(n.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):a(d.value).then(l,u)}c((n=n.apply(e,t||[])).next())})};const V4=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>yc(async()=>{const{default:n}=await Promise.resolve().then(()=>$c);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},Ore=()=>$re(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield yc(()=>Promise.resolve().then(()=>$c),void 0)).Response:Response}),Nb=e=>{if(Array.isArray(e))return e.map(r=>Nb(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const a=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[a]=Nb(n)}),t};var Il=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function l(d){try{c(n.next(d))}catch(f){s(f)}}function u(d){try{c(n.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):a(d.value).then(l,u)}c((n=n.apply(e,t||[])).next())})};const S1=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Cre=(e,t,r)=>Il(void 0,void 0,void 0,function*(){const n=yield Ore();e instanceof n&&!(r!=null&&r.noResolveJson)?e.json().then(a=>{t(new Pre(S1(a),e.status||500))}).catch(a=>{t(new Fb(S1(a),a))}):t(new Fb(S1(e),e))}),Tre=(e,t,r,n)=>{const a={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),n&&(a.body=JSON.stringify(n)),Object.assign(Object.assign({},a),r))};function Fh(e,t,r,n,a,i){return Il(this,void 0,void 0,function*(){return new Promise((s,l)=>{e(r,Tre(t,n,a,i)).then(u=>{if(!u.ok)throw u;return n!=null&&n.noResolveJson?u:u.json()}).then(u=>s(u)).catch(u=>Cre(u,l,n))})})}function h0(e,t,r,n){return Il(this,void 0,void 0,function*(){return Fh(e,"GET",t,r,n)})}function co(e,t,r,n,a){return Il(this,void 0,void 0,function*(){return Fh(e,"POST",t,n,a,r)})}function Ere(e,t,r,n,a){return Il(this,void 0,void 0,function*(){return Fh(e,"PUT",t,n,a,r)})}function Mre(e,t,r,n){return Il(this,void 0,void 0,function*(){return Fh(e,"HEAD",t,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function H4(e,t,r,n,a){return Il(this,void 0,void 0,function*(){return Fh(e,"DELETE",t,n,a,r)})}var Cr=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function l(d){try{c(n.next(d))}catch(f){s(f)}}function u(d){try{c(n.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):a(d.value).then(l,u)}c((n=n.apply(e,t||[])).next())})};const jre={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},jC={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class Dre{constructor(t,r={},n,a){this.url=t,this.headers=r,this.bucketId=n,this.fetch=V4(a)}uploadOrUpdate(t,r,n,a){return Cr(this,void 0,void 0,function*(){try{let i;const s=Object.assign(Object.assign({},jC),a);let l=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(s.upsert)});const u=s.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",s.cacheControl),u&&i.append("metadata",this.encodeMetadata(u)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.append("cacheControl",s.cacheControl),u&&i.append("metadata",this.encodeMetadata(u))):(i=n,l["cache-control"]=`max-age=${s.cacheControl}`,l["content-type"]=s.contentType,u&&(l["x-metadata"]=this.toBase64(this.encodeMetadata(u)))),a!=null&&a.headers&&(l=Object.assign(Object.assign({},l),a.headers));const c=this._removeEmptyFolders(r),d=this._getFinalPath(c),f=yield this.fetch(`${this.url}/object/${d}`,Object.assign({method:t,body:i,headers:l},s!=null&&s.duplex?{duplex:s.duplex}:{})),h=yield f.json();return f.ok?{data:{path:c,id:h.Id,fullPath:h.Key},error:null}:{data:null,error:h}}catch(i){if(Rt(i))return{data:null,error:i};throw i}})}upload(t,r,n){return Cr(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,a){return Cr(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),s=this._getFinalPath(i),l=new URL(this.url+`/object/upload/sign/${s}`);l.searchParams.set("token",r);try{let u;const c=Object.assign({upsert:jC.upsert},a),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&n instanceof Blob?(u=new FormData,u.append("cacheControl",c.cacheControl),u.append("",n)):typeof FormData<"u"&&n instanceof FormData?(u=n,u.append("cacheControl",c.cacheControl)):(u=n,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType);const f=yield this.fetch(l.toString(),{method:"PUT",body:u,headers:d}),h=yield f.json();return f.ok?{data:{path:i,fullPath:h.Key},error:null}:{data:null,error:h}}catch(u){if(Rt(u))return{data:null,error:u};throw u}})}createSignedUploadUrl(t,r){return Cr(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const a=Object.assign({},this.headers);r!=null&&r.upsert&&(a["x-upsert"]="true");const i=yield co(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:a}),s=new URL(this.url+i.url),l=s.searchParams.get("token");if(!l)throw new fx("No token returned by API");return{data:{signedUrl:s.toString(),path:t,token:l},error:null}}catch(n){if(Rt(n))return{data:null,error:n};throw n}})}update(t,r,n){return Cr(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r,n){return Cr(this,void 0,void 0,function*(){try{return{data:yield co(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(a){if(Rt(a))return{data:null,error:a};throw a}})}copy(t,r,n){return Cr(this,void 0,void 0,function*(){try{return{data:{path:(yield co(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(a){if(Rt(a))return{data:null,error:a};throw a}})}createSignedUrl(t,r,n){return Cr(this,void 0,void 0,function*(){try{let a=this._getFinalPath(t),i=yield co(this.fetch,`${this.url}/object/sign/${a}`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${s}`)},{data:i,error:null}}catch(a){if(Rt(a))return{data:null,error:a};throw a}})}createSignedUrls(t,r,n){return Cr(this,void 0,void 0,function*(){try{const a=yield co(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:t},{headers:this.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:a.map(s=>Object.assign(Object.assign({},s),{signedUrl:s.signedURL?encodeURI(`${this.url}${s.signedURL}${i}`):null})),error:null}}catch(a){if(Rt(a))return{data:null,error:a};throw a}})}download(t,r){return Cr(this,void 0,void 0,function*(){const a=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),s=i?`?${i}`:"";try{const l=this._getFinalPath(t);return{data:yield(yield h0(this.fetch,`${this.url}/${a}/${l}${s}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(l){if(Rt(l))return{data:null,error:l};throw l}})}info(t){return Cr(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{const n=yield h0(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:Nb(n),error:null}}catch(n){if(Rt(n))return{data:null,error:n};throw n}})}exists(t){return Cr(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{return yield Mre(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(Rt(n)&&n instanceof Fb){const a=n.originalError;if([400,404].includes(a==null?void 0:a.status))return{data:!1,error:n}}throw n}})}getPublicUrl(t,r){const n=this._getFinalPath(t),a=[],i=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";i!==""&&a.push(i);const l=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",u=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});u!==""&&a.push(u);let c=a.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${n}${c}`)}}}remove(t){return Cr(this,void 0,void 0,function*(){try{return{data:yield H4(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(Rt(r))return{data:null,error:r};throw r}})}list(t,r,n){return Cr(this,void 0,void 0,function*(){try{const a=Object.assign(Object.assign(Object.assign({},jre),r),{prefix:t||""});return{data:yield co(this.fetch,`${this.url}/object/list/${this.bucketId}`,a,{headers:this.headers},n),error:null}}catch(a){if(Rt(a))return{data:null,error:a};throw a}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const r=[];return t.width&&r.push(`width=${t.width}`),t.height&&r.push(`height=${t.height}`),t.resize&&r.push(`resize=${t.resize}`),t.format&&r.push(`format=${t.format}`),t.quality&&r.push(`quality=${t.quality}`),r.join("&")}}const Ire="2.7.1",kre={"X-Client-Info":`storage-js/${Ire}`};var cu=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function l(d){try{c(n.next(d))}catch(f){s(f)}}function u(d){try{c(n.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):a(d.value).then(l,u)}c((n=n.apply(e,t||[])).next())})};class Are{constructor(t,r={},n){this.url=t,this.headers=Object.assign(Object.assign({},kre),r),this.fetch=V4(n)}listBuckets(){return cu(this,void 0,void 0,function*(){try{return{data:yield h0(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(Rt(t))return{data:null,error:t};throw t}})}getBucket(t){return cu(this,void 0,void 0,function*(){try{return{data:yield h0(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(Rt(r))return{data:null,error:r};throw r}})}createBucket(t,r={public:!1}){return cu(this,void 0,void 0,function*(){try{return{data:yield co(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(Rt(n))return{data:null,error:n};throw n}})}updateBucket(t,r){return cu(this,void 0,void 0,function*(){try{return{data:yield Ere(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(Rt(n))return{data:null,error:n};throw n}})}emptyBucket(t){return cu(this,void 0,void 0,function*(){try{return{data:yield co(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(Rt(r))return{data:null,error:r};throw r}})}deleteBucket(t){return cu(this,void 0,void 0,function*(){try{return{data:yield H4(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(Rt(r))return{data:null,error:r};throw r}})}}class Rre extends Are{constructor(t,r={},n){super(t,r,n)}from(t){return new Dre(this.url,this.headers,t,this.fetch)}}const Lre="2.46.0";let hf="";typeof Deno<"u"?hf="deno":typeof document<"u"?hf="web":typeof navigator<"u"&&navigator.product==="ReactNative"?hf="react-native":hf="node";const Fre={"X-Client-Info":`supabase-js-${hf}/${Lre}`},Nre={headers:Fre},zre={schema:"public"},Bre={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Wre={};var Vre=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function l(d){try{c(n.next(d))}catch(f){s(f)}}function u(d){try{c(n.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):a(d.value).then(l,u)}c((n=n.apply(e,t||[])).next())})};const Hre=e=>{let t;return e?t=e:typeof fetch>"u"?t=T4:t=fetch,(...r)=>t(...r)},Ure=()=>typeof Headers>"u"?E4:Headers,Yre=(e,t,r)=>{const n=Hre(r),a=Ure();return(i,s)=>Vre(void 0,void 0,void 0,function*(){var l;const u=(l=yield t())!==null&&l!==void 0?l:e;let c=new a(s==null?void 0:s.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${u}`),n(i,Object.assign(Object.assign({},s),{headers:c}))})};var Gre=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function l(d){try{c(n.next(d))}catch(f){s(f)}}function u(d){try{c(n.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):a(d.value).then(l,u)}c((n=n.apply(e,t||[])).next())})};function qre(e){return e.replace(/\/$/,"")}function Qre(e,t){const{db:r,auth:n,realtime:a,global:i}=e,{db:s,auth:l,realtime:u,global:c}=t,d={db:Object.assign(Object.assign({},s),r),auth:Object.assign(Object.assign({},l),n),realtime:Object.assign(Object.assign({},u),a),global:Object.assign(Object.assign({},c),i),accessToken:()=>Gre(this,void 0,void 0,function*(){return""})};return e.accessToken?d.accessToken=e.accessToken:delete d.accessToken,d}const U4="2.65.1",Kre="http://localhost:9999",Xre="supabase.auth.token",Zre={"X-Client-Info":`gotrue-js/${U4}`},DC=10,zb="X-Supabase-Api-Version",Y4={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function Jre(e){return Math.round(Date.now()/1e3)+e}function ene(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const kn=()=>typeof document<"u",Hs={tested:!1,writable:!1},Af=()=>{if(!kn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Hs.tested)return Hs.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Hs.tested=!0,Hs.writable=!0}catch{Hs.tested=!0,Hs.writable=!1}return Hs.writable};function P1(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((a,i)=>{t[i]=a})}catch{}return r.searchParams.forEach((n,a)=>{t[a]=n}),t}const G4=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>yc(async()=>{const{default:n}=await Promise.resolve().then(()=>$c);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},tne=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",q4=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Im=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},km=async(e,t)=>{await e.removeItem(t)};function rne(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r="",n,a,i,s,l,u,c,d=0;for(e=e.replace("-","+").replace("_","/");d>4,a=(l&15)<<4|u>>2,i=(u&3)<<6|c,r=r+String.fromCharCode(n),u!=64&&a!=0&&(r=r+String.fromCharCode(a)),c!=64&&i!=0&&(r=r+String.fromCharCode(i));return r}class xp{constructor(){this.promise=new xp.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}xp.promiseConstructor=Promise;function IC(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,r=e.split(".");if(r.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(r[1]))throw new Error("JWT is not valid: payload is not in base64url format");const n=r[1];return JSON.parse(rne(n))}async function nne(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function ane(e,t){return new Promise((n,a)=>{(async()=>{for(let i=0;i<1/0;i++)try{const s=await e(i);if(!t(i,null,s)){n(s);return}}catch(s){if(!t(i,s)){a(s);return}}})()})}function ine(e){return("0"+e.toString(16)).substr(-2)}function one(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let a="";for(let i=0;i<56;i++)a+=r.charAt(Math.floor(Math.random()*n));return a}return crypto.getRandomValues(t),Array.from(t,ine).join("")}async function sne(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),a=new Uint8Array(n);return Array.from(a).map(i=>String.fromCharCode(i)).join("")}function lne(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function une(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await sne(e);return lne(r)}async function du(e,t,r=!1){const n=one();let a=n;r&&(a+="/PASSWORD_RECOVERY"),await q4(e,`${t}-code-verifier`,a);const i=await une(n);return[i,n===i?"plain":"s256"]}const cne=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function dne(e){const t=e.headers.get(zb);if(!t||!t.match(cne))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}class hx extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function _e(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class fne extends hx{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function hne(e){return _e(e)&&e.name==="AuthApiError"}class Q4 extends hx{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class kl extends hx{constructor(t,r,n,a){super(t,n,a),this.name=r,this.status=n}}class io extends kl{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function mne(e){return _e(e)&&e.name==="AuthSessionMissingError"}class $1 extends kl{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Am extends kl{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Rm extends kl{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class kC extends kl{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Bb extends kl{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function O1(e){return _e(e)&&e.name==="AuthRetryableFetchError"}class AC extends kl{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}var vne=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ae.msg||e.message||e.error_description||e.error||JSON.stringify(e),pne=[502,503,504];async function RC(e){var t;if(!tne(e))throw new Bb(Zs(e),0);if(pne.includes(e.status))throw new Bb(Zs(e),e.status);let r;try{r=await e.json()}catch(i){throw new Q4(Zs(i),i)}let n;const a=dne(e);if(a&&a.getTime()>=Y4["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new AC(Zs(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new io}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,s)=>i&&typeof s=="string",!0))throw new AC(Zs(r),e.status,r.weak_password.reasons);throw new fne(Zs(r),e.status||500,n)}const gne=(e,t,r,n)=>{const a={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),a.body=JSON.stringify(n),Object.assign(Object.assign({},a),r))};async function je(e,t,r,n){var a;const i=Object.assign({},n==null?void 0:n.headers);i[zb]||(i[zb]=Y4["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const s=(a=n==null?void 0:n.query)!==null&&a!==void 0?a:{};n!=null&&n.redirectTo&&(s.redirect_to=n.redirectTo);const l=Object.keys(s).length?"?"+new URLSearchParams(s).toString():"",u=await yne(e,t,r+l,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(u):{data:Object.assign({},u),error:null}}async function yne(e,t,r,n,a,i){const s=gne(t,n,a,i);let l;try{l=await e(r,Object.assign({},s))}catch(u){throw console.error(u),new Bb(Zs(u),0)}if(l.ok||await RC(l),n!=null&&n.noResolveJson)return l;try{return await l.json()}catch(u){await RC(u)}}function oo(e){var t;let r=null;xne(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=Jre(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function LC(e){const t=oo(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function vo(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function bne(e){return{data:e,error:null}}function _ne(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:a,verification_type:i}=e,s=vne(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:r,hashed_token:n,redirect_to:a,verification_type:i},u=Object.assign({},s);return{data:{properties:l,user:u},error:null}}function wne(e){return e}function xne(e){return e.access_token&&e.refresh_token&&e.expires_in}var Sne=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a0&&(v.forEach(b=>{const p=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),$=JSON.parse(b.split(";")[1].split("=")[1]);c[`${$}Page`]=p}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(_e(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){try{return await je(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:vo})}catch(r){if(_e(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){try{return await je(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:vo})}catch(n){if(_e(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){try{return await je(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:vo})}catch(n){if(_e(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){try{const{data:r,error:n}=await je(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:r,error:n}}catch(r){if(_e(r))return{data:null,error:r};throw r}}async _deleteFactor(t){try{return{data:await je(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(_e(r))return{data:null,error:r};throw r}}}const $ne={getItem:e=>Af()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Af()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Af()&&globalThis.localStorage.removeItem(e)}};function FC(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}function One(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const fu={debug:!!(globalThis&&Af()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class K4 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Cne extends K4{}async function Tne(e,t,r){fu.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),fu.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async a=>{if(a){fu.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,a.name);try{return await r()}finally{fu.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,a.name)}}else{if(t===0)throw fu.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Cne(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(fu.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}})}One();const Ene={url:Kre,storageKey:Xre,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Zre,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1},Wd=30*1e3,NC=3;async function zC(e,t,r){return await r()}class bh{constructor(t){var r,n;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=bh.nextInstanceID,bh.nextInstanceID+=1,this.instanceID>0&&kn()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const a=Object.assign(Object.assign({},Ene),t);if(this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.persistSession=a.persistSession,this.storageKey=a.storageKey,this.autoRefreshToken=a.autoRefreshToken,this.admin=new Pne({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=G4(a.fetch),this.lock=a.lock||zC,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,a.lock?this.lock=a.lock:kn()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=Tne:this.lock=zC,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?a.storage?this.storage=a.storage:Af()?this.storage=$ne:(this.memoryStorage={},this.storage=FC(this.memoryStorage)):(this.memoryStorage={},this.storage=FC(this.memoryStorage)),kn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${U4}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){try{const t=kn()?await this._isPKCEFlow():!1;if(this._debug("#_initialize()","begin","is PKCE flow",t),t||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:r,error:n}=await this._getSessionFromURL(t);if(n)return this._debug("#_initialize()","error detecting session from URL",n),(n==null?void 0:n.code)==="identity_already_exists"?{error:n}:(await this._removeSession(),{error:n});const{session:a,redirectType:i}=r;return this._debug("#_initialize()","detected session in URL",a,"redirect type",i),await this._saveSession(a),setTimeout(async()=>{i==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return _e(t)?{error:t}:{error:new Q4("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,a;try{const i=await je(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(a=t==null?void 0:t.options)===null||a===void 0?void 0:a.captchaToken}},xform:oo}),{data:s,error:l}=i;if(l||!s)return{data:{user:null,session:null},error:l};const u=s.session,c=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",u)),{data:{user:c,session:u},error:null}}catch(i){if(_e(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(t){var r,n,a;try{let i;if("email"in t){const{email:d,password:f,options:h}=t;let v=null,b=null;this.flowType==="pkce"&&([v,b]=await du(this.storage,this.storageKey)),i=await je(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:v,code_challenge_method:b},xform:oo})}else if("phone"in t){const{phone:d,password:f,options:h}=t;i=await je(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(a=h==null?void 0:h.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:oo})}else throw new Am("You must provide either an email or phone number and a password");const{data:s,error:l}=i;if(l||!s)return{data:{user:null,session:null},error:l};const u=s.session,c=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",u)),{data:{user:c,session:u},error:null}}catch(i){if(_e(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{let r;if("email"in t){const{email:i,password:s,options:l}=t;r=await je(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:s,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:LC})}else if("phone"in t){const{phone:i,password:s,options:l}=t;r=await je(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:s,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:LC})}else throw new Am("You must provide either an email or phone number and a password");const{data:n,error:a}=r;return a?{data:{user:null,session:null},error:a}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new $1}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:a})}catch(r){if(_e(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(t){var r,n,a,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(a=t.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const r=await Im(this.storage,`${this.storageKey}-code-verifier`),[n,a]=(r??"").split("/");try{const{data:i,error:s}=await je(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:oo});if(await km(this.storage,`${this.storageKey}-code-verifier`),s)throw s;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new $1}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:a??null}),error:s})}catch(i){if(_e(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:r,provider:n,token:a,access_token:i,nonce:s}=t,l=await je(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:a,access_token:i,nonce:s,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:oo}),{data:u,error:c}=l;return c?{data:{user:null,session:null},error:c}:!u||!u.session||!u.user?{data:{user:null,session:null},error:new $1}:(u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",u.session)),{data:u,error:c})}catch(r){if(_e(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(t){var r,n,a,i,s;try{if("email"in t){const{email:l,options:u}=t;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await du(this.storage,this.storageKey));const{error:f}=await je(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(r=u==null?void 0:u.data)!==null&&r!==void 0?r:{},create_user:(n=u==null?void 0:u.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:u==null?void 0:u.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:u==null?void 0:u.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:l,options:u}=t,{data:c,error:d}=await je(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(a=u==null?void 0:u.data)!==null&&a!==void 0?a:{},create_user:(i=u==null?void 0:u.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:u==null?void 0:u.captchaToken},channel:(s=u==null?void 0:u.channel)!==null&&s!==void 0?s:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d}}throw new Am("You must provide either an email or phone number.")}catch(l){if(_e(l))return{data:{user:null,session:null},error:l};throw l}}async verifyOtp(t){var r,n;try{let a,i;"options"in t&&(a=(r=t.options)===null||r===void 0?void 0:r.redirectTo,i=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:s,error:l}=await je(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:a,xform:oo});if(l)throw l;if(!s)throw new Error("An error occurred on token verification.");const u=s.session,c=s.user;return u!=null&&u.access_token&&(await this._saveSession(u),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",u)),{data:{user:c,session:u},error:null}}catch(a){if(_e(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithSSO(t){var r,n,a;try{let i=null,s=null;return this.flowType==="pkce"&&([i,s]=await du(this.storage,this.storageKey)),await je(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((a=t==null?void 0:t.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:s}),headers:this.headers,xform:bne})}catch(i){if(_e(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new io;const{error:a}=await je(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return{data:{user:null,session:null},error:a}})}catch(t){if(_e(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:a,options:i}=t,{error:s}=await je(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:s}}else if("phone"in t){const{phone:n,type:a,options:i}=t,{data:s,error:l}=await je(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:s==null?void 0:s.message_id},error:l}}throw new Am("You must provide either an email or phone number and a type")}catch(r){if(_e(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),a=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await Im(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.storage.isServer){let s=this.suppressGetSessionWarning;t=new Proxy(t,{get:(u,c,d)=>(!s&&c==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),s=!0,this.suppressGetSessionWarning=!0),Reflect.get(u,c,d))})}return{data:{session:t},error:null}}const{session:a,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:a},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await je(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:vo}):await this._useSession(async r=>{var n,a,i;const{data:s,error:l}=r;if(l)throw l;return!(!((n=s.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new io}:await je(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(a=s.session)===null||a===void 0?void 0:a.access_token)!==null&&i!==void 0?i:void 0,xform:vo})})}catch(r){if(_e(r))return mne(r)&&(await this._removeSession(),await km(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:r};throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:a,error:i}=n;if(i)throw i;if(!a.session)throw new io;const s=a.session;let l=null,u=null;this.flowType==="pkce"&&t.email!=null&&([l,u]=await du(this.storage,this.storageKey));const{data:c,error:d}=await je(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:u}),jwt:s.access_token,xform:vo});if(d)throw d;return s.user=c.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),{data:{user:s.user},error:null}})}catch(n){if(_e(n))return{data:{user:null},error:n};throw n}}_decodeJWT(t){return IC(t)}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new io;const r=Date.now()/1e3;let n=r,a=!0,i=null;const s=IC(t.access_token);if(s.exp&&(n=s.exp,a=n<=r),a){const{session:l,error:u}=await this._callRefreshToken(t.refresh_token);if(u)return{data:{user:null,session:null},error:u};if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:u}=await this._getUser(t.access_token);if(u)throw u;i={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(r){if(_e(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:s,error:l}=r;if(l)throw l;t=(n=s.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new io;const{session:a,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:a?{data:{user:a.user,session:a},error:null}:{data:{user:null,session:null},error:null}})}catch(r){if(_e(r))return{data:{user:null,session:null},error:r};throw r}}async _getSessionFromURL(t){try{if(!kn())throw new Rm("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow())throw new Rm("Not a valid implicit grant flow url.");if(this.flowType=="pkce"&&!t)throw new kC("Not a valid PKCE flow url.");const r=P1(window.location.href);if(t){if(!r.code)throw new kC("No code detected.");const{data:_,error:S}=await this._exchangeCodeForSession(r.code);if(S)throw S;const T=new URL(window.location.href);return T.searchParams.delete("code"),window.history.replaceState(window.history.state,"",T.toString()),{data:{session:_.session,redirectType:null},error:null}}if(r.error||r.error_description||r.error_code)throw new Rm(r.error_description||"Error in URL with unspecified error_description",{error:r.error||"unspecified_error",code:r.error_code||"unspecified_code"});const{provider_token:n,provider_refresh_token:a,access_token:i,refresh_token:s,expires_in:l,expires_at:u,token_type:c}=r;if(!i||!l||!s||!c)throw new Rm("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(l);let h=d+f;u&&(h=parseInt(u));const v=h-d;v*1e3<=Wd&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${v}s, should have been closer to ${f}s`);const b=h-f;d-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,h,d):d-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,h,d);const{data:p,error:$}=await this._getUser(i);if($)throw $;const y={provider_token:n,provider_refresh_token:a,access_token:i,expires_in:f,expires_at:h,refresh_token:s,token_type:c,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:r.type},error:null}}catch(r){if(_e(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantFlow(){const t=P1(window.location.href);return!!(kn()&&(t.access_token||t.error_description))}async _isPKCEFlow(){const t=P1(window.location.href),r=await Im(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return{error:i};const s=(n=a.session)===null||n===void 0?void 0:n.access_token;if(s){const{error:l}=await this.admin.signOut(s,t);if(l&&!(hne(l)&&(l.status===404||l.status===401||l.status===403)))return{error:l}}return t!=="others"&&(await this._removeSession(),await km(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const r=ene(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,a;try{const{data:{session:i},error:s}=r;if(s)throw s;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((a=this.stateChangeEmitters.get(t))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,r={}){let n=null,a=null;this.flowType==="pkce"&&([n,a]=await du(this.storage,this.storageKey,!0));try{return await je(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:a,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(_e(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(r){if(_e(r))return{data:null,error:r};throw r}}async linkIdentity(t){var r;try{const{data:n,error:a}=await this._useSession(async i=>{var s,l,u,c,d;const{data:f,error:h}=i;if(h)throw h;const v=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(s=t.options)===null||s===void 0?void 0:s.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(u=t.options)===null||u===void 0?void 0:u.queryParams,skipBrowserRedirect:!0});return await je(this.fetch,"GET",v,{headers:this.headers,jwt:(d=(c=f.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(a)throw a;return kn()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),{data:{provider:t.provider,url:n==null?void 0:n.url},error:null}}catch(n){if(_e(n))return{data:{provider:t.provider,url:null},error:n};throw n}}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,a;const{data:i,error:s}=r;if(s)throw s;return await je(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(a=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&a!==void 0?a:void 0})})}catch(r){if(_e(r))return{data:null,error:r};throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await ane(async a=>(a>0&&await nne(200*Math.pow(2,a-1)),this._debug(r,"refreshing attempt",a),await je(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:oo})),(a,i)=>{const s=200*Math.pow(2,a);return i&&O1(i)&&Date.now()+s-n{try{await l.callback(t,r)}catch(u){i.push(u)}});if(await Promise.all(s),i.length>0){for(let l=0;lthis._autoRefreshTokenTick(),Wd);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const a=Math.floor((n.expires_at*1e3-t)/Wd);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${Wd}ms, refresh threshold is ${NC} ticks`),a<=NC&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof K4)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!kn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const a=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&a.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&a.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,s]=await du(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(s)}`});a.push(l.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);a.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&a.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${a.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;return i?{data:null,error:i}:await je(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(_e(r))return{data:null,error:r};throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,a;const{data:i,error:s}=r;if(s)return{data:null,error:s};const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:u,error:c}=await je(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return c?{data:null,error:c}:(t.factorType==="totp"&&(!((a=u==null?void 0:u.totp)===null||a===void 0)&&a.qr_code)&&(u.totp.qr_code=`data:image/svg+xml;utf-8,${u.totp.qr_code}`),{data:u,error:null})})}catch(r){if(_e(r))return{data:null,error:r};throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return{data:null,error:i};const{data:s,error:l}=await je(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});return l?{data:null,error:l}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+s.expires_in},s)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",s),{data:s,error:l})})}catch(r){if(_e(r))return{data:null,error:r};throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;return i?{data:null,error:i}:await je(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(_e(r))return{data:null,error:r};throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?{data:null,error:n}:await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){const{data:{user:t},error:r}=await this.getUser();if(r)return{data:null,error:r};const n=(t==null?void 0:t.factors)||[],a=n.filter(s=>s.factor_type==="totp"&&s.status==="verified"),i=n.filter(s=>s.factor_type==="phone"&&s.status==="verified");return{data:{all:n,totp:a,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var r,n;const{data:{session:a},error:i}=t;if(i)return{data:null,error:i};if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const s=this._decodeJWT(a.access_token);let l=null;s.aal&&(l=s.aal);let u=l;((n=(r=a.user.factors)===null||r===void 0?void 0:r.filter(f=>f.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(u="aal2");const d=s.amr||[];return{data:{currentLevel:l,nextLevel:u,currentAuthenticationMethods:d},error:null}}))}}bh.nextInstanceID=0;const Mne=bh;class jne extends Mne{constructor(t){super(t)}}var Dne=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function l(d){try{c(n.next(d))}catch(f){s(f)}}function u(d){try{c(n.throw(d))}catch(f){s(f)}}function c(d){d.done?i(d.value):a(d.value).then(l,u)}c((n=n.apply(e,t||[])).next())})};class Ine{constructor(t,r,n){var a,i,s;if(this.supabaseUrl=t,this.supabaseKey=r,!t)throw new Error("supabaseUrl is required.");if(!r)throw new Error("supabaseKey is required.");const l=qre(t);this.realtimeUrl=`${l}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${l}/auth/v1`,this.storageUrl=`${l}/storage/v1`,this.functionsUrl=`${l}/functions/v1`;const u=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,c={db:zre,realtime:Wre,auth:Object.assign(Object.assign({},Bre),{storageKey:u}),global:Nre},d=Qre(n??{},c);this.storageKey=(a=d.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(i=d.global.headers)!==null&&i!==void 0?i:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((s=d.auth)!==null&&s!==void 0?s:{},this.headers,d.global.fetch),this.fetch=Yre(r,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},d.realtime)),this.rest=new sre(`${l}/rest/v1`,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),d.accessToken||this._listenForAuthEvents()}get functions(){return new Lte(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new Rre(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,r={},n={}){return this.rest.rpc(t,r,n)}channel(t,r={config:{}}){return this.realtime.channel(t,r)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,r;return Dne(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(r=(t=n.session)===null||t===void 0?void 0:t.access_token)!==null&&r!==void 0?r:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:a,storageKey:i,flowType:s,lock:l,debug:u},c,d){var f;const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new jne({url:this.authUrl,headers:Object.assign(Object.assign({},h),c),storageKey:i,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:a,flowType:s,lock:l,debug:u,fetch:d,hasCustomAuthorizationHeader:(f="Authorization"in this.headers)!==null&&f!==void 0?f:!1})}_initRealtimeClient(t){return new xre(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(t,r,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.realtime.setAuth(n??null),this.changedAccessToken=n):t==="SIGNED_OUT"&&(this.realtime.setAuth(this.supabaseKey),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const kne=(e,t,r)=>new Ine(e,t,r),Ane="https://wivolixjgzmaigovvchs.supabase.co",Rne="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Indpdm9saXhqZ3ptYWlnb3Z2Y2hzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDgwNTU0NjYsImV4cCI6MjAyMzYzMTQ2Nn0.zsjfQF1sjV0Apk93u_kX9KsOakbd_M7u6adADcoO2cI",wo=kne(Ane,Rne),BC=e=>({id:BigInt(e.id),createdAt:new Date(e.created_at),name:e.name,description:e.description,location:e.location,rsvpLink:e.rsvpLink,eventImage:e.eventImage}),Wb=e=>({memberId:BigInt(e.memberId),createdAt:new Date(e.created_at),firstName:e.firstName,lastName:e.lastName,email:e.email,discord:e.discord,linkedin:e.linkedin||void 0,github:e.github,profilePicture:e.profilePicture}),WC=e=>({teamId:BigInt(e.teamId),createdAt:new Date(e.created_at),name:e.name,logo:e.logo,deployLink:e.deployLink,githubRepo:e.githubRepo}),mx={getAllMembers:async()=>{const{data:e,error:t}=await wo.from("Members").select("*").returns();if(t)throw new Error(t.message);return e?e.map(Wb):[]},getMemberById:async e=>{const{data:t,error:r}=await wo.from("Members").select("*").eq("memberId",e).returns().single();if(r)throw new Error(r.message);if(!t)throw new Error("Member not found");return Wb(t)},createMember:async e=>{throw new Error("Not implemented")},updateMember:async(e,t)=>{throw new Error("Not implemented")},deleteMember:async e=>{throw new Error("Not implemented")}},VC=({children:e,to:t,isMobile:r=!1,onClick:n=()=>{}})=>w.jsx(ax,{to:t,children:w.jsx(Ct,{px:4,py:2,rounded:"md",w:r?"full":"auto",_hover:{textDecoration:"none",bg:or("gray.100","gray.700")},onClick:n,children:e})}),Vd=({href:e,icon:t})=>w.jsx(ai,{href:e,isExternal:!0,children:w.jsx(Ct,{as:"span",fontSize:"xl",children:t})}),Lne=va(Ct),Fne=()=>{const e=mJ({base:"",sm:"",md:""});return w.jsx(Ct,{fontSize:"1.5rem",fontWeight:"bold",marginRight:"1em",whiteSpace:"nowrap",fontFamily:"monospace",children:e})},Ar=({children:e})=>{const[t,r]=P.useState(!1),{isOpen:n,onOpen:a,onClose:i}=UD(),s=or("gray.50","gray.900"),l=or("white","gray.800"),u=or("gray.50","gray.900"),c=()=>r(!t),d=[{to:"/members",label:"Members"},{to:"/teams",label:"Teams"},{to:"/events",label:"Events"},{to:"/about",label:"About"},{to:"/join",label:"Join"}];return w.jsxs(Ct,{minH:"100vh",bg:s,display:"flex",flexDirection:"column",children:[w.jsx(Ct,{bg:l,boxShadow:"sm",position:"fixed",width:"full",zIndex:10,children:w.jsx(wv,{maxW:"container.xl",children:w.jsxs(ll,{h:16,alignItems:"center",justifyContent:"space-between",children:[w.jsxs(ll,{alignItems:"center",children:[w.jsx(ax,{to:"/",children:w.jsx(Fne,{})}),w.jsx(ma,{spacing:1,display:{base:"none",md:"flex"},children:d.map(f=>w.jsx(VC,{to:f.to,children:f.label},f.to))})]}),w.jsx(fD,{display:{base:"flex",md:"none"},onClick:a,variant:"ghost","aria-label":"Open menu",icon:w.jsx(Ote,{})})]})})}),w.jsxs(uee,{isOpen:n,placement:"right",onClose:i,children:[w.jsx(Zw,{}),w.jsxs(c4,{children:[w.jsx(ex,{}),w.jsx(Xw,{children:"Menu"}),w.jsx(Jw,{children:w.jsx(Zr,{spacing:4,align:"stretch",children:d.map(f=>w.jsx(VC,{to:f.to,isMobile:!0,onClick:i,children:f.label},f.to))})})]})]}),w.jsx(wv,{maxW:"container.xl",pt:20,flex:1,children:e}),w.jsx(Ct,{as:"footer",bg:u,py:6,mt:8,children:w.jsx(wv,{maxW:"container.xl",children:w.jsxs(ll,{direction:{base:"column",md:"row"},justifyContent:"space-between",alignItems:{base:"flex-start",md:"center"},gap:4,children:[w.jsxs(ll,{direction:{base:"column",sm:"row"},alignItems:{base:"flex-start",sm:"center"},gap:4,children:[w.jsx(El,{onClick:c,variant:"link",fontWeight:"bold",rightIcon:w.jsx(Cte,{}),transform:t?"scaleY(1.01)":"none",transition:"transform 0.3s",children:"Connect with us"}),w.jsx(Cl,{children:t&&w.jsx(Lne,{initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{duration:.3},overflow:"hidden",children:w.jsxs(ma,{spacing:{base:4,md:10},children:[w.jsx(Vd,{href:"mailto:your-email@example.com",icon:w.jsx(lx,{})}),w.jsx(Vd,{href:"https://github.com/your-org/your-repo",icon:w.jsx(xte,{})}),w.jsx(Vd,{href:"https://twitter.com/your-twitter",icon:w.jsx(Pte,{})}),w.jsx(Vd,{href:"https://linkedin.com/company/your-company",icon:w.jsx(sx,{})}),w.jsx(Vd,{href:"https://instagram.com/your-instagram",icon:w.jsx(Ste,{})})]})})})]}),w.jsxs(Xe,{children:["© ",new Date().getFullYear()," Husky Coding Project. All rights reserved."]})]})})})]})};var X4=(e=>(e.FIRST_NAME="First Name",e.LAST_NAME="Last Name",e.EMAIL="Email",e.DISCORD="Discord",e))(X4||{});const Nne=()=>{const[e,t]=P.useState([]),[r,n]=P.useState([]),[a,i]=P.useState(!0),[s,l]=P.useState(null),[u,c]=P.useState(""),[d,f]=P.useState("First Name");return P.useEffect(()=>{(async()=>{try{const v=await mx.getAllMembers();t(v),n(v)}catch{l("Failed to fetch members")}finally{i(!1)}})()},[]),P.useEffect(()=>{let h;switch(d){case"First Name":h=e.filter(v=>v.firstName.toLowerCase().includes(u.toLowerCase()));break;case"Last Name":h=e.filter(v=>v.lastName.toLowerCase().includes(u.toLowerCase()));break;case"Email":h=e.filter(v=>v.email.toLowerCase().includes(u.toLowerCase()));break;case"Discord":h=e.filter(v=>v.discord.toLowerCase().includes(u.toLowerCase()));break;default:h=e}n(h)},[u,e,d]),a?w.jsx(Ar,{children:w.jsx(Tl,{size:"xl"})}):s?w.jsx(Ar,{children:w.jsx(Xe,{color:"red.500",children:s})}):w.jsx(Ar,{children:w.jsxs(Zr,{spacing:8,align:"stretch",children:[w.jsx(Uo,{children:"Members"}),w.jsxs(lp,{children:[w.jsx(kh,{pointerEvents:"none",children:w.jsx(ix,{color:"gray.300"})}),w.jsx(Ah,{type:"text",placeholder:"Search members...",value:u,onChange:h=>c(h.target.value)}),w.jsx(h4,{value:d,onChange:h=>f(h.target.value),w:"15%",paddingLeft:6,children:Object.values(X4).map(h=>w.jsx("option",{value:h,children:h},h))})]}),w.jsx(fp,{columns:[1,2,3,4],spacing:6,children:r.map(h=>{var v;return w.jsx(Ete,{member:h},(v=h.memberId)==null?void 0:v.toString())})})]})})},Z4={getAllTeams:async()=>{let{data:e,error:t}=await wo.from("Teams").select("*").returns();if(t)throw new Error(t.message);return e?e.map(WC):[]},getTeamById:async e=>{let{data:t,error:r}=await wo.from("Teams").select("*").eq("teamId",e).returns().single();if(r)throw new Error(r.message);if(!t)throw new Error("Team not found");return WC(t)},createTeam:async e=>{throw new Error("Not implemented")},updateTeam:async(e,t)=>{throw new Error("Not implemented")},deleteTeam:async e=>{throw new Error("Not implemented")},getTeamMembers:async e=>{const t=Number(e);let{data:r,error:n}=await wo.from("TeamMemberRelation").select("*").eq("teamId",t).returns();if(n)throw new Error(n.message);if(!r)return[];const a=r.map(l=>l.memberId);let{data:i,error:s}=await wo.from("Members").select("*").in("memberId",a).returns();if(s)throw new Error(s.message);return i?i.map(Wb):[]},addTeamMember:async(e,t)=>{throw new Error("Not implemented")},removeTeamMember:async(e,t)=>{throw new Error("Not implemented")}},zne=va(Ct),Bne=({team:e})=>{const{isOpen:t,onOpen:r,onClose:n}=UD(),[a,i]=P.useState([]),[s,l]=P.useState(!1),u=or("white","gray.800"),c=or("gray.200","gray.600"),d=async()=>{try{l(!0);const f=await Z4.getTeamMembers(e.teamId),h=(await Promise.all(f.map(v=>v.memberId?mx.getMemberById(v.memberId):void 0))).filter(v=>v!==void 0);i(h),r()}catch(f){console.error("Error fetching team members:",f)}finally{l(!1)}};return w.jsxs(w.Fragment,{children:[w.jsx(zne,{borderWidth:"1px",borderRadius:"lg",p:6,boxShadow:"md",cursor:"pointer",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2},onClick:d,bg:u,borderColor:c,children:w.jsxs(Zr,{spacing:4,align:"center",children:[e.logo&&w.jsx(sp,{src:e.logo,alt:"Team Logo",boxSize:"100px",objectFit:"contain",borderRadius:"full"}),w.jsx(Xe,{fontWeight:"bold",fontSize:"xl",children:e.name||`Team ${e.teamId}`}),e.teamId!==null&&e.teamId!==void 0&&w.jsxs(ZD,{colorScheme:"green",children:["PM ID: ",e.teamId.toString()]}),e.deployLink&&w.jsx(ai,{href:e.deployLink,isExternal:!0,color:"blue.500",onClick:f=>f.stopPropagation(),children:"View Deployment"}),w.jsxs(Xe,{fontSize:"sm",color:"gray.500",children:["Created:"," ",e.createdAt&&new Date(e.createdAt).toLocaleDateString()]})]})}),w.jsxs(Kw,{isOpen:t&&!s,onClose:n,children:[w.jsx(Zw,{}),w.jsxs(u4,{children:[w.jsx(Xw,{children:e.name||`Team ${e.teamId}`}),w.jsx(ex,{}),w.jsx(Jw,{children:w.jsxs(Zr,{align:"start",spacing:4,children:[w.jsx(Uo,{size:"md",children:"Team Members"}),w.jsx(cp,{spacing:3,width:"100%",children:a.map(f=>{var h;return w.jsx(qD,{children:w.jsxs(ma,{children:[w.jsx(kw,{size:"sm",name:`${f.firstName} ${f.lastName}`}),w.jsxs(Xe,{children:[f.firstName," ",f.lastName]}),w.jsx(Xe,{fontSize:"sm",color:"gray.500",children:f.email})]})},(h=f.memberId)==null?void 0:h.toString())})}),a.length===0&&w.jsx(Xe,{children:"No team members found."})]})}),w.jsx(d4,{children:w.jsx(El,{colorScheme:"blue",mr:3,onClick:n,children:"Close"})})]})]})]})},Wne=()=>{const[e,t]=P.useState([]),[r,n]=P.useState([]),[a,i]=P.useState(!0),[s,l]=P.useState(null),[u,c]=P.useState("");return P.useEffect(()=>{(async()=>{try{const f=await Z4.getAllTeams();t(f),n(f)}catch{l("Failed to fetch teams")}finally{i(!1)}})()},[]),P.useEffect(()=>{const d=e.filter(f=>{var h;return(h=f.name)==null?void 0:h.toLowerCase().includes(u.toLowerCase())});n(d)},[u,e]),a?w.jsx(Ar,{children:w.jsx(Tl,{size:"xl"})}):s?w.jsx(Ar,{children:w.jsx(Xe,{color:"red.500",children:s})}):w.jsx(Ar,{children:w.jsxs(Zr,{spacing:8,align:"stretch",children:[w.jsx(Uo,{children:"Teams"}),w.jsxs(lp,{children:[w.jsx(kh,{pointerEvents:"none",children:w.jsx(ix,{color:"gray.300"})}),w.jsx(Ah,{type:"text",placeholder:"Search teams...",value:u,onChange:d=>c(d.target.value)})]}),w.jsx(fp,{columns:[1,2,3],spacing:6,children:r.map(d=>{var f;return w.jsx(Bne,{team:d},(f=d.teamId)==null?void 0:f.toString())})})]})})},Vne=({event:e})=>{const t=or("white","gray.800"),r=or("gray.200","gray.600");return w.jsxs(Ct,{borderWidth:"1px",borderRadius:"lg",overflow:"hidden",boxShadow:"lg",transition:"all 0.3s",_hover:{transform:"translateY(-5px)",boxShadow:"xl"},bg:t,borderColor:r,children:[w.jsx(sp,{src:e.eventImage,alt:e.name,objectFit:"cover",height:"200px",width:"100%"}),w.jsx(Ct,{p:6,children:w.jsxs(Zr,{align:"start",spacing:3,children:[w.jsx(Uo,{size:"md",children:e.name}),w.jsx(Xe,{noOfLines:2,color:"gray.600",children:e.description}),w.jsxs(ma,{spacing:4,children:[w.jsxs(ma,{children:[w.jsx(Tte,{color:"gray.500"}),w.jsx(Xe,{fontSize:"sm",color:"gray.500",children:e.location})]}),w.jsxs(ma,{children:[w.jsx(mte,{color:"gray.500"}),w.jsx(Xe,{fontSize:"sm",color:"gray.500",children:e.createdAt&&new Date(e.createdAt).toLocaleDateString()})]})]}),w.jsx(El,{as:"a",href:e.rsvpLink,target:"_blank",colorScheme:"teal",size:"sm",width:"full",children:"RSVP"})]})})]})},Hne={getAllEvents:async()=>{let{data:e,error:t}=await wo.from("Events").select("*");if(t)throw new Error(t.message);return e?e.map(BC):[]},getEventById:async e=>{const{data:t,error:r}=await wo.from("Events").select("*").eq("id",e).returns().single();if(r)throw new Error(r.message);if(!t)throw new Error("Event not found");return BC(t)},createEvent:async e=>{throw new Error("Not implemented")},updateEvent:async(e,t)=>{throw new Error("Not implemented")},deleteEvent:async e=>{throw new Error("Not implemented")}},Une=()=>{const[e,t]=P.useState([]),[r,n]=P.useState([]),[a,i]=P.useState(!0),[s,l]=P.useState(null),[u,c]=P.useState("");return P.useEffect(()=>{(async()=>{try{const f=await Hne.getAllEvents();t(f),n(f)}catch{l("Failed to fetch events")}finally{i(!1)}})()},[]),P.useEffect(()=>{const d=e.filter(f=>f.name.toLowerCase().includes(u.toLowerCase()));n(d)},[u,e]),a?w.jsx(Ar,{children:w.jsx(Tl,{size:"xl"})}):s?w.jsx(Ar,{children:w.jsx(Xe,{color:"red.500",children:s})}):w.jsx(Ar,{children:w.jsxs(Zr,{spacing:8,align:"stretch",children:[w.jsx(Uo,{children:"Events"}),w.jsxs(lp,{children:[w.jsx(kh,{pointerEvents:"none",children:w.jsx(ix,{color:"gray.300"})}),w.jsx(Ah,{type:"text",placeholder:"Search events...",value:u,onChange:d=>c(d.target.value)})]}),w.jsx(fp,{columns:[1,2,3],spacing:6,children:r.map(d=>{var f;return w.jsx(Vne,{event:d},(f=d.id)==null?void 0:f.toString())})})]})})};var J4={},Sp={},eI={exports:{}};/** + * chroma.js - JavaScript library for color conversions + * + * Copyright (c) 2011-2019, Gregor Aisch + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. The name Gregor Aisch may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * ------------------------------------------------------- + * + * chroma.js includes colors from colorbrewer2.org, which are released under + * the following license: + * + * Copyright (c) 2002 Cynthia Brewer, Mark Harrower, + * and The Pennsylvania State University. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + * + * ------------------------------------------------------ + * + * Named colors are taken from X11 Color Names. + * http://www.w3.org/TR/css3-color/#svg-color + * + * @preserve + */(function(e,t){(function(r,n){e.exports=n()})(Qt,function(){for(var r=function(m,g,x){return g===void 0&&(g=0),x===void 0&&(x=1),mx?x:m},n=r,a=function(m){m._clipped=!1,m._unclipped=m.slice(0);for(var g=0;g<=3;g++)g<3?((m[g]<0||m[g]>255)&&(m._clipped=!0),m[g]=n(m[g],0,255)):g===3&&(m[g]=n(m[g],0,1));return m},i={},s=0,l=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];s=3?Array.prototype.slice.call(m):d(m[0])=="object"&&g?g.split("").filter(function(x){return m[0][x]!==void 0}).map(function(x){return m[0][x]}):m[0]},h=c,v=function(m){if(m.length<2)return null;var g=m.length-1;return h(m[g])=="string"?m[g].toLowerCase():null},b=Math.PI,p={clip_rgb:a,limit:r,type:c,unpack:f,last:v,PI:b,TWOPI:b*2,PITHIRD:b/3,DEG2RAD:b/180,RAD2DEG:180/b},$={format:{},autodetect:[]},y=p.last,_=p.clip_rgb,S=p.type,T=$,I=function(){for(var g=[],x=arguments.length;x--;)g[x]=arguments[x];var C=this;if(S(g[0])==="object"&&g[0].constructor&&g[0].constructor===this.constructor)return g[0];var M=y(g),j=!1;if(!M){j=!0,T.sorted||(T.autodetect=T.autodetect.sort(function(V,X){return X.p-V.p}),T.sorted=!0);for(var E=0,R=T.autodetect;E4?m[4]:1;return j===1?[0,0,0,E]:[x>=1?0:255*(1-x)*(1-j),C>=1?0:255*(1-C)*(1-j),M>=1?0:255*(1-M)*(1-j),E]},Te=rt,ze=z,Pe=A,H=$,ae=p.unpack,ie=p.type,ge=Ee;Pe.prototype.cmyk=function(){return ge(this._rgb)},ze.cmyk=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Pe,[null].concat(m,["cmyk"])))},H.format.cmyk=Te,H.autodetect.push({p:2,test:function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];if(m=ae(m,"cmyk"),ie(m)==="array"&&m.length===4)return"cmyk"}});var $e=p.unpack,me=p.last,re=function(m){return Math.round(m*100)/100},oe=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=$e(m,"hsla"),C=me(m)||"lsa";return x[0]=re(x[0]||0),x[1]=re(x[1]*100)+"%",x[2]=re(x[2]*100)+"%",C==="hsla"||x.length>3&&x[3]<1?(x[3]=x.length>3?x[3]:1,C="hsla"):x.length=3,C+"("+x.join(",")+")"},se=oe,ft=p.unpack,gt=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];m=ft(m,"rgba");var x=m[0],C=m[1],M=m[2];x/=255,C/=255,M/=255;var j=Math.min(x,C,M),E=Math.max(x,C,M),R=(E+j)/2,L,W;return E===j?(L=0,W=Number.NaN):L=R<.5?(E-j)/(E+j):(E-j)/(2-E-j),x==E?W=(C-M)/(E-j):C==E?W=2+(M-x)/(E-j):M==E&&(W=4+(x-C)/(E-j)),W*=60,W<0&&(W+=360),m.length>3&&m[3]!==void 0?[W,L,R,m[3]]:[W,L,R]},zt=gt,wr=p.unpack,Hn=p.last,_n=se,_a=zt,wn=Math.round,wa=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=wr(m,"rgba"),C=Hn(m)||"rgb";return C.substr(0,3)=="hsl"?_n(_a(x),C):(x[0]=wn(x[0]),x[1]=wn(x[1]),x[2]=wn(x[2]),(C==="rgba"||x.length>3&&x[3]<1)&&(x[3]=x.length>3?x[3]:1,C="rgba"),C+"("+x.slice(0,C==="rgb"?3:4).join(",")+")")},Bt=wa,xr=p.unpack,Jt=Math.round,ur=function(){for(var m,g=[],x=arguments.length;x--;)g[x]=arguments[x];g=xr(g,"hsl");var C=g[0],M=g[1],j=g[2],E,R,L;if(M===0)E=R=L=j*255;else{var W=[0,0,0],V=[0,0,0],X=j<.5?j*(1+M):j+M-j*M,U=2*j-X,ne=C/360;W[0]=ne+1/3,W[1]=ne,W[2]=ne-1/3;for(var ee=0;ee<3;ee++)W[ee]<0&&(W[ee]+=1),W[ee]>1&&(W[ee]-=1),6*W[ee]<1?V[ee]=U+(X-U)*6*W[ee]:2*W[ee]<1?V[ee]=X:3*W[ee]<2?V[ee]=U+(X-U)*(2/3-W[ee])*6:V[ee]=U;m=[Jt(V[0]*255),Jt(V[1]*255),Jt(V[2]*255)],E=m[0],R=m[1],L=m[2]}return g.length>3?[E,R,L,g[3]]:[E,R,L,1]},Sr=ur,Un=Sr,xn=$,cr=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,xa=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Sa=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,bi=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,_i=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Sn=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Pa=Math.round,$a=function(m){m=m.toLowerCase().trim();var g;if(xn.format.named)try{return xn.format.named(m)}catch{}if(g=m.match(cr)){for(var x=g.slice(1,4),C=0;C<3;C++)x[C]=+x[C];return x[3]=1,x}if(g=m.match(xa)){for(var M=g.slice(1,5),j=0;j<4;j++)M[j]=+M[j];return M}if(g=m.match(Sa)){for(var E=g.slice(1,4),R=0;R<3;R++)E[R]=Pa(E[R]*2.55);return E[3]=1,E}if(g=m.match(bi)){for(var L=g.slice(1,5),W=0;W<3;W++)L[W]=Pa(L[W]*2.55);return L[3]=+L[3],L}if(g=m.match(_i)){var V=g.slice(1,4);V[1]*=.01,V[2]*=.01;var X=Un(V);return X[3]=1,X}if(g=m.match(Sn)){var U=g.slice(1,4);U[1]*=.01,U[2]*=.01;var ne=Un(U);return ne[3]=+g[4],ne}};$a.test=function(m){return cr.test(m)||xa.test(m)||Sa.test(m)||bi.test(m)||_i.test(m)||Sn.test(m)};var wi=$a,xi=z,Si=A,Pi=$,Fr=p.type,Yn=Bt,$i=wi;Si.prototype.css=function(m){return Yn(this._rgb,m)},xi.css=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Si,[null].concat(m,["css"])))},Pi.format.css=$i,Pi.autodetect.push({p:5,test:function(m){for(var g=[],x=arguments.length-1;x-- >0;)g[x]=arguments[x+1];if(!g.length&&Fr(m)==="string"&&$i.test(m))return"css"}});var Oa=A,qo=z,Oi=$,Pn=p.unpack;Oi.format.gl=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=Pn(m,"rgba");return x[0]*=255,x[1]*=255,x[2]*=255,x},qo.gl=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Oa,[null].concat(m,["gl"])))},Oa.prototype.gl=function(){var m=this._rgb;return[m[0]/255,m[1]/255,m[2]/255,m[3]]};var Qo=p.unpack,Nr=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=Qo(m,"rgb"),C=x[0],M=x[1],j=x[2],E=Math.min(C,M,j),R=Math.max(C,M,j),L=R-E,W=L*100/255,V=E/(255-L)*100,X;return L===0?X=Number.NaN:(C===R&&(X=(M-j)/L),M===R&&(X=2+(j-C)/L),j===R&&(X=4+(C-M)/L),X*=60,X<0&&(X+=360)),[X,W,V]},Ko=Nr,Xo=p.unpack,Zo=Math.floor,Jo=function(){for(var m,g,x,C,M,j,E=[],R=arguments.length;R--;)E[R]=arguments[R];E=Xo(E,"hcg");var L=E[0],W=E[1],V=E[2],X,U,ne;V=V*255;var ee=W*255;if(W===0)X=U=ne=V;else{L===360&&(L=0),L>360&&(L-=360),L<0&&(L+=360),L/=60;var ye=Zo(L),Oe=L-ye,Ie=V*(1-W),We=Ie+ee*(1-Oe),Vt=Ie+ee*Oe,At=Ie+ee;switch(ye){case 0:m=[At,Vt,Ie],X=m[0],U=m[1],ne=m[2];break;case 1:g=[We,At,Ie],X=g[0],U=g[1],ne=g[2];break;case 2:x=[Ie,At,Vt],X=x[0],U=x[1],ne=x[2];break;case 3:C=[Ie,We,At],X=C[0],U=C[1],ne=C[2];break;case 4:M=[Vt,Ie,At],X=M[0],U=M[1],ne=M[2];break;case 5:j=[At,Ie,We],X=j[0],U=j[1],ne=j[2];break}}return[X,U,ne,E.length>3?E[3]:1]},es=Jo,dr=p.unpack,ts=p.type,rs=z,Ci=A,Ti=$,ns=Ko;Ci.prototype.hcg=function(){return ns(this._rgb)},rs.hcg=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Ci,[null].concat(m,["hcg"])))},Ti.format.hcg=es,Ti.autodetect.push({p:1,test:function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];if(m=dr(m,"hcg"),ts(m)==="array"&&m.length===3)return"hcg"}});var rn=p.unpack,as=p.last,Gn=Math.round,is=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=rn(m,"rgba"),C=x[0],M=x[1],j=x[2],E=x[3],R=as(m)||"auto";E===void 0&&(E=1),R==="auto"&&(R=E<1?"rgba":"rgb"),C=Gn(C),M=Gn(M),j=Gn(j);var L=C<<16|M<<8|j,W="000000"+L.toString(16);W=W.substr(W.length-6);var V="0"+Gn(E*255).toString(16);switch(V=V.substr(V.length-2),R.toLowerCase()){case"rgba":return"#"+W+V;case"argb":return"#"+V+W;default:return"#"+W}},Ei=is,os=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,nn=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,ss=function(m){if(m.match(os)){(m.length===4||m.length===7)&&(m=m.substr(1)),m.length===3&&(m=m.split(""),m=m[0]+m[0]+m[1]+m[1]+m[2]+m[2]);var g=parseInt(m,16),x=g>>16,C=g>>8&255,M=g&255;return[x,C,M,1]}if(m.match(nn)){(m.length===5||m.length===9)&&(m=m.substr(1)),m.length===4&&(m=m.split(""),m=m[0]+m[0]+m[1]+m[1]+m[2]+m[2]+m[3]+m[3]);var j=parseInt(m,16),E=j>>24&255,R=j>>16&255,L=j>>8&255,W=Math.round((j&255)/255*100)/100;return[E,R,L,W]}throw new Error("unknown hex color: "+m)},Mi=ss,ls=z,ji=A,us=p.type,Di=$,Ca=Ei;ji.prototype.hex=function(m){return Ca(this._rgb,m)},ls.hex=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(ji,[null].concat(m,["hex"])))},Di.format.hex=Mi,Di.autodetect.push({p:4,test:function(m){for(var g=[],x=arguments.length-1;x-- >0;)g[x]=arguments[x+1];if(!g.length&&us(m)==="string"&&[3,4,5,6,7,8,9].indexOf(m.length)>=0)return"hex"}});var cs=p.unpack,$n=p.TWOPI,Ta=Math.min,ds=Math.sqrt,qn=Math.acos,Ii=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=cs(m,"rgb"),C=x[0],M=x[1],j=x[2];C/=255,M/=255,j/=255;var E,R=Ta(C,M,j),L=(C+M+j)/3,W=L>0?1-R/L:0;return W===0?E=NaN:(E=(C-M+(C-j))/2,E/=ds((C-M)*(C-M)+(C-j)*(M-j)),E=qn(E),j>M&&(E=$n-E),E/=$n),[E*360,W,L]},fs=Ii,hs=p.unpack,Ea=p.limit,zr=p.TWOPI,Ma=p.PITHIRD,an=Math.cos,ms=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];m=hs(m,"hsi");var x=m[0],C=m[1],M=m[2],j,E,R;return isNaN(x)&&(x=0),isNaN(C)&&(C=0),x>360&&(x-=360),x<0&&(x+=360),x/=360,x<1/3?(R=(1-C)/3,j=(1+C*an(zr*x)/an(Ma-zr*x))/3,E=1-(R+j)):x<2/3?(x-=1/3,j=(1-C)/3,E=(1+C*an(zr*x)/an(Ma-zr*x))/3,R=1-(j+E)):(x-=2/3,E=(1-C)/3,R=(1+C*an(zr*x)/an(Ma-zr*x))/3,j=1-(E+R)),j=Ea(M*j*3),E=Ea(M*E*3),R=Ea(M*R*3),[j*255,E*255,R*255,m.length>3?m[3]:1]},vs=ms,ps=p.unpack,gs=p.type,ys=z,ki=A,Ai=$,bs=fs;ki.prototype.hsi=function(){return bs(this._rgb)},ys.hsi=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(ki,[null].concat(m,["hsi"])))},Ai.format.hsi=vs,Ai.autodetect.push({p:2,test:function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];if(m=ps(m,"hsi"),gs(m)==="array"&&m.length===3)return"hsi"}});var Qn=p.unpack,ja=p.type,_s=z,Ri=A,Da=$,ws=zt;Ri.prototype.hsl=function(){return ws(this._rgb)},_s.hsl=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Ri,[null].concat(m,["hsl"])))},Da.format.hsl=Sr,Da.autodetect.push({p:2,test:function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];if(m=Qn(m,"hsl"),ja(m)==="array"&&m.length===3)return"hsl"}});var xs=p.unpack,Ss=Math.min,Li=Math.max,Ps=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];m=xs(m,"rgb");var x=m[0],C=m[1],M=m[2],j=Ss(x,C,M),E=Li(x,C,M),R=E-j,L,W,V;return V=E/255,E===0?(L=Number.NaN,W=0):(W=R/E,x===E&&(L=(C-M)/R),C===E&&(L=2+(M-x)/R),M===E&&(L=4+(x-C)/R),L*=60,L<0&&(L+=360)),[L,W,V]},$s=Ps,Os=p.unpack,Ia=Math.floor,Cs=function(){for(var m,g,x,C,M,j,E=[],R=arguments.length;R--;)E[R]=arguments[R];E=Os(E,"hsv");var L=E[0],W=E[1],V=E[2],X,U,ne;if(V*=255,W===0)X=U=ne=V;else{L===360&&(L=0),L>360&&(L-=360),L<0&&(L+=360),L/=60;var ee=Ia(L),ye=L-ee,Oe=V*(1-W),Ie=V*(1-W*ye),We=V*(1-W*(1-ye));switch(ee){case 0:m=[V,We,Oe],X=m[0],U=m[1],ne=m[2];break;case 1:g=[Ie,V,Oe],X=g[0],U=g[1],ne=g[2];break;case 2:x=[Oe,V,We],X=x[0],U=x[1],ne=x[2];break;case 3:C=[Oe,Ie,V],X=C[0],U=C[1],ne=C[2];break;case 4:M=[We,Oe,V],X=M[0],U=M[1],ne=M[2];break;case 5:j=[V,Oe,Ie],X=j[0],U=j[1],ne=j[2];break}}return[X,U,ne,E.length>3?E[3]:1]},Ts=Cs,Es=p.unpack,Kn=p.type,ka=z,Xn=A,Zn=$,Ms=$s;Xn.prototype.hsv=function(){return Ms(this._rgb)},ka.hsv=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Xn,[null].concat(m,["hsv"])))},Zn.format.hsv=Ts,Zn.autodetect.push({p:2,test:function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];if(m=Es(m,"hsv"),Kn(m)==="array"&&m.length===3)return"hsv"}});var On={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Pr=On,Fi=p.unpack,$r=Math.pow,Cn=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=Fi(m,"rgb"),C=x[0],M=x[1],j=x[2],E=js(C,M,j),R=E[0],L=E[1],W=E[2],V=116*L-16;return[V<0?0:V,500*(R-L),200*(L-W)]},Aa=function(m){return(m/=255)<=.04045?m/12.92:$r((m+.055)/1.055,2.4)},Jn=function(m){return m>Pr.t3?$r(m,1/3):m/Pr.t2+Pr.t0},js=function(m,g,x){m=Aa(m),g=Aa(g),x=Aa(x);var C=Jn((.4124564*m+.3575761*g+.1804375*x)/Pr.Xn),M=Jn((.2126729*m+.7151522*g+.072175*x)/Pr.Yn),j=Jn((.0193339*m+.119192*g+.9503041*x)/Pr.Zn);return[C,M,j]},Ra=Cn,on=On,Ds=p.unpack,Ni=Math.pow,Is=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];m=Ds(m,"lab");var x=m[0],C=m[1],M=m[2],j,E,R,L,W,V;return E=(x+16)/116,j=isNaN(C)?E:E+C/500,R=isNaN(M)?E:E-M/200,E=on.Yn*D(E),j=on.Xn*D(j),R=on.Zn*D(R),L=O(3.2404542*j-1.5371385*E-.4985314*R),W=O(-.969266*j+1.8760108*E+.041556*R),V=O(.0556434*j-.2040259*E+1.0572252*R),[L,W,V,m.length>3?m[3]:1]},O=function(m){return 255*(m<=.00304?12.92*m:1.055*Ni(m,1/2.4)-.055)},D=function(m){return m>on.t1?m*m*m:on.t2*(m-on.t0)},F=Is,Z=p.unpack,pe=p.type,Re=z,Be=A,we=$,qe=Ra;Be.prototype.lab=function(){return qe(this._rgb)},Re.lab=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Be,[null].concat(m,["lab"])))},we.format.lab=F,we.autodetect.push({p:2,test:function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];if(m=Z(m,"lab"),pe(m)==="array"&&m.length===3)return"lab"}});var Wt=p.unpack,Et=p.RAD2DEG,Tn=Math.sqrt,La=Math.atan2,Fa=Math.round,zi=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=Wt(m,"lab"),C=x[0],M=x[1],j=x[2],E=Tn(M*M+j*j),R=(La(j,M)*Et+360)%360;return Fa(E*1e4)===0&&(R=Number.NaN),[C,E,R]},Fl=zi,jc=p.unpack,Dc=Ra,Ic=Fl,kc=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=jc(m,"rgb"),C=x[0],M=x[1],j=x[2],E=Dc(C,M,j),R=E[0],L=E[1],W=E[2];return Ic(R,L,W)},Ac=kc,Rc=p.unpack,Lc=p.DEG2RAD,Fc=Math.sin,Nc=Math.cos,zc=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=Rc(m,"lch"),C=x[0],M=x[1],j=x[2];return isNaN(j)&&(j=0),j=j*Lc,[C,Nc(j)*M,Fc(j)*M]},Nl=zc,Bc=p.unpack,Wc=Nl,Vc=F,Hc=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];m=Bc(m,"lch");var x=m[0],C=m[1],M=m[2],j=Wc(x,C,M),E=j[0],R=j[1],L=j[2],W=Vc(E,R,L),V=W[0],X=W[1],U=W[2];return[V,X,U,m.length>3?m[3]:1]},zl=Hc,Uc=p.unpack,Yc=zl,Gc=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=Uc(m,"hcl").reverse();return Yc.apply(void 0,x)},qc=Gc,Qc=p.unpack,Kc=p.type,Bl=z,Bi=A,ks=$,Wl=Ac;Bi.prototype.lch=function(){return Wl(this._rgb)},Bi.prototype.hcl=function(){return Wl(this._rgb).reverse()},Bl.lch=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Bi,[null].concat(m,["lch"])))},Bl.hcl=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Bi,[null].concat(m,["hcl"])))},ks.format.lch=zl,ks.format.hcl=qc,["lch","hcl"].forEach(function(m){return ks.autodetect.push({p:2,test:function(){for(var g=[],x=arguments.length;x--;)g[x]=arguments[x];if(g=Qc(g,m),Kc(g)==="array"&&g.length===3)return m}})});var Xc={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",cornflower:"#6495ed",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",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",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",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",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"},Vl=Xc,Zc=A,Hl=$,Jc=p.type,Na=Vl,ed=Mi,td=Ei;Zc.prototype.name=function(){for(var m=td(this._rgb,"rgb"),g=0,x=Object.keys(Na);g0;)g[x]=arguments[x+1];if(!g.length&&Jc(m)==="string"&&Na[m.toLowerCase()])return"named"}});var rd=p.unpack,nd=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=rd(m,"rgb"),C=x[0],M=x[1],j=x[2];return(C<<16)+(M<<8)+j},ad=nd,id=p.type,od=function(m){if(id(m)=="number"&&m>=0&&m<=16777215){var g=m>>16,x=m>>8&255,C=m&255;return[g,x,C,1]}throw new Error("unknown num color: "+m)},sd=od,ld=z,Ul=A,Yl=$,ud=p.type,cd=ad;Ul.prototype.num=function(){return cd(this._rgb)},ld.num=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Ul,[null].concat(m,["num"])))},Yl.format.num=sd,Yl.autodetect.push({p:5,test:function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];if(m.length===1&&ud(m[0])==="number"&&m[0]>=0&&m[0]<=16777215)return"num"}});var dd=z,As=A,Gl=$,ql=p.unpack,Ql=p.type,Kl=Math.round;As.prototype.rgb=function(m){return m===void 0&&(m=!0),m===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Kl)},As.prototype.rgba=function(m){return m===void 0&&(m=!0),this._rgb.slice(0,4).map(function(g,x){return x<3?m===!1?g:Kl(g):g})},dd.rgb=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(As,[null].concat(m,["rgb"])))},Gl.format.rgb=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=ql(m,"rgba");return x[3]===void 0&&(x[3]=1),x},Gl.autodetect.push({p:3,test:function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];if(m=ql(m,"rgba"),Ql(m)==="array"&&(m.length===3||m.length===4&&Ql(m[3])=="number"&&m[3]>=0&&m[3]<=1))return"rgb"}});var Wi=Math.log,fd=function(m){var g=m/100,x,C,M;return g<66?(x=255,C=g<6?0:-155.25485562709179-.44596950469579133*(C=g-2)+104.49216199393888*Wi(C),M=g<20?0:-254.76935184120902+.8274096064007395*(M=g-10)+115.67994401066147*Wi(M)):(x=351.97690566805693+.114206453784165*(x=g-55)-40.25366309332127*Wi(x),C=325.4494125711974+.07943456536662342*(C=g-50)-28.0852963507957*Wi(C),M=255),[x,C,M,1]},Xl=fd,hd=Xl,md=p.unpack,vd=Math.round,pd=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];for(var x=md(m,"rgb"),C=x[0],M=x[2],j=1e3,E=4e4,R=.4,L;E-j>R;){L=(E+j)*.5;var W=hd(L);W[2]/W[0]>=M/C?E=L:j=L}return vd(L)},gd=pd,Rs=z,Vi=A,Ls=$,yd=gd;Vi.prototype.temp=Vi.prototype.kelvin=Vi.prototype.temperature=function(){return yd(this._rgb)},Rs.temp=Rs.kelvin=Rs.temperature=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(Vi,[null].concat(m,["temp"])))},Ls.format.temp=Ls.format.kelvin=Ls.format.temperature=Xl;var bd=p.unpack,Fs=Math.cbrt,_d=Math.pow,wd=Math.sign,xd=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=bd(m,"rgb"),C=x[0],M=x[1],j=x[2],E=[Ns(C/255),Ns(M/255),Ns(j/255)],R=E[0],L=E[1],W=E[2],V=Fs(.4122214708*R+.5363325363*L+.0514459929*W),X=Fs(.2119034982*R+.6806995451*L+.1073969566*W),U=Fs(.0883024619*R+.2817188376*L+.6299787005*W);return[.2104542553*V+.793617785*X-.0040720468*U,1.9779984951*V-2.428592205*X+.4505937099*U,.0259040371*V+.7827717662*X-.808675766*U]},Zl=xd;function Ns(m){var g=Math.abs(m);return g<.04045?m/12.92:(wd(m)||1)*_d((g+.055)/1.055,2.4)}var Sd=p.unpack,o=Math.pow,aA=Math.sign,iA=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];m=Sd(m,"lab");var x=m[0],C=m[1],M=m[2],j=o(x+.3963377774*C+.2158037573*M,3),E=o(x-.1055613458*C-.0638541728*M,3),R=o(x-.0894841775*C-1.291485548*M,3);return[255*Yp(4.0767416621*j-3.3077115913*E+.2309699292*R),255*Yp(-1.2684380046*j+2.6097574011*E-.3413193965*R),255*Yp(-.0041960863*j-.7034186147*E+1.707614701*R),m.length>3?m[3]:1]},GS=iA;function Yp(m){var g=Math.abs(m);return g>.0031308?(aA(m)||1)*(1.055*o(g,1/2.4)-.055):m*12.92}var oA=p.unpack,sA=p.type,lA=z,qS=A,QS=$,uA=Zl;qS.prototype.oklab=function(){return uA(this._rgb)},lA.oklab=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(qS,[null].concat(m,["oklab"])))},QS.format.oklab=GS,QS.autodetect.push({p:3,test:function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];if(m=oA(m,"oklab"),sA(m)==="array"&&m.length===3)return"oklab"}});var cA=p.unpack,dA=Zl,fA=Fl,hA=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];var x=cA(m,"rgb"),C=x[0],M=x[1],j=x[2],E=dA(C,M,j),R=E[0],L=E[1],W=E[2];return fA(R,L,W)},mA=hA,vA=p.unpack,pA=Nl,gA=GS,yA=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];m=vA(m,"lch");var x=m[0],C=m[1],M=m[2],j=pA(x,C,M),E=j[0],R=j[1],L=j[2],W=gA(E,R,L),V=W[0],X=W[1],U=W[2];return[V,X,U,m.length>3?m[3]:1]},bA=yA,_A=p.unpack,wA=p.type,xA=z,KS=A,XS=$,SA=mA;KS.prototype.oklch=function(){return SA(this._rgb)},xA.oklch=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];return new(Function.prototype.bind.apply(KS,[null].concat(m,["oklch"])))},XS.format.oklch=bA,XS.autodetect.push({p:3,test:function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];if(m=_A(m,"oklch"),wA(m)==="array"&&m.length===3)return"oklch"}});var ZS=A,PA=p.type;ZS.prototype.alpha=function(m,g){return g===void 0&&(g=!1),m!==void 0&&PA(m)==="number"?g?(this._rgb[3]=m,this):new ZS([this._rgb[0],this._rgb[1],this._rgb[2],m],"rgb"):this._rgb[3]};var $A=A;$A.prototype.clipped=function(){return this._rgb._clipped||!1};var zs=A,OA=On;zs.prototype.darken=function(m){m===void 0&&(m=1);var g=this,x=g.lab();return x[0]-=OA.Kn*m,new zs(x,"lab").alpha(g.alpha(),!0)},zs.prototype.brighten=function(m){return m===void 0&&(m=1),this.darken(-m)},zs.prototype.darker=zs.prototype.darken,zs.prototype.brighter=zs.prototype.brighten;var CA=A;CA.prototype.get=function(m){var g=m.split("."),x=g[0],C=g[1],M=this[x]();if(C){var j=x.indexOf(C)-(x.substr(0,2)==="ok"?2:0);if(j>-1)return M[j];throw new Error("unknown channel "+C+" in mode "+x)}else return M};var Jl=A,TA=p.type,EA=Math.pow,MA=1e-7,jA=20;Jl.prototype.luminance=function(m){if(m!==void 0&&TA(m)==="number"){if(m===0)return new Jl([0,0,0,this._rgb[3]],"rgb");if(m===1)return new Jl([255,255,255,this._rgb[3]],"rgb");var g=this.luminance(),x="rgb",C=jA,M=function(E,R){var L=E.interpolate(R,.5,x),W=L.luminance();return Math.abs(m-W)m?M(E,L):M(L,R)},j=(g>m?M(new Jl([0,0,0]),this):M(this,new Jl([255,255,255]))).rgb();return new Jl(j.concat([this._rgb[3]]))}return DA.apply(void 0,this._rgb.slice(0,3))};var DA=function(m,g,x){return m=Gp(m),g=Gp(g),x=Gp(x),.2126*m+.7152*g+.0722*x},Gp=function(m){return m/=255,m<=.03928?m/12.92:EA((m+.055)/1.055,2.4)},Br={},JS=A,e2=p.type,Xh=Br,t2=function(m,g,x){x===void 0&&(x=.5);for(var C=[],M=arguments.length-3;M-- >0;)C[M]=arguments[M+3];var j=C[0]||"lrgb";if(!Xh[j]&&!C.length&&(j=Object.keys(Xh)[0]),!Xh[j])throw new Error("interpolation mode "+j+" is not defined");return e2(m)!=="object"&&(m=new JS(m)),e2(g)!=="object"&&(g=new JS(g)),Xh[j](m,g,x).alpha(m.alpha()+x*(g.alpha()-m.alpha()))},r2=A,IA=t2;r2.prototype.mix=r2.prototype.interpolate=function(m,g){g===void 0&&(g=.5);for(var x=[],C=arguments.length-2;C-- >0;)x[C]=arguments[C+2];return IA.apply(void 0,[this,m,g].concat(x))};var n2=A;n2.prototype.premultiply=function(m){m===void 0&&(m=!1);var g=this._rgb,x=g[3];return m?(this._rgb=[g[0]*x,g[1]*x,g[2]*x,x],this):new n2([g[0]*x,g[1]*x,g[2]*x,x],"rgb")};var qp=A,kA=On;qp.prototype.saturate=function(m){m===void 0&&(m=1);var g=this,x=g.lch();return x[1]+=kA.Kn*m,x[1]<0&&(x[1]=0),new qp(x,"lch").alpha(g.alpha(),!0)},qp.prototype.desaturate=function(m){return m===void 0&&(m=1),this.saturate(-m)};var a2=A,i2=p.type;a2.prototype.set=function(m,g,x){x===void 0&&(x=!1);var C=m.split("."),M=C[0],j=C[1],E=this[M]();if(j){var R=M.indexOf(j)-(M.substr(0,2)==="ok"?2:0);if(R>-1){if(i2(g)=="string")switch(g.charAt(0)){case"+":E[R]+=+g;break;case"-":E[R]+=+g;break;case"*":E[R]*=+g.substr(1);break;case"/":E[R]/=+g.substr(1);break;default:E[R]=+g}else if(i2(g)==="number")E[R]=g;else throw new Error("unsupported value for Color.set");var L=new a2(E,M);return x?(this._rgb=L._rgb,this):L}throw new Error("unknown channel "+j+" in mode "+M)}else return E};var AA=A,RA=function(m,g,x){var C=m._rgb,M=g._rgb;return new AA(C[0]+x*(M[0]-C[0]),C[1]+x*(M[1]-C[1]),C[2]+x*(M[2]-C[2]),"rgb")};Br.rgb=RA;var LA=A,Qp=Math.sqrt,eu=Math.pow,FA=function(m,g,x){var C=m._rgb,M=C[0],j=C[1],E=C[2],R=g._rgb,L=R[0],W=R[1],V=R[2];return new LA(Qp(eu(M,2)*(1-x)+eu(L,2)*x),Qp(eu(j,2)*(1-x)+eu(W,2)*x),Qp(eu(E,2)*(1-x)+eu(V,2)*x),"rgb")};Br.lrgb=FA;var NA=A,zA=function(m,g,x){var C=m.lab(),M=g.lab();return new NA(C[0]+x*(M[0]-C[0]),C[1]+x*(M[1]-C[1]),C[2]+x*(M[2]-C[2]),"lab")};Br.lab=zA;var o2=A,tu=function(m,g,x,C){var M,j,E,R;C==="hsl"?(E=m.hsl(),R=g.hsl()):C==="hsv"?(E=m.hsv(),R=g.hsv()):C==="hcg"?(E=m.hcg(),R=g.hcg()):C==="hsi"?(E=m.hsi(),R=g.hsi()):C==="lch"||C==="hcl"?(C="hcl",E=m.hcl(),R=g.hcl()):C==="oklch"&&(E=m.oklch().reverse(),R=g.oklch().reverse());var L,W,V,X,U,ne;(C.substr(0,1)==="h"||C==="oklch")&&(M=E,L=M[0],V=M[1],U=M[2],j=R,W=j[0],X=j[1],ne=j[2]);var ee,ye,Oe,Ie;return!isNaN(L)&&!isNaN(W)?(W>L&&W-L>180?Ie=W-(L+360):W180?Ie=W+360-L:Ie=W-L,ye=L+x*Ie):isNaN(L)?isNaN(W)?ye=Number.NaN:(ye=W,(U==1||U==0)&&C!="hsv"&&(ee=X)):(ye=L,(ne==1||ne==0)&&C!="hsv"&&(ee=V)),ee===void 0&&(ee=V+x*(X-V)),Oe=U+x*(ne-U),C==="oklch"?new o2([Oe,ee,ye],C):new o2([ye,ee,Oe],C)},BA=tu,s2=function(m,g,x){return BA(m,g,x,"lch")};Br.lch=s2,Br.hcl=s2;var WA=A,VA=function(m,g,x){var C=m.num(),M=g.num();return new WA(C+x*(M-C),"num")};Br.num=VA;var HA=tu,UA=function(m,g,x){return HA(m,g,x,"hcg")};Br.hcg=UA;var YA=tu,GA=function(m,g,x){return YA(m,g,x,"hsi")};Br.hsi=GA;var qA=tu,QA=function(m,g,x){return qA(m,g,x,"hsl")};Br.hsl=QA;var KA=tu,XA=function(m,g,x){return KA(m,g,x,"hsv")};Br.hsv=XA;var ZA=A,JA=function(m,g,x){var C=m.oklab(),M=g.oklab();return new ZA(C[0]+x*(M[0]-C[0]),C[1]+x*(M[1]-C[1]),C[2]+x*(M[2]-C[2]),"oklab")};Br.oklab=JA;var eR=tu,tR=function(m,g,x){return eR(m,g,x,"oklch")};Br.oklch=tR;var Kp=A,rR=p.clip_rgb,Xp=Math.pow,Zp=Math.sqrt,Jp=Math.PI,l2=Math.cos,u2=Math.sin,nR=Math.atan2,aR=function(m,g,x){g===void 0&&(g="lrgb"),x===void 0&&(x=null);var C=m.length;x||(x=Array.from(new Array(C)).map(function(){return 1}));var M=C/x.reduce(function(ye,Oe){return ye+Oe});if(x.forEach(function(ye,Oe){x[Oe]*=M}),m=m.map(function(ye){return new Kp(ye)}),g==="lrgb")return iR(m,x);for(var j=m.shift(),E=j.get(g),R=[],L=0,W=0,V=0;V=360;)ee-=360;E[ne]=ee}else E[ne]=E[ne]/R[ne];return U/=C,new Kp(E,g).alpha(U>.99999?1:U,!0)},iR=function(m,g){for(var x=m.length,C=[0,0,0,0],M=0;M.9999999&&(C[3]=1),new Kp(rR(C))},En=z,ru=p.type,oR=Math.pow,eg=function(m){var g="rgb",x=En("#ccc"),C=0,M=[0,1],j=[],E=[0,0],R=!1,L=[],W=!1,V=0,X=1,U=!1,ne={},ee=!0,ye=1,Oe=function(Y){if(Y=Y||["#fff","#000"],Y&&ru(Y)==="string"&&En.brewer&&En.brewer[Y.toLowerCase()]&&(Y=En.brewer[Y.toLowerCase()]),ru(Y)==="array"){Y.length===1&&(Y=[Y[0],Y[0]]),Y=Y.slice(0);for(var ce=0;ce=R[xe];)xe++;return xe-1}return 0},We=function(Y){return Y},Vt=function(Y){return Y},At=function(Y,ce){var xe,be;if(ce==null&&(ce=!1),isNaN(Y)||Y===null)return x;if(ce)be=Y;else if(R&&R.length>2){var Ht=Ie(Y);be=Ht/(R.length-2)}else X!==V?be=(Y-V)/(X-V):be=1;be=Vt(be),ce||(be=We(be)),ye!==1&&(be=oR(be,ye)),be=E[0]+be*(1-E[0]-E[1]),be=Math.min(1,Math.max(0,be));var at=Math.floor(be*1e4);if(ee&&ne[at])xe=ne[at];else{if(ru(L)==="array")for(var ke=0;ke=Qe&&ke===j.length-1){xe=L[ke];break}if(be>Qe&&be2){var ke=Y.map(function(Ke,Je){return Je/(Y.length-1)}),Qe=Y.map(function(Ke){return(Ke-V)/(X-V)});Qe.every(function(Ke,Je){return ke[Je]===Ke})||(Vt=function(Ke){if(Ke<=0||Ke>=1)return Ke;for(var Je=0;Ke>=Qe[Je+1];)Je++;var jn=(Ke-Qe[Je])/(Qe[Je+1]-Qe[Je]),Yi=ke[Je]+jn*(ke[Je+1]-ke[Je]);return Yi})}}return M=[V,X],Me},Me.mode=function(Y){return arguments.length?(g=Y,Or(),Me):g},Me.range=function(Y,ce){return Oe(Y),Me},Me.out=function(Y){return W=Y,Me},Me.spread=function(Y){return arguments.length?(C=Y,Me):C},Me.correctLightness=function(Y){return Y==null&&(Y=!0),U=Y,Or(),U?We=function(ce){for(var xe=At(0,!0).lab()[0],be=At(1,!0).lab()[0],Ht=xe>be,at=At(ce,!0).lab()[0],ke=xe+(be-xe)*ce,Qe=at-ke,Ke=0,Je=1,jn=20;Math.abs(Qe)>.01&&jn-- >0;)(function(){return Ht&&(Qe*=-1),Qe<0?(Ke=ce,ce+=(Je-ce)*.5):(Je=ce,ce+=(Ke-ce)*.5),at=At(ce,!0).lab()[0],Qe=at-ke})();return ce}:We=function(ce){return ce},Me},Me.padding=function(Y){return Y!=null?(ru(Y)==="number"&&(Y=[Y,Y]),E=Y,Me):E},Me.colors=function(Y,ce){arguments.length<2&&(ce="hex");var xe=[];if(arguments.length===0)xe=L.slice(0);else if(Y===1)xe=[Me(.5)];else if(Y>1){var be=M[0],Ht=M[1]-be;xe=sR(0,Y).map(function(Je){return Me(be+Je/(Y-1)*Ht)})}else{m=[];var at=[];if(R&&R.length>2)for(var ke=1,Qe=R.length,Ke=1<=Qe;Ke?keQe;Ke?ke++:ke--)at.push((R[ke-1]+R[ke])*.5);else at=M;xe=at.map(function(Je){return Me(Je)})}return En[ce]&&(xe=xe.map(function(Je){return Je[ce]()})),xe},Me.cache=function(Y){return Y!=null?(ee=Y,Me):ee},Me.gamma=function(Y){return Y!=null?(ye=Y,Me):ye},Me.nodata=function(Y){return Y!=null?(x=En(Y),Me):x},Me};function sR(m,g,x){for(var C=[],M=mj;M?E++:E--)C.push(E);return C}var Pd=A,lR=eg,uR=function(m){for(var g=[1,1],x=1;x=5){var W,V,X;W=m.map(function(U){return U.lab()}),X=m.length-1,V=uR(X),M=function(U){var ne=1-U,ee=[0,1,2].map(function(ye){return W.reduce(function(Oe,Ie,We){return Oe+V[We]*Math.pow(ne,X-We)*Math.pow(U,We)*Ie[ye]},0)});return new Pd(ee,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return M},dR=function(m){var g=cR(m);return g.scale=function(){return lR(g)},g},tg=z,Mn=function(m,g,x){if(!Mn[x])throw new Error("unknown blend mode "+x);return Mn[x](m,g)},Hi=function(m){return function(g,x){var C=tg(x).rgb(),M=tg(g).rgb();return tg.rgb(m(C,M))}},Ui=function(m){return function(g,x){var C=[];return C[0]=m(g[0],x[0]),C[1]=m(g[1],x[1]),C[2]=m(g[2],x[2]),C}},fR=function(m){return m},hR=function(m,g){return m*g/255},mR=function(m,g){return m>g?g:m},vR=function(m,g){return m>g?m:g},pR=function(m,g){return 255*(1-(1-m/255)*(1-g/255))},gR=function(m,g){return g<128?2*m*g/255:255*(1-2*(1-m/255)*(1-g/255))},yR=function(m,g){return 255*(1-(1-g/255)/(m/255))},bR=function(m,g){return m===255?255:(m=255*(g/255)/(1-m/255),m>255?255:m)};Mn.normal=Hi(Ui(fR)),Mn.multiply=Hi(Ui(hR)),Mn.screen=Hi(Ui(pR)),Mn.overlay=Hi(Ui(gR)),Mn.darken=Hi(Ui(mR)),Mn.lighten=Hi(Ui(vR)),Mn.dodge=Hi(Ui(bR)),Mn.burn=Hi(Ui(yR));for(var _R=Mn,rg=p.type,wR=p.clip_rgb,xR=p.TWOPI,SR=Math.pow,PR=Math.sin,$R=Math.cos,c2=z,OR=function(m,g,x,C,M){m===void 0&&(m=300),g===void 0&&(g=-1.5),x===void 0&&(x=1),C===void 0&&(C=1),M===void 0&&(M=[0,1]);var j=0,E;rg(M)==="array"?E=M[1]-M[0]:(E=0,M=[M,M]);var R=function(L){var W=xR*((m+120)/360+g*L),V=SR(M[0]+E*L,C),X=j!==0?x[0]+L*j:x,U=X*V*(1-V)/2,ne=$R(W),ee=PR(W),ye=V+U*(-.14861*ne+1.78277*ee),Oe=V+U*(-.29227*ne-.90649*ee),Ie=V+U*(1.97294*ne);return c2(wR([ye*255,Oe*255,Ie*255,1]))};return R.start=function(L){return L==null?m:(m=L,R)},R.rotations=function(L){return L==null?g:(g=L,R)},R.gamma=function(L){return L==null?C:(C=L,R)},R.hue=function(L){return L==null?x:(x=L,rg(x)==="array"?(j=x[1]-x[0],j===0&&(x=x[1])):j=0,R)},R.lightness=function(L){return L==null?M:(rg(L)==="array"?(M=L,E=L[1]-L[0]):(M=[L,L],E=0),R)},R.scale=function(){return c2.scale(R)},R.hue(x),R},CR=A,TR="0123456789abcdef",ER=Math.floor,MR=Math.random,jR=function(){for(var m="#",g=0;g<6;g++)m+=TR.charAt(ER(MR()*16));return new CR(m,"hex")},ng=c,d2=Math.log,DR=Math.pow,IR=Math.floor,kR=Math.abs,f2=function(m,g){g===void 0&&(g=null);var x={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return ng(m)==="object"&&(m=Object.values(m)),m.forEach(function(C){g&&ng(C)==="object"&&(C=C[g]),C!=null&&!isNaN(C)&&(x.values.push(C),x.sum+=C,Cx.max&&(x.max=C),x.count+=1)}),x.domain=[x.min,x.max],x.limits=function(C,M){return h2(x,C,M)},x},h2=function(m,g,x){g===void 0&&(g="equal"),x===void 0&&(x=7),ng(m)=="array"&&(m=f2(m));var C=m.min,M=m.max,j=m.values.sort(function(ig,og){return ig-og});if(x===1)return[C,M];var E=[];if(g.substr(0,1)==="c"&&(E.push(C),E.push(M)),g.substr(0,1)==="e"){E.push(C);for(var R=1;R 0");var L=Math.LOG10E*d2(C),W=Math.LOG10E*d2(M);E.push(C);for(var V=1;V200&&(Vt=!1)}for(var Gi={},nu=0;nuC?(x+.05)/(C+.05):(C+.05)/(x+.05)},p2=A,za=Math.sqrt,Pt=Math.pow,RR=Math.min,LR=Math.max,g2=Math.atan2,y2=Math.abs,Zh=Math.cos,b2=Math.sin,FR=Math.exp,_2=Math.PI,NR=function(m,g,x,C,M){x===void 0&&(x=1),C===void 0&&(C=1),M===void 0&&(M=1);var j=function(Ws){return 360*Ws/(2*_2)},E=function(Ws){return 2*_2*Ws/360};m=new p2(m),g=new p2(g);var R=Array.from(m.lab()),L=R[0],W=R[1],V=R[2],X=Array.from(g.lab()),U=X[0],ne=X[1],ee=X[2],ye=(L+U)/2,Oe=za(Pt(W,2)+Pt(V,2)),Ie=za(Pt(ne,2)+Pt(ee,2)),We=(Oe+Ie)/2,Vt=.5*(1-za(Pt(We,7)/(Pt(We,7)+Pt(25,7)))),At=W*(1+Vt),Or=ne*(1+Vt),Me=za(Pt(At,2)+Pt(V,2)),Y=za(Pt(Or,2)+Pt(ee,2)),ce=(Me+Y)/2,xe=j(g2(V,At)),be=j(g2(ee,Or)),Ht=xe>=0?xe:xe+360,at=be>=0?be:be+360,ke=y2(Ht-at)>180?(Ht+at+360)/2:(Ht+at)/2,Qe=1-.17*Zh(E(ke-30))+.24*Zh(E(2*ke))+.32*Zh(E(3*ke+6))-.2*Zh(E(4*ke-63)),Ke=at-Ht;Ke=y2(Ke)<=180?Ke:at<=Ht?Ke+360:Ke-360,Ke=2*za(Me*Y)*b2(E(Ke)/2);var Je=U-L,jn=Y-Me,Yi=1+.015*Pt(ye-50,2)/za(20+Pt(ye-50,2)),Gi=1+.045*ce,nu=1+.015*ce*Qe,au=30*FR(-Pt((ke-275)/25,2)),Ba=2*za(Pt(ce,7)/(Pt(ce,7)+Pt(25,7))),Bs=-Ba*b2(2*E(au)),$d=za(Pt(Je/(x*Yi),2)+Pt(jn/(C*Gi),2)+Pt(Ke/(M*nu),2)+Bs*(jn/(C*Gi))*(Ke/(M*nu)));return LR(0,RR(100,$d))},w2=A,zR=function(m,g,x){x===void 0&&(x="lab"),m=new w2(m),g=new w2(g);var C=m.get(x),M=g.get(x),j=0;for(var E in C){var R=(C[E]||0)-(M[E]||0);j+=R*R}return Math.sqrt(j)},BR=A,WR=function(){for(var m=[],g=arguments.length;g--;)m[g]=arguments[g];try{return new(Function.prototype.bind.apply(BR,[null].concat(m))),!0}catch{return!1}},x2=z,S2=eg,VR={cool:function(){return S2([x2.hsl(180,1,.9),x2.hsl(250,.7,.4)])},hot:function(){return S2(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Jh={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},ag=0,P2=Object.keys(Jh);ag=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),n),r)}vx.add=aae;var eae=ya,tae=Cc,rae=Fe,nae=B;function aae(e,t){const{years:r=0,months:n=0,weeks:a=0,days:i=0,hours:s=0,minutes:l=0,seconds:u=0}=t,c=(0,nae.toDate)(e),d=n||r?(0,tae.addMonths)(c,n+r*12):c,f=i||a?(0,eae.addDays)(d,i+a*7):d,h=l+s*60,b=(u+h*60)*1e3;return(0,rae.constructFrom)(e,f.getTime()+b)}var px={},gx={};gx.isSaturday=oae;var iae=B;function oae(e){return(0,iae.toDate)(e).getDay()===6}var yx={};yx.isSunday=lae;var sae=B;function lae(e){return(0,sae.toDate)(e).getDay()===0}var Nh={};Nh.isWeekend=cae;var uae=B;function cae(e){const t=(0,uae.toDate)(e).getDay();return t===0||t===6}px.addBusinessDays=vae;var dae=Fe,fae=gx,hae=yx,C1=Nh,mae=B;function vae(e,t){const r=(0,mae.toDate)(e),n=(0,C1.isWeekend)(r);if(isNaN(t))return(0,dae.constructFrom)(e,NaN);const a=r.getHours(),i=t<0?-1:1,s=Math.trunc(t/5);r.setDate(r.getDate()+s*7);let l=Math.abs(t%5);for(;l>0;)r.setDate(r.getDate()+i),(0,C1.isWeekend)(r)||(l-=1);return n&&(0,C1.isWeekend)(r)&&t!==0&&((0,fae.isSaturday)(r)&&r.setDate(r.getDate()+(i<0?2:-1)),(0,hae.isSunday)(r)&&r.setDate(r.getDate()+(i<0?1:-2))),r.setHours(a),r}var Pp={},Tc={};Tc.addMilliseconds=yae;var pae=B,gae=Fe;function yae(e,t){const r=+(0,pae.toDate)(e);return(0,gae.constructFrom)(e,r+t)}var K={};K.secondsInYear=K.secondsInWeek=K.secondsInQuarter=K.secondsInMonth=K.secondsInMinute=K.secondsInHour=K.secondsInDay=K.quartersInYear=K.monthsInYear=K.monthsInQuarter=K.minutesInYear=K.minutesInMonth=K.minutesInHour=K.minutesInDay=K.minTime=K.millisecondsInWeek=K.millisecondsInSecond=K.millisecondsInMinute=K.millisecondsInHour=K.millisecondsInDay=K.maxTime=K.daysInYear=K.daysInWeek=void 0;K.daysInWeek=7;const bae=K.daysInYear=365.2425,_ae=K.maxTime=Math.pow(10,8)*24*60*60*1e3;K.minTime=-_ae;K.millisecondsInWeek=6048e5;K.millisecondsInDay=864e5;K.millisecondsInMinute=6e4;K.millisecondsInHour=36e5;K.millisecondsInSecond=1e3;K.minutesInYear=525600;K.minutesInMonth=43200;K.minutesInDay=1440;K.minutesInHour=60;K.monthsInQuarter=3;K.monthsInYear=12;K.quartersInYear=4;const wae=K.secondsInHour=3600;K.secondsInMinute=60;const rI=K.secondsInDay=wae*24;K.secondsInWeek=rI*7;const xae=K.secondsInYear=rI*bae,Sae=K.secondsInMonth=xae/12;K.secondsInQuarter=Sae*3;Pp.addHours=Oae;var Pae=Tc,$ae=K;function Oae(e,t){return(0,Pae.addMilliseconds)(e,t*$ae.millisecondsInHour)}var bx={},Go={},ba={},Vn={},Zt={};Zt.getDefaultOptions=Cae;Zt.setDefaultOptions=Tae;let nI={};function Cae(){return nI}function Tae(e){nI=e}Vn.startOfWeek=jae;var Eae=B,Mae=Zt;function jae(e,t){var l,u,c,d;const r=(0,Mae.getDefaultOptions)(),n=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,a=(0,Eae.toDate)(e),i=a.getDay(),s=(i=a.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}var _x={},hi={},zh={};zh.startOfDay=Lae;var Rae=B;function Lae(e){const t=(0,Rae.toDate)(e);return t.setHours(0,0,0,0),t}var mi={};mi.getTimezoneOffsetInMilliseconds=Nae;var Fae=B;function Nae(e){const t=(0,Fae.toDate)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}hi.differenceInCalendarDays=Bae;var zae=K,GC=zh,qC=mi;function Bae(e,t){const r=(0,GC.startOfDay)(e),n=(0,GC.startOfDay)(t),a=+r-(0,qC.getTimezoneOffsetInMilliseconds)(r),i=+n-(0,qC.getTimezoneOffsetInMilliseconds)(n);return Math.round((a-i)/zae.millisecondsInDay)}var Ec={};Ec.startOfISOWeekYear=Uae;var Wae=Go,Vae=ba,Hae=Fe;function Uae(e){const t=(0,Wae.getISOWeekYear)(e),r=(0,Hae.constructFrom)(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),(0,Vae.startOfISOWeek)(r)}_x.setISOWeekYear=Qae;var Yae=Fe,Gae=hi,QC=Ec,qae=B;function Qae(e,t){let r=(0,qae.toDate)(e);const n=(0,Gae.differenceInCalendarDays)(r,(0,QC.startOfISOWeekYear)(r)),a=(0,Yae.constructFrom)(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),r=(0,QC.startOfISOWeekYear)(a),r.setDate(r.getDate()+n),r}bx.addISOWeekYears=Zae;var Kae=Go,Xae=_x;function Zae(e,t){return(0,Xae.setISOWeekYear)(e,(0,Kae.getISOWeekYear)(e)+t)}var $p={};$p.addMinutes=tie;var Jae=Tc,eie=K;function tie(e,t){return(0,Jae.addMilliseconds)(e,t*eie.millisecondsInMinute)}var Op={};Op.addQuarters=nie;var rie=Cc;function nie(e,t){const r=t*3;return(0,rie.addMonths)(e,r)}var wx={};wx.addSeconds=iie;var aie=Tc;function iie(e,t){return(0,aie.addMilliseconds)(e,t*1e3)}var Bh={};Bh.addWeeks=sie;var oie=ya;function sie(e,t){const r=t*7;return(0,oie.addDays)(e,r)}var xx={};xx.addYears=uie;var lie=Cc;function uie(e,t){return(0,lie.addMonths)(e,t*12)}var aI={};aI.areIntervalsOverlapping=cie;var Lm=B;function cie(e,t,r){const[n,a]=[+(0,Lm.toDate)(e.start),+(0,Lm.toDate)(e.end)].sort((l,u)=>l-u),[i,s]=[+(0,Lm.toDate)(t.start),+(0,Lm.toDate)(t.end)].sort((l,u)=>l-u);return r!=null&&r.inclusive?n<=s&&i<=a:n{const n=(0,hie.toDate)(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}iI.clamp=gie;var vie=Sx,pie=Px;function gie(e,t){return(0,pie.min)([(0,vie.max)([e,t.start]),t.end])}var oI={};oI.closestIndexTo=yie;var KC=B;function yie(e,t){const r=(0,KC.toDate)(e);if(isNaN(Number(r)))return NaN;const n=r.getTime();let a,i;return t.forEach(function(s,l){const u=(0,KC.toDate)(s);if(isNaN(Number(u))){a=NaN,i=NaN;return}const c=Math.abs(n-u.getTime());(a==null||c{const l=(0,ZC.toDate)(s);if(isNaN(Number(l))){a=(0,XC.constructFrom)(e,NaN),i=NaN;return}const u=Math.abs(n-l.getTime());(a==null||u0?1:a}var lI={};lI.compareDesc=wie;var eT=B;function wie(e,t){const r=(0,eT.toDate)(e),n=(0,eT.toDate)(t),a=r.getTime()-n.getTime();return a>0?-1:a<0?1:a}var _r={};_r.constructNow=Sie;var xie=Fe;function Sie(e){return(0,xie.constructFrom)(e,Date.now())}var uI={};uI.daysToWeeks=$ie;var Pie=K;function $ie(e){const t=e/Pie.daysInWeek,r=Math.trunc(t);return r===0?0:r}var cI={},Mc={};Mc.isSameDay=Oie;var tT=zh;function Oie(e,t){const r=(0,tT.startOfDay)(e),n=(0,tT.startOfDay)(t);return+r==+n}var vi={},$x={};$x.isDate=Cie;function Cie(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}vi.isValid=Mie;var Tie=$x,Eie=B;function Mie(e){if(!(0,Tie.isDate)(e)&&typeof e!="number")return!1;const t=(0,Eie.toDate)(e);return!isNaN(Number(t))}cI.differenceInBusinessDays=kie;var rT=ya,jie=hi,Die=Mc,nT=vi,Iie=Nh,aT=B;function kie(e,t){const r=(0,aT.toDate)(e);let n=(0,aT.toDate)(t);if(!(0,nT.isValid)(r)||!(0,nT.isValid)(n))return NaN;const a=(0,jie.differenceInCalendarDays)(r,n),i=a<0?-1:1,s=Math.trunc(a/7);let l=s*5;for(n=(0,rT.addDays)(n,s*7);!(0,Die.isSameDay)(r,n);)l+=(0,Iie.isWeekend)(n)?0:i,n=(0,rT.addDays)(n,i);return l===0?0:l}var Ox={};Ox.differenceInCalendarISOWeekYears=Aie;var iT=Go;function Aie(e,t){return(0,iT.getISOWeekYear)(e)-(0,iT.getISOWeekYear)(t)}var dI={};dI.differenceInCalendarISOWeeks=Lie;var Rie=K,oT=ba,sT=mi;function Lie(e,t){const r=(0,oT.startOfISOWeek)(e),n=(0,oT.startOfISOWeek)(t),a=+r-(0,sT.getTimezoneOffsetInMilliseconds)(r),i=+n-(0,sT.getTimezoneOffsetInMilliseconds)(n);return Math.round((a-i)/Rie.millisecondsInWeek)}var Cp={};Cp.differenceInCalendarMonths=Fie;var lT=B;function Fie(e,t){const r=(0,lT.toDate)(e),n=(0,lT.toDate)(t),a=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return a*12+i}var Cx={},Tx={};Tx.getQuarter=zie;var Nie=B;function zie(e){const t=(0,Nie.toDate)(e);return Math.trunc(t.getMonth()/3)+1}Cx.differenceInCalendarQuarters=Bie;var uT=Tx,cT=B;function Bie(e,t){const r=(0,cT.toDate)(e),n=(0,cT.toDate)(t),a=r.getFullYear()-n.getFullYear(),i=(0,uT.getQuarter)(r)-(0,uT.getQuarter)(n);return a*4+i}var Tp={};Tp.differenceInCalendarWeeks=Vie;var Wie=K,dT=Vn,fT=mi;function Vie(e,t,r){const n=(0,dT.startOfWeek)(e,r),a=(0,dT.startOfWeek)(t,r),i=+n-(0,fT.getTimezoneOffsetInMilliseconds)(n),s=+a-(0,fT.getTimezoneOffsetInMilliseconds)(a);return Math.round((i-s)/Wie.millisecondsInWeek)}var Ep={};Ep.differenceInCalendarYears=Hie;var hT=B;function Hie(e,t){const r=(0,hT.toDate)(e),n=(0,hT.toDate)(t);return r.getFullYear()-n.getFullYear()}var Mp={};Mp.differenceInDays=Yie;var Uie=hi,mT=B;function Yie(e,t){const r=(0,mT.toDate)(e),n=(0,mT.toDate)(t),a=vT(r,n),i=Math.abs((0,Uie.differenceInCalendarDays)(r,n));r.setDate(r.getDate()-a*i);const s=+(vT(r,n)===-a),l=a*(i-s);return l===0?0:l}function vT(e,t){const r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}var jp={},pi={};pi.getRoundingMethod=Gie;function Gie(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}var Wh={};Wh.differenceInMilliseconds=qie;var pT=B;function qie(e,t){return+(0,pT.toDate)(e)-+(0,pT.toDate)(t)}jp.differenceInHours=Zie;var Qie=pi,Kie=K,Xie=Wh;function Zie(e,t,r){const n=(0,Xie.differenceInMilliseconds)(e,t)/Kie.millisecondsInHour;return(0,Qie.getRoundingMethod)(r==null?void 0:r.roundingMethod)(n)}var fI={},Ex={};Ex.subISOWeekYears=eoe;var Jie=bx;function eoe(e,t){return(0,Jie.addISOWeekYears)(e,-t)}fI.differenceInISOWeekYears=noe;var gT=Al,toe=Ox,roe=Ex,yT=B;function noe(e,t){let r=(0,yT.toDate)(e);const n=(0,yT.toDate)(t),a=(0,gT.compareAsc)(r,n),i=Math.abs((0,toe.differenceInCalendarISOWeekYears)(r,n));r=(0,roe.subISOWeekYears)(r,a*i);const s=+((0,gT.compareAsc)(r,n)===-a),l=a*(i-s);return l===0?0:l}var Dp={};Dp.differenceInMinutes=soe;var aoe=pi,ioe=K,ooe=Wh;function soe(e,t,r){const n=(0,ooe.differenceInMilliseconds)(e,t)/ioe.millisecondsInMinute;return(0,aoe.getRoundingMethod)(r==null?void 0:r.roundingMethod)(n)}var Vh={},Mx={},Ip={};Ip.endOfDay=uoe;var loe=B;function uoe(e){const t=(0,loe.toDate)(e);return t.setHours(23,59,59,999),t}var kp={};kp.endOfMonth=doe;var coe=B;function doe(e){const t=(0,coe.toDate)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}Mx.isLastDayOfMonth=voe;var foe=Ip,hoe=kp,moe=B;function voe(e){const t=(0,moe.toDate)(e);return+(0,foe.endOfDay)(t)==+(0,hoe.endOfMonth)(t)}Vh.differenceInMonths=yoe;var T1=Al,poe=Cp,goe=Mx,E1=B;function yoe(e,t){const r=(0,E1.toDate)(e),n=(0,E1.toDate)(t),a=(0,T1.compareAsc)(r,n),i=Math.abs((0,poe.differenceInCalendarMonths)(r,n));let s;if(i<1)s=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*i);let l=(0,T1.compareAsc)(r,n)===-a;(0,goe.isLastDayOfMonth)((0,E1.toDate)(e))&&i===1&&(0,T1.compareAsc)(e,n)===1&&(l=!1),s=a*(i-Number(l))}return s===0?0:s}var hI={};hI.differenceInQuarters=woe;var boe=pi,_oe=Vh;function woe(e,t,r){const n=(0,_oe.differenceInMonths)(e,t)/3;return(0,boe.getRoundingMethod)(r==null?void 0:r.roundingMethod)(n)}var Hh={};Hh.differenceInSeconds=Poe;var xoe=pi,Soe=Wh;function Poe(e,t,r){const n=(0,Soe.differenceInMilliseconds)(e,t)/1e3;return(0,xoe.getRoundingMethod)(r==null?void 0:r.roundingMethod)(n)}var mI={};mI.differenceInWeeks=Coe;var $oe=pi,Ooe=Mp;function Coe(e,t,r){const n=(0,Ooe.differenceInDays)(e,t)/7;return(0,$oe.getRoundingMethod)(r==null?void 0:r.roundingMethod)(n)}var jx={};jx.differenceInYears=Eoe;var bT=Al,Toe=Ep,_T=B;function Eoe(e,t){const r=(0,_T.toDate)(e),n=(0,_T.toDate)(t),a=(0,bT.compareAsc)(r,n),i=Math.abs((0,Toe.differenceInCalendarYears)(r,n));r.setFullYear(1584),n.setFullYear(1584);const s=(0,bT.compareAsc)(r,n)===-a,l=a*(i-+s);return l===0?0:l}var Dx={};Dx.eachDayOfInterval=Moe;var M1=B;function Moe(e,t){const r=(0,M1.toDate)(e.start),n=(0,M1.toDate)(e.end);let a=+r>+n;const i=a?+r:+n,s=a?n:r;s.setHours(0,0,0,0);let l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=i;)u.push((0,M1.toDate)(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a?u.reverse():u}var vI={};vI.eachHourOfInterval=Doe;var joe=Pp,j1=B;function Doe(e,t){const r=(0,j1.toDate)(e.start),n=(0,j1.toDate)(e.end);let a=+r>+n;const i=a?+r:+n;let s=a?n:r;s.setMinutes(0,0,0);let l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=i;)u.push((0,j1.toDate)(s)),s=(0,joe.addHours)(s,l);return a?u.reverse():u}var pI={},Ap={};Ap.startOfMinute=koe;var Ioe=B;function koe(e){const t=(0,Ioe.toDate)(e);return t.setSeconds(0,0),t}pI.eachMinuteOfInterval=Loe;var Aoe=$p,Roe=Ap,D1=B;function Loe(e,t){const r=(0,Roe.startOfMinute)((0,D1.toDate)(e.start)),n=(0,D1.toDate)(e.end);let a=+r>+n;const i=a?+r:+n;let s=a?n:r,l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=i;)u.push((0,D1.toDate)(s)),s=(0,Aoe.addMinutes)(s,l);return a?u.reverse():u}var gI={};gI.eachMonthOfInterval=Foe;var I1=B;function Foe(e,t){const r=(0,I1.toDate)(e.start),n=(0,I1.toDate)(e.end);let a=+r>+n;const i=a?+r:+n,s=a?n:r;s.setHours(0,0,0,0),s.setDate(1);let l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=i;)u.push((0,I1.toDate)(s)),s.setMonth(s.getMonth()+l);return a?u.reverse():u}var yI={},Rp={};Rp.startOfQuarter=zoe;var Noe=B;function zoe(e){const t=(0,Noe.toDate)(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}yI.eachQuarterOfInterval=Woe;var Boe=Op,Fm=Rp,k1=B;function Woe(e,t){const r=(0,k1.toDate)(e.start),n=(0,k1.toDate)(e.end);let a=+r>+n;const i=a?+(0,Fm.startOfQuarter)(r):+(0,Fm.startOfQuarter)(n);let s=a?(0,Fm.startOfQuarter)(n):(0,Fm.startOfQuarter)(r),l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=i;)u.push((0,k1.toDate)(s)),s=(0,Boe.addQuarters)(s,l);return a?u.reverse():u}var bI={};bI.eachWeekOfInterval=Hoe;var Voe=Bh,Nm=Vn,A1=B;function Hoe(e,t){const r=(0,A1.toDate)(e.start),n=(0,A1.toDate)(e.end);let a=+r>+n;const i=a?(0,Nm.startOfWeek)(n,t):(0,Nm.startOfWeek)(r,t),s=a?(0,Nm.startOfWeek)(r,t):(0,Nm.startOfWeek)(n,t);i.setHours(15),s.setHours(15);const l=+s.getTime();let u=i,c=(t==null?void 0:t.step)??1;if(!c)return[];c<0&&(c=-c,a=!a);const d=[];for(;+u<=l;)u.setHours(0),d.push((0,A1.toDate)(u)),u=(0,Voe.addWeeks)(u,c),u.setHours(15);return a?d.reverse():d}var Lp={};Lp.eachWeekendOfInterval=Goe;var Uoe=Dx,Yoe=Nh;function Goe(e){const t=(0,Uoe.eachDayOfInterval)(e),r=[];let n=0;for(;n+n;const i=a?+r:+n,s=a?n:r;s.setHours(0,0,0,0),s.setMonth(0,1);let l=(t==null?void 0:t.step)??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+s<=i;)u.push((0,R1.toDate)(s)),s.setFullYear(s.getFullYear()+l);return a?u.reverse():u}var SI={};SI.endOfDecade=dse;var cse=B;function dse(e){const t=(0,cse.toDate)(e),r=t.getFullYear(),n=9+Math.floor(r/10)*10;return t.setFullYear(n,11,31),t.setHours(23,59,59,999),t}var PI={};PI.endOfHour=hse;var fse=B;function hse(e){const t=(0,fse.toDate)(e);return t.setMinutes(59,59,999),t}var $I={},kx={};kx.endOfWeek=pse;var mse=B,vse=Zt;function pse(e,t){var l,u,c,d;const r=(0,vse.getDefaultOptions)(),n=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,a=(0,mse.toDate)(e),i=a.getDay(),s=(i{let n;const a=Ise[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};Lx.formatDistance=kse;var Fx={},II={};II.buildFormatLongFn=Ase;function Ase(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}Fx.formatLong=void 0;var L1=II;const Rse={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lse={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fse={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};Fx.formatLong={date:(0,L1.buildFormatLongFn)({formats:Rse,defaultWidth:"full"}),time:(0,L1.buildFormatLongFn)({formats:Lse,defaultWidth:"full"}),dateTime:(0,L1.buildFormatLongFn)({formats:Fse,defaultWidth:"full"})};var Nx={};Nx.formatRelative=void 0;const Nse={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zse=(e,t,r,n)=>Nse[e];Nx.formatRelative=zse;var zx={},kI={};kI.buildLocalizeFn=Bse;function Bse(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let a;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):s;a=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}zx.localize=void 0;var Hd=kI;const Wse={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Vse={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Hse={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Use={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Yse={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Gse={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qse=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"};zx.localize={ordinalNumber:qse,era:(0,Hd.buildLocalizeFn)({values:Wse,defaultWidth:"wide"}),quarter:(0,Hd.buildLocalizeFn)({values:Vse,defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,Hd.buildLocalizeFn)({values:Hse,defaultWidth:"wide"}),day:(0,Hd.buildLocalizeFn)({values:Use,defaultWidth:"wide"}),dayPeriod:(0,Hd.buildLocalizeFn)({values:Yse,defaultWidth:"wide",formattingValues:Gse,defaultFormattingWidth:"wide"})};var Bx={},AI={};AI.buildMatchFn=Qse;function Qse(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const s=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?Xse(l,f=>f.test(s)):Kse(l,f=>f.test(s));let c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;const d=t.slice(s.length);return{value:c,rest:d}}}function Kse(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Xse(e,t){for(let r=0;r{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;const l=t.slice(a.length);return{value:s,rest:l}}}Bx.match=void 0;var Ud=AI,Jse=RI;const ele=/^(\d+)(th|st|nd|rd)?/i,tle=/\d+/i,rle={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nle={any:[/^b/i,/^(a|c)/i]},ale={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ile={any:[/1/i,/2/i,/3/i,/4/i]},ole={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sle={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},lle={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ule={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},cle={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},dle={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};Bx.match={ordinalNumber:(0,Jse.buildMatchPatternFn)({matchPattern:ele,parsePattern:tle,valueCallback:e=>parseInt(e,10)}),era:(0,Ud.buildMatchFn)({matchPatterns:rle,defaultMatchWidth:"wide",parsePatterns:nle,defaultParseWidth:"any"}),quarter:(0,Ud.buildMatchFn)({matchPatterns:ale,defaultMatchWidth:"wide",parsePatterns:ile,defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,Ud.buildMatchFn)({matchPatterns:ole,defaultMatchWidth:"wide",parsePatterns:sle,defaultParseWidth:"any"}),day:(0,Ud.buildMatchFn)({matchPatterns:lle,defaultMatchWidth:"wide",parsePatterns:ule,defaultParseWidth:"any"}),dayPeriod:(0,Ud.buildMatchFn)({matchPatterns:cle,defaultMatchWidth:"any",parsePatterns:dle,defaultParseWidth:"any"})};Rx.enUS=void 0;var fle=Lx,hle=Fx,mle=Nx,vle=zx,ple=Bx;Rx.enUS={code:"en-US",formatDistance:fle.formatDistance,formatLong:hle.formatLong,formatRelative:mle.formatRelative,localize:vle.localize,match:ple.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};(function(e){Object.defineProperty(e,"defaultLocale",{enumerable:!0,get:function(){return t.enUS}});var t=Rx})(Rl);var Wx={},Vx={};Vx.getDayOfYear=_le;var gle=hi,yle=Fp,ble=B;function _le(e){const t=(0,ble.toDate)(e);return(0,gle.differenceInCalendarDays)(t,(0,yle.startOfYear)(t))+1}var Np={};Np.getISOWeek=$le;var wle=K,xle=ba,Sle=Ec,Ple=B;function $le(e){const t=(0,Ple.toDate)(e),r=+(0,xle.startOfISOWeek)(t)-+(0,Sle.startOfISOWeekYear)(t);return Math.round(r/wle.millisecondsInWeek)+1}var zp={},Bp={},Yh={};Yh.getWeekYear=Tle;var wT=Fe,xT=Vn,Ole=B,Cle=Zt;function Tle(e,t){var d,f,h,v;const r=(0,Ole.toDate)(e),n=r.getFullYear(),a=(0,Cle.getDefaultOptions)(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((v=(h=a.locale)==null?void 0:h.options)==null?void 0:v.firstWeekContainsDate)??1,s=(0,wT.constructFrom)(e,0);s.setFullYear(n+1,0,i),s.setHours(0,0,0,0);const l=(0,xT.startOfWeek)(s,t),u=(0,wT.constructFrom)(e,0);u.setFullYear(n,0,i),u.setHours(0,0,0,0);const c=(0,xT.startOfWeek)(u,t);return r.getTime()>=l.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}Bp.startOfWeekYear=Ile;var Ele=Fe,Mle=Yh,jle=Vn,Dle=Zt;function Ile(e,t){var l,u,c,d;const r=(0,Dle.getDefaultOptions)(),n=(t==null?void 0:t.firstWeekContainsDate)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,a=(0,Mle.getWeekYear)(e,t),i=(0,Ele.constructFrom)(e,0);return i.setFullYear(a,0,n),i.setHours(0,0,0,0),(0,jle.startOfWeek)(i,t)}zp.getWeek=Fle;var kle=K,Ale=Vn,Rle=Bp,Lle=B;function Fle(e,t){const r=(0,Lle.toDate)(e),n=+(0,Ale.startOfWeek)(r,t)-+(0,Rle.startOfWeekYear)(r,t);return Math.round(n/kle.millisecondsInWeek)+1}var Ll={};Ll.addLeadingZeros=Nle;function Nle(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var Wp={};Wp.lightFormatters=void 0;var Zi=Ll;Wp.lightFormatters={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return(0,Zi.addLeadingZeros)(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):(0,Zi.addLeadingZeros)(r+1,2)},d(e,t){return(0,Zi.addLeadingZeros)(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return(0,Zi.addLeadingZeros)(e.getHours()%12||12,t.length)},H(e,t){return(0,Zi.addLeadingZeros)(e.getHours(),t.length)},m(e,t){return(0,Zi.addLeadingZeros)(e.getMinutes(),t.length)},s(e,t){return(0,Zi.addLeadingZeros)(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return(0,Zi.addLeadingZeros)(a,t.length)}};Wx.formatters=void 0;var zle=Vx,Ble=Np,Wle=Go,Vle=zp,Hle=Yh,_t=Ll,Ji=Wp;const hu={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};Wx.formatters={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return Ji.lightFormatters.y(e,t)},Y:function(e,t,r,n){const a=(0,Hle.getWeekYear)(e,n),i=a>0?a:1-a;if(t==="YY"){const s=i%100;return(0,_t.addLeadingZeros)(s,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):(0,_t.addLeadingZeros)(i,t.length)},R:function(e,t){const r=(0,Wle.getISOWeekYear)(e);return(0,_t.addLeadingZeros)(r,t.length)},u:function(e,t){const r=e.getFullYear();return(0,_t.addLeadingZeros)(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,_t.addLeadingZeros)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,_t.addLeadingZeros)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Ji.lightFormatters.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return(0,_t.addLeadingZeros)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=(0,Vle.getWeek)(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):(0,_t.addLeadingZeros)(a,t.length)},I:function(e,t,r){const n=(0,Ble.getISOWeek)(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):(0,_t.addLeadingZeros)(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Ji.lightFormatters.d(e,t)},D:function(e,t,r){const n=(0,zle.getDayOfYear)(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):(0,_t.addLeadingZeros)(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,_t.addLeadingZeros)(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,_t.addLeadingZeros)(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return(0,_t.addLeadingZeros)(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(n===12?a=hu.noon:n===0?a=hu.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(n>=17?a=hu.evening:n>=12?a=hu.afternoon:n>=4?a=hu.morning:a=hu.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Ji.lightFormatters.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Ji.lightFormatters.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):(0,_t.addLeadingZeros)(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):(0,_t.addLeadingZeros)(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ji.lightFormatters.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Ji.lightFormatters.s(e,t)},S:function(e,t){return Ji.lightFormatters.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return PT(n);case"XXXX":case"XX":return Js(n);case"XXXXX":case"XXX":default:return Js(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return PT(n);case"xxxx":case"xx":return Js(n);case"xxxxx":case"xxx":default:return Js(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ST(n,":");case"OOOO":default:return"GMT"+Js(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ST(n,":");case"zzzz":default:return"GMT"+Js(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return(0,_t.addLeadingZeros)(n,t.length)},T:function(e,t,r){const n=e.getTime();return(0,_t.addLeadingZeros)(n,t.length)}};function ST(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),i=n%60;return i===0?r+String(a):r+String(a)+t+(0,_t.addLeadingZeros)(i,2)}function PT(e,t){return e%60===0?(e>0?"-":"+")+(0,_t.addLeadingZeros)(Math.abs(e)/60,2):Js(e,t)}function Js(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=(0,_t.addLeadingZeros)(Math.trunc(n/60),2),i=(0,_t.addLeadingZeros)(n%60,2);return r+a+t+i}var Vp={};Vp.longFormatters=void 0;const $T=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},LI=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ule=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return $T(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",$T(n,t)).replace("{{time}}",LI(a,t))};Vp.longFormatters={p:LI,P:Ule};var Gh={};Gh.isProtectedDayOfYearToken=Qle;Gh.isProtectedWeekYearToken=Kle;Gh.warnOrThrowProtectedError=Xle;const Yle=/^D+$/,Gle=/^Y+$/,qle=["D","DD","YY","YYYY"];function Qle(e){return Yle.test(e)}function Kle(e){return Gle.test(e)}function Xle(e,t,r){const n=Zle(e,t,r);if(console.warn(n),qle.includes(e))throw new RangeError(n)}function Zle(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(function(e){e.format=e.formatDate=v,Object.defineProperty(e,"formatters",{enumerable:!0,get:function(){return n.formatters}}),Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return a.longFormatters}});var t=Rl,r=Zt,n=Wx,a=Vp,i=Gh,s=vi,l=B;const u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,d=/^'([^]*?)'?$/,f=/''/g,h=/[a-zA-Z]/;function v(p,$,y){var q,Q,ve,Ee,nt,rt,Te,ze;const _=(0,r.getDefaultOptions)(),S=(y==null?void 0:y.locale)??_.locale??t.defaultLocale,T=(y==null?void 0:y.firstWeekContainsDate)??((Q=(q=y==null?void 0:y.locale)==null?void 0:q.options)==null?void 0:Q.firstWeekContainsDate)??_.firstWeekContainsDate??((Ee=(ve=_.locale)==null?void 0:ve.options)==null?void 0:Ee.firstWeekContainsDate)??1,I=(y==null?void 0:y.weekStartsOn)??((rt=(nt=y==null?void 0:y.locale)==null?void 0:nt.options)==null?void 0:rt.weekStartsOn)??_.weekStartsOn??((ze=(Te=_.locale)==null?void 0:Te.options)==null?void 0:ze.weekStartsOn)??0,A=(0,l.toDate)(p);if(!(0,s.isValid)(A))throw new RangeError("Invalid time value");let N=$.match(c).map(Pe=>{const H=Pe[0];if(H==="p"||H==="P"){const ae=a.longFormatters[H];return ae(Pe,S.formatLong)}return Pe}).join("").match(u).map(Pe=>{if(Pe==="''")return{isToken:!1,value:"'"};const H=Pe[0];if(H==="'")return{isToken:!1,value:b(Pe)};if(n.formatters[H])return{isToken:!0,value:Pe};if(H.match(h))throw new RangeError("Format string contains an unescaped latin alphabet character `"+H+"`");return{isToken:!1,value:Pe}});S.localize.preprocessor&&(N=S.localize.preprocessor(A,N));const z={firstWeekContainsDate:T,weekStartsOn:I,locale:S};return N.map(Pe=>{if(!Pe.isToken)return Pe.value;const H=Pe.value;(!(y!=null&&y.useAdditionalWeekYearTokens)&&(0,i.isProtectedWeekYearToken)(H)||!(y!=null&&y.useAdditionalDayOfYearTokens)&&(0,i.isProtectedDayOfYearToken)(H))&&(0,i.warnOrThrowProtectedError)(H,$,String(p));const ae=n.formatters[H[0]];return ae(A,H,S.localize,z)}).join("")}function b(p){const $=p.match(d);return $?$[1].replace(f,"'"):p}})(Ax);var Hx={};Hx.formatDistance=aue;var Jle=Al,mu=K,eue=Vh,tue=Hh,zm=B,rue=Rl,nue=Zt,OT=mi;function aue(e,t,r){const n=(0,nue.getDefaultOptions)(),a=(r==null?void 0:r.locale)??n.locale??rue.defaultLocale,i=2520,s=(0,Jle.compareAsc)(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const l=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:s});let u,c;s>0?(u=(0,zm.toDate)(t),c=(0,zm.toDate)(e)):(u=(0,zm.toDate)(e),c=(0,zm.toDate)(t));const d=(0,tue.differenceInSeconds)(c,u),f=((0,OT.getTimezoneOffsetInMilliseconds)(c)-(0,OT.getTimezoneOffsetInMilliseconds)(u))/1e3,h=Math.round((d-f)/60);let v;if(h<2)return r!=null&&r.includeSeconds?d<5?a.formatDistance("lessThanXSeconds",5,l):d<10?a.formatDistance("lessThanXSeconds",10,l):d<20?a.formatDistance("lessThanXSeconds",20,l):d<40?a.formatDistance("halfAMinute",0,l):d<60?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",1,l):h===0?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",h,l);if(h<45)return a.formatDistance("xMinutes",h,l);if(h<90)return a.formatDistance("aboutXHours",1,l);if(h0?(l=(0,Bm.toDate)(t),u=(0,Bm.toDate)(e)):(l=(0,Bm.toDate)(e),u=(0,Bm.toDate)(t));const c=(0,sue.getRoundingMethod)((r==null?void 0:r.roundingMethod)??"round"),d=u.getTime()-l.getTime(),f=d/eo.millisecondsInMinute,h=(0,CT.getTimezoneOffsetInMilliseconds)(u)-(0,CT.getTimezoneOffsetInMilliseconds)(l),v=(d-h)/eo.millisecondsInMinute,b=r==null?void 0:r.unit;let p;if(b?p=b:f<1?p="second":f<60?p="minute":f{const d=`x${c.replace(/(^.)/,h=>h.toUpperCase())}`,f=e[c];return f!==void 0&&(i||e[c])?u.concat(n.formatDistance(d,f)):u},[]).join(s):""}var BI={};BI.formatISO=wue;var _ue=B,to=Ll;function wue(e,t){const r=(0,_ue.toDate)(e);if(isNaN(r.getTime()))throw new RangeError("Invalid time value");const n=(t==null?void 0:t.format)??"extended",a=(t==null?void 0:t.representation)??"complete";let i="",s="";const l=n==="extended"?"-":"",u=n==="extended"?":":"";if(a!=="time"){const c=(0,to.addLeadingZeros)(r.getDate(),2),d=(0,to.addLeadingZeros)(r.getMonth()+1,2);i=`${(0,to.addLeadingZeros)(r.getFullYear(),4)}${l}${d}${l}${c}`}if(a!=="date"){const c=r.getTimezoneOffset();if(c!==0){const p=Math.abs(c),$=(0,to.addLeadingZeros)(Math.trunc(p/60),2),y=(0,to.addLeadingZeros)(p%60,2);s=`${c<0?"+":"-"}${$}:${y}`}else s="Z";const d=(0,to.addLeadingZeros)(r.getHours(),2),f=(0,to.addLeadingZeros)(r.getMinutes(),2),h=(0,to.addLeadingZeros)(r.getSeconds(),2),v=i===""?"":"T",b=[d,f,h].join(u);i=`${i}${v}${b}${s}`}return i}var WI={};WI.formatISO9075=Pue;var xue=vi,Sue=B,vu=Ll;function Pue(e,t){const r=(0,Sue.toDate)(e);if(!(0,xue.isValid)(r))throw new RangeError("Invalid time value");const n=(t==null?void 0:t.format)??"extended",a=(t==null?void 0:t.representation)??"complete";let i="";const s=n==="extended"?"-":"",l=n==="extended"?":":"";if(a!=="time"){const u=(0,vu.addLeadingZeros)(r.getDate(),2),c=(0,vu.addLeadingZeros)(r.getMonth()+1,2);i=`${(0,vu.addLeadingZeros)(r.getFullYear(),4)}${s}${c}${s}${u}`}if(a!=="date"){const u=(0,vu.addLeadingZeros)(r.getHours(),2),c=(0,vu.addLeadingZeros)(r.getMinutes(),2),d=(0,vu.addLeadingZeros)(r.getSeconds(),2);i=`${i}${i===""?"":" "}${u}${l}${c}${l}${d}`}return i}var VI={};VI.formatISODuration=$ue;function $ue(e){const{years:t=0,months:r=0,days:n=0,hours:a=0,minutes:i=0,seconds:s=0}=e;return`P${t}Y${r}M${n}DT${a}H${i}M${s}S`}var HI={};HI.formatRFC3339=Tue;var Oue=vi,Cue=B,ro=Ll;function Tue(e,t){const r=(0,Cue.toDate)(e);if(!(0,Oue.isValid)(r))throw new RangeError("Invalid time value");const n=(t==null?void 0:t.fractionDigits)??0,a=(0,ro.addLeadingZeros)(r.getDate(),2),i=(0,ro.addLeadingZeros)(r.getMonth()+1,2),s=r.getFullYear(),l=(0,ro.addLeadingZeros)(r.getHours(),2),u=(0,ro.addLeadingZeros)(r.getMinutes(),2),c=(0,ro.addLeadingZeros)(r.getSeconds(),2);let d="";if(n>0){const v=r.getMilliseconds(),b=Math.trunc(v*Math.pow(10,n-3));d="."+(0,ro.addLeadingZeros)(b,n)}let f="";const h=r.getTimezoneOffset();if(h!==0){const v=Math.abs(h),b=(0,ro.addLeadingZeros)(Math.trunc(v/60),2),p=(0,ro.addLeadingZeros)(v%60,2);f=`${h<0?"+":"-"}${b}:${p}`}else f="Z";return`${s}-${i}-${a}T${l}:${u}:${c}${d}${f}`}var UI={};UI.formatRFC7231=Iue;var Eue=vi,Mue=B,Wm=Ll;const jue=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Due=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Iue(e){const t=(0,Mue.toDate)(e);if(!(0,Eue.isValid)(t))throw new RangeError("Invalid time value");const r=jue[t.getUTCDay()],n=(0,Wm.addLeadingZeros)(t.getUTCDate(),2),a=Due[t.getUTCMonth()],i=t.getUTCFullYear(),s=(0,Wm.addLeadingZeros)(t.getUTCHours(),2),l=(0,Wm.addLeadingZeros)(t.getUTCMinutes(),2),u=(0,Wm.addLeadingZeros)(t.getUTCSeconds(),2);return`${r}, ${n} ${a} ${i} ${s}:${l}:${u} GMT`}var YI={};YI.formatRelative=Fue;var kue=hi,Aue=Ax,TT=B,Rue=Rl,Lue=Zt;function Fue(e,t,r){var f,h,v,b;const n=(0,TT.toDate)(e),a=(0,TT.toDate)(t),i=(0,Lue.getDefaultOptions)(),s=(r==null?void 0:r.locale)??i.locale??Rue.defaultLocale,l=(r==null?void 0:r.weekStartsOn)??((h=(f=r==null?void 0:r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??i.weekStartsOn??((b=(v=i.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??0,u=(0,kue.differenceInCalendarDays)(n,a);if(isNaN(u))throw new RangeError("Invalid time value");let c;u<-6?c="other":u<-1?c="lastWeek":u<0?c="yesterday":u<1?c="today":u<2?c="tomorrow":u<7?c="nextWeek":c="other";const d=s.formatRelative(c,n,a,{locale:s,weekStartsOn:l});return(0,Aue.format)(n,d,{locale:s,weekStartsOn:l})}var GI={};GI.fromUnixTime=zue;var Nue=B;function zue(e){return(0,Nue.toDate)(e*1e3)}var Yx={};Yx.getDate=Wue;var Bue=B;function Wue(e){return(0,Bue.toDate)(e).getDate()}var qh={};qh.getDay=Hue;var Vue=B;function Hue(e){return(0,Vue.toDate)(e).getDay()}var Gx={};Gx.getDaysInMonth=Gue;var Uue=B,Yue=Fe;function Gue(e){const t=(0,Uue.toDate)(e),r=t.getFullYear(),n=t.getMonth(),a=(0,Yue.constructFrom)(e,0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}var qI={},qx={};qx.isLeapYear=Que;var que=B;function Que(e){const r=(0,que.toDate)(e).getFullYear();return r%400===0||r%4===0&&r%100!==0}qI.getDaysInYear=Zue;var Kue=qx,Xue=B;function Zue(e){const t=(0,Xue.toDate)(e);return String(new Date(t))==="Invalid Date"?NaN:(0,Kue.isLeapYear)(t)?366:365}var QI={};QI.getDecade=ece;var Jue=B;function ece(e){const r=(0,Jue.toDate)(e).getFullYear();return Math.floor(r/10)*10}var Qx={};Qx.getDefaultOptions=rce;var tce=Zt;function rce(){return Object.assign({},(0,tce.getDefaultOptions)())}var KI={};KI.getHours=ace;var nce=B;function ace(e){return(0,nce.toDate)(e).getHours()}var Kx={};Kx.getISODay=oce;var ice=B;function oce(e){let r=(0,ice.toDate)(e).getDay();return r===0&&(r=7),r}var XI={};XI.getISOWeeksInYear=uce;var sce=Bh,lce=K,ET=Ec;function uce(e){const t=(0,ET.startOfISOWeekYear)(e),n=+(0,ET.startOfISOWeekYear)((0,sce.addWeeks)(t,60))-+t;return Math.round(n/lce.millisecondsInWeek)}var ZI={};ZI.getMilliseconds=dce;var cce=B;function dce(e){return(0,cce.toDate)(e).getMilliseconds()}var JI={};JI.getMinutes=hce;var fce=B;function hce(e){return(0,fce.toDate)(e).getMinutes()}var ek={};ek.getMonth=vce;var mce=B;function vce(e){return(0,mce.toDate)(e).getMonth()}var tk={};tk.getOverlappingDaysInIntervals=gce;var MT=mi,pce=K,Vm=B;function gce(e,t){const[r,n]=[+(0,Vm.toDate)(e.start),+(0,Vm.toDate)(e.end)].sort((f,h)=>f-h),[a,i]=[+(0,Vm.toDate)(t.start),+(0,Vm.toDate)(t.end)].sort((f,h)=>f-h);if(!(rn?n:i,d=c-(0,MT.getTimezoneOffsetInMilliseconds)(c);return Math.ceil((d-u)/pce.millisecondsInDay)}var rk={};rk.getSeconds=bce;var yce=B;function bce(e){return(0,yce.toDate)(e).getSeconds()}var nk={};nk.getTime=wce;var _ce=B;function wce(e){return(0,_ce.toDate)(e).getTime()}var ak={};ak.getUnixTime=Sce;var xce=B;function Sce(e){return Math.trunc(+(0,xce.toDate)(e)/1e3)}var ik={};ik.getWeekOfMonth=Tce;var Pce=Yx,$ce=qh,Oce=Uh,Cce=Zt;function Tce(e,t){var u,c,d,f;const r=(0,Cce.getDefaultOptions)(),n=(t==null?void 0:t.weekStartsOn)??((c=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((f=(d=r.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,a=(0,Pce.getDate)(e);if(isNaN(a))return NaN;const i=(0,$ce.getDay)((0,Oce.startOfMonth)(e));let s=n-i;s<=0&&(s+=7);const l=a-s;return Math.ceil(l/7)+1}var ok={},Xx={};Xx.lastDayOfMonth=Mce;var Ece=B;function Mce(e){const t=(0,Ece.toDate)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}ok.getWeeksInMonth=kce;var jce=Tp,Dce=Xx,Ice=Uh;function kce(e,t){return(0,jce.differenceInCalendarWeeks)((0,Dce.lastDayOfMonth)(e),(0,Ice.startOfMonth)(e),t)+1}var sk={};sk.getYear=Rce;var Ace=B;function Rce(e){return(0,Ace.toDate)(e).getFullYear()}var lk={};lk.hoursToMilliseconds=Fce;var Lce=K;function Fce(e){return Math.trunc(e*Lce.millisecondsInHour)}var uk={};uk.hoursToMinutes=zce;var Nce=K;function zce(e){return Math.trunc(e*Nce.minutesInHour)}var ck={};ck.hoursToSeconds=Wce;var Bce=K;function Wce(e){return Math.trunc(e*Bce.secondsInHour)}var dk={};dk.interval=Vce;var jT=B;function Vce(e,t,r){const n=(0,jT.toDate)(e);if(isNaN(+n))throw new TypeError("Start date is invalid");const a=(0,jT.toDate)(t);if(isNaN(+a))throw new TypeError("End date is invalid");if(r!=null&&r.assertPositive&&+n>+a)throw new TypeError("End date must be after start date");return{start:n,end:a}}var fk={};fk.intervalToDuration=Kce;var Yd=vx,Hce=Mp,Uce=jp,Yce=Dp,Gce=Vh,qce=Hh,Qce=jx,DT=B;function Kce(e){const t=(0,DT.toDate)(e.start),r=(0,DT.toDate)(e.end),n={},a=(0,Qce.differenceInYears)(r,t);a&&(n.years=a);const i=(0,Yd.add)(t,{years:n.years}),s=(0,Gce.differenceInMonths)(r,i);s&&(n.months=s);const l=(0,Yd.add)(i,{months:n.months}),u=(0,Hce.differenceInDays)(r,l);u&&(n.days=u);const c=(0,Yd.add)(l,{days:n.days}),d=(0,Uce.differenceInHours)(r,c);d&&(n.hours=d);const f=(0,Yd.add)(c,{hours:n.hours}),h=(0,Yce.differenceInMinutes)(r,f);h&&(n.minutes=h);const v=(0,Yd.add)(f,{minutes:n.minutes}),b=(0,qce.differenceInSeconds)(r,v);return b&&(n.seconds=b),n}var hk={};hk.intlFormat=Zce;var Xce=B;function Zce(e,t,r){let n;return Jce(t)?n=t:r=t,new Intl.DateTimeFormat(r==null?void 0:r.locale,n).format((0,Xce.toDate)(e))}function Jce(e){return e!==void 0&&!("locale"in e)}var mk={};mk.intlFormatDistance=ede;var Us=K,F1=hi,IT=Cp,N1=Cx,kT=Tp,z1=Ep,AT=jp,RT=Dp,B1=Hh,LT=B;function ede(e,t,r){let n=0,a;const i=(0,LT.toDate)(e),s=(0,LT.toDate)(t);if(r!=null&&r.unit)a=r==null?void 0:r.unit,a==="second"?n=(0,B1.differenceInSeconds)(i,s):a==="minute"?n=(0,RT.differenceInMinutes)(i,s):a==="hour"?n=(0,AT.differenceInHours)(i,s):a==="day"?n=(0,F1.differenceInCalendarDays)(i,s):a==="week"?n=(0,kT.differenceInCalendarWeeks)(i,s):a==="month"?n=(0,IT.differenceInCalendarMonths)(i,s):a==="quarter"?n=(0,N1.differenceInCalendarQuarters)(i,s):a==="year"&&(n=(0,z1.differenceInCalendarYears)(i,s));else{const u=(0,B1.differenceInSeconds)(i,s);Math.abs(u)n.getTime()}var pk={};pk.isBefore=rde;var NT=B;function rde(e,t){const r=(0,NT.toDate)(e),n=(0,NT.toDate)(t);return+r<+n}var gk={};gk.isEqual=nde;var zT=B;function nde(e,t){const r=(0,zT.toDate)(e),n=(0,zT.toDate)(t);return+r==+n}var yk={};yk.isExists=ade;function ade(e,t,r){const n=new Date(e,t,r);return n.getFullYear()===e&&n.getMonth()===t&&n.getDate()===r}var bk={};bk.isFirstDayOfMonth=ode;var ide=B;function ode(e){return(0,ide.toDate)(e).getDate()===1}var _k={};_k.isFriday=lde;var sde=B;function lde(e){return(0,sde.toDate)(e).getDay()===5}var wk={};wk.isFuture=cde;var ude=B;function cde(e){return+(0,ude.toDate)(e)>Date.now()}var xk={},Zx={},Jx={},eS={},Ne={},Io={},tS={};tS.transpose=fde;var dde=Fe;function fde(e,t){const r=t instanceof Date?(0,dde.constructFrom)(t,0):new t(0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}Io.ValueSetter=Io.Setter=Io.DateToSystemTimezoneSetter=void 0;var hde=tS,mde=Fe;const vde=10;class rS{constructor(){J(this,"subPriority",0)}validate(t,r){return!0}}Io.Setter=rS;class pde extends rS{constructor(t,r,n,a,i){super(),this.value=t,this.validateValue=r,this.setValue=n,this.priority=a,i&&(this.subPriority=i)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,n){return this.setValue(t,r,this.value,n)}}Io.ValueSetter=pde;class gde extends rS{constructor(){super(...arguments);J(this,"priority",vde);J(this,"subPriority",-1)}set(r,n){return n.timestampIsSet?r:(0,mde.constructFrom)(r,(0,hde.transpose)(r,Date))}}Io.DateToSystemTimezoneSetter=gde;Ne.Parser=void 0;var yde=Io;class bde{run(t,r,n,a){const i=this.parse(t,r,n,a);return i?{setter:new yde.ValueSetter(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,r,n){return!0}}Ne.Parser=bde;eS.EraParser=void 0;var _de=Ne;class wde extends _de.Parser{constructor(){super(...arguments);J(this,"priority",140);J(this,"incompatibleTokens",["R","u","t","T"])}parse(r,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"})||a.era(r,{width:"narrow"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})||a.era(r,{width:"abbreviated"})||a.era(r,{width:"narrow"})}}set(r,n,a){return n.era=a,r.setFullYear(a,0,1),r.setHours(0,0,0,0),r}}eS.EraParser=wde;var nS={},Se={},Dt={};Dt.timezonePatterns=Dt.numericPatterns=void 0;Dt.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/};Dt.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};Se.dayPeriodEnumToHours=Cde;Se.isLeapYearIndex=Ede;Se.mapValue=xde;Se.normalizeTwoDigitYear=Tde;Se.parseAnyDigitsSigned=Pde;Se.parseNDigits=$de;Se.parseNDigitsSigned=Ode;Se.parseNumericPattern=mn;Se.parseTimezonePattern=Sde;var W1=K,Xa=Dt;function xde(e,t){return e&&{value:t(e.value),rest:e.rest}}function mn(e,t){const r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Sde(e,t){const r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};const n=r[1]==="+"?1:-1,a=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(a*W1.millisecondsInHour+i*W1.millisecondsInMinute+s*W1.millisecondsInSecond),rest:t.slice(r[0].length)}}function Pde(e){return mn(Xa.numericPatterns.anyDigitsSigned,e)}function $de(e,t){switch(e){case 1:return mn(Xa.numericPatterns.singleDigit,t);case 2:return mn(Xa.numericPatterns.twoDigits,t);case 3:return mn(Xa.numericPatterns.threeDigits,t);case 4:return mn(Xa.numericPatterns.fourDigits,t);default:return mn(new RegExp("^\\d{1,"+e+"}"),t)}}function Ode(e,t){switch(e){case 1:return mn(Xa.numericPatterns.singleDigitSigned,t);case 2:return mn(Xa.numericPatterns.twoDigitsSigned,t);case 3:return mn(Xa.numericPatterns.threeDigitsSigned,t);case 4:return mn(Xa.numericPatterns.fourDigitsSigned,t);default:return mn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Cde(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Tde(e,t){const r=t>0,n=r?t:1-t;let a;if(n<=50)a=e||100;else{const i=n+50,s=Math.trunc(i/100)*100,l=e>=i%100;a=e+s-(l?100:0)}return r?a:1-a}function Ede(e){return e%400===0||e%4===0&&e%100!==0}nS.YearParser=void 0;var Mde=Ne,pu=Se;class jde extends Mde.Parser{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(r,n,a){const i=s=>({year:s,isTwoDigitYear:n==="yy"});switch(n){case"y":return(0,pu.mapValue)((0,pu.parseNDigits)(4,r),i);case"yo":return(0,pu.mapValue)(a.ordinalNumber(r,{unit:"year"}),i);default:return(0,pu.mapValue)((0,pu.parseNDigits)(n.length,r),i)}}validate(r,n){return n.isTwoDigitYear||n.year>0}set(r,n,a){const i=r.getFullYear();if(a.isTwoDigitYear){const l=(0,pu.normalizeTwoDigitYear)(a.year,i);return r.setFullYear(l,0,1),r.setHours(0,0,0,0),r}const s=!("era"in n)||n.era===1?a.year:1-a.year;return r.setFullYear(s,0,1),r.setHours(0,0,0,0),r}}nS.YearParser=jde;var aS={};aS.LocalWeekYearParser=void 0;var Dde=Yh,BT=Vn,Ide=Ne,gu=Se;class kde extends Ide.Parser{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(r,n,a){const i=s=>({year:s,isTwoDigitYear:n==="YY"});switch(n){case"Y":return(0,gu.mapValue)((0,gu.parseNDigits)(4,r),i);case"Yo":return(0,gu.mapValue)(a.ordinalNumber(r,{unit:"year"}),i);default:return(0,gu.mapValue)((0,gu.parseNDigits)(n.length,r),i)}}validate(r,n){return n.isTwoDigitYear||n.year>0}set(r,n,a,i){const s=(0,Dde.getWeekYear)(r,i);if(a.isTwoDigitYear){const u=(0,gu.normalizeTwoDigitYear)(a.year,s);return r.setFullYear(u,0,i.firstWeekContainsDate),r.setHours(0,0,0,0),(0,BT.startOfWeek)(r,i)}const l=!("era"in n)||n.era===1?a.year:1-a.year;return r.setFullYear(l,0,i.firstWeekContainsDate),r.setHours(0,0,0,0),(0,BT.startOfWeek)(r,i)}}aS.LocalWeekYearParser=kde;var iS={};iS.ISOWeekYearParser=void 0;var Ade=ba,Rde=Fe,Lde=Ne,WT=Se;class Fde extends Lde.Parser{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(r,n){return n==="R"?(0,WT.parseNDigitsSigned)(4,r):(0,WT.parseNDigitsSigned)(n.length,r)}set(r,n,a){const i=(0,Rde.constructFrom)(r,0);return i.setFullYear(a,0,4),i.setHours(0,0,0,0),(0,Ade.startOfISOWeek)(i)}}iS.ISOWeekYearParser=Fde;var oS={};oS.ExtendedYearParser=void 0;var Nde=Ne,VT=Se;class zde extends Nde.Parser{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(r,n){return n==="u"?(0,VT.parseNDigitsSigned)(4,r):(0,VT.parseNDigitsSigned)(n.length,r)}set(r,n,a){return r.setFullYear(a,0,1),r.setHours(0,0,0,0),r}}oS.ExtendedYearParser=zde;var sS={};sS.QuarterParser=void 0;var Bde=Ne,Wde=Se;class Vde extends Bde.Parser{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(r,n,a){switch(n){case"Q":case"QQ":return(0,Wde.parseNDigits)(n.length,r);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"})||a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})||a.quarter(r,{width:"abbreviated",context:"formatting"})||a.quarter(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=1&&n<=4}set(r,n,a){return r.setMonth((a-1)*3,1),r.setHours(0,0,0,0),r}}sS.QuarterParser=Vde;var lS={};lS.StandAloneQuarterParser=void 0;var Hde=Ne,Ude=Se;class Yde extends Hde.Parser{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(r,n,a){switch(n){case"q":case"qq":return(0,Ude.parseNDigits)(n.length,r);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"})||a.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})||a.quarter(r,{width:"abbreviated",context:"standalone"})||a.quarter(r,{width:"narrow",context:"standalone"})}}validate(r,n){return n>=1&&n<=4}set(r,n,a){return r.setMonth((a-1)*3,1),r.setHours(0,0,0,0),r}}lS.StandAloneQuarterParser=Yde;var uS={};uS.MonthParser=void 0;var Gde=Dt,qde=Ne,Gd=Se;class Qde extends qde.Parser{constructor(){super(...arguments);J(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);J(this,"priority",110)}parse(r,n,a){const i=s=>s-1;switch(n){case"M":return(0,Gd.mapValue)((0,Gd.parseNumericPattern)(Gde.numericPatterns.month,r),i);case"MM":return(0,Gd.mapValue)((0,Gd.parseNDigits)(2,r),i);case"Mo":return(0,Gd.mapValue)(a.ordinalNumber(r,{unit:"month"}),i);case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"})||a.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})||a.month(r,{width:"abbreviated",context:"formatting"})||a.month(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=0&&n<=11}set(r,n,a){return r.setMonth(a,1),r.setHours(0,0,0,0),r}}uS.MonthParser=Qde;var cS={};cS.StandAloneMonthParser=void 0;var Kde=Dt,Xde=Ne,qd=Se;class Zde extends Xde.Parser{constructor(){super(...arguments);J(this,"priority",110);J(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(r,n,a){const i=s=>s-1;switch(n){case"L":return(0,qd.mapValue)((0,qd.parseNumericPattern)(Kde.numericPatterns.month,r),i);case"LL":return(0,qd.mapValue)((0,qd.parseNDigits)(2,r),i);case"Lo":return(0,qd.mapValue)(a.ordinalNumber(r,{unit:"month"}),i);case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"})||a.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})||a.month(r,{width:"abbreviated",context:"standalone"})||a.month(r,{width:"narrow",context:"standalone"})}}validate(r,n){return n>=0&&n<=11}set(r,n,a){return r.setMonth(a,1),r.setHours(0,0,0,0),r}}cS.StandAloneMonthParser=Zde;var dS={},fS={};fS.setWeek=tfe;var Jde=zp,efe=B;function tfe(e,t,r){const n=(0,efe.toDate)(e),a=(0,Jde.getWeek)(n,r)-t;return n.setDate(n.getDate()-a*7),n}dS.LocalWeekParser=void 0;var rfe=fS,nfe=Vn,afe=Dt,ife=Ne,HT=Se;class ofe extends ife.Parser{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(r,n,a){switch(n){case"w":return(0,HT.parseNumericPattern)(afe.numericPatterns.week,r);case"wo":return a.ordinalNumber(r,{unit:"week"});default:return(0,HT.parseNDigits)(n.length,r)}}validate(r,n){return n>=1&&n<=53}set(r,n,a,i){return(0,nfe.startOfWeek)((0,rfe.setWeek)(r,a,i),i)}}dS.LocalWeekParser=ofe;var hS={},mS={};mS.setISOWeek=ufe;var sfe=Np,lfe=B;function ufe(e,t){const r=(0,lfe.toDate)(e),n=(0,sfe.getISOWeek)(r)-t;return r.setDate(r.getDate()-n*7),r}hS.ISOWeekParser=void 0;var cfe=mS,dfe=ba,ffe=Dt,hfe=Ne,UT=Se;class mfe extends hfe.Parser{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(r,n,a){switch(n){case"I":return(0,UT.parseNumericPattern)(ffe.numericPatterns.week,r);case"Io":return a.ordinalNumber(r,{unit:"week"});default:return(0,UT.parseNDigits)(n.length,r)}}validate(r,n){return n>=1&&n<=53}set(r,n,a){return(0,dfe.startOfISOWeek)((0,cfe.setISOWeek)(r,a))}}hS.ISOWeekParser=mfe;var vS={};vS.DateParser=void 0;var vfe=Dt,pfe=Ne,V1=Se;const gfe=[31,28,31,30,31,30,31,31,30,31,30,31],yfe=[31,29,31,30,31,30,31,31,30,31,30,31];class bfe extends pfe.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"subPriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(r,n,a){switch(n){case"d":return(0,V1.parseNumericPattern)(vfe.numericPatterns.date,r);case"do":return a.ordinalNumber(r,{unit:"date"});default:return(0,V1.parseNDigits)(n.length,r)}}validate(r,n){const a=r.getFullYear(),i=(0,V1.isLeapYearIndex)(a),s=r.getMonth();return i?n>=1&&n<=yfe[s]:n>=1&&n<=gfe[s]}set(r,n,a){return r.setDate(a),r.setHours(0,0,0,0),r}}vS.DateParser=bfe;var pS={};pS.DayOfYearParser=void 0;var _fe=Dt,wfe=Ne,H1=Se;class xfe extends wfe.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"subpriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(r,n,a){switch(n){case"D":case"DD":return(0,H1.parseNumericPattern)(_fe.numericPatterns.dayOfYear,r);case"Do":return a.ordinalNumber(r,{unit:"date"});default:return(0,H1.parseNDigits)(n.length,r)}}validate(r,n){const a=r.getFullYear();return(0,H1.isLeapYearIndex)(a)?n>=1&&n<=366:n>=1&&n<=365}set(r,n,a){return r.setMonth(0,a),r.setHours(0,0,0,0),r}}pS.DayOfYearParser=xfe;var gS={},Qh={};Qh.setDay=Ofe;var Sfe=ya,Pfe=B,$fe=Zt;function Ofe(e,t,r){var f,h,v,b;const n=(0,$fe.getDefaultOptions)(),a=(r==null?void 0:r.weekStartsOn)??((h=(f=r==null?void 0:r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??n.weekStartsOn??((b=(v=n.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??0,i=(0,Pfe.toDate)(e),s=i.getDay(),u=(t%7+7)%7,c=7-a,d=t<0||t>6?t-(s+c)%7:(u+c)%7-(s+c)%7;return(0,Sfe.addDays)(i,d)}gS.DayParser=void 0;var Cfe=Qh,Tfe=Ne;class Efe extends Tfe.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(r,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})||a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=0&&n<=6}set(r,n,a,i){return r=(0,Cfe.setDay)(r,a,i),r.setHours(0,0,0,0),r}}gS.DayParser=Efe;var yS={};yS.LocalDayParser=void 0;var Mfe=Qh,jfe=Ne,U1=Se;class Dfe extends jfe.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(r,n,a,i){const s=l=>{const u=Math.floor((l-1)/7)*7;return(l+i.weekStartsOn+6)%7+u};switch(n){case"e":case"ee":return(0,U1.mapValue)((0,U1.parseNDigits)(n.length,r),s);case"eo":return(0,U1.mapValue)(a.ordinalNumber(r,{unit:"day"}),s);case"eee":return a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})||a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=0&&n<=6}set(r,n,a,i){return r=(0,Mfe.setDay)(r,a,i),r.setHours(0,0,0,0),r}}yS.LocalDayParser=Dfe;var bS={};bS.StandAloneLocalDayParser=void 0;var Ife=Qh,kfe=Ne,Y1=Se;class Afe extends kfe.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(r,n,a,i){const s=l=>{const u=Math.floor((l-1)/7)*7;return(l+i.weekStartsOn+6)%7+u};switch(n){case"c":case"cc":return(0,Y1.mapValue)((0,Y1.parseNDigits)(n.length,r),s);case"co":return(0,Y1.mapValue)(a.ordinalNumber(r,{unit:"day"}),s);case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"})||a.day(r,{width:"short",context:"standalone"})||a.day(r,{width:"narrow",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"})||a.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})||a.day(r,{width:"abbreviated",context:"standalone"})||a.day(r,{width:"short",context:"standalone"})||a.day(r,{width:"narrow",context:"standalone"})}}validate(r,n){return n>=0&&n<=6}set(r,n,a,i){return r=(0,Ife.setDay)(r,a,i),r.setHours(0,0,0,0),r}}bS.StandAloneLocalDayParser=Afe;var _S={},wS={};wS.setISODay=Nfe;var Rfe=ya,Lfe=Kx,Ffe=B;function Nfe(e,t){const r=(0,Ffe.toDate)(e),n=(0,Lfe.getISODay)(r),a=t-n;return(0,Rfe.addDays)(r,a)}_S.ISODayParser=void 0;var zfe=wS,Bfe=Ne,Qd=Se;class Wfe extends Bfe.Parser{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(r,n,a){const i=s=>s===0?7:s;switch(n){case"i":case"ii":return(0,Qd.parseNDigits)(n.length,r);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return(0,Qd.mapValue)(a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"}),i);case"iiiii":return(0,Qd.mapValue)(a.day(r,{width:"narrow",context:"formatting"}),i);case"iiiiii":return(0,Qd.mapValue)(a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"}),i);case"iiii":default:return(0,Qd.mapValue)(a.day(r,{width:"wide",context:"formatting"})||a.day(r,{width:"abbreviated",context:"formatting"})||a.day(r,{width:"short",context:"formatting"})||a.day(r,{width:"narrow",context:"formatting"}),i)}}validate(r,n){return n>=1&&n<=7}set(r,n,a){return r=(0,zfe.setISODay)(r,a),r.setHours(0,0,0,0),r}}_S.ISODayParser=Wfe;var xS={};xS.AMPMParser=void 0;var Vfe=Ne,Hfe=Se;class Ufe extends Vfe.Parser{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(r,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})||a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,n,a){return r.setHours((0,Hfe.dayPeriodEnumToHours)(a),0,0,0),r}}xS.AMPMParser=Ufe;var SS={};SS.AMPMMidnightParser=void 0;var Yfe=Ne,Gfe=Se;class qfe extends Yfe.Parser{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(r,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})||a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,n,a){return r.setHours((0,Gfe.dayPeriodEnumToHours)(a),0,0,0),r}}SS.AMPMMidnightParser=qfe;var PS={};PS.DayPeriodParser=void 0;var Qfe=Ne,Kfe=Se;class Xfe extends Qfe.Parser{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","b","t","T"])}parse(r,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})||a.dayPeriod(r,{width:"abbreviated",context:"formatting"})||a.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,n,a){return r.setHours((0,Kfe.dayPeriodEnumToHours)(a),0,0,0),r}}PS.DayPeriodParser=Xfe;var $S={};$S.Hour1to12Parser=void 0;var Zfe=Dt,Jfe=Ne,YT=Se;class ehe extends Jfe.Parser{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["H","K","k","t","T"])}parse(r,n,a){switch(n){case"h":return(0,YT.parseNumericPattern)(Zfe.numericPatterns.hour12h,r);case"ho":return a.ordinalNumber(r,{unit:"hour"});default:return(0,YT.parseNDigits)(n.length,r)}}validate(r,n){return n>=1&&n<=12}set(r,n,a){const i=r.getHours()>=12;return i&&a<12?r.setHours(a+12,0,0,0):!i&&a===12?r.setHours(0,0,0,0):r.setHours(a,0,0,0),r}}$S.Hour1to12Parser=ehe;var OS={};OS.Hour0to23Parser=void 0;var the=Dt,rhe=Ne,GT=Se;class nhe extends rhe.Parser{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(r,n,a){switch(n){case"H":return(0,GT.parseNumericPattern)(the.numericPatterns.hour23h,r);case"Ho":return a.ordinalNumber(r,{unit:"hour"});default:return(0,GT.parseNDigits)(n.length,r)}}validate(r,n){return n>=0&&n<=23}set(r,n,a){return r.setHours(a,0,0,0),r}}OS.Hour0to23Parser=nhe;var CS={};CS.Hour0To11Parser=void 0;var ahe=Dt,ihe=Ne,qT=Se;class ohe extends ihe.Parser{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["h","H","k","t","T"])}parse(r,n,a){switch(n){case"K":return(0,qT.parseNumericPattern)(ahe.numericPatterns.hour11h,r);case"Ko":return a.ordinalNumber(r,{unit:"hour"});default:return(0,qT.parseNDigits)(n.length,r)}}validate(r,n){return n>=0&&n<=11}set(r,n,a){return r.getHours()>=12&&a<12?r.setHours(a+12,0,0,0):r.setHours(a,0,0,0),r}}CS.Hour0To11Parser=ohe;var TS={};TS.Hour1To24Parser=void 0;var she=Dt,lhe=Ne,QT=Se;class uhe extends lhe.Parser{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(r,n,a){switch(n){case"k":return(0,QT.parseNumericPattern)(she.numericPatterns.hour24h,r);case"ko":return a.ordinalNumber(r,{unit:"hour"});default:return(0,QT.parseNDigits)(n.length,r)}}validate(r,n){return n>=1&&n<=24}set(r,n,a){const i=a<=24?a%24:a;return r.setHours(i,0,0,0),r}}TS.Hour1To24Parser=uhe;var ES={};ES.MinuteParser=void 0;var che=Dt,dhe=Ne,KT=Se;class fhe extends dhe.Parser{constructor(){super(...arguments);J(this,"priority",60);J(this,"incompatibleTokens",["t","T"])}parse(r,n,a){switch(n){case"m":return(0,KT.parseNumericPattern)(che.numericPatterns.minute,r);case"mo":return a.ordinalNumber(r,{unit:"minute"});default:return(0,KT.parseNDigits)(n.length,r)}}validate(r,n){return n>=0&&n<=59}set(r,n,a){return r.setMinutes(a,0,0),r}}ES.MinuteParser=fhe;var MS={};MS.SecondParser=void 0;var hhe=Dt,mhe=Ne,XT=Se;class vhe extends mhe.Parser{constructor(){super(...arguments);J(this,"priority",50);J(this,"incompatibleTokens",["t","T"])}parse(r,n,a){switch(n){case"s":return(0,XT.parseNumericPattern)(hhe.numericPatterns.second,r);case"so":return a.ordinalNumber(r,{unit:"second"});default:return(0,XT.parseNDigits)(n.length,r)}}validate(r,n){return n>=0&&n<=59}set(r,n,a){return r.setSeconds(a,0),r}}MS.SecondParser=vhe;var jS={};jS.FractionOfSecondParser=void 0;var phe=Ne,ZT=Se;class ghe extends phe.Parser{constructor(){super(...arguments);J(this,"priority",30);J(this,"incompatibleTokens",["t","T"])}parse(r,n){const a=i=>Math.trunc(i*Math.pow(10,-n.length+3));return(0,ZT.mapValue)((0,ZT.parseNDigits)(n.length,r),a)}set(r,n,a){return r.setMilliseconds(a),r}}jS.FractionOfSecondParser=ghe;var DS={};DS.ISOTimezoneWithZParser=void 0;var yhe=Fe,bhe=mi,Kd=Dt,_he=Ne,Xd=Se;class whe extends _he.Parser{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","x"])}parse(r,n){switch(n){case"X":return(0,Xd.parseTimezonePattern)(Kd.timezonePatterns.basicOptionalMinutes,r);case"XX":return(0,Xd.parseTimezonePattern)(Kd.timezonePatterns.basic,r);case"XXXX":return(0,Xd.parseTimezonePattern)(Kd.timezonePatterns.basicOptionalSeconds,r);case"XXXXX":return(0,Xd.parseTimezonePattern)(Kd.timezonePatterns.extendedOptionalSeconds,r);case"XXX":default:return(0,Xd.parseTimezonePattern)(Kd.timezonePatterns.extended,r)}}set(r,n,a){return n.timestampIsSet?r:(0,yhe.constructFrom)(r,r.getTime()-(0,bhe.getTimezoneOffsetInMilliseconds)(r)-a)}}DS.ISOTimezoneWithZParser=whe;var IS={};IS.ISOTimezoneParser=void 0;var xhe=Fe,She=mi,Zd=Dt,Phe=Ne,Jd=Se;class $he extends Phe.Parser{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","X"])}parse(r,n){switch(n){case"x":return(0,Jd.parseTimezonePattern)(Zd.timezonePatterns.basicOptionalMinutes,r);case"xx":return(0,Jd.parseTimezonePattern)(Zd.timezonePatterns.basic,r);case"xxxx":return(0,Jd.parseTimezonePattern)(Zd.timezonePatterns.basicOptionalSeconds,r);case"xxxxx":return(0,Jd.parseTimezonePattern)(Zd.timezonePatterns.extendedOptionalSeconds,r);case"xxx":default:return(0,Jd.parseTimezonePattern)(Zd.timezonePatterns.extended,r)}}set(r,n,a){return n.timestampIsSet?r:(0,xhe.constructFrom)(r,r.getTime()-(0,She.getTimezoneOffsetInMilliseconds)(r)-a)}}IS.ISOTimezoneParser=$he;var kS={};kS.TimestampSecondsParser=void 0;var Ohe=Fe,Che=Ne,The=Se;class Ehe extends Che.Parser{constructor(){super(...arguments);J(this,"priority",40);J(this,"incompatibleTokens","*")}parse(r){return(0,The.parseAnyDigitsSigned)(r)}set(r,n,a){return[(0,Ohe.constructFrom)(r,a*1e3),{timestampIsSet:!0}]}}kS.TimestampSecondsParser=Ehe;var AS={};AS.TimestampMillisecondsParser=void 0;var Mhe=Fe,jhe=Ne,Dhe=Se;class Ihe extends jhe.Parser{constructor(){super(...arguments);J(this,"priority",20);J(this,"incompatibleTokens","*")}parse(r){return(0,Dhe.parseAnyDigitsSigned)(r)}set(r,n,a){return[(0,Mhe.constructFrom)(r,a),{timestampIsSet:!0}]}}AS.TimestampMillisecondsParser=Ihe;Jx.parsers=void 0;var khe=eS,Ahe=nS,Rhe=aS,Lhe=iS,Fhe=oS,Nhe=sS,zhe=lS,Bhe=uS,Whe=cS,Vhe=dS,Hhe=hS,Uhe=vS,Yhe=pS,Ghe=gS,qhe=yS,Qhe=bS,Khe=_S,Xhe=xS,Zhe=SS,Jhe=PS,eme=$S,tme=OS,rme=CS,nme=TS,ame=ES,ime=MS,ome=jS,sme=DS,lme=IS,ume=kS,cme=AS;Jx.parsers={G:new khe.EraParser,y:new Ahe.YearParser,Y:new Rhe.LocalWeekYearParser,R:new Lhe.ISOWeekYearParser,u:new Fhe.ExtendedYearParser,Q:new Nhe.QuarterParser,q:new zhe.StandAloneQuarterParser,M:new Bhe.MonthParser,L:new Whe.StandAloneMonthParser,w:new Vhe.LocalWeekParser,I:new Hhe.ISOWeekParser,d:new Uhe.DateParser,D:new Yhe.DayOfYearParser,E:new Ghe.DayParser,e:new qhe.LocalDayParser,c:new Qhe.StandAloneLocalDayParser,i:new Khe.ISODayParser,a:new Xhe.AMPMParser,b:new Zhe.AMPMMidnightParser,B:new Jhe.DayPeriodParser,h:new eme.Hour1to12Parser,H:new tme.Hour0to23Parser,K:new rme.Hour0To11Parser,k:new nme.Hour1To24Parser,m:new ame.MinuteParser,s:new ime.SecondParser,S:new ome.FractionOfSecondParser,X:new sme.ISOTimezoneWithZParser,x:new lme.ISOTimezoneParser,t:new ume.TimestampSecondsParser,T:new cme.TimestampMillisecondsParser};(function(e){Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return i.longFormatters}}),e.parse=p,Object.defineProperty(e,"parsers",{enumerable:!0,get:function(){return l.parsers}});var t=Fe,r=Qx,n=Rl,a=B,i=Vp,s=Gh,l=Jx,u=Io;const c=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f=/^'([^]*?)'?$/,h=/''/g,v=/\S/,b=/[a-zA-Z]/;function p(y,_,S,T){var ze,Pe,H,ae,ie,ge,$e,me;const I=(0,r.getDefaultOptions)(),A=(T==null?void 0:T.locale)??I.locale??n.defaultLocale,N=(T==null?void 0:T.firstWeekContainsDate)??((Pe=(ze=T==null?void 0:T.locale)==null?void 0:ze.options)==null?void 0:Pe.firstWeekContainsDate)??I.firstWeekContainsDate??((ae=(H=I.locale)==null?void 0:H.options)==null?void 0:ae.firstWeekContainsDate)??1,z=(T==null?void 0:T.weekStartsOn)??((ge=(ie=T==null?void 0:T.locale)==null?void 0:ie.options)==null?void 0:ge.weekStartsOn)??I.weekStartsOn??((me=($e=I.locale)==null?void 0:$e.options)==null?void 0:me.weekStartsOn)??0;if(_==="")return y===""?(0,a.toDate)(S):(0,t.constructFrom)(S,NaN);const q={firstWeekContainsDate:N,weekStartsOn:z,locale:A},Q=[new u.DateToSystemTimezoneSetter],ve=_.match(d).map(re=>{const oe=re[0];if(oe in i.longFormatters){const se=i.longFormatters[oe];return se(re,A.formatLong)}return re}).join("").match(c),Ee=[];for(let re of ve){!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(re)&&(0,s.warnOrThrowProtectedError)(re,_,y),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(re)&&(0,s.warnOrThrowProtectedError)(re,_,y);const oe=re[0],se=l.parsers[oe];if(se){const{incompatibleTokens:ft}=se;if(Array.isArray(ft)){const zt=Ee.find(wr=>ft.includes(wr.token)||wr.token===oe);if(zt)throw new RangeError(`The format string mustn't contain \`${zt.fullToken}\` and \`${re}\` at the same time`)}else if(se.incompatibleTokens==="*"&&Ee.length>0)throw new RangeError(`The format string mustn't contain \`${re}\` and any other token at the same time`);Ee.push({token:oe,fullToken:re});const gt=se.run(y,re,A.match,q);if(!gt)return(0,t.constructFrom)(S,NaN);Q.push(gt.setter),y=gt.rest}else{if(oe.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");if(re==="''"?re="'":oe==="'"&&(re=$(re)),y.indexOf(re)===0)y=y.slice(re.length);else return(0,t.constructFrom)(S,NaN)}}if(y.length>0&&v.test(y))return(0,t.constructFrom)(S,NaN);const nt=Q.map(re=>re.priority).sort((re,oe)=>oe-re).filter((re,oe,se)=>se.indexOf(re)===oe).map(re=>Q.filter(oe=>oe.priority===re).sort((oe,se)=>se.subPriority-oe.subPriority)).map(re=>re[0]);let rt=(0,a.toDate)(S);if(isNaN(rt.getTime()))return(0,t.constructFrom)(S,NaN);const Te={};for(const re of nt){if(!re.validate(rt,q))return(0,t.constructFrom)(S,NaN);const oe=re.set(rt,Te,q);Array.isArray(oe)?(rt=oe[0],Object.assign(Te,oe[1])):rt=oe}return(0,t.constructFrom)(S,rt)}function $(y){return y.match(f)[1].replace(h,"'")}})(Zx);xk.isMatch=hme;var dme=vi,fme=Zx;function hme(e,t,r){return(0,dme.isValid)((0,fme.parse)(e,t,new Date,r))}var Sk={};Sk.isMonday=vme;var mme=B;function vme(e){return(0,mme.toDate)(e).getDay()===1}var Pk={};Pk.isPast=gme;var pme=B;function gme(e){return+(0,pme.toDate)(e)i-s);return r>=n&&r<=a}var zk={},Kh={};Kh.subDays=gve;var pve=ya;function gve(e,t){return(0,pve.addDays)(e,-t)}zk.isYesterday=wve;var yve=_r,bve=Mc,_ve=Kh;function wve(e){return(0,bve.isSameDay)(e,(0,_ve.subDays)((0,yve.constructNow)(e),1))}var Bk={};Bk.lastDayOfDecade=Sve;var xve=B;function Sve(e){const t=(0,xve.toDate)(e),r=t.getFullYear(),n=9+Math.floor(r/10)*10;return t.setFullYear(n+1,0,0),t.setHours(0,0,0,0),t}var Wk={},US={};US.lastDayOfWeek=Ove;var Pve=B,$ve=Zt;function Ove(e,t){var l,u,c,d;const r=(0,$ve.getDefaultOptions)(),n=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,a=(0,Pve.toDate)(e),i=a.getDay(),s=(i{if(p==="''")return"'";const $=p[0];if($==="'")return c(p);const y=n.lightFormatters[$];if(y)return y(h,p);if($.match(l))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return p}).join(""):""}function c(d){const f=d.match(i);return f?f[1].replace(s,"'"):d}})(Yk);var Gk={};Gk.milliseconds=Lve;var sE=K;function Lve({years:e,months:t,weeks:r,days:n,hours:a,minutes:i,seconds:s}){let l=0;e&&(l+=e*sE.daysInYear),t&&(l+=t*(sE.daysInYear/12)),r&&(l+=r*7),n&&(l+=n);let u=l*24*60*60;return a&&(u+=a*60*60),i&&(u+=i*60),s&&(u+=s),Math.trunc(u*1e3)}var qk={};qk.millisecondsToHours=Nve;var Fve=K;function Nve(e){const t=e/Fve.millisecondsInHour;return Math.trunc(t)}var Qk={};Qk.millisecondsToMinutes=Bve;var zve=K;function Bve(e){const t=e/zve.millisecondsInMinute;return Math.trunc(t)}var Kk={};Kk.millisecondsToSeconds=Vve;var Wve=K;function Vve(e){const t=e/Wve.millisecondsInSecond;return Math.trunc(t)}var Xk={};Xk.minutesToHours=Uve;var Hve=K;function Uve(e){const t=e/Hve.minutesInHour;return Math.trunc(t)}var Zk={};Zk.minutesToMilliseconds=Gve;var Yve=K;function Gve(e){return Math.trunc(e*Yve.millisecondsInMinute)}var Jk={};Jk.minutesToSeconds=Qve;var qve=K;function Qve(e){return Math.trunc(e*qve.secondsInMinute)}var e6={};e6.monthsToQuarters=Xve;var Kve=K;function Xve(e){const t=e/Kve.monthsInQuarter;return Math.trunc(t)}var t6={};t6.monthsToYears=Jve;var Zve=K;function Jve(e){const t=e/Zve.monthsInYear;return Math.trunc(t)}var gi={};gi.nextDay=r0e;var e0e=ya,t0e=qh;function r0e(e,t){let r=t-(0,t0e.getDay)(e);return r<=0&&(r+=7),(0,e0e.addDays)(e,r)}var r6={};r6.nextFriday=a0e;var n0e=gi;function a0e(e){return(0,n0e.nextDay)(e,5)}var n6={};n6.nextMonday=o0e;var i0e=gi;function o0e(e){return(0,i0e.nextDay)(e,1)}var a6={};a6.nextSaturday=l0e;var s0e=gi;function l0e(e){return(0,s0e.nextDay)(e,6)}var i6={};i6.nextSunday=c0e;var u0e=gi;function c0e(e){return(0,u0e.nextDay)(e,0)}var o6={};o6.nextThursday=f0e;var d0e=gi;function f0e(e){return(0,d0e.nextDay)(e,4)}var s6={};s6.nextTuesday=m0e;var h0e=gi;function m0e(e){return(0,h0e.nextDay)(e,2)}var l6={};l6.nextWednesday=p0e;var v0e=gi;function p0e(e){return(0,v0e.nextDay)(e,3)}var u6={};u6.parseISO=g0e;var m0=K;function g0e(e,t){const r=(t==null?void 0:t.additionalDigits)??2,n=w0e(e);let a;if(n.date){const u=x0e(n.date,r);a=S0e(u.restDateString,u.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const i=a.getTime();let s=0,l;if(n.time&&(s=P0e(n.time),isNaN(s)))return new Date(NaN);if(n.timezone){if(l=$0e(n.timezone),isNaN(l))return new Date(NaN)}else{const u=new Date(i+s),c=new Date(0);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return new Date(i+s+l)}const Hm={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},y0e=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,b0e=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_0e=/^([+-])(\d{2})(?::?(\d{2}))?$/;function w0e(e){const t={},r=e.split(Hm.dateTimeDelimiter);let n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Hm.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Hm.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const a=Hm.timezone.exec(n);a?(t.time=n.replace(a[1],""),t.timezone=a[1]):t.time=n}return t}function x0e(e,t){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};const a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((n[1]||n[2]).length)}}function S0e(e,t){if(t===null)return new Date(NaN);const r=e.match(y0e);if(!r)return new Date(NaN);const n=!!r[4],a=ef(r[1]),i=ef(r[2])-1,s=ef(r[3]),l=ef(r[4]),u=ef(r[5])-1;if(n)return M0e(t,l,u)?O0e(t,l,u):new Date(NaN);{const c=new Date(0);return!T0e(t,i,s)||!E0e(t,a)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(a,s)),c)}}function ef(e){return e?parseInt(e):1}function P0e(e){const t=e.match(b0e);if(!t)return NaN;const r=q1(t[1]),n=q1(t[2]),a=q1(t[3]);return j0e(r,n,a)?r*m0.millisecondsInHour+n*m0.millisecondsInMinute+a*1e3:NaN}function q1(e){return e&&parseFloat(e.replace(",","."))||0}function $0e(e){if(e==="Z")return 0;const t=e.match(_0e);if(!t)return 0;const r=t[1]==="+"?-1:1,n=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return D0e(n,a)?r*(n*m0.millisecondsInHour+a*m0.millisecondsInMinute):NaN}function O0e(e,t,r){const n=new Date(0);n.setUTCFullYear(e,0,4);const a=n.getUTCDay()||7,i=(t-1)*7+r+1-a;return n.setUTCDate(n.getUTCDate()+i),n}const C0e=[31,null,31,30,31,30,31,31,30,31,30,31];function c6(e){return e%400===0||e%4===0&&e%100!==0}function T0e(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(C0e[t]||(c6(e)?29:28))}function E0e(e,t){return t>=1&&t<=(c6(e)?366:365)}function M0e(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function j0e(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function D0e(e,t){return t>=0&&t<=59}var d6={};d6.parseJSON=I0e;function I0e(e){const t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*(t[8]=="-"?-1:1),+t[5]-(+t[10]||0)*(t[8]=="-"?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}var yi={};yi.previousDay=R0e;var k0e=qh,A0e=Kh;function R0e(e,t){let r=(0,k0e.getDay)(e)-t;return r<=0&&(r+=7),(0,A0e.subDays)(e,r)}var f6={};f6.previousFriday=F0e;var L0e=yi;function F0e(e){return(0,L0e.previousDay)(e,5)}var h6={};h6.previousMonday=z0e;var N0e=yi;function z0e(e){return(0,N0e.previousDay)(e,1)}var m6={};m6.previousSaturday=W0e;var B0e=yi;function W0e(e){return(0,B0e.previousDay)(e,6)}var v6={};v6.previousSunday=H0e;var V0e=yi;function H0e(e){return(0,V0e.previousDay)(e,0)}var p6={};p6.previousThursday=Y0e;var U0e=yi;function Y0e(e){return(0,U0e.previousDay)(e,4)}var g6={};g6.previousTuesday=q0e;var G0e=yi;function q0e(e){return(0,G0e.previousDay)(e,2)}var y6={};y6.previousWednesday=K0e;var Q0e=yi;function K0e(e){return(0,Q0e.previousDay)(e,3)}var b6={};b6.quartersToMonths=Z0e;var X0e=K;function Z0e(e){return Math.trunc(e*X0e.monthsInQuarter)}var _6={};_6.quartersToYears=epe;var J0e=K;function epe(e){const t=e/J0e.quartersInYear;return Math.trunc(t)}var w6={};w6.roundToNearestHours=npe;var tpe=pi,lE=Fe,rpe=B;function npe(e,t){const r=(t==null?void 0:t.nearestTo)??1;if(r<1||r>12)return(0,lE.constructFrom)(e,NaN);const n=(0,rpe.toDate)(e),a=n.getMinutes()/60,i=n.getSeconds()/60/60,s=n.getMilliseconds()/1e3/60/60,l=n.getHours()+a+i+s,u=(t==null?void 0:t.roundingMethod)??"round",d=(0,tpe.getRoundingMethod)(u)(l/r)*r,f=(0,lE.constructFrom)(e,n);return f.setHours(d,0,0,0),f}var x6={};x6.roundToNearestMinutes=ope;var ape=pi,uE=Fe,ipe=B;function ope(e,t){const r=(t==null?void 0:t.nearestTo)??1;if(r<1||r>30)return(0,uE.constructFrom)(e,NaN);const n=(0,ipe.toDate)(e),a=n.getSeconds()/60,i=n.getMilliseconds()/1e3/60,s=n.getMinutes()+a+i,l=(t==null?void 0:t.roundingMethod)??"round",c=(0,ape.getRoundingMethod)(l)(s/r)*r,d=(0,uE.constructFrom)(e,n);return d.setMinutes(c,0,0),d}var S6={};S6.secondsToHours=lpe;var spe=K;function lpe(e){const t=e/spe.secondsInHour;return Math.trunc(t)}var P6={};P6.secondsToMilliseconds=cpe;var upe=K;function cpe(e){return e*upe.millisecondsInSecond}var $6={};$6.secondsToMinutes=fpe;var dpe=K;function fpe(e){const t=e/dpe.secondsInMinute;return Math.trunc(t)}var O6={},Up={};Up.setMonth=ppe;var hpe=Fe,mpe=Gx,vpe=B;function ppe(e,t){const r=(0,vpe.toDate)(e),n=r.getFullYear(),a=r.getDate(),i=(0,hpe.constructFrom)(e,0);i.setFullYear(n,t,15),i.setHours(0,0,0,0);const s=(0,mpe.getDaysInMonth)(i);return r.setMonth(t,Math.min(a,s)),r}O6.set=_pe;var gpe=Fe,ype=Up,bpe=B;function _pe(e,t){let r=(0,bpe.toDate)(e);return isNaN(+r)?(0,gpe.constructFrom)(e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=(0,ype.setMonth)(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}var C6={};C6.setDate=xpe;var wpe=B;function xpe(e,t){const r=(0,wpe.toDate)(e);return r.setDate(t),r}var T6={};T6.setDayOfYear=Ppe;var Spe=B;function Ppe(e,t){const r=(0,Spe.toDate)(e);return r.setMonth(0),r.setDate(t),r}var E6={};E6.setDefaultOptions=$pe;var cE=Zt;function $pe(e){const t={},r=(0,cE.getDefaultOptions)();for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]===void 0?delete t[n]:t[n]=e[n]);(0,cE.setDefaultOptions)(t)}var M6={};M6.setHours=Cpe;var Ope=B;function Cpe(e,t){const r=(0,Ope.toDate)(e);return r.setHours(t),r}var j6={};j6.setMilliseconds=Epe;var Tpe=B;function Epe(e,t){const r=(0,Tpe.toDate)(e);return r.setMilliseconds(t),r}var D6={};D6.setMinutes=jpe;var Mpe=B;function jpe(e,t){const r=(0,Mpe.toDate)(e);return r.setMinutes(t),r}var I6={};I6.setQuarter=kpe;var Dpe=Up,Ipe=B;function kpe(e,t){const r=(0,Ipe.toDate)(e),n=Math.trunc(r.getMonth()/3)+1,a=t-n;return(0,Dpe.setMonth)(r,r.getMonth()+a*3)}var k6={};k6.setSeconds=Rpe;var Ape=B;function Rpe(e,t){const r=(0,Ape.toDate)(e);return r.setSeconds(t),r}var A6={};A6.setWeekYear=Bpe;var Lpe=Fe,Fpe=hi,dE=Bp,Npe=B,zpe=Zt;function Bpe(e,t,r){var u,c,d,f;const n=(0,zpe.getDefaultOptions)(),a=(r==null?void 0:r.firstWeekContainsDate)??((c=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1;let i=(0,Npe.toDate)(e);const s=(0,Fpe.differenceInCalendarDays)(i,(0,dE.startOfWeekYear)(i,r)),l=(0,Lpe.constructFrom)(e,0);return l.setFullYear(t,0,a),l.setHours(0,0,0,0),i=(0,dE.startOfWeekYear)(l,r),i.setDate(i.getDate()+s),i}var R6={};R6.setYear=Hpe;var Wpe=Fe,Vpe=B;function Hpe(e,t){const r=(0,Vpe.toDate)(e);return isNaN(+r)?(0,Wpe.constructFrom)(e,NaN):(r.setFullYear(t),r)}var L6={};L6.startOfDecade=Ype;var Upe=B;function Ype(e){const t=(0,Upe.toDate)(e),r=t.getFullYear(),n=Math.floor(r/10)*10;return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}var F6={};F6.startOfToday=qpe;var Gpe=zh;function qpe(){return(0,Gpe.startOfDay)(Date.now())}var N6={};N6.startOfTomorrow=Qpe;function Qpe(){const e=new Date,t=e.getFullYear(),r=e.getMonth(),n=e.getDate(),a=new Date(0);return a.setFullYear(t,r,n+1),a.setHours(0,0,0,0),a}var z6={};z6.startOfYesterday=Kpe;function Kpe(){const e=new Date,t=e.getFullYear(),r=e.getMonth(),n=e.getDate(),a=new Date(0);return a.setFullYear(t,r,n-1),a.setHours(0,0,0,0),a}var B6={},YS={};YS.subMonths=Zpe;var Xpe=Cc;function Zpe(e,t){return(0,Xpe.addMonths)(e,-t)}B6.sub=rge;var Jpe=Kh,ege=YS,tge=Fe;function rge(e,t){const{years:r=0,months:n=0,weeks:a=0,days:i=0,hours:s=0,minutes:l=0,seconds:u=0}=t,c=(0,ege.subMonths)(e,n+r*12),d=(0,Jpe.subDays)(c,i+a*7),f=l+s*60,v=(u+f*60)*1e3;return(0,tge.constructFrom)(e,d.getTime()-v)}var W6={};W6.subBusinessDays=age;var nge=px;function age(e,t){return(0,nge.addBusinessDays)(e,-t)}var V6={};V6.subHours=oge;var ige=Pp;function oge(e,t){return(0,ige.addHours)(e,-t)}var H6={};H6.subMilliseconds=lge;var sge=Tc;function lge(e,t){return(0,sge.addMilliseconds)(e,-t)}var U6={};U6.subMinutes=cge;var uge=$p;function cge(e,t){return(0,uge.addMinutes)(e,-t)}var Y6={};Y6.subQuarters=fge;var dge=Op;function fge(e,t){return(0,dge.addQuarters)(e,-t)}var G6={};G6.subSeconds=mge;var hge=wx;function mge(e,t){return(0,hge.addSeconds)(e,-t)}var q6={};q6.subWeeks=pge;var vge=Bh;function pge(e,t){return(0,vge.addWeeks)(e,-t)}var Q6={};Q6.subYears=yge;var gge=xx;function yge(e,t){return(0,gge.addYears)(e,-t)}var K6={};K6.weeksToDays=_ge;var bge=K;function _ge(e){return Math.trunc(e*bge.daysInWeek)}var X6={};X6.yearsToDays=xge;var wge=K;function xge(e){return Math.trunc(e*wge.daysInYear)}var Z6={};Z6.yearsToMonths=Pge;var Sge=K;function Pge(e){return Math.trunc(e*Sge.monthsInYear)}var J6={};J6.yearsToQuarters=Oge;var $ge=K;function Oge(e){return Math.trunc(e*$ge.quartersInYear)}(function(e){var t=vx;Object.keys(t).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===t[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[o]}})});var r=px;Object.keys(r).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===r[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[o]}})});var n=ya;Object.keys(n).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===n[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return n[o]}})});var a=Pp;Object.keys(a).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===a[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return a[o]}})});var i=bx;Object.keys(i).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===i[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return i[o]}})});var s=Tc;Object.keys(s).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===s[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return s[o]}})});var l=$p;Object.keys(l).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===l[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return l[o]}})});var u=Cc;Object.keys(u).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===u[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return u[o]}})});var c=Op;Object.keys(c).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===c[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return c[o]}})});var d=wx;Object.keys(d).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===d[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return d[o]}})});var f=Bh;Object.keys(f).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===f[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return f[o]}})});var h=xx;Object.keys(h).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===h[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return h[o]}})});var v=aI;Object.keys(v).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===v[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return v[o]}})});var b=iI;Object.keys(b).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===b[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return b[o]}})});var p=oI;Object.keys(p).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===p[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return p[o]}})});var $=sI;Object.keys($).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===$[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return $[o]}})});var y=Al;Object.keys(y).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===y[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return y[o]}})});var _=lI;Object.keys(_).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===_[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return _[o]}})});var S=Fe;Object.keys(S).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===S[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return S[o]}})});var T=_r;Object.keys(T).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===T[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return T[o]}})});var I=uI;Object.keys(I).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===I[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return I[o]}})});var A=cI;Object.keys(A).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===A[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return A[o]}})});var N=hi;Object.keys(N).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===N[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return N[o]}})});var z=Ox;Object.keys(z).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===z[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return z[o]}})});var q=dI;Object.keys(q).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===q[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return q[o]}})});var Q=Cp;Object.keys(Q).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Q[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Q[o]}})});var ve=Cx;Object.keys(ve).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ve[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ve[o]}})});var Ee=Tp;Object.keys(Ee).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ee[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ee[o]}})});var nt=Ep;Object.keys(nt).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===nt[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return nt[o]}})});var rt=Mp;Object.keys(rt).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===rt[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return rt[o]}})});var Te=jp;Object.keys(Te).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Te[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Te[o]}})});var ze=fI;Object.keys(ze).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ze[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ze[o]}})});var Pe=Wh;Object.keys(Pe).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Pe[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Pe[o]}})});var H=Dp;Object.keys(H).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===H[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return H[o]}})});var ae=Vh;Object.keys(ae).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ae[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ae[o]}})});var ie=hI;Object.keys(ie).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ie[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ie[o]}})});var ge=Hh;Object.keys(ge).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ge[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ge[o]}})});var $e=mI;Object.keys($e).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===$e[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return $e[o]}})});var me=jx;Object.keys(me).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===me[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return me[o]}})});var re=Dx;Object.keys(re).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===re[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return re[o]}})});var oe=vI;Object.keys(oe).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===oe[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return oe[o]}})});var se=pI;Object.keys(se).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===se[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return se[o]}})});var ft=gI;Object.keys(ft).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ft[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ft[o]}})});var gt=yI;Object.keys(gt).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===gt[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return gt[o]}})});var zt=bI;Object.keys(zt).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===zt[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return zt[o]}})});var wr=Lp;Object.keys(wr).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===wr[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return wr[o]}})});var Hn=_I;Object.keys(Hn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Hn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Hn[o]}})});var _n=wI;Object.keys(_n).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===_n[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return _n[o]}})});var _a=xI;Object.keys(_a).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===_a[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return _a[o]}})});var wn=Ip;Object.keys(wn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===wn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return wn[o]}})});var wa=SI;Object.keys(wa).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===wa[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return wa[o]}})});var Bt=PI;Object.keys(Bt).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Bt[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Bt[o]}})});var xr=$I;Object.keys(xr).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===xr[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return xr[o]}})});var Jt=OI;Object.keys(Jt).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Jt[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Jt[o]}})});var ur=CI;Object.keys(ur).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ur[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ur[o]}})});var Sr=kp;Object.keys(Sr).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Sr[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Sr[o]}})});var Un=TI;Object.keys(Un).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Un[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Un[o]}})});var xn=EI;Object.keys(xn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===xn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return xn[o]}})});var cr=MI;Object.keys(cr).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===cr[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return cr[o]}})});var xa=jI;Object.keys(xa).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===xa[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return xa[o]}})});var Sa=kx;Object.keys(Sa).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Sa[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Sa[o]}})});var bi=Ix;Object.keys(bi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===bi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return bi[o]}})});var _i=DI;Object.keys(_i).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===_i[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return _i[o]}})});var Sn=Ax;Object.keys(Sn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Sn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Sn[o]}})});var Pa=Hx;Object.keys(Pa).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Pa[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Pa[o]}})});var $a=Ux;Object.keys($a).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===$a[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return $a[o]}})});var wi=FI;Object.keys(wi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===wi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return wi[o]}})});var xi=NI;Object.keys(xi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===xi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return xi[o]}})});var Si=zI;Object.keys(Si).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Si[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Si[o]}})});var Pi=BI;Object.keys(Pi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Pi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Pi[o]}})});var Fr=WI;Object.keys(Fr).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Fr[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Fr[o]}})});var Yn=VI;Object.keys(Yn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Yn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Yn[o]}})});var $i=HI;Object.keys($i).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===$i[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return $i[o]}})});var Oa=UI;Object.keys(Oa).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Oa[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Oa[o]}})});var qo=YI;Object.keys(qo).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===qo[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return qo[o]}})});var Oi=GI;Object.keys(Oi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Oi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Oi[o]}})});var Pn=Yx;Object.keys(Pn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Pn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Pn[o]}})});var Qo=qh;Object.keys(Qo).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Qo[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Qo[o]}})});var Nr=Vx;Object.keys(Nr).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Nr[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Nr[o]}})});var Ko=Gx;Object.keys(Ko).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ko[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ko[o]}})});var Xo=qI;Object.keys(Xo).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Xo[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Xo[o]}})});var Zo=QI;Object.keys(Zo).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Zo[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Zo[o]}})});var Jo=Qx;Object.keys(Jo).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Jo[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Jo[o]}})});var es=KI;Object.keys(es).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===es[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return es[o]}})});var dr=Kx;Object.keys(dr).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===dr[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return dr[o]}})});var ts=Np;Object.keys(ts).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ts[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ts[o]}})});var rs=Go;Object.keys(rs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===rs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return rs[o]}})});var Ci=XI;Object.keys(Ci).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ci[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ci[o]}})});var Ti=ZI;Object.keys(Ti).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ti[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ti[o]}})});var ns=JI;Object.keys(ns).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ns[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ns[o]}})});var rn=ek;Object.keys(rn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===rn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return rn[o]}})});var as=tk;Object.keys(as).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===as[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return as[o]}})});var Gn=Tx;Object.keys(Gn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Gn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Gn[o]}})});var is=rk;Object.keys(is).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===is[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return is[o]}})});var Ei=nk;Object.keys(Ei).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ei[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ei[o]}})});var os=ak;Object.keys(os).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===os[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return os[o]}})});var nn=zp;Object.keys(nn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===nn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return nn[o]}})});var ss=ik;Object.keys(ss).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ss[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ss[o]}})});var Mi=Yh;Object.keys(Mi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Mi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Mi[o]}})});var ls=ok;Object.keys(ls).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ls[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ls[o]}})});var ji=sk;Object.keys(ji).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ji[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ji[o]}})});var us=lk;Object.keys(us).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===us[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return us[o]}})});var Di=uk;Object.keys(Di).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Di[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Di[o]}})});var Ca=ck;Object.keys(Ca).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ca[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ca[o]}})});var cs=dk;Object.keys(cs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===cs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return cs[o]}})});var $n=fk;Object.keys($n).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===$n[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return $n[o]}})});var Ta=hk;Object.keys(Ta).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ta[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ta[o]}})});var ds=mk;Object.keys(ds).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ds[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ds[o]}})});var qn=vk;Object.keys(qn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===qn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return qn[o]}})});var Ii=pk;Object.keys(Ii).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ii[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ii[o]}})});var fs=$x;Object.keys(fs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===fs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return fs[o]}})});var hs=gk;Object.keys(hs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===hs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return hs[o]}})});var Ea=yk;Object.keys(Ea).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ea[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ea[o]}})});var zr=bk;Object.keys(zr).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===zr[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return zr[o]}})});var Ma=_k;Object.keys(Ma).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ma[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ma[o]}})});var an=wk;Object.keys(an).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===an[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return an[o]}})});var ms=Mx;Object.keys(ms).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ms[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ms[o]}})});var vs=qx;Object.keys(vs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===vs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return vs[o]}})});var ps=xk;Object.keys(ps).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ps[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ps[o]}})});var gs=Sk;Object.keys(gs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===gs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return gs[o]}})});var ys=Pk;Object.keys(ys).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ys[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ys[o]}})});var ki=Mc;Object.keys(ki).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ki[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ki[o]}})});var Ai=RS;Object.keys(Ai).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ai[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ai[o]}})});var bs=FS;Object.keys(bs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===bs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return bs[o]}})});var Qn=$k;Object.keys(Qn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Qn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Qn[o]}})});var ja=NS;Object.keys(ja).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ja[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ja[o]}})});var _s=zS;Object.keys(_s).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===_s[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return _s[o]}})});var Ri=BS;Object.keys(Ri).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ri[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ri[o]}})});var Da=WS;Object.keys(Da).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Da[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Da[o]}})});var ws=Hp;Object.keys(ws).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ws[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ws[o]}})});var xs=HS;Object.keys(xs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===xs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return xs[o]}})});var Ss=gx;Object.keys(Ss).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ss[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ss[o]}})});var Li=yx;Object.keys(Li).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Li[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Li[o]}})});var Ps=Ok;Object.keys(Ps).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ps[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ps[o]}})});var $s=Ck;Object.keys($s).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===$s[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return $s[o]}})});var Os=Tk;Object.keys(Os).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Os[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Os[o]}})});var Ia=Ek;Object.keys(Ia).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ia[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ia[o]}})});var Cs=Mk;Object.keys(Cs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Cs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Cs[o]}})});var Ts=jk;Object.keys(Ts).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ts[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ts[o]}})});var Es=Dk;Object.keys(Es).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Es[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Es[o]}})});var Kn=Ik;Object.keys(Kn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Kn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Kn[o]}})});var ka=kk;Object.keys(ka).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ka[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ka[o]}})});var Xn=Ak;Object.keys(Xn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Xn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Xn[o]}})});var Zn=Rk;Object.keys(Zn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Zn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Zn[o]}})});var Ms=Lk;Object.keys(Ms).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ms[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ms[o]}})});var On=vi;Object.keys(On).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===On[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return On[o]}})});var Pr=Fk;Object.keys(Pr).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Pr[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Pr[o]}})});var Fi=Nh;Object.keys(Fi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Fi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Fi[o]}})});var $r=Nk;Object.keys($r).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===$r[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return $r[o]}})});var Cn=zk;Object.keys(Cn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Cn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Cn[o]}})});var Aa=Bk;Object.keys(Aa).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Aa[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Aa[o]}})});var Jn=Wk;Object.keys(Jn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Jn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Jn[o]}})});var js=Vk;Object.keys(js).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===js[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return js[o]}})});var Ra=Xx;Object.keys(Ra).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ra[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ra[o]}})});var on=Hk;Object.keys(on).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===on[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return on[o]}})});var Ds=US;Object.keys(Ds).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ds[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ds[o]}})});var Ni=Uk;Object.keys(Ni).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ni[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ni[o]}})});var Is=Yk;Object.keys(Is).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Is[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Is[o]}})});var O=Sx;Object.keys(O).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===O[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return O[o]}})});var D=Gk;Object.keys(D).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===D[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return D[o]}})});var F=qk;Object.keys(F).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===F[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return F[o]}})});var Z=Qk;Object.keys(Z).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Z[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Z[o]}})});var pe=Kk;Object.keys(pe).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===pe[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return pe[o]}})});var Re=Px;Object.keys(Re).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Re[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Re[o]}})});var Be=Xk;Object.keys(Be).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Be[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Be[o]}})});var we=Zk;Object.keys(we).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===we[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return we[o]}})});var qe=Jk;Object.keys(qe).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===qe[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return qe[o]}})});var Wt=e6;Object.keys(Wt).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Wt[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Wt[o]}})});var Et=t6;Object.keys(Et).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Et[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Et[o]}})});var Tn=gi;Object.keys(Tn).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Tn[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Tn[o]}})});var La=r6;Object.keys(La).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===La[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return La[o]}})});var Fa=n6;Object.keys(Fa).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Fa[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Fa[o]}})});var zi=a6;Object.keys(zi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===zi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return zi[o]}})});var Fl=i6;Object.keys(Fl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Fl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Fl[o]}})});var jc=o6;Object.keys(jc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===jc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return jc[o]}})});var Dc=s6;Object.keys(Dc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Dc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Dc[o]}})});var Ic=l6;Object.keys(Ic).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ic[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ic[o]}})});var kc=Zx;Object.keys(kc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===kc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return kc[o]}})});var Ac=u6;Object.keys(Ac).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ac[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ac[o]}})});var Rc=d6;Object.keys(Rc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Rc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Rc[o]}})});var Lc=yi;Object.keys(Lc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Lc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Lc[o]}})});var Fc=f6;Object.keys(Fc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Fc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Fc[o]}})});var Nc=h6;Object.keys(Nc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Nc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Nc[o]}})});var zc=m6;Object.keys(zc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===zc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return zc[o]}})});var Nl=v6;Object.keys(Nl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Nl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Nl[o]}})});var Bc=p6;Object.keys(Bc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Bc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Bc[o]}})});var Wc=g6;Object.keys(Wc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Wc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Wc[o]}})});var Vc=y6;Object.keys(Vc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Vc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Vc[o]}})});var Hc=b6;Object.keys(Hc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Hc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Hc[o]}})});var zl=_6;Object.keys(zl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===zl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return zl[o]}})});var Uc=w6;Object.keys(Uc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Uc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Uc[o]}})});var Yc=x6;Object.keys(Yc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Yc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Yc[o]}})});var Gc=S6;Object.keys(Gc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Gc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Gc[o]}})});var qc=P6;Object.keys(qc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===qc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return qc[o]}})});var Qc=$6;Object.keys(Qc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Qc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Qc[o]}})});var Kc=O6;Object.keys(Kc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Kc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Kc[o]}})});var Bl=C6;Object.keys(Bl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Bl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Bl[o]}})});var Bi=Qh;Object.keys(Bi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Bi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Bi[o]}})});var ks=T6;Object.keys(ks).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ks[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ks[o]}})});var Wl=E6;Object.keys(Wl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Wl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Wl[o]}})});var Xc=M6;Object.keys(Xc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Xc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Xc[o]}})});var Vl=wS;Object.keys(Vl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Vl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Vl[o]}})});var Zc=mS;Object.keys(Zc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Zc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Zc[o]}})});var Hl=_x;Object.keys(Hl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Hl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Hl[o]}})});var Jc=j6;Object.keys(Jc).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Jc[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Jc[o]}})});var Na=D6;Object.keys(Na).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Na[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Na[o]}})});var ed=Up;Object.keys(ed).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ed[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ed[o]}})});var td=I6;Object.keys(td).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===td[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return td[o]}})});var rd=k6;Object.keys(rd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===rd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return rd[o]}})});var nd=fS;Object.keys(nd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===nd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return nd[o]}})});var ad=A6;Object.keys(ad).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ad[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ad[o]}})});var id=R6;Object.keys(id).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===id[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return id[o]}})});var od=zh;Object.keys(od).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===od[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return od[o]}})});var sd=L6;Object.keys(sd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===sd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return sd[o]}})});var ld=LS;Object.keys(ld).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ld[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ld[o]}})});var Ul=ba;Object.keys(Ul).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ul[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ul[o]}})});var Yl=Ec;Object.keys(Yl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Yl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Yl[o]}})});var ud=Ap;Object.keys(ud).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ud[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ud[o]}})});var cd=Uh;Object.keys(cd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===cd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return cd[o]}})});var dd=Rp;Object.keys(dd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===dd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return dd[o]}})});var As=VS;Object.keys(As).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===As[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return As[o]}})});var Gl=F6;Object.keys(Gl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Gl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Gl[o]}})});var ql=N6;Object.keys(ql).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===ql[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return ql[o]}})});var Ql=Vn;Object.keys(Ql).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ql[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ql[o]}})});var Kl=Bp;Object.keys(Kl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Kl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Kl[o]}})});var Wi=Fp;Object.keys(Wi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Wi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Wi[o]}})});var fd=z6;Object.keys(fd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===fd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return fd[o]}})});var Xl=B6;Object.keys(Xl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Xl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Xl[o]}})});var hd=W6;Object.keys(hd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===hd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return hd[o]}})});var md=Kh;Object.keys(md).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===md[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return md[o]}})});var vd=V6;Object.keys(vd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===vd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return vd[o]}})});var pd=Ex;Object.keys(pd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===pd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return pd[o]}})});var gd=H6;Object.keys(gd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===gd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return gd[o]}})});var Rs=U6;Object.keys(Rs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Rs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Rs[o]}})});var Vi=YS;Object.keys(Vi).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Vi[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Vi[o]}})});var Ls=Y6;Object.keys(Ls).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ls[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ls[o]}})});var yd=G6;Object.keys(yd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===yd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return yd[o]}})});var bd=q6;Object.keys(bd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===bd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return bd[o]}})});var Fs=Q6;Object.keys(Fs).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Fs[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Fs[o]}})});var _d=B;Object.keys(_d).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===_d[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return _d[o]}})});var wd=tS;Object.keys(wd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===wd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return wd[o]}})});var xd=K6;Object.keys(xd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===xd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return xd[o]}})});var Zl=X6;Object.keys(Zl).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Zl[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Zl[o]}})});var Ns=Z6;Object.keys(Ns).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Ns[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Ns[o]}})});var Sd=J6;Object.keys(Sd).forEach(function(o){o==="default"||o==="__esModule"||o in e&&e[o]===Sd[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return Sd[o]}})})})(tI);Object.defineProperty(Sp,"__esModule",{value:!0});var Cge=Yne,hr=tI,Pl=P,bt=w;function Tge(e){return e&&e.__esModule?e:{default:e}}var v0=Tge(Cge);const Rf="react-activity-calendar",Q1=8,eA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ege={months:eA,weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],totalCount:"{{count}} activities in {{year}}",legend:{less:"Less",more:"More"}};function Mge(){const[e,t]=Pl.useState("light"),r=n=>{t(n.matches?"dark":"light")};return Pl.useEffect(()=>{const n=window.matchMedia("(prefers-color-scheme: dark)");return t(n.matches?"dark":"light"),n.addEventListener("change",r),()=>{n.removeEventListener("change",r)}},[]),e}function jge(){const[e,t]=Pl.useState(!1);return Pl.useEffect(()=>{t(!0)},[]),e}const Dge="(prefers-reduced-motion: reduce)";function Ige(){const[e,t]=Pl.useState(!0);return Pl.useEffect(()=>{const r=window.matchMedia(Dge);t(r.matches);const n=a=>{t(a.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),e}function kge(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",r==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var Age=`.styles-module_container__GBNxC { + width: max-content; /* Calendar should not grow */ + max-width: 100%; /* Do not remove - flexbox parents */ + display: flex; + flex-direction: column; + gap: 8px; +} + +.styles-module_container__GBNxC rect { + stroke: rgba(0, 0, 0, 0.08); + stroke-width: 1px; + shape-rendering: geometricPrecision; +} + +@media (prefers-color-scheme: dark) { + .styles-module_container__GBNxC rect { + stroke: rgba(255, 255, 255, 0.04); + } +} + +.styles-module_scrollContainer__-bJC8 { + max-width: 100%; + overflow-x: auto; + overflow-y: hidden; +} + +.styles-module_calendar__sT1ND { + display: block; /* SVGs are inline-block by default */ + overflow: visible; /* Weekday labels are rendered left of the container */ +} + +.styles-module_calendar__sT1ND text { + fill: currentColor; +} + +.styles-module_footer__ZQ-Bl { + display: flex; + flex-wrap: wrap; + gap: 4px 16px; + white-space: nowrap; +} + +.styles-module_legendColors__kFY2e { + margin-left: auto; + display: flex; + align-items: center; + gap: 3px; +} + +@keyframes styles-module_loadingAnimation__V0w3h { + 0% { + fill: var(--react-activity-calendar-loading); + } + 50% { + fill: var(--react-activity-calendar-loading-active); + } + 100% { + fill: var(--react-activity-calendar-loading); + } +} +`,yu={container:"styles-module_container__GBNxC",scrollContainer:"styles-module_scrollContainer__-bJC8",calendar:"styles-module_calendar__sT1ND",footer:"styles-module_footer__ZQ-Bl",legendColors:"styles-module_legendColors__kFY2e",loadingAnimation:"styles-module_loadingAnimation__V0w3h"};kge(Age);function Rge(e,t=0){if(e.length===0)return[];const r=Lge(e),n=r[0],a=hr.parseISO(n.date),i=hr.getDay(a)===t?a:hr.subWeeks(hr.nextDay(a,t),1),s=[...Array(hr.differenceInCalendarDays(a,i)).fill(void 0),...r],l=Math.ceil(s.length/7);return Array(l).fill(void 0).map((u,c)=>s.slice(c*7,c*7+7))}function Lge(e){if(e.length===0)return[];const t=new Map(e.map(a=>[a.date,a])),r=e[0],n=e[e.length-1];return hr.eachDayOfInterval({start:hr.parseISO(r.date),end:hr.parseISO(n.date)}).map(a=>{const i=hr.formatISO(a,{representation:"date"});return t.has(i)?t.get(i):{date:i,count:0,level:0}})}function Fge(e,t=eA){return e.reduce((r,n,a)=>{const i=n.find(u=>u!==void 0);if(!i)throw new Error(`Unexpected error: Week ${a+1} is empty: [${n}].`);const s=t[hr.getMonth(hr.parseISO(i.date))];if(!s){const u=new Date(i.date).toLocaleString("en-US",{month:"short"});throw new Error(`Unexpected error: undefined month label for ${u}.`)}const l=r[r.length-1];return a===0||!l||l.label!==s?[...r,{weekIndex:a,label:s}]:r},[]).filter(({weekIndex:r},n,a)=>n===0?a[1]&&a[1].weekIndex-r>=3:n===a.length-1?e.slice(r).length>=3:!0)}function Ys(e,t){return t?`${Rf}__${e} ${t}`:`${Rf}__${e}`}function Nge(){const e=new Date().getFullYear();return hr.eachDayOfInterval({start:new Date(e,0,1),end:new Date(e,11,31)}).map(r=>({date:hr.formatISO(r,{representation:"date"}),count:0,level:0}))}function zge(e,t,r,n){if(r.length!==7)throw new Error("Exactly 7 labels, one for each weekday must be passed.");return e.reduce((a,i,s)=>{if(s%2!==0){const l=(s+t)%7,u=r[l],c=Math.ceil(Bge(u,n).width);return Math.max(a,c)}return a},0)}function Bge(e,t){if(typeof document>"u"||typeof window>"u")throw new Error("Unexpected error: text dimensions can only be calculated on the client, not the server.");if(t<1)throw new RangeError("fontSize must be positive");if(e.length===0)return{width:0,height:0};const r="http://www.w3.org/2000/svg",n=document.createElementNS(r,"svg");n.style.position="absolute",n.style.visibility="hidden",n.style.fontFamily=window.getComputedStyle(document.body).fontFamily,n.style.fontSize=`${t}px`;const a=document.createElementNS(r,"text");a.textContent=e,n.appendChild(a),document.body.appendChild(n);const i=a.getBBox();return document.body.removeChild(n),{width:i.width,height:i.height}}function Wge(e,t=5){const r=Vge(t);return e?(Hge(e,t),e.light=e.light??r.light,e.dark=e.dark??r.dark,{light:fE(e.light,t)?e.light:p0(e.light,t),dark:fE(e.dark,t)?e.dark:p0(e.dark,t)}):r}function Vge(e){return{light:p0(["hsl(0, 0%, 92%)","hsl(0, 0%, 26%)"],e),dark:p0(["hsl(0, 0%, 20%)","hsl(0, 0%, 92%)"],e)}}function Hge(e,t){if(typeof e!="object"||e.light===void 0&&e.dark===void 0)throw new Error(`The theme object must contain at least one of the fields "light" and "dark" with exactly 2 or ${t} colors respectively.`);if(e.light){const{length:r}=e.light;if(r!==2&&r!==t)throw new Error(`theme.light must contain exactly 2 or ${t} colors, ${r} passed.`)}if(e.dark){const{length:r}=e.dark;if(r!==2&&r!==t)throw new Error(`theme.dark must contain exactly 2 or ${t} colors, ${r} passed.`)}}function fE(e,t){const r=e.find(n=>!v0.default.valid(n));if(r)throw new Error(`Invalid color "${String(r)}" passed. All CSS color formats are accepted.`);return e.length===t}function p0(e,t){return v0.default.scale(e).mode("lch").colors(t)}const tA=({data:e,blockMargin:t=4,blockRadius:r=2,blockSize:n=12,colorScheme:a=void 0,eventHandlers:i={},fontSize:s=14,hideColorLegend:l=!1,hideMonthLabels:u=!1,hideTotalCount:c=!1,labels:d=void 0,maxLevel:f=4,loading:h=!1,renderBlock:v=void 0,showWeekdayLabels:b=!1,style:p={},theme:$=void 0,totalCount:y=void 0,weekStart:_=0})=>{f=Math.max(1,f);const S=Wge($,f+1),T=Mge(),I=S[a??T],A=!Ige(),N=jge();if(b&&!N||(h&&(e=Nge()),e.length===0))return null;const z=e[0],q=hr.getYear(hr.parseISO(z.date)),Q=Rge(e,_),ve=Q[0],Ee=Object.assign({},Ege,d),nt=u?0:s+Q1,rt=b?zge(ve,_,Ee.weekdays,s)+Q1:void 0;function Te(){return{width:Q.length*(n+t)-t,height:nt+(n+t)*7-t}}function ze(re){return Object.keys(i).reduce((oe,se)=>({...oe,[se]:ft=>{var gt;return(gt=i[se])==null?void 0:gt.call(i,ft)(re)}}),{})}function Pe(){return Q.map((re,oe)=>re.map((se,ft)=>{if(!se)return null;if(se.level<0||se.level>f)throw new RangeError(`Provided activity level ${se.level} for ${se.date} is out of range. It must be between 0 and ${f}.`);const gt=h&&A?{animation:`${yu.loadingAnimation} 1.75s ease-in-out infinite`,animationDelay:`${oe*20+ft*20}ms`}:void 0,zt=bt.jsx("rect",{...ze(se),x:0,y:nt+(n+t)*ft,width:n,height:n,rx:r,ry:r,fill:I[se.level],"data-date":se.date,"data-level":se.level,style:gt});return bt.jsx(Pl.Fragment,{children:v?v(zt,se):zt},se.date)})).map((re,oe)=>bt.jsx("g",{transform:`translate(${(n+t)*oe}, 0)`,children:re},oe))}function H(){if(c&&l)return null;const re=typeof y=="number"?y:e.reduce((oe,se)=>oe+se.count,0);return bt.jsxs("footer",{className:Ys("footer",yu.footer),style:{marginLeft:rt},children:[h&&bt.jsx("div",{children:" "}),!h&&!c&&bt.jsx("div",{className:Ys("count"),children:Ee.totalCount?Ee.totalCount.replace("{{count}}",String(re)).replace("{{year}}",String(q)):`${re} activities in ${q}`}),!h&&!l&&bt.jsxs("div",{className:Ys("legend-colors",yu.legendColors),children:[bt.jsx("span",{style:{marginRight:"0.4em"},children:Ee.legend.less}),Array(f+1).fill(void 0).map((oe,se)=>bt.jsx("svg",{width:n,height:n,children:bt.jsx("rect",{width:n,height:n,fill:I[se],rx:r,ry:r})},se)),bt.jsx("span",{style:{marginLeft:"0.4em"},children:Ee.legend.more})]})]})}function ae(){return!b&&u?null:bt.jsxs(bt.Fragment,{children:[b&&Q[0]&&bt.jsx("g",{className:Ys("legend-weekday"),children:Q[0].map((re,oe)=>{if(oe%2===0)return null;const se=(oe+_)%7;return bt.jsx("text",{x:-Q1,y:nt+(n+t)*oe+n/2,dominantBaseline:"middle",textAnchor:"end",children:Ee.weekdays[se]},oe)})}),!u&&bt.jsx("g",{className:Ys("legend-month"),children:Fge(Q,Ee.months).map(({label:re,weekIndex:oe})=>bt.jsx("text",{x:(n+t)*oe,dominantBaseline:"hanging",children:re},oe))})]})}const{width:ie,height:ge}=Te(),$e=I[0],me={fontSize:s,...A&&{[`--${Rf}-loading`]:$e,[`--${Rf}-loading-active`]:a==="light"?v0.default($e).darken(.3).hex():v0.default($e).brighten(.25).hex()}};return bt.jsxs("article",{className:`${Rf} ${yu.container}`,style:{...p,...me},children:[bt.jsx("div",{className:Ys("scroll-container",yu.scrollContainer),children:bt.jsxs("svg",{width:ie,height:ge,viewBox:`0 0 ${ie} ${ge}`,className:Ys("calendar",yu.calendar),style:{marginLeft:rt},children:[!h&&ae(),Pe()]})}),H()]})},Uge=e=>bt.jsx(tA,{data:[],...e});Sp.Skeleton=Uge;Sp.default=tA;Object.defineProperty(J4,"__esModule",{value:!0});var bu=P,rA=Sp;function nA(e){return e&&e.__esModule?e:{default:e}}var K1=nA(bu),Yge=nA(rA);function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(typeof t!="function")return e;const r=t(e);if(!Array.isArray(r))throw Error("Passed function transformData must return a list of Day objects.");if(r.length>0){const n=r[0];if(typeof n.count!="number"||n.count<0)throw Error(`Required property "count: number" missing or invalid. Got: ${n.count}`);if(!/\d{4}-\d{2}-\d{2}/.test(n.date))throw Error(`Required property "date: YYYY-MM-DD" missing or invalid. Got: ${n.date}`);if(typeof n.level!="number"||n.level<0||n.level>4)throw Error(`Required property "level: 0 | 1 | 2 | 3 | 4" missing or invalid: Got: ${n.level}.`)}return r};async function Kge(e,t){const r=await fetch(`${Gge}${e}?y=${t}`),n=await r.json();if(!r.ok)throw Error(`Fetching GitHub contribution data for "${e}" failed: ${n.error}`);return n}const Xge=({username:e,year:t="last",labels:r,transformData:n,transformTotalCount:a=!0,throwOnError:i=!1,errorMessage:s=`Error – Fetching GitHub contribution data for "${e}" failed.`,...l})=>{const[u,c]=bu.useState(null),[d,f]=bu.useState(!1),[h,v]=bu.useState(null),b=bu.useCallback(()=>{f(!0),v(null),Kge(e,t).then(c).catch(v).finally(()=>f(!1))},[e,t]);if(bu.useEffect(b,[b]),h){if(i)throw h;return K1.default.createElement("div",null,s)}if(d||!u)return K1.default.createElement(rA.Skeleton,g0({},l,{loading:!0}));const p=l.theme??qge,$={totalCount:`{{count}} contributions in ${t==="last"?"the last year":"{{year}}"}`},y=t==="last"?u.total.lastYear:u.total[t];return K1.default.createElement(Yge.default,g0({data:Qge(u.contributions,n),theme:p,labels:Object.assign({},$,r),totalCount:n&&a?void 0:y},l,{loading:!!l.loading||d,maxLevel:4}))};var Zge=J4.default=Xge;const Jge=({username:e})=>{const t={display:"flex",justifyContent:"center",alignItems:"center"},r=w.jsx(Zge,{username:e1e(e),colorScheme:"light"});return w.jsx(Ct,{style:t,children:r})},e1e=e=>e.indexOf("/")===-1?e:new URL(e).pathname.split("/")[1],t1e=()=>{const{id:e}=Vee(),[t,r]=P.useState(null),[n,a]=P.useState(!0),[i,s]=P.useState(null),l=or("white","gray.800"),u=or("gray.200","gray.600");return P.useEffect(()=>{(async()=>{try{if(e){const d=await mx.getMemberById(BigInt(e));if(d===void 0)throw new Error("Member not found");r(d)}}catch{s("Failed to fetch member details")}finally{a(!1)}})()},[e]),n?w.jsx(Ar,{children:w.jsx(Tl,{size:"xl"})}):i||!t?w.jsx(Ar,{children:w.jsx(Xe,{color:"red.500",children:i||"Member not found"})}):w.jsx(Ar,{children:w.jsx(Ct,{borderWidth:"1px",borderRadius:"lg",p:6,boxShadow:"lg",bg:l,borderColor:u,maxWidth:"800px",margin:"auto",children:w.jsxs(Zr,{spacing:6,align:"stretch",children:[w.jsx(El,{as:ax,to:"/members",leftIcon:w.jsx($te,{}),alignSelf:"flex-start",children:"Back to Members"}),w.jsxs(ma,{spacing:6,children:[w.jsx(sp,{borderRadius:"full",boxSize:"150px",src:t.profilePicture,alt:`${t.firstName} ${t.lastName}`}),w.jsxs(Zr,{align:"start",spacing:2,children:[w.jsxs(Uo,{size:"xl",children:[t.firstName," ",t.lastName]}),w.jsx(Xe,{fontSize:"lg",color:"gray.500",children:t.email})]})]}),w.jsx(Jge,{username:t.github}),w.jsxs(ma,{spacing:4,children:[w.jsx(ai,{href:`mailto:${t.email}`,isExternal:!0,children:w.jsx(Qr,{as:lx,w:6,h:6,color:"gray.500",_hover:{color:"blue.500"}})}),w.jsx(ai,{href:`https://discord.com/users/${t.discord}`,isExternal:!0,children:w.jsx(Qr,{as:ox,w:6,h:6,color:"gray.500",_hover:{color:"blue.500"}})}),w.jsx(ai,{href:t.linkedin,isExternal:!0,children:w.jsx(Qr,{as:sx,w:6,h:6,color:"gray.500",_hover:{color:"blue.500"}})})]})]})})})},Um=["git clone git@github.com:hcp-uw/your-new-project.git ","cd your-new-project ",'echo "# Your New Project" > README.md ',"npm init -y ","npm install react react-dom react-scripts ","git add . ",'git commit -m "Initial commit" ',"git push origin main ","^C ","yes | rm -rf node_modules ",'echo "node_modules/" > .gitignore ',"npm install ",'git commit -am "Add node_modules to .gitignore" ',"git push origin main ","git checkout -b feature/your-new-feature ","touch your-new-feature.js ","npm run start ","^C ","git add . ",'git commit -m "Added my new feature!" ',"git push origin feature/your-new-feature ","git checkout main ","git merge feature/your-new-feature "],r1e=()=>{const[e,t]=P.useState("$ "),[r,n]=P.useState(0),[a,i]=P.useState(0),s=or("gray.100","gray.700"),l=or("green.500","green.300");return P.useEffect(()=>{if(r{ac+Um[r][a]),i(a+1)):rc+` +$ `),n(r+1),i(0)):(n(0),t("$ "),i(0))},100);return()=>clearTimeout(u)}},[r,a]),w.jsx(Ct,{bg:s,p:4,borderRadius:"md",fontFamily:"monospace",whiteSpace:"pre-wrap",overflow:"hidden",marginTop:"5em",minHeight:"95vh",width:"100%",children:w.jsx(Xe,{color:l,children:e})})},hE=()=>w.jsx(Ar,{children:w.jsxs(qw,{templateColumns:["1fr","1fr","2fr 1fr"],gap:6,children:[w.jsxs(Eb,{children:[w.jsx(Xe,{fontSize:["3xl","4xl","5xl","6xl"],fontWeight:"semibold",marginTop:"1em",children:"The Problem"}),w.jsx(Xe,{fontSize:["md","xl","2xl"],marginTop:"1em",children:"The majority of projects offered by CS coursework are solo or in pairs, so future programmers miss out on the invaluable experience of working in larger teams. Additionally, the leading motivation to do CS class projects are for grades, rather than for the learning experience."}),w.jsxs(ll,{direction:"column",width:"100%",marginTop:"3em",children:[w.jsx(Xe,{fontSize:["3xl","4xl","5xl","6xl"],fontWeight:"semibold",children:"The Why"}),w.jsx(Xe,{fontSize:["md","xl","2xl"],marginTop:"1em",children:"Getting internships is the best ways to gain real world experience on the job. However, it is also quite difficult to obtain without having some prior experience."}),w.jsx(Xe,{fontSize:["md","xl","2xl"],marginTop:"1em",children:"This circular logic plagues every generation of programmers."})]}),w.jsxs(ll,{direction:"column",width:"100%",marginTop:"3em",children:[w.jsx(Xe,{fontSize:["3xl","4xl","5xl","6xl"],fontWeight:"semibold",children:"Our Mission"}),w.jsxs(Ct,{marginBottom:"3em",children:[w.jsx(Xe,{fontSize:["md","xl","2xl"],display:"inline",marginTop:"1em",children:"To create a tech internship-like environment that promotes the growth and development of our club members. We provide team-based programming project experience and encourage"}),w.jsx(Xe,{fontSize:["md","xl","2xl"],display:"inline",color:"brand.pink",children:" peer-to-peer learning"}),w.jsx(Xe,{fontSize:["md","xl","2xl"],display:"inline",children:" to provide the next generation of programmers & designers with the tools and experience to"}),w.jsx(Xe,{fontSize:["md","xl","2xl"],display:"inline",color:"brand.pink",children:" succeed in future tech careers."})]})]})]}),w.jsx(Eb,{children:w.jsx(Ct,{position:"sticky",top:"20px",children:w.jsx(r1e,{})})})]})}),n1e=HM` + 0% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.7); } + 70% { box-shadow: 0 0 0 15px rgba(88, 101, 242, 0); } + 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); } +`,Ym=va(Ct),a1e=()=>{const e=or("grey.100","gray.800"),t=or("gray.800","gray.100");return w.jsx(Ar,{children:w.jsx(Ct,{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",bg:e,color:t,children:w.jsxs(Zr,{spacing:8,align:"center",maxWidth:"600px",textAlign:"center",children:[w.jsx(Ym,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.8},children:w.jsx(Uo,{as:"h1",size:"2xl",mb:4,children:"Join Our Community"})}),w.jsx(Ym,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:w.jsx(Xe,{fontSize:"xl",mb:6,children:"Come and build cool projects with us"})}),w.jsx(Ym,{as:El,leftIcon:w.jsx(ox,{}),size:"lg",colorScheme:"purple",_hover:{transform:"translateY(-5px)"},transition:"all 0.2s",onClick:()=>window.open("https://discord.gg/your-invite-link","_blank"),animation:`${n1e} 2s infinite`,whileHover:{scale:1.05},whileTap:{scale:.95},children:"Join our Discord"}),w.jsx(Ym,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1,delay:.5},children:w.jsx(Xe,{fontSize:"sm",mt:8,children:"By joining, you agree to our community guidelines and code of conduct."})})]})})})};function i1e(){return w.jsx(KK,{theme:p5,children:w.jsx(cte,{children:w.jsxs(nte,{children:[w.jsx(ao,{path:"/members",element:w.jsx(Nne,{})}),w.jsx(ao,{path:"/members/:id",element:w.jsx(t1e,{})}),w.jsx(ao,{path:"/teams",element:w.jsx(Wne,{})}),w.jsx(ao,{path:"/events",element:w.jsx(Une,{})}),w.jsx(ao,{path:"/about",element:w.jsx(hE,{})}),w.jsx(ao,{path:"/join",element:w.jsx(a1e,{})}),w.jsx(ao,{path:"/",element:w.jsx(hE,{})})]})})})}Z1.createRoot(document.getElementById("root")).render(w.jsx(pn.StrictMode,{children:w.jsx(i1e,{})}));export{Vb as g}; diff --git a/index.html b/index.html index 4a3a4f5..f145610 100644 --- a/index.html +++ b/index.html @@ -2,11 +2,11 @@ - + Vite + React + TS - - + +