From 759d6646a373633a593ce07f6d3d79b8a26da540 Mon Sep 17 00:00:00 2001 From: Karol Faltyn Date: Tue, 4 Jun 2024 15:19:40 +0200 Subject: [PATCH] Updates --- assets/index-C7Ke2mUN.js | 67 ++++++++++++++++++++++++++++++++++++++++ assets/index-CT71MVhV.js | 67 ---------------------------------------- index.html | 12 +++---- 3 files changed, 73 insertions(+), 73 deletions(-) create mode 100644 assets/index-C7Ke2mUN.js delete mode 100644 assets/index-CT71MVhV.js diff --git a/assets/index-C7Ke2mUN.js b/assets/index-C7Ke2mUN.js new file mode 100644 index 0000000..0043f1e --- /dev/null +++ b/assets/index-C7Ke2mUN.js @@ -0,0 +1,67 @@ +function Tp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Rp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gc={exports:{}},vl={},yc={exports:{}},I={};/** + * @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 Yr=Symbol.for("react.element"),$p=Symbol.for("react.portal"),Lp=Symbol.for("react.fragment"),Ip=Symbol.for("react.strict_mode"),zp=Symbol.for("react.profiler"),Ap=Symbol.for("react.provider"),Fp=Symbol.for("react.context"),Wp=Symbol.for("react.forward_ref"),Up=Symbol.for("react.suspense"),Bp=Symbol.for("react.memo"),Vp=Symbol.for("react.lazy"),As=Symbol.iterator;function Hp(e){return e===null||typeof e!="object"?null:(e=As&&e[As]||e["@@iterator"],typeof e=="function"?e:null)}var xc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wc=Object.assign,kc={};function Gn(e,t,n){this.props=e,this.context=t,this.refs=kc,this.updater=n||xc}Gn.prototype.isReactComponent={};Gn.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")};Gn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sc(){}Sc.prototype=Gn.prototype;function ka(e,t,n){this.props=e,this.context=t,this.refs=kc,this.updater=n||xc}var Sa=ka.prototype=new Sc;Sa.constructor=ka;wc(Sa,Gn.prototype);Sa.isPureReactComponent=!0;var Fs=Array.isArray,Cc=Object.prototype.hasOwnProperty,Ca={current:null},bc={key:!0,ref:!0,__self:!0,__source:!0};function Nc(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)Cc.call(t,r)&&!bc.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,J=C[U];if(0>>1;Uo(zl,R))Kto(oo,zl)?(C[U]=oo,C[Kt]=R,U=Kt):(C[U]=zl,C[Gt]=R,U=Gt);else if(Kto(oo,R))C[U]=oo,C[Kt]=R,U=Kt;else break e}}return D}function o(C,D){var R=C.sortIndex-D.sortIndex;return R!==0?R:C.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var s=[],u=[],c=1,d=null,m=3,g=!1,x=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(C){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=C)r(u),D.sortIndex=D.expirationTime,t(s,D);else break;D=n(u)}}function S(C){if(w=!1,v(C),!x)if(n(s)!==null)x=!0,et(N);else{var D=n(u);D!==null&&j(S,D.startTime-C)}}function N(C,D){x=!1,w&&(w=!1,h(M),M=-1),g=!0;var R=m;try{for(v(D),d=n(s);d!==null&&(!(d.expirationTime>D)||C&&!de());){var U=d.callback;if(typeof U=="function"){d.callback=null,m=d.priorityLevel;var J=U(d.expirationTime<=D);D=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(s)&&r(s),v(D)}else r(s);d=n(s)}if(d!==null)var ro=!0;else{var Gt=n(u);Gt!==null&&j(S,Gt.startTime-D),ro=!1}return ro}finally{d=null,m=R,g=!1}}var _=!1,E=null,M=-1,W=5,T=-1;function de(){return!(e.unstable_now()-TC||125U?(C.sortIndex=R,t(u,C),n(s)===null&&C===n(u)&&(w?(h(M),M=-1):w=!0,j(S,R-U))):(C.sortIndex=J,t(s,C),x||g||(x=!0,et(N))),C},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(C){var D=m;return function(){var R=m;m=D;try{return C.apply(this,arguments)}finally{m=R}}}})(jc);Mc.exports=jc;var nm=Mc.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 Dc=y,Re=nm;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wi=Object.prototype.hasOwnProperty,rm=/^[: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]*$/,Us={},Bs={};function om(e){return wi.call(Bs,e)?!0:wi.call(Us,e)?!1:rm.test(e)?Bs[e]=!0:(Us[e]=!0,!1)}function lm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function im(e,t,n,r){if(t===null||typeof t>"u"||lm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ce(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ce(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){me[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Na=/[\-:]([a-z])/g;function _a(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(Na,_a);me[t]=new Ce(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(Na,_a);me[t]=new Ce(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(Na,_a);me[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ea(e,t,n,r){var o=me.hasOwnProperty(t)?me[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==l[a]){var s=` +`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=a);break}}}finally{Wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?cr(e):""}function am(e){switch(e.tag){case 5:return cr(e.type);case 16:return cr("Lazy");case 13:return cr("Suspense");case 19:return cr("SuspenseList");case 0:case 2:case 15:return e=Ul(e.type,!1),e;case 11:return e=Ul(e.type.render,!1),e;case 1:return e=Ul(e.type,!0),e;default:return""}}function bi(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 Cn:return"Fragment";case Sn:return"Portal";case ki:return"Profiler";case Pa:return"StrictMode";case Si:return"Suspense";case Ci:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rc:return(e.displayName||"Context")+".Consumer";case Tc:return(e._context.displayName||"Context")+".Provider";case Ma:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ja:return t=e.displayName||null,t!==null?t:bi(e.type)||"Memo";case _t:t=e._payload,e=e._init;try{return bi(e(t))}catch{}}return null}function sm(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 bi(t);case 8:return t===Pa?"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 Ut(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function um(e){var t=Lc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ao(e){e._valueTracker||(e._valueTracker=um(e))}function Ic(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wo(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 Ni(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ut(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zc(e,t){t=t.checked,t!=null&&Ea(e,"checked",t,!1)}function _i(e,t){zc(e,t);var n=Ut(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ei(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ei(e,t.type,Ut(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ys(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ei(e,t,n){(t!=="number"||Wo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dr=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=so.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hr={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},cm=["Webkit","ms","Moz","O"];Object.keys(hr).forEach(function(e){cm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hr[t]=hr[e]})});function Uc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hr.hasOwnProperty(e)&&hr[e]?(""+t).trim():t+"px"}function Bc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Uc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var dm=ee({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 ji(e,t){if(t){if(dm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Di(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 Oi=null;function Da(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ti=null,$n=null,Ln=null;function Ks(e){if(e=Kr(e)){if(typeof Ti!="function")throw Error(b(280));var t=e.stateNode;t&&(t=kl(t),Ti(e.stateNode,e.type,t))}}function Vc(e){$n?Ln?Ln.push(e):Ln=[e]:$n=e}function Hc(){if($n){var e=$n,t=Ln;if(Ln=$n=null,Ks(e),t)for(e=0;e>>=0,e===0?32:31-(Sm(e)/Cm|0)|0}var uo=64,co=4194304;function fr(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 Ho(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=fr(a):(l&=i,l!==0&&(r=fr(l)))}else i=n&~o,i!==0?r=fr(i):l!==0&&(r=fr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ge(t),e[t]=n}function Em(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=gr),ou=" ",lu=!1;function dd(e,t){switch(e){case"keyup":return th.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bn=!1;function rh(e,t){switch(e){case"compositionend":return fd(t);case"keypress":return t.which!==32?null:(lu=!0,ou);case"textInput":return e=t.data,e===ou&&lu?null:e;default:return null}}function oh(e,t){if(bn)return e==="compositionend"||!Aa&&dd(e,t)?(e=ud(),Po=La=jt=null,bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=uu(n)}}function vd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gd(){for(var e=window,t=Wo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wo(e.document)}return t}function Fa(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 ph(e){var t=gd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vd(n.ownerDocument.documentElement,n)){if(r!==null&&Fa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=cu(n,l);var i=cu(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Nn=null,Ai=null,xr=null,Fi=!1;function du(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fi||Nn==null||Nn!==Wo(r)||(r=Nn,"selectionStart"in r&&Fa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xr&&Dr(xr,r)||(xr=r,r=Go(Ai,"onSelect"),0Pn||(e.current=Yi[Pn],Yi[Pn]=null,Pn--)}function H(e,t){Pn++,Yi[Pn]=e.current,e.current=t}var Bt={},ye=Ht(Bt),Ee=Ht(!1),ln=Bt;function Wn(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pe(e){return e=e.childContextTypes,e!=null}function Xo(){K(Ee),K(ye)}function yu(e,t,n){if(ye.current!==Bt)throw Error(b(168));H(ye,t),H(Ee,n)}function _d(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,sm(e)||"Unknown",o));return ee({},n,r)}function Jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,ln=ye.current,H(ye,e),H(Ee,Ee.current),!0}function xu(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=_d(e,t,ln),r.__reactInternalMemoizedMergedChildContext=e,K(Ee),K(ye),H(ye,e)):K(Ee),H(Ee,n)}var ft=null,Sl=!1,ni=!1;function Ed(e){ft===null?ft=[e]:ft.push(e)}function Nh(e){Sl=!0,Ed(e)}function Yt(){if(!ni&&ft!==null){ni=!0;var e=0,t=V;try{var n=ft;for(V=1;e>=i,o-=i,pt=1<<32-Ge(t)+o|n<M?(W=E,E=null):W=E.sibling;var T=m(h,E,v[M],S);if(T===null){E===null&&(E=W);break}e&&E&&T.alternate===null&&t(h,E),p=l(T,p,M),_===null?N=T:_.sibling=T,_=T,E=W}if(M===v.length)return n(h,E),X&&Xt(h,M),N;if(E===null){for(;MM?(W=E,E=null):W=E.sibling;var de=m(h,E,T.value,S);if(de===null){E===null&&(E=W);break}e&&E&&de.alternate===null&&t(h,E),p=l(de,p,M),_===null?N=de:_.sibling=de,_=de,E=W}if(T.done)return n(h,E),X&&Xt(h,M),N;if(E===null){for(;!T.done;M++,T=v.next())T=d(h,T.value,S),T!==null&&(p=l(T,p,M),_===null?N=T:_.sibling=T,_=T);return X&&Xt(h,M),N}for(E=r(h,E);!T.done;M++,T=v.next())T=g(E,h,M,T.value,S),T!==null&&(e&&T.alternate!==null&&E.delete(T.key===null?M:T.key),p=l(T,p,M),_===null?N=T:_.sibling=T,_=T);return e&&E.forEach(function(F){return t(h,F)}),X&&Xt(h,M),N}function k(h,p,v,S){if(typeof v=="object"&&v!==null&&v.type===Cn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case io:e:{for(var N=v.key,_=p;_!==null;){if(_.key===N){if(N=v.type,N===Cn){if(_.tag===7){n(h,_.sibling),p=o(_,v.props.children),p.return=h,h=p;break e}}else if(_.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===_t&&_u(N)===_.type){n(h,_.sibling),p=o(_,v.props),p.ref=rr(h,_,v),p.return=h,h=p;break e}n(h,_);break}else t(h,_);_=_.sibling}v.type===Cn?(p=on(v.props.children,h.mode,S,v.key),p.return=h,h=p):(S=Lo(v.type,v.key,v.props,null,h.mode,S),S.ref=rr(h,p,v),S.return=h,h=S)}return i(h);case Sn:e:{for(_=v.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=o(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=ci(v,h.mode,S),p.return=h,h=p}return i(h);case _t:return _=v._init,k(h,p,_(v._payload),S)}if(dr(v))return x(h,p,v,S);if(Zn(v))return w(h,p,v,S);yo(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,v),p.return=h,h=p):(n(h,p),p=ui(v,h.mode,S),p.return=h,h=p),i(h)):n(h,p)}return k}var Bn=$d(!0),Ld=$d(!1),Xr={},it=Ht(Xr),$r=Ht(Xr),Lr=Ht(Xr);function tn(e){if(e===Xr)throw Error(b(174));return e}function Ka(e,t){switch(H(Lr,t),H($r,e),H(it,Xr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mi(t,e)}K(it),H(it,t)}function Vn(){K(it),K($r),K(Lr)}function Id(e){tn(Lr.current);var t=tn(it.current),n=Mi(t,e.type);t!==n&&(H($r,e),H(it,n))}function Xa(e){$r.current===e&&(K(it),K($r))}var Z=Ht(0);function rl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ri=[];function Ja(){for(var e=0;en?n:4,e(!0);var r=oi.transition;oi.transition={};try{e(!1),t()}finally{V=n,oi.transition=r}}function qd(){return Be().memoizedState}function Mh(e,t,n){var r=At(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ef(e))tf(t,n);else if(n=Dd(e,t,n,r),n!==null){var o=ke();Ke(n,e,r,o),nf(n,t,r)}}function jh(e,t,n){var r=At(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ef(e))tf(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,a=l(i,n);if(o.hasEagerState=!0,o.eagerState=a,Xe(a,i)){var s=t.interleaved;s===null?(o.next=o,Qa(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Dd(e,t,o,r),n!==null&&(o=ke(),Ke(n,e,r,o),nf(n,t,r))}}function ef(e){var t=e.alternate;return e===q||t!==null&&t===q}function tf(e,t){wr=ol=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ta(e,n)}}var ll={readContext:Ue,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},Dh={readContext:Ue,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:Pu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Oo(4194308,4,Gd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oo(4,2,e,t)},useMemo:function(e,t){var n=nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Mh.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:Eu,useDebugValue:ns,useDeferredValue:function(e){return nt().memoizedState=e},useTransition:function(){var e=Eu(!1),t=e[0];return e=Ph.bind(null,e[1]),nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,o=nt();if(X){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ue===null)throw Error(b(349));sn&30||Fd(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Pu(Ud.bind(null,r,l,e),[e]),r.flags|=2048,Ar(9,Wd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=nt(),t=ue.identifierPrefix;if(X){var n=mt,r=pt;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ir++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[rt]=t,e[Rr]=r,ff(e,t,!1,!1),t.stateNode=e;e:{switch(i=Di(n,r),n){case"dialog":G("cancel",e),G("close",e),o=r;break;case"iframe":case"object":case"embed":G("load",e),o=r;break;case"video":case"audio":for(o=0;oYn&&(t.flags|=128,r=!0,or(l,!1),t.lanes=4194304)}else{if(!r)if(e=rl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),or(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!X)return ve(t),null}else 2*ne()-l.renderingStartTime>Yn&&n!==1073741824&&(t.flags|=128,r=!0,or(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ne(),t.sibling=null,n=Z.current,H(Z,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return ss(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function Ah(e,t){switch(Ua(t),t.tag){case 1:return Pe(t.type)&&Xo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(),K(Ee),K(ye),Ja(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xa(t),null;case 13:if(K(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Z),null;case 4:return Vn(),null;case 10:return Ya(t.type._context),null;case 22:case 23:return ss(),null;case 24:return null;default:return null}}var wo=!1,ge=!1,Fh=typeof WeakSet=="function"?WeakSet:Set,P=null;function On(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function oa(e,t,n){try{n()}catch(r){te(e,t,r)}}var Iu=!1;function Wh(e,t){if(Wi=Yo,e=gd(),Fa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,a=-1,s=-1,u=0,c=0,d=e,m=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(a=i+o),d!==l||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(g=d.firstChild)!==null;)m=d,d=g;for(;;){if(d===e)break t;if(m===n&&++u===o&&(a=i),m===l&&++c===r&&(s=i),(g=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=g}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ui={focusedElem:e,selectionRange:n},Yo=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;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 w=x.memoizedProps,k=x.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?w:He(t.type,w),k);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(S){te(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return x=Iu,Iu=!1,x}function kr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&oa(t,n,l)}o=o.next}while(o!==r)}}function Nl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function la(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hf(e){var t=e.alternate;t!==null&&(e.alternate=null,hf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rt],delete t[Rr],delete t[Hi],delete t[Ch],delete t[bh])),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 vf(e){return e.tag===5||e.tag===3||e.tag===4}function zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vf(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 ia(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ko));else if(r!==4&&(e=e.child,e!==null))for(ia(e,t,n),e=e.sibling;e!==null;)ia(e,t,n),e=e.sibling}function aa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(aa(e,t,n),e=e.sibling;e!==null;)aa(e,t,n),e=e.sibling}var fe=null,Ye=!1;function St(e,t,n){for(n=n.child;n!==null;)gf(e,t,n),n=n.sibling}function gf(e,t,n){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(gl,n)}catch{}switch(n.tag){case 5:ge||On(n,t);case 6:var r=fe,o=Ye;fe=null,St(e,t,n),fe=r,Ye=o,fe!==null&&(Ye?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(Ye?(e=fe,n=n.stateNode,e.nodeType===8?ti(e.parentNode,n):e.nodeType===1&&ti(e,n),Mr(e)):ti(fe,n.stateNode));break;case 4:r=fe,o=Ye,fe=n.stateNode.containerInfo,Ye=!0,St(e,t,n),fe=r,Ye=o;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&oa(n,t,i),o=o.next}while(o!==r)}St(e,t,n);break;case 1:if(!ge&&(On(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){te(n,t,a)}St(e,t,n);break;case 21:St(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,St(e,t,n),ge=r):St(e,t,n);break;default:St(e,t,n)}}function Au(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fh),t.forEach(function(r){var o=Xh.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ve(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Bh(r/1960))-r,10e?16:e,Dt===null)var r=!1;else{if(e=Dt,Dt=null,sl=0,z&6)throw Error(b(331));var o=z;for(z|=4,P=e.current;P!==null;){var l=P,i=l.child;if(P.flags&16){var a=l.deletions;if(a!==null){for(var s=0;sne()-is?rn(e,0):ls|=n),Me(e,t)}function Nf(e,t){t===0&&(e.mode&1?(t=co,co<<=1,!(co&130023424)&&(co=4194304)):t=1);var n=ke();e=xt(e,t),e!==null&&(Qr(e,t,n),Me(e,n))}function Kh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nf(e,n)}function Xh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Nf(e,n)}var _f;_f=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,Ih(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,X&&t.flags&1048576&&Pd(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;To(e,t),e=t.pendingProps;var o=Wn(t,ye.current);zn(t,n),o=qa(null,t,r,e,o,n);var l=es();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)?(l=!0,Jo(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ga(t),o.updater=Cl,t.stateNode=o,o._reactInternals=t,Ji(t,r,e,n),t=ea(null,t,r,!0,l,n)):(t.tag=0,X&&l&&Wa(t),xe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(To(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Zh(r),e=He(r,e),o){case 0:t=qi(null,t,r,e,n);break e;case 1:t=Ru(null,t,r,e,n);break e;case 11:t=Ou(null,t,r,e,n);break e;case 14:t=Tu(null,t,r,He(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),qi(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),Ru(e,t,r,o,n);case 3:e:{if(uf(t),e===null)throw Error(b(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Od(e,t),nl(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=Hn(Error(b(423)),t),t=$u(e,t,r,n,o);break e}else if(r!==o){o=Hn(Error(b(424)),t),t=$u(e,t,r,n,o);break e}else for(Oe=Lt(t.stateNode.containerInfo.firstChild),Te=t,X=!0,Qe=null,n=Ld(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Un(),r===o){t=wt(e,t,n);break e}xe(e,t,r,n)}t=t.child}return t;case 5:return Id(t),e===null&&Gi(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Bi(r,o)?i=null:l!==null&&Bi(r,l)&&(t.flags|=32),sf(e,t),xe(e,t,i,n),t.child;case 6:return e===null&&Gi(t),null;case 13:return cf(e,t,n);case 4:return Ka(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bn(t,null,r,n):xe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),Ou(e,t,r,o,n);case 7:return xe(e,t,t.pendingProps,n),t.child;case 8:return xe(e,t,t.pendingProps.children,n),t.child;case 12:return xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,H(el,r._currentValue),r._currentValue=i,l!==null)if(Xe(l.value,i)){if(l.children===o.children&&!Ee.current){t=wt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=vt(-1,n&-n),s.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ki(l.return,n,t),a.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(b(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ki(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}xe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,zn(t,n),o=Ue(o),r=r(o),t.flags|=1,xe(e,t,r,n),t.child;case 14:return r=t.type,o=He(r,t.pendingProps),o=He(r.type,o),Tu(e,t,r,o,n);case 15:return lf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),To(e,t),t.tag=1,Pe(r)?(e=!0,Jo(t)):e=!1,zn(t,n),Rd(t,r,o),Ji(t,r,o,n),ea(null,t,r,!0,e,n);case 19:return df(e,t,n);case 22:return af(e,t,n)}throw Error(b(156,t.tag))};function Ef(e,t){return Zc(e,t)}function Jh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fe(e,t,n,r){return new Jh(e,t,n,r)}function cs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zh(e){if(typeof e=="function")return cs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ma)return 11;if(e===ja)return 14}return 2}function Ft(e,t){var n=e.alternate;return n===null?(n=Fe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lo(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")cs(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Cn:return on(n.children,o,l,t);case Pa:i=8,o|=8;break;case ki:return e=Fe(12,n,t,o|2),e.elementType=ki,e.lanes=l,e;case Si:return e=Fe(13,n,t,o),e.elementType=Si,e.lanes=l,e;case Ci:return e=Fe(19,n,t,o),e.elementType=Ci,e.lanes=l,e;case $c:return El(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Tc:i=10;break e;case Rc:i=9;break e;case Ma:i=11;break e;case ja:i=14;break e;case _t:i=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=Fe(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function on(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=$c,e.lanes=n,e.stateNode={isHidden:!1},e}function ui(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function ci(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qh(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vl(0),this.expirationTimes=Vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ds(e,t,n,r,o,l,i,a,s){return e=new qh(e,t,n,a,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Fe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ga(l),e}function ev(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Df)}catch(e){console.error(e)}}Df(),Pc.exports=Le;var Of=Pc.exports,Qu=Of;xi.createRoot=Qu.createRoot,xi.hydrateRoot=Qu.hydrateRoot;/** + * @remix-run/router v1.16.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 Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function hs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iv(){return Math.random().toString(36).substr(2,8)}function Ku(e,t){return{usr:e.state,key:e.key,idx:t}}function fa(e,t,n,r){return n===void 0&&(n=null),Wr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mn(t):t,{state:n,key:t&&t.key||r||iv()})}function dl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function mn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function av(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,i=o.history,a=Ot.Pop,s=null,u=c();u==null&&(u=0,i.replaceState(Wr({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){a=Ot.Pop;let k=c(),h=k==null?null:k-u;u=k,s&&s({action:a,location:w.location,delta:h})}function m(k,h){a=Ot.Push;let p=fa(w.location,k,h);n&&n(p,k),u=c()+1;let v=Ku(p,u),S=w.createHref(p);try{i.pushState(v,"",S)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(S)}l&&s&&s({action:a,location:w.location,delta:1})}function g(k,h){a=Ot.Replace;let p=fa(w.location,k,h);n&&n(p,k),u=c();let v=Ku(p,u),S=w.createHref(p);i.replaceState(v,"",S),l&&s&&s({action:a,location:w.location,delta:0})}function x(k){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof k=="string"?k:dl(k);return p=p.replace(/ $/,"%20"),oe(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let w={get action(){return a},get location(){return e(o,i)},listen(k){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Gu,d),s=k,()=>{o.removeEventListener(Gu,d),s=null}},createHref(k){return t(o,k)},createURL:x,encodeLocation(k){let h=x(k);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:g,go(k){return i.go(k)}};return w}var Xu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Xu||(Xu={}));function sv(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?mn(t):t,o=vs(r.pathname||"/",n);if(o==null)return null;let l=Tf(e);uv(l);let i=null;for(let a=0;i==null&&a{let s={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};s.relativePath.startsWith("/")&&(oe(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Wt([r,s.relativePath]),c=n.concat(s);l.children&&l.children.length>0&&(oe(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Tf(l.children,t,c,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:vv(u,l.index),routesMeta:c})};return e.forEach((l,i)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))o(l,i);else for(let s of Rf(l.path))o(l,i,s)}),t}function Rf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let i=Rf(r.join("/")),a=[];return a.push(...i.map(s=>s===""?l:[l,s].join("/"))),o&&a.push(...i),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function uv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const cv=/^:[\w-]+$/,dv=3,fv=2,pv=1,mv=10,hv=-2,Ju=e=>e==="*";function vv(e,t){let n=e.split("/"),r=n.length;return n.some(Ju)&&(r+=hv),t&&(r+=fv),n.filter(o=>!Ju(o)).reduce((o,l)=>o+(cv.test(l)?dv:l===""?pv:mv),r)}function gv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function yv(e,t){let{routesMeta:n}=e,r={},o="/",l=[];for(let i=0;i{let{paramName:m,isOptional:g}=c;if(m==="*"){let w=a[d]||"";i=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const x=a[d];return g&&!x?u[m]=void 0:u[m]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:i,pattern:e}}function wv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),hs(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function kv(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return hs(!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 vs(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Sv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?mn(e):e;return{pathname:n?n.startsWith("/")?n:Cv(n,t):t,search:_v(r),hash:Ev(o)}}function Cv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function di(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function bv(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $f(e,t){let n=bv(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Lf(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=mn(e):(o=Wr({},e),oe(!o.pathname||!o.pathname.includes("?"),di("?","pathname","search",o)),oe(!o.pathname||!o.pathname.includes("#"),di("#","pathname","hash",o)),oe(!o.search||!o.search.includes("#"),di("#","search","hash",o)));let l=e===""||o.pathname==="",i=l?"/":o.pathname,a;if(i==null)a=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),d-=1;o.pathname=m.join("/")}a=d>=0?t[d]:"/"}let s=Sv(o,a),u=i&&i!=="/"&&i.endsWith("/"),c=(l||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const Wt=e=>e.join("/").replace(/\/\/+/g,"/"),Nv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_v=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ev=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Pv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const If=["post","put","patch","delete"];new Set(If);const Mv=["get",...If];new Set(Mv);/** + * React Router v6.23.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 Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=Lf(u,JSON.parse(i),l,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Wt([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,i,l,e])}function Ff(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(hn),{matches:o}=y.useContext(vn),{pathname:l}=Tl(),i=JSON.stringify($f(o,r.v7_relativeSplatPath));return y.useMemo(()=>Lf(e,JSON.parse(i),l,n==="path"),[e,i,l,n])}function Rv(e,t){return $v(e,t)}function $v(e,t,n,r){Jr()||oe(!1);let{navigator:o}=y.useContext(hn),{matches:l}=y.useContext(vn),i=l[l.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let u=Tl(),c;if(t){var d;let k=typeof t=="string"?mn(t):t;s==="/"||(d=k.pathname)!=null&&d.startsWith(s)||oe(!1),c=k}else c=u;let m=c.pathname||"/",g=m;if(s!=="/"){let k=s.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(k.length).join("/")}let x=sv(e,{pathname:g}),w=Fv(x&&x.map(k=>Object.assign({},k,{params:Object.assign({},a,k.params),pathname:Wt([s,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?s:Wt([s,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),l,n,r);return t&&w?y.createElement(Ol.Provider,{value:{location:Ur({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ot.Pop}},w):w}function Lv(){let e=Vv(),t=Pv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const Iv=y.createElement(Lv,null);class zv extends y.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(vn.Provider,{value:this.props.routeContext},y.createElement(zf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Av(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(gs);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(vn.Provider,{value:t},r)}function Fv(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||oe(!1),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,d,m)=>{let g,x=!1,w=null,k=null;n&&(g=a&&d.route.id?a[d.route.id]:void 0,w=d.route.errorElement||Iv,s&&(u<0&&m===0?(Yv("route-fallback",!1),x=!0,k=null):u===m&&(x=!0,k=d.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,m+1)),p=()=>{let v;return g?v=w:x?v=k:d.route.Component?v=y.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,y.createElement(Av,{match:d,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?y.createElement(zv,{location:n.location,revalidation:n.revalidation,component:w,error:g,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Wf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Wf||{}),fl=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}(fl||{});function Wv(e){let t=y.useContext(gs);return t||oe(!1),t}function Uv(e){let t=y.useContext(jv);return t||oe(!1),t}function Bv(e){let t=y.useContext(vn);return t||oe(!1),t}function Uf(e){let t=Bv(),n=t.matches[t.matches.length-1];return n.route.id||oe(!1),n.route.id}function Vv(){var e;let t=y.useContext(zf),n=Uv(fl.UseRouteError),r=Uf(fl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Hv(){let{router:e}=Wv(Wf.UseNavigateStable),t=Uf(fl.UseNavigateStable),n=y.useRef(!1);return Af(()=>{n.current=!0}),y.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ur({fromRouteId:t},l)))},[e,t])}const Zu={};function Yv(e,t,n){!t&&!Zu[e]&&(Zu[e]=!0)}function kn(e){oe(!1)}function Qv(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ot.Pop,navigator:l,static:i=!1,future:a}=e;Jr()&&oe(!1);let s=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:s,navigator:l,static:i,future:Ur({v7_relativeSplatPath:!1},a)}),[s,a,l,i]);typeof r=="string"&&(r=mn(r));let{pathname:c="/",search:d="",hash:m="",state:g=null,key:x="default"}=r,w=y.useMemo(()=>{let k=vs(c,s);return k==null?null:{location:{pathname:k,search:d,hash:m,state:g,key:x},navigationType:o}},[s,c,d,m,g,x,o]);return w==null?null:y.createElement(hn.Provider,{value:u},y.createElement(Ol.Provider,{children:n,value:w}))}function Gv(e){let{children:t,location:n}=e;return Rv(pa(t),n)}new Promise(()=>{});function pa(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;let l=[...t,o];if(r.type===y.Fragment){n.push.apply(n,pa(r.props.children,l));return}r.type!==kn&&oe(!1),!r.props.index||!r.props.children||oe(!1);let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=pa(r.props.children,l)),n.push(i)}),n}/** + * React Router DOM v6.23.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 ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Xv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jv(e,t){return e.button===0&&(!t||t==="_self")&&!Xv(e)}const Zv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],qv="6";try{window.__reactRouterVersion=qv}catch{}const e0="startTransition",qu=_c[e0];function t0(e){let{basename:t,children:n,future:r,window:o}=e,l=y.useRef();l.current==null&&(l.current=lv({window:o,v5Compat:!0}));let i=l.current,[a,s]=y.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&qu?qu(()=>s(d)):s(d)},[s,u]);return y.useLayoutEffect(()=>i.listen(c),[i,c]),y.createElement(Qv,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const n0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mr=y.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:l,replace:i,state:a,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,m=Kv(t,Zv),{basename:g}=y.useContext(hn),x,w=!1;if(typeof u=="string"&&r0.test(u)&&(x=u,n0))try{let v=new URL(window.location.href),S=u.startsWith("//")?new URL(v.protocol+u):new URL(u),N=vs(S.pathname,g);S.origin===v.origin&&N!=null?u=N+S.search+S.hash:w=!0}catch{}let k=Dv(u,{relative:o}),h=o0(u,{replace:i,state:a,target:s,preventScrollReset:c,relative:o,unstable_viewTransition:d});function p(v){r&&r(v),v.defaultPrevented||h(v)}return y.createElement("a",ma({},m,{href:x||k,onClick:w||l?r:p,ref:n,target:s}))});var ec;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ec||(ec={}));var tc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tc||(tc={}));function o0(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:i,unstable_viewTransition:a}=t===void 0?{}:t,s=Ov(),u=Tl(),c=Ff(e,{relative:i});return y.useCallback(d=>{if(Jv(d,n)){d.preventDefault();let m=r!==void 0?r:dl(u)===dl(c);s(e,{replace:m,state:o,preventScrollReset:l,relative:i,unstable_viewTransition:a})}},[u,s,c,r,o,n,e,l,i,a])}function Bf(){document.body.classList.toggle("bg-[#181a1b]");const e=document.documentElement.classList.toggle("dark");localStorage.setItem("isDarkMode",JSON.stringify(e))}function Vf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ta(l)))==null?void 0:i.classGroupId}const nc=/^\[(.+)\]$/;function a0(e){if(nc.test(e)){const t=nc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function s0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return c0(Object.entries(e.classGroups),n).forEach(([l,i])=>{ha(i,r,l,t)}),r}function ha(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:rc(t,o);l.classGroupId=n;return}if(typeof o=="function"){if(u0(o)){ha(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,i])=>{ha(i,rc(t,l),n,r)})})}function rc(e,t){let n=e;return t.split(ys).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function u0(e){return e.isThemeGetter}function c0(e,t){return t?e.map(([n,r])=>{const o=r.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([i,a])=>[t+i,a])):l);return[n,o]}):e}function d0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(l,i){n.set(l,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(l){let i=n.get(l);if(i!==void 0)return i;if((i=r.get(l))!==void 0)return o(l,i),i},set(l,i){n.has(l)?n.set(l,i):o(l,i)}}}const Yf="!";function f0(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(i){const a=[];let s=0,u=0,c;for(let w=0;wu?c-u:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:x}}}function p0(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function m0(e){return{cache:d0(e.cacheSize),splitModifiers:f0(e),...i0(e)}}const h0=/\s+/;function v0(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,l=new Set;return e.trim().split(h0).map(i=>{const{modifiers:a,hasImportantModifier:s,baseClassName:u,maybePostfixModifierPosition:c}=n(i);let d=r(c?u.substring(0,c):u),m=!!c;if(!d){if(!c)return{isTailwindClass:!1,originalClassName:i};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:i};m=!1}const g=p0(a).join(":");return{isTailwindClass:!0,modifierId:s?g+Yf:g,classGroupId:d,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:s,hasPostfixModifier:u}=i,c=a+s;return l.has(c)?!1:(l.add(c),o(s,u).forEach(d=>l.add(a+d)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function g0(){let e=0,t,n,r="";for(;ed(c),e());return n=m0(u),r=n.cache.get,o=n.cache.set,l=a,a(s)}function a(s){const u=r(s);if(u)return u;const c=v0(s,n);return o(s,c),c}return function(){return l(g0.apply(null,arguments))}}function Q(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Gf=/^\[(?:([a-z-]+):)?(.+)\]$/i,x0=/^\d+\/\d+$/,w0=new Set(["px","full","screen"]),k0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,C0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,b0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ut(e){return nn(e)||w0.has(e)||x0.test(e)}function Ct(e){return Jn(e,"length",T0)}function nn(e){return!!e&&!Number.isNaN(Number(e))}function Co(e){return Jn(e,"number",nn)}function ir(e){return!!e&&Number.isInteger(Number(e))}function _0(e){return e.endsWith("%")&&nn(e.slice(0,-1))}function L(e){return Gf.test(e)}function bt(e){return k0.test(e)}const E0=new Set(["length","size","percentage"]);function P0(e){return Jn(e,E0,Kf)}function M0(e){return Jn(e,"position",Kf)}const j0=new Set(["image","url"]);function D0(e){return Jn(e,j0,$0)}function O0(e){return Jn(e,"",R0)}function ar(){return!0}function Jn(e,t,n){const r=Gf.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function T0(e){return S0.test(e)&&!C0.test(e)}function Kf(){return!1}function R0(e){return b0.test(e)}function $0(e){return N0.test(e)}function L0(){const e=Q("colors"),t=Q("spacing"),n=Q("blur"),r=Q("brightness"),o=Q("borderColor"),l=Q("borderRadius"),i=Q("borderSpacing"),a=Q("borderWidth"),s=Q("contrast"),u=Q("grayscale"),c=Q("hueRotate"),d=Q("invert"),m=Q("gap"),g=Q("gradientColorStops"),x=Q("gradientColorStopPositions"),w=Q("inset"),k=Q("margin"),h=Q("opacity"),p=Q("padding"),v=Q("saturate"),S=Q("scale"),N=Q("sepia"),_=Q("skew"),E=Q("space"),M=Q("translate"),W=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",L,t],F=()=>[L,t],qe=()=>["",ut,Ct],st=()=>["auto",nn,L],yn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],et=()=>["solid","dashed","dotted","double","none"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",L],R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[nn,Co],J=()=>[nn,L];return{cacheSize:500,separator:":",theme:{colors:[ar],spacing:[ut,Ct],blur:["none","",bt,L],brightness:U(),borderColor:[e],borderRadius:["none","","full",bt,L],borderSpacing:F(),borderWidth:qe(),contrast:U(),grayscale:D(),hueRotate:J(),invert:D(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[_0,Ct],inset:de(),margin:de(),opacity:U(),padding:F(),saturate:U(),scale:U(),sepia:D(),skew:J(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[bt]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...yn(),L]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ir,L]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",ir,L]}],"grid-cols":[{"grid-cols":[ar]}],"col-start-end":[{col:["auto",{span:["full",ir,L]},L]}],"col-start":[{"col-start":st()}],"col-end":[{"col-end":st()}],"grid-rows":[{"grid-rows":[ar]}],"row-start-end":[{row:["auto",{span:[ir,L]},L]}],"row-start":[{"row-start":st()}],"row-end":[{"row-end":st()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",L,t]}],"min-w":[{"min-w":[L,t,"min","max","fit"]}],"max-w":[{"max-w":[L,t,"none","full","min","max","fit","prose",{screen:[bt]},bt]}],h:[{h:[L,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bt,Ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Co]}],"font-family":[{font:[ar]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",L]}],"line-clamp":[{"line-clamp":["none",nn,Co]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ut,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...et(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ut,Ct]}],"underline-offset":[{"underline-offset":["auto",ut,L]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...yn(),M0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",P0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},D0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...et(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:et()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...et()]}],"outline-offset":[{"outline-offset":[ut,L]}],"outline-w":[{outline:[ut,Ct]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:qe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[ut,Ct]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bt,O0]}],"shadow-color":[{shadow:[ar]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",bt,L]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ir,L]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ut,Ct,Co]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const I0=y0(L0);function ht(...e){return I0(l0(e))}function z0({className:e,...t}){return f.jsx("div",{className:ht("animate-pulse rounded-md bg-primary/10",e),...t})}const Xf=()=>{const[e,t]=y.useState(""),[n,r]=y.useState(!1);return y.useEffect(()=>{const o=setInterval(()=>{const l=new Date,i=l.getHours().toString().padStart(2,"0"),a=l.getMinutes().toString().padStart(2,"0"),s=l.getSeconds().toString().padStart(2,"0");t(`${i}:${a}:${s}`)},1e3);return()=>clearInterval(o)},[]),y.useEffect(()=>{const o=setTimeout(()=>{r(!0)},1e3);return()=>clearTimeout(o)},[]),f.jsxs("div",{children:[n&&f.jsx("div",{children:e}),!n&&f.jsx(z0,{className:"mt-[4px] h-[28px] w-[80px] rounded-full"})]})},A0=()=>f.jsxs("header",{className:"my-12 flex flex-col justify-center text-center sm:mt-24",children:[f.jsxs("div",{className:"flex justify-center gap-2",children:[f.jsx("h1",{className:"mb-2 font-sarabun text-7xl font-semibold text-[#7f0102] dark:text-red-400",children:"Zen"}),f.jsx("div",{className:"relative flex items-center",children:f.jsxs("button",{onClick:Bf,className:"text-6xl",children:["❖",f.jsx("div",{className:"absolute left-8 top-11",children:f.jsx("svg",{className:"cursor",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#999",children:f.jsx("path",{d:"M19.221 10.803 12 10V4a2 2 0 0 0-4 0v12l-3.031-1.212a2 2 0 0 0-2.64 1.225l-.113.34a.998.998 0 0 0 .309 1.084l5.197 4.332c.179.149.406.231.64.231H19a2 2 0 0 0 2-2v-7.21a2 2 0 0 0-1.779-1.987z"})})})]})})]}),f.jsx("p",{className:"mb-2 font-sarabun text-3xl font-extralight text-[#7f0102] dark:text-red-400",children:"Management app"}),f.jsx("div",{className:"flex justify-center text-2xl font-extralight",children:f.jsx(Xf,{})})]}),F0=()=>f.jsxs("nav",{children:[f.jsx("p",{className:"mb-6 flex justify-center text-3xl font-light",children:"Select Option"}),f.jsxs("div",{className:"mb-16 flex flex-wrap items-center justify-center gap-6",children:[f.jsx("div",{className:"flex w-fit items-center rounded-md border border-black shadow-md transition-all hover:scale-110 dark:border-[#ccc]",children:f.jsx(mr,{to:"/todo",className:"p-12",children:f.jsxs("svg",{className:"box",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#999",width:"64",height:"64",children:[f.jsx("path",{d:"M5 22h14c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2h-2a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1H5c-1.103 0-2 .897-2 2v15c0 1.103.897 2 2 2zM5 5h2v2h10V5h2v15H5V5z"}),f.jsx("path",{d:"m11 13.586-1.793-1.793-1.414 1.414L11 16.414l5.207-5.207-1.414-1.414z"})]})})}),f.jsx("div",{className:"flex w-fit items-center rounded-md border border-black shadow-md transition-all hover:scale-110 dark:border-[#ccc]",children:f.jsx(mr,{to:"/notes",className:"p-12",children:f.jsxs("svg",{className:"box",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#999",width:"64",height:"64",children:[f.jsx("path",{d:"M19 4h-3V2h-2v2h-4V2H8v2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zM5 20V7h14V6l.002 14H5z"}),f.jsx("path",{d:"M7 9h10v2H7zm0 4h5v2H7z"})]})})}),f.jsx("div",{className:"flex w-fit items-center rounded-md border border-black shadow-md transition-all hover:scale-110 dark:border-[#ccc]",children:f.jsx(mr,{to:"/timer",className:"p-12",children:f.jsxs("svg",{className:"box",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#999",width:"64",height:"64",children:[f.jsx("path",{d:"M12 5c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8zm0 14c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6z"}),f.jsx("path",{d:"M11 9h2v5h-2zM9 2h6v2H9zm10.293 5.707-2-2 1.414-1.414 2 2z"})]})})}),f.jsx("div",{className:"flex w-fit items-center rounded-md border border-black shadow-md transition-all hover:scale-110 dark:border-[#ccc]",children:f.jsx(mr,{to:"/pomodoro",className:"p-12",children:f.jsxs("svg",{className:"box",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#999",width:"64",height:"64",children:[f.jsx("path",{d:"m21.707 11.293-2-2L19 8.586V6a1 1 0 0 0-1-1h-2.586l-.707-.707-2-2a.999.999 0 0 0-1.414 0l-2 2L8.586 5H6a1 1 0 0 0-1 1v2.586l-.707.707-2 2a.999.999 0 0 0 0 1.414l2 2 .707.707V18a1 1 0 0 0 1 1h2.586l.707.707 2 2a.997.997 0 0 0 1.414 0l2-2 .707-.707H18a1 1 0 0 0 1-1v-2.586l.707-.707 2-2a.999.999 0 0 0 0-1.414zm-4.414 3-.293.293V17h-2.414l-.293.293-1 1L12 19.586l-1.293-1.293-1-1L9.414 17H7v-2.414l-.293-.293-1-1L4.414 12l1.293-1.293 1-1L7 9.414V7h2.414l.293-.293 1-1L12 4.414l1.293 1.293 1 1 .293.293H17v2.414l.293.293 1 1L19.586 12l-1.293 1.293-1 1z"}),f.jsx("path",{d:"M12 8v8c2.206 0 4-1.794 4-4s-1.794-4-4-4z"})]})})})]})]});function xs(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,l;for(l=0;l=0)&&(n[o]=e[o]);return n}var W0=["color"],U0=y.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=xs(e,W0);return y.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),y.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),B0=["color"],V0=y.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=xs(e,B0);return y.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),y.createElement("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),H0=["color"],Y0=y.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=xs(e,H0);return y.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),y.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function A(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function $e(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function we(e,t){const n=A(e);return isNaN(t)?$e(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Je(e,t){const n=A(e);if(isNaN(t))return $e(e,NaN);if(!t)return n;const r=n.getDate(),o=$e(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);const l=o.getDate();return r>=l?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}const ws=6048e5,Q0=864e5;let G0={};function Zr(){return G0}function at(e,t){var a,s,u,c;const n=Zr(),r=(t==null?void 0:t.weekStartsOn)??((s=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:s.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,o=A(e),l=o.getDay(),i=(l=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Qn(e){const t=A(e);return t.setHours(0,0,0,0),t}function pl(e){const t=A(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ot(e,t){const n=Qn(e),r=Qn(t),o=+n-pl(n),l=+r-pl(r);return Math.round((o-l)/Q0)}function K0(e){const t=Jf(e),n=$e(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),dn(n)}function va(e,t){const n=t*7;return we(e,n)}function X0(e,t){return Je(e,t*12)}function J0(e){let t;return e.forEach(function(n){const r=A(n);(t===void 0||t{const r=A(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function _e(e,t){const n=Qn(e),r=Qn(t);return+n==+r}function ks(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function q0(e){if(!ks(e)&&typeof e!="number")return!1;const t=A(e);return!isNaN(Number(t))}function Br(e,t){const n=A(e),r=A(t),o=n.getFullYear()-r.getFullYear(),l=n.getMonth()-r.getMonth();return o*12+l}function eg(e,t,n){const r=at(e,n),o=at(t,n),l=+r-pl(r),i=+o-pl(o);return Math.round((l-i)/ws)}function Ss(e){const t=A(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function je(e){const t=A(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Zf(e){const t=A(e),n=$e(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Cs(e,t){var a,s,u,c;const n=Zr(),r=(t==null?void 0:t.weekStartsOn)??((s=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:s.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,o=A(e),l=o.getDay(),i=(l{let r;const o=tg[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function fi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const rg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},og={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ig={date:fi({formats:rg,defaultWidth:"full"}),time:fi({formats:og,defaultWidth:"full"}),dateTime:fi({formats:lg,defaultWidth:"full"})},ag={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sg=(e,t,n,r)=>ag[e];function sr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[i]}const l=e.argumentCallback?e.argumentCallback(t):t;return o[l]}}const ug={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cg={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dg={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"]},fg={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"]},pg={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"}},mg={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"}},hg=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},vg={ordinalNumber:hg,era:sr({values:ug,defaultWidth:"wide"}),quarter:sr({values:cg,defaultWidth:"wide",argumentCallback:e=>e-1}),month:sr({values:dg,defaultWidth:"wide"}),day:sr({values:fg,defaultWidth:"wide"}),dayPeriod:sr({values:pg,defaultWidth:"wide",formattingValues:mg,defaultFormattingWidth:"wide"})};function ur(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(o);if(!l)return null;const i=l[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?yg(a,d=>d.test(i)):gg(a,d=>d.test(i));let u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(i.length);return{value:u,rest:c}}}function gg(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function yg(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],l=t.match(e.parsePattern);if(!l)return null;let i=e.valueCallback?e.valueCallback(l[0]):l[0];i=n.valueCallback?n.valueCallback(i):i;const a=t.slice(o.length);return{value:i,rest:a}}}const wg=/^(\d+)(th|st|nd|rd)?/i,kg=/\d+/i,Sg={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},Cg={any:[/^b/i,/^(a|c)/i]},bg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ng={any:[/1/i,/2/i,/3/i,/4/i]},_g={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},Eg={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]},Pg={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},Mg={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]},jg={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},Dg={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}},Og={ordinalNumber:xg({matchPattern:wg,parsePattern:kg,valueCallback:e=>parseInt(e,10)}),era:ur({matchPatterns:Sg,defaultMatchWidth:"wide",parsePatterns:Cg,defaultParseWidth:"any"}),quarter:ur({matchPatterns:bg,defaultMatchWidth:"wide",parsePatterns:Ng,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ur({matchPatterns:_g,defaultMatchWidth:"wide",parsePatterns:Eg,defaultParseWidth:"any"}),day:ur({matchPatterns:Pg,defaultMatchWidth:"wide",parsePatterns:Mg,defaultParseWidth:"any"}),dayPeriod:ur({matchPatterns:jg,defaultMatchWidth:"any",parsePatterns:Dg,defaultParseWidth:"any"})},ep={code:"en-US",formatDistance:ng,formatLong:ig,formatRelative:sg,localize:vg,match:Og,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Tg(e){const t=A(e);return ot(t,Zf(t))+1}function tp(e){const t=A(e),n=+dn(t)-+K0(t);return Math.round(n/ws)+1}function np(e,t){var c,d,m,g;const n=A(e),r=n.getFullYear(),o=Zr(),l=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(m=o.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,i=$e(e,0);i.setFullYear(r+1,0,l),i.setHours(0,0,0,0);const a=at(i,t),s=$e(e,0);s.setFullYear(r,0,l),s.setHours(0,0,0,0);const u=at(s,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Rg(e,t){var a,s,u,c;const n=Zr(),r=(t==null?void 0:t.firstWeekContainsDate)??((s=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:s.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,o=np(e,t),l=$e(e,0);return l.setFullYear(o,0,r),l.setHours(0,0,0,0),at(l,t)}function rp(e,t){const n=A(e),r=+at(n,t)-+Rg(n,t);return Math.round(r/ws)+1}function B(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Nt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return B(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):B(n+1,2)},d(e,t){return B(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return B(e.getHours()%12||12,t.length)},H(e,t){return B(e.getHours(),t.length)},m(e,t){return B(e.getMinutes(),t.length)},s(e,t){return B(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return B(o,t.length)}},wn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},oc={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Nt.y(e,t)},Y:function(e,t,n,r){const o=np(e,r),l=o>0?o:1-o;if(t==="YY"){const i=l%100;return B(i,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):B(l,t.length)},R:function(e,t){const n=Jf(e);return B(n,t.length)},u:function(e,t){const n=e.getFullYear();return B(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return B(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return B(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Nt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return B(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=rp(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):B(o,t.length)},I:function(e,t,n){const r=tp(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):B(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Nt.d(e,t)},D:function(e,t,n){const r=Tg(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):B(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),l=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return B(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),l=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return B(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return B(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=wn.noon:r===0?o=wn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=wn.evening:r>=12?o=wn.afternoon:r>=4?o=wn.morning:o=wn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Nt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Nt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):B(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):B(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Nt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Nt.s(e,t)},S:function(e,t){return Nt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return ic(r);case"XXXX":case"XX":return Zt(r);case"XXXXX":case"XXX":default:return Zt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ic(r);case"xxxx":case"xx":return Zt(r);case"xxxxx":case"xxx":default:return Zt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+lc(r,":");case"OOOO":default:return"GMT"+Zt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+lc(r,":");case"zzzz":default:return"GMT"+Zt(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return B(r,t.length)},T:function(e,t,n){const r=e.getTime();return B(r,t.length)}};function lc(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),l=r%60;return l===0?n+String(o):n+String(o)+t+B(l,2)}function ic(e,t){return e%60===0?(e>0?"-":"+")+B(Math.abs(e)/60,2):Zt(e,t)}function Zt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=B(Math.trunc(r/60),2),l=B(r%60,2);return n+o+t+l}const ac=(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"})}},op=(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"})}},$g=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ac(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",ac(r,t)).replace("{{time}}",op(o,t))},Lg={p:op,P:$g},Ig=/^D+$/,zg=/^Y+$/,Ag=["D","DD","YY","YYYY"];function Fg(e){return Ig.test(e)}function Wg(e){return zg.test(e)}function Ug(e,t,n){const r=Bg(e,t,n);if(console.warn(r),Ag.includes(e))throw new RangeError(r)}function Bg(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Vg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yg=/^'([^]*?)'?$/,Qg=/''/g,Gg=/[a-zA-Z]/;function gn(e,t,n){var c,d,m,g,x,w,k,h;const r=Zr(),o=(n==null?void 0:n.locale)??r.locale??ep,l=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((w=(x=n==null?void 0:n.locale)==null?void 0:x.options)==null?void 0:w.weekStartsOn)??r.weekStartsOn??((h=(k=r.locale)==null?void 0:k.options)==null?void 0:h.weekStartsOn)??0,a=A(e);if(!q0(a))throw new RangeError("Invalid time value");let s=t.match(Hg).map(p=>{const v=p[0];if(v==="p"||v==="P"){const S=Lg[v];return S(p,o.formatLong)}return p}).join("").match(Vg).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const v=p[0];if(v==="'")return{isToken:!1,value:Kg(p)};if(oc[v])return{isToken:!0,value:p};if(v.match(Gg))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:p}});o.localize.preprocessor&&(s=o.localize.preprocessor(a,s));const u={firstWeekContainsDate:l,weekStartsOn:i,locale:o};return s.map(p=>{if(!p.isToken)return p.value;const v=p.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Wg(v)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Fg(v))&&Ug(v,t,String(e));const S=oc[v[0]];return S(a,v,o.localize,u)}).join("")}function Kg(e){const t=e.match(Yg);return t?t[1].replace(Qg,"'"):e}function Xg(e){const t=A(e),n=t.getFullYear(),r=t.getMonth(),o=$e(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function Jg(e){return Math.trunc(+A(e)/1e3)}function Zg(e){const t=A(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function qg(e,t){return eg(Zg(e),je(e),t)+1}function ga(e,t){const n=A(e),r=A(t);return n.getTime()>r.getTime()}function lp(e,t){const n=A(e),r=A(t);return+n<+r}function bs(e,t){const n=A(e),r=A(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function e1(e,t){const n=A(e),r=A(t);return n.getFullYear()===r.getFullYear()}function pi(e,t){return we(e,-t)}function mi(e,t){const n=A(e),r=n.getFullYear(),o=n.getDate(),l=$e(e,0);l.setFullYear(r,t,15),l.setHours(0,0,0,0);const i=Xg(l);return n.setMonth(t,Math.min(o,i)),n}function sc(e,t){const n=A(e);return isNaN(+n)?$e(e,NaN):(n.setFullYear(t),n)}var O=function(){return O=Object.assign||function(t){for(var n,r=1,o=arguments.length;r1&&(s||!u),d=t>1&&(u||!s),m=function(){r&&l(r)},g=function(){o&&l(o)};return f.jsx(T1,{displayMonth:e.displayMonth,hideNext:c,hidePrevious:d,nextMonth:o,previousMonth:r,onPreviousClick:m,onNextClick:g})}function R1(e){var t,n=Y(),r=n.classNames,o=n.disableNavigation,l=n.styles,i=n.captionLayout,a=n.components,s=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:sp,u;return o?u=f.jsx(s,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?u=f.jsx(uc,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?u=f.jsxs(f.Fragment,{children:[f.jsx(uc,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),f.jsx(cc,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=f.jsxs(f.Fragment,{children:[f.jsx(s,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),f.jsx(cc,{displayMonth:e.displayMonth,id:e.id})]}),f.jsx("div",{className:r.caption,style:l.caption,children:u})}function $1(e){var t=Y(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?f.jsx("tfoot",{className:o,style:r.tfoot,children:f.jsx("tr",{children:f.jsx("td",{colSpan:8,children:n})})}):f.jsx(f.Fragment,{})}function L1(e,t,n){for(var r=n?dn(new Date):at(new Date,{locale:e,weekStartsOn:t}),o=[],l=0;l<7;l++){var i=we(r,l);o.push(i)}return o}function I1(){var e=Y(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,l=e.weekStartsOn,i=e.ISOWeek,a=e.formatters.formatWeekdayName,s=e.labels.labelWeekday,u=L1(o,l,i);return f.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&f.jsx("td",{style:n.head_cell,className:t.head_cell}),u.map(function(c,d){return f.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":s(c,{locale:o}),children:a(c,{locale:o})},d)})]})}function z1(){var e,t=Y(),n=t.classNames,r=t.styles,o=t.components,l=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:I1;return f.jsx("thead",{style:r.head,className:n.head,children:f.jsx(l,{})})}function A1(e){var t=Y(),n=t.locale,r=t.formatters.formatDay;return f.jsx(f.Fragment,{children:r(e.date,{locale:n})})}var Ns=y.createContext(void 0);function F1(e){if(!qr(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return f.jsx(Ns.Provider,{value:t,children:e.children})}return f.jsx(W1,{initialProps:e.initialProps,children:e.children})}function W1(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,l=t.max,i=function(u,c,d){var m,g;(m=t.onDayClick)===null||m===void 0||m.call(t,u,c,d);var x=!!(c.selected&&o&&(r==null?void 0:r.length)===o);if(!x){var w=!!(!c.selected&&l&&(r==null?void 0:r.length)===l);if(!w){var k=r?ip([],r,!0):[];if(c.selected){var h=k.findIndex(function(p){return _e(u,p)});k.splice(h,1)}else k.push(u);(g=t.onSelect)===null||g===void 0||g.call(t,k,u,c,d)}}},a={disabled:[]};r&&a.disabled.push(function(u){var c=l&&r.length>l-1,d=r.some(function(m){return _e(m,u)});return!!(c&&!d)});var s={selected:r,onDayClick:i,modifiers:a};return f.jsx(Ns.Provider,{value:s,children:n})}function _s(){var e=y.useContext(Ns);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function U1(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?_e(o,e)&&_e(r,e)?void 0:_e(o,e)?{from:o,to:void 0}:_e(r,e)?void 0:ga(r,e)?{from:e,to:o}:{from:r,to:e}:o?ga(e,o)?{from:o,to:e}:{from:e,to:o}:r?lp(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var Es=y.createContext(void 0);function B1(e){if(!eo(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return f.jsx(Es.Provider,{value:t,children:e.children})}return f.jsx(V1,{initialProps:e.initialProps,children:e.children})}function V1(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},l=o.from,i=o.to,a=t.min,s=t.max,u=function(g,x,w){var k,h;(k=t.onDayClick)===null||k===void 0||k.call(t,g,x,w);var p=U1(g,r);(h=t.onSelect)===null||h===void 0||h.call(t,p,g,x,w)},c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(l?(c.range_start=[l],i?(c.range_end=[i],_e(l,i)||(c.range_middle=[{after:l,before:i}])):c.range_end=[l]):i&&(c.range_start=[i],c.range_end=[i]),a&&(l&&!i&&c.disabled.push({after:pi(l,a-1),before:we(l,a-1)}),l&&i&&c.disabled.push({after:l,before:we(l,a-1)}),!l&&i&&c.disabled.push({after:pi(i,a-1),before:we(i,a-1)})),s){if(l&&!i&&(c.disabled.push({before:we(l,-s+1)}),c.disabled.push({after:we(l,s-1)})),l&&i){var d=ot(i,l)+1,m=s-d;c.disabled.push({before:pi(l,m)}),c.disabled.push({after:we(i,m)})}!l&&i&&(c.disabled.push({before:we(i,-s+1)}),c.disabled.push({after:we(i,s-1)}))}return f.jsx(Es.Provider,{value:{selected:r,onDayClick:u,modifiers:c},children:n})}function Ps(){var e=y.useContext(Es);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Io(e){return Array.isArray(e)?ip([],e,!0):e!==void 0?[e]:[]}function H1(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=Io(o)}),t}var Ze;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Ze||(Ze={}));var Y1=Ze.Selected,ct=Ze.Disabled,Q1=Ze.Hidden,G1=Ze.Today,hi=Ze.RangeEnd,vi=Ze.RangeMiddle,gi=Ze.RangeStart,K1=Ze.Outside;function X1(e,t,n){var r,o=(r={},r[Y1]=Io(e.selected),r[ct]=Io(e.disabled),r[Q1]=Io(e.hidden),r[G1]=[e.today],r[hi]=[],r[vi]=[],r[gi]=[],r[K1]=[],r);return e.fromDate&&o[ct].push({before:e.fromDate}),e.toDate&&o[ct].push({after:e.toDate}),qr(e)?o[ct]=o[ct].concat(t.modifiers[ct]):eo(e)&&(o[ct]=o[ct].concat(n.modifiers[ct]),o[gi]=n.modifiers[gi],o[vi]=n.modifiers[vi],o[hi]=n.modifiers[hi]),o}var dp=y.createContext(void 0);function J1(e){var t=Y(),n=_s(),r=Ps(),o=X1(t,n,r),l=H1(t.modifiers),i=O(O({},o),l);return f.jsx(dp.Provider,{value:i,children:e.children})}function fp(){var e=y.useContext(dp);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Z1(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function q1(e){return!!(e&&typeof e=="object"&&"from"in e)}function ey(e){return!!(e&&typeof e=="object"&&"after"in e)}function ty(e){return!!(e&&typeof e=="object"&&"before"in e)}function ny(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function ry(e,t){var n,r=t.from,o=t.to;if(r&&o){var l=ot(o,r)<0;l&&(n=[o,r],r=n[0],o=n[1]);var i=ot(e,r)>=0&&ot(o,e)>=0;return i}return o?_e(o,e):r?_e(r,e):!1}function oy(e){return ks(e)}function ly(e){return Array.isArray(e)&&e.every(ks)}function iy(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(oy(n))return _e(e,n);if(ly(n))return n.includes(e);if(q1(n))return ry(e,n);if(ny(n))return n.dayOfWeek.includes(e.getDay());if(Z1(n)){var r=ot(n.before,e),o=ot(n.after,e),l=r>0,i=o<0,a=ga(n.before,n.after);return a?i&&l:l||i}return ey(n)?ot(e,n.after)>0:ty(n)?ot(n.before,e)>0:typeof n=="function"?n(e):!1})}function Ms(e,t,n){var r=Object.keys(t).reduce(function(l,i){var a=t[i];return iy(e,a)&&l.push(i),l},[]),o={};return r.forEach(function(l){return o[l]=!0}),n&&!bs(e,n)&&(o.outside=!0),o}function ay(e,t){for(var n=je(e[0]),r=Ss(e[e.length-1]),o,l,i=n;i<=r;){var a=Ms(i,t),s=!a.disabled&&!a.hidden;if(!s){i=we(i,1);continue}if(a.selected)return i;a.today&&!l&&(l=i),o||(o=i),i=we(i,1)}return l||o}var sy=365;function pp(e,t){var n=t.moveBy,r=t.direction,o=t.context,l=t.modifiers,i=t.retry,a=i===void 0?{count:0,lastFocused:e}:i,s=o.weekStartsOn,u=o.fromDate,c=o.toDate,d=o.locale,m={day:we,week:va,month:Je,year:X0,startOfWeek:function(k){return o.ISOWeek?dn(k):at(k,{locale:d,weekStartsOn:s})},endOfWeek:function(k){return o.ISOWeek?qf(k):Cs(k,{locale:d,weekStartsOn:s})}},g=m[n](e,r==="after"?1:-1);r==="before"&&u?g=J0([u,g]):r==="after"&&c&&(g=Z0([c,g]));var x=!0;if(l){var w=Ms(g,l);x=!w.disabled&&!w.hidden}return x?g:a.count>sy?a.lastFocused:pp(g,{moveBy:n,direction:r,context:o,modifiers:l,retry:O(O({},a),{count:a.count+1})})}var mp=y.createContext(void 0);function uy(e){var t=to(),n=fp(),r=y.useState(),o=r[0],l=r[1],i=y.useState(),a=i[0],s=i[1],u=ay(t.displayMonths,n),c=o??(a&&t.isDateDisplayed(a))?a:u,d=function(){s(o),l(void 0)},m=function(k){l(k)},g=Y(),x=function(k,h){if(o){var p=pp(o,{moveBy:k,direction:h,context:g,modifiers:n});_e(o,p)||(t.goToDate(p,o),m(p))}},w={focusedDay:o,focusTarget:c,blur:d,focus:m,focusDayAfter:function(){return x("day","after")},focusDayBefore:function(){return x("day","before")},focusWeekAfter:function(){return x("week","after")},focusWeekBefore:function(){return x("week","before")},focusMonthBefore:function(){return x("month","before")},focusMonthAfter:function(){return x("month","after")},focusYearBefore:function(){return x("year","before")},focusYearAfter:function(){return x("year","after")},focusStartOfWeek:function(){return x("startOfWeek","before")},focusEndOfWeek:function(){return x("endOfWeek","after")}};return f.jsx(mp.Provider,{value:w,children:e.children})}function js(){var e=y.useContext(mp);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function cy(e,t){var n=fp(),r=Ms(e,n,t);return r}var Ds=y.createContext(void 0);function dy(e){if(!Rl(e.initialProps)){var t={selected:void 0};return f.jsx(Ds.Provider,{value:t,children:e.children})}return f.jsx(fy,{initialProps:e.initialProps,children:e.children})}function fy(e){var t=e.initialProps,n=e.children,r=function(l,i,a){var s,u,c;if((s=t.onDayClick)===null||s===void 0||s.call(t,l,i,a),i.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,l,i,a);return}(c=t.onSelect)===null||c===void 0||c.call(t,l,l,i,a)},o={selected:t.selected,onDayClick:r};return f.jsx(Ds.Provider,{value:o,children:n})}function hp(){var e=y.useContext(Ds);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function py(e,t){var n=Y(),r=hp(),o=_s(),l=Ps(),i=js(),a=i.focusDayAfter,s=i.focusDayBefore,u=i.focusWeekAfter,c=i.focusWeekBefore,d=i.blur,m=i.focus,g=i.focusMonthBefore,x=i.focusMonthAfter,w=i.focusYearBefore,k=i.focusYearAfter,h=i.focusStartOfWeek,p=i.focusEndOfWeek,v=function(j){var C,D,R,U;Rl(n)?(C=r.onDayClick)===null||C===void 0||C.call(r,e,t,j):qr(n)?(D=o.onDayClick)===null||D===void 0||D.call(o,e,t,j):eo(n)?(R=l.onDayClick)===null||R===void 0||R.call(l,e,t,j):(U=n.onDayClick)===null||U===void 0||U.call(n,e,t,j)},S=function(j){var C;m(e),(C=n.onDayFocus)===null||C===void 0||C.call(n,e,t,j)},N=function(j){var C;d(),(C=n.onDayBlur)===null||C===void 0||C.call(n,e,t,j)},_=function(j){var C;(C=n.onDayMouseEnter)===null||C===void 0||C.call(n,e,t,j)},E=function(j){var C;(C=n.onDayMouseLeave)===null||C===void 0||C.call(n,e,t,j)},M=function(j){var C;(C=n.onDayPointerEnter)===null||C===void 0||C.call(n,e,t,j)},W=function(j){var C;(C=n.onDayPointerLeave)===null||C===void 0||C.call(n,e,t,j)},T=function(j){var C;(C=n.onDayTouchCancel)===null||C===void 0||C.call(n,e,t,j)},de=function(j){var C;(C=n.onDayTouchEnd)===null||C===void 0||C.call(n,e,t,j)},F=function(j){var C;(C=n.onDayTouchMove)===null||C===void 0||C.call(n,e,t,j)},qe=function(j){var C;(C=n.onDayTouchStart)===null||C===void 0||C.call(n,e,t,j)},st=function(j){var C;(C=n.onDayKeyUp)===null||C===void 0||C.call(n,e,t,j)},yn=function(j){var C;switch(j.key){case"ArrowLeft":j.preventDefault(),j.stopPropagation(),n.dir==="rtl"?a():s();break;case"ArrowRight":j.preventDefault(),j.stopPropagation(),n.dir==="rtl"?s():a();break;case"ArrowDown":j.preventDefault(),j.stopPropagation(),u();break;case"ArrowUp":j.preventDefault(),j.stopPropagation(),c();break;case"PageUp":j.preventDefault(),j.stopPropagation(),j.shiftKey?w():g();break;case"PageDown":j.preventDefault(),j.stopPropagation(),j.shiftKey?k():x();break;case"Home":j.preventDefault(),j.stopPropagation(),h();break;case"End":j.preventDefault(),j.stopPropagation(),p();break}(C=n.onDayKeyDown)===null||C===void 0||C.call(n,e,t,j)},et={onClick:v,onFocus:S,onBlur:N,onKeyDown:yn,onKeyUp:st,onMouseEnter:_,onMouseLeave:E,onPointerEnter:M,onPointerLeave:W,onTouchCancel:T,onTouchEnd:de,onTouchMove:F,onTouchStart:qe};return et}function my(){var e=Y(),t=hp(),n=_s(),r=Ps(),o=Rl(e)?t.selected:qr(e)?n.selected:eo(e)?r.selected:void 0;return o}function hy(e){return Object.values(Ze).includes(e)}function vy(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(hy(r)){var l=e.classNames["day_".concat(r)];l&&n.push(l)}}),n}function gy(e,t){var n=O({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=O(O({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function yy(e,t,n){var r,o,l,i=Y(),a=js(),s=cy(e,t),u=py(e,s),c=my(),d=!!(i.onDayClick||i.mode!=="default");y.useEffect(function(){var _;s.outside||a.focusedDay&&d&&_e(a.focusedDay,e)&&((_=n.current)===null||_===void 0||_.focus())},[a.focusedDay,e,n,d,s.outside]);var m=vy(i,s).join(" "),g=gy(i,s),x=!!(s.outside&&!i.showOutsideDays||s.hidden),w=(l=(o=i.components)===null||o===void 0?void 0:o.DayContent)!==null&&l!==void 0?l:A1,k=f.jsx(w,{date:e,displayMonth:t,activeModifiers:s}),h={style:g,className:m,children:k,role:"gridcell"},p=a.focusTarget&&_e(a.focusTarget,e)&&!s.outside,v=a.focusedDay&&_e(a.focusedDay,e),S=O(O(O({},h),(r={disabled:s.disabled,role:"gridcell"},r["aria-selected"]=s.selected,r.tabIndex=v||p?0:-1,r)),u),N={isButton:d,isHidden:x,activeModifiers:s,selectedDays:c,buttonProps:S,divProps:h};return N}function xy(e){var t=y.useRef(null),n=yy(e.date,e.displayMonth,t);return n.isHidden?f.jsx("div",{role:"gridcell"}):n.isButton?f.jsx(ml,O({name:"day",ref:t},n.buttonProps)):f.jsx("div",O({},n.divProps))}function wy(e){var t=e.number,n=e.dates,r=Y(),o=r.onWeekNumberClick,l=r.styles,i=r.classNames,a=r.locale,s=r.labels.labelWeekNumber,u=r.formatters.formatWeekNumber,c=u(Number(t),{locale:a});if(!o)return f.jsx("span",{className:i.weeknumber,style:l.weeknumber,children:c});var d=s(Number(t),{locale:a}),m=function(g){o(t,n,g)};return f.jsx(ml,{name:"week-number","aria-label":d,className:i.weeknumber,style:l.weeknumber,onClick:m,children:c})}function ky(e){var t,n,r=Y(),o=r.styles,l=r.classNames,i=r.showWeekNumber,a=r.components,s=(t=a==null?void 0:a.Day)!==null&&t!==void 0?t:xy,u=(n=a==null?void 0:a.WeekNumber)!==null&&n!==void 0?n:wy,c;return i&&(c=f.jsx("td",{className:l.cell,style:o.cell,children:f.jsx(u,{number:e.weekNumber,dates:e.dates})})),f.jsxs("tr",{className:l.row,style:o.row,children:[c,e.dates.map(function(d){return f.jsx("td",{className:l.cell,style:o.cell,role:"presentation",children:f.jsx(s,{displayMonth:e.displayMonth,date:d})},Jg(d))})]})}function dc(e,t,n){for(var r=n!=null&&n.ISOWeek?qf(t):Cs(t,n),o=n!=null&&n.ISOWeek?dn(e):at(e,n),l=ot(r,o),i=[],a=0;a<=l;a++)i.push(we(o,a));var s=i.reduce(function(u,c){var d=n!=null&&n.ISOWeek?tp(c):rp(c,n),m=u.find(function(g){return g.weekNumber===d});return m?(m.dates.push(c),u):(u.push({weekNumber:d,dates:[c]}),u)},[]);return s}function Sy(e,t){var n=dc(je(e),Ss(e),t);if(t!=null&&t.useFixedWeeks){var r=qg(e,t);if(r<6){var o=n[n.length-1],l=o.dates[o.dates.length-1],i=va(l,6-r),a=dc(va(l,1),i,t);n.push.apply(n,a)}}return n}function Cy(e){var t,n,r,o=Y(),l=o.locale,i=o.classNames,a=o.styles,s=o.hideHead,u=o.fixedWeeks,c=o.components,d=o.weekStartsOn,m=o.firstWeekContainsDate,g=o.ISOWeek,x=Sy(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:g,locale:l,weekStartsOn:d,firstWeekContainsDate:m}),w=(t=c==null?void 0:c.Head)!==null&&t!==void 0?t:z1,k=(n=c==null?void 0:c.Row)!==null&&n!==void 0?n:ky,h=(r=c==null?void 0:c.Footer)!==null&&r!==void 0?r:$1;return f.jsxs("table",{id:e.id,className:i.table,style:a.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!s&&f.jsx(w,{}),f.jsx("tbody",{className:i.tbody,style:a.tbody,children:x.map(function(p){return f.jsx(k,{displayMonth:e.displayMonth,dates:p.dates,weekNumber:p.weekNumber},p.weekNumber)})}),f.jsx(h,{displayMonth:e.displayMonth})]})}function by(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Ny=by()?y.useLayoutEffect:y.useEffect,yi=!1,_y=0;function fc(){return"react-day-picker-".concat(++_y)}function Ey(e){var t,n=e??(yi?fc():null),r=y.useState(n),o=r[0],l=r[1];return Ny(function(){o===null&&l(fc())},[]),y.useEffect(function(){yi===!1&&(yi=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function Py(e){var t,n,r=Y(),o=r.dir,l=r.classNames,i=r.styles,a=r.components,s=to().displayMonths,u=Ey(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),c=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,d=[l.month],m=i.month,g=e.displayIndex===0,x=e.displayIndex===s.length-1,w=!g&&!x;o==="rtl"&&(t=[g,x],x=t[0],g=t[1]),g&&(d.push(l.caption_start),m=O(O({},m),i.caption_start)),x&&(d.push(l.caption_end),m=O(O({},m),i.caption_end)),w&&(d.push(l.caption_between),m=O(O({},m),i.caption_between));var k=(n=a==null?void 0:a.Caption)!==null&&n!==void 0?n:R1;return f.jsxs("div",{className:d.join(" "),style:m,children:[f.jsx(k,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),f.jsx(Cy,{id:c,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function My(e){var t=Y(),n=t.classNames,r=t.styles;return f.jsx("div",{className:n.months,style:r.months,children:e.children})}function jy(e){var t,n,r=e.initialProps,o=Y(),l=js(),i=to(),a=y.useState(!1),s=a[0],u=a[1];y.useEffect(function(){o.initialFocus&&l.focusTarget&&(s||(l.focus(l.focusTarget),u(!0)))},[o.initialFocus,s,l.focus,l.focusTarget,l]);var c=[o.classNames.root,o.className];o.numberOfMonths>1&&c.push(o.classNames.multiple_months),o.showWeekNumber&&c.push(o.classNames.with_weeknumber);var d=O(O({},o.styles.root),o.style),m=Object.keys(r).filter(function(x){return x.startsWith("data-")}).reduce(function(x,w){var k;return O(O({},x),(k={},k[w]=r[w],k))},{}),g=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:My;return f.jsx("div",O({className:c.join(" "),style:d,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},m,{children:f.jsx(g,{children:i.displayMonths.map(function(x,w){return f.jsx(Py,{displayIndex:w,displayMonth:x},w)})})}))}function Dy(e){var t=e.children,n=t1(e,["children"]);return f.jsx(w1,{initialProps:n,children:f.jsx(j1,{children:f.jsx(dy,{initialProps:n,children:f.jsx(F1,{initialProps:n,children:f.jsx(B1,{initialProps:n,children:f.jsx(J1,{children:f.jsx(uy,{children:t})})})})})})})}function Oy(e){return f.jsx(Dy,O({},e,{children:f.jsx(jy,{initialProps:e})}))}function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Ty(n,t))}function Vr(...e){return y.useCallback(vp(...e),e)}const Hr=y.forwardRef((e,t)=>{const{children:n,...r}=e,o=y.Children.toArray(n),l=o.find($y);if(l){const i=l.props.children,a=o.map(s=>s===l?y.Children.count(i)>1?y.Children.only(null):y.isValidElement(i)?i.props.children:null:s);return y.createElement(ya,ce({},r,{ref:t}),y.isValidElement(i)?y.cloneElement(i,void 0,a):null)}return y.createElement(ya,ce({},r,{ref:t}),n)});Hr.displayName="Slot";const ya=y.forwardRef((e,t)=>{const{children:n,...r}=e;return y.isValidElement(n)?y.cloneElement(n,{...Ly(r,n.props),ref:t?vp(t,n.ref):n.ref}):y.Children.count(n)>1?y.Children.only(null):null});ya.displayName="SlotClone";const Ry=({children:e})=>y.createElement(y.Fragment,null,e);function $y(e){return y.isValidElement(e)&&e.type===Ry}function Ly(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...a)=>{l(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function gp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,mc=Iy,zy=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return mc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,i=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=l==null?void 0:l[u];if(c===null)return null;const m=pc(c)||pc(d);return o[u][m]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,m]=c;return m===void 0||(u[d]=m),u},{}),s=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:m,...g}=c;return Object.entries(g).every(x=>{let[w,k]=x;return Array.isArray(k)?k.includes({...l,...a}[w]):{...l,...a}[w]===k})?[...u,d,m]:u},[]);return mc(e,i,s,n==null?void 0:n.class,n==null?void 0:n.className)},xa=zy("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground border-black dark:border-[#ccc]",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ie=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},l)=>{const i=r?Hr:"button";return f.jsx(i,{className:ht(xa({variant:t,size:n,className:e})),ref:l,...o})});ie.displayName="Button";function yp({className:e,classNames:t,showOutsideDays:n=!0,...r}){return f.jsx(Oy,{showOutsideDays:n,className:ht("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:ht(xa({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:ht("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:ht(xa({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:()=>f.jsx(V0,{className:"h-4 w-4"}),IconRight:()=>f.jsx(Y0,{className:"h-4 w-4"})},...r})}yp.displayName="Calendar";const Ay=()=>f.jsx("footer",{className:"static mt-12 flex justify-center align-bottom dark:text-[#ccc]",children:f.jsx("a",{href:"https://karolfaltyn.github.io/",target:"_blank",className:"p-4 text-xl font-extralight hover:font-normal",children:"CLICK ME!"})}),Fy=()=>{const[e,t]=$.useState(new Date);return f.jsxs("div",{className:"container",children:[f.jsx(A0,{}),f.jsxs("main",{children:[f.jsx(F0,{}),f.jsx("div",{className:"flex justify-center",children:f.jsx(yp,{mode:"single",selected:e,onSelect:t,className:"rounded-md border border-black shadow-md dark:border-[#ccc]"})})]}),f.jsx(Ay,{})]})},$l=()=>f.jsxs("nav",{className:"mb-12 flex items-center justify-around border-b border-[#444] p-4 dark:border-[#ccc] md:mb-24",children:[f.jsxs("div",{className:"flex gap-2",children:[f.jsx(mr,{to:"/",className:"font-sarabun text-2xl hover:opacity-75 dark:text-[#fafafa]",children:"Zen"}),f.jsx("div",{className:"relative flex items-center",children:f.jsxs("button",{onClick:Bf,className:"text-2xl",children:["❖",f.jsx("div",{className:"absolute left-3 top-4",children:f.jsx("svg",{className:"cursor",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"#999",children:f.jsx("path",{d:"M19.221 10.803 12 10V4a2 2 0 0 0-4 0v12l-3.031-1.212a2 2 0 0 0-2.64 1.225l-.113.34a.998.998 0 0 0 .309 1.084l5.197 4.332c.179.149.406.231.64.231H19a2 2 0 0 0 2-2v-7.21a2 2 0 0 0-1.779-1.987z"})})})]})})]}),f.jsx("div",{className:"w-12 text-2xl font-extralight",children:f.jsx(Xf,{})})]}),Wy=({todo:e,index:t,onDelete:n,onEdit:r})=>{const[o,l]=y.useState(!1),[i,a]=y.useState(e),[s,u]=y.useState(!1),c=()=>{l(!0)},d=w=>{w.target.value.length<=500&&a(w.target.value)},m=()=>{r(t,i),l(!1)},g=()=>{a(e),l(!1)},x=()=>{u(!s)};return f.jsx("div",{className:"flex flex-col rounded border p-4 shadow-md",children:o?f.jsxs("div",{children:[f.jsx("textarea",{value:i,onChange:d,className:"w-full rounded border bg-gray-100 p-2 text-black dark:bg-[#444] dark:text-white"}),f.jsxs("div",{className:"mt-2 flex flex-col items-center justify-between sm:flex-row",children:[f.jsxs("span",{className:"mb-2 font-sarabun text-[#999]",children:[i.length,"/500 characters"]}),f.jsxs("div",{className:"flex justify-center gap-2",children:[f.jsx(ie,{onClick:m,children:"Save"}),f.jsx(ie,{variant:"outline",onClick:g,children:"Cancel"})]})]})]}):f.jsxs("div",{className:"flex flex-col items-center justify-between gap-4 sm:flex-row",children:[f.jsx("p",{className:`whitespace-pre-wrap break-words ${s?"line-through":""}`,children:e}),f.jsxs("div",{className:"flex flex-row justify-center gap-2 sm:flex-col xl:flex-row",children:[f.jsx(ie,{onClick:c,children:"Edit"}),f.jsx(ie,{variant:"secondary",onClick:()=>n(t),children:"Delete"}),f.jsx(ie,{variant:"outline",onClick:x,style:{textDecoration:s?"line-through":"none"},className:"text-md font-extrabold text-[#7f0102] dark:text-red-400",children:s?f.jsx(f.Fragment,{children:"☐"}):f.jsx(f.Fragment,{children:"☐"})})]})]})})},Uy=()=>{const[e,t]=y.useState([]),[n,r]=y.useState(""),[o,l]=y.useState(0);y.useEffect(()=>{const c=localStorage.getItem("tasks");c&&c!=="[]"&&t(JSON.parse(c))},[]),y.useEffect(()=>{e.length>0&&localStorage.setItem("tasks",JSON.stringify(e))},[e]);const i=()=>{n.trim()&&n.length<=500&&(t([...e,n]),r(""),l(0))},a=c=>{c.target.value.length<=500&&(r(c.target.value),l(c.target.value.length))},s=c=>{const d=e.filter((m,g)=>g!==c);t(d)},u=(c,d)=>{const m=e.map((g,x)=>x===c?d:g);t(m)};return f.jsxs("div",{className:"container",children:[f.jsx($l,{}),f.jsx("main",{className:"flex justify-center",children:f.jsxs("div",{className:"w-full sm:w-3/4 lg:w-1/2",children:[f.jsx("h1",{className:"mb-10 flex justify-center font-sarabun text-2xl font-medium text-[#444] dark:text-[#fafafa]",children:"To-Do List"}),f.jsxs("div",{children:[f.jsx("textarea",{value:n,onChange:a,placeholder:"Add new task",className:"w-full rounded border bg-gray-100 p-2 text-black dark:bg-[#444] dark:text-white"}),f.jsxs("div",{className:"mb-8 mt-2 flex items-center justify-between",children:[f.jsxs("span",{className:"font-sarabun text-[#999]",children:[o,"/500 characters"]}),f.jsx(ie,{onClick:i,children:"Add"})]})]}),f.jsx("div",{className:"flex flex-col gap-4 mb-8",children:e.map((c,d)=>f.jsx(Wy,{todo:c,index:d,onDelete:s,onEdit:u},d))})]})})]})},By=({note:e,index:t,onDelete:n,onEdit:r})=>{const[o,l]=y.useState(!1),[i,a]=y.useState(e),s=()=>{l(!0)},u=m=>{m.target.value.length<=1500&&a(m.target.value)},c=()=>{r(t,i),l(!1)},d=()=>{a(e),l(!1)};return f.jsx("div",{className:"flex flex-col rounded border p-4 shadow-md",children:o?f.jsxs("div",{children:[f.jsx("textarea",{value:i,onChange:u,className:"w-full rounded border bg-gray-100 p-2 text-black dark:bg-[#444] dark:text-white"}),f.jsxs("div",{className:"mt-2 flex flex-col items-center justify-between sm:flex-row",children:[f.jsxs("span",{className:"mb-2 font-sarabun text-[#999]",children:[i.length,"/1500 characters"]}),f.jsxs("div",{className:"flex justify-center gap-2",children:[f.jsx(ie,{onClick:c,children:"Save"}),f.jsx(ie,{variant:"outline",onClick:d,children:"Cancel"})]})]})]}):f.jsxs("div",{className:"flex flex-col items-center justify-between gap-4 ",children:[f.jsx("p",{className:"whitespace-pre-wrap break-words",children:e}),f.jsxs("div",{className:"flex flex-row justify-center gap-2",children:[f.jsx(ie,{onClick:s,children:"Edit"}),f.jsx(ie,{variant:"secondary",onClick:()=>n(t),children:"Delete"})]})]})})},Vy=()=>{const[e,t]=y.useState([]),[n,r]=y.useState(""),[o,l]=y.useState(0);y.useEffect(()=>{const c=localStorage.getItem("notes");c&&c!=="[]"&&t(JSON.parse(c))},[]),y.useEffect(()=>{e.length>0&&localStorage.setItem("notes",JSON.stringify(e))},[e]);const i=()=>{n.trim()&&n.length<=1500&&(t([...e,n]),r(""),l(0))},a=c=>{c.target.value.length<=1500&&(r(c.target.value),l(c.target.value.length))},s=c=>{const d=e.filter((m,g)=>g!==c);t(d)},u=(c,d)=>{const m=e.map((g,x)=>x===c?d:g);t(m)};return f.jsxs("div",{className:"container",children:[f.jsx($l,{}),f.jsx("main",{className:"flex justify-center",children:f.jsxs("div",{className:"w-full sm:w-3/4 lg:w-1/2",children:[f.jsx("h1",{className:"mb-10 flex justify-center font-sarabun text-2xl font-medium text-[#444] dark:text-[#fafafa]",children:"Notes"}),f.jsxs("div",{children:[f.jsx("textarea",{value:n,onChange:a,placeholder:"Add new note",className:"w-full rounded border bg-gray-100 p-2 text-black dark:bg-[#444] dark:text-white"}),f.jsxs("div",{className:"mb-8 mt-2 flex items-center justify-between",children:[f.jsxs("span",{className:"font-sarabun text-[#999]",children:[o,"/1500 characters"]}),f.jsx(ie,{onClick:i,children:"Add"})]})]}),f.jsx("div",{className:"mb-8 flex flex-col gap-4",children:e.map((c,d)=>f.jsx(By,{note:c,index:d,onDelete:s,onEdit:u},d))})]})})]})};function Os(e,t=[]){let n=[];function r(l,i){const a=y.createContext(i),s=n.length;n=[...n,i];function u(d){const{scope:m,children:g,...x}=d,w=(m==null?void 0:m[e][s])||a,k=y.useMemo(()=>x,Object.values(x));return y.createElement(w.Provider,{value:k},g)}function c(d,m){const g=(m==null?void 0:m[e][s])||a,x=y.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,c]}const o=()=>{const l=n.map(i=>y.createContext(i));return function(a){const s=(a==null?void 0:a[e])||l;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[r,Hy(o,...t)]}function Hy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const i=r.reduce((a,{useScope:s,scopeName:u})=>{const d=s(l)[`__scope${u}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Yy(e){const t=e+"CollectionProvider",[n,r]=Os(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:x,children:w}=g,k=$.useRef(null),h=$.useRef(new Map).current;return $.createElement(o,{scope:x,itemMap:h,collectionRef:k},w)},a=e+"CollectionSlot",s=$.forwardRef((g,x)=>{const{scope:w,children:k}=g,h=l(a,w),p=Vr(x,h.collectionRef);return $.createElement(Hr,{ref:p},k)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",d=$.forwardRef((g,x)=>{const{scope:w,children:k,...h}=g,p=$.useRef(null),v=Vr(x,p),S=l(u,w);return $.useEffect(()=>(S.itemMap.set(p,{ref:p,...h}),()=>void S.itemMap.delete(p))),$.createElement(Hr,{[c]:"",ref:v},k)});function m(g){const x=l(e+"CollectionConsumer",g);return $.useCallback(()=>{const k=x.collectionRef.current;if(!k)return[];const h=Array.from(k.querySelectorAll(`[${c}]`));return Array.from(x.itemMap.values()).sort((S,N)=>h.indexOf(S.ref.current)-h.indexOf(N.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:s,ItemSlot:d},m,r]}function xp(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function wp(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ts({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Qy({defaultProp:t,onChange:n}),l=e!==void 0,i=l?e:r,a=wp(n),s=y.useCallback(u=>{if(l){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else o(u)},[l,e,o,a]);return[i,s]}function Qy({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,o=y.useRef(r),l=wp(t);return y.useEffect(()=>{o.current!==r&&(l(r),o.current=r)},[r,o,l]),n}const Gy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],no=Gy.reduce((e,t)=>{const n=y.forwardRef((r,o)=>{const{asChild:l,...i}=r,a=l?Hr:t;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(a,ce({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hl=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{};function Ky(e,t){return y.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const kp=e=>{const{present:t,children:n}=e,r=Xy(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),l=Vr(r.ref,o.ref);return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:l}):null};kp.displayName="Presence";function Xy(e){const[t,n]=y.useState(),r=y.useRef({}),o=y.useRef(e),l=y.useRef("none"),i=e?"mounted":"unmounted",[a,s]=Ky(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=bo(r.current);l.current=a==="mounted"?u:"none"},[a]),hl(()=>{const u=r.current,c=o.current;if(c!==e){const m=l.current,g=bo(u);e?s("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),hl(()=>{if(t){const u=d=>{const g=bo(r.current).includes(d.animationName);d.target===t&&g&&Of.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(l.current=bo(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function bo(e){return(e==null?void 0:e.animationName)||"none"}const Jy=_c.useId||(()=>{});let Zy=0;function Sp(e){const[t,n]=y.useState(Jy());return hl(()=>{e||n(r=>r??String(Zy++))},[e]),e||(t?`radix-${t}`:"")}const Cp="Collapsible",[qy,bp]=Os(Cp),[ex,Rs]=qy(Cp),tx=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:l,onOpenChange:i,...a}=e,[s=!1,u]=Ts({prop:r,defaultProp:o,onChange:i});return y.createElement(ex,{scope:n,disabled:l,contentId:Sp(),open:s,onOpenToggle:y.useCallback(()=>u(c=>!c),[u])},y.createElement(no.div,ce({"data-state":$s(s),"data-disabled":l?"":void 0},a,{ref:t})))}),nx="CollapsibleTrigger",rx=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Rs(nx,n);return y.createElement(no.button,ce({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":$s(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:xp(e.onClick,o.onOpenToggle)}))}),Np="CollapsibleContent",ox=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Rs(Np,e.__scopeCollapsible);return y.createElement(kp,{present:n||o.open},({present:l})=>y.createElement(lx,ce({},r,{ref:t,present:l})))}),lx=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...l}=e,i=Rs(Np,n),[a,s]=y.useState(r),u=y.useRef(null),c=Vr(t,u),d=y.useRef(0),m=d.current,g=y.useRef(0),x=g.current,w=i.open||a,k=y.useRef(w),h=y.useRef();return y.useEffect(()=>{const p=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(p)},[]),hl(()=>{const p=u.current;if(p){h.current=h.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const v=p.getBoundingClientRect();d.current=v.height,g.current=v.width,k.current||(p.style.transitionDuration=h.current.transitionDuration,p.style.animationName=h.current.animationName),s(r)}},[i.open,r]),y.createElement(no.div,ce({"data-state":$s(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!w},l,{ref:c,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style}}),w&&o)});function $s(e){return e?"open":"closed"}const ix=tx,ax=rx,sx=ox,ux=y.createContext(void 0);function cx(e){const t=y.useContext(ux);return e||t||"ltr"}const Qt="Accordion",dx=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ls,fx,px]=Yy(Qt),[Ll,Lx]=Os(Qt,[px,bp]),Is=bp(),_p=$.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,l=r;return $.createElement(Ls.Provider,{scope:e.__scopeAccordion},n==="multiple"?$.createElement(gx,ce({},l,{ref:t})):$.createElement(vx,ce({},o,{ref:t})))});_p.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Ep,mx]=Ll(Qt),[Pp,hx]=Ll(Qt,{collapsible:!1}),vx=$.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:l=!1,...i}=e,[a,s]=Ts({prop:n,defaultProp:r,onChange:o});return $.createElement(Ep,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:s,onItemClose:$.useCallback(()=>l&&s(""),[l,s])},$.createElement(Pp,{scope:e.__scopeAccordion,collapsible:l},$.createElement(Mp,ce({},i,{ref:t}))))}),gx=$.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...l}=e,[i=[],a]=Ts({prop:n,defaultProp:r,onChange:o}),s=$.useCallback(c=>a((d=[])=>[...d,c]),[a]),u=$.useCallback(c=>a((d=[])=>d.filter(m=>m!==c)),[a]);return $.createElement(Ep,{scope:e.__scopeAccordion,value:i,onItemOpen:s,onItemClose:u},$.createElement(Pp,{scope:e.__scopeAccordion,collapsible:!0},$.createElement(Mp,ce({},l,{ref:t}))))}),[yx,Il]=Ll(Qt),Mp=$.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:l="vertical",...i}=e,a=$.useRef(null),s=Vr(a,t),u=fx(n),d=cx(o)==="ltr",m=xp(e.onKeyDown,g=>{var x;if(!dx.includes(g.key))return;const w=g.target,k=u().filter(W=>{var T;return!((T=W.ref.current)!==null&&T!==void 0&&T.disabled)}),h=k.findIndex(W=>W.ref.current===w),p=k.length;if(h===-1)return;g.preventDefault();let v=h;const S=0,N=p-1,_=()=>{v=h+1,v>N&&(v=S)},E=()=>{v=h-1,v{const{__scopeAccordion:n,value:r,...o}=e,l=Il(wa,n),i=mx(wa,n),a=Is(n),s=Sp(),u=r&&i.value.includes(r)||!1,c=l.disabled||e.disabled;return $.createElement(xx,{scope:n,open:u,disabled:c,triggerId:s},$.createElement(ix,ce({"data-orientation":l.orientation,"data-state":jp(u)},a,o,{ref:t,disabled:c,open:u,onOpenChange:d=>{d?i.onItemOpen(r):i.onItemClose(r)}})))}),kx="AccordionHeader",Sx=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Il(Qt,n),l=zs(kx,n);return $.createElement(no.h3,ce({"data-orientation":o.orientation,"data-state":jp(l.open),"data-disabled":l.disabled?"":void 0},r,{ref:t}))}),hc="AccordionTrigger",Cx=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Il(Qt,n),l=zs(hc,n),i=hx(hc,n),a=Is(n);return $.createElement(Ls.ItemSlot,{scope:n},$.createElement(ax,ce({"aria-disabled":l.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:l.triggerId},a,r,{ref:t})))}),bx="AccordionContent",Nx=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Il(Qt,n),l=zs(bx,n),i=Is(n);return $.createElement(sx,ce({role:"region","aria-labelledby":l.triggerId,"data-orientation":o.orientation},i,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function jp(e){return e?"open":"closed"}const _x=_p,Ex=wx,Px=Sx,Dp=Cx,Op=Nx,Mx=_x,zo=y.forwardRef(({className:e,...t},n)=>f.jsx(Ex,{ref:n,className:ht("border-b",e),...t}));zo.displayName="AccordionItem";const Ao=y.forwardRef(({className:e,children:t,...n},r)=>f.jsx(Px,{className:"flex",children:f.jsxs(Dp,{ref:r,className:ht("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,f.jsx(U0,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Ao.displayName=Dp.displayName;const Fo=y.forwardRef(({className:e,children:t,...n},r)=>f.jsx(Op,{ref:r,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:f.jsx("div",{className:ht("pb-4 pt-0",e),children:t})}));Fo.displayName=Op.displayName;const jx=()=>{const[e,t]=y.useState(0),[n,r]=y.useState(25),[o,l]=y.useState(0),[i,a]=y.useState(!1),[s,u]=y.useState(!1),[c,d]=y.useState(!1),m=y.useRef(null),g=y.useRef(null);y.useEffect(()=>(s?m.current=setInterval(()=>{o===0&&n===0?(clearInterval(m.current),i?(r(25),a(!1)):(e===3?(r(20),t(0)):(r(5),t(h=>h+1)),a(!0)),d(!0),u(!1)):o===0?(l(59),r(h=>h-1)):l(h=>h-1)},1e3):clearInterval(m.current),()=>{m.current&&clearInterval(m.current)}),[s,n,o,i,e]),y.useEffect(()=>{c&&g.current&&(g.current.play(),g.current.onended=()=>{d(!1)})},[c]);const x=h=>h<10?`0${h}`:`${h}`,w=()=>{s?(u(!1),g.current&&(g.current.pause(),g.current.currentTime=0)):(u(!0),c&&(d(!1),g.current&&(g.current.pause(),g.current.currentTime=0)))},k=()=>{u(!1),r(25),l(0),a(!1),t(0),d(!1),g.current&&(g.current.pause(),g.current.currentTime=0)};return f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsx("h1",{className:"mb-8 font-sarabun text-2xl font-medium text-[#444] dark:text-[#fafafa]",children:"Pomodoro Timer"}),f.jsx("p",{className:"mb-2 font-sarabun text-5xl font-medium text-[#7f0102] dark:text-red-400 sm:text-7xl",children:i?"Rest Time":"Work Time"}),f.jsxs("p",{className:"mb-8 text-3xl font-extralight",children:[x(n),":",x(o)]}),f.jsx("audio",{ref:g,src:"/assets/times-out.mp3"}),f.jsxs("div",{className:"flex gap-4",children:[f.jsx(ie,{onClick:w,children:s?"Pause":"Start"}),f.jsx(ie,{variant:"secondary",onClick:k,children:"Reset"})]}),f.jsx("div",{className:"mt-8 w-64 sm:w-96",children:f.jsxs(Mx,{type:"single",collapsible:!0,children:[f.jsxs(zo,{value:"item-1",children:[f.jsx(Ao,{children:"What is the Pomodoro Technique?"}),f.jsx(Fo,{children:"A time management method developed by Francesco Cirillo in the late 1980s. It uses a kitchen timer to break work into intervals, typically 25 minutes in length, separated by short breaks."})]}),f.jsxs(zo,{value:"item-2",children:[f.jsx(Ao,{children:"How does it work?"}),f.jsx(Fo,{children:"Set your timer for 25 minutes and focus on a single task until the timer rings. When your session ends, enjoy a five-minute break. After four Pomodoros, take a longer, more restorative 15-30 minute break."})]}),f.jsxs(zo,{value:"item-3",children:[f.jsx(Ao,{children:"Why should I use it?"}),f.jsx(Fo,{children:"The Pomodoro Technique essentially trains people to focus on tasks better by limiting the length of time they attempt to maintain that focus and ensuring restorative breaks from the effort."})]})]})})]})},Dx=()=>f.jsxs("div",{className:"container",children:[f.jsx($l,{}),f.jsx("main",{children:f.jsx(jx,{})})]}),Ox=()=>{const[e,t]=y.useState("00"),[n,r]=y.useState("05"),[o,l]=y.useState("00"),[i,a]=y.useState(!1),s=$.createRef(),u=x=>{let w=parseInt(x.target.value);w=isNaN(w)?0:Math.min(Math.max(0,w),60),t(w.toString().padStart(2,"0"))},c=x=>{let w=parseInt(x.target.value);w=isNaN(w)?0:Math.min(Math.max(0,w),60),r(w.toString().padStart(2,"0"))},d=x=>{let w=parseInt(x.target.value);w=isNaN(w)?0:Math.min(Math.max(0,w),60),l(w.toString().padStart(2,"0"))},m=()=>{a(!i)},g=()=>{t("00"),r("05"),l("00"),a(!1)};return y.useEffect(()=>{let x=parseInt(e)*3600+parseInt(n)*60+parseInt(o);if(i&&x===0){s.current&&s.current.play(),a(!1);return}let w;return i&&(w=setInterval(()=>{if(i&&x>0){x--;const h=Math.floor(x/3600),p=Math.floor(x%3600/60),v=x%60;t(h.toString().padStart(2,"0")),r(p.toString().padStart(2,"0")),l(v.toString().padStart(2,"0"))}else clearInterval(w)},1e3)),()=>clearInterval(w)},[i,e,n,o,s]),y.useEffect(()=>{const x=()=>{document.visibilityState==="hidden"?a(!1):i&&a(!0)};return document.addEventListener("visibilitychange",x),()=>{document.removeEventListener("visibilitychange",x)}},[i]),f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsxs("div",{className:"mb-8 font-sarabun text-5xl font-medium text-[#7f0102] dark:text-red-400 sm:text-7xl",children:[f.jsx("input",{type:"number",value:e,onChange:u,className:"w-16 bg-[#ffffff] dark:bg-[#181a1b] sm:w-24",disabled:i}),":"," ",f.jsx("input",{type:"number",value:n,onChange:c,className:"w-16 bg-[#ffffff] dark:bg-[#181a1b] sm:w-24",disabled:i}),":"," ",f.jsx("input",{type:"number",value:o,onChange:d,className:"w-16 bg-[#ffffff] dark:bg-[#181a1b] sm:w-24",disabled:i})]}),f.jsxs("div",{className:"flex gap-4",children:[f.jsx(ie,{onClick:m,children:i?"Pause":"Start"}),f.jsx(ie,{variant:"secondary",onClick:g,children:"Reset"})]}),f.jsxs("div",{className:"mt-8 flex max-w-[60ch] flex-col items-center text-center",children:[f.jsx("span",{className:"text-lg font-semibold",children:"Warning"}),f.jsx("p",{children:"Timer will be stopped if you change or minimize page due to browser performance optimization"})]}),f.jsx("audio",{ref:s,children:f.jsx("source",{src:"/assets/times-out.mp3",type:"audio/mpeg"})})]})},Tx=()=>{const[e,t]=y.useState(!1),[n,r]=y.useState(0),[o,l]=y.useState([]),i=y.useRef(null),a=m=>{const g=Math.floor(m/6e4),x=Math.floor(m%6e4/1e3),w=Math.floor(m%1e3/10);return`${g.toString().padStart(2,"0")} : ${x.toString().padStart(2,"0")} . ${w.toString().padStart(2,"0")}`},s=()=>{t(!0),i.current=setInterval(()=>{r(m=>m+10)},10)},u=()=>{t(!1),i.current&&clearInterval(i.current)},c=()=>{r(0),t(!1),l([]),i.current&&clearInterval(i.current)},d=()=>{const m=a(n);l(g=>[...g,m])};return f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsx("div",{className:"mb-8 font-sarabun text-5xl font-medium text-[#7f0102] dark:text-red-400 sm:text-7xl",children:a(n)}),f.jsxs("div",{className:"flex gap-4",children:[f.jsx(ie,{onClick:e?u:s,children:e?"Stop":"Start"}),f.jsx(ie,{variant:"outline",onClick:d,children:"Save"}),f.jsx(ie,{variant:"secondary",onClick:c,children:"Reset"})]}),f.jsxs("div",{className:"mt-8 flex max-w-[60ch] flex-col items-center text-center",children:[f.jsx("span",{className:"text-lg font-semibold",children:"Warning"}),f.jsx("p",{children:"Timer will be stopped if you change or minimize page due to browser performance optimization"})]}),f.jsxs("div",{className:"mt-6",children:[f.jsx("h3",{className:"text-xl font-medium",children:"Saved Times:"}),f.jsx("ul",{className:"text-center",children:o.map((m,g)=>f.jsxs("li",{children:[g+1,". ",m]},g))})]})]})},vc=({onClick:e,active:t,children:n})=>f.jsx("button",{className:`pointer opacity-${t?"100":"50"} mb-8 font-sarabun text-2xl font-medium text-[#444] dark:text-[#fafafa]`,onClick:e,children:n}),Rx=()=>{const[e,t]=y.useState(!0),n=r=>{t(r)};return f.jsxs("div",{className:"container",children:[f.jsx($l,{}),f.jsx("main",{children:f.jsxs("div",{className:"flex flex-col items-center mb-8",children:[f.jsxs("h1",{className:"flex gap-4",children:[f.jsx(vc,{onClick:()=>n(!0),active:e,children:"Timer"}),f.jsx(vc,{onClick:()=>n(!1),active:!e,children:"Stopwatch"})]}),e?f.jsx(Ox,{}):f.jsx(Tx,{})]})})]})},$x=()=>(y.useEffect(()=>{const e=localStorage.getItem("isDarkMode");if(e!==null){const t=JSON.parse(e);document.documentElement.classList.toggle("dark",t),document.body.classList.toggle("bg-[#181a1b]",t)}},[]),f.jsx(t0,{children:f.jsxs(Gv,{children:[f.jsx(kn,{index:!0,element:f.jsx(Fy,{})}),f.jsx(kn,{path:"todo",element:f.jsx(Uy,{})}),f.jsx(kn,{path:"notes",element:f.jsx(Vy,{})}),f.jsx(kn,{path:"pomodoro",element:f.jsx(Dx,{})}),f.jsx(kn,{path:"timer",element:f.jsx(Rx,{})})]})}));xi.createRoot(document.getElementById("root")).render(f.jsx($.StrictMode,{children:f.jsx($x,{})})); diff --git a/assets/index-CT71MVhV.js b/assets/index-CT71MVhV.js deleted file mode 100644 index ae2ad7e..0000000 --- a/assets/index-CT71MVhV.js +++ /dev/null @@ -1,67 +0,0 @@ -function Tp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Rp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yc={exports:{}},vl={},xc={exports:{}},I={};/** - * @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 Yr=Symbol.for("react.element"),$p=Symbol.for("react.portal"),Lp=Symbol.for("react.fragment"),Ip=Symbol.for("react.strict_mode"),zp=Symbol.for("react.profiler"),Ap=Symbol.for("react.provider"),Fp=Symbol.for("react.context"),Wp=Symbol.for("react.forward_ref"),Up=Symbol.for("react.suspense"),Bp=Symbol.for("react.memo"),Vp=Symbol.for("react.lazy"),Fs=Symbol.iterator;function Hp(e){return e===null||typeof e!="object"?null:(e=Fs&&e[Fs]||e["@@iterator"],typeof e=="function"?e:null)}var wc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kc=Object.assign,Sc={};function Gn(e,t,n){this.props=e,this.context=t,this.refs=Sc,this.updater=n||wc}Gn.prototype.isReactComponent={};Gn.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")};Gn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cc(){}Cc.prototype=Gn.prototype;function ka(e,t,n){this.props=e,this.context=t,this.refs=Sc,this.updater=n||wc}var Sa=ka.prototype=new Cc;Sa.constructor=ka;kc(Sa,Gn.prototype);Sa.isPureReactComponent=!0;var Ws=Array.isArray,bc=Object.prototype.hasOwnProperty,Ca={current:null},Nc={key:!0,ref:!0,__self:!0,__source:!0};function _c(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)bc.call(t,r)&&!Nc.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,J=C[U];if(0>>1;Uo(zl,R))Kto(oo,zl)?(C[U]=oo,C[Kt]=R,U=Kt):(C[U]=zl,C[Gt]=R,U=Gt);else if(Kto(oo,R))C[U]=oo,C[Kt]=R,U=Kt;else break e}}return D}function o(C,D){var R=C.sortIndex-D.sortIndex;return R!==0?R:C.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var s=[],u=[],c=1,d=null,m=3,g=!1,x=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(C){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=C)r(u),D.sortIndex=D.expirationTime,t(s,D);else break;D=n(u)}}function S(C){if(w=!1,v(C),!x)if(n(s)!==null)x=!0,et(N);else{var D=n(u);D!==null&&j(S,D.startTime-C)}}function N(C,D){x=!1,w&&(w=!1,h(M),M=-1),g=!0;var R=m;try{for(v(D),d=n(s);d!==null&&(!(d.expirationTime>D)||C&&!de());){var U=d.callback;if(typeof U=="function"){d.callback=null,m=d.priorityLevel;var J=U(d.expirationTime<=D);D=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(s)&&r(s),v(D)}else r(s);d=n(s)}if(d!==null)var ro=!0;else{var Gt=n(u);Gt!==null&&j(S,Gt.startTime-D),ro=!1}return ro}finally{d=null,m=R,g=!1}}var _=!1,E=null,M=-1,W=5,T=-1;function de(){return!(e.unstable_now()-TC||125U?(C.sortIndex=R,t(u,C),n(s)===null&&C===n(u)&&(w?(h(M),M=-1):w=!0,j(S,R-U))):(C.sortIndex=J,t(s,C),x||g||(x=!0,et(N))),C},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(C){var D=m;return function(){var R=m;m=D;try{return C.apply(this,arguments)}finally{m=R}}}})(Dc);jc.exports=Dc;var nm=jc.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 Oc=y,Re=nm;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wi=Object.prototype.hasOwnProperty,rm=/^[: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]*$/,Bs={},Vs={};function om(e){return wi.call(Vs,e)?!0:wi.call(Bs,e)?!1:rm.test(e)?Vs[e]=!0:(Bs[e]=!0,!1)}function lm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function im(e,t,n,r){if(t===null||typeof t>"u"||lm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ce(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ce(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){me[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Na=/[\-:]([a-z])/g;function _a(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(Na,_a);me[t]=new Ce(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(Na,_a);me[t]=new Ce(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(Na,_a);me[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ea(e,t,n,r){var o=me.hasOwnProperty(t)?me[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==l[a]){var s=` -`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=a);break}}}finally{Wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?cr(e):""}function am(e){switch(e.tag){case 5:return cr(e.type);case 16:return cr("Lazy");case 13:return cr("Suspense");case 19:return cr("SuspenseList");case 0:case 2:case 15:return e=Ul(e.type,!1),e;case 11:return e=Ul(e.type.render,!1),e;case 1:return e=Ul(e.type,!0),e;default:return""}}function bi(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 Cn:return"Fragment";case Sn:return"Portal";case ki:return"Profiler";case Pa:return"StrictMode";case Si:return"Suspense";case Ci:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $c:return(e.displayName||"Context")+".Consumer";case Rc:return(e._context.displayName||"Context")+".Provider";case Ma:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ja:return t=e.displayName||null,t!==null?t:bi(e.type)||"Memo";case _t:t=e._payload,e=e._init;try{return bi(e(t))}catch{}}return null}function sm(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 bi(t);case 8:return t===Pa?"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 Ut(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ic(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function um(e){var t=Ic(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ao(e){e._valueTracker||(e._valueTracker=um(e))}function zc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ic(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wo(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 Ni(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ys(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ut(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ac(e,t){t=t.checked,t!=null&&Ea(e,"checked",t,!1)}function _i(e,t){Ac(e,t);var n=Ut(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ei(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ei(e,t.type,Ut(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qs(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ei(e,t,n){(t!=="number"||Wo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dr=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=so.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hr={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},cm=["Webkit","ms","Moz","O"];Object.keys(hr).forEach(function(e){cm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hr[t]=hr[e]})});function Bc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hr.hasOwnProperty(e)&&hr[e]?(""+t).trim():t+"px"}function Vc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Bc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var dm=ee({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 ji(e,t){if(t){if(dm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Di(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 Oi=null;function Da(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ti=null,$n=null,Ln=null;function Xs(e){if(e=Kr(e)){if(typeof Ti!="function")throw Error(b(280));var t=e.stateNode;t&&(t=kl(t),Ti(e.stateNode,e.type,t))}}function Hc(e){$n?Ln?Ln.push(e):Ln=[e]:$n=e}function Yc(){if($n){var e=$n,t=Ln;if(Ln=$n=null,Xs(e),t)for(e=0;e>>=0,e===0?32:31-(Sm(e)/Cm|0)|0}var uo=64,co=4194304;function fr(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 Ho(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=fr(a):(l&=i,l!==0&&(r=fr(l)))}else i=n&~o,i!==0?r=fr(i):l!==0&&(r=fr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Qr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ge(t),e[t]=n}function Em(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=gr),lu=" ",iu=!1;function fd(e,t){switch(e){case"keyup":return th.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bn=!1;function rh(e,t){switch(e){case"compositionend":return pd(t);case"keypress":return t.which!==32?null:(iu=!0,lu);case"textInput":return e=t.data,e===lu&&iu?null:e;default:return null}}function oh(e,t){if(bn)return e==="compositionend"||!Aa&&fd(e,t)?(e=cd(),Po=La=jt=null,bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cu(n)}}function gd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yd(){for(var e=window,t=Wo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wo(e.document)}return t}function Fa(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 ph(e){var t=yd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gd(n.ownerDocument.documentElement,n)){if(r!==null&&Fa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=du(n,l);var i=du(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Nn=null,Ai=null,xr=null,Fi=!1;function fu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fi||Nn==null||Nn!==Wo(r)||(r=Nn,"selectionStart"in r&&Fa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xr&&Dr(xr,r)||(xr=r,r=Go(Ai,"onSelect"),0Pn||(e.current=Yi[Pn],Yi[Pn]=null,Pn--)}function H(e,t){Pn++,Yi[Pn]=e.current,e.current=t}var Bt={},ye=Ht(Bt),Ee=Ht(!1),ln=Bt;function Wn(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pe(e){return e=e.childContextTypes,e!=null}function Xo(){K(Ee),K(ye)}function xu(e,t,n){if(ye.current!==Bt)throw Error(b(168));H(ye,t),H(Ee,n)}function Ed(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,sm(e)||"Unknown",o));return ee({},n,r)}function Jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,ln=ye.current,H(ye,e),H(Ee,Ee.current),!0}function wu(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=Ed(e,t,ln),r.__reactInternalMemoizedMergedChildContext=e,K(Ee),K(ye),H(ye,e)):K(Ee),H(Ee,n)}var ft=null,Sl=!1,ni=!1;function Pd(e){ft===null?ft=[e]:ft.push(e)}function Nh(e){Sl=!0,Pd(e)}function Yt(){if(!ni&&ft!==null){ni=!0;var e=0,t=V;try{var n=ft;for(V=1;e>=i,o-=i,pt=1<<32-Ge(t)+o|n<M?(W=E,E=null):W=E.sibling;var T=m(h,E,v[M],S);if(T===null){E===null&&(E=W);break}e&&E&&T.alternate===null&&t(h,E),p=l(T,p,M),_===null?N=T:_.sibling=T,_=T,E=W}if(M===v.length)return n(h,E),X&&Xt(h,M),N;if(E===null){for(;MM?(W=E,E=null):W=E.sibling;var de=m(h,E,T.value,S);if(de===null){E===null&&(E=W);break}e&&E&&de.alternate===null&&t(h,E),p=l(de,p,M),_===null?N=de:_.sibling=de,_=de,E=W}if(T.done)return n(h,E),X&&Xt(h,M),N;if(E===null){for(;!T.done;M++,T=v.next())T=d(h,T.value,S),T!==null&&(p=l(T,p,M),_===null?N=T:_.sibling=T,_=T);return X&&Xt(h,M),N}for(E=r(h,E);!T.done;M++,T=v.next())T=g(E,h,M,T.value,S),T!==null&&(e&&T.alternate!==null&&E.delete(T.key===null?M:T.key),p=l(T,p,M),_===null?N=T:_.sibling=T,_=T);return e&&E.forEach(function(F){return t(h,F)}),X&&Xt(h,M),N}function k(h,p,v,S){if(typeof v=="object"&&v!==null&&v.type===Cn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case io:e:{for(var N=v.key,_=p;_!==null;){if(_.key===N){if(N=v.type,N===Cn){if(_.tag===7){n(h,_.sibling),p=o(_,v.props.children),p.return=h,h=p;break e}}else if(_.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===_t&&Eu(N)===_.type){n(h,_.sibling),p=o(_,v.props),p.ref=rr(h,_,v),p.return=h,h=p;break e}n(h,_);break}else t(h,_);_=_.sibling}v.type===Cn?(p=on(v.props.children,h.mode,S,v.key),p.return=h,h=p):(S=Lo(v.type,v.key,v.props,null,h.mode,S),S.ref=rr(h,p,v),S.return=h,h=S)}return i(h);case Sn:e:{for(_=v.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=o(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=ci(v,h.mode,S),p.return=h,h=p}return i(h);case _t:return _=v._init,k(h,p,_(v._payload),S)}if(dr(v))return x(h,p,v,S);if(Zn(v))return w(h,p,v,S);yo(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,v),p.return=h,h=p):(n(h,p),p=ui(v,h.mode,S),p.return=h,h=p),i(h)):n(h,p)}return k}var Bn=Ld(!0),Id=Ld(!1),Xr={},it=Ht(Xr),$r=Ht(Xr),Lr=Ht(Xr);function tn(e){if(e===Xr)throw Error(b(174));return e}function Ka(e,t){switch(H(Lr,t),H($r,e),H(it,Xr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mi(t,e)}K(it),H(it,t)}function Vn(){K(it),K($r),K(Lr)}function zd(e){tn(Lr.current);var t=tn(it.current),n=Mi(t,e.type);t!==n&&(H($r,e),H(it,n))}function Xa(e){$r.current===e&&(K(it),K($r))}var Z=Ht(0);function rl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ri=[];function Ja(){for(var e=0;en?n:4,e(!0);var r=oi.transition;oi.transition={};try{e(!1),t()}finally{V=n,oi.transition=r}}function ef(){return Be().memoizedState}function Mh(e,t,n){var r=At(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tf(e))nf(t,n);else if(n=Od(e,t,n,r),n!==null){var o=ke();Ke(n,e,r,o),rf(n,t,r)}}function jh(e,t,n){var r=At(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tf(e))nf(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,a=l(i,n);if(o.hasEagerState=!0,o.eagerState=a,Xe(a,i)){var s=t.interleaved;s===null?(o.next=o,Qa(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Od(e,t,o,r),n!==null&&(o=ke(),Ke(n,e,r,o),rf(n,t,r))}}function tf(e){var t=e.alternate;return e===q||t!==null&&t===q}function nf(e,t){wr=ol=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ta(e,n)}}var ll={readContext:Ue,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},Dh={readContext:Ue,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:Mu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Oo(4194308,4,Kd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oo(4,2,e,t)},useMemo:function(e,t){var n=nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Mh.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:Pu,useDebugValue:ns,useDeferredValue:function(e){return nt().memoizedState=e},useTransition:function(){var e=Pu(!1),t=e[0];return e=Ph.bind(null,e[1]),nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,o=nt();if(X){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ue===null)throw Error(b(349));sn&30||Wd(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Mu(Bd.bind(null,r,l,e),[e]),r.flags|=2048,Ar(9,Ud.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=nt(),t=ue.identifierPrefix;if(X){var n=mt,r=pt;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ir++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[rt]=t,e[Rr]=r,pf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Di(n,r),n){case"dialog":G("cancel",e),G("close",e),o=r;break;case"iframe":case"object":case"embed":G("load",e),o=r;break;case"video":case"audio":for(o=0;oYn&&(t.flags|=128,r=!0,or(l,!1),t.lanes=4194304)}else{if(!r)if(e=rl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),or(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!X)return ve(t),null}else 2*ne()-l.renderingStartTime>Yn&&n!==1073741824&&(t.flags|=128,r=!0,or(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ne(),t.sibling=null,n=Z.current,H(Z,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return ss(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function Ah(e,t){switch(Ua(t),t.tag){case 1:return Pe(t.type)&&Xo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(),K(Ee),K(ye),Ja(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xa(t),null;case 13:if(K(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Z),null;case 4:return Vn(),null;case 10:return Ya(t.type._context),null;case 22:case 23:return ss(),null;case 24:return null;default:return null}}var wo=!1,ge=!1,Fh=typeof WeakSet=="function"?WeakSet:Set,P=null;function On(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function oa(e,t,n){try{n()}catch(r){te(e,t,r)}}var zu=!1;function Wh(e,t){if(Wi=Yo,e=yd(),Fa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,a=-1,s=-1,u=0,c=0,d=e,m=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(a=i+o),d!==l||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(g=d.firstChild)!==null;)m=d,d=g;for(;;){if(d===e)break t;if(m===n&&++u===o&&(a=i),m===l&&++c===r&&(s=i),(g=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=g}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ui={focusedElem:e,selectionRange:n},Yo=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;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 w=x.memoizedProps,k=x.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?w:He(t.type,w),k);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(S){te(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return x=zu,zu=!1,x}function kr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&oa(t,n,l)}o=o.next}while(o!==r)}}function Nl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function la(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vf(e){var t=e.alternate;t!==null&&(e.alternate=null,vf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rt],delete t[Rr],delete t[Hi],delete t[Ch],delete t[bh])),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 gf(e){return e.tag===5||e.tag===3||e.tag===4}function Au(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gf(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 ia(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ko));else if(r!==4&&(e=e.child,e!==null))for(ia(e,t,n),e=e.sibling;e!==null;)ia(e,t,n),e=e.sibling}function aa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(aa(e,t,n),e=e.sibling;e!==null;)aa(e,t,n),e=e.sibling}var fe=null,Ye=!1;function St(e,t,n){for(n=n.child;n!==null;)yf(e,t,n),n=n.sibling}function yf(e,t,n){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(gl,n)}catch{}switch(n.tag){case 5:ge||On(n,t);case 6:var r=fe,o=Ye;fe=null,St(e,t,n),fe=r,Ye=o,fe!==null&&(Ye?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(Ye?(e=fe,n=n.stateNode,e.nodeType===8?ti(e.parentNode,n):e.nodeType===1&&ti(e,n),Mr(e)):ti(fe,n.stateNode));break;case 4:r=fe,o=Ye,fe=n.stateNode.containerInfo,Ye=!0,St(e,t,n),fe=r,Ye=o;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&oa(n,t,i),o=o.next}while(o!==r)}St(e,t,n);break;case 1:if(!ge&&(On(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){te(n,t,a)}St(e,t,n);break;case 21:St(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,St(e,t,n),ge=r):St(e,t,n);break;default:St(e,t,n)}}function Fu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fh),t.forEach(function(r){var o=Xh.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ve(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Bh(r/1960))-r,10e?16:e,Dt===null)var r=!1;else{if(e=Dt,Dt=null,sl=0,z&6)throw Error(b(331));var o=z;for(z|=4,P=e.current;P!==null;){var l=P,i=l.child;if(P.flags&16){var a=l.deletions;if(a!==null){for(var s=0;sne()-is?rn(e,0):ls|=n),Me(e,t)}function _f(e,t){t===0&&(e.mode&1?(t=co,co<<=1,!(co&130023424)&&(co=4194304)):t=1);var n=ke();e=xt(e,t),e!==null&&(Qr(e,t,n),Me(e,n))}function Kh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_f(e,n)}function Xh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),_f(e,n)}var Ef;Ef=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,Ih(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,X&&t.flags&1048576&&Md(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;To(e,t),e=t.pendingProps;var o=Wn(t,ye.current);zn(t,n),o=qa(null,t,r,e,o,n);var l=es();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)?(l=!0,Jo(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ga(t),o.updater=Cl,t.stateNode=o,o._reactInternals=t,Ji(t,r,e,n),t=ea(null,t,r,!0,l,n)):(t.tag=0,X&&l&&Wa(t),xe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(To(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Zh(r),e=He(r,e),o){case 0:t=qi(null,t,r,e,n);break e;case 1:t=$u(null,t,r,e,n);break e;case 11:t=Tu(null,t,r,e,n);break e;case 14:t=Ru(null,t,r,He(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),qi(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),$u(e,t,r,o,n);case 3:e:{if(cf(t),e===null)throw Error(b(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Td(e,t),nl(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=Hn(Error(b(423)),t),t=Lu(e,t,r,n,o);break e}else if(r!==o){o=Hn(Error(b(424)),t),t=Lu(e,t,r,n,o);break e}else for(Oe=Lt(t.stateNode.containerInfo.firstChild),Te=t,X=!0,Qe=null,n=Id(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Un(),r===o){t=wt(e,t,n);break e}xe(e,t,r,n)}t=t.child}return t;case 5:return zd(t),e===null&&Gi(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Bi(r,o)?i=null:l!==null&&Bi(r,l)&&(t.flags|=32),uf(e,t),xe(e,t,i,n),t.child;case 6:return e===null&&Gi(t),null;case 13:return df(e,t,n);case 4:return Ka(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bn(t,null,r,n):xe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),Tu(e,t,r,o,n);case 7:return xe(e,t,t.pendingProps,n),t.child;case 8:return xe(e,t,t.pendingProps.children,n),t.child;case 12:return xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,H(el,r._currentValue),r._currentValue=i,l!==null)if(Xe(l.value,i)){if(l.children===o.children&&!Ee.current){t=wt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=vt(-1,n&-n),s.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ki(l.return,n,t),a.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(b(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ki(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}xe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,zn(t,n),o=Ue(o),r=r(o),t.flags|=1,xe(e,t,r,n),t.child;case 14:return r=t.type,o=He(r,t.pendingProps),o=He(r.type,o),Ru(e,t,r,o,n);case 15:return af(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),To(e,t),t.tag=1,Pe(r)?(e=!0,Jo(t)):e=!1,zn(t,n),$d(t,r,o),Ji(t,r,o,n),ea(null,t,r,!0,e,n);case 19:return ff(e,t,n);case 22:return sf(e,t,n)}throw Error(b(156,t.tag))};function Pf(e,t){return qc(e,t)}function Jh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fe(e,t,n,r){return new Jh(e,t,n,r)}function cs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zh(e){if(typeof e=="function")return cs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ma)return 11;if(e===ja)return 14}return 2}function Ft(e,t){var n=e.alternate;return n===null?(n=Fe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lo(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")cs(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Cn:return on(n.children,o,l,t);case Pa:i=8,o|=8;break;case ki:return e=Fe(12,n,t,o|2),e.elementType=ki,e.lanes=l,e;case Si:return e=Fe(13,n,t,o),e.elementType=Si,e.lanes=l,e;case Ci:return e=Fe(19,n,t,o),e.elementType=Ci,e.lanes=l,e;case Lc:return El(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rc:i=10;break e;case $c:i=9;break e;case Ma:i=11;break e;case ja:i=14;break e;case _t:i=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=Fe(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function on(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=Lc,e.lanes=n,e.stateNode={isHidden:!1},e}function ui(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function ci(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qh(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vl(0),this.expirationTimes=Vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ds(e,t,n,r,o,l,i,a,s){return e=new qh(e,t,n,a,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Fe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ga(l),e}function ev(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Of)}catch(e){console.error(e)}}Of(),Mc.exports=Le;var Tf=Mc.exports,Gu=Tf;xi.createRoot=Gu.createRoot,xi.hydrateRoot=Gu.hydrateRoot;function hs(){document.body.classList.toggle("bg-[#181a1b]");const e=document.documentElement.classList.toggle("dark");localStorage.setItem("isDarkMode",JSON.stringify(e))}/** - * @remix-run/router v1.16.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 Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function vs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iv(){return Math.random().toString(36).substr(2,8)}function Xu(e,t){return{usr:e.state,key:e.key,idx:t}}function fa(e,t,n,r){return n===void 0&&(n=null),Wr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mn(t):t,{state:n,key:t&&t.key||r||iv()})}function dl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function mn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function av(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,i=o.history,a=Ot.Pop,s=null,u=c();u==null&&(u=0,i.replaceState(Wr({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){a=Ot.Pop;let k=c(),h=k==null?null:k-u;u=k,s&&s({action:a,location:w.location,delta:h})}function m(k,h){a=Ot.Push;let p=fa(w.location,k,h);n&&n(p,k),u=c()+1;let v=Xu(p,u),S=w.createHref(p);try{i.pushState(v,"",S)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(S)}l&&s&&s({action:a,location:w.location,delta:1})}function g(k,h){a=Ot.Replace;let p=fa(w.location,k,h);n&&n(p,k),u=c();let v=Xu(p,u),S=w.createHref(p);i.replaceState(v,"",S),l&&s&&s({action:a,location:w.location,delta:0})}function x(k){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof k=="string"?k:dl(k);return p=p.replace(/ $/,"%20"),oe(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let w={get action(){return a},get location(){return e(o,i)},listen(k){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Ku,d),s=k,()=>{o.removeEventListener(Ku,d),s=null}},createHref(k){return t(o,k)},createURL:x,encodeLocation(k){let h=x(k);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:g,go(k){return i.go(k)}};return w}var Ju;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ju||(Ju={}));function sv(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?mn(t):t,o=gs(r.pathname||"/",n);if(o==null)return null;let l=Rf(e);uv(l);let i=null;for(let a=0;i==null&&a{let s={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};s.relativePath.startsWith("/")&&(oe(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Wt([r,s.relativePath]),c=n.concat(s);l.children&&l.children.length>0&&(oe(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Rf(l.children,t,c,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:vv(u,l.index),routesMeta:c})};return e.forEach((l,i)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))o(l,i);else for(let s of $f(l.path))o(l,i,s)}),t}function $f(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let i=$f(r.join("/")),a=[];return a.push(...i.map(s=>s===""?l:[l,s].join("/"))),o&&a.push(...i),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function uv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const cv=/^:[\w-]+$/,dv=3,fv=2,pv=1,mv=10,hv=-2,Zu=e=>e==="*";function vv(e,t){let n=e.split("/"),r=n.length;return n.some(Zu)&&(r+=hv),t&&(r+=fv),n.filter(o=>!Zu(o)).reduce((o,l)=>o+(cv.test(l)?dv:l===""?pv:mv),r)}function gv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function yv(e,t){let{routesMeta:n}=e,r={},o="/",l=[];for(let i=0;i{let{paramName:m,isOptional:g}=c;if(m==="*"){let w=a[d]||"";i=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const x=a[d];return g&&!x?u[m]=void 0:u[m]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:i,pattern:e}}function wv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),vs(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function kv(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vs(!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 gs(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Sv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?mn(e):e;return{pathname:n?n.startsWith("/")?n:Cv(n,t):t,search:_v(r),hash:Ev(o)}}function Cv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function di(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function bv(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Lf(e,t){let n=bv(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function If(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=mn(e):(o=Wr({},e),oe(!o.pathname||!o.pathname.includes("?"),di("?","pathname","search",o)),oe(!o.pathname||!o.pathname.includes("#"),di("#","pathname","hash",o)),oe(!o.search||!o.search.includes("#"),di("#","search","hash",o)));let l=e===""||o.pathname==="",i=l?"/":o.pathname,a;if(i==null)a=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),d-=1;o.pathname=m.join("/")}a=d>=0?t[d]:"/"}let s=Sv(o,a),u=i&&i!=="/"&&i.endsWith("/"),c=(l||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const Wt=e=>e.join("/").replace(/\/\/+/g,"/"),Nv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_v=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ev=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Pv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zf=["post","put","patch","delete"];new Set(zf);const Mv=["get",...zf];new Set(Mv);/** - * React Router v6.23.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 Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=If(u,JSON.parse(i),l,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Wt([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,i,l,e])}function Wf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(hn),{matches:o}=y.useContext(vn),{pathname:l}=Tl(),i=JSON.stringify(Lf(o,r.v7_relativeSplatPath));return y.useMemo(()=>If(e,JSON.parse(i),l,n==="path"),[e,i,l,n])}function Rv(e,t){return $v(e,t)}function $v(e,t,n,r){Jr()||oe(!1);let{navigator:o}=y.useContext(hn),{matches:l}=y.useContext(vn),i=l[l.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let u=Tl(),c;if(t){var d;let k=typeof t=="string"?mn(t):t;s==="/"||(d=k.pathname)!=null&&d.startsWith(s)||oe(!1),c=k}else c=u;let m=c.pathname||"/",g=m;if(s!=="/"){let k=s.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(k.length).join("/")}let x=sv(e,{pathname:g}),w=Fv(x&&x.map(k=>Object.assign({},k,{params:Object.assign({},a,k.params),pathname:Wt([s,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?s:Wt([s,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),l,n,r);return t&&w?y.createElement(Ol.Provider,{value:{location:Ur({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ot.Pop}},w):w}function Lv(){let e=Vv(),t=Pv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const Iv=y.createElement(Lv,null);class zv extends y.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(vn.Provider,{value:this.props.routeContext},y.createElement(Af.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Av(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(ys);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(vn.Provider,{value:t},r)}function Fv(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||oe(!1),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,d,m)=>{let g,x=!1,w=null,k=null;n&&(g=a&&d.route.id?a[d.route.id]:void 0,w=d.route.errorElement||Iv,s&&(u<0&&m===0?(Yv("route-fallback",!1),x=!0,k=null):u===m&&(x=!0,k=d.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,m+1)),p=()=>{let v;return g?v=w:x?v=k:d.route.Component?v=y.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,y.createElement(Av,{match:d,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?y.createElement(zv,{location:n.location,revalidation:n.revalidation,component:w,error:g,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Uf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Uf||{}),fl=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}(fl||{});function Wv(e){let t=y.useContext(ys);return t||oe(!1),t}function Uv(e){let t=y.useContext(jv);return t||oe(!1),t}function Bv(e){let t=y.useContext(vn);return t||oe(!1),t}function Bf(e){let t=Bv(),n=t.matches[t.matches.length-1];return n.route.id||oe(!1),n.route.id}function Vv(){var e;let t=y.useContext(Af),n=Uv(fl.UseRouteError),r=Bf(fl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Hv(){let{router:e}=Wv(Uf.UseNavigateStable),t=Bf(fl.UseNavigateStable),n=y.useRef(!1);return Ff(()=>{n.current=!0}),y.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ur({fromRouteId:t},l)))},[e,t])}const qu={};function Yv(e,t,n){!t&&!qu[e]&&(qu[e]=!0)}function kn(e){oe(!1)}function Qv(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ot.Pop,navigator:l,static:i=!1,future:a}=e;Jr()&&oe(!1);let s=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:s,navigator:l,static:i,future:Ur({v7_relativeSplatPath:!1},a)}),[s,a,l,i]);typeof r=="string"&&(r=mn(r));let{pathname:c="/",search:d="",hash:m="",state:g=null,key:x="default"}=r,w=y.useMemo(()=>{let k=gs(c,s);return k==null?null:{location:{pathname:k,search:d,hash:m,state:g,key:x},navigationType:o}},[s,c,d,m,g,x,o]);return w==null?null:y.createElement(hn.Provider,{value:u},y.createElement(Ol.Provider,{children:n,value:w}))}function Gv(e){let{children:t,location:n}=e;return Rv(pa(t),n)}new Promise(()=>{});function pa(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;let l=[...t,o];if(r.type===y.Fragment){n.push.apply(n,pa(r.props.children,l));return}r.type!==kn&&oe(!1),!r.props.index||!r.props.children||oe(!1);let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=pa(r.props.children,l)),n.push(i)}),n}/** - * React Router DOM v6.23.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 ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Xv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jv(e,t){return e.button===0&&(!t||t==="_self")&&!Xv(e)}const Zv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],qv="6";try{window.__reactRouterVersion=qv}catch{}const e0="startTransition",ec=Ec[e0];function t0(e){let{basename:t,children:n,future:r,window:o}=e,l=y.useRef();l.current==null&&(l.current=lv({window:o,v5Compat:!0}));let i=l.current,[a,s]=y.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&ec?ec(()=>s(d)):s(d)},[s,u]);return y.useLayoutEffect(()=>i.listen(c),[i,c]),y.createElement(Qv,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const n0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mr=y.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:l,replace:i,state:a,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,m=Kv(t,Zv),{basename:g}=y.useContext(hn),x,w=!1;if(typeof u=="string"&&r0.test(u)&&(x=u,n0))try{let v=new URL(window.location.href),S=u.startsWith("//")?new URL(v.protocol+u):new URL(u),N=gs(S.pathname,g);S.origin===v.origin&&N!=null?u=N+S.search+S.hash:w=!0}catch{}let k=Dv(u,{relative:o}),h=o0(u,{replace:i,state:a,target:s,preventScrollReset:c,relative:o,unstable_viewTransition:d});function p(v){r&&r(v),v.defaultPrevented||h(v)}return y.createElement("a",ma({},m,{href:x||k,onClick:w||l?r:p,ref:n,target:s}))});var tc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(tc||(tc={}));var nc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(nc||(nc={}));function o0(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:i,unstable_viewTransition:a}=t===void 0?{}:t,s=Ov(),u=Tl(),c=Wf(e,{relative:i});return y.useCallback(d=>{if(Jv(d,n)){d.preventDefault();let m=r!==void 0?r:dl(u)===dl(c);s(e,{replace:m,state:o,preventScrollReset:l,relative:i,unstable_viewTransition:a})}},[u,s,c,r,o,n,e,l,i,a])}function Vf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ta(l)))==null?void 0:i.classGroupId}const rc=/^\[(.+)\]$/;function a0(e){if(rc.test(e)){const t=rc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function s0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return c0(Object.entries(e.classGroups),n).forEach(([l,i])=>{ha(i,r,l,t)}),r}function ha(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:oc(t,o);l.classGroupId=n;return}if(typeof o=="function"){if(u0(o)){ha(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,i])=>{ha(i,oc(t,l),n,r)})})}function oc(e,t){let n=e;return t.split(xs).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function u0(e){return e.isThemeGetter}function c0(e,t){return t?e.map(([n,r])=>{const o=r.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([i,a])=>[t+i,a])):l);return[n,o]}):e}function d0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(l,i){n.set(l,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(l){let i=n.get(l);if(i!==void 0)return i;if((i=r.get(l))!==void 0)return o(l,i),i},set(l,i){n.has(l)?n.set(l,i):o(l,i)}}}const Yf="!";function f0(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(i){const a=[];let s=0,u=0,c;for(let w=0;wu?c-u:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:x}}}function p0(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function m0(e){return{cache:d0(e.cacheSize),splitModifiers:f0(e),...i0(e)}}const h0=/\s+/;function v0(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,l=new Set;return e.trim().split(h0).map(i=>{const{modifiers:a,hasImportantModifier:s,baseClassName:u,maybePostfixModifierPosition:c}=n(i);let d=r(c?u.substring(0,c):u),m=!!c;if(!d){if(!c)return{isTailwindClass:!1,originalClassName:i};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:i};m=!1}const g=p0(a).join(":");return{isTailwindClass:!0,modifierId:s?g+Yf:g,classGroupId:d,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:s,hasPostfixModifier:u}=i,c=a+s;return l.has(c)?!1:(l.add(c),o(s,u).forEach(d=>l.add(a+d)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function g0(){let e=0,t,n,r="";for(;ed(c),e());return n=m0(u),r=n.cache.get,o=n.cache.set,l=a,a(s)}function a(s){const u=r(s);if(u)return u;const c=v0(s,n);return o(s,c),c}return function(){return l(g0.apply(null,arguments))}}function Q(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Gf=/^\[(?:([a-z-]+):)?(.+)\]$/i,x0=/^\d+\/\d+$/,w0=new Set(["px","full","screen"]),k0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,C0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,b0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ut(e){return nn(e)||w0.has(e)||x0.test(e)}function Ct(e){return Jn(e,"length",T0)}function nn(e){return!!e&&!Number.isNaN(Number(e))}function Co(e){return Jn(e,"number",nn)}function ir(e){return!!e&&Number.isInteger(Number(e))}function _0(e){return e.endsWith("%")&&nn(e.slice(0,-1))}function L(e){return Gf.test(e)}function bt(e){return k0.test(e)}const E0=new Set(["length","size","percentage"]);function P0(e){return Jn(e,E0,Kf)}function M0(e){return Jn(e,"position",Kf)}const j0=new Set(["image","url"]);function D0(e){return Jn(e,j0,$0)}function O0(e){return Jn(e,"",R0)}function ar(){return!0}function Jn(e,t,n){const r=Gf.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function T0(e){return S0.test(e)&&!C0.test(e)}function Kf(){return!1}function R0(e){return b0.test(e)}function $0(e){return N0.test(e)}function L0(){const e=Q("colors"),t=Q("spacing"),n=Q("blur"),r=Q("brightness"),o=Q("borderColor"),l=Q("borderRadius"),i=Q("borderSpacing"),a=Q("borderWidth"),s=Q("contrast"),u=Q("grayscale"),c=Q("hueRotate"),d=Q("invert"),m=Q("gap"),g=Q("gradientColorStops"),x=Q("gradientColorStopPositions"),w=Q("inset"),k=Q("margin"),h=Q("opacity"),p=Q("padding"),v=Q("saturate"),S=Q("scale"),N=Q("sepia"),_=Q("skew"),E=Q("space"),M=Q("translate"),W=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",L,t],F=()=>[L,t],qe=()=>["",ut,Ct],st=()=>["auto",nn,L],yn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],et=()=>["solid","dashed","dotted","double","none"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",L],R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[nn,Co],J=()=>[nn,L];return{cacheSize:500,separator:":",theme:{colors:[ar],spacing:[ut,Ct],blur:["none","",bt,L],brightness:U(),borderColor:[e],borderRadius:["none","","full",bt,L],borderSpacing:F(),borderWidth:qe(),contrast:U(),grayscale:D(),hueRotate:J(),invert:D(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[_0,Ct],inset:de(),margin:de(),opacity:U(),padding:F(),saturate:U(),scale:U(),sepia:D(),skew:J(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[bt]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...yn(),L]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ir,L]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",ir,L]}],"grid-cols":[{"grid-cols":[ar]}],"col-start-end":[{col:["auto",{span:["full",ir,L]},L]}],"col-start":[{"col-start":st()}],"col-end":[{"col-end":st()}],"grid-rows":[{"grid-rows":[ar]}],"row-start-end":[{row:["auto",{span:[ir,L]},L]}],"row-start":[{"row-start":st()}],"row-end":[{"row-end":st()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",L,t]}],"min-w":[{"min-w":[L,t,"min","max","fit"]}],"max-w":[{"max-w":[L,t,"none","full","min","max","fit","prose",{screen:[bt]},bt]}],h:[{h:[L,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bt,Ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Co]}],"font-family":[{font:[ar]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",L]}],"line-clamp":[{"line-clamp":["none",nn,Co]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ut,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...et(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ut,Ct]}],"underline-offset":[{"underline-offset":["auto",ut,L]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...yn(),M0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",P0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},D0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...et(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:et()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...et()]}],"outline-offset":[{"outline-offset":[ut,L]}],"outline-w":[{outline:[ut,Ct]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:qe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[ut,Ct]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bt,O0]}],"shadow-color":[{shadow:[ar]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",bt,L]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ir,L]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ut,Ct,Co]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const I0=y0(L0);function ht(...e){return I0(l0(e))}function z0({className:e,...t}){return f.jsx("div",{className:ht("animate-pulse rounded-md bg-primary/10",e),...t})}const Xf=()=>{const[e,t]=y.useState(""),[n,r]=y.useState(!1);return y.useEffect(()=>{const o=setInterval(()=>{const l=new Date,i=l.getHours().toString().padStart(2,"0"),a=l.getMinutes().toString().padStart(2,"0"),s=l.getSeconds().toString().padStart(2,"0");t(`${i}:${a}:${s}`)},1e3);return()=>clearInterval(o)},[]),y.useEffect(()=>{const o=setTimeout(()=>{r(!0)},1e3);return()=>clearTimeout(o)},[]),f.jsxs("div",{children:[n&&f.jsx("div",{children:e}),!n&&f.jsx(z0,{className:"mt-[4px] h-[28px] w-[80px] rounded-full"})]})},A0=()=>f.jsxs("header",{className:"my-12 flex flex-col justify-center text-center sm:mt-24",children:[f.jsxs("div",{className:"flex justify-center gap-2",children:[f.jsx("h1",{className:"mb-2 font-sarabun text-7xl font-semibold text-[#7f0102] dark:text-red-400",children:"Zen"}),f.jsx("div",{className:"relative flex items-center",children:f.jsxs("button",{onClick:hs,className:"text-6xl",children:["❖",f.jsx("div",{className:"absolute left-8 top-11",children:f.jsx("svg",{className:"cursor",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#999",children:f.jsx("path",{d:"M19.221 10.803 12 10V4a2 2 0 0 0-4 0v12l-3.031-1.212a2 2 0 0 0-2.64 1.225l-.113.34a.998.998 0 0 0 .309 1.084l5.197 4.332c.179.149.406.231.64.231H19a2 2 0 0 0 2-2v-7.21a2 2 0 0 0-1.779-1.987z"})})})]})})]}),f.jsx("p",{className:"mb-2 font-sarabun text-3xl font-extralight text-[#7f0102] dark:text-red-400",children:"Management app"}),f.jsx("div",{className:"flex justify-center text-2xl font-extralight",children:f.jsx(Xf,{})})]}),F0=()=>f.jsxs("nav",{children:[f.jsx("p",{className:"mb-6 flex justify-center text-3xl font-light",children:"Select Option"}),f.jsxs("div",{className:"mb-16 flex flex-wrap items-center justify-center gap-6",children:[f.jsx("div",{className:"flex w-fit items-center rounded-md border border-black shadow-md transition-all hover:scale-110 dark:border-[#ccc]",children:f.jsx(mr,{to:"/todo",className:"p-12",children:f.jsxs("svg",{className:"box",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#999",width:"64",height:"64",children:[f.jsx("path",{d:"M5 22h14c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2h-2a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1H5c-1.103 0-2 .897-2 2v15c0 1.103.897 2 2 2zM5 5h2v2h10V5h2v15H5V5z"}),f.jsx("path",{d:"m11 13.586-1.793-1.793-1.414 1.414L11 16.414l5.207-5.207-1.414-1.414z"})]})})}),f.jsx("div",{className:"flex w-fit items-center rounded-md border border-black shadow-md transition-all hover:scale-110 dark:border-[#ccc]",children:f.jsx(mr,{to:"/notes",className:"p-12",children:f.jsxs("svg",{className:"box",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#999",width:"64",height:"64",children:[f.jsx("path",{d:"M19 4h-3V2h-2v2h-4V2H8v2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zM5 20V7h14V6l.002 14H5z"}),f.jsx("path",{d:"M7 9h10v2H7zm0 4h5v2H7z"})]})})}),f.jsx("div",{className:"flex w-fit items-center rounded-md border border-black shadow-md transition-all hover:scale-110 dark:border-[#ccc]",children:f.jsx(mr,{to:"/timer",className:"p-12",children:f.jsxs("svg",{className:"box",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#999",width:"64",height:"64",children:[f.jsx("path",{d:"M12 5c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8zm0 14c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6z"}),f.jsx("path",{d:"M11 9h2v5h-2zM9 2h6v2H9zm10.293 5.707-2-2 1.414-1.414 2 2z"})]})})}),f.jsx("div",{className:"flex w-fit items-center rounded-md border border-black shadow-md transition-all hover:scale-110 dark:border-[#ccc]",children:f.jsx(mr,{to:"/pomodoro",className:"p-12",children:f.jsxs("svg",{className:"box",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#999",width:"64",height:"64",children:[f.jsx("path",{d:"m21.707 11.293-2-2L19 8.586V6a1 1 0 0 0-1-1h-2.586l-.707-.707-2-2a.999.999 0 0 0-1.414 0l-2 2L8.586 5H6a1 1 0 0 0-1 1v2.586l-.707.707-2 2a.999.999 0 0 0 0 1.414l2 2 .707.707V18a1 1 0 0 0 1 1h2.586l.707.707 2 2a.997.997 0 0 0 1.414 0l2-2 .707-.707H18a1 1 0 0 0 1-1v-2.586l.707-.707 2-2a.999.999 0 0 0 0-1.414zm-4.414 3-.293.293V17h-2.414l-.293.293-1 1L12 19.586l-1.293-1.293-1-1L9.414 17H7v-2.414l-.293-.293-1-1L4.414 12l1.293-1.293 1-1L7 9.414V7h2.414l.293-.293 1-1L12 4.414l1.293 1.293 1 1 .293.293H17v2.414l.293.293 1 1L19.586 12l-1.293 1.293-1 1z"}),f.jsx("path",{d:"M12 8v8c2.206 0 4-1.794 4-4s-1.794-4-4-4z"})]})})})]})]});function ws(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,l;for(l=0;l=0)&&(n[o]=e[o]);return n}var W0=["color"],U0=y.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ws(e,W0);return y.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),y.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),B0=["color"],V0=y.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ws(e,B0);return y.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),y.createElement("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),H0=["color"],Y0=y.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ws(e,H0);return y.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),y.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function A(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function $e(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function we(e,t){const n=A(e);return isNaN(t)?$e(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Je(e,t){const n=A(e);if(isNaN(t))return $e(e,NaN);if(!t)return n;const r=n.getDate(),o=$e(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);const l=o.getDate();return r>=l?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}const ks=6048e5,Q0=864e5;let G0={};function Zr(){return G0}function at(e,t){var a,s,u,c;const n=Zr(),r=(t==null?void 0:t.weekStartsOn)??((s=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:s.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,o=A(e),l=o.getDay(),i=(l=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Qn(e){const t=A(e);return t.setHours(0,0,0,0),t}function pl(e){const t=A(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ot(e,t){const n=Qn(e),r=Qn(t),o=+n-pl(n),l=+r-pl(r);return Math.round((o-l)/Q0)}function K0(e){const t=Jf(e),n=$e(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),dn(n)}function va(e,t){const n=t*7;return we(e,n)}function X0(e,t){return Je(e,t*12)}function J0(e){let t;return e.forEach(function(n){const r=A(n);(t===void 0||t{const r=A(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function _e(e,t){const n=Qn(e),r=Qn(t);return+n==+r}function Ss(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function q0(e){if(!Ss(e)&&typeof e!="number")return!1;const t=A(e);return!isNaN(Number(t))}function Br(e,t){const n=A(e),r=A(t),o=n.getFullYear()-r.getFullYear(),l=n.getMonth()-r.getMonth();return o*12+l}function eg(e,t,n){const r=at(e,n),o=at(t,n),l=+r-pl(r),i=+o-pl(o);return Math.round((l-i)/ks)}function Cs(e){const t=A(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function je(e){const t=A(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Zf(e){const t=A(e),n=$e(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function bs(e,t){var a,s,u,c;const n=Zr(),r=(t==null?void 0:t.weekStartsOn)??((s=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:s.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,o=A(e),l=o.getDay(),i=(l{let r;const o=tg[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function fi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const rg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},og={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ig={date:fi({formats:rg,defaultWidth:"full"}),time:fi({formats:og,defaultWidth:"full"}),dateTime:fi({formats:lg,defaultWidth:"full"})},ag={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sg=(e,t,n,r)=>ag[e];function sr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[i]}const l=e.argumentCallback?e.argumentCallback(t):t;return o[l]}}const ug={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cg={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dg={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"]},fg={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"]},pg={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"}},mg={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"}},hg=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},vg={ordinalNumber:hg,era:sr({values:ug,defaultWidth:"wide"}),quarter:sr({values:cg,defaultWidth:"wide",argumentCallback:e=>e-1}),month:sr({values:dg,defaultWidth:"wide"}),day:sr({values:fg,defaultWidth:"wide"}),dayPeriod:sr({values:pg,defaultWidth:"wide",formattingValues:mg,defaultFormattingWidth:"wide"})};function ur(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(o);if(!l)return null;const i=l[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?yg(a,d=>d.test(i)):gg(a,d=>d.test(i));let u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(i.length);return{value:u,rest:c}}}function gg(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function yg(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],l=t.match(e.parsePattern);if(!l)return null;let i=e.valueCallback?e.valueCallback(l[0]):l[0];i=n.valueCallback?n.valueCallback(i):i;const a=t.slice(o.length);return{value:i,rest:a}}}const wg=/^(\d+)(th|st|nd|rd)?/i,kg=/\d+/i,Sg={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},Cg={any:[/^b/i,/^(a|c)/i]},bg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ng={any:[/1/i,/2/i,/3/i,/4/i]},_g={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},Eg={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]},Pg={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},Mg={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]},jg={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},Dg={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}},Og={ordinalNumber:xg({matchPattern:wg,parsePattern:kg,valueCallback:e=>parseInt(e,10)}),era:ur({matchPatterns:Sg,defaultMatchWidth:"wide",parsePatterns:Cg,defaultParseWidth:"any"}),quarter:ur({matchPatterns:bg,defaultMatchWidth:"wide",parsePatterns:Ng,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ur({matchPatterns:_g,defaultMatchWidth:"wide",parsePatterns:Eg,defaultParseWidth:"any"}),day:ur({matchPatterns:Pg,defaultMatchWidth:"wide",parsePatterns:Mg,defaultParseWidth:"any"}),dayPeriod:ur({matchPatterns:jg,defaultMatchWidth:"any",parsePatterns:Dg,defaultParseWidth:"any"})},ep={code:"en-US",formatDistance:ng,formatLong:ig,formatRelative:sg,localize:vg,match:Og,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Tg(e){const t=A(e);return ot(t,Zf(t))+1}function tp(e){const t=A(e),n=+dn(t)-+K0(t);return Math.round(n/ks)+1}function np(e,t){var c,d,m,g;const n=A(e),r=n.getFullYear(),o=Zr(),l=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(m=o.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,i=$e(e,0);i.setFullYear(r+1,0,l),i.setHours(0,0,0,0);const a=at(i,t),s=$e(e,0);s.setFullYear(r,0,l),s.setHours(0,0,0,0);const u=at(s,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Rg(e,t){var a,s,u,c;const n=Zr(),r=(t==null?void 0:t.firstWeekContainsDate)??((s=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:s.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,o=np(e,t),l=$e(e,0);return l.setFullYear(o,0,r),l.setHours(0,0,0,0),at(l,t)}function rp(e,t){const n=A(e),r=+at(n,t)-+Rg(n,t);return Math.round(r/ks)+1}function B(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Nt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return B(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):B(n+1,2)},d(e,t){return B(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return B(e.getHours()%12||12,t.length)},H(e,t){return B(e.getHours(),t.length)},m(e,t){return B(e.getMinutes(),t.length)},s(e,t){return B(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return B(o,t.length)}},wn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lc={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Nt.y(e,t)},Y:function(e,t,n,r){const o=np(e,r),l=o>0?o:1-o;if(t==="YY"){const i=l%100;return B(i,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):B(l,t.length)},R:function(e,t){const n=Jf(e);return B(n,t.length)},u:function(e,t){const n=e.getFullYear();return B(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return B(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return B(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Nt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return B(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=rp(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):B(o,t.length)},I:function(e,t,n){const r=tp(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):B(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Nt.d(e,t)},D:function(e,t,n){const r=Tg(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):B(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),l=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return B(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),l=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return B(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return B(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=wn.noon:r===0?o=wn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=wn.evening:r>=12?o=wn.afternoon:r>=4?o=wn.morning:o=wn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Nt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Nt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):B(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):B(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Nt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Nt.s(e,t)},S:function(e,t){return Nt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return ac(r);case"XXXX":case"XX":return Zt(r);case"XXXXX":case"XXX":default:return Zt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ac(r);case"xxxx":case"xx":return Zt(r);case"xxxxx":case"xxx":default:return Zt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ic(r,":");case"OOOO":default:return"GMT"+Zt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ic(r,":");case"zzzz":default:return"GMT"+Zt(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return B(r,t.length)},T:function(e,t,n){const r=e.getTime();return B(r,t.length)}};function ic(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),l=r%60;return l===0?n+String(o):n+String(o)+t+B(l,2)}function ac(e,t){return e%60===0?(e>0?"-":"+")+B(Math.abs(e)/60,2):Zt(e,t)}function Zt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=B(Math.trunc(r/60),2),l=B(r%60,2);return n+o+t+l}const sc=(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"})}},op=(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"})}},$g=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return sc(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",sc(r,t)).replace("{{time}}",op(o,t))},Lg={p:op,P:$g},Ig=/^D+$/,zg=/^Y+$/,Ag=["D","DD","YY","YYYY"];function Fg(e){return Ig.test(e)}function Wg(e){return zg.test(e)}function Ug(e,t,n){const r=Bg(e,t,n);if(console.warn(r),Ag.includes(e))throw new RangeError(r)}function Bg(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Vg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yg=/^'([^]*?)'?$/,Qg=/''/g,Gg=/[a-zA-Z]/;function gn(e,t,n){var c,d,m,g,x,w,k,h;const r=Zr(),o=(n==null?void 0:n.locale)??r.locale??ep,l=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((w=(x=n==null?void 0:n.locale)==null?void 0:x.options)==null?void 0:w.weekStartsOn)??r.weekStartsOn??((h=(k=r.locale)==null?void 0:k.options)==null?void 0:h.weekStartsOn)??0,a=A(e);if(!q0(a))throw new RangeError("Invalid time value");let s=t.match(Hg).map(p=>{const v=p[0];if(v==="p"||v==="P"){const S=Lg[v];return S(p,o.formatLong)}return p}).join("").match(Vg).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const v=p[0];if(v==="'")return{isToken:!1,value:Kg(p)};if(lc[v])return{isToken:!0,value:p};if(v.match(Gg))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:p}});o.localize.preprocessor&&(s=o.localize.preprocessor(a,s));const u={firstWeekContainsDate:l,weekStartsOn:i,locale:o};return s.map(p=>{if(!p.isToken)return p.value;const v=p.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Wg(v)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Fg(v))&&Ug(v,t,String(e));const S=lc[v[0]];return S(a,v,o.localize,u)}).join("")}function Kg(e){const t=e.match(Yg);return t?t[1].replace(Qg,"'"):e}function Xg(e){const t=A(e),n=t.getFullYear(),r=t.getMonth(),o=$e(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function Jg(e){return Math.trunc(+A(e)/1e3)}function Zg(e){const t=A(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function qg(e,t){return eg(Zg(e),je(e),t)+1}function ga(e,t){const n=A(e),r=A(t);return n.getTime()>r.getTime()}function lp(e,t){const n=A(e),r=A(t);return+n<+r}function Ns(e,t){const n=A(e),r=A(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function e1(e,t){const n=A(e),r=A(t);return n.getFullYear()===r.getFullYear()}function pi(e,t){return we(e,-t)}function mi(e,t){const n=A(e),r=n.getFullYear(),o=n.getDate(),l=$e(e,0);l.setFullYear(r,t,15),l.setHours(0,0,0,0);const i=Xg(l);return n.setMonth(t,Math.min(o,i)),n}function uc(e,t){const n=A(e);return isNaN(+n)?$e(e,NaN):(n.setFullYear(t),n)}var O=function(){return O=Object.assign||function(t){for(var n,r=1,o=arguments.length;r1&&(s||!u),d=t>1&&(u||!s),m=function(){r&&l(r)},g=function(){o&&l(o)};return f.jsx(T1,{displayMonth:e.displayMonth,hideNext:c,hidePrevious:d,nextMonth:o,previousMonth:r,onPreviousClick:m,onNextClick:g})}function R1(e){var t,n=Y(),r=n.classNames,o=n.disableNavigation,l=n.styles,i=n.captionLayout,a=n.components,s=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:sp,u;return o?u=f.jsx(s,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?u=f.jsx(cc,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?u=f.jsxs(f.Fragment,{children:[f.jsx(cc,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),f.jsx(dc,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=f.jsxs(f.Fragment,{children:[f.jsx(s,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),f.jsx(dc,{displayMonth:e.displayMonth,id:e.id})]}),f.jsx("div",{className:r.caption,style:l.caption,children:u})}function $1(e){var t=Y(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?f.jsx("tfoot",{className:o,style:r.tfoot,children:f.jsx("tr",{children:f.jsx("td",{colSpan:8,children:n})})}):f.jsx(f.Fragment,{})}function L1(e,t,n){for(var r=n?dn(new Date):at(new Date,{locale:e,weekStartsOn:t}),o=[],l=0;l<7;l++){var i=we(r,l);o.push(i)}return o}function I1(){var e=Y(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,l=e.weekStartsOn,i=e.ISOWeek,a=e.formatters.formatWeekdayName,s=e.labels.labelWeekday,u=L1(o,l,i);return f.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&f.jsx("td",{style:n.head_cell,className:t.head_cell}),u.map(function(c,d){return f.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":s(c,{locale:o}),children:a(c,{locale:o})},d)})]})}function z1(){var e,t=Y(),n=t.classNames,r=t.styles,o=t.components,l=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:I1;return f.jsx("thead",{style:r.head,className:n.head,children:f.jsx(l,{})})}function A1(e){var t=Y(),n=t.locale,r=t.formatters.formatDay;return f.jsx(f.Fragment,{children:r(e.date,{locale:n})})}var _s=y.createContext(void 0);function F1(e){if(!qr(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return f.jsx(_s.Provider,{value:t,children:e.children})}return f.jsx(W1,{initialProps:e.initialProps,children:e.children})}function W1(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,l=t.max,i=function(u,c,d){var m,g;(m=t.onDayClick)===null||m===void 0||m.call(t,u,c,d);var x=!!(c.selected&&o&&(r==null?void 0:r.length)===o);if(!x){var w=!!(!c.selected&&l&&(r==null?void 0:r.length)===l);if(!w){var k=r?ip([],r,!0):[];if(c.selected){var h=k.findIndex(function(p){return _e(u,p)});k.splice(h,1)}else k.push(u);(g=t.onSelect)===null||g===void 0||g.call(t,k,u,c,d)}}},a={disabled:[]};r&&a.disabled.push(function(u){var c=l&&r.length>l-1,d=r.some(function(m){return _e(m,u)});return!!(c&&!d)});var s={selected:r,onDayClick:i,modifiers:a};return f.jsx(_s.Provider,{value:s,children:n})}function Es(){var e=y.useContext(_s);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function U1(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?_e(o,e)&&_e(r,e)?void 0:_e(o,e)?{from:o,to:void 0}:_e(r,e)?void 0:ga(r,e)?{from:e,to:o}:{from:r,to:e}:o?ga(e,o)?{from:o,to:e}:{from:e,to:o}:r?lp(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var Ps=y.createContext(void 0);function B1(e){if(!eo(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return f.jsx(Ps.Provider,{value:t,children:e.children})}return f.jsx(V1,{initialProps:e.initialProps,children:e.children})}function V1(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},l=o.from,i=o.to,a=t.min,s=t.max,u=function(g,x,w){var k,h;(k=t.onDayClick)===null||k===void 0||k.call(t,g,x,w);var p=U1(g,r);(h=t.onSelect)===null||h===void 0||h.call(t,p,g,x,w)},c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(l?(c.range_start=[l],i?(c.range_end=[i],_e(l,i)||(c.range_middle=[{after:l,before:i}])):c.range_end=[l]):i&&(c.range_start=[i],c.range_end=[i]),a&&(l&&!i&&c.disabled.push({after:pi(l,a-1),before:we(l,a-1)}),l&&i&&c.disabled.push({after:l,before:we(l,a-1)}),!l&&i&&c.disabled.push({after:pi(i,a-1),before:we(i,a-1)})),s){if(l&&!i&&(c.disabled.push({before:we(l,-s+1)}),c.disabled.push({after:we(l,s-1)})),l&&i){var d=ot(i,l)+1,m=s-d;c.disabled.push({before:pi(l,m)}),c.disabled.push({after:we(i,m)})}!l&&i&&(c.disabled.push({before:we(i,-s+1)}),c.disabled.push({after:we(i,s-1)}))}return f.jsx(Ps.Provider,{value:{selected:r,onDayClick:u,modifiers:c},children:n})}function Ms(){var e=y.useContext(Ps);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Io(e){return Array.isArray(e)?ip([],e,!0):e!==void 0?[e]:[]}function H1(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=Io(o)}),t}var Ze;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Ze||(Ze={}));var Y1=Ze.Selected,ct=Ze.Disabled,Q1=Ze.Hidden,G1=Ze.Today,hi=Ze.RangeEnd,vi=Ze.RangeMiddle,gi=Ze.RangeStart,K1=Ze.Outside;function X1(e,t,n){var r,o=(r={},r[Y1]=Io(e.selected),r[ct]=Io(e.disabled),r[Q1]=Io(e.hidden),r[G1]=[e.today],r[hi]=[],r[vi]=[],r[gi]=[],r[K1]=[],r);return e.fromDate&&o[ct].push({before:e.fromDate}),e.toDate&&o[ct].push({after:e.toDate}),qr(e)?o[ct]=o[ct].concat(t.modifiers[ct]):eo(e)&&(o[ct]=o[ct].concat(n.modifiers[ct]),o[gi]=n.modifiers[gi],o[vi]=n.modifiers[vi],o[hi]=n.modifiers[hi]),o}var dp=y.createContext(void 0);function J1(e){var t=Y(),n=Es(),r=Ms(),o=X1(t,n,r),l=H1(t.modifiers),i=O(O({},o),l);return f.jsx(dp.Provider,{value:i,children:e.children})}function fp(){var e=y.useContext(dp);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Z1(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function q1(e){return!!(e&&typeof e=="object"&&"from"in e)}function ey(e){return!!(e&&typeof e=="object"&&"after"in e)}function ty(e){return!!(e&&typeof e=="object"&&"before"in e)}function ny(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function ry(e,t){var n,r=t.from,o=t.to;if(r&&o){var l=ot(o,r)<0;l&&(n=[o,r],r=n[0],o=n[1]);var i=ot(e,r)>=0&&ot(o,e)>=0;return i}return o?_e(o,e):r?_e(r,e):!1}function oy(e){return Ss(e)}function ly(e){return Array.isArray(e)&&e.every(Ss)}function iy(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(oy(n))return _e(e,n);if(ly(n))return n.includes(e);if(q1(n))return ry(e,n);if(ny(n))return n.dayOfWeek.includes(e.getDay());if(Z1(n)){var r=ot(n.before,e),o=ot(n.after,e),l=r>0,i=o<0,a=ga(n.before,n.after);return a?i&&l:l||i}return ey(n)?ot(e,n.after)>0:ty(n)?ot(n.before,e)>0:typeof n=="function"?n(e):!1})}function js(e,t,n){var r=Object.keys(t).reduce(function(l,i){var a=t[i];return iy(e,a)&&l.push(i),l},[]),o={};return r.forEach(function(l){return o[l]=!0}),n&&!Ns(e,n)&&(o.outside=!0),o}function ay(e,t){for(var n=je(e[0]),r=Cs(e[e.length-1]),o,l,i=n;i<=r;){var a=js(i,t),s=!a.disabled&&!a.hidden;if(!s){i=we(i,1);continue}if(a.selected)return i;a.today&&!l&&(l=i),o||(o=i),i=we(i,1)}return l||o}var sy=365;function pp(e,t){var n=t.moveBy,r=t.direction,o=t.context,l=t.modifiers,i=t.retry,a=i===void 0?{count:0,lastFocused:e}:i,s=o.weekStartsOn,u=o.fromDate,c=o.toDate,d=o.locale,m={day:we,week:va,month:Je,year:X0,startOfWeek:function(k){return o.ISOWeek?dn(k):at(k,{locale:d,weekStartsOn:s})},endOfWeek:function(k){return o.ISOWeek?qf(k):bs(k,{locale:d,weekStartsOn:s})}},g=m[n](e,r==="after"?1:-1);r==="before"&&u?g=J0([u,g]):r==="after"&&c&&(g=Z0([c,g]));var x=!0;if(l){var w=js(g,l);x=!w.disabled&&!w.hidden}return x?g:a.count>sy?a.lastFocused:pp(g,{moveBy:n,direction:r,context:o,modifiers:l,retry:O(O({},a),{count:a.count+1})})}var mp=y.createContext(void 0);function uy(e){var t=to(),n=fp(),r=y.useState(),o=r[0],l=r[1],i=y.useState(),a=i[0],s=i[1],u=ay(t.displayMonths,n),c=o??(a&&t.isDateDisplayed(a))?a:u,d=function(){s(o),l(void 0)},m=function(k){l(k)},g=Y(),x=function(k,h){if(o){var p=pp(o,{moveBy:k,direction:h,context:g,modifiers:n});_e(o,p)||(t.goToDate(p,o),m(p))}},w={focusedDay:o,focusTarget:c,blur:d,focus:m,focusDayAfter:function(){return x("day","after")},focusDayBefore:function(){return x("day","before")},focusWeekAfter:function(){return x("week","after")},focusWeekBefore:function(){return x("week","before")},focusMonthBefore:function(){return x("month","before")},focusMonthAfter:function(){return x("month","after")},focusYearBefore:function(){return x("year","before")},focusYearAfter:function(){return x("year","after")},focusStartOfWeek:function(){return x("startOfWeek","before")},focusEndOfWeek:function(){return x("endOfWeek","after")}};return f.jsx(mp.Provider,{value:w,children:e.children})}function Ds(){var e=y.useContext(mp);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function cy(e,t){var n=fp(),r=js(e,n,t);return r}var Os=y.createContext(void 0);function dy(e){if(!Rl(e.initialProps)){var t={selected:void 0};return f.jsx(Os.Provider,{value:t,children:e.children})}return f.jsx(fy,{initialProps:e.initialProps,children:e.children})}function fy(e){var t=e.initialProps,n=e.children,r=function(l,i,a){var s,u,c;if((s=t.onDayClick)===null||s===void 0||s.call(t,l,i,a),i.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,l,i,a);return}(c=t.onSelect)===null||c===void 0||c.call(t,l,l,i,a)},o={selected:t.selected,onDayClick:r};return f.jsx(Os.Provider,{value:o,children:n})}function hp(){var e=y.useContext(Os);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function py(e,t){var n=Y(),r=hp(),o=Es(),l=Ms(),i=Ds(),a=i.focusDayAfter,s=i.focusDayBefore,u=i.focusWeekAfter,c=i.focusWeekBefore,d=i.blur,m=i.focus,g=i.focusMonthBefore,x=i.focusMonthAfter,w=i.focusYearBefore,k=i.focusYearAfter,h=i.focusStartOfWeek,p=i.focusEndOfWeek,v=function(j){var C,D,R,U;Rl(n)?(C=r.onDayClick)===null||C===void 0||C.call(r,e,t,j):qr(n)?(D=o.onDayClick)===null||D===void 0||D.call(o,e,t,j):eo(n)?(R=l.onDayClick)===null||R===void 0||R.call(l,e,t,j):(U=n.onDayClick)===null||U===void 0||U.call(n,e,t,j)},S=function(j){var C;m(e),(C=n.onDayFocus)===null||C===void 0||C.call(n,e,t,j)},N=function(j){var C;d(),(C=n.onDayBlur)===null||C===void 0||C.call(n,e,t,j)},_=function(j){var C;(C=n.onDayMouseEnter)===null||C===void 0||C.call(n,e,t,j)},E=function(j){var C;(C=n.onDayMouseLeave)===null||C===void 0||C.call(n,e,t,j)},M=function(j){var C;(C=n.onDayPointerEnter)===null||C===void 0||C.call(n,e,t,j)},W=function(j){var C;(C=n.onDayPointerLeave)===null||C===void 0||C.call(n,e,t,j)},T=function(j){var C;(C=n.onDayTouchCancel)===null||C===void 0||C.call(n,e,t,j)},de=function(j){var C;(C=n.onDayTouchEnd)===null||C===void 0||C.call(n,e,t,j)},F=function(j){var C;(C=n.onDayTouchMove)===null||C===void 0||C.call(n,e,t,j)},qe=function(j){var C;(C=n.onDayTouchStart)===null||C===void 0||C.call(n,e,t,j)},st=function(j){var C;(C=n.onDayKeyUp)===null||C===void 0||C.call(n,e,t,j)},yn=function(j){var C;switch(j.key){case"ArrowLeft":j.preventDefault(),j.stopPropagation(),n.dir==="rtl"?a():s();break;case"ArrowRight":j.preventDefault(),j.stopPropagation(),n.dir==="rtl"?s():a();break;case"ArrowDown":j.preventDefault(),j.stopPropagation(),u();break;case"ArrowUp":j.preventDefault(),j.stopPropagation(),c();break;case"PageUp":j.preventDefault(),j.stopPropagation(),j.shiftKey?w():g();break;case"PageDown":j.preventDefault(),j.stopPropagation(),j.shiftKey?k():x();break;case"Home":j.preventDefault(),j.stopPropagation(),h();break;case"End":j.preventDefault(),j.stopPropagation(),p();break}(C=n.onDayKeyDown)===null||C===void 0||C.call(n,e,t,j)},et={onClick:v,onFocus:S,onBlur:N,onKeyDown:yn,onKeyUp:st,onMouseEnter:_,onMouseLeave:E,onPointerEnter:M,onPointerLeave:W,onTouchCancel:T,onTouchEnd:de,onTouchMove:F,onTouchStart:qe};return et}function my(){var e=Y(),t=hp(),n=Es(),r=Ms(),o=Rl(e)?t.selected:qr(e)?n.selected:eo(e)?r.selected:void 0;return o}function hy(e){return Object.values(Ze).includes(e)}function vy(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(hy(r)){var l=e.classNames["day_".concat(r)];l&&n.push(l)}}),n}function gy(e,t){var n=O({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=O(O({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function yy(e,t,n){var r,o,l,i=Y(),a=Ds(),s=cy(e,t),u=py(e,s),c=my(),d=!!(i.onDayClick||i.mode!=="default");y.useEffect(function(){var _;s.outside||a.focusedDay&&d&&_e(a.focusedDay,e)&&((_=n.current)===null||_===void 0||_.focus())},[a.focusedDay,e,n,d,s.outside]);var m=vy(i,s).join(" "),g=gy(i,s),x=!!(s.outside&&!i.showOutsideDays||s.hidden),w=(l=(o=i.components)===null||o===void 0?void 0:o.DayContent)!==null&&l!==void 0?l:A1,k=f.jsx(w,{date:e,displayMonth:t,activeModifiers:s}),h={style:g,className:m,children:k,role:"gridcell"},p=a.focusTarget&&_e(a.focusTarget,e)&&!s.outside,v=a.focusedDay&&_e(a.focusedDay,e),S=O(O(O({},h),(r={disabled:s.disabled,role:"gridcell"},r["aria-selected"]=s.selected,r.tabIndex=v||p?0:-1,r)),u),N={isButton:d,isHidden:x,activeModifiers:s,selectedDays:c,buttonProps:S,divProps:h};return N}function xy(e){var t=y.useRef(null),n=yy(e.date,e.displayMonth,t);return n.isHidden?f.jsx("div",{role:"gridcell"}):n.isButton?f.jsx(ml,O({name:"day",ref:t},n.buttonProps)):f.jsx("div",O({},n.divProps))}function wy(e){var t=e.number,n=e.dates,r=Y(),o=r.onWeekNumberClick,l=r.styles,i=r.classNames,a=r.locale,s=r.labels.labelWeekNumber,u=r.formatters.formatWeekNumber,c=u(Number(t),{locale:a});if(!o)return f.jsx("span",{className:i.weeknumber,style:l.weeknumber,children:c});var d=s(Number(t),{locale:a}),m=function(g){o(t,n,g)};return f.jsx(ml,{name:"week-number","aria-label":d,className:i.weeknumber,style:l.weeknumber,onClick:m,children:c})}function ky(e){var t,n,r=Y(),o=r.styles,l=r.classNames,i=r.showWeekNumber,a=r.components,s=(t=a==null?void 0:a.Day)!==null&&t!==void 0?t:xy,u=(n=a==null?void 0:a.WeekNumber)!==null&&n!==void 0?n:wy,c;return i&&(c=f.jsx("td",{className:l.cell,style:o.cell,children:f.jsx(u,{number:e.weekNumber,dates:e.dates})})),f.jsxs("tr",{className:l.row,style:o.row,children:[c,e.dates.map(function(d){return f.jsx("td",{className:l.cell,style:o.cell,role:"presentation",children:f.jsx(s,{displayMonth:e.displayMonth,date:d})},Jg(d))})]})}function fc(e,t,n){for(var r=n!=null&&n.ISOWeek?qf(t):bs(t,n),o=n!=null&&n.ISOWeek?dn(e):at(e,n),l=ot(r,o),i=[],a=0;a<=l;a++)i.push(we(o,a));var s=i.reduce(function(u,c){var d=n!=null&&n.ISOWeek?tp(c):rp(c,n),m=u.find(function(g){return g.weekNumber===d});return m?(m.dates.push(c),u):(u.push({weekNumber:d,dates:[c]}),u)},[]);return s}function Sy(e,t){var n=fc(je(e),Cs(e),t);if(t!=null&&t.useFixedWeeks){var r=qg(e,t);if(r<6){var o=n[n.length-1],l=o.dates[o.dates.length-1],i=va(l,6-r),a=fc(va(l,1),i,t);n.push.apply(n,a)}}return n}function Cy(e){var t,n,r,o=Y(),l=o.locale,i=o.classNames,a=o.styles,s=o.hideHead,u=o.fixedWeeks,c=o.components,d=o.weekStartsOn,m=o.firstWeekContainsDate,g=o.ISOWeek,x=Sy(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:g,locale:l,weekStartsOn:d,firstWeekContainsDate:m}),w=(t=c==null?void 0:c.Head)!==null&&t!==void 0?t:z1,k=(n=c==null?void 0:c.Row)!==null&&n!==void 0?n:ky,h=(r=c==null?void 0:c.Footer)!==null&&r!==void 0?r:$1;return f.jsxs("table",{id:e.id,className:i.table,style:a.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!s&&f.jsx(w,{}),f.jsx("tbody",{className:i.tbody,style:a.tbody,children:x.map(function(p){return f.jsx(k,{displayMonth:e.displayMonth,dates:p.dates,weekNumber:p.weekNumber},p.weekNumber)})}),f.jsx(h,{displayMonth:e.displayMonth})]})}function by(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Ny=by()?y.useLayoutEffect:y.useEffect,yi=!1,_y=0;function pc(){return"react-day-picker-".concat(++_y)}function Ey(e){var t,n=e??(yi?pc():null),r=y.useState(n),o=r[0],l=r[1];return Ny(function(){o===null&&l(pc())},[]),y.useEffect(function(){yi===!1&&(yi=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function Py(e){var t,n,r=Y(),o=r.dir,l=r.classNames,i=r.styles,a=r.components,s=to().displayMonths,u=Ey(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),c=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,d=[l.month],m=i.month,g=e.displayIndex===0,x=e.displayIndex===s.length-1,w=!g&&!x;o==="rtl"&&(t=[g,x],x=t[0],g=t[1]),g&&(d.push(l.caption_start),m=O(O({},m),i.caption_start)),x&&(d.push(l.caption_end),m=O(O({},m),i.caption_end)),w&&(d.push(l.caption_between),m=O(O({},m),i.caption_between));var k=(n=a==null?void 0:a.Caption)!==null&&n!==void 0?n:R1;return f.jsxs("div",{className:d.join(" "),style:m,children:[f.jsx(k,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),f.jsx(Cy,{id:c,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function My(e){var t=Y(),n=t.classNames,r=t.styles;return f.jsx("div",{className:n.months,style:r.months,children:e.children})}function jy(e){var t,n,r=e.initialProps,o=Y(),l=Ds(),i=to(),a=y.useState(!1),s=a[0],u=a[1];y.useEffect(function(){o.initialFocus&&l.focusTarget&&(s||(l.focus(l.focusTarget),u(!0)))},[o.initialFocus,s,l.focus,l.focusTarget,l]);var c=[o.classNames.root,o.className];o.numberOfMonths>1&&c.push(o.classNames.multiple_months),o.showWeekNumber&&c.push(o.classNames.with_weeknumber);var d=O(O({},o.styles.root),o.style),m=Object.keys(r).filter(function(x){return x.startsWith("data-")}).reduce(function(x,w){var k;return O(O({},x),(k={},k[w]=r[w],k))},{}),g=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:My;return f.jsx("div",O({className:c.join(" "),style:d,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},m,{children:f.jsx(g,{children:i.displayMonths.map(function(x,w){return f.jsx(Py,{displayIndex:w,displayMonth:x},w)})})}))}function Dy(e){var t=e.children,n=t1(e,["children"]);return f.jsx(w1,{initialProps:n,children:f.jsx(j1,{children:f.jsx(dy,{initialProps:n,children:f.jsx(F1,{initialProps:n,children:f.jsx(B1,{initialProps:n,children:f.jsx(J1,{children:f.jsx(uy,{children:t})})})})})})})}function Oy(e){return f.jsx(Dy,O({},e,{children:f.jsx(jy,{initialProps:e})}))}function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>Ty(n,t))}function Vr(...e){return y.useCallback(vp(...e),e)}const Hr=y.forwardRef((e,t)=>{const{children:n,...r}=e,o=y.Children.toArray(n),l=o.find($y);if(l){const i=l.props.children,a=o.map(s=>s===l?y.Children.count(i)>1?y.Children.only(null):y.isValidElement(i)?i.props.children:null:s);return y.createElement(ya,ce({},r,{ref:t}),y.isValidElement(i)?y.cloneElement(i,void 0,a):null)}return y.createElement(ya,ce({},r,{ref:t}),n)});Hr.displayName="Slot";const ya=y.forwardRef((e,t)=>{const{children:n,...r}=e;return y.isValidElement(n)?y.cloneElement(n,{...Ly(r,n.props),ref:t?vp(t,n.ref):n.ref}):y.Children.count(n)>1?y.Children.only(null):null});ya.displayName="SlotClone";const Ry=({children:e})=>y.createElement(y.Fragment,null,e);function $y(e){return y.isValidElement(e)&&e.type===Ry}function Ly(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...a)=>{l(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function gp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,hc=Iy,zy=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return hc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,i=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=l==null?void 0:l[u];if(c===null)return null;const m=mc(c)||mc(d);return o[u][m]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,m]=c;return m===void 0||(u[d]=m),u},{}),s=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:m,...g}=c;return Object.entries(g).every(x=>{let[w,k]=x;return Array.isArray(k)?k.includes({...l,...a}[w]):{...l,...a}[w]===k})?[...u,d,m]:u},[]);return hc(e,i,s,n==null?void 0:n.class,n==null?void 0:n.className)},xa=zy("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground border-black dark:border-[#ccc]",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ie=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},l)=>{const i=r?Hr:"button";return f.jsx(i,{className:ht(xa({variant:t,size:n,className:e})),ref:l,...o})});ie.displayName="Button";function yp({className:e,classNames:t,showOutsideDays:n=!0,...r}){return f.jsx(Oy,{showOutsideDays:n,className:ht("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:ht(xa({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:ht("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:ht(xa({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:()=>f.jsx(V0,{className:"h-4 w-4"}),IconRight:()=>f.jsx(Y0,{className:"h-4 w-4"})},...r})}yp.displayName="Calendar";const Ay=()=>f.jsx("footer",{className:"static mt-12 flex justify-center align-bottom dark:text-[#ccc]",children:f.jsx("a",{href:"https://karolfaltyn.github.io/",target:"_blank",className:"p-4 text-xl font-extralight hover:font-normal",children:"CLICK ME!"})}),Fy=()=>{const[e,t]=$.useState(new Date);return f.jsxs("div",{className:"container",children:[f.jsx(A0,{}),f.jsxs("main",{children:[f.jsx(F0,{}),f.jsx("div",{className:"flex justify-center",children:f.jsx(yp,{mode:"single",selected:e,onSelect:t,className:"rounded-md border border-black shadow-md dark:border-[#ccc]"})})]}),f.jsx(Ay,{})]})},$l=()=>f.jsxs("nav",{className:"mb-12 flex items-center justify-around border-b border-[#444] p-4 dark:border-[#ccc] md:mb-24",children:[f.jsxs("div",{className:"flex gap-2",children:[f.jsx(mr,{to:"/",className:"font-sarabun text-2xl hover:opacity-75 dark:text-[#fafafa]",children:"Zen"}),f.jsx("div",{className:"relative flex items-center",children:f.jsxs("button",{onClick:hs,className:"text-2xl",children:["❖",f.jsx("div",{className:"absolute left-3 top-4",children:f.jsx("svg",{className:"cursor",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"#999",children:f.jsx("path",{d:"M19.221 10.803 12 10V4a2 2 0 0 0-4 0v12l-3.031-1.212a2 2 0 0 0-2.64 1.225l-.113.34a.998.998 0 0 0 .309 1.084l5.197 4.332c.179.149.406.231.64.231H19a2 2 0 0 0 2-2v-7.21a2 2 0 0 0-1.779-1.987z"})})})]})})]}),f.jsx("div",{className:"w-12 text-2xl font-extralight",children:f.jsx(Xf,{})})]}),Wy=({todo:e,index:t,onDelete:n,onEdit:r})=>{const[o,l]=y.useState(!1),[i,a]=y.useState(e),[s,u]=y.useState(!1),c=()=>{l(!0)},d=w=>{w.target.value.length<=500&&a(w.target.value)},m=()=>{r(t,i),l(!1)},g=()=>{a(e),l(!1)},x=()=>{u(!s)};return f.jsx("div",{className:"flex flex-col rounded border p-4 shadow-md",children:o?f.jsxs("div",{children:[f.jsx("textarea",{value:i,onChange:d,className:"w-full rounded border bg-gray-100 p-2 text-black dark:bg-[#444] dark:text-white"}),f.jsxs("div",{className:"mt-2 flex flex-col items-center justify-between sm:flex-row",children:[f.jsxs("span",{className:"mb-2 font-sarabun text-[#999]",children:[i.length,"/500 characters"]}),f.jsxs("div",{className:"flex justify-center gap-2",children:[f.jsx(ie,{onClick:m,children:"Save"}),f.jsx(ie,{variant:"outline",onClick:g,children:"Cancel"})]})]})]}):f.jsxs("div",{className:"flex flex-col items-center justify-between gap-4 sm:flex-row",children:[f.jsx("p",{className:`whitespace-pre-wrap break-words ${s?"line-through":""}`,children:e}),f.jsxs("div",{className:"flex flex-row justify-center gap-2 sm:flex-col xl:flex-row",children:[f.jsx(ie,{onClick:c,children:"Edit"}),f.jsx(ie,{variant:"secondary",onClick:()=>n(t),children:"Delete"}),f.jsx(ie,{variant:"outline",onClick:x,style:{textDecoration:s?"line-through":"none"},className:"text-md font-extrabold text-[#7f0102] dark:text-red-400",children:s?f.jsx(f.Fragment,{children:"☐"}):f.jsx(f.Fragment,{children:"☐"})})]})]})})},Uy=()=>{const[e,t]=y.useState([]),[n,r]=y.useState(""),[o,l]=y.useState(0);y.useEffect(()=>{const c=localStorage.getItem("tasks");c&&c!=="[]"&&t(JSON.parse(c))},[]),y.useEffect(()=>{e.length>0&&localStorage.setItem("tasks",JSON.stringify(e))},[e]);const i=()=>{n.trim()&&n.length<=500&&(t([...e,n]),r(""),l(0))},a=c=>{c.target.value.length<=500&&(r(c.target.value),l(c.target.value.length))},s=c=>{const d=e.filter((m,g)=>g!==c);t(d)},u=(c,d)=>{const m=e.map((g,x)=>x===c?d:g);t(m)};return f.jsxs("div",{className:"container",children:[f.jsx($l,{}),f.jsx("main",{className:"flex justify-center",children:f.jsxs("div",{className:"w-full sm:w-3/4 lg:w-1/2",children:[f.jsx("h1",{className:"mb-10 flex justify-center font-sarabun text-2xl font-medium text-[#444] dark:text-[#fafafa]",children:"To-Do List"}),f.jsxs("div",{children:[f.jsx("textarea",{value:n,onChange:a,placeholder:"Add new task",className:"w-full rounded border bg-gray-100 p-2 text-black dark:bg-[#444] dark:text-white"}),f.jsxs("div",{className:"mb-8 mt-2 flex items-center justify-between",children:[f.jsxs("span",{className:"font-sarabun text-[#999]",children:[o,"/500 characters"]}),f.jsx(ie,{onClick:i,children:"Add"})]})]}),f.jsx("div",{className:"flex flex-col gap-4 mb-8",children:e.map((c,d)=>f.jsx(Wy,{todo:c,index:d,onDelete:s,onEdit:u},d))})]})})]})},By=({note:e,index:t,onDelete:n,onEdit:r})=>{const[o,l]=y.useState(!1),[i,a]=y.useState(e),s=()=>{l(!0)},u=m=>{m.target.value.length<=1500&&a(m.target.value)},c=()=>{r(t,i),l(!1)},d=()=>{a(e),l(!1)};return f.jsx("div",{className:"flex flex-col rounded border p-4 shadow-md",children:o?f.jsxs("div",{children:[f.jsx("textarea",{value:i,onChange:u,className:"w-full rounded border bg-gray-100 p-2 text-black dark:bg-[#444] dark:text-white"}),f.jsxs("div",{className:"mt-2 flex flex-col items-center justify-between sm:flex-row",children:[f.jsxs("span",{className:"mb-2 font-sarabun text-[#999]",children:[i.length,"/1500 characters"]}),f.jsxs("div",{className:"flex justify-center gap-2",children:[f.jsx(ie,{onClick:c,children:"Save"}),f.jsx(ie,{variant:"outline",onClick:d,children:"Cancel"})]})]})]}):f.jsxs("div",{className:"flex flex-col items-center justify-between gap-4 ",children:[f.jsx("p",{className:"whitespace-pre-wrap break-words",children:e}),f.jsxs("div",{className:"flex flex-row justify-center gap-2",children:[f.jsx(ie,{onClick:s,children:"Edit"}),f.jsx(ie,{variant:"secondary",onClick:()=>n(t),children:"Delete"})]})]})})},Vy=()=>{const[e,t]=y.useState([]),[n,r]=y.useState(""),[o,l]=y.useState(0);y.useEffect(()=>{const c=localStorage.getItem("notes");c&&c!=="[]"&&t(JSON.parse(c))},[]),y.useEffect(()=>{e.length>0&&localStorage.setItem("notes",JSON.stringify(e))},[e]);const i=()=>{n.trim()&&n.length<=1500&&(t([...e,n]),r(""),l(0))},a=c=>{c.target.value.length<=1500&&(r(c.target.value),l(c.target.value.length))},s=c=>{const d=e.filter((m,g)=>g!==c);t(d)},u=(c,d)=>{const m=e.map((g,x)=>x===c?d:g);t(m)};return f.jsxs("div",{className:"container",children:[f.jsx($l,{}),f.jsx("main",{className:"flex justify-center",children:f.jsxs("div",{className:"w-full sm:w-3/4 lg:w-1/2",children:[f.jsx("h1",{className:"mb-10 flex justify-center font-sarabun text-2xl font-medium text-[#444] dark:text-[#fafafa]",children:"Notes"}),f.jsxs("div",{children:[f.jsx("textarea",{value:n,onChange:a,placeholder:"Add new note",className:"w-full rounded border bg-gray-100 p-2 text-black dark:bg-[#444] dark:text-white"}),f.jsxs("div",{className:"mb-8 mt-2 flex items-center justify-between",children:[f.jsxs("span",{className:"font-sarabun text-[#999]",children:[o,"/1500 characters"]}),f.jsx(ie,{onClick:i,children:"Add"})]})]}),f.jsx("div",{className:"mb-8 flex flex-col gap-4",children:e.map((c,d)=>f.jsx(By,{note:c,index:d,onDelete:s,onEdit:u},d))})]})})]})};function Ts(e,t=[]){let n=[];function r(l,i){const a=y.createContext(i),s=n.length;n=[...n,i];function u(d){const{scope:m,children:g,...x}=d,w=(m==null?void 0:m[e][s])||a,k=y.useMemo(()=>x,Object.values(x));return y.createElement(w.Provider,{value:k},g)}function c(d,m){const g=(m==null?void 0:m[e][s])||a,x=y.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,c]}const o=()=>{const l=n.map(i=>y.createContext(i));return function(a){const s=(a==null?void 0:a[e])||l;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[r,Hy(o,...t)]}function Hy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const i=r.reduce((a,{useScope:s,scopeName:u})=>{const d=s(l)[`__scope${u}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Yy(e){const t=e+"CollectionProvider",[n,r]=Ts(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:x,children:w}=g,k=$.useRef(null),h=$.useRef(new Map).current;return $.createElement(o,{scope:x,itemMap:h,collectionRef:k},w)},a=e+"CollectionSlot",s=$.forwardRef((g,x)=>{const{scope:w,children:k}=g,h=l(a,w),p=Vr(x,h.collectionRef);return $.createElement(Hr,{ref:p},k)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",d=$.forwardRef((g,x)=>{const{scope:w,children:k,...h}=g,p=$.useRef(null),v=Vr(x,p),S=l(u,w);return $.useEffect(()=>(S.itemMap.set(p,{ref:p,...h}),()=>void S.itemMap.delete(p))),$.createElement(Hr,{[c]:"",ref:v},k)});function m(g){const x=l(e+"CollectionConsumer",g);return $.useCallback(()=>{const k=x.collectionRef.current;if(!k)return[];const h=Array.from(k.querySelectorAll(`[${c}]`));return Array.from(x.itemMap.values()).sort((S,N)=>h.indexOf(S.ref.current)-h.indexOf(N.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:s,ItemSlot:d},m,r]}function xp(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function wp(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Rs({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Qy({defaultProp:t,onChange:n}),l=e!==void 0,i=l?e:r,a=wp(n),s=y.useCallback(u=>{if(l){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else o(u)},[l,e,o,a]);return[i,s]}function Qy({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,o=y.useRef(r),l=wp(t);return y.useEffect(()=>{o.current!==r&&(l(r),o.current=r)},[r,o,l]),n}const Gy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],no=Gy.reduce((e,t)=>{const n=y.forwardRef((r,o)=>{const{asChild:l,...i}=r,a=l?Hr:t;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(a,ce({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hl=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{};function Ky(e,t){return y.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const kp=e=>{const{present:t,children:n}=e,r=Xy(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),l=Vr(r.ref,o.ref);return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:l}):null};kp.displayName="Presence";function Xy(e){const[t,n]=y.useState(),r=y.useRef({}),o=y.useRef(e),l=y.useRef("none"),i=e?"mounted":"unmounted",[a,s]=Ky(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=bo(r.current);l.current=a==="mounted"?u:"none"},[a]),hl(()=>{const u=r.current,c=o.current;if(c!==e){const m=l.current,g=bo(u);e?s("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),hl(()=>{if(t){const u=d=>{const g=bo(r.current).includes(d.animationName);d.target===t&&g&&Tf.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(l.current=bo(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function bo(e){return(e==null?void 0:e.animationName)||"none"}const Jy=Ec.useId||(()=>{});let Zy=0;function Sp(e){const[t,n]=y.useState(Jy());return hl(()=>{e||n(r=>r??String(Zy++))},[e]),e||(t?`radix-${t}`:"")}const Cp="Collapsible",[qy,bp]=Ts(Cp),[ex,$s]=qy(Cp),tx=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:l,onOpenChange:i,...a}=e,[s=!1,u]=Rs({prop:r,defaultProp:o,onChange:i});return y.createElement(ex,{scope:n,disabled:l,contentId:Sp(),open:s,onOpenToggle:y.useCallback(()=>u(c=>!c),[u])},y.createElement(no.div,ce({"data-state":Ls(s),"data-disabled":l?"":void 0},a,{ref:t})))}),nx="CollapsibleTrigger",rx=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=$s(nx,n);return y.createElement(no.button,ce({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ls(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:xp(e.onClick,o.onOpenToggle)}))}),Np="CollapsibleContent",ox=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$s(Np,e.__scopeCollapsible);return y.createElement(kp,{present:n||o.open},({present:l})=>y.createElement(lx,ce({},r,{ref:t,present:l})))}),lx=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...l}=e,i=$s(Np,n),[a,s]=y.useState(r),u=y.useRef(null),c=Vr(t,u),d=y.useRef(0),m=d.current,g=y.useRef(0),x=g.current,w=i.open||a,k=y.useRef(w),h=y.useRef();return y.useEffect(()=>{const p=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(p)},[]),hl(()=>{const p=u.current;if(p){h.current=h.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const v=p.getBoundingClientRect();d.current=v.height,g.current=v.width,k.current||(p.style.transitionDuration=h.current.transitionDuration,p.style.animationName=h.current.animationName),s(r)}},[i.open,r]),y.createElement(no.div,ce({"data-state":Ls(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!w},l,{ref:c,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style}}),w&&o)});function Ls(e){return e?"open":"closed"}const ix=tx,ax=rx,sx=ox,ux=y.createContext(void 0);function cx(e){const t=y.useContext(ux);return e||t||"ltr"}const Qt="Accordion",dx=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Is,fx,px]=Yy(Qt),[Ll,Lx]=Ts(Qt,[px,bp]),zs=bp(),_p=$.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,l=r;return $.createElement(Is.Provider,{scope:e.__scopeAccordion},n==="multiple"?$.createElement(gx,ce({},l,{ref:t})):$.createElement(vx,ce({},o,{ref:t})))});_p.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Ep,mx]=Ll(Qt),[Pp,hx]=Ll(Qt,{collapsible:!1}),vx=$.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:l=!1,...i}=e,[a,s]=Rs({prop:n,defaultProp:r,onChange:o});return $.createElement(Ep,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:s,onItemClose:$.useCallback(()=>l&&s(""),[l,s])},$.createElement(Pp,{scope:e.__scopeAccordion,collapsible:l},$.createElement(Mp,ce({},i,{ref:t}))))}),gx=$.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...l}=e,[i=[],a]=Rs({prop:n,defaultProp:r,onChange:o}),s=$.useCallback(c=>a((d=[])=>[...d,c]),[a]),u=$.useCallback(c=>a((d=[])=>d.filter(m=>m!==c)),[a]);return $.createElement(Ep,{scope:e.__scopeAccordion,value:i,onItemOpen:s,onItemClose:u},$.createElement(Pp,{scope:e.__scopeAccordion,collapsible:!0},$.createElement(Mp,ce({},l,{ref:t}))))}),[yx,Il]=Ll(Qt),Mp=$.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:l="vertical",...i}=e,a=$.useRef(null),s=Vr(a,t),u=fx(n),d=cx(o)==="ltr",m=xp(e.onKeyDown,g=>{var x;if(!dx.includes(g.key))return;const w=g.target,k=u().filter(W=>{var T;return!((T=W.ref.current)!==null&&T!==void 0&&T.disabled)}),h=k.findIndex(W=>W.ref.current===w),p=k.length;if(h===-1)return;g.preventDefault();let v=h;const S=0,N=p-1,_=()=>{v=h+1,v>N&&(v=S)},E=()=>{v=h-1,v{const{__scopeAccordion:n,value:r,...o}=e,l=Il(wa,n),i=mx(wa,n),a=zs(n),s=Sp(),u=r&&i.value.includes(r)||!1,c=l.disabled||e.disabled;return $.createElement(xx,{scope:n,open:u,disabled:c,triggerId:s},$.createElement(ix,ce({"data-orientation":l.orientation,"data-state":jp(u)},a,o,{ref:t,disabled:c,open:u,onOpenChange:d=>{d?i.onItemOpen(r):i.onItemClose(r)}})))}),kx="AccordionHeader",Sx=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Il(Qt,n),l=As(kx,n);return $.createElement(no.h3,ce({"data-orientation":o.orientation,"data-state":jp(l.open),"data-disabled":l.disabled?"":void 0},r,{ref:t}))}),vc="AccordionTrigger",Cx=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Il(Qt,n),l=As(vc,n),i=hx(vc,n),a=zs(n);return $.createElement(Is.ItemSlot,{scope:n},$.createElement(ax,ce({"aria-disabled":l.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:l.triggerId},a,r,{ref:t})))}),bx="AccordionContent",Nx=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Il(Qt,n),l=As(bx,n),i=zs(n);return $.createElement(sx,ce({role:"region","aria-labelledby":l.triggerId,"data-orientation":o.orientation},i,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function jp(e){return e?"open":"closed"}const _x=_p,Ex=wx,Px=Sx,Dp=Cx,Op=Nx,Mx=_x,zo=y.forwardRef(({className:e,...t},n)=>f.jsx(Ex,{ref:n,className:ht("border-b",e),...t}));zo.displayName="AccordionItem";const Ao=y.forwardRef(({className:e,children:t,...n},r)=>f.jsx(Px,{className:"flex",children:f.jsxs(Dp,{ref:r,className:ht("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,f.jsx(U0,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Ao.displayName=Dp.displayName;const Fo=y.forwardRef(({className:e,children:t,...n},r)=>f.jsx(Op,{ref:r,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:f.jsx("div",{className:ht("pb-4 pt-0",e),children:t})}));Fo.displayName=Op.displayName;const jx=()=>{const[e,t]=y.useState(0),[n,r]=y.useState(25),[o,l]=y.useState(0),[i,a]=y.useState(!1),[s,u]=y.useState(!1),[c,d]=y.useState(!1),m=y.useRef(null),g=y.useRef(null);y.useEffect(()=>(s?m.current=setInterval(()=>{o===0&&n===0?(clearInterval(m.current),i?(r(25),a(!1)):(e===3?(r(20),t(0)):(r(5),t(h=>h+1)),a(!0)),d(!0),u(!1)):o===0?(l(59),r(h=>h-1)):l(h=>h-1)},1e3):clearInterval(m.current),()=>{m.current&&clearInterval(m.current)}),[s,n,o,i,e]),y.useEffect(()=>{c&&g.current&&(g.current.play(),g.current.onended=()=>{d(!1)})},[c]);const x=h=>h<10?`0${h}`:`${h}`,w=()=>{s?(u(!1),g.current&&(g.current.pause(),g.current.currentTime=0)):(u(!0),c&&(d(!1),g.current&&(g.current.pause(),g.current.currentTime=0)))},k=()=>{u(!1),r(25),l(0),a(!1),t(0),d(!1),g.current&&(g.current.pause(),g.current.currentTime=0)};return f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsx("h1",{className:"mb-8 font-sarabun text-2xl font-medium text-[#444] dark:text-[#fafafa]",children:"Pomodoro Timer"}),f.jsx("p",{className:"mb-2 font-sarabun text-5xl font-medium text-[#7f0102] dark:text-red-400 sm:text-7xl",children:i?"Rest Time":"Work Time"}),f.jsxs("p",{className:"mb-8 text-3xl font-extralight",children:[x(n),":",x(o)]}),f.jsx("audio",{ref:g,src:"/assets/times-out.mp3"}),f.jsxs("div",{className:"flex gap-4",children:[f.jsx(ie,{onClick:w,children:s?"Pause":"Start"}),f.jsx(ie,{variant:"secondary",onClick:k,children:"Reset"})]}),f.jsx("div",{className:"mt-8 w-64 sm:w-96",children:f.jsxs(Mx,{type:"single",collapsible:!0,children:[f.jsxs(zo,{value:"item-1",children:[f.jsx(Ao,{children:"What is the Pomodoro Technique?"}),f.jsx(Fo,{children:"A time management method developed by Francesco Cirillo in the late 1980s. It uses a kitchen timer to break work into intervals, typically 25 minutes in length, separated by short breaks."})]}),f.jsxs(zo,{value:"item-2",children:[f.jsx(Ao,{children:"How does it work?"}),f.jsx(Fo,{children:"Set your timer for 25 minutes and focus on a single task until the timer rings. When your session ends, enjoy a five-minute break. After four Pomodoros, take a longer, more restorative 15-30 minute break."})]}),f.jsxs(zo,{value:"item-3",children:[f.jsx(Ao,{children:"Why should I use it?"}),f.jsx(Fo,{children:"The Pomodoro Technique essentially trains people to focus on tasks better by limiting the length of time they attempt to maintain that focus and ensuring restorative breaks from the effort."})]})]})})]})},Dx=()=>f.jsxs("div",{className:"container",children:[f.jsx($l,{}),f.jsx("main",{children:f.jsx(jx,{})})]}),Ox=()=>{const[e,t]=y.useState("00"),[n,r]=y.useState("05"),[o,l]=y.useState("00"),[i,a]=y.useState(!1),s=$.createRef(),u=x=>{let w=parseInt(x.target.value);w=isNaN(w)?0:Math.min(Math.max(0,w),60),t(w.toString().padStart(2,"0"))},c=x=>{let w=parseInt(x.target.value);w=isNaN(w)?0:Math.min(Math.max(0,w),60),r(w.toString().padStart(2,"0"))},d=x=>{let w=parseInt(x.target.value);w=isNaN(w)?0:Math.min(Math.max(0,w),60),l(w.toString().padStart(2,"0"))},m=()=>{a(!i)},g=()=>{t("00"),r("05"),l("00"),a(!1)};return y.useEffect(()=>{let x=parseInt(e)*3600+parseInt(n)*60+parseInt(o);if(i&&x===0){s.current&&s.current.play(),a(!1);return}let w;return i&&(w=setInterval(()=>{if(i&&x>0){x--;const h=Math.floor(x/3600),p=Math.floor(x%3600/60),v=x%60;t(h.toString().padStart(2,"0")),r(p.toString().padStart(2,"0")),l(v.toString().padStart(2,"0"))}else clearInterval(w)},1e3)),()=>clearInterval(w)},[i,e,n,o,s]),y.useEffect(()=>{const x=()=>{document.visibilityState==="hidden"?a(!1):i&&a(!0)};return document.addEventListener("visibilitychange",x),()=>{document.removeEventListener("visibilitychange",x)}},[i]),f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsxs("div",{className:"mb-8 font-sarabun text-5xl font-medium text-[#7f0102] dark:text-red-400 sm:text-7xl",children:[f.jsx("input",{type:"number",value:e,onChange:u,className:"w-16 bg-[#ffffff] dark:bg-[#181a1b] sm:w-24",disabled:i}),":"," ",f.jsx("input",{type:"number",value:n,onChange:c,className:"w-16 bg-[#ffffff] dark:bg-[#181a1b] sm:w-24",disabled:i}),":"," ",f.jsx("input",{type:"number",value:o,onChange:d,className:"w-16 bg-[#ffffff] dark:bg-[#181a1b] sm:w-24",disabled:i})]}),f.jsxs("div",{className:"flex gap-4",children:[f.jsx(ie,{onClick:m,children:i?"Pause":"Start"}),f.jsx(ie,{variant:"secondary",onClick:g,children:"Reset"})]}),f.jsxs("div",{className:"mt-8 flex max-w-[60ch] flex-col items-center text-center",children:[f.jsx("span",{className:"text-lg font-semibold",children:"Warning"}),f.jsx("p",{children:"Timer will be stopped if you change or minimize page due to browser performance optimization"})]}),f.jsx("audio",{ref:s,children:f.jsx("source",{src:"/assets/times-out.mp3",type:"audio/mpeg"})})]})},Tx=()=>{const[e,t]=y.useState(!1),[n,r]=y.useState(0),[o,l]=y.useState([]),i=y.useRef(null),a=m=>{const g=Math.floor(m/6e4),x=Math.floor(m%6e4/1e3),w=Math.floor(m%1e3/10);return`${g.toString().padStart(2,"0")} : ${x.toString().padStart(2,"0")} . ${w.toString().padStart(2,"0")}`},s=()=>{t(!0),i.current=setInterval(()=>{r(m=>m+10)},10)},u=()=>{t(!1),i.current&&clearInterval(i.current)},c=()=>{r(0),t(!1),l([]),i.current&&clearInterval(i.current)},d=()=>{const m=a(n);l(g=>[...g,m])};return f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsx("div",{className:"mb-8 font-sarabun text-5xl font-medium text-[#7f0102] dark:text-red-400 sm:text-7xl",children:a(n)}),f.jsxs("div",{className:"flex gap-4",children:[f.jsx(ie,{onClick:e?u:s,children:e?"Stop":"Start"}),f.jsx(ie,{variant:"outline",onClick:d,children:"Save"}),f.jsx(ie,{variant:"secondary",onClick:c,children:"Reset"})]}),f.jsxs("div",{className:"mt-8 flex max-w-[60ch] flex-col items-center text-center",children:[f.jsx("span",{className:"text-lg font-semibold",children:"Warning"}),f.jsx("p",{children:"Timer will be stopped if you change or minimize page due to browser performance optimization"})]}),f.jsxs("div",{className:"mt-6",children:[f.jsx("h3",{className:"text-xl font-medium",children:"Saved Times:"}),f.jsx("ul",{className:"text-center",children:o.map((m,g)=>f.jsxs("li",{children:[g+1,". ",m]},g))})]})]})},gc=({onClick:e,active:t,children:n})=>f.jsx("button",{className:`pointer opacity-${t?"100":"50"} mb-8 font-sarabun text-2xl font-medium text-[#444] dark:text-[#fafafa]`,onClick:e,children:n}),Rx=()=>{const[e,t]=y.useState(!0),n=r=>{t(r)};return f.jsxs("div",{className:"container",children:[f.jsx($l,{}),f.jsx("main",{children:f.jsxs("div",{className:"flex flex-col items-center mb-8",children:[f.jsxs("h1",{className:"flex gap-4",children:[f.jsx(gc,{onClick:()=>n(!0),active:e,children:"Timer"}),f.jsx(gc,{onClick:()=>n(!1),active:!e,children:"Stopwatch"})]}),e?f.jsx(Ox,{}):f.jsx(Tx,{})]})})]})},$x=()=>(y.useEffect(()=>{const e=localStorage.getItem("isDarkMode");e&&(document.documentElement.classList.toggle("dark",JSON.parse(e)),document.body.classList.toggle("bg-[#181a1b]",JSON.parse(e)),hs())},[]),f.jsx(t0,{children:f.jsxs(Gv,{children:[f.jsx(kn,{index:!0,element:f.jsx(Fy,{})}),f.jsx(kn,{path:"todo",element:f.jsx(Uy,{})}),f.jsx(kn,{path:"notes",element:f.jsx(Vy,{})}),f.jsx(kn,{path:"pomodoro",element:f.jsx(Dx,{})}),f.jsx(kn,{path:"timer",element:f.jsx(Rx,{})})]})}));xi.createRoot(document.getElementById("root")).render(f.jsx($.StrictMode,{children:f.jsx($x,{})})); diff --git a/index.html b/index.html index 86da598..2d97d2e 100644 --- a/index.html +++ b/index.html @@ -13,15 +13,15 @@ href="https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap" rel="stylesheet"> - - - - + + + + - - + +