@tasks-timeline/components 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,7 +57,7 @@ React keys must be passed directly to JSX without using spread:
57
57
  `)},lW=function(){var e=parseInt(document.body.getAttribute(S2)||"0",10);return isFinite(e)?e:0},vne=function(){se.useEffect(function(){return document.body.setAttribute(S2,(lW()+1).toString()),function(){var e=lW()-1;e<=0?document.body.removeAttribute(S2):document.body.setAttribute(S2,e.toString())}},[])},kne=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;vne();var i=se.useMemo(function(){return yne(a)},[a]);return se.createElement(gne,{styles:mne(i,!t,a,n?"":"!important")})},QD=!1;if(typeof window<"u")try{var qR=Object.defineProperty({},"passive",{get:function(){return QD=!0,!0}});window.addEventListener("test",qR,qR),window.removeEventListener("test",qR,qR)}catch{QD=!1}var L2=QD?{passive:!1}:!1,bne=function(e){return e.tagName==="TEXTAREA"},cW=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!bne(e)&&n[t]==="visible")},xne=function(e){return cW(e,"overflowY")},wne=function(e){return cW(e,"overflowX")},dW=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=uW(e,r);if(a){var i=hW(e,r),c=i[1],y=i[2];if(c>y)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Mne=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Cne=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},uW=function(e,t){return e==="v"?xne(t):wne(t)},hW=function(e,t){return e==="v"?Mne(t):Cne(t)},Tne=function(e,t){return e==="h"&&t==="rtl"?-1:1},Sne=function(e,t,n,r,a){var i=Tne(e,window.getComputedStyle(t).direction),c=i*r,y=n.target,b=t.contains(y),x=!1,T=c>0,M=0,I=0;do{if(!y)break;var O=hW(e,y),N=O[0],D=O[1],H=O[2],_=D-H-i*N;(N||_)&&uW(e,y)&&(M+=_,I+=N);var X=y.parentNode;y=X&&X.nodeType===Node.DOCUMENT_FRAGMENT_NODE?X.host:X}while(!b&&y!==document.body||b&&(t.contains(y)||t===y));return(T&&Math.abs(M)<1||!T&&Math.abs(I)<1)&&(x=!0),x},$R=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fW=function(e){return[e.deltaX,e.deltaY]},pW=function(e){return e&&"current"in e?e.current:e},Lne=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ine=function(e){return`
58
58
  .block-interactivity-`.concat(e,` {pointer-events: none;}
59
59
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
60
- `)},Ane=0,I2=[];function Ene(e){var t=se.useRef([]),n=se.useRef([0,0]),r=se.useRef(),a=se.useState(Ane++)[0],i=se.useState(sW)[0],c=se.useRef(e);se.useEffect(function(){c.current=e},[e]),se.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var D=qe([e.lockRef.current],(e.shards||[]).map(pW),!0).filter(Boolean);return D.forEach(function(H){return H.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),D.forEach(function(H){return H.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var y=se.useCallback(function(D,H){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!c.current.allowPinchZoom;var _=$R(D),X=n.current,K="deltaX"in D?D.deltaX:X[0]-_[0],te="deltaY"in D?D.deltaY:X[1]-_[1],J,ne=D.target,ue=Math.abs(K)>Math.abs(te)?"h":"v";if("touches"in D&&ue==="h"&&ne.type==="range")return!1;var ye=window.getSelection(),Ee=ye&&ye.anchorNode,Ve=Ee?Ee===ne||Ee.contains(ne):!1;if(Ve)return!1;var tt=dW(ue,ne);if(!tt)return!0;if(tt?J=ue:(J=ue==="v"?"h":"v",tt=dW(ue,ne)),!tt)return!1;if(!r.current&&"changedTouches"in D&&(K||te)&&(r.current=J),!J)return!0;var st=r.current||J;return Sne(st,H,D,st==="h"?K:te)},[]),b=se.useCallback(function(D){var H=D;if(!(!I2.length||I2[I2.length-1]!==i)){var _="deltaY"in H?fW(H):$R(H),X=t.current.filter(function(J){return J.name===H.type&&(J.target===H.target||H.target===J.shadowParent)&&Lne(J.delta,_)})[0];if(X&&X.should){H.cancelable&&H.preventDefault();return}if(!X){var K=(c.current.shards||[]).map(pW).filter(Boolean).filter(function(J){return J.contains(H.target)}),te=K.length>0?y(H,K[0]):!c.current.noIsolation;te&&H.cancelable&&H.preventDefault()}}},[]),x=se.useCallback(function(D,H,_,X){var K={name:D,delta:H,target:_,should:X,shadowParent:Pne(_)};t.current.push(K),setTimeout(function(){t.current=t.current.filter(function(te){return te!==K})},1)},[]),T=se.useCallback(function(D){n.current=$R(D),r.current=void 0},[]),M=se.useCallback(function(D){x(D.type,fW(D),D.target,y(D,e.lockRef.current))},[]),I=se.useCallback(function(D){x(D.type,$R(D),D.target,y(D,e.lockRef.current))},[]);se.useEffect(function(){return I2.push(i),e.setCallbacks({onScrollCapture:M,onWheelCapture:M,onTouchMoveCapture:I}),document.addEventListener("wheel",b,L2),document.addEventListener("touchmove",b,L2),document.addEventListener("touchstart",T,L2),function(){I2=I2.filter(function(D){return D!==i}),document.removeEventListener("wheel",b,L2),document.removeEventListener("touchmove",b,L2),document.removeEventListener("touchstart",T,L2)}},[]);var O=e.removeScrollBar,N=e.inert;return se.createElement(se.Fragment,null,N?se.createElement(i,{styles:Ine(a)}):null,O?se.createElement(kne,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Pne(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Rne=ine(iW,Ene);var yW=se.forwardRef(function(e,t){return se.createElement(QR,Ea({},e,{ref:t,sideCar:Rne}))});yW.classNames=QR.classNames;var eF="Popover",[gW]=AD(eF,[ZU]),If=ZU(),[Fne,Nh]=gW(eF),mW=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:c=!1}=e,y=If(t),b=se.useRef(null),[x,T]=se.useState(!1),[M,I]=nW({prop:r,defaultProp:a??!1,onChange:i,caller:eF});return m.jsx(Hte,{...y,children:m.jsx(Fne,{scope:t,contentId:bU(),triggerRef:b,open:M,onOpenChange:I,onOpenToggle:se.useCallback(()=>I(O=>!O),[I]),hasCustomAnchor:x,onCustomAnchorAdd:se.useCallback(()=>T(!0),[]),onCustomAnchorRemove:se.useCallback(()=>T(!1),[]),modal:c,children:n})})};mW.displayName=eF;var vW="PopoverAnchor",One=se.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Nh(vW,n),i=If(n),{onCustomAnchorAdd:c,onCustomAnchorRemove:y}=a;return se.useEffect(()=>(c(),()=>y()),[c,y]),m.jsx(eW,{...i,...r,ref:t})});One.displayName=vW;var kW="PopoverTrigger",bW=se.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Nh(kW,n),i=If(n),c=_u(t,a.triggerRef),y=m.jsx(ac.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":SW(a.open),...r,ref:c,onClick:Vu(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?y:m.jsx(eW,{asChild:!0,...i,children:y})});bW.displayName=kW;var qD="PopoverPortal",[Dne,Nne]=gW(qD,{forceMount:void 0}),xW=e=>{const{__scopePopover:t,forceMount:n,children:r,container:a}=e,i=Nh(qD,t);return m.jsx(Dne,{scope:t,forceMount:n,children:m.jsx(ZR,{present:n||i.open,children:m.jsx(tW,{asChild:!0,container:a,children:r})})})};xW.displayName=qD;var A2="PopoverContent",wW=se.forwardRef((e,t)=>{const n=Nne(A2,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,i=Nh(A2,e.__scopePopover);return m.jsx(ZR,{present:r||i.open,children:i.modal?m.jsx(Hne,{...a,ref:t}):m.jsx(Bne,{...a,ref:t})})});wW.displayName=A2;var zne=sU("PopoverContent.RemoveScroll"),Hne=se.forwardRef((e,t)=>{const n=Nh(A2,e.__scopePopover),r=se.useRef(null),a=_u(t,r),i=se.useRef(!1);return se.useEffect(()=>{const c=r.current;if(c)return Qte(c)},[]),m.jsx(yW,{as:zne,allowPinchZoom:!0,children:m.jsx(MW,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Vu(e.onCloseAutoFocus,c=>{c.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Vu(e.onPointerDownOutside,c=>{const y=c.detail.originalEvent,b=y.button===0&&y.ctrlKey===!0,x=y.button===2||b;i.current=x},{checkForDefaultPrevented:!1}),onFocusOutside:Vu(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),Bne=se.forwardRef((e,t)=>{const n=Nh(A2,e.__scopePopover),r=se.useRef(!1),a=se.useRef(!1);return m.jsx(MW,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=i.target;n.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),MW=se.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:x,onInteractOutside:T,...M}=e,I=Nh(A2,n),O=If(n);return lee(),m.jsx(yU,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:m.jsx(dU,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:T,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:x,onDismiss:()=>I.onOpenChange(!1),children:m.jsx(Bte,{"data-state":SW(I.open),role:"dialog",id:I.contentId,...O,...M,ref:t,style:{...M.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),CW="PopoverClose",TW=se.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Nh(CW,n);return m.jsx(ac.button,{type:"button",...r,ref:t,onClick:Vu(e.onClick,()=>a.onOpenChange(!1))})});TW.displayName=CW;var Vne="PopoverArrow",_ne=se.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=If(n);return m.jsx(Vte,{...a,...r,ref:t})});_ne.displayName=Vne;function SW(e){return e?"open":"closed"}var Une=mW,Wne=bW,Yne=xW,LW=wW,Zne=TW;const IW=de.createContext({portalContainer:null}),AW=()=>de.useContext(IW).portalContainer,zh=Une,Hh=Wne,L0=Zne,Zu=se.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},a)=>{const i=AW();return m.jsx(Yne,{container:i,children:m.jsx(LW,{ref:a,align:t,sideOffset:n,"data-slot":"popover-content",className:je("z-50 w-72 rounded-lg border bg-popover p-4 text-popover-foreground shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...r})})});Zu.displayName=LW.displayName;const EW=6048e5,Gne=864e5,PW=Symbol.for("constructDateFrom");function gl(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&PW in e?e[PW](t):e instanceof Date?new e.constructor(t):new Date(t)}function Gi(e,t){return gl(t||e,e)}function RW(e,t,n){const r=Gi(e,n?.in);if(isNaN(t))return gl(e,NaN);if(!t)return r;const a=r.getDate(),i=gl(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const c=i.getDate();return a>=c?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}let jne={};function Af(){return jne}function E2(e,t){const n=Af(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Gi(e,t?.in),i=a.getDay(),c=(i<r?7:0)+i-r;return a.setDate(a.getDate()-c),a.setHours(0,0,0,0),a}function tF(e,t){return E2(e,{...t,weekStartsOn:1})}function FW(e,t){const n=Gi(e,t?.in),r=n.getFullYear(),a=gl(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const i=tF(a),c=gl(n,0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);const y=tF(c);return n.getTime()>=i.getTime()?r+1:n.getTime()>=y.getTime()?r:r-1}function OW(e){const t=Gi(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 nF(e,...t){const n=gl.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function rF(e,t){const n=Gi(e,t?.in);return n.setHours(0,0,0,0),n}function Xne(e,t,n){const[r,a]=nF(n?.in,e,t),i=rF(r),c=rF(a),y=+i-OW(i),b=+c-OW(c);return Math.round((y-b)/Gne)}function Kne(e,t){const n=FW(e,t),r=gl(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),tF(r)}function Jne(e){return gl(e,Date.now())}function DW(e,t,n){const[r,a]=nF(n?.in,e,t);return+rF(r)==+rF(a)}function Qne(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function qne(e){return!(!Qne(e)&&typeof e!="number"||isNaN(+Gi(e)))}function $ne(e,t){const n=Gi(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function ere(e,t){const[n,r]=nF(e,t.start,t.end);return{start:n,end:r}}function tre(e,t){const{start:n,end:r}=ere(t?.in,e);let a=+n>+r;const i=a?+n:+r,c=a?r:n;c.setHours(0,0,0,0);let y=1;const b=[];for(;+c<=i;)b.push(gl(n,c)),c.setDate(c.getDate()+y),c.setHours(0,0,0,0);return a?b.reverse():b}function aF(e,t){const n=Gi(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function nre(e,t){const n=Gi(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function rre(e,t){const n=Af(),r=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Gi(e,t?.in),i=a.getDay(),c=(i<r?-7:0)+6-(i-r);return a.setDate(a.getDate()+c),a.setHours(23,59,59,999),a}const are={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ore=(e,t,n)=>{let r;const a=are[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function $D(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ire={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sre={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lre={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cre={date:$D({formats:ire,defaultWidth:"full"}),time:$D({formats:sre,defaultWidth:"full"}),dateTime:$D({formats:lre,defaultWidth:"full"})},dre={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ure=(e,t,n,r)=>dre[e];function Ef(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,y=n?.width?String(n.width):c;a=e.formattingValues[y]||e.formattingValues[c]}else{const c=e.defaultWidth,y=n?.width?String(n.width):e.defaultWidth;a=e.values[y]||e.values[c]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const hre={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fre={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pre={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"]},yre={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"]},gre={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"}},mre={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"}},vre={ordinalNumber:(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"},era:Ef({values:hre,defaultWidth:"wide"}),quarter:Ef({values:fre,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ef({values:pre,defaultWidth:"wide"}),day:Ef({values:yre,defaultWidth:"wide"}),dayPeriod:Ef({values:gre,defaultWidth:"wide",formattingValues:mre,defaultFormattingWidth:"wide"})};function Pf(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const c=i[0],y=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],b=Array.isArray(y)?bre(y,M=>M.test(c)):kre(y,M=>M.test(c));let x;x=e.valueCallback?e.valueCallback(b):b,x=n.valueCallback?n.valueCallback(x):x;const T=t.slice(c.length);return{value:x,rest:T}}}function kre(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function bre(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function xre(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let c=e.valueCallback?e.valueCallback(i[0]):i[0];c=n.valueCallback?n.valueCallback(c):c;const y=t.slice(a.length);return{value:c,rest:y}}}const wre=/^(\d+)(th|st|nd|rd)?/i,Mre=/\d+/i,Cre={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},Tre={any:[/^b/i,/^(a|c)/i]},Sre={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Lre={any:[/1/i,/2/i,/3/i,/4/i]},Ire={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},Are={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]},Ere={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},Pre={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]},Rre={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},Fre={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}},Ore={ordinalNumber:xre({matchPattern:wre,parsePattern:Mre,valueCallback:e=>parseInt(e,10)}),era:Pf({matchPatterns:Cre,defaultMatchWidth:"wide",parsePatterns:Tre,defaultParseWidth:"any"}),quarter:Pf({matchPatterns:Sre,defaultMatchWidth:"wide",parsePatterns:Lre,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Pf({matchPatterns:Ire,defaultMatchWidth:"wide",parsePatterns:Are,defaultParseWidth:"any"}),day:Pf({matchPatterns:Ere,defaultMatchWidth:"wide",parsePatterns:Pre,defaultParseWidth:"any"}),dayPeriod:Pf({matchPatterns:Rre,defaultMatchWidth:"any",parsePatterns:Fre,defaultParseWidth:"any"})},Dre={code:"en-US",formatDistance:ore,formatLong:cre,formatRelative:ure,localize:vre,match:Ore,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nre(e,t){const n=Gi(e,t?.in);return Xne(n,nre(n))+1}function zre(e,t){const n=Gi(e,t?.in),r=+tF(n)-+Kne(n);return Math.round(r/EW)+1}function NW(e,t){const n=Gi(e,t?.in),r=n.getFullYear(),a=Af(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=gl(t?.in||e,0);c.setFullYear(r+1,0,i),c.setHours(0,0,0,0);const y=E2(c,t),b=gl(t?.in||e,0);b.setFullYear(r,0,i),b.setHours(0,0,0,0);const x=E2(b,t);return+n>=+y?r+1:+n>=+x?r:r-1}function Hre(e,t){const n=Af(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=NW(e,t),i=gl(t?.in||e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),E2(i,t)}function Bre(e,t){const n=Gi(e,t?.in),r=+E2(n,t)-+Hre(n,t);return Math.round(r/EW)+1}function $n(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Bh={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return $n(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):$n(n+1,2)},d(e,t){return $n(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];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return $n(e.getHours()%12||12,t.length)},H(e,t){return $n(e.getHours(),t.length)},m(e,t){return $n(e.getMinutes(),t.length)},s(e,t){return $n(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return $n(a,t.length)}},P2={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zW={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"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return Bh.y(e,t)},Y:function(e,t,n,r){const a=NW(e,r),i=a>0?a:1-a;if(t==="YY"){const c=i%100;return $n(c,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):$n(i,t.length)},R:function(e,t){const n=FW(e);return $n(n,t.length)},u:function(e,t){const n=e.getFullYear();return $n(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 $n(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"});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 $n(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"});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 Bh.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"});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 $n(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"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Bre(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):$n(a,t.length)},I:function(e,t,n){const r=zre(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):$n(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Bh.d(e,t)},D:function(e,t,n){const r=Nre(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):$n(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"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return $n(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return $n(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return $n(a,t.length);case"io":return n.ordinalNumber(a,{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"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=P2.noon:r===0?a=P2.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=P2.evening:r>=12?a=P2.afternoon:r>=4?a=P2.morning:a=P2.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{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 Bh.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Bh.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):$n(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):$n(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Bh.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Bh.s(e,t)},S:function(e,t){return Bh.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return BW(r);case"XXXX":case"XX":return I0(r);default:return I0(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return BW(r);case"xxxx":case"xx":return I0(r);default:return I0(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+HW(r,":");default:return"GMT"+I0(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+HW(r,":");default:return"GMT"+I0(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return $n(r,t.length)},T:function(e,t,n){return $n(+e,t.length)}};function HW(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+$n(i,2)}function BW(e,t){return e%60===0?(e>0?"-":"+")+$n(Math.abs(e)/60,2):I0(e,t)}function I0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=$n(Math.trunc(r/60),2),i=$n(r%60,2);return n+a+t+i}const VW=(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"});default:return t.date({width:"full"})}},_W=(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"});default:return t.time({width:"full"})}},Vre={p:_W,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return VW(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",VW(r,t)).replace("{{time}}",_W(a,t))}},_re=/^D+$/,Ure=/^Y+$/,Wre=["D","DD","YY","YYYY"];function Yre(e){return _re.test(e)}function Zre(e){return Ure.test(e)}function Gre(e,t,n){const r=jre(e,t,n);if(console.warn(r),Wre.includes(e))throw new RangeError(r)}function jre(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 Xre=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kre=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Jre=/^'([^]*?)'?$/,Qre=/''/g,qre=/[a-zA-Z]/;function UW(e,t,n){const r=Af(),a=r.locale??Dre,i=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,c=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,y=Gi(e,n?.in);if(!qne(y))throw new RangeError("Invalid time value");let b=t.match(Kre).map(T=>{const M=T[0];if(M==="p"||M==="P"){const I=Vre[M];return I(T,a.formatLong)}return T}).join("").match(Xre).map(T=>{if(T==="''")return{isToken:!1,value:"'"};const M=T[0];if(M==="'")return{isToken:!1,value:$re(T)};if(zW[M])return{isToken:!0,value:T};if(M.match(qre))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:T}});a.localize.preprocessor&&(b=a.localize.preprocessor(y,b));const x={firstWeekContainsDate:i,weekStartsOn:c,locale:a};return b.map(T=>{if(!T.isToken)return T.value;const M=T.value;(Zre(M)||Yre(M))&&Gre(M,t,String(e));const I=zW[M[0]];return I(y,M,a.localize,x)}).join("")}function $re(e){const t=e.match(Jre);return t?t[1].replace(Qre,"'"):e}function eae(e,t,n){const[r,a]=nF(n?.in,e,t);return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()}function tae(e,t){return DW(gl(e,e),Jne(e))}function nae(e,t,n){return RW(e,-1,n)}var rae=Symbol.for("react.lazy"),oF=se[" use ".trim().toString()];function aae(e){return typeof e=="object"&&e!==null&&"then"in e}function WW(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===rae&&"_payload"in e&&aae(e._payload)}function oae(e){const t=sae(e),n=se.forwardRef((r,a)=>{let{children:i,...c}=r;WW(i)&&typeof oF=="function"&&(i=oF(i._payload));const y=se.Children.toArray(i),b=y.find(cae);if(b){const x=b.props.children,T=y.map(M=>M===b?se.Children.count(x)>1?se.Children.only(null):se.isValidElement(x)?x.props.children:null:M);return m.jsx(t,{...c,ref:a,children:se.isValidElement(x)?se.cloneElement(x,void 0,T):null})}return m.jsx(t,{...c,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var iae=oae("Slot");function sae(e){const t=se.forwardRef((n,r)=>{let{children:a,...i}=n;if(WW(a)&&typeof oF=="function"&&(a=oF(a._payload)),se.isValidElement(a)){const c=uae(a),y=dae(i,a.props);return a.type!==se.Fragment&&(y.ref=r?ID(r,c):c),se.cloneElement(a,y)}return se.Children.count(a)>1?se.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lae=Symbol("radix.slottable");function cae(e){return se.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lae}function dae(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...y)=>{const b=i(...y);return a(...y),b}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function uae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const YW=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ZW=p_,hae=((e,t)=>n=>{var r;if(t?.variants==null)return ZW(e,n?.class,n?.className);const{variants:a,defaultVariants:i}=t,c=Object.keys(a).map(x=>{const T=n?.[x],M=i?.[x];if(T===null)return null;const I=YW(T)||YW(M);return a[x][I]}),y=n&&Object.entries(n).reduce((x,T)=>{let[M,I]=T;return I===void 0||(x[M]=I),x},{}),b=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((x,T)=>{let{class:M,className:I,...O}=T;return Object.entries(O).every(N=>{let[D,H]=N;return Array.isArray(H)?H.includes({...i,...y}[D]):{...i,...y}[D]===H})?[...x,M,I]:x},[]);return ZW(e,c,b,n?.class,n?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Rf=se.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},i)=>{const c=r?iae:"button";return m.jsx(c,{className:je(hae({variant:t,size:n,className:e})),ref:i,...a})});Rf.displayName="Button";function GW({className:e,selected:t,onSelect:n,disabled:r}){const[a,i]=se.useState(()=>aF(t||new Date)),c=["Su","Mo","Tu","We","Th","Fr","Sa"],y=aF(a),b=$ne(a),x=E2(y),T=rre(b),M=tre({start:x,end:T}),I=()=>{i(nae(a))},O=()=>{i(RW(a,1))},N=D=>{r?.(D)||n?.(D)};return m.jsxs("div",{"data-slot":"calendar",className:je("bg-popover p-3 w-[280px] select-none",e),children:[m.jsxs("div",{className:"flex items-center justify-between mb-3",children:[m.jsx(Rf,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-accent rounded-full",onClick:I,type:"button",children:m.jsx(bf,{className:"h-4 w-4"})}),m.jsx("span",{className:"text-sm font-semibold text-foreground",children:UW(a,"MMMM yyyy")}),m.jsx(Rf,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-accent rounded-full",onClick:O,type:"button",children:m.jsx(xf,{className:"h-4 w-4"})})]}),m.jsx("div",{className:"grid grid-cols-7 mb-2",children:c.map(D=>m.jsx("div",{className:"h-8 flex items-center justify-center text-xs font-medium text-muted-foreground",children:D},D))}),m.jsx("div",{className:"grid grid-cols-7 gap-0.5",children:M.map((D,H)=>{const _=eae(D,a),X=t&&DW(D,t),K=tae(D),te=r?.(D);return m.jsx("button",{type:"button",onClick:()=>N(D),disabled:te,className:je("h-8 w-8 mx-auto rounded-full text-sm font-normal transition-all duration-150","hover:bg-accent hover:text-accent-foreground","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1","active:scale-95",!_&&"text-muted-foreground/40",K&&!X&&"bg-accent text-accent-foreground font-semibold ring-1 ring-primary/30",X&&"bg-primary text-primary-foreground font-semibold shadow-sm hover:bg-primary/90 hover:text-primary-foreground",te&&"pointer-events-none opacity-30"),children:UW(D,"d")},H)})}),m.jsx("div",{className:"mt-3 pt-3 border-t border-border",children:m.jsx(Rf,{variant:"ghost",size:"sm",type:"button",className:"w-full text-xs font-medium text-muted-foreground hover:text-foreground",onClick:()=>{const D=new Date;i(aF(D)),n?.(D)},children:"Today"})})]})}const iF=({type:e,date:t,label:n,icon:r,className:a,prefix:i="",onUpdate:c,task:y})=>{const[b,x]=de.useState(()=>{if(!t)return;const X=pt.fromISO(t);return X.isValid?X.toJSDate():void 0}),[T,M]=de.useState(()=>{if(!t)return"00:00";const X=pt.fromISO(t);return X.isValid?X.toFormat("HH:mm"):"00:00"}),I=e==="startAt"||e==="createdAt"||e==="completedAt",O=e.endsWith("At")?e.slice(0,e.length-2).toUpperCase():"",N=X=>{x(X)},D=X=>{M(X.target.value)},H=()=>{let X="";if(b){let te=pt.fromJSDate(b);if(I&&T){const[J,ne]=T.split(":").map(Number);te=te.set({hour:J,minute:ne})}X=I?te.toISO()||"":te.toISODate()||""}c({...y,[e==="dueDate"?"dueAt":e]:X})},_={dueDate:"Change Due Date",startAt:"Change Start Date",createdAt:"Change Created Date",completedAt:"Change Completed Date"};return m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs("button",{className:a,title:_[e],children:[m.jsx(He,{name:r,size:10,className:"shrink-0"}),m.jsxs("span",{className:"font-mono truncate",children:[i,n]})]})}),m.jsx(Zu,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-auto p-0",children:m.jsxs(so,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:[m.jsx(GW,{mode:"single",selected:b,onSelect:N}),I&&m.jsxs("div",{className:"border-t border-border px-3 py-2",children:[m.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Time"}),m.jsx("input",{type:"time",value:T,onChange:D,className:je("w-full px-3 py-2 bg-background border border-input rounded-md text-sm","focus:ring-2 focus:ring-ring focus:border-ring outline-none")})]}),m.jsx("div",{className:"border-t border-border p-2",children:m.jsx(L0,{asChild:!0,children:m.jsxs("button",{onClick:H,className:je("w-full text-primary text-xs font-semibold py-2 rounded-md","hover:bg-accent transition-colors"),children:["Save ",O," date"]})})})]})})]})},fae=({tag:e,badgeClass:t,task:n,onUpdate:r})=>m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs("button",{className:je(t,"text-blue-600 bg-blue-50/80 border-blue-100/50 hover:bg-rose-50 hover:text-rose-600 hover:border-rose-100 transition-colors"),title:"Click to remove",children:[m.jsx(He,{name:"Tag",size:10,className:"shrink-0"}),m.jsx("span",{className:"truncate",children:e.name})]})}),m.jsx(Zu,{side:"top",align:"center",sideOffset:4,className:"z-9999 outline-none w-auto p-0",children:m.jsx(so,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"p-1",children:m.jsx(L0,{asChild:!0,children:m.jsxs("button",{onClick:()=>r({...n,tags:n.tags.filter(a=>a.id!==e.id)}),className:"flex items-center gap-1.5 text-xs text-rose-600! px-2 py-1 rounded hover:bg-rose-50",children:[m.jsx(He,{name:"Trash",size:12}),"Remove Tag"]})})})})]}),pae=({task:e,badgeClass:t,onUpdate:n})=>{const r=e.priority;let a="text-slate-600 bg-slate-100 border-slate-200";return r==="high"&&(a="text-rose-700 bg-rose-100 border-rose-200"),r==="medium"&&(a="text-amber-700 bg-amber-100 border-amber-200"),m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs("button",{className:je(t,a),title:"Change Priority",children:[m.jsx(He,{name:"Flag",size:10,strokeWidth:r==="high"?3:2}),m.jsx("span",{className:"capitalize",children:r})]})}),m.jsx(Zu,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-auto p-1",children:m.jsx(so,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"flex flex-col gap-1",children:["high","medium","low"].map(i=>m.jsx(L0,{asChild:!0,children:m.jsx("button",{onClick:()=>n({...e,priority:i}),children:m.jsxs("div",{className:je("flex items-center gap-2 px-2 py-1.5 text-xs rounded-md text-left transition-colors justify-start! hover:bg-slate-300",e.priority===i?"bg-rose-300 font-bold":"hover:opacity-80 text-slate-600"),children:[m.jsx(He,{name:"Flag",size:10,className:i==="high"?"text-rose-500":i==="medium"?"text-amber-500":"text-slate-400"}),m.jsx("span",{className:"capitalize",children:i})]})})},i))})})]})},yae=({task:e,onUpdate:t,availableCategories:n,badgeClass:r})=>{const[a,i]=de.useState(e.category||""),c=n.filter(y=>y.toLowerCase().includes(a.toLowerCase())&&y!==a).slice(0,5)||[];return m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs("button",{className:je(r,"text-slate-600 bg-slate-100 border-slate-200"),title:"Change Category",children:[m.jsx(He,{name:"Folder",size:10}),m.jsx("span",{children:e.category||"No Category"})]})}),m.jsx(Zu,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-48 p-2",children:m.jsxs(so,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:[m.jsx("input",{autoFocus:!0,value:a,onChange:y=>i(y.target.value),onKeyDown:y=>{y.key==="Enter"&&t({...e,category:a})},className:"w-full text-xs border border-slate-200 rounded px-2 py-1 mb-2 focus:ring-2 focus:ring-blue-500/20 outline-none",placeholder:"Category name..."}),m.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.map(y=>m.jsx(L0,{asChild:!0,children:m.jsxs("button",{onClick:()=>t({...e,category:y}),className:"text-left px-2 py-1.5 text-xs text-slate-600 hover:opacity-80 rounded flex items-center gap-2 justify-start!",children:[m.jsx(He,{name:"Folder",size:10,className:"opacity-50"}),y]})},y)),m.jsx(L0,{asChild:!0,children:m.jsxs("button",{onClick:()=>t({...e,category:a}),className:"text-center px-2 py-1.5 text-xs text-blue-600! hover:opacity-80 rounded font-medium mt-1",children:['Set to "',a,'"']})})]})]})})]})},jW=de.createContext(void 0);function sF(){const e=de.useContext(jW);if(!e)throw new Error("useTasksContext must be used within TasksProvider");return e}function gae({children:e,value:t}){return m.jsx(jW.Provider,{value:t,children:e})}const XW=de.createContext(void 0);function R2(){const e=de.useContext(XW);if(!e)throw new Error("useSettingsContext must be used within SettingsProvider");return e}function mae({children:e,value:t}){return m.jsx(XW.Provider,{value:t,children:e})}const lF=e=>e?pt.fromISO(e).isValid:!1,eN=({task:e,dateValidation:t})=>{const{onUpdateTask:n,onDeleteTask:r,onEditTask:a,availableCategories:i,onItemClick:c,renderTitle:y}=sF(),{settings:b}=R2(),[x,T]=de.useState(!1),[M,I]=de.useState(e.title),[O,N]=de.useState(!1),D=de.useRef(null),H=de.useRef(null),_=e.status==="done",X=e.status==="cancelled",K=Rh(),te=!_&&!X&&e.priority==="high"&&(e.status==="overdue"||e.status==="due"||e.dueAt&&e.dueAt<=K),J={sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl"}[b.fontSize]||"text-sm",ne={sm:"mt-0.5",base:"mt-0.5",lg:"mt-1",xl:"mt-1.5"}[b.fontSize]||"mt-0.5",ue={sm:"text-[10px]",base:"text-[11px]",lg:"text-xs",xl:"text-sm"}[b.fontSize]||"text-[11px]";de.useEffect(()=>{x&&H.current&&H.current.focus()},[x]);const ye=fe=>{const Se=pt.now().toISO(),Oe={status:fe};(fe==="doing"||fe==="scheduled")&&!e.startAt&&e.status==="todo"&&(Oe.startAt=Se||void 0),fe==="done"&&!e.completedAt&&(Oe.completedAt=Se||void 0),fe==="cancelled"&&!e.cancelledAt&&(Oe.cancelledAt=Se||void 0),n({...e,...Oe})},Ee=()=>{M.trim()?n({...e,title:M}):I(e.title),T(!1)},Ve=fe=>{fe.key==="Enter"&&Ee(),fe.key==="Escape"&&(I(e.title),T(!1))},tt=()=>{O?(r(e.id),D.current&&window.clearTimeout(D.current)):(N(!0),D.current=window.setTimeout(()=>{N(!1)},2e3))},st=(fe,Se)=>Se==="done"||Se==="cancelled"?"text-emerald-600 bg-emerald-50 border-emerald-200":fe?Se==="overdue"||fe<K?"text-rose-600 bg-rose-50 border-rose-200":fe===K?"text-amber-600 bg-amber-50 border-amber-200":"text-emerald-600 bg-emerald-50 border-emerald-200":"text-slate-400",Be=fe=>{switch(fe){case"done":return"bg-emerald-500";case"doing":return"bg-sky-500";case"scheduled":return"bg-blue-500";case"due":return"bg-amber-500";case"overdue":return"bg-rose-500";case"cancelled":return"bg-slate-300";case"unplanned":return"bg-purple-500";default:return"bg-slate-200"}},Qe=fe=>{switch(fe){case"done":return"CheckCircle2";case"doing":return"PlayCircle";case"scheduled":return"Clock";case"due":return"AlertCircle";case"overdue":return"AlertTriangle";case"cancelled":return"XCircle";case"unplanned":return"Zap";default:return"Circle"}},Fe=fe=>{switch(fe){case"done":return"text-emerald-500";case"doing":return"text-sky-500";case"scheduled":return"text-blue-500";case"due":return"text-amber-500";case"overdue":return"text-rose-500";case"cancelled":return"text-slate-300";case"unplanned":return"text-purple-500";default:return"text-slate-300 group-hover:text-slate-400"}},ie=(fe,Se=16)=>m.jsx(He,{name:Qe(fe),size:Se,className:Fe(fe),strokeWidth:fe==="done"?2.5:2}),me=["todo","doing","scheduled","done","unplanned","due","overdue","cancelled"],Ce=e.dueAt?oU(e.dueAt):null,Lt=e.startAt?oU(e.startAt):null,ae=Ce||Lt,U="flex items-center gap-1 min-[400px]:gap-1.5 px-1.5 min-[400px]:px-2 h-4.5 min-[400px]:h-5 rounded-full border font-medium leading-none cursor-pointer hover:bg-slate-50 transition-colors select-none text-[length:inherit]";return m.jsxs(so,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,height:0},className:je("group relative flex items-stretch gap-1 min-[400px]:gap-1.5 sm:gap-2 pb-1.5 pt-0.5 px-0.5 sm:px-1 transition-all rounded-lg",(_||X)&&"opacity-60",te?"bg-rose-50/60 border border-rose-100 shadow-sm shadow-rose-100/50 hover:bg-rose-100/50 mb-1":"hover:bg-slate-50 border border-transparent"),children:[m.jsxs("div",{className:je("relative flex flex-col items-center shrink-0","w-4 min-[400px]:w-5 sm:w-6",ne),children:[m.jsx("div",{className:je("absolute -top-1 h-6.5 w-px left-1/2 -translate-x-1/2 group-first:hidden","bg-slate-200")}),m.jsx("div",{className:je("absolute top-5 -bottom-1 w-px left-1/2 -translate-x-1/2",Be(e.status))}),m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsx("button",{className:je("relative z-10 w-6 h-6 flex items-center justify-center transition-transform active:scale-90 outline-none focus:ring-2 focus:ring-slate-200 rounded-full",te?"bg-rose-50 hover:bg-rose-100 shadow-sm":"bg-white hover:bg-slate-50"),title:`Change Status (Current: ${e.status})`,children:ie(e.status,18)})}),m.jsx(Zu,{side:"bottom",align:"start",sideOffset:5,collisionPadding:10,className:"z-9999 outline-none w-44 p-1.5",children:m.jsx(so,{initial:{opacity:0,scale:.9,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:-5},transition:{duration:.15},children:m.jsxs("div",{className:"flex flex-col gap-0.5",children:[me.map(fe=>m.jsx(L0,{asChild:!0,children:m.jsx("button",{onClick:()=>ye(fe),children:m.jsxs("div",{className:je("w-full flex items-center gap-2.5 px-3 py-2 text-xs font-medium font-mono rounded-lg transition-all hover:bg-slate-300 text-left outline-none","justify-start! text-left!",e.status===fe?"bg-slate-200/60 text-slate-900 font-semibold":"text-slate-600 hover:text-slate-900 hover:opacity-80 active:scale-[0.98]"),children:[m.jsx("div",{className:je("shrink-0",e.status===fe?"opacity-100":"opacity-70"),children:ie(fe,14)}),m.jsx("span",{className:"capitalize",children:fe})]})})},fe)),m.jsx("div",{className:"h-px bg-slate-100 my-1 mx-1"}),m.jsx(L0,{asChild:!0,children:m.jsx("button",{onClick:()=>a?.(e),children:m.jsxs("div",{className:"w-full flex items-center justify-start! gap-2 px-3 py-2 text-xs font-medium text-slate-600 hover:text-blue-600 hover:opacity-80 hover:bg-slate-300 transition-all text-left outline-none rounded-lg",children:[m.jsx(He,{name:"Pencil",size:14,className:"opacity-70"}),m.jsx("span",{children:"Edit Details"})]})})})]})})})]})]}),m.jsxs("div",{className:je("flex-1 min-w-0 pt-0.5",ae?"pr-16 sm:pr-20":"pr-6 sm:pr-8"),children:[m.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 min-h-5.5 mb-0.5",children:[x?m.jsx("input",{ref:H,value:M,onChange:fe=>I(fe.target.value),onBlur:Ee,onKeyDown:Ve,className:je("flex-1 min-w-0 bg-transparent border-b border-blue-400 focus:outline-none font-medium text-slate-800 pb-0.5",J)}):m.jsx(m.Fragment,{children:m.jsx(OR,{onClick:()=>T(!0),className:je("font-medium leading-tight text-slate-800 transition-all cursor-text text-left border-none bg-transparent p-0 appearance-none font-inherit truncate flex-1 min-w-0",J,_&&"line-through text-slate-500 decoration-slate-300",X&&"line-through text-slate-400 decoration-slate-300",te&&"text-rose-700 font-semibold"),children:y?y(e.title):e.title})}),!x&&m.jsx(OR,{whileHover:{scale:1.1},onClick:()=>T(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity text-slate-300 hover:text-blue-500 p-1 shrink-0 bg-transparent border-none",children:m.jsx(He,{name:"Pencil",size:12})})]}),m.jsxs("div",{className:je("flex flex-wrap items-center gap-1 min-[400px]:gap-1.5 sm:gap-2 font-medium text-slate-500",ue),onClick:fe=>{c&&fe.target===fe.currentTarget&&c?.(e)},children:[m.jsx(pae,{task:e,onUpdate:n,badgeClass:U}),t&&(t.hasInvalidDates?m.jsxs("div",{className:"flex items-center gap-1.5 px-2 h-5 rounded-full border font-medium leading-none text-rose-600 bg-rose-50 border-rose-200",title:"One or more dates have an invalid format",children:[m.jsx(He,{name:"AlertTriangle",size:10}),m.jsx("span",{className:"text-[10px]",children:"Invalid Date"})]}):t.hasMissingDates?m.jsxs("div",{className:"flex items-center gap-1.5 px-2 h-5 rounded-full border font-medium leading-none text-amber-600 bg-amber-50 border-amber-200",title:"This task has no dates set",children:[m.jsx(He,{name:"AlertCircle",size:10}),m.jsx("span",{className:"text-[10px]",children:"No Dates"})]}):null),e.category&&m.jsx(yae,{task:e,onUpdate:n,badgeClass:U,availableCategories:i}),!b.groupingStrategy.includes("createdAt")&&lF(e.createdAt)&&m.jsx(iF,{type:"createdAt",date:e.createdAt,label:PR(e.createdAt,b.useRelativeDates,b.dateFormat),task:e,onUpdate:n,icon:"Plus",className:je(U,"text-slate-500 bg-slate-50 border-slate-200","hidden min-[400px]:flex")}),lF(e.startAt)&&m.jsx(iF,{type:"startAt",date:e.startAt,label:PR(e.startAt,b.useRelativeDates,b.dateFormat),icon:"PlayCircle",task:e,onUpdate:n,className:je(U,"text-slate-500 bg-slate-50 border-slate-200")}),lF(e.dueAt)&&m.jsx(iF,{type:"dueDate",date:e.dueAt,label:`Due: ${PR(e.dueAt,b.useRelativeDates,b.dateFormat)}`,icon:"Calendar",task:e,onUpdate:n,className:je(U,st(e.dueAt,e.status))}),lF(e.completedAt)&&m.jsx(iF,{type:"completedAt",date:e.completedAt,label:`Done: ${PR(e.completedAt,b.useRelativeDates,b.dateFormat)}`,icon:"CheckCircle2",task:e,onUpdate:n,className:je(U,"text-emerald-600 bg-emerald-50 border-emerald-200")}),e.isRecurring&&e.recurringInterval&&m.jsxs("div",{className:je(U,"text-slate-500 bg-slate-100 border-slate-200 cursor-default"),title:z$(e.recurringInterval),children:[m.jsx(He,{name:"Repeat",size:10}),m.jsx("span",{className:"capitalize",children:"Recurring"})]}),e.tags.map((fe,Se)=>m.jsx(fae,{tag:fe,task:e,onUpdate:n,badgeClass:U},`${e.id}-tag-${Se}`))]}),e.description&&m.jsxs("div",{className:"mt-1 flex items-start gap-1.5 text-slate-400",children:[m.jsx(He,{name:"FileText",size:10,className:"mt-0.5 shrink-0"}),m.jsx("p",{className:je("leading-relaxed line-clamp-2",ue),children:e.description})]})]}),ae&&m.jsx("div",{className:"absolute right-8 top-3 text-[10px] font-mono font-bold text-slate-400 bg-slate-50 border border-slate-100 px-1.5 py-0.5 rounded-md",children:ae}),m.jsx(OR,{onClick:tt,className:je("absolute top-2 right-1 p-1.5 rounded-md transition-all",O?"bg-rose-100 text-rose-600 opacity-100":"text-slate-300 opacity-0 group-hover:opacity-100 hover:text-rose-500 hover:bg-slate-100"),whileHover:{scale:1.1},whileTap:{scale:.9},title:O?"Click again to confirm delete":"Delete task",children:m.jsx(He,{name:O?"Trash2":"Trash",size:14})})]})},tN=(e,t,n)=>{const[r,a]=de.useState(!1),[i,c]=de.useState(null),y=de.useCallback(()=>{if(!e.enabled){Mt.warn("Voice","Voice input is disabled in settings");return}let x=null;switch(e.activeProvider){case"browser":x=new W$;break;case"openai":x=new Y$(e.providers.openai);break;case"gemini":x=new Z$(e.providers.gemini);break;default:n(`Unknown voice provider: ${e.activeProvider}`);return}if(!x.isAvailable()){n(`${x.getName()} is not available in this browser.`),Mt.error("Voice",`Provider ${x.getName()} is not available`);return}Mt.info("Voice",`Starting ${x.getName()}...`,{language:e.language||navigator.language}),a(!0);const T=O=>{Mt.info("Voice","Transcription received",{text:O.transcript,confidence:O.confidence}),a(!1),t(O.transcript)},M=O=>{Mt.error("Voice","Voice input error",O),a(!1),n(O.message)},I=x.start(e.language,T,M);c(()=>I)},[e,t,n]),b=de.useCallback(()=>{i&&(i(),c(null)),a(!1)},[i]);return{isListening:r,start:y,stop:b}},vae=52;function nN(e,t={}){const{rootMargin:n="500px 0px",enabled:r=!0}=t,[a,i]=de.useState(!0),[c,y]=de.useState(null),b=de.useRef(null),x=de.useRef(null),T=de.useRef(null),M=e*vae,I=de.useCallback(()=>{x.current&&y(x.current.offsetHeight)},[]);de.useEffect(()=>{if(!r)return;const D=b.current;if(D)return T.current=new IntersectionObserver(([H])=>{const _=H.isIntersecting;_||I(),i(_)},{rootMargin:n}),T.current.observe(D),()=>{T.current?.disconnect()}},[r,n,I]);const O=de.useCallback(D=>{b.current=D},[]),N=de.useCallback(D=>{x.current=D},[]);return{containerRef:O,contentRef:N,isNearViewport:a,placeholderHeight:c??M}}var cF="Collapsible",[kae]=AD(cF),[bae,rN]=kae(cF),aN=se.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:i,onOpenChange:c,...y}=e,[b,x]=nW({prop:r,defaultProp:a??!1,onChange:c,caller:cF});return m.jsx(bae,{scope:n,disabled:i,contentId:bU(),open:b,onOpenToggle:se.useCallback(()=>x(T=>!T),[x]),children:m.jsx(ac.div,{"data-state":iN(b),"data-disabled":i?"":void 0,...y,ref:t})})});aN.displayName=cF;var KW="CollapsibleTrigger",JW=se.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,a=rN(KW,n);return m.jsx(ac.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":iN(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:Vu(e.onClick,a.onOpenToggle)})});JW.displayName=KW;var oN="CollapsibleContent",QW=se.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=rN(oN,e.__scopeCollapsible);return m.jsx(ZR,{present:n||a.open,children:({present:i})=>m.jsx(xae,{...r,ref:t,present:i})})});QW.displayName=oN;var xae=se.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:a,...i}=e,c=rN(oN,n),[y,b]=se.useState(r),x=se.useRef(null),T=_u(t,x),M=se.useRef(0),I=M.current,O=se.useRef(0),N=O.current,D=c.open||y,H=se.useRef(D),_=se.useRef(void 0);return se.useEffect(()=>{const X=requestAnimationFrame(()=>H.current=!1);return()=>cancelAnimationFrame(X)},[]),Uu(()=>{const X=x.current;if(X){_.current=_.current||{transitionDuration:X.style.transitionDuration,animationName:X.style.animationName},X.style.transitionDuration="0s",X.style.animationName="none";const K=X.getBoundingClientRect();M.current=K.height,O.current=K.width,H.current||(X.style.transitionDuration=_.current.transitionDuration,X.style.animationName=_.current.animationName),b(r)}},[c.open,r]),m.jsx(ac.div,{"data-state":iN(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!D,...i,ref:T,style:{"--radix-collapsible-content-height":I?`${I}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:D&&a})});function iN(e){return e?"open":"closed"}var qW=aN;const wae=Object.freeze(Object.defineProperty({__proto__:null,Collapsible:aN,CollapsibleContent:QW,CollapsibleTrigger:JW,Root:qW},Symbol.toStringTag,{value:"Module"})),sN=qW,{CollapsibleTrigger:lN}=wae,cN=({group:e,lazy:t=!0})=>{const{containerRef:n,contentRef:r,isNearViewport:a,placeholderHeight:i}=nN(e.tasks.length,{enabled:t}),{onAddTask:c,onAICommand:y,availableCategories:b}=sF(),{settings:x,isAiMode:T,onVoiceError:M}=R2(),[I,O]=de.useState(!0),[N,D]=de.useState(!1),[H,_]=de.useState(""),[X,K]=de.useState(x.defaultCategory),[te,J]=de.useState(!1),ne=de.useRef(null);de.useEffect(()=>{N&&K(x.defaultCategory)},[N,x.defaultCategory]);const{isListening:ue,start:ye,stop:Ee}=tN(x.voiceConfig,U=>_(fe=>fe?`${fe} ${U}`:U),M),Ve=pt.fromISO(e.date),tt=Ve.toFormat("ccc"),st=Ve.weekday>5,Be=st?"text-rose-500 bg-rose-50 border-rose-100":"text-slate-600 bg-slate-50 border-slate-200",Qe=N$(e.date),Fe=Qe==="Today"||Qe==="Tomorrow"||Qe==="Yesterday",ie=Ve.toFormat(x.dateFormat);de.useEffect(()=>{N&&ne.current&&ne.current.focus()},[N]);const me=de.useMemo(()=>e.tasks.reduce((U,fe)=>(fe.status==="done"?U.done++:fe.status==="overdue"||fe.status==="due"?U.urgent++:["todo","scheduled","unplanned"].includes(fe.status)&&U.open++,U),{done:0,urgent:0,open:0}),[e.tasks]),Ce=async()=>{if(!H.trim()){D(!1);return}J(!0);try{if(x.aiConfig.enabled&&T){const U=`Add task to ${e.date}: ${H} (Category: ${X})`;await y(U)}else c({title:H,dueAt:e.date,category:X});_("")}catch(U){console.error(U)}finally{J(!1)}},Lt=U=>{U.key==="Enter"&&Ce(),U.key==="Escape"&&(D(!1),_(""))},ae={sm:"mt-0.5",base:"mt-0.5",lg:"mt-1",xl:"mt-1.5"}[x.fontSize]||"mt-0.5";return m.jsx("div",{className:"mb-2 relative",children:m.jsxs(sN,{open:I,onOpenChange:O,children:[m.jsx(lN,{asChild:!0,children:m.jsxs("button",{className:"w-full flex items-center justify-between mb-1 sticky top-0 bg-paper/95 backdrop-blur-sm z-20 py-1.5 border-b border-dashed border-slate-200 group hover:border-slate-300 transition-colors text-left outline-none pl-2",children:[m.jsxs("div",{className:"flex items-center gap-3 sm:gap-4 overflow-hidden",children:[m.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[m.jsx(oo.div,{animate:{rotate:I?90:0},transition:{duration:.2},className:"text-slate-400",children:m.jsx(He,{name:"ChevronRight",size:14})}),m.jsxs("div",{className:"flex items-baseline gap-2",children:[Fe&&m.jsx("span",{className:"text-xs font-bold text-blue-600 font-mono uppercase tracking-tight",children:Qe}),m.jsx("h3",{className:`text-sm font-bold text-slate-800 font-mono tracking-tight group-hover:text-blue-600 transition-colors ${Fe?"opacity-60 font-normal":""}`,children:ie})]})]}),m.jsxs("div",{className:"flex items-center gap-2 shrink-0 opacity-80 group-hover:opacity-100 transition-opacity",children:[me.urgent>0&&m.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-rose-100/50 text-rose-600 border border-rose-200/50 shadow-sm shadow-rose-100",children:[m.jsx(He,{name:"AlertCircle",size:10,strokeWidth:2.5}),m.jsx("span",{className:"text-[10px] font-bold leading-none",children:me.urgent})]}),me.open>0&&m.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-slate-100 text-slate-500 border border-slate-200 shadow-sm shadow-slate-100",children:[m.jsx(He,{name:"Circle",size:10,strokeWidth:2.5}),m.jsx("span",{className:"text-[10px] font-bold leading-none",children:me.open})]}),me.done>0&&m.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-emerald-100/50 text-emerald-600 border border-emerald-200/50 shadow-sm shadow-emerald-100",children:[m.jsx(He,{name:"CheckCircle2",size:10,strokeWidth:2.5}),m.jsx("span",{className:"text-[10px] font-bold leading-none",children:me.done})]})]})]}),m.jsxs("div",{className:`flex flex-col items-center justify-center w-8 h-8 rounded-lg border ${Be} shadow-sm shrink-0 ml-2`,children:[m.jsx("span",{className:"text-[10px] font-bold uppercase leading-none",children:tt}),m.jsx("span",{className:"text-[10px] opacity-60 leading-none mt-0.5",children:e.tasks.length})]})]})}),m.jsx(oo.div,{initial:!1,animate:I?{height:"auto",opacity:1}:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:m.jsxs("div",{ref:n,className:"space-y-0.5 relative pb-2",children:[a?m.jsx("div",{ref:r,children:e.tasks.map(U=>m.jsx(eN,{task:U},U.id))}):m.jsx("div",{style:{height:i},className:"bg-slate-50/30 rounded"}),m.jsxs("div",{className:"group relative flex items-stretch gap-2 py-1.5 px-1 transition-all rounded-lg",children:[m.jsxs("div",{className:je("relative flex flex-col items-center shrink-0 w-6",ae),children:[e.tasks.length>0&&m.jsx("div",{className:"absolute -top-1 h-4 w-px left-1/2 -translate-x-1/2 bg-slate-200"}),m.jsx("button",{onClick:()=>D(!0),className:je("relative z-10 w-6 h-6 flex items-center justify-center rounded-full transition-all outline-none",N?T?"bg-purple-100 text-purple-600":"bg-blue-100 text-blue-600":"bg-white hover:bg-slate-100 text-slate-300 hover:text-blue-500"),children:te?m.jsx("div",{className:"animate-spin",children:m.jsx(He,{name:"Loader2",size:12})}):m.jsx(He,{name:T?"Sparkles":"Plus",size:14})})]}),m.jsx("div",{className:"flex-1 min-w-0 pt-0.5",children:N?m.jsxs(oo.div,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},className:"flex items-center gap-2",children:[m.jsx("input",{ref:ne,type:"text",value:H,onChange:U=>_(U.target.value),onKeyDown:Lt,onBlur:U=>{(!U.relatedTarget||!U.relatedTarget.closest(".add-row-actions"))&&(H||D(!1))},placeholder:ue?"Listening...":T?"Describe task for this day...":"Type a new task...",className:je("flex-1 bg-transparent border-b focus:outline-none text-sm py-0.5 transition-colors",T?"border-purple-300 focus:border-purple-500 placeholder:text-purple-300 text-purple-900":"border-blue-300 focus:border-blue-500"),disabled:te||ue}),m.jsxs("div",{className:"flex items-center gap-1 add-row-actions",children:[m.jsxs("div",{className:"relative group/cat",children:[m.jsx("input",{list:`cat-list-${e.date}`,className:"w-20 text-[10px] bg-slate-100 hover:bg-slate-200 border-none rounded px-1.5 py-0.5 text-slate-600 focus:bg-white focus:ring-1 focus:ring-blue-300 outline-none transition-all placeholder:text-slate-400 truncate",placeholder:"Category",value:X,onChange:U=>K(U.target.value),onFocus:()=>{},title:"Task Category"}),m.jsx("datalist",{id:`cat-list-${e.date}`,children:b.map(U=>m.jsx("option",{value:U},U))})]}),x.voiceConfig.enabled&&m.jsx("button",{onClick:ue?Ee:ye,className:je("p-1 rounded hover:bg-slate-100 transition-colors",ue&&"text-rose-500 animate-pulse"),tabIndex:-1,title:ue?"Stop Recording":"Start Voice Input",children:m.jsx(He,{name:ue?"Square":"Mic",size:14})})]})]}):m.jsx("button",{onClick:()=>D(!0),className:"text-left text-sm text-slate-400 hover:text-blue-500 transition-colors h-5.5 flex items-end font-medium",children:"Add task..."})})]})]})})]})})},$W=({group:e})=>{const{settings:t}=R2(),[n,r]=de.useState(!0),a=Math.round(e.completedTasks/e.totalTasks*100)||0;return m.jsx("div",{className:"mb-4",children:m.jsxs(sN,{open:n,onOpenChange:r,children:[m.jsx(lN,{asChild:!0,children:m.jsxs("button",{className:"w-full text-left mb-1.5 group outline-none",children:[m.jsxs("div",{className:"flex items-end justify-between mb-1",children:[m.jsxs("div",{className:"flex items-baseline gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(oo.div,{animate:{rotate:n?90:0},transition:{duration:.2},className:"text-slate-400",children:m.jsx(He,{name:"ChevronRight",size:20})}),m.jsx("h2",{className:"text-3xl font-black text-slate-800 tracking-tighter group-hover:text-blue-600 transition-colors",children:e.year})]}),m.jsxs("div",{className:"text-xs text-slate-400 font-mono hidden sm:inline-block",children:[m.jsx("span",{className:"text-rose-500 font-bold",children:e.totalTasks-e.completedTasks})," ","unfinished tasks in"," ",m.jsx("span",{className:"text-rose-500 font-bold",children:e.dayGroups.length})," ","active days."]})]}),m.jsx("div",{className:"flex items-center gap-2 pb-1",children:m.jsxs("span",{className:"text-[10px] text-slate-400 font-mono",children:[e.completedTasks," / ",e.totalTasks]})})]}),t.showProgressBar&&m.jsx("div",{className:"relative h-1.5 w-full bg-slate-100 rounded-full overflow-hidden",children:m.jsx(oo.div,{className:je("absolute top-0 left-0 h-full rounded-full",a===100?"bg-emerald-400":"bg-slate-800"),initial:{width:0},animate:{width:`${a}%`},transition:{duration:1,ease:"easeOut"}})})]})}),m.jsx(oo.div,{initial:!1,animate:n?{height:"auto",opacity:1}:{height:0,opacity:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:e.dayGroups.map(i=>m.jsx(cN,{group:i},i.date))})]})})},eY=({tasks:e,lazy:t=!0})=>{const{containerRef:n,contentRef:r,isNearViewport:a,placeholderHeight:i}=nN(e.length,{enabled:t}),{settings:c}=R2(),[y,b]=de.useState(!0);return m.jsx("div",{className:"mt-8 pt-4 border-t border-slate-100",children:m.jsxs(sN,{open:y,onOpenChange:b,children:[m.jsx(lN,{asChild:!0,children:m.jsxs("button",{className:"flex items-center gap-2 mb-4 pl-2 w-full group outline-none",children:[m.jsx(oo.div,{animate:{rotate:y?90:0},transition:{duration:.2},className:"text-slate-400",children:m.jsx(He,{name:"ChevronRight",size:14})}),m.jsx(He,{name:"Archive",size:14,className:"text-slate-400"}),m.jsx("h3",{className:"text-sm font-bold text-slate-500 uppercase tracking-wider group-hover:text-slate-700 transition-colors",children:"Backlog / Undated"}),m.jsx("span",{className:"text-xs bg-slate-100 text-slate-500 px-2 py-0.5 rounded-full font-mono",children:e.length})]})}),m.jsx(oo.div,{initial:!1,animate:y?{height:"auto",opacity:1}:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:m.jsx("div",{ref:n,className:"space-y-0.5",children:a?m.jsx("div",{ref:r,children:e.map(x=>m.jsx(eN,{task:x,dateValidation:H$(x,c.groupingStrategy)},x.id))}):m.jsx("div",{style:{height:i},className:"bg-slate-50/30 rounded"})})})]})})},tY=({className:e})=>{const{tasks:t}=sF(),{settings:n,isFocusMode:r}=R2(),{todayGroup:a,otherYearGroups:i,backlogTasks:c}=de.useMemo(()=>{const y=pt.now(),b=y.toISODate(),x=n.showCompleted?t:t.filter(_=>_.status!=="done"&&_.status!=="cancelled"),T=[],M=[],I=["dueAt","startAt","createdAt","completedAt"];x.forEach(_=>{I.some(K=>{const te=_[K];return te&&pt.fromISO(te).isValid})?T.push(_):M.push(_)});const O=B$(T,n.groupingStrategy);let N=null;const D=[];for(const _ of O){const X=_.dayGroups.find(K=>K.date===b);if(X){N=X;const K=_.dayGroups.filter(te=>te.date!==b);K.length>0&&D.push({..._,dayGroups:K})}else D.push(_)}return{todayGroup:N||{date:b,tasks:[]},otherYearGroups:D,backlogTasks:M}},[t,n.showCompleted,n.groupingStrategy]);return m.jsxs("div",{className:e,children:[m.jsxs("div",{className:"mb-5 pb-3 border-b-2 border-dashed border-slate-100/80",children:[m.jsx("div",{className:"flex items-center gap-2 mb-2 pl-2 opacity-60",children:m.jsxs("span",{className:"text-[10px] font-bold font-mono uppercase tracking-widest text-slate-400",children:["Current Focus",n.groupingStrategy.length===1&&n.groupingStrategy[0]!=="dueAt"?` (${n.groupingStrategy[0].replace("At","").replace("Date","")})`:""]})}),m.jsx(cN,{group:a,lazy:!1})]}),!r&&i.map(y=>m.jsx($W,{group:y},y.year)),!r&&c.length>0&&m.jsx(eY,{tasks:c}),!r&&i.length===0&&t.length>0&&!a.tasks.length&&c.length===0&&m.jsx("div",{className:"text-center text-slate-400 text-sm py-10",children:"No tasks visible based on current filters."}),r&&!a.tasks.length&&m.jsx("div",{className:"text-center text-slate-400 text-sm py-10",children:"Focus mode is on. No tasks for today."})]})},nY=()=>{const{onAddTask:e,onAICommand:t,availableTags:n,availableCategories:r}=sF(),{settings:a,filters:i,onFilterChange:c,sort:y,onSortChange:b,isAiMode:x,toggleAiMode:T,onVoiceError:M,onOpenSettings:I}=R2(),[O,N]=de.useState(""),[D,H]=de.useState(!1),{isListening:_,start:X,stop:K}=tN(a.voiceConfig,Be=>N(Qe=>Qe?`${Qe} ${Be}`:Be),M),te=a.aiConfig.enabled&&x,J=async()=>{if(!(!O.trim()||D)){H(!0);try{if(te)await t(O);else{const Be=V$(O);e(Be)}N("")}catch(Be){console.error("Failed to parse task",Be)}finally{H(!1)}}},ne=Be=>{Be.key==="Enter"&&J()},ue=(Be,Qe)=>{const Fe=i[Be],ie=Fe.include,me=ie.includes(Qe)?ie.filter(Ce=>Ce!==Qe):[...ie,Qe];c({...i,[Be]:{...Fe,include:me}})},ye=Be=>{c({...i,[Be]:{include:[],exclude:[]}})},Ee=Be=>{const Qe=i[Be];return Qe.include.length>0||Qe.exclude.length>0},Ve=Be=>{switch(Be){case"todo":return"Circle";case"doing":return"PlayCircle";case"done":return"CheckCircle2";case"scheduled":return"Clock";case"due":return"AlertCircle";case"overdue":return"AlertTriangle";case"cancelled":return"XCircle";case"unplanned":return"Zap";default:return"Circle"}},tt=Be=>{switch(Be){case"done":return"text-emerald-500";case"doing":return"text-sky-500";case"scheduled":return"text-blue-500";case"due":return"text-amber-500";case"overdue":return"text-rose-500";case"cancelled":return"text-slate-400";case"unplanned":return"text-purple-500";default:return"text-slate-400"}},st=Be=>{switch(Be){case"high":return"text-rose-500";case"medium":return"text-amber-500";case"low":return"text-blue-400"}};return m.jsx("div",{className:"pt-3 pb-1",children:m.jsxs("div",{className:"max-w-3xl mx-auto px-2 min-[400px]:px-4 sm:px-6",children:[m.jsxs("div",{className:"relative group z-10",children:[m.jsx("div",{className:"absolute inset-y-0 left-2 min-[400px]:left-3 flex items-center pointer-events-none z-10",children:D?m.jsx(so,{animate:{rotate:360},transition:{repeat:1/0,duration:1,ease:"linear"},className:"text-blue-500",children:m.jsx(He,{name:"Loader2",size:16})}):te?m.jsx(so,{initial:{scale:0},animate:{scale:1},className:"text-purple-500",children:m.jsx(He,{name:"Sparkles",size:16})}):m.jsx("div",{className:"text-slate-400",children:m.jsx(He,{name:"PlusCircle",size:16})})}),m.jsx("input",{type:"text",className:je("w-full bg-white pl-8 min-[400px]:pl-10 pr-20 min-[400px]:pr-24 py-2 min-[400px]:py-2.5 rounded-xl border shadow-sm text-sm focus:outline-none focus:ring-2 transition-all placeholder:text-slate-400 font-medium",te?"border-purple-200 focus:border-purple-400 focus:ring-purple-400/20":"border-slate-200 focus:border-slate-400 focus:ring-slate-400/20"),placeholder:_?"Listening...":te?"Describe tasks using natural language...":window.innerWidth<530?"Quick add task...":"Quick add (e.g., 'Meeting due:tomorrow p:high')",value:O,onChange:Be=>N(Be.target.value),onKeyDown:ne,disabled:D||_}),m.jsxs("div",{className:"absolute inset-y-0 right-2 min-[400px]:right-3 flex items-center gap-0.5 min-[400px]:gap-1",children:[a.voiceConfig.enabled&&m.jsx("button",{onClick:_?K:X,className:je("p-1 min-[400px]:p-1.5 rounded-md transition-all duration-200 relative",_?"text-rose-500 bg-rose-50 animate-pulse":"text-slate-400 hover:text-slate-600 hover:bg-slate-100"),title:_?"Stop Recording":"Start Voice Input",children:m.jsx(He,{name:_?"Square":"Mic",size:16})}),a.aiConfig.enabled&&m.jsx("button",{onClick:T,className:je("p-1 min-[400px]:p-1.5 rounded-md transition-all duration-200",te?"text-purple-600 bg-purple-50 hover:bg-purple-100 ring-1 ring-purple-200":"text-slate-400 hover:text-slate-600 hover:bg-slate-100"),title:te?"Switch to Manual Mode":"Switch to AI Mode",children:m.jsx(He,{name:te?"Sparkles":"TerminalSquare",size:16})}),I&&a.settingButtonOnInputBar!==!1&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"w-px h-4 bg-slate-200 mx-0.5 min-[400px]:mx-1"}),m.jsx("button",{onClick:I,className:"text-slate-400 hover:text-blue-600 p-1 min-[400px]:p-1.5 rounded-md hover:bg-blue-50 transition-colors",title:"Settings & Docs",children:m.jsx(He,{name:"Settings",size:16})})]})]})]}),m.jsxs("div",{className:"relative",children:[m.jsx("div",{className:"absolute left-0 top-0 bottom-2 w-8 bg-gradient-to-r from-white to-transparent pointer-events-none z-10"}),m.jsx("div",{className:"absolute right-0 top-0 bottom-2 w-8 bg-gradient-to-l from-white to-transparent pointer-events-none z-10"}),m.jsxs("div",{className:"flex items-center gap-1.5 min-[400px]:gap-2 mt-2 overflow-x-auto no-scrollbar pb-2 pl-0.5 min-[400px]:pl-1 pr-2 min-[400px]:pr-4",children:[a.tagsFilterOnInputBar!==!1&&m.jsx(dF,{label:"Tags",isActive:Ee("tags"),count:i.tags.include.length,onClear:()=>ye("tags"),children:m.jsxs("div",{className:"space-y-0.5",children:[n.length===0&&m.jsx("div",{className:"text-xs text-slate-400 p-2 italic text-center",children:"No tags available"}),n.map(Be=>m.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer transition-colors group",children:[m.jsx("input",{type:"checkbox",checked:i.tags.include.includes(Be),onChange:()=>ue("tags",Be),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),m.jsx(He,{name:"Tag",size:12,className:"text-blue-500 opacity-70 group-hover:opacity-100"}),m.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Be})]},Be))]})}),a.categoriesFilterOnInputBar!==!1&&m.jsx(dF,{label:"Categories",isActive:Ee("categories"),count:i.categories.include.length,onClear:()=>ye("categories"),children:m.jsxs("div",{className:"space-y-0.5",children:[r.length===0&&m.jsx("div",{className:"text-xs text-slate-400 p-2 italic text-center",children:"No categories available"}),r.map(Be=>m.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer transition-colors group",children:[m.jsx("input",{type:"checkbox",checked:i.categories.include.includes(Be),onChange:()=>ue("categories",Be),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),m.jsx(He,{name:"Folder",size:12,className:"text-amber-500 opacity-70 group-hover:opacity-100"}),m.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Be})]},Be))]})}),a.priorityFilterOnInputBar!==!1&&m.jsx(dF,{label:"Priority",isActive:Ee("priorities"),count:i.priorities.include.length,onClear:()=>ye("priorities"),children:m.jsx("div",{className:"space-y-0.5",children:["low","medium","high"].map(Be=>m.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer capitalize transition-colors group",children:[m.jsx("input",{type:"checkbox",checked:i.priorities.include.includes(Be),onChange:()=>ue("priorities",Be),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),m.jsx(He,{name:"Flag",size:12,className:je("opacity-80",st(Be)),fill:"currentColor"}),m.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Be})]},Be))})}),a.statusFilterOnInputBar!==!1&&m.jsx(dF,{label:"Status",isActive:Ee("statuses"),count:i.statuses.include.length,onClear:()=>ye("statuses"),children:m.jsx("div",{className:"space-y-0.5",children:["todo","doing","scheduled","done","due","overdue","cancelled","unplanned"].map(Be=>m.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer capitalize transition-colors group",children:[m.jsx("input",{type:"checkbox",checked:i.statuses.include.includes(Be),onChange:()=>ue("statuses",Be),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),m.jsx(He,{name:Ve(Be),size:13,className:je("opacity-80",tt(Be))}),m.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Be})]},Be))})}),(a.tagsFilterOnInputBar!==!1||a.categoriesFilterOnInputBar!==!1||a.priorityFilterOnInputBar!==!1||a.statusFilterOnInputBar!==!1)&&a.sortOnInputBar!==!1&&m.jsx("div",{className:"w-px h-4 bg-slate-300 mx-1 shrink-0 hidden min-[550px]:block"}),a.sortOnInputBar!==!1&&m.jsx("div",{className:"hidden min-[550px]:block",children:m.jsx(Mae,{sort:y,onSortChange:b})})]})]})]})})},dF=({label:e,isActive:t,count:n,children:r,onClear:a})=>m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs(OR,{whileHover:{scale:1.02},whileTap:{scale:.98},className:je("flex items-center gap-1 min-[400px]:gap-1.5 px-2 min-[400px]:px-3 py-1 min-[400px]:py-1.5 text-xs font-medium rounded-full border transition-all shrink-0 outline-none select-none",t?"bg-slate-800 text-white border-slate-800 shadow-md shadow-slate-200":"bg-white text-slate-600 border-slate-200 hover:border-slate-300 hover:text-slate-800"),children:[e,t&&m.jsx("span",{className:"flex items-center justify-center bg-white text-slate-900 text-[9px] font-bold h-4 min-w-4 px-0.5 rounded-full",children:n}),m.jsx(He,{name:"ChevronDown",size:12,className:je("transition-transform duration-200",t?"text-slate-300":"opacity-40")})]})}),m.jsx(Zu,{side:"bottom",align:"start",sideOffset:8,collisionPadding:16,className:"outline-none w-auto p-0",style:{zIndex:99999},children:m.jsxs(so,{initial:{opacity:0,scale:.95,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-5},transition:{duration:.15,ease:"easeOut"},className:"w-56 bg-slate-50 border border-slate-200 shadow-lg rounded-lg overflow-hidden p-1",children:[m.jsxs("div",{className:"flex justify-between items-center px-3 py-2 border-b border-slate-200 mb-1",children:[m.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider",children:e}),t&&m.jsx("button",{onClick:a,className:"text-[10px] font-medium text-rose-500 hover:text-rose-600 px-1.5 py-0.5 rounded hover:bg-rose-50 transition-colors",children:"Clear"})]}),m.jsx("div",{className:"max-h-60 overflow-y-auto p-1 custom-scrollbar",children:r})]})})]}),Mae=({sort:e,onSortChange:t})=>{const n=[{label:"Due Date",value:"dueAt",icon:"Calendar"},{label:"Created Date",value:"createdAt",icon:"Clock"},{label:"Priority",value:"priority",icon:"Flag"},{label:"Title",value:"title",icon:"Type"}],r=a=>{e.field===a?t({...e,direction:e.direction==="asc"?"desc":"asc"}):t({...e,field:a,direction:"asc"})};return m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs("button",{className:"flex items-center gap-1 min-[400px]:gap-1.5 px-2 min-[400px]:px-3 py-1 min-[400px]:py-1.5 bg-slate-100 hover:bg-slate-200 text-slate-600 hover:text-slate-900 text-xs font-bold rounded-full transition-all shrink-0 outline-none ml-auto active:scale-95",children:[m.jsx(He,{name:"ArrowUpDown",size:12}),m.jsx("span",{children:"Sort"})]})}),m.jsx(Zu,{side:"bottom",align:"end",sideOffset:8,collisionPadding:16,className:"outline-none w-auto p-0",style:{zIndex:99999},children:m.jsxs(so,{initial:{opacity:0,scale:.95,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-5},transition:{duration:.15,ease:"easeOut"},className:"w-48 bg-slate-50 border border-slate-200 shadow-lg rounded-lg overflow-hidden p-1",children:[m.jsx("div",{className:"px-3 py-2 text-[10px] font-bold text-slate-400 uppercase border-b border-slate-200 mb-1",children:"Sort By"}),m.jsx("div",{className:"flex flex-col gap-0.5",children:n.map(a=>{const i=e.field===a.value;return m.jsx("button",{onClick:()=>r(a.value),children:m.jsxs("div",{className:je("flex items-center justify-start! text-sm rounded-lg outline-none hover:bg-slate-300 font-mono w-full p-2",i?"text-slate-900":"text-slate-600 hover:text-slate-900"),children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(He,{name:a.icon,size:14,className:i?"text-blue-500":"opacity-70"}),m.jsx("span",{children:a.label})]}),i&&m.jsx("div",{className:"flex items-center gap-1 text-blue-500",children:m.jsx(He,{name:e.direction==="asc"?"ArrowUp":"ArrowDown",size:18})})]})},a.value)})})]})})]})};function F2({value:e,onChange:t,placeholder:n="Pick a date",className:r,disabled:a,showTime:i=!1}){const[c,y]=se.useState(!1),[b,x]=se.useState("00:00"),T=e?pt.fromISO(e):null,M=T?.isValid?T.toJSDate():void 0;se.useEffect(()=>{T?.isValid&&i&&x(T.toFormat("HH:mm"))},[e,T,i]);const I=D=>{if(!D){t("");return}let H=pt.fromJSDate(D);if(i&&b){const[X,K]=b.split(":").map(Number);H=H.set({hour:X,minute:K})}const _=i?H.toISO()||"":H.toISODate()||"";t(_),i||y(!1)},O=D=>{const H=D.target.value;if(x(H),M){const[_,X]=H.split(":").map(Number),K=pt.fromJSDate(M).set({hour:_,minute:X});t(K.toISO()||"")}},N=se.useMemo(()=>T?.isValid?i?T.toFormat("MMM dd, yyyy HH:mm"):T.toFormat("MMM dd, yyyy"):n,[T,n,i]);return m.jsxs(zh,{open:c,onOpenChange:y,children:[m.jsx(Hh,{asChild:!0,children:m.jsxs(Rf,{variant:"outline",disabled:a,className:je("w-full justify-start text-left font-normal",!e&&"text-muted-foreground",r),children:[m.jsx(kf,{className:"mr-2 h-4 w-4"}),N]})}),m.jsxs(Zu,{className:"w-auto p-0",align:"start",children:[m.jsx(GW,{mode:"single",selected:M,onSelect:I,initialFocus:!0}),i&&m.jsxs("div",{className:"border-t border-border p-3",children:[m.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Time"}),m.jsx("input",{type:"time",value:b,onChange:O,className:"w-full px-3 py-2 bg-background border border-input rounded-md text-sm focus:ring-2 focus:ring-ring focus:border-ring outline-none"})]})]})]})}const Cae=[{value:et.DAILY,label:"Daily"},{value:et.WEEKLY,label:"Weekly"},{value:et.MONTHLY,label:"Monthly"},{value:et.YEARLY,label:"Yearly"}],Tae=[{label:"M",val:et.MO},{label:"T",val:et.TU},{label:"W",val:et.WE},{label:"T",val:et.TH},{label:"F",val:et.FR},{label:"S",val:et.SA},{label:"S",val:et.SU}],Sae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Lae=({task:e,onSave:t,onClose:n,availableCategories:r})=>{const[a,i]=de.useState(e),[c,y]=de.useState(!1),[b,x]=de.useState(()=>{let N=et.WEEKLY,D=1,H=[],_=[],X=[],K="",te="";if(e.isRecurring&&e.recurringInterval)try{const J=et.fromString(e.recurringInterval);N=J.options.freq,D=J.options.interval;const ne=J.options.byweekday;ne&&(H=(Array.isArray(ne)?ne:[ne]).map(ye=>typeof ye=="number"?new yi(ye):ye)),_=J.options.bymonth?Array.isArray(J.options.bymonth)?J.options.bymonth:[J.options.bymonth]:[],X=J.options.bymonthday?Array.isArray(J.options.bymonthday)?J.options.bymonthday:[J.options.bymonthday]:[],J.options.dtstart&&(K=pt.fromJSDate(J.options.dtstart).toISODate()||""),J.options.until&&(te=pt.fromJSDate(J.options.until).toISODate()||"")}catch(J){console.error(`parse recurrence rule failed with err: ${J}`)}return{freq:N,interval:D,byWeekDay:H,byMonth:_,byMonthDay:X,start:K,end:te}}),T=N=>{x(D=>({...D,...N}))},M=()=>{const N={...a};if(N.isRecurring)try{const{start:D,end:H,freq:_,interval:X,byWeekDay:K,byMonth:te,byMonthDay:J}=b,ne=D?pt.fromISO(D).toJSDate():void 0,ue=H?pt.fromISO(H).endOf("day").toJSDate():void 0,ye=new et({freq:_,interval:X,byweekday:_===et.WEEKLY?K:null,bymonth:_===et.YEARLY&&te.length>0?te:null,bymonthday:(_===et.MONTHLY||_===et.YEARLY)&&J.length>0?J:null,dtstart:ne,until:ue});N.recurringInterval=ye.toString()}catch(D){console.error("Failed to generate RRule",D)}else N.recurringInterval=void 0;t(N)},I=()=>{i(N=>({...N,isRecurring:!N.isRecurring}))},O=r.filter(N=>N.toLowerCase().includes((a.category||"").toLowerCase())&&N.toLowerCase()!==(a.category||"").toLowerCase());return m.jsxs("div",{className:"flex flex-col max-h-[85vh]",children:[m.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 sticky top-0 backdrop-blur-md z-10 shrink-0",children:[m.jsx("h2",{className:"font-bold text-slate-800",children:"Edit Task"}),m.jsx("button",{onClick:n,"aria-label":"Close edit task modal",className:"p-2 text-slate-400 hover:text-slate-600 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800",children:m.jsx(He,{name:"X",size:20})})]}),m.jsxs("div",{className:"p-6 space-y-5 overflow-y-auto flex-1",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{htmlFor:"task-title",className:"text-xs font-semibold text-slate-500 uppercase",children:"Title"}),m.jsx("input",{id:"task-title",value:a.title,onChange:N=>i({...a,title:N.target.value}),className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none text-slate-900"})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{htmlFor:"task-description",className:"text-xs font-semibold text-slate-500 uppercase",children:"Description"}),m.jsx("textarea",{id:"task-description",value:a.description||"",onChange:N=>i({...a,description:N.target.value}),className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none min-h-20 resize-none text-slate-900",placeholder:"Add details..."})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-1 relative group",children:[m.jsx("label",{htmlFor:"task-category",className:"text-xs font-semibold text-slate-500 uppercase",children:"Category"}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{id:"task-category",type:"text",value:a.category||"",onChange:N=>i({...a,category:N.target.value}),onFocus:()=>y(!0),onBlur:()=>setTimeout(()=>y(!1),200),placeholder:"Work, Personal...",className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none pl-9 text-slate-900"}),m.jsx("div",{className:"absolute left-3 top-2.5 text-slate-400 pointer-events-none",children:m.jsx(He,{name:"Folder",size:14})}),m.jsx("div",{className:"absolute right-3 top-2.5 text-slate-400 pointer-events-none transition-transform duration-200",style:{transform:c?"rotate(180deg)":"rotate(0deg)"},children:m.jsx(He,{name:"ChevronDown",size:14})})]}),m.jsx(Zd,{children:c&&(O.length>0||a.category&&!r.includes(a.category))&&m.jsxs(oo.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0},className:"absolute z-20 w-full mt-1 bg-white border border-slate-100 rounded-lg shadow-xl max-h-40 overflow-y-auto py-1",children:[O.map(N=>m.jsxs("button",{onClick:()=>i({...a,category:N}),className:"w-full text-left px-3 py-2 text-sm text-slate-700 hover:bg-slate-50 flex items-center gap-2",children:[m.jsx(He,{name:"Folder",size:12,className:"text-slate-400"}),N]},N)),a.category&&!r.includes(a.category)&&m.jsxs("div",{className:"px-3 py-2 text-xs text-blue-600 bg-blue-50/50 border-t border-blue-100 flex items-center gap-2",children:[m.jsx(He,{name:"Plus",size:12}),'Create "',a.category,'"']})]})})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("span",{id:"priority-label",className:"text-xs font-semibold text-slate-500 uppercase",children:"Priority"}),m.jsx("div",{role:"radiogroup","aria-labelledby":"priority-label",className:"flex bg-slate-50 dark:bg-slate-800/50 p-1 rounded-lg border border-slate-200 dark:border-slate-700 h-9.5",children:["low","medium","high"].map(N=>m.jsx("button",{role:"radio","aria-checked":a.priority===N,onClick:()=>i({...a,priority:N}),className:je("flex-1 text-xs font-medium rounded-md capitalize transition-all flex items-center justify-center",a.priority===N?"bg-white dark:bg-slate-600 shadow-sm text-slate-800 dark:text-slate-100 border border-slate-100 dark:border-slate-500":"text-slate-500 hover:text-slate-700 dark:hover:text-slate-300"),children:N},N))})]})]}),m.jsxs("div",{className:"border-t border-slate-100 dark:border-slate-800 pt-4",children:[m.jsx("label",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-3 block",children:"Task Dates"}),m.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Created"}),m.jsx(F2,{value:a.createdAt,onChange:N=>i({...a,createdAt:N||a.createdAt}),showTime:!0,placeholder:"Select created date"})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Due"}),m.jsx(F2,{value:a.dueAt,onChange:N=>i({...a,dueAt:N}),showTime:!0,placeholder:"Select due date"})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Start At"}),m.jsx(F2,{value:a.startAt,onChange:N=>i({...a,startAt:N}),showTime:!0,placeholder:"Select start date"})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Completed"}),m.jsx(F2,{value:a.completedAt,onChange:N=>i({...a,completedAt:N}),showTime:!0,placeholder:"Select completed date",disabled:a.status!=="done"&&a.status!=="cancelled"})]})]}),m.jsxs("div",{className:"bg-slate-50 dark:bg-slate-800/30 rounded-lg p-3 border border-slate-200/60 dark:border-slate-700 transition-colors",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:je("p-1.5 rounded-md",a.isRecurring?"bg-blue-100 text-blue-600":"bg-slate-200 text-slate-500"),children:m.jsx(He,{name:"Repeat",size:16})}),m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"Recurrence"}),m.jsx("span",{className:"text-[10px] text-slate-400",children:"Repeats automatically"})]})]}),m.jsx("button",{onClick:I,role:"switch","aria-checked":a.isRecurring,"aria-label":"Toggle task recurrence",className:je("relative w-9 h-5 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",a.isRecurring?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(oo.div,{layout:!0,className:"absolute top-1 left-1 w-3 h-3 bg-white rounded-full shadow-sm",animate:{x:a.isRecurring?16:0}})})]}),m.jsx(Zd,{children:a.isRecurring&&m.jsx(oo.div,{initial:{height:0,opacity:0,marginTop:0},animate:{height:"auto",opacity:1,marginTop:12},exit:{height:0,opacity:0,marginTop:0},className:"overflow-hidden",children:m.jsxs("div",{className:"pt-3 border-t border-slate-200/60 dark:border-slate-700 space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("label",{htmlFor:"recurrence-interval",className:"text-xs font-medium text-slate-500",children:"Every"}),m.jsx("input",{id:"recurrence-interval",type:"number",min:"1",max:"99","aria-label":"Recurrence interval",value:b.interval,onChange:N=>T({interval:parseInt(N.target.value)||1}),className:"w-12 px-1.5 py-1 text-center bg-white dark:bg-slate-800 border border-slate-300 dark:border-slate-600 rounded-md text-xs focus:border-blue-500 outline-none text-slate-700 dark:text-slate-200"}),m.jsx("select",{"aria-label":"Recurrence frequency",value:b.freq,onChange:N=>T({freq:parseInt(N.target.value)}),className:"flex-1 bg-white dark:bg-slate-800 border border-slate-300 dark:border-slate-600 text-slate-700 dark:text-slate-200 text-xs rounded-md focus:ring-blue-500 focus:border-blue-500 block p-1 outline-none",children:Cae.map(N=>m.jsx("option",{value:N.value,children:N.label},N.value))})]}),b.freq===et.WEEKLY&&m.jsxs("div",{className:"space-y-1",children:[m.jsx("span",{id:"weekdays-label",className:"text-[10px] font-semibold text-slate-400 uppercase",children:"On days"}),m.jsx("div",{role:"group","aria-labelledby":"weekdays-label",className:"flex justify-between",children:Tae.map((N,D)=>{const H=b.byWeekDay.some(X=>X.weekday===N.val.weekday),_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return m.jsx("button",{"aria-label":_[D],"aria-pressed":H,onClick:()=>{const X=b.byWeekDay,K=X.some(te=>te.weekday===N.val.weekday);T({byWeekDay:K?X.filter(te=>te.weekday!==N.val.weekday):[...X,N.val]})},className:je("w-7 h-7 flex items-center justify-center rounded-full text-xs font-medium transition-all border",H?"bg-blue-500 text-white border-blue-600 shadow-sm":"bg-white dark:bg-slate-700 text-slate-500 dark:text-slate-400 border-slate-200 dark:border-slate-600 hover:border-blue-300 hover:text-blue-500"),children:N.label},N.label+N.val.weekday)})})]}),(b.freq===et.MONTHLY||b.freq===et.YEARLY)&&m.jsxs("div",{className:"space-y-3",children:[b.freq===et.YEARLY&&m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Months"}),m.jsx("div",{className:"grid grid-cols-6 gap-1",children:Sae.map((N,D)=>{const H=D+1,_=b.byMonth.includes(H);return m.jsx("button",{onClick:()=>{const X=b.byMonth;T({byMonth:X.includes(H)?X.filter(K=>K!==H):[...X,H]})},className:je("py-1 text-[15px] rounded border transition-colors",_?"bg-blue-500 text-white border-blue-600":"bg-white dark:bg-slate-800 border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:border-blue-300"),children:N},N)})})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Days"}),m.jsx("div",{className:"grid grid-cols-7 gap-1",children:Array.from({length:31},(N,D)=>D+1).map(N=>{const D=b.byMonthDay.includes(N);return m.jsx("button",{onClick:()=>{const H=b.byMonthDay;T({byMonthDay:H.includes(N)?H.filter(_=>_!==N):[...H,N]})},className:je("w-full aspect-square flex items-center justify-center text-[15px] rounded border transition-colors",D?"bg-blue-500 text-white border-blue-600":"bg-white dark:bg-slate-800 border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:border-blue-300"),children:N},N)})})]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-2 pt-2 border-t border-slate-200/50 dark:border-slate-700/50",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Start Recurrence"}),m.jsx(F2,{value:b.start,onChange:N=>T({start:N&&pt.fromISO(N).toISODate()||""}),placeholder:"Select start",className:"h-8 text-xs"})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"End Recurrence"}),m.jsx(F2,{value:b.end,onChange:N=>T({end:N&&pt.fromISO(N).toISODate()||""}),placeholder:"Select end",className:"h-8 text-xs"})]})]}),m.jsx("div",{className:"text-[10px] text-slate-400 italic bg-white/50 dark:bg-slate-800/50 p-2 rounded border border-slate-100 dark:border-slate-700 text-center",children:(()=>{try{const{freq:N,interval:D,byWeekDay:H,byMonth:_,byMonthDay:X,start:K,end:te}=b;return new et({freq:N,interval:D,byweekday:N===et.WEEKLY?H:null,bymonth:N===et.YEARLY&&_.length>0?_:null,bymonthday:(N===et.MONTHLY||N===et.YEARLY)&&X.length>0?X:null,dtstart:K?pt.fromISO(K).toJSDate():void 0,until:te?pt.fromISO(te).endOf("day").toJSDate():void 0}).toText()}catch(N){return console.error(`invalid recurrence rule: ${N}`),"Invalid Rule"}})()})]})})})]})]})]}),m.jsxs("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 border-t border-slate-100 dark:border-slate-800 flex justify-end gap-3 sticky bottom-0 z-10 shrink-0",children:[m.jsx("button",{onClick:n,className:"px-4 py-2 text-sm font-medium text-slate-600 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 rounded-lg transition-colors",children:"Cancel"}),m.jsx("button",{onClick:M,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg shadow-sm shadow-blue-200 transition-colors",children:"Save Changes"})]})]})},rY=({isOpen:e,onClose:t,task:n,onSave:r,availableCategories:a})=>m.jsx(Zd,{children:e&&n&&m.jsxs(m.Fragment,{children:[m.jsx(oo.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-50"}),m.jsx(oo.div,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},className:"fixed top-1/2 left-1/2 w-full max-w-lg bg-paper rounded-xl shadow-2xl z-50 border border-slate-200 dark:border-slate-800 overflow-hidden text-slate-900",children:m.jsx(Lae,{task:n,onSave:r,onClose:t,availableCategories:a},n.id)})]})}),aY=()=>m.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar bg-slate-50/50 dark:bg-slate-900/10",children:[m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Activity",size:14,className:"text-blue-500"}),"Task Lifecycle & Auto-Status"]}),m.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"The view automatically manages task statuses based on dates to keep your workflow organized. You rarely need to manually set status unless completing a task."}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[m.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"AlertCircle",size:14,className:"text-rose-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Due / Overdue"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks due Today, Tomorrow, or in the past are automatically flagged as Urgent."})]}),m.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Clock",size:14,className:"text-blue-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Scheduled (Doing)"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks with a future Start Date are marked as Scheduled until that date arrives."})]}),m.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Zap",size:14,className:"text-purple-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Unplanned"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks without dates that need immediate attention. You must manually set this."})]}),m.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Archive",size:14,className:"text-slate-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Backlog"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Items with no Due Date or Start Date appear in the Backlog section."})]})]})]}),m.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Code2",size:14,className:"text-emerald-500"}),"Scripting Guide"]}),m.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"Unlock advanced control by writing short JavaScript snippets to filter and sort your tasks precisely."}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsxs("h4",{className:"text-xs font-bold text-slate-700 flex items-center gap-2",children:[m.jsx(He,{name:"Filter",size:12,className:"text-slate-400"}),"Filter Script"]}),m.jsxs("div",{className:"bg-[#1e1e1e] rounded-lg p-3 border border-slate-700 font-mono text-[10px] text-slate-300 shadow-inner",children:[m.jsx("p",{className:"text-slate-500 mb-1",children:"// Ex: Show only high priority tasks due today"}),m.jsxs("p",{children:[m.jsx("span",{className:"text-purple-400",children:"const"})," today ="," ",m.jsx("span",{className:"text-blue-400",children:"new"})," ","Date().toISOString().split('T')[0];"]}),m.jsxs("p",{children:[m.jsx("span",{className:"text-purple-400",children:"return"})," task.priority === 'high' && task.dueDate === today;"]})]}),m.jsxs("p",{className:"text-xs text-slate-500",children:[m.jsx("b",{children:"Variable:"})," ",m.jsx("code",{children:"task"})," (The Task object).",m.jsx("br",{}),m.jsx("b",{children:"Return:"})," ",m.jsx("code",{children:"true"})," to keep, ",m.jsx("code",{children:"false"})," to hide."]})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsxs("h4",{className:"text-xs font-bold text-slate-700 flex items-center gap-2",children:[m.jsx(He,{name:"ArrowUpDown",size:12,className:"text-slate-400"}),"Sort Script"]}),m.jsxs("div",{className:"bg-[#1e1e1e] rounded-lg p-3 border border-slate-700 font-mono text-[10px] text-slate-300 shadow-inner",children:[m.jsx("p",{className:"text-slate-500 mb-1",children:"// Ex: Sort by title length, then alphabetically"}),m.jsxs("p",{children:[m.jsx("span",{className:"text-purple-400",children:"if"})," (a.title.length !== b.title.length) ",m.jsx("span",{className:"text-purple-400",children:"return"})," ","a.title.length - b.title.length;"]}),m.jsxs("p",{children:[m.jsx("span",{className:"text-purple-400",children:"return"})," ","a.title.localeCompare(b.title);"]})]}),m.jsxs("p",{className:"text-xs text-slate-500",children:[m.jsx("b",{children:"Variables:"})," ",m.jsx("code",{children:"a"}),", ",m.jsx("code",{children:"b"})," (Two Task objects to compare).",m.jsx("br",{}),m.jsx("b",{children:"Return:"})," Negative number if a < b, Positive if a > b, 0 if equal."]})]})]})]}),m.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Sparkles",size:14,className:"text-purple-500"}),"AI & Voice Intelligence"]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:m.jsx(He,{name:"Mic",size:16})}),m.jsxs("div",{children:[m.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"Voice Commands"}),m.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:'Click the microphone icon to speak. Supports natural language like "Buy milk tomorrow priority high".'})]})]}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:m.jsx(He,{name:"TerminalSquare",size:16})}),m.jsxs("div",{children:[m.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"AI Mode"}),m.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Toggle AI mode to use Gemini. It can Create, Update, Query, and Delete tasks.",m.jsx("br",{}),m.jsx("em",{className:"opacity-80",children:'Example: "Move all overdue tasks to next friday" or "Summarize my high priority work".'})]})]})]})]})]}),m.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Command",size:14,className:"text-slate-500"}),"Quick Controls"]}),m.jsxs("ul",{className:"text-xs text-slate-600 dark:text-slate-400 space-y-2",children:[m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Enter"}),m.jsx("span",{children:"Save task / Submit command"})]}),m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Double Click Delete"}),m.jsx("span",{children:"Click trash icon once to arm, twice to delete."})]}),m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Focus Mode"}),m.jsx("span",{children:"Hides everything except Today's active tasks."})]})]})]})]}),Iae=[{id:"system",name:"System",colors:"bg-slate-400 border-slate-700"},{id:"light",name:"Light",colors:"bg-white border-slate-200"},{id:"dark",name:"Dark",colors:"bg-slate-900 border-slate-700"},{id:"midnight",name:"Midnight",colors:"bg-[#0B1120] border-slate-800"},{id:"coffee",name:"Coffee",colors:"bg-[#f5f2eb] border-[#e8e4db]"}],oY=({theme:e,setTheme:t})=>m.jsxs(m.Fragment,{children:[m.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"Appearance"}),m.jsx("div",{className:"grid grid-cols-5 gap-2",children:Iae.map(n=>m.jsxs("button",{onClick:()=>t(n.id),className:je("flex flex-col items-center gap-2 p-2 rounded-xl border-2 transition-all outline-none",e===n.id?"border-blue-500 bg-blue-50/30 ring-2 ring-blue-200 dark:ring-blue-900":"border-transparent hover:bg-slate-50 dark:hover:bg-slate-800/50"),children:[m.jsx("div",{className:je("w-full aspect-square rounded-lg shadow-sm border border-slate-200/20",n.colors)}),m.jsx("span",{className:je("text-[10px] font-medium truncate w-full text-center",e===n.id?"text-blue-600":"text-slate-500"),children:n.name})]},n.id))})]}),Aae=[{id:"sm",label:"Small",class:"text-sm"},{id:"base",label:"Medium",class:"text-base"},{id:"lg",label:"Large",class:"text-lg"},{id:"xl",label:"Extra Large",class:"text-xl"}],iY=({fontSize:e,setFontSize:t})=>m.jsxs(m.Fragment,{children:[m.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"Typography"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{className:"text-xs font-medium text-slate-500",children:"Item Font Size"}),m.jsx("div",{className:"grid grid-cols-4 gap-2",children:Aae.map(n=>m.jsxs("button",{onClick:()=>t(n.id),className:je("py-2 px-1 rounded-lg border text-center transition-all",e===n.id?"border-blue-500 bg-blue-50 dark:bg-slate-700 text-blue-700 dark:text-blue-100 shadow-sm":"border-slate-200 dark:border-slate-700 hover:bg-slate-50 dark:hover:bg-slate-800 text-slate-600 dark:text-slate-400"),children:[m.jsx("span",{className:je("block leading-none mb-1",n.class),children:"Ag"}),m.jsx("span",{className:"text-[10px] opacity-70",children:n.label})]},n.id))})]})]}),Eae=[{id:"dueAt",label:"Due Date"},{id:"createdAt",label:"Created Date"},{id:"startAt",label:"Start Date"},{id:"completedAt",label:"Completed Date"}],sY=[{value:"MMM d",label:"Oct 24"},{value:"EEE, MMM d",label:"Mon, Oct 24"},{value:"yyyy-MM-dd",label:"2023-10-24"},{value:"dd/MM/yyyy",label:"24/10/2023"}],lY=({showCompleted:e,toggleShowCompleted:t,useRelativeDates:n,toggleRelativeDates:r,showProgressBar:a,toggleProgressBar:i,soundEnabled:c,toggleSound:y,defaultFocusMode:b,toggleDefaultFocus:x,setDateFormat:T,isCustomFormat:M,setIsCustomFormat:I,dateFormat:O,defaultCategory:N,setDefaultCategory:D,availableCategories:H,groupingStrategy:_,toggleGroupingStrategy:X})=>m.jsxs(m.Fragment,{children:[m.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"View Options"}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Show Completed"}),m.jsx("span",{className:"text-xs text-slate-400",children:"Display finished items"})]}),m.jsx("button",{onClick:t,className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",e?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:e?16:0}})})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Relative Dates"}),m.jsx("span",{className:"text-xs text-slate-400",children:'e.g. "In 2 days", "Yesterday"'})]}),m.jsx("button",{onClick:r,className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",n?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:n?16:0}})})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Progress Bars"}),m.jsx("span",{className:"text-xs text-slate-400",children:"Show visual completion in timeline"})]}),m.jsx("button",{onClick:i,className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",a?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:a?16:0}})})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Sound"}),m.jsx("span",{className:"text-xs text-slate-400",children:"Play sounds on actions"})]}),m.jsx("button",{onClick:y,className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",c?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:c?16:0}})})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Default Focus Mode"}),m.jsx("span",{className:"text-xs text-slate-400",children:"Start app in Focus Mode"})]}),m.jsx("button",{onClick:x,className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",b?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:b?16:0}})})]}),m.jsxs("div",{className:"pt-2",children:[m.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Date Format"}),m.jsx("div",{className:"grid grid-cols-2 gap-2 mb-2",children:sY.map(K=>m.jsxs("button",{onClick:()=>{T(K.value),I(!1)},className:je("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between",!M&&O===K.value?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[m.jsx("span",{children:K.label}),!M&&O===K.value&&m.jsx(He,{name:"Check",size:12,className:"text-blue-500"})]},K.value))}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("button",{onClick:()=>I(!0),className:je("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between flex-1",M?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[m.jsx("span",{children:"Custom..."}),M&&m.jsx(He,{name:"Check",size:12,className:"text-blue-500"})]}),M&&m.jsx("input",{type:"text",value:O,onChange:K=>T(K.target.value),className:"flex-1 px-3 py-2 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-blue-500 font-mono",placeholder:"yyyy/MM/dd HH:mm"})]}),M&&m.jsxs("p",{className:"text-[10px] text-slate-400 mt-1 pl-1",children:["Uses Luxon format tokens (e.g. ",m.jsx("code",{children:"EEE, MMM d"}),")"]})]}),m.jsxs("div",{className:"pt-2 border-t border-slate-100 dark:border-slate-800",children:[m.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Default Category"}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:"text",list:"category-suggestions",value:N,onChange:K=>D(K.target.value),className:"w-full px-3 py-2 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-blue-500",placeholder:"General"}),m.jsx("datalist",{id:"category-suggestions",children:H.map(K=>m.jsx("option",{value:K},K))})]})]}),m.jsxs("div",{className:"pt-2 border-t border-slate-100 dark:border-slate-800",children:[m.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Group Tasks By (Multi-select)"}),m.jsx("div",{className:"grid grid-cols-2 gap-2",children:Eae.map(K=>{const te=_.includes(K.id);return m.jsxs("button",{onClick:()=>X(K.id),className:je("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between group",te?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[m.jsx("span",{children:K.label}),te&&m.jsx(He,{name:"Check",size:12,className:"text-blue-500"})]},K.id)})})]})]})]}),Pae=[{key:"settingButtonOnInputBar",label:"Settings Button",description:"Show settings gear icon",icon:"Settings"},{key:"tagsFilterOnInputBar",label:"Tags Filter",description:"Show tags filter chips",icon:"Tag"},{key:"categoriesFilterOnInputBar",label:"Categories Filter",description:"Show categories filter chips",icon:"Folder"},{key:"priorityFilterOnInputBar",label:"Priority Filter",description:"Show priority filter chips",icon:"Flag"},{key:"statusFilterOnInputBar",label:"Status Filter",description:"Show status filter chips",icon:"CircleDot"},{key:"sortOnInputBar",label:"Sort Control",description:"Show sort options",icon:"ArrowUpDown"}],Rae=({settings:e,onUpdateSettings:t,availableCategories:n})=>{const r=H=>t({...e,fontSize:H}),a=H=>t({...e,theme:H}),i=H=>t({...e,dateFormat:H}),c=H=>t({...e,defaultCategory:H}),y=()=>t({...e,showCompleted:!e.showCompleted}),b=()=>t({...e,useRelativeDates:!e.useRelativeDates}),x=()=>t({...e,showProgressBar:!e.showProgressBar}),T=()=>t({...e,soundEnabled:!e.soundEnabled}),M=()=>t({...e,defaultFocusMode:!e.defaultFocusMode}),I=H=>{const _=e[H]!==!1;t({...e,[H]:!_})},O=H=>{const _=e.groupingStrategy,X=_.includes(H);let K;if(X){if(_.length===1)return;K=_.filter(te=>te!==H)}else K=[..._,H];t({...e,groupingStrategy:K})},[N,D]=de.useState(!sY.some(H=>H.value===e.dateFormat));return m.jsx(m.Fragment,{children:m.jsxs("div",{className:"p-6 space-y-8",children:[m.jsx("section",{children:m.jsx(oY,{theme:e.theme,setTheme:a})}),m.jsx("section",{children:m.jsx(iY,{fontSize:e.fontSize,setFontSize:r})}),m.jsx("section",{children:m.jsx(lY,{showCompleted:e.showCompleted,toggleShowCompleted:y,useRelativeDates:e.useRelativeDates,toggleRelativeDates:b,showProgressBar:e.showProgressBar,toggleProgressBar:x,soundEnabled:e.soundEnabled,toggleSound:T,defaultFocusMode:e.defaultFocusMode,toggleDefaultFocus:M,dateFormat:e.dateFormat,setDateFormat:i,isCustomFormat:N,setIsCustomFormat:D,defaultCategory:e.defaultCategory,setDefaultCategory:c,availableCategories:n,groupingStrategy:e.groupingStrategy,toggleGroupingStrategy:O})}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4 flex items-center gap-2",children:[m.jsx(He,{name:"PanelBottom",size:12,className:"text-blue-500"}),"Input Bar"]}),m.jsx("div",{className:"space-y-4",children:Pae.map(H=>{const _=e[H.key]!==!1;return m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsx(He,{name:H.icon,size:14,className:"text-slate-400"}),m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:H.label}),m.jsx("span",{className:"text-xs text-slate-400",children:H.description})]})]}),m.jsx("button",{onClick:()=>I(H.key),className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",_?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:_?16:0}})})]},H.key)})})]})]})})};async function cY(){try{return await import("@google/genai")}catch{throw new Error("The '@google/genai' package is required. Install it with: pnpm add @google/genai")}}function Fae(e,t){switch(t){case"string":return e.STRING;case"number":return e.NUMBER;case"boolean":return e.BOOLEAN;case"array":return e.ARRAY;case"object":return e.OBJECT}}function dN(e,t){const n={type:Fae(e,t.type)};return t.description&&(n.description=t.description),t.enum&&(n.enum=t.enum),t.items&&(n.items=dN(e,t.items)),t.properties&&(n.properties=Object.fromEntries(Object.entries(t.properties).map(([r,a])=>[r,dN(e,a)]))),t.required&&(n.required=t.required),n}function Oae(e,t){return t.map(n=>({name:n.name,description:n.description,parameters:{type:e.OBJECT,properties:Object.fromEntries(Object.entries(n.parameters.properties).map(([r,a])=>[r,dN(e,a)])),required:n.parameters.required}}))}class Dae{config;constructor(t){this.config=t}async chat(t,n,r,a,i){const{GoogleGenAI:c,Type:y}=await cY(),b=new c({apiKey:this.config.apiKey}),x=Oae(y,r),T=[];if(i){for(const D of i)if(D.role==="user")T.push({role:"user",parts:[{text:D.content||""}]});else if(D.role==="assistant"){const H=[];if(D.content&&H.push({text:D.content}),D.toolCalls)for(const _ of D.toolCalls)H.push({functionCall:{name:_.name,args:_.args}});T.push({role:"model",parts:H})}else if(D.role==="tool"&&D.toolResults){const H=D.toolResults.map(_=>({functionResponse:{name:_.name,response:{result:_.result}}}));T.push({role:"function",parts:H})}}const M=b.chats.create({model:this.config.model||"gemini-2.0-flash",config:{systemInstruction:t,tools:[{functionDeclarations:x}]},history:T.length>0?T:void 0});let I;a&&a.length>0?(i&&T.length>0&&T[T.length-1].role==="function"&&T.pop(),I=a.map(D=>({functionResponse:{name:D.name,response:{result:D.result}}}))):I=n;const O=await M.sendMessage({message:I}),N={};return O.text&&(N.text=O.text),O.functionCalls&&O.functionCalls.length>0&&(N.toolCalls=O.functionCalls.map(D=>({name:D.name,args:D.args||{}}))),O.usageMetadata&&(N.tokenCount=O.usageMetadata.totalTokenCount||0,N.tokenUsage={inputTokens:O.usageMetadata.promptTokenCount||0,outputTokens:O.usageMetadata.candidatesTokenCount||0,totalTokens:O.usageMetadata.totalTokenCount||0}),N}async test(){try{const{GoogleGenAI:t}=await cY();return{success:!0,message:`Connected to Gemini. Response: "${(await new t({apiKey:this.config.apiKey}).models.generateContent({model:this.config.model||"gemini-2.0-flash",contents:"Say hello in one word."})).text?.trim()}"`}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Unknown error"}}}}class dY{config;constructor(t){this.config=t}async getClient(){let t;try{t=await import("openai")}catch{throw new Error("The 'openai' package is required. Install it with: pnpm add openai")}const n=t.default;return new n({apiKey:this.config.apiKey,baseURL:this.config.baseUrl||void 0,dangerouslyAllowBrowser:!0})}async chat(t,n,r,a,i){const c=await this.getClient(),y=[{role:"system",content:t}];if(i){for(const I of i)if(I.role==="user")y.push({role:"user",content:I.content||""});else if(I.role==="assistant"){const O={role:"assistant",content:I.content||null};I.toolCalls&&I.toolCalls.length>0&&(O.tool_calls=I.toolCalls.map((N,D)=>({id:N.id||`call_${D}`,type:"function",function:{name:N.name,arguments:JSON.stringify(N.args)}}))),y.push(O)}else if(I.role==="tool"&&I.toolResults)for(const O of I.toolResults)y.push({role:"tool",content:JSON.stringify(O.result),tool_call_id:O.id||`call_${O.name}`})}if(a&&a.length>0){if(!i)for(const I of a)y.push({role:"tool",content:JSON.stringify(I.result),tool_call_id:I.id||`call_${I.name}`})}else i||y.push({role:"user",content:n});const b=r.map(I=>({type:"function",function:{name:I.name,description:I.description,parameters:I.parameters}})),x=await c.chat.completions.create({model:this.config.model||"gpt-4o",messages:y,tools:b.length>0?b:void 0}),T=x.choices[0],M={};return T?.message?.content&&(M.text=T.message.content),T?.message?.tool_calls&&T.message.tool_calls.length>0&&(M.toolCalls=T.message.tool_calls.filter(I=>I.type==="function").map(I=>({id:I.id,name:I.function.name,args:JSON.parse(I.function.arguments)}))),x.usage&&(M.tokenCount=x.usage.total_tokens,M.tokenUsage={inputTokens:x.usage.prompt_tokens||0,outputTokens:x.usage.completion_tokens||0,totalTokens:x.usage.total_tokens||0}),M}async test(){try{const r=(await(await this.getClient()).chat.completions.create({model:this.config.model||"gpt-4o",messages:[{role:"user",content:"Say hello in one word."}],max_tokens:10})).choices[0]?.message?.content?.trim();return{success:!0,message:`Connected to ${this.config.model||"gpt-4o"}. Response: "${r}"`}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Unknown error"}}}}class Nae{config;constructor(t){this.config=t}async getClient(){let t;try{t=await import("@anthropic-ai/sdk")}catch{throw new Error("The '@anthropic-ai/sdk' package is required. Install it with: pnpm add @anthropic-ai/sdk")}const n=t.default;return new n({apiKey:this.config.apiKey,baseURL:this.config.baseUrl||void 0,dangerouslyAllowBrowser:!0})}async chat(t,n,r,a,i){const c=await this.getClient(),y=[];if(i){for(const M of i)if(M.role==="user")y.push({role:"user",content:M.content||""});else if(M.role==="assistant"){const I=[];if(M.content&&I.push({type:"text",text:M.content}),M.toolCalls)for(const O of M.toolCalls)I.push({type:"tool_use",id:O.id||`toolu_${O.name}`,name:O.name,input:O.args});y.push({role:"assistant",content:I.length>0?I:""})}else if(M.role==="tool"&&M.toolResults){const I=M.toolResults.map(O=>({type:"tool_result",tool_use_id:O.id||`toolu_${O.name}`,content:JSON.stringify(O.result)}));y.push({role:"user",content:I})}}if(a&&a.length>0){if(!i){const M=a.map(I=>({type:"tool_result",tool_use_id:I.id||`toolu_${I.name}`,content:JSON.stringify(I.result)}));y.push({role:"user",content:M})}}else i||y.push({role:"user",content:n});const b=r.map(M=>({name:M.name,description:M.description,input_schema:M.parameters})),x=await c.messages.create({model:this.config.model||"claude-sonnet-4-20250514",max_tokens:4096,system:t,messages:y,tools:b.length>0?b:void 0}),T={};for(const M of x.content)M.type==="text"?T.text=(T.text||"")+M.text:M.type==="tool_use"&&(T.toolCalls||(T.toolCalls=[]),T.toolCalls.push({id:M.id,name:M.name,args:M.input||{}}));return x.usage&&(T.tokenCount=x.usage.input_tokens+x.usage.output_tokens,T.tokenUsage={inputTokens:x.usage.input_tokens||0,outputTokens:x.usage.output_tokens||0,totalTokens:(x.usage.input_tokens||0)+(x.usage.output_tokens||0)}),T}async test(){try{const n=await(await this.getClient()).messages.create({model:this.config.model||"claude-sonnet-4-20250514",max_tokens:10,messages:[{role:"user",content:"Say hello in one word."}]}),r=n.content[0]?.type==="text"?n.content[0].text.trim():"";return{success:!0,message:`Connected to ${this.config.model||"claude-sonnet-4-20250514"}. Response: "${r}"`}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Unknown error"}}}}const zae=(e,t)=>{let n=`You are a task management assistant. You help users create, query, update, and delete tasks.
60
+ `)},Ane=0,I2=[];function Ene(e){var t=se.useRef([]),n=se.useRef([0,0]),r=se.useRef(),a=se.useState(Ane++)[0],i=se.useState(sW)[0],c=se.useRef(e);se.useEffect(function(){c.current=e},[e]),se.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var D=qe([e.lockRef.current],(e.shards||[]).map(pW),!0).filter(Boolean);return D.forEach(function(H){return H.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),D.forEach(function(H){return H.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var y=se.useCallback(function(D,H){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!c.current.allowPinchZoom;var _=$R(D),X=n.current,K="deltaX"in D?D.deltaX:X[0]-_[0],te="deltaY"in D?D.deltaY:X[1]-_[1],J,ne=D.target,ue=Math.abs(K)>Math.abs(te)?"h":"v";if("touches"in D&&ue==="h"&&ne.type==="range")return!1;var ye=window.getSelection(),Ee=ye&&ye.anchorNode,Ve=Ee?Ee===ne||Ee.contains(ne):!1;if(Ve)return!1;var tt=dW(ue,ne);if(!tt)return!0;if(tt?J=ue:(J=ue==="v"?"h":"v",tt=dW(ue,ne)),!tt)return!1;if(!r.current&&"changedTouches"in D&&(K||te)&&(r.current=J),!J)return!0;var st=r.current||J;return Sne(st,H,D,st==="h"?K:te)},[]),b=se.useCallback(function(D){var H=D;if(!(!I2.length||I2[I2.length-1]!==i)){var _="deltaY"in H?fW(H):$R(H),X=t.current.filter(function(J){return J.name===H.type&&(J.target===H.target||H.target===J.shadowParent)&&Lne(J.delta,_)})[0];if(X&&X.should){H.cancelable&&H.preventDefault();return}if(!X){var K=(c.current.shards||[]).map(pW).filter(Boolean).filter(function(J){return J.contains(H.target)}),te=K.length>0?y(H,K[0]):!c.current.noIsolation;te&&H.cancelable&&H.preventDefault()}}},[]),x=se.useCallback(function(D,H,_,X){var K={name:D,delta:H,target:_,should:X,shadowParent:Pne(_)};t.current.push(K),setTimeout(function(){t.current=t.current.filter(function(te){return te!==K})},1)},[]),T=se.useCallback(function(D){n.current=$R(D),r.current=void 0},[]),M=se.useCallback(function(D){x(D.type,fW(D),D.target,y(D,e.lockRef.current))},[]),I=se.useCallback(function(D){x(D.type,$R(D),D.target,y(D,e.lockRef.current))},[]);se.useEffect(function(){return I2.push(i),e.setCallbacks({onScrollCapture:M,onWheelCapture:M,onTouchMoveCapture:I}),document.addEventListener("wheel",b,L2),document.addEventListener("touchmove",b,L2),document.addEventListener("touchstart",T,L2),function(){I2=I2.filter(function(D){return D!==i}),document.removeEventListener("wheel",b,L2),document.removeEventListener("touchmove",b,L2),document.removeEventListener("touchstart",T,L2)}},[]);var O=e.removeScrollBar,N=e.inert;return se.createElement(se.Fragment,null,N?se.createElement(i,{styles:Ine(a)}):null,O?se.createElement(kne,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Pne(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Rne=ine(iW,Ene);var yW=se.forwardRef(function(e,t){return se.createElement(QR,Ea({},e,{ref:t,sideCar:Rne}))});yW.classNames=QR.classNames;var eF="Popover",[gW]=AD(eF,[ZU]),If=ZU(),[Fne,Nh]=gW(eF),mW=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:c=!1}=e,y=If(t),b=se.useRef(null),[x,T]=se.useState(!1),[M,I]=nW({prop:r,defaultProp:a??!1,onChange:i,caller:eF});return m.jsx(Hte,{...y,children:m.jsx(Fne,{scope:t,contentId:bU(),triggerRef:b,open:M,onOpenChange:I,onOpenToggle:se.useCallback(()=>I(O=>!O),[I]),hasCustomAnchor:x,onCustomAnchorAdd:se.useCallback(()=>T(!0),[]),onCustomAnchorRemove:se.useCallback(()=>T(!1),[]),modal:c,children:n})})};mW.displayName=eF;var vW="PopoverAnchor",One=se.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Nh(vW,n),i=If(n),{onCustomAnchorAdd:c,onCustomAnchorRemove:y}=a;return se.useEffect(()=>(c(),()=>y()),[c,y]),m.jsx(eW,{...i,...r,ref:t})});One.displayName=vW;var kW="PopoverTrigger",bW=se.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Nh(kW,n),i=If(n),c=_u(t,a.triggerRef),y=m.jsx(ac.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":SW(a.open),...r,ref:c,onClick:Vu(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?y:m.jsx(eW,{asChild:!0,...i,children:y})});bW.displayName=kW;var qD="PopoverPortal",[Dne,Nne]=gW(qD,{forceMount:void 0}),xW=e=>{const{__scopePopover:t,forceMount:n,children:r,container:a}=e,i=Nh(qD,t);return m.jsx(Dne,{scope:t,forceMount:n,children:m.jsx(ZR,{present:n||i.open,children:m.jsx(tW,{asChild:!0,container:a,children:r})})})};xW.displayName=qD;var A2="PopoverContent",wW=se.forwardRef((e,t)=>{const n=Nne(A2,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,i=Nh(A2,e.__scopePopover);return m.jsx(ZR,{present:r||i.open,children:i.modal?m.jsx(Hne,{...a,ref:t}):m.jsx(Bne,{...a,ref:t})})});wW.displayName=A2;var zne=sU("PopoverContent.RemoveScroll"),Hne=se.forwardRef((e,t)=>{const n=Nh(A2,e.__scopePopover),r=se.useRef(null),a=_u(t,r),i=se.useRef(!1);return se.useEffect(()=>{const c=r.current;if(c)return Qte(c)},[]),m.jsx(yW,{as:zne,allowPinchZoom:!0,children:m.jsx(MW,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Vu(e.onCloseAutoFocus,c=>{c.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Vu(e.onPointerDownOutside,c=>{const y=c.detail.originalEvent,b=y.button===0&&y.ctrlKey===!0,x=y.button===2||b;i.current=x},{checkForDefaultPrevented:!1}),onFocusOutside:Vu(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),Bne=se.forwardRef((e,t)=>{const n=Nh(A2,e.__scopePopover),r=se.useRef(!1),a=se.useRef(!1);return m.jsx(MW,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=i.target;n.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),MW=se.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:x,onInteractOutside:T,...M}=e,I=Nh(A2,n),O=If(n);return lee(),m.jsx(yU,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:m.jsx(dU,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:T,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:x,onDismiss:()=>I.onOpenChange(!1),children:m.jsx(Bte,{"data-state":SW(I.open),role:"dialog",id:I.contentId,...O,...M,ref:t,style:{...M.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),CW="PopoverClose",TW=se.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Nh(CW,n);return m.jsx(ac.button,{type:"button",...r,ref:t,onClick:Vu(e.onClick,()=>a.onOpenChange(!1))})});TW.displayName=CW;var Vne="PopoverArrow",_ne=se.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=If(n);return m.jsx(Vte,{...a,...r,ref:t})});_ne.displayName=Vne;function SW(e){return e?"open":"closed"}var Une=mW,Wne=bW,Yne=xW,LW=wW,Zne=TW;const IW=de.createContext({portalContainer:null}),AW=()=>de.useContext(IW).portalContainer,zh=Une,Hh=Wne,L0=Zne,Zu=se.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},a)=>{const i=AW();return m.jsx(Yne,{container:i,children:m.jsx(LW,{ref:a,align:t,sideOffset:n,"data-slot":"popover-content",className:je("z-50 w-72 rounded-lg border bg-popover p-4 text-popover-foreground shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...r})})});Zu.displayName=LW.displayName;const EW=6048e5,Gne=864e5,PW=Symbol.for("constructDateFrom");function gl(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&PW in e?e[PW](t):e instanceof Date?new e.constructor(t):new Date(t)}function Gi(e,t){return gl(t||e,e)}function RW(e,t,n){const r=Gi(e,n?.in);if(isNaN(t))return gl(e,NaN);if(!t)return r;const a=r.getDate(),i=gl(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const c=i.getDate();return a>=c?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}let jne={};function Af(){return jne}function E2(e,t){const n=Af(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Gi(e,t?.in),i=a.getDay(),c=(i<r?7:0)+i-r;return a.setDate(a.getDate()-c),a.setHours(0,0,0,0),a}function tF(e,t){return E2(e,{...t,weekStartsOn:1})}function FW(e,t){const n=Gi(e,t?.in),r=n.getFullYear(),a=gl(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const i=tF(a),c=gl(n,0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);const y=tF(c);return n.getTime()>=i.getTime()?r+1:n.getTime()>=y.getTime()?r:r-1}function OW(e){const t=Gi(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 nF(e,...t){const n=gl.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function rF(e,t){const n=Gi(e,t?.in);return n.setHours(0,0,0,0),n}function Xne(e,t,n){const[r,a]=nF(n?.in,e,t),i=rF(r),c=rF(a),y=+i-OW(i),b=+c-OW(c);return Math.round((y-b)/Gne)}function Kne(e,t){const n=FW(e,t),r=gl(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),tF(r)}function Jne(e){return gl(e,Date.now())}function DW(e,t,n){const[r,a]=nF(n?.in,e,t);return+rF(r)==+rF(a)}function Qne(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function qne(e){return!(!Qne(e)&&typeof e!="number"||isNaN(+Gi(e)))}function $ne(e,t){const n=Gi(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function ere(e,t){const[n,r]=nF(e,t.start,t.end);return{start:n,end:r}}function tre(e,t){const{start:n,end:r}=ere(t?.in,e);let a=+n>+r;const i=a?+n:+r,c=a?r:n;c.setHours(0,0,0,0);let y=1;const b=[];for(;+c<=i;)b.push(gl(n,c)),c.setDate(c.getDate()+y),c.setHours(0,0,0,0);return a?b.reverse():b}function aF(e,t){const n=Gi(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function nre(e,t){const n=Gi(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function rre(e,t){const n=Af(),r=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Gi(e,t?.in),i=a.getDay(),c=(i<r?-7:0)+6-(i-r);return a.setDate(a.getDate()+c),a.setHours(23,59,59,999),a}const are={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ore=(e,t,n)=>{let r;const a=are[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function $D(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ire={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sre={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lre={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cre={date:$D({formats:ire,defaultWidth:"full"}),time:$D({formats:sre,defaultWidth:"full"}),dateTime:$D({formats:lre,defaultWidth:"full"})},dre={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ure=(e,t,n,r)=>dre[e];function Ef(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,y=n?.width?String(n.width):c;a=e.formattingValues[y]||e.formattingValues[c]}else{const c=e.defaultWidth,y=n?.width?String(n.width):e.defaultWidth;a=e.values[y]||e.values[c]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const hre={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fre={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pre={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"]},yre={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"]},gre={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"}},mre={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"}},vre={ordinalNumber:(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"},era:Ef({values:hre,defaultWidth:"wide"}),quarter:Ef({values:fre,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ef({values:pre,defaultWidth:"wide"}),day:Ef({values:yre,defaultWidth:"wide"}),dayPeriod:Ef({values:gre,defaultWidth:"wide",formattingValues:mre,defaultFormattingWidth:"wide"})};function Pf(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const c=i[0],y=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],b=Array.isArray(y)?bre(y,M=>M.test(c)):kre(y,M=>M.test(c));let x;x=e.valueCallback?e.valueCallback(b):b,x=n.valueCallback?n.valueCallback(x):x;const T=t.slice(c.length);return{value:x,rest:T}}}function kre(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function bre(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function xre(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let c=e.valueCallback?e.valueCallback(i[0]):i[0];c=n.valueCallback?n.valueCallback(c):c;const y=t.slice(a.length);return{value:c,rest:y}}}const wre=/^(\d+)(th|st|nd|rd)?/i,Mre=/\d+/i,Cre={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},Tre={any:[/^b/i,/^(a|c)/i]},Sre={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Lre={any:[/1/i,/2/i,/3/i,/4/i]},Ire={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},Are={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]},Ere={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},Pre={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]},Rre={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},Fre={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}},Ore={ordinalNumber:xre({matchPattern:wre,parsePattern:Mre,valueCallback:e=>parseInt(e,10)}),era:Pf({matchPatterns:Cre,defaultMatchWidth:"wide",parsePatterns:Tre,defaultParseWidth:"any"}),quarter:Pf({matchPatterns:Sre,defaultMatchWidth:"wide",parsePatterns:Lre,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Pf({matchPatterns:Ire,defaultMatchWidth:"wide",parsePatterns:Are,defaultParseWidth:"any"}),day:Pf({matchPatterns:Ere,defaultMatchWidth:"wide",parsePatterns:Pre,defaultParseWidth:"any"}),dayPeriod:Pf({matchPatterns:Rre,defaultMatchWidth:"any",parsePatterns:Fre,defaultParseWidth:"any"})},Dre={code:"en-US",formatDistance:ore,formatLong:cre,formatRelative:ure,localize:vre,match:Ore,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nre(e,t){const n=Gi(e,t?.in);return Xne(n,nre(n))+1}function zre(e,t){const n=Gi(e,t?.in),r=+tF(n)-+Kne(n);return Math.round(r/EW)+1}function NW(e,t){const n=Gi(e,t?.in),r=n.getFullYear(),a=Af(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=gl(t?.in||e,0);c.setFullYear(r+1,0,i),c.setHours(0,0,0,0);const y=E2(c,t),b=gl(t?.in||e,0);b.setFullYear(r,0,i),b.setHours(0,0,0,0);const x=E2(b,t);return+n>=+y?r+1:+n>=+x?r:r-1}function Hre(e,t){const n=Af(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=NW(e,t),i=gl(t?.in||e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),E2(i,t)}function Bre(e,t){const n=Gi(e,t?.in),r=+E2(n,t)-+Hre(n,t);return Math.round(r/EW)+1}function $n(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Bh={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return $n(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):$n(n+1,2)},d(e,t){return $n(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];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return $n(e.getHours()%12||12,t.length)},H(e,t){return $n(e.getHours(),t.length)},m(e,t){return $n(e.getMinutes(),t.length)},s(e,t){return $n(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return $n(a,t.length)}},P2={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zW={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"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return Bh.y(e,t)},Y:function(e,t,n,r){const a=NW(e,r),i=a>0?a:1-a;if(t==="YY"){const c=i%100;return $n(c,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):$n(i,t.length)},R:function(e,t){const n=FW(e);return $n(n,t.length)},u:function(e,t){const n=e.getFullYear();return $n(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 $n(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"});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 $n(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"});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 Bh.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"});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 $n(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"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Bre(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):$n(a,t.length)},I:function(e,t,n){const r=zre(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):$n(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Bh.d(e,t)},D:function(e,t,n){const r=Nre(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):$n(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"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return $n(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return $n(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return $n(a,t.length);case"io":return n.ordinalNumber(a,{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"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=P2.noon:r===0?a=P2.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=P2.evening:r>=12?a=P2.afternoon:r>=4?a=P2.morning:a=P2.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{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 Bh.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Bh.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):$n(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):$n(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Bh.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Bh.s(e,t)},S:function(e,t){return Bh.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return BW(r);case"XXXX":case"XX":return I0(r);default:return I0(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return BW(r);case"xxxx":case"xx":return I0(r);default:return I0(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+HW(r,":");default:return"GMT"+I0(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+HW(r,":");default:return"GMT"+I0(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return $n(r,t.length)},T:function(e,t,n){return $n(+e,t.length)}};function HW(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+$n(i,2)}function BW(e,t){return e%60===0?(e>0?"-":"+")+$n(Math.abs(e)/60,2):I0(e,t)}function I0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=$n(Math.trunc(r/60),2),i=$n(r%60,2);return n+a+t+i}const VW=(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"});default:return t.date({width:"full"})}},_W=(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"});default:return t.time({width:"full"})}},Vre={p:_W,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return VW(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",VW(r,t)).replace("{{time}}",_W(a,t))}},_re=/^D+$/,Ure=/^Y+$/,Wre=["D","DD","YY","YYYY"];function Yre(e){return _re.test(e)}function Zre(e){return Ure.test(e)}function Gre(e,t,n){const r=jre(e,t,n);if(console.warn(r),Wre.includes(e))throw new RangeError(r)}function jre(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 Xre=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kre=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Jre=/^'([^]*?)'?$/,Qre=/''/g,qre=/[a-zA-Z]/;function UW(e,t,n){const r=Af(),a=r.locale??Dre,i=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,c=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,y=Gi(e,n?.in);if(!qne(y))throw new RangeError("Invalid time value");let b=t.match(Kre).map(T=>{const M=T[0];if(M==="p"||M==="P"){const I=Vre[M];return I(T,a.formatLong)}return T}).join("").match(Xre).map(T=>{if(T==="''")return{isToken:!1,value:"'"};const M=T[0];if(M==="'")return{isToken:!1,value:$re(T)};if(zW[M])return{isToken:!0,value:T};if(M.match(qre))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:T}});a.localize.preprocessor&&(b=a.localize.preprocessor(y,b));const x={firstWeekContainsDate:i,weekStartsOn:c,locale:a};return b.map(T=>{if(!T.isToken)return T.value;const M=T.value;(Zre(M)||Yre(M))&&Gre(M,t,String(e));const I=zW[M[0]];return I(y,M,a.localize,x)}).join("")}function $re(e){const t=e.match(Jre);return t?t[1].replace(Qre,"'"):e}function eae(e,t,n){const[r,a]=nF(n?.in,e,t);return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()}function tae(e,t){return DW(gl(e,e),Jne(e))}function nae(e,t,n){return RW(e,-1,n)}var rae=Symbol.for("react.lazy"),oF=se[" use ".trim().toString()];function aae(e){return typeof e=="object"&&e!==null&&"then"in e}function WW(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===rae&&"_payload"in e&&aae(e._payload)}function oae(e){const t=sae(e),n=se.forwardRef((r,a)=>{let{children:i,...c}=r;WW(i)&&typeof oF=="function"&&(i=oF(i._payload));const y=se.Children.toArray(i),b=y.find(cae);if(b){const x=b.props.children,T=y.map(M=>M===b?se.Children.count(x)>1?se.Children.only(null):se.isValidElement(x)?x.props.children:null:M);return m.jsx(t,{...c,ref:a,children:se.isValidElement(x)?se.cloneElement(x,void 0,T):null})}return m.jsx(t,{...c,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var iae=oae("Slot");function sae(e){const t=se.forwardRef((n,r)=>{let{children:a,...i}=n;if(WW(a)&&typeof oF=="function"&&(a=oF(a._payload)),se.isValidElement(a)){const c=uae(a),y=dae(i,a.props);return a.type!==se.Fragment&&(y.ref=r?ID(r,c):c),se.cloneElement(a,y)}return se.Children.count(a)>1?se.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lae=Symbol("radix.slottable");function cae(e){return se.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lae}function dae(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...y)=>{const b=i(...y);return a(...y),b}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function uae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const YW=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ZW=p_,hae=((e,t)=>n=>{var r;if(t?.variants==null)return ZW(e,n?.class,n?.className);const{variants:a,defaultVariants:i}=t,c=Object.keys(a).map(x=>{const T=n?.[x],M=i?.[x];if(T===null)return null;const I=YW(T)||YW(M);return a[x][I]}),y=n&&Object.entries(n).reduce((x,T)=>{let[M,I]=T;return I===void 0||(x[M]=I),x},{}),b=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((x,T)=>{let{class:M,className:I,...O}=T;return Object.entries(O).every(N=>{let[D,H]=N;return Array.isArray(H)?H.includes({...i,...y}[D]):{...i,...y}[D]===H})?[...x,M,I]:x},[]);return ZW(e,c,b,n?.class,n?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Rf=se.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},i)=>{const c=r?iae:"button";return m.jsx(c,{className:je(hae({variant:t,size:n,className:e})),ref:i,...a})});Rf.displayName="Button";function GW({className:e,selected:t,onSelect:n,disabled:r}){const[a,i]=se.useState(()=>aF(t||new Date)),c=["Su","Mo","Tu","We","Th","Fr","Sa"],y=aF(a),b=$ne(a),x=E2(y),T=rre(b),M=tre({start:x,end:T}),I=()=>{i(nae(a))},O=()=>{i(RW(a,1))},N=D=>{r?.(D)||n?.(D)};return m.jsxs("div",{"data-slot":"calendar",className:je("bg-popover p-3 w-[280px] select-none",e),children:[m.jsxs("div",{className:"flex items-center justify-between mb-3",children:[m.jsx(Rf,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-accent rounded-full",onClick:I,type:"button",children:m.jsx(bf,{className:"h-4 w-4"})}),m.jsx("span",{className:"text-sm font-semibold text-foreground",children:UW(a,"MMMM yyyy")}),m.jsx(Rf,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-accent rounded-full",onClick:O,type:"button",children:m.jsx(xf,{className:"h-4 w-4"})})]}),m.jsx("div",{className:"grid grid-cols-7 mb-2",children:c.map(D=>m.jsx("div",{className:"h-8 flex items-center justify-center text-xs font-medium text-muted-foreground",children:D},D))}),m.jsx("div",{className:"grid grid-cols-7 gap-0.5",children:M.map((D,H)=>{const _=eae(D,a),X=t&&DW(D,t),K=tae(D),te=r?.(D);return m.jsx("button",{type:"button",onClick:()=>N(D),disabled:te,className:je("h-8 w-8 mx-auto rounded-full text-sm font-normal transition-all duration-150","hover:bg-accent hover:text-accent-foreground","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1","active:scale-95",!_&&"text-muted-foreground/40",K&&!X&&"bg-accent text-accent-foreground font-semibold ring-1 ring-primary/30",X&&"bg-primary text-primary-foreground font-semibold shadow-sm hover:bg-primary/90 hover:text-primary-foreground",te&&"pointer-events-none opacity-30"),children:UW(D,"d")},H)})}),m.jsx("div",{className:"mt-3 pt-3 border-t border-border",children:m.jsx(Rf,{variant:"ghost",size:"sm",type:"button",className:"w-full text-xs font-medium text-muted-foreground hover:text-foreground",onClick:()=>{const D=new Date;i(aF(D)),n?.(D)},children:"Today"})})]})}const iF=({type:e,date:t,label:n,icon:r,className:a,prefix:i="",onUpdate:c,task:y})=>{const[b,x]=de.useState(()=>{if(!t)return;const X=pt.fromISO(t);return X.isValid?X.toJSDate():void 0}),[T,M]=de.useState(()=>{if(!t)return"00:00";const X=pt.fromISO(t);return X.isValid?X.toFormat("HH:mm"):"00:00"}),I=e==="startAt"||e==="createdAt"||e==="completedAt",O=e.endsWith("At")?e.slice(0,e.length-2).toUpperCase():"",N=X=>{x(X)},D=X=>{M(X.target.value)},H=()=>{let X="";if(b){let te=pt.fromJSDate(b);if(I&&T){const[J,ne]=T.split(":").map(Number);te=te.set({hour:J,minute:ne})}X=I?te.toISO()||"":te.toISODate()||""}c({...y,[e==="dueDate"?"dueAt":e]:X})},_={dueDate:"Change Due Date",startAt:"Change Start Date",createdAt:"Change Created Date",completedAt:"Change Completed Date"};return m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs("button",{className:a,title:_[e],children:[m.jsx(He,{name:r,size:10,className:"shrink-0"}),m.jsxs("span",{className:"font-mono truncate",children:[i,n]})]})}),m.jsx(Zu,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-auto p-0",children:m.jsxs(so,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:[m.jsx(GW,{mode:"single",selected:b,onSelect:N}),I&&m.jsxs("div",{className:"border-t border-border px-3 py-2",children:[m.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Time"}),m.jsx("input",{type:"time",value:T,onChange:D,className:je("w-full px-3 py-2 bg-background border border-input rounded-md text-sm","focus:ring-2 focus:ring-ring focus:border-ring outline-none")})]}),m.jsx("div",{className:"border-t border-border p-2",children:m.jsx(L0,{asChild:!0,children:m.jsxs("button",{onClick:H,className:je("w-full text-primary text-xs font-semibold py-2 rounded-md","hover:bg-accent transition-colors"),children:["Save ",O," date"]})})})]})})]})},fae=({tag:e,badgeClass:t,task:n,onUpdate:r})=>m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs("button",{className:je(t,"text-blue-600 bg-blue-50/80 border-blue-100/50 hover:bg-rose-50 hover:text-rose-600 hover:border-rose-100 transition-colors"),title:"Click to remove",children:[m.jsx(He,{name:"Tag",size:10,className:"shrink-0"}),m.jsx("span",{className:"truncate",children:e.name})]})}),m.jsx(Zu,{side:"top",align:"center",sideOffset:4,className:"z-9999 outline-none w-auto p-0",children:m.jsx(so,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"p-1",children:m.jsx(L0,{asChild:!0,children:m.jsxs("button",{onClick:()=>r({...n,tags:n.tags.filter(a=>a.id!==e.id)}),className:"flex items-center gap-1.5 text-xs text-rose-600! px-2 py-1 rounded hover:bg-rose-50",children:[m.jsx(He,{name:"Trash",size:12}),"Remove Tag"]})})})})]}),pae=({task:e,badgeClass:t,onUpdate:n})=>{const r=e.priority;let a="text-slate-600 bg-slate-100 border-slate-200";return r==="high"&&(a="text-rose-700 bg-rose-100 border-rose-200"),r==="medium"&&(a="text-amber-700 bg-amber-100 border-amber-200"),m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs("button",{className:je(t,a),title:"Change Priority",children:[m.jsx(He,{name:"Flag",size:10,strokeWidth:r==="high"?3:2}),m.jsx("span",{className:"capitalize",children:r})]})}),m.jsx(Zu,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-auto p-1",children:m.jsx(so,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"flex flex-col gap-1",children:["high","medium","low"].map(i=>m.jsx(L0,{asChild:!0,children:m.jsx("button",{onClick:()=>n({...e,priority:i}),children:m.jsxs("div",{className:je("flex items-center gap-2 px-2 py-1.5 text-xs rounded-md text-left transition-colors justify-start! hover:bg-slate-300",e.priority===i?"bg-rose-300 font-bold":"hover:opacity-80 text-slate-600"),children:[m.jsx(He,{name:"Flag",size:10,className:i==="high"?"text-rose-500":i==="medium"?"text-amber-500":"text-slate-400"}),m.jsx("span",{className:"capitalize",children:i})]})})},i))})})]})},yae=({task:e,onUpdate:t,availableCategories:n,badgeClass:r})=>{const[a,i]=de.useState(e.category||""),c=n.filter(y=>y.toLowerCase().includes(a.toLowerCase())&&y!==a).slice(0,5)||[];return m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs("button",{className:je(r,"text-slate-600 bg-slate-100 border-slate-200"),title:"Change Category",children:[m.jsx(He,{name:"Folder",size:10}),m.jsx("span",{children:e.category||"No Category"})]})}),m.jsx(Zu,{side:"bottom",align:"start",sideOffset:4,className:"z-9999 outline-none w-48 p-2",children:m.jsxs(so,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:[m.jsx("input",{autoFocus:!0,value:a,onChange:y=>i(y.target.value),onKeyDown:y=>{y.key==="Enter"&&t({...e,category:a})},className:"w-full text-xs border border-slate-200 rounded px-2 py-1 mb-2 focus:ring-2 focus:ring-blue-500/20 outline-none",placeholder:"Category name..."}),m.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.map(y=>m.jsx(L0,{asChild:!0,children:m.jsxs("button",{onClick:()=>t({...e,category:y}),className:"text-left px-2 py-1.5 text-xs text-slate-600 hover:opacity-80 rounded flex items-center gap-2 justify-start!",children:[m.jsx(He,{name:"Folder",size:10,className:"opacity-50"}),y]})},y)),m.jsx(L0,{asChild:!0,children:m.jsxs("button",{onClick:()=>t({...e,category:a}),className:"text-center px-2 py-1.5 text-xs text-blue-600! hover:opacity-80 rounded font-medium mt-1",children:['Set to "',a,'"']})})]})]})})]})},jW=de.createContext(void 0);function sF(){const e=de.useContext(jW);if(!e)throw new Error("useTasksContext must be used within TasksProvider");return e}function gae({children:e,value:t}){return m.jsx(jW.Provider,{value:t,children:e})}const XW=de.createContext(void 0);function R2(){const e=de.useContext(XW);if(!e)throw new Error("useSettingsContext must be used within SettingsProvider");return e}function mae({children:e,value:t}){return m.jsx(XW.Provider,{value:t,children:e})}const lF=e=>e?pt.fromISO(e).isValid:!1,eN=({task:e,dateValidation:t})=>{const{onUpdateTask:n,onDeleteTask:r,onEditTask:a,availableCategories:i,onItemClick:c,renderTitle:y}=sF(),{settings:b}=R2(),[x,T]=de.useState(!1),[M,I]=de.useState(e.title),[O,N]=de.useState(!1),D=de.useRef(null),H=de.useRef(null),_=e.status==="done",X=e.status==="cancelled",K=Rh(),te=!_&&!X&&e.priority==="high"&&(e.status==="overdue"||e.status==="due"||e.dueAt&&e.dueAt<=K),J={sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl"}[b.fontSize]||"text-sm",ne={sm:"mt-0.5",base:"mt-0.5",lg:"mt-1",xl:"mt-1.5"}[b.fontSize]||"mt-0.5",ue={sm:"text-[10px]",base:"text-[11px]",lg:"text-xs",xl:"text-sm"}[b.fontSize]||"text-[11px]";de.useEffect(()=>{x&&H.current&&H.current.focus()},[x]);const ye=fe=>{const Se=pt.now().toISO(),Oe={status:fe};(fe==="doing"||fe==="scheduled")&&!e.startAt&&e.status==="todo"&&(Oe.startAt=Se||void 0),fe==="done"&&!e.completedAt&&(Oe.completedAt=Se||void 0),fe==="cancelled"&&!e.cancelledAt&&(Oe.cancelledAt=Se||void 0),n({...e,...Oe})},Ee=()=>{M.trim()?n({...e,title:M}):I(e.title),T(!1)},Ve=fe=>{fe.key==="Enter"&&Ee(),fe.key==="Escape"&&(I(e.title),T(!1))},tt=()=>{O?(r(e.id),D.current&&window.clearTimeout(D.current)):(N(!0),D.current=window.setTimeout(()=>{N(!1)},2e3))},st=(fe,Se)=>Se==="done"||Se==="cancelled"?"text-emerald-600 bg-emerald-50 border-emerald-200":fe?Se==="overdue"||fe<K?"text-rose-600 bg-rose-50 border-rose-200":fe===K?"text-amber-600 bg-amber-50 border-amber-200":"text-emerald-600 bg-emerald-50 border-emerald-200":"text-slate-400",Be=fe=>{switch(fe){case"done":return"bg-emerald-500";case"doing":return"bg-sky-500";case"scheduled":return"bg-blue-500";case"due":return"bg-amber-500";case"overdue":return"bg-rose-500";case"cancelled":return"bg-slate-300";case"unplanned":return"bg-purple-500";default:return"bg-slate-200"}},Qe=fe=>{switch(fe){case"done":return"CheckCircle2";case"doing":return"PlayCircle";case"scheduled":return"Clock";case"due":return"AlertCircle";case"overdue":return"AlertTriangle";case"cancelled":return"XCircle";case"unplanned":return"Zap";default:return"Circle"}},Fe=fe=>{switch(fe){case"done":return"text-emerald-500";case"doing":return"text-sky-500";case"scheduled":return"text-blue-500";case"due":return"text-amber-500";case"overdue":return"text-rose-500";case"cancelled":return"text-slate-300";case"unplanned":return"text-purple-500";default:return"text-slate-300 group-hover:text-slate-400"}},ie=(fe,Se=16)=>m.jsx(He,{name:Qe(fe),size:Se,className:Fe(fe),strokeWidth:fe==="done"?2.5:2}),me=["todo","doing","scheduled","done","unplanned","due","overdue","cancelled"],Ce=e.dueAt?oU(e.dueAt):null,Lt=e.startAt?oU(e.startAt):null,ae=Ce||Lt,U="flex items-center gap-1 min-[400px]:gap-1.5 px-1.5 min-[400px]:px-2 h-4.5 min-[400px]:h-5 rounded-full border font-medium leading-none cursor-pointer hover:bg-slate-50 transition-colors select-none text-[length:inherit]";return m.jsxs(so,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,height:0},className:je("group relative flex items-stretch gap-1 min-[400px]:gap-1.5 sm:gap-2 pb-1.5 pt-0.5 px-0.5 sm:px-1 transition-all rounded-lg",(_||X)&&"opacity-60",te?"bg-rose-50/60 border border-rose-100 shadow-sm shadow-rose-100/50 hover:bg-rose-100/50 mb-1":"hover:bg-slate-50 border border-transparent"),children:[m.jsxs("div",{className:je("relative flex flex-col items-center shrink-0","w-4 min-[400px]:w-5 sm:w-6",ne),children:[m.jsx("div",{className:je("absolute -top-1 h-6.5 w-px left-1/2 -translate-x-1/2 group-first:hidden","bg-slate-200")}),m.jsx("div",{className:je("absolute top-5 -bottom-1 w-px left-1/2 -translate-x-1/2",Be(e.status))}),m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsx("button",{className:je("relative z-10 w-6 h-6 flex items-center justify-center transition-transform active:scale-90 outline-none focus:ring-2 focus:ring-slate-200 rounded-full",te?"bg-rose-50 hover:bg-rose-100 shadow-sm":"bg-white hover:bg-slate-50"),title:`Change Status (Current: ${e.status})`,children:ie(e.status,18)})}),m.jsx(Zu,{side:"bottom",align:"start",sideOffset:5,collisionPadding:10,className:"z-9999 outline-none w-44 p-1.5",children:m.jsx(so,{initial:{opacity:0,scale:.9,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:-5},transition:{duration:.15},children:m.jsxs("div",{className:"flex flex-col gap-0.5",children:[me.map(fe=>m.jsx(L0,{asChild:!0,children:m.jsx("button",{onClick:()=>ye(fe),children:m.jsxs("div",{className:je("w-full flex items-center gap-2.5 px-3 py-2 text-xs font-medium font-mono rounded-lg transition-all hover:bg-slate-300 text-left outline-none","justify-start! text-left!",e.status===fe?"bg-slate-200/60 text-slate-900 font-semibold":"text-slate-600 hover:text-slate-900 hover:opacity-80 active:scale-[0.98]"),children:[m.jsx("div",{className:je("shrink-0",e.status===fe?"opacity-100":"opacity-70"),children:ie(fe,14)}),m.jsx("span",{className:"capitalize",children:fe})]})})},fe)),m.jsx("div",{className:"h-px bg-slate-100 my-1 mx-1"}),m.jsx(L0,{asChild:!0,children:m.jsx("button",{onClick:()=>a?.(e),children:m.jsxs("div",{className:"w-full flex items-center justify-start! gap-2 px-3 py-2 text-xs font-medium text-slate-600 hover:text-blue-600 hover:opacity-80 hover:bg-slate-300 transition-all text-left outline-none rounded-lg",children:[m.jsx(He,{name:"Pencil",size:14,className:"opacity-70"}),m.jsx("span",{children:"Edit Details"})]})})})]})})})]})]}),m.jsxs("div",{className:je("flex-1 min-w-0 pt-0.5",ae?"pr-16 sm:pr-20":"pr-6 sm:pr-8"),children:[m.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 min-h-5.5 mb-0.5",children:[x?m.jsx("input",{ref:H,value:M,onChange:fe=>I(fe.target.value),onBlur:Ee,onKeyDown:Ve,className:je("flex-1 min-w-0 bg-transparent border-b border-blue-400 focus:outline-none font-medium text-slate-800 pb-0.5",J)}):m.jsx(m.Fragment,{children:m.jsx(OR,{onClick:()=>T(!0),className:je("font-medium leading-tight text-slate-800 transition-all cursor-text text-left border-none bg-transparent p-0 appearance-none font-inherit truncate flex-1 min-w-0",J,_&&"line-through text-slate-500 decoration-slate-300",X&&"line-through text-slate-400 decoration-slate-300",te&&"text-rose-700 font-semibold"),children:y?y(e.title):e.title})}),!x&&m.jsx(OR,{whileHover:{scale:1.1},onClick:()=>T(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity text-slate-300 hover:text-blue-500 p-1 shrink-0 bg-transparent border-none",children:m.jsx(He,{name:"Pencil",size:12})})]}),m.jsxs("div",{className:je("flex flex-wrap items-center gap-1 min-[400px]:gap-1.5 sm:gap-2 font-medium text-slate-500",ue),onClick:fe=>{c&&fe.target===fe.currentTarget&&c?.(e)},children:[m.jsx(pae,{task:e,onUpdate:n,badgeClass:U}),t&&(t.hasInvalidDates?m.jsxs("div",{className:"flex items-center gap-1.5 px-2 h-5 rounded-full border font-medium leading-none text-rose-600 bg-rose-50 border-rose-200",title:"One or more dates have an invalid format",children:[m.jsx(He,{name:"AlertTriangle",size:10}),m.jsx("span",{className:"text-[10px]",children:"Invalid Date"})]}):t.hasMissingDates?m.jsxs("div",{className:"flex items-center gap-1.5 px-2 h-5 rounded-full border font-medium leading-none text-amber-600 bg-amber-50 border-amber-200",title:"This task has no dates set",children:[m.jsx(He,{name:"AlertCircle",size:10}),m.jsx("span",{className:"text-[10px]",children:"No Dates"})]}):null),e.category&&m.jsx(yae,{task:e,onUpdate:n,badgeClass:U,availableCategories:i}),!b.groupingStrategy.includes("createdAt")&&lF(e.createdAt)&&m.jsx(iF,{type:"createdAt",date:e.createdAt,label:PR(e.createdAt,b.useRelativeDates,b.dateFormat),task:e,onUpdate:n,icon:"Plus",className:je(U,"text-slate-500 bg-slate-50 border-slate-200","hidden min-[400px]:flex")}),lF(e.startAt)&&m.jsx(iF,{type:"startAt",date:e.startAt,label:PR(e.startAt,b.useRelativeDates,b.dateFormat),icon:"PlayCircle",task:e,onUpdate:n,className:je(U,"text-slate-500 bg-slate-50 border-slate-200")}),lF(e.dueAt)&&m.jsx(iF,{type:"dueDate",date:e.dueAt,label:`Due: ${PR(e.dueAt,b.useRelativeDates,b.dateFormat)}`,icon:"Calendar",task:e,onUpdate:n,className:je(U,st(e.dueAt,e.status))}),lF(e.completedAt)&&m.jsx(iF,{type:"completedAt",date:e.completedAt,label:`Done: ${PR(e.completedAt,b.useRelativeDates,b.dateFormat)}`,icon:"CheckCircle2",task:e,onUpdate:n,className:je(U,"text-emerald-600 bg-emerald-50 border-emerald-200")}),e.isRecurring&&e.recurringInterval&&m.jsxs("div",{className:je(U,"text-slate-500 bg-slate-100 border-slate-200 cursor-default"),title:z$(e.recurringInterval),children:[m.jsx(He,{name:"Repeat",size:10}),m.jsx("span",{className:"capitalize",children:"Recurring"})]}),e.tags.map((fe,Se)=>m.jsx(fae,{tag:fe,task:e,onUpdate:n,badgeClass:U},`${e.id}-tag-${Se}`))]}),e.description&&m.jsxs("div",{className:"mt-1 flex items-start gap-1.5 text-slate-400",children:[m.jsx(He,{name:"FileText",size:10,className:"mt-0.5 shrink-0"}),m.jsx("p",{className:je("leading-relaxed line-clamp-2",ue),children:e.description})]})]}),ae&&m.jsx("div",{className:"absolute right-8 top-3 text-[10px] font-mono font-bold text-slate-400 bg-slate-50 border border-slate-100 px-1.5 py-0.5 rounded-md",children:ae}),m.jsx(OR,{onClick:tt,className:je("absolute top-2 right-1 p-1.5 rounded-md transition-all",O?"bg-rose-100 text-rose-600 opacity-100":"text-slate-300 opacity-0 group-hover:opacity-100 hover:text-rose-500 hover:bg-slate-100"),whileHover:{scale:1.1},whileTap:{scale:.9},title:O?"Click again to confirm delete":"Delete task",children:m.jsx(He,{name:O?"Trash2":"Trash",size:14})})]})},tN=(e,t,n)=>{const[r,a]=de.useState(!1),[i,c]=de.useState(null),y=de.useCallback(()=>{if(!e.enabled){Mt.warn("Voice","Voice input is disabled in settings");return}let x=null;switch(e.activeProvider){case"browser":x=new W$;break;case"openai":x=new Y$(e.providers.openai);break;case"gemini":x=new Z$(e.providers.gemini);break;default:n(`Unknown voice provider: ${e.activeProvider}`);return}if(!x.isAvailable()){n(`${x.getName()} is not available in this browser.`),Mt.error("Voice",`Provider ${x.getName()} is not available`);return}Mt.info("Voice",`Starting ${x.getName()}...`,{language:e.language||navigator.language}),a(!0);const T=O=>{Mt.info("Voice","Transcription received",{text:O.transcript,confidence:O.confidence}),a(!1),t(O.transcript)},M=O=>{Mt.error("Voice","Voice input error",O),a(!1),n(O.message)},I=x.start(e.language,T,M);c(()=>I)},[e,t,n]),b=de.useCallback(()=>{i&&(i(),c(null)),a(!1)},[i]);return{isListening:r,start:y,stop:b}},vae=52;function nN(e,t={}){const{rootMargin:n="500px 0px",enabled:r=!0}=t,[a,i]=de.useState(!0),[c,y]=de.useState(null),b=de.useRef(null),x=de.useRef(null),T=de.useRef(null),M=e*vae,I=de.useCallback(()=>{x.current&&y(x.current.offsetHeight)},[]);de.useEffect(()=>{if(!r)return;const D=b.current;if(D)return T.current=new IntersectionObserver(([H])=>{const _=H.isIntersecting;_||I(),i(_)},{rootMargin:n}),T.current.observe(D),()=>{T.current?.disconnect()}},[r,n,I]);const O=de.useCallback(D=>{b.current=D},[]),N=de.useCallback(D=>{x.current=D},[]);return{containerRef:O,contentRef:N,isNearViewport:a,placeholderHeight:c??M}}var cF="Collapsible",[kae]=AD(cF),[bae,rN]=kae(cF),aN=se.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:i,onOpenChange:c,...y}=e,[b,x]=nW({prop:r,defaultProp:a??!1,onChange:c,caller:cF});return m.jsx(bae,{scope:n,disabled:i,contentId:bU(),open:b,onOpenToggle:se.useCallback(()=>x(T=>!T),[x]),children:m.jsx(ac.div,{"data-state":iN(b),"data-disabled":i?"":void 0,...y,ref:t})})});aN.displayName=cF;var KW="CollapsibleTrigger",JW=se.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,a=rN(KW,n);return m.jsx(ac.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":iN(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:Vu(e.onClick,a.onOpenToggle)})});JW.displayName=KW;var oN="CollapsibleContent",QW=se.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=rN(oN,e.__scopeCollapsible);return m.jsx(ZR,{present:n||a.open,children:({present:i})=>m.jsx(xae,{...r,ref:t,present:i})})});QW.displayName=oN;var xae=se.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:a,...i}=e,c=rN(oN,n),[y,b]=se.useState(r),x=se.useRef(null),T=_u(t,x),M=se.useRef(0),I=M.current,O=se.useRef(0),N=O.current,D=c.open||y,H=se.useRef(D),_=se.useRef(void 0);return se.useEffect(()=>{const X=requestAnimationFrame(()=>H.current=!1);return()=>cancelAnimationFrame(X)},[]),Uu(()=>{const X=x.current;if(X){_.current=_.current||{transitionDuration:X.style.transitionDuration,animationName:X.style.animationName},X.style.transitionDuration="0s",X.style.animationName="none";const K=X.getBoundingClientRect();M.current=K.height,O.current=K.width,H.current||(X.style.transitionDuration=_.current.transitionDuration,X.style.animationName=_.current.animationName),b(r)}},[c.open,r]),m.jsx(ac.div,{"data-state":iN(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!D,...i,ref:T,style:{"--radix-collapsible-content-height":I?`${I}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:D&&a})});function iN(e){return e?"open":"closed"}var qW=aN;const wae=Object.freeze(Object.defineProperty({__proto__:null,Collapsible:aN,CollapsibleContent:QW,CollapsibleTrigger:JW,Root:qW},Symbol.toStringTag,{value:"Module"})),sN=qW,{CollapsibleTrigger:lN}=wae,cN=({group:e,lazy:t=!0})=>{const{containerRef:n,contentRef:r,isNearViewport:a,placeholderHeight:i}=nN(e.tasks.length,{enabled:t}),{onAddTask:c,onAICommand:y,availableCategories:b}=sF(),{settings:x,isAiMode:T,onVoiceError:M}=R2(),[I,O]=de.useState(!0),[N,D]=de.useState(!1),[H,_]=de.useState(""),[X,K]=de.useState(x.defaultCategory),[te,J]=de.useState(!1),ne=de.useRef(null);de.useEffect(()=>{N&&K(x.defaultCategory)},[N,x.defaultCategory]);const{isListening:ue,start:ye,stop:Ee}=tN(x.voiceConfig,U=>_(fe=>fe?`${fe} ${U}`:U),M),Ve=pt.fromISO(e.date),tt=Ve.toFormat("ccc"),st=Ve.weekday>5,Be=st?"text-rose-500 bg-rose-50 border-rose-100":"text-slate-600 bg-slate-50 border-slate-200",Qe=N$(e.date),Fe=Qe==="Today"||Qe==="Tomorrow"||Qe==="Yesterday",ie=Ve.toFormat(x.dateFormat);de.useEffect(()=>{N&&ne.current&&ne.current.focus()},[N]);const me=de.useMemo(()=>e.tasks.reduce((U,fe)=>(fe.status==="done"?U.done++:fe.status==="overdue"||fe.status==="due"?U.urgent++:["todo","scheduled","unplanned"].includes(fe.status)&&U.open++,U),{done:0,urgent:0,open:0}),[e.tasks]),Ce=async()=>{if(!H.trim()){D(!1);return}J(!0);try{if(x.aiConfig.enabled&&T){const U=`Add task to ${e.date}: ${H} (Category: ${X})`;await y(U)}else c({title:H,dueAt:e.date,category:X});_("")}catch(U){console.error(U)}finally{J(!1)}},Lt=U=>{U.key==="Enter"&&Ce(),U.key==="Escape"&&(D(!1),_(""))},ae={sm:"mt-0.5",base:"mt-0.5",lg:"mt-1",xl:"mt-1.5"}[x.fontSize]||"mt-0.5";return m.jsx("div",{className:"mb-2 relative",children:m.jsxs(sN,{open:I,onOpenChange:O,children:[m.jsx(lN,{asChild:!0,children:m.jsxs("button",{className:"w-full flex items-center justify-between mb-1 sticky top-0 bg-paper/95 backdrop-blur-sm z-20 py-1.5 border-b border-dashed border-slate-200 group hover:border-slate-300 transition-colors text-left outline-none pl-2",children:[m.jsxs("div",{className:"flex items-center gap-3 sm:gap-4 overflow-hidden",children:[m.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[m.jsx(oo.div,{animate:{rotate:I?90:0},transition:{duration:.2},className:"text-slate-400",children:m.jsx(He,{name:"ChevronRight",size:14})}),m.jsxs("div",{className:"flex items-baseline gap-2",children:[Fe&&m.jsx("span",{className:"text-xs font-bold text-blue-600 font-mono uppercase tracking-tight",children:Qe}),m.jsx("h3",{className:`text-sm font-bold text-slate-800 font-mono tracking-tight group-hover:text-blue-600 transition-colors ${Fe?"opacity-60 font-normal":""}`,children:ie})]})]}),m.jsxs("div",{className:"flex items-center gap-2 shrink-0 opacity-80 group-hover:opacity-100 transition-opacity",children:[me.urgent>0&&m.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-rose-100/50 text-rose-600 border border-rose-200/50 shadow-sm shadow-rose-100",children:[m.jsx(He,{name:"AlertCircle",size:10,strokeWidth:2.5}),m.jsx("span",{className:"text-[10px] font-bold leading-none",children:me.urgent})]}),me.open>0&&m.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-slate-100 text-slate-500 border border-slate-200 shadow-sm shadow-slate-100",children:[m.jsx(He,{name:"Circle",size:10,strokeWidth:2.5}),m.jsx("span",{className:"text-[10px] font-bold leading-none",children:me.open})]}),me.done>0&&m.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-emerald-100/50 text-emerald-600 border border-emerald-200/50 shadow-sm shadow-emerald-100",children:[m.jsx(He,{name:"CheckCircle2",size:10,strokeWidth:2.5}),m.jsx("span",{className:"text-[10px] font-bold leading-none",children:me.done})]})]})]}),m.jsxs("div",{className:`flex flex-col items-center justify-center w-8 h-8 rounded-lg border ${Be} shadow-sm shrink-0 ml-2`,children:[m.jsx("span",{className:"text-[10px] font-bold uppercase leading-none",children:tt}),m.jsx("span",{className:"text-[10px] opacity-60 leading-none mt-0.5",children:e.tasks.length})]})]})}),m.jsx(oo.div,{initial:!1,animate:I?{height:"auto",opacity:1}:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:m.jsxs("div",{ref:n,className:"space-y-0.5 relative pb-2",children:[a?m.jsx("div",{ref:r,children:e.tasks.map(U=>m.jsx(eN,{task:U},U.id))}):m.jsx("div",{style:{height:i},className:"bg-slate-50/30 rounded"}),m.jsxs("div",{className:"group relative flex items-stretch gap-2 py-1.5 px-1 transition-all rounded-lg",children:[m.jsxs("div",{className:je("relative flex flex-col items-center shrink-0 w-6",ae),children:[e.tasks.length>0&&m.jsx("div",{className:"absolute -top-1 h-4 w-px left-1/2 -translate-x-1/2 bg-slate-200"}),m.jsx("button",{onClick:()=>D(!0),className:je("relative z-10 w-6 h-6 flex items-center justify-center rounded-full transition-all outline-none",N?T?"bg-purple-100 text-purple-600":"bg-blue-100 text-blue-600":"bg-white hover:bg-slate-100 text-slate-300 hover:text-blue-500"),children:te?m.jsx("div",{className:"animate-spin",children:m.jsx(He,{name:"Loader2",size:12})}):m.jsx(He,{name:T?"Sparkles":"Plus",size:14})})]}),m.jsx("div",{className:"flex-1 min-w-0 pt-0.5",children:N?m.jsxs(oo.div,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},className:"flex items-center gap-2",children:[m.jsx("input",{ref:ne,type:"text",value:H,onChange:U=>_(U.target.value),onKeyDown:Lt,onBlur:U=>{(!U.relatedTarget||!U.relatedTarget.closest(".add-row-actions"))&&(H||D(!1))},placeholder:ue?"Listening...":T?"Describe task for this day...":"Type a new task...",className:je("flex-1 bg-transparent border-b focus:outline-none text-sm py-0.5 transition-colors",T?"border-purple-300 focus:border-purple-500 placeholder:text-purple-300 text-purple-900":"border-blue-300 focus:border-blue-500"),disabled:te||ue}),m.jsxs("div",{className:"flex items-center gap-1 add-row-actions",children:[m.jsxs("div",{className:"relative group/cat",children:[m.jsx("input",{list:`cat-list-${e.date}`,className:"w-20 text-[10px] bg-slate-100 hover:bg-slate-200 border-none rounded px-1.5 py-0.5 text-slate-600 focus:bg-white focus:ring-1 focus:ring-blue-300 outline-none transition-all placeholder:text-slate-400 truncate",placeholder:"Category",value:X,onChange:U=>K(U.target.value),onFocus:()=>{},title:"Task Category"}),m.jsx("datalist",{id:`cat-list-${e.date}`,children:b.map(U=>m.jsx("option",{value:U},U))})]}),x.voiceConfig.enabled&&m.jsx("button",{onClick:ue?Ee:ye,className:je("p-1 rounded hover:bg-slate-100 transition-colors",ue&&"text-rose-500 animate-pulse"),tabIndex:-1,title:ue?"Stop Recording":"Start Voice Input",children:m.jsx(He,{name:ue?"Square":"Mic",size:14})})]})]}):m.jsx("button",{onClick:()=>D(!0),className:"text-left text-sm text-slate-400 hover:text-blue-500 transition-colors h-5.5 flex items-end font-medium",children:"Add task..."})})]})]})})]})})},$W=({group:e})=>{const{settings:t}=R2(),[n,r]=de.useState(!0),a=Math.round(e.completedTasks/e.totalTasks*100)||0;return m.jsx("div",{className:"mb-4",children:m.jsxs(sN,{open:n,onOpenChange:r,children:[m.jsx(lN,{asChild:!0,children:m.jsxs("button",{className:"w-full text-left mb-1.5 group outline-none",children:[m.jsxs("div",{className:"flex items-end justify-between mb-1",children:[m.jsxs("div",{className:"flex items-baseline gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(oo.div,{animate:{rotate:n?90:0},transition:{duration:.2},className:"text-slate-400",children:m.jsx(He,{name:"ChevronRight",size:20})}),m.jsx("h2",{className:"text-3xl font-black text-slate-800 tracking-tighter group-hover:text-blue-600 transition-colors",children:e.year})]}),m.jsxs("div",{className:"text-xs text-slate-400 font-mono hidden sm:inline-block",children:[m.jsx("span",{className:"text-rose-500 font-bold",children:e.totalTasks-e.completedTasks})," ","unfinished tasks in"," ",m.jsx("span",{className:"text-rose-500 font-bold",children:e.dayGroups.length})," ","active days."]})]}),m.jsx("div",{className:"flex items-center gap-2 pb-1",children:m.jsxs("span",{className:"text-[10px] text-slate-400 font-mono",children:[e.completedTasks," / ",e.totalTasks]})})]}),t.showProgressBar&&m.jsx("div",{className:"relative h-1.5 w-full bg-slate-100 rounded-full overflow-hidden",children:m.jsx(oo.div,{className:je("absolute top-0 left-0 h-full rounded-full",a===100?"bg-emerald-400":"bg-slate-800"),initial:{width:0},animate:{width:`${a}%`},transition:{duration:1,ease:"easeOut"}})})]})}),m.jsx(oo.div,{initial:!1,animate:n?{height:"auto",opacity:1}:{height:0,opacity:0},transition:{duration:.4,ease:"easeInOut"},className:"overflow-hidden",children:e.dayGroups.map(i=>m.jsx(cN,{group:i},i.date))})]})})},eY=({tasks:e,lazy:t=!0})=>{const{containerRef:n,contentRef:r,isNearViewport:a,placeholderHeight:i}=nN(e.length,{enabled:t}),{settings:c}=R2(),[y,b]=de.useState(!0);return m.jsx("div",{className:"mt-8 pt-4 border-t border-slate-100",children:m.jsxs(sN,{open:y,onOpenChange:b,children:[m.jsx(lN,{asChild:!0,children:m.jsxs("button",{className:"flex items-center gap-2 mb-4 pl-2 w-full group outline-none",children:[m.jsx(oo.div,{animate:{rotate:y?90:0},transition:{duration:.2},className:"text-slate-400",children:m.jsx(He,{name:"ChevronRight",size:14})}),m.jsx(He,{name:"Archive",size:14,className:"text-slate-400"}),m.jsx("h3",{className:"text-sm font-bold text-slate-500 uppercase tracking-wider group-hover:text-slate-700 transition-colors",children:"Backlog / Undated"}),m.jsx("span",{className:"text-xs bg-slate-100 text-slate-500 px-2 py-0.5 rounded-full font-mono",children:e.length})]})}),m.jsx(oo.div,{initial:!1,animate:y?{height:"auto",opacity:1}:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:m.jsx("div",{ref:n,className:"space-y-0.5",children:a?m.jsx("div",{ref:r,children:e.map(x=>m.jsx(eN,{task:x,dateValidation:H$(x,c.groupingStrategy)},x.id))}):m.jsx("div",{style:{height:i},className:"bg-slate-50/30 rounded"})})})]})})},tY=({className:e})=>{const{tasks:t}=sF(),{settings:n,isFocusMode:r}=R2(),{todayGroup:a,otherYearGroups:i,backlogTasks:c}=de.useMemo(()=>{const y=pt.now(),b=y.toISODate(),x=n.showCompleted?t:t.filter(_=>_.status!=="done"&&_.status!=="cancelled"),T=[],M=[],I=["dueAt","startAt","createdAt","completedAt"];x.forEach(_=>{I.some(K=>{const te=_[K];return te&&pt.fromISO(te).isValid})?T.push(_):M.push(_)});const O=B$(T,n.groupingStrategy);let N=null;const D=[];for(const _ of O){const X=_.dayGroups.find(K=>K.date===b);if(X){N=X;const K=_.dayGroups.filter(te=>te.date!==b);K.length>0&&D.push({..._,dayGroups:K})}else D.push(_)}return{todayGroup:N||{date:b,tasks:[]},otherYearGroups:D,backlogTasks:M}},[t,n.showCompleted,n.groupingStrategy]);return m.jsxs("div",{className:e,children:[m.jsxs("div",{className:"mb-5 pb-3 border-b-2 border-dashed border-slate-100/80",children:[m.jsx("div",{className:"flex items-center gap-2 mb-2 pl-2 opacity-60",children:m.jsxs("span",{className:"text-[10px] font-bold font-mono uppercase tracking-widest text-slate-400",children:["Current Focus",n.groupingStrategy.length===1&&n.groupingStrategy[0]!=="dueAt"?` (${n.groupingStrategy[0].replace("At","").replace("Date","")})`:""]})}),m.jsx(cN,{group:a,lazy:!1})]}),!r&&i.map(y=>m.jsx($W,{group:y},y.year)),!r&&c.length>0&&m.jsx(eY,{tasks:c}),!r&&i.length===0&&t.length>0&&!a.tasks.length&&c.length===0&&m.jsx("div",{className:"text-center text-slate-400 text-sm py-10",children:"No tasks visible based on current filters."}),r&&!a.tasks.length&&m.jsx("div",{className:"text-center text-slate-400 text-sm py-10",children:"Focus mode is on. No tasks for today."})]})},nY=()=>{const{onAddTask:e,onAICommand:t,availableTags:n,availableCategories:r}=sF(),{settings:a,filters:i,onFilterChange:c,sort:y,onSortChange:b,isAiMode:x,toggleAiMode:T,onVoiceError:M,onOpenSettings:I}=R2(),[O,N]=de.useState(""),[D,H]=de.useState(!1),{isListening:_,start:X,stop:K}=tN(a.voiceConfig,Be=>N(Qe=>Qe?`${Qe} ${Be}`:Be),M),te=a.aiConfig.enabled&&x,J=async()=>{if(!(!O.trim()||D)){H(!0);try{if(te)await t(O);else{const Be=V$(O);e(Be)}N("")}catch(Be){console.error("Failed to parse task",Be)}finally{H(!1)}}},ne=Be=>{Be.key==="Enter"&&J()},ue=(Be,Qe)=>{const Fe=i[Be],ie=Fe.include,me=ie.includes(Qe)?ie.filter(Ce=>Ce!==Qe):[...ie,Qe];c({...i,[Be]:{...Fe,include:me}})},ye=Be=>{c({...i,[Be]:{include:[],exclude:[]}})},Ee=Be=>{const Qe=i[Be];return Qe.include.length>0||Qe.exclude.length>0},Ve=Be=>{switch(Be){case"todo":return"Circle";case"doing":return"PlayCircle";case"done":return"CheckCircle2";case"scheduled":return"Clock";case"due":return"AlertCircle";case"overdue":return"AlertTriangle";case"cancelled":return"XCircle";case"unplanned":return"Zap";default:return"Circle"}},tt=Be=>{switch(Be){case"done":return"text-emerald-500";case"doing":return"text-sky-500";case"scheduled":return"text-blue-500";case"due":return"text-amber-500";case"overdue":return"text-rose-500";case"cancelled":return"text-slate-400";case"unplanned":return"text-purple-500";default:return"text-slate-400"}},st=Be=>{switch(Be){case"high":return"text-rose-500";case"medium":return"text-amber-500";case"low":return"text-blue-400"}};return m.jsx("div",{className:"pt-3 pb-1",children:m.jsxs("div",{className:"max-w-3xl mx-auto px-2 min-[400px]:px-4 sm:px-6",children:[m.jsxs("div",{className:"relative group z-10",children:[m.jsx("div",{className:"absolute inset-y-0 left-2 min-[400px]:left-3 flex items-center pointer-events-none z-10",children:D?m.jsx(so,{animate:{rotate:360},transition:{repeat:1/0,duration:1,ease:"linear"},className:"text-blue-500",children:m.jsx(He,{name:"Loader2",size:16})}):te?m.jsx(so,{initial:{scale:0},animate:{scale:1},className:"text-purple-500",children:m.jsx(He,{name:"Sparkles",size:16})}):m.jsx("div",{className:"text-slate-400",children:m.jsx(He,{name:"PlusCircle",size:16})})}),m.jsx("input",{type:"text",className:je("w-full bg-white pl-8 min-[400px]:pl-10 pr-24 min-[400px]:pr-28 py-2 min-[400px]:py-2.5 rounded-xl border shadow-sm text-sm focus:outline-none focus:ring-2 transition-all placeholder:text-slate-400 font-medium",te?"border-purple-200 focus:border-purple-400 focus:ring-purple-400/20":"border-slate-200 focus:border-slate-400 focus:ring-slate-400/20"),placeholder:_?"Listening...":te?"Describe tasks using natural language...":window.innerWidth<530?"Quick add task...":"Quick add (e.g., 'Meeting due:tomorrow p:high')",value:O,onChange:Be=>N(Be.target.value),onKeyDown:ne,disabled:D||_}),m.jsxs("div",{className:"absolute inset-y-0 right-2 min-[400px]:right-3 flex items-center gap-0.5 min-[400px]:gap-1",children:[a.voiceConfig.enabled&&m.jsx("button",{onClick:_?K:X,className:je("p-1 min-[400px]:p-1.5 rounded-md transition-all duration-200 relative",_?"text-rose-500 bg-rose-50 animate-pulse":"text-slate-400 hover:text-slate-600 hover:bg-slate-100"),title:_?"Stop Recording":"Start Voice Input",children:m.jsx(He,{name:_?"Square":"Mic",size:16})}),a.aiConfig.enabled&&m.jsx("button",{onClick:T,className:je("p-1 min-[400px]:p-1.5 rounded-md transition-all duration-200",te?"text-purple-600 bg-purple-50 hover:bg-purple-100 ring-1 ring-purple-200":"text-slate-400 hover:text-slate-600 hover:bg-slate-100"),title:te?"Switch to Manual Mode":"Switch to AI Mode",children:m.jsx(He,{name:te?"Sparkles":"TerminalSquare",size:16})}),I&&a.settingButtonOnInputBar!==!1&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"w-px h-4 bg-slate-200 mx-0.5 min-[400px]:mx-1"}),m.jsx("button",{onClick:I,className:"text-slate-400 hover:text-blue-600 p-1 min-[400px]:p-1.5 rounded-md hover:bg-blue-50 transition-colors",title:"Settings & Docs",children:m.jsx(He,{name:"Settings",size:16})})]})]})]}),m.jsxs("div",{className:"relative",children:[m.jsx("div",{className:"absolute left-0 top-0 bottom-2 w-8 bg-gradient-to-r from-white to-transparent pointer-events-none z-10"}),m.jsx("div",{className:"absolute right-0 top-0 bottom-2 w-8 bg-gradient-to-l from-white to-transparent pointer-events-none z-10"}),m.jsxs("div",{className:"flex items-center gap-1.5 min-[400px]:gap-2 mt-2 overflow-x-auto no-scrollbar pb-2 pl-0.5 min-[400px]:pl-1 pr-2 min-[400px]:pr-4",children:[a.tagsFilterOnInputBar!==!1&&m.jsx(dF,{label:"Tags",isActive:Ee("tags"),count:i.tags.include.length,onClear:()=>ye("tags"),children:m.jsxs("div",{className:"space-y-0.5",children:[n.length===0&&m.jsx("div",{className:"text-xs text-slate-400 p-2 italic text-center",children:"No tags available"}),n.map(Be=>m.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer transition-colors group",children:[m.jsx("input",{type:"checkbox",checked:i.tags.include.includes(Be),onChange:()=>ue("tags",Be),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),m.jsx(He,{name:"Tag",size:12,className:"text-blue-500 opacity-70 group-hover:opacity-100"}),m.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Be})]},Be))]})}),a.categoriesFilterOnInputBar!==!1&&m.jsx(dF,{label:"Categories",isActive:Ee("categories"),count:i.categories.include.length,onClear:()=>ye("categories"),children:m.jsxs("div",{className:"space-y-0.5",children:[r.length===0&&m.jsx("div",{className:"text-xs text-slate-400 p-2 italic text-center",children:"No categories available"}),r.map(Be=>m.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer transition-colors group",children:[m.jsx("input",{type:"checkbox",checked:i.categories.include.includes(Be),onChange:()=>ue("categories",Be),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),m.jsx(He,{name:"Folder",size:12,className:"text-amber-500 opacity-70 group-hover:opacity-100"}),m.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Be})]},Be))]})}),a.priorityFilterOnInputBar!==!1&&m.jsx(dF,{label:"Priority",isActive:Ee("priorities"),count:i.priorities.include.length,onClear:()=>ye("priorities"),children:m.jsx("div",{className:"space-y-0.5",children:["low","medium","high"].map(Be=>m.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer capitalize transition-colors group",children:[m.jsx("input",{type:"checkbox",checked:i.priorities.include.includes(Be),onChange:()=>ue("priorities",Be),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),m.jsx(He,{name:"Flag",size:12,className:je("opacity-80",st(Be)),fill:"currentColor"}),m.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Be})]},Be))})}),a.statusFilterOnInputBar!==!1&&m.jsx(dF,{label:"Status",isActive:Ee("statuses"),count:i.statuses.include.length,onClear:()=>ye("statuses"),children:m.jsx("div",{className:"space-y-0.5",children:["todo","doing","scheduled","done","due","overdue","cancelled","unplanned"].map(Be=>m.jsxs("label",{className:"flex items-center gap-2 px-2 py-1.5 hover:bg-slate-300 font-mono rounded-lg cursor-pointer capitalize transition-colors group",children:[m.jsx("input",{type:"checkbox",checked:i.statuses.include.includes(Be),onChange:()=>ue("statuses",Be),className:"rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),m.jsx(He,{name:Ve(Be),size:13,className:je("opacity-80",tt(Be))}),m.jsx("span",{className:"text-sm text-slate-700 group-hover:text-slate-900",children:Be})]},Be))})}),(a.tagsFilterOnInputBar!==!1||a.categoriesFilterOnInputBar!==!1||a.priorityFilterOnInputBar!==!1||a.statusFilterOnInputBar!==!1)&&a.sortOnInputBar!==!1&&m.jsx("div",{className:"w-px h-4 bg-slate-300 mx-1 shrink-0 hidden min-[550px]:block"}),a.sortOnInputBar!==!1&&m.jsx("div",{className:"hidden min-[550px]:block",children:m.jsx(Mae,{sort:y,onSortChange:b})})]})]})]})})},dF=({label:e,isActive:t,count:n,children:r,onClear:a})=>m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs(OR,{whileHover:{scale:1.02},whileTap:{scale:.98},className:je("flex items-center gap-1 min-[400px]:gap-1.5 px-2 min-[400px]:px-3 py-1 min-[400px]:py-1.5 text-xs font-medium rounded-full border transition-all shrink-0 outline-none select-none",t?"bg-slate-800 text-white border-slate-800 shadow-md shadow-slate-200":"bg-white text-slate-600 border-slate-200 hover:border-slate-300 hover:text-slate-800"),children:[e,t&&m.jsx("span",{className:"flex items-center justify-center bg-white text-slate-900 text-[9px] font-bold h-4 min-w-4 px-0.5 rounded-full",children:n}),m.jsx(He,{name:"ChevronDown",size:12,className:je("transition-transform duration-200",t?"text-slate-300":"opacity-40")})]})}),m.jsx(Zu,{side:"bottom",align:"start",sideOffset:8,collisionPadding:16,className:"outline-none w-auto p-0",style:{zIndex:99999},children:m.jsxs(so,{initial:{opacity:0,scale:.95,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-5},transition:{duration:.15,ease:"easeOut"},className:"w-56 bg-slate-50 border border-slate-200 shadow-lg rounded-lg overflow-hidden p-1",children:[m.jsxs("div",{className:"flex justify-between items-center px-3 py-2 border-b border-slate-200 mb-1",children:[m.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider",children:e}),t&&m.jsx("button",{onClick:a,className:"text-[10px] font-medium text-rose-500 hover:text-rose-600 px-1.5 py-0.5 rounded hover:bg-rose-50 transition-colors",children:"Clear"})]}),m.jsx("div",{className:"max-h-60 overflow-y-auto p-1 custom-scrollbar",children:r})]})})]}),Mae=({sort:e,onSortChange:t})=>{const n=[{label:"Due Date",value:"dueAt",icon:"Calendar"},{label:"Created Date",value:"createdAt",icon:"Clock"},{label:"Priority",value:"priority",icon:"Flag"},{label:"Title",value:"title",icon:"Type"}],r=a=>{e.field===a?t({...e,direction:e.direction==="asc"?"desc":"asc"}):t({...e,field:a,direction:"asc"})};return m.jsxs(zh,{children:[m.jsx(Hh,{asChild:!0,children:m.jsxs("button",{className:"flex items-center gap-1 min-[400px]:gap-1.5 px-2 min-[400px]:px-3 py-1 min-[400px]:py-1.5 bg-slate-100 hover:bg-slate-200 text-slate-600 hover:text-slate-900 text-xs font-bold rounded-full transition-all shrink-0 outline-none ml-auto active:scale-95",children:[m.jsx(He,{name:"ArrowUpDown",size:12}),m.jsx("span",{children:"Sort"})]})}),m.jsx(Zu,{side:"bottom",align:"end",sideOffset:8,collisionPadding:16,className:"outline-none w-auto p-0",style:{zIndex:99999},children:m.jsxs(so,{initial:{opacity:0,scale:.95,y:-5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-5},transition:{duration:.15,ease:"easeOut"},className:"w-48 bg-slate-50 border border-slate-200 shadow-lg rounded-lg overflow-hidden p-1",children:[m.jsx("div",{className:"px-3 py-2 text-[10px] font-bold text-slate-400 uppercase border-b border-slate-200 mb-1",children:"Sort By"}),m.jsx("div",{className:"flex flex-col gap-0.5",children:n.map(a=>{const i=e.field===a.value;return m.jsx("button",{onClick:()=>r(a.value),children:m.jsxs("div",{className:je("flex items-center justify-start! text-sm rounded-lg outline-none hover:bg-slate-300 font-mono w-full p-2",i?"text-slate-900":"text-slate-600 hover:text-slate-900"),children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(He,{name:a.icon,size:14,className:i?"text-blue-500":"opacity-70"}),m.jsx("span",{children:a.label})]}),i&&m.jsx("div",{className:"flex items-center gap-1 text-blue-500",children:m.jsx(He,{name:e.direction==="asc"?"ArrowUp":"ArrowDown",size:18})})]})},a.value)})})]})})]})};function F2({value:e,onChange:t,placeholder:n="Pick a date",className:r,disabled:a,showTime:i=!1}){const[c,y]=se.useState(!1),[b,x]=se.useState("00:00"),T=e?pt.fromISO(e):null,M=T?.isValid?T.toJSDate():void 0;se.useEffect(()=>{T?.isValid&&i&&x(T.toFormat("HH:mm"))},[e,T,i]);const I=D=>{if(!D){t("");return}let H=pt.fromJSDate(D);if(i&&b){const[X,K]=b.split(":").map(Number);H=H.set({hour:X,minute:K})}const _=i?H.toISO()||"":H.toISODate()||"";t(_),i||y(!1)},O=D=>{const H=D.target.value;if(x(H),M){const[_,X]=H.split(":").map(Number),K=pt.fromJSDate(M).set({hour:_,minute:X});t(K.toISO()||"")}},N=se.useMemo(()=>T?.isValid?i?T.toFormat("MMM dd, yyyy HH:mm"):T.toFormat("MMM dd, yyyy"):n,[T,n,i]);return m.jsxs(zh,{open:c,onOpenChange:y,children:[m.jsx(Hh,{asChild:!0,children:m.jsxs(Rf,{variant:"outline",disabled:a,className:je("w-full justify-start text-left font-normal",!e&&"text-muted-foreground",r),children:[m.jsx(kf,{className:"mr-2 h-4 w-4"}),N]})}),m.jsxs(Zu,{className:"w-auto p-0",align:"start",children:[m.jsx(GW,{mode:"single",selected:M,onSelect:I,initialFocus:!0}),i&&m.jsxs("div",{className:"border-t border-border p-3",children:[m.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Time"}),m.jsx("input",{type:"time",value:b,onChange:O,className:"w-full px-3 py-2 bg-background border border-input rounded-md text-sm focus:ring-2 focus:ring-ring focus:border-ring outline-none"})]})]})]})}const Cae=[{value:et.DAILY,label:"Daily"},{value:et.WEEKLY,label:"Weekly"},{value:et.MONTHLY,label:"Monthly"},{value:et.YEARLY,label:"Yearly"}],Tae=[{label:"M",val:et.MO},{label:"T",val:et.TU},{label:"W",val:et.WE},{label:"T",val:et.TH},{label:"F",val:et.FR},{label:"S",val:et.SA},{label:"S",val:et.SU}],Sae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Lae=({task:e,onSave:t,onClose:n,availableCategories:r})=>{const[a,i]=de.useState(e),[c,y]=de.useState(!1),[b,x]=de.useState(()=>{let N=et.WEEKLY,D=1,H=[],_=[],X=[],K="",te="";if(e.isRecurring&&e.recurringInterval)try{const J=et.fromString(e.recurringInterval);N=J.options.freq,D=J.options.interval;const ne=J.options.byweekday;ne&&(H=(Array.isArray(ne)?ne:[ne]).map(ye=>typeof ye=="number"?new yi(ye):ye)),_=J.options.bymonth?Array.isArray(J.options.bymonth)?J.options.bymonth:[J.options.bymonth]:[],X=J.options.bymonthday?Array.isArray(J.options.bymonthday)?J.options.bymonthday:[J.options.bymonthday]:[],J.options.dtstart&&(K=pt.fromJSDate(J.options.dtstart).toISODate()||""),J.options.until&&(te=pt.fromJSDate(J.options.until).toISODate()||"")}catch(J){console.error(`parse recurrence rule failed with err: ${J}`)}return{freq:N,interval:D,byWeekDay:H,byMonth:_,byMonthDay:X,start:K,end:te}}),T=N=>{x(D=>({...D,...N}))},M=()=>{const N={...a};if(N.isRecurring)try{const{start:D,end:H,freq:_,interval:X,byWeekDay:K,byMonth:te,byMonthDay:J}=b,ne=D?pt.fromISO(D).toJSDate():void 0,ue=H?pt.fromISO(H).endOf("day").toJSDate():void 0,ye=new et({freq:_,interval:X,byweekday:_===et.WEEKLY?K:null,bymonth:_===et.YEARLY&&te.length>0?te:null,bymonthday:(_===et.MONTHLY||_===et.YEARLY)&&J.length>0?J:null,dtstart:ne,until:ue});N.recurringInterval=ye.toString()}catch(D){console.error("Failed to generate RRule",D)}else N.recurringInterval=void 0;t(N)},I=()=>{i(N=>({...N,isRecurring:!N.isRecurring}))},O=r.filter(N=>N.toLowerCase().includes((a.category||"").toLowerCase())&&N.toLowerCase()!==(a.category||"").toLowerCase());return m.jsxs("div",{className:"flex flex-col max-h-[85vh]",children:[m.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 sticky top-0 backdrop-blur-md z-10 shrink-0",children:[m.jsx("h2",{className:"font-bold text-slate-800",children:"Edit Task"}),m.jsx("button",{onClick:n,"aria-label":"Close edit task modal",className:"p-2 text-slate-400 hover:text-slate-600 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800",children:m.jsx(He,{name:"X",size:20})})]}),m.jsxs("div",{className:"p-6 space-y-5 overflow-y-auto flex-1",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{htmlFor:"task-title",className:"text-xs font-semibold text-slate-500 uppercase",children:"Title"}),m.jsx("input",{id:"task-title",value:a.title,onChange:N=>i({...a,title:N.target.value}),className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none text-slate-900"})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{htmlFor:"task-description",className:"text-xs font-semibold text-slate-500 uppercase",children:"Description"}),m.jsx("textarea",{id:"task-description",value:a.description||"",onChange:N=>i({...a,description:N.target.value}),className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none min-h-20 resize-none text-slate-900",placeholder:"Add details..."})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-1 relative group",children:[m.jsx("label",{htmlFor:"task-category",className:"text-xs font-semibold text-slate-500 uppercase",children:"Category"}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{id:"task-category",type:"text",value:a.category||"",onChange:N=>i({...a,category:N.target.value}),onFocus:()=>y(!0),onBlur:()=>setTimeout(()=>y(!1),200),placeholder:"Work, Personal...",className:"w-full px-3 py-2 bg-slate-50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700 rounded-lg text-sm focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none pl-9 text-slate-900"}),m.jsx("div",{className:"absolute left-3 top-2.5 text-slate-400 pointer-events-none",children:m.jsx(He,{name:"Folder",size:14})}),m.jsx("div",{className:"absolute right-3 top-2.5 text-slate-400 pointer-events-none transition-transform duration-200",style:{transform:c?"rotate(180deg)":"rotate(0deg)"},children:m.jsx(He,{name:"ChevronDown",size:14})})]}),m.jsx(Zd,{children:c&&(O.length>0||a.category&&!r.includes(a.category))&&m.jsxs(oo.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0},className:"absolute z-20 w-full mt-1 bg-white border border-slate-100 rounded-lg shadow-xl max-h-40 overflow-y-auto py-1",children:[O.map(N=>m.jsxs("button",{onClick:()=>i({...a,category:N}),className:"w-full text-left px-3 py-2 text-sm text-slate-700 hover:bg-slate-50 flex items-center gap-2",children:[m.jsx(He,{name:"Folder",size:12,className:"text-slate-400"}),N]},N)),a.category&&!r.includes(a.category)&&m.jsxs("div",{className:"px-3 py-2 text-xs text-blue-600 bg-blue-50/50 border-t border-blue-100 flex items-center gap-2",children:[m.jsx(He,{name:"Plus",size:12}),'Create "',a.category,'"']})]})})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("span",{id:"priority-label",className:"text-xs font-semibold text-slate-500 uppercase",children:"Priority"}),m.jsx("div",{role:"radiogroup","aria-labelledby":"priority-label",className:"flex bg-slate-50 dark:bg-slate-800/50 p-1 rounded-lg border border-slate-200 dark:border-slate-700 h-9.5",children:["low","medium","high"].map(N=>m.jsx("button",{role:"radio","aria-checked":a.priority===N,onClick:()=>i({...a,priority:N}),className:je("flex-1 text-xs font-medium rounded-md capitalize transition-all flex items-center justify-center",a.priority===N?"bg-white dark:bg-slate-600 shadow-sm text-slate-800 dark:text-slate-100 border border-slate-100 dark:border-slate-500":"text-slate-500 hover:text-slate-700 dark:hover:text-slate-300"),children:N},N))})]})]}),m.jsxs("div",{className:"border-t border-slate-100 dark:border-slate-800 pt-4",children:[m.jsx("label",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-3 block",children:"Task Dates"}),m.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Created"}),m.jsx(F2,{value:a.createdAt,onChange:N=>i({...a,createdAt:N||a.createdAt}),showTime:!0,placeholder:"Select created date"})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Due"}),m.jsx(F2,{value:a.dueAt,onChange:N=>i({...a,dueAt:N}),showTime:!0,placeholder:"Select due date"})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Start At"}),m.jsx(F2,{value:a.startAt,onChange:N=>i({...a,startAt:N}),showTime:!0,placeholder:"Select start date"})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-500 uppercase",children:"Completed"}),m.jsx(F2,{value:a.completedAt,onChange:N=>i({...a,completedAt:N}),showTime:!0,placeholder:"Select completed date",disabled:a.status!=="done"&&a.status!=="cancelled"})]})]}),m.jsxs("div",{className:"bg-slate-50 dark:bg-slate-800/30 rounded-lg p-3 border border-slate-200/60 dark:border-slate-700 transition-colors",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:je("p-1.5 rounded-md",a.isRecurring?"bg-blue-100 text-blue-600":"bg-slate-200 text-slate-500"),children:m.jsx(He,{name:"Repeat",size:16})}),m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"Recurrence"}),m.jsx("span",{className:"text-[10px] text-slate-400",children:"Repeats automatically"})]})]}),m.jsx("button",{onClick:I,role:"switch","aria-checked":a.isRecurring,"aria-label":"Toggle task recurrence",className:je("relative w-9 h-5 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",a.isRecurring?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(oo.div,{layout:!0,className:"absolute top-1 left-1 w-3 h-3 bg-white rounded-full shadow-sm",animate:{x:a.isRecurring?16:0}})})]}),m.jsx(Zd,{children:a.isRecurring&&m.jsx(oo.div,{initial:{height:0,opacity:0,marginTop:0},animate:{height:"auto",opacity:1,marginTop:12},exit:{height:0,opacity:0,marginTop:0},className:"overflow-hidden",children:m.jsxs("div",{className:"pt-3 border-t border-slate-200/60 dark:border-slate-700 space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("label",{htmlFor:"recurrence-interval",className:"text-xs font-medium text-slate-500",children:"Every"}),m.jsx("input",{id:"recurrence-interval",type:"number",min:"1",max:"99","aria-label":"Recurrence interval",value:b.interval,onChange:N=>T({interval:parseInt(N.target.value)||1}),className:"w-12 px-1.5 py-1 text-center bg-white dark:bg-slate-800 border border-slate-300 dark:border-slate-600 rounded-md text-xs focus:border-blue-500 outline-none text-slate-700 dark:text-slate-200"}),m.jsx("select",{"aria-label":"Recurrence frequency",value:b.freq,onChange:N=>T({freq:parseInt(N.target.value)}),className:"flex-1 bg-white dark:bg-slate-800 border border-slate-300 dark:border-slate-600 text-slate-700 dark:text-slate-200 text-xs rounded-md focus:ring-blue-500 focus:border-blue-500 block p-1 outline-none",children:Cae.map(N=>m.jsx("option",{value:N.value,children:N.label},N.value))})]}),b.freq===et.WEEKLY&&m.jsxs("div",{className:"space-y-1",children:[m.jsx("span",{id:"weekdays-label",className:"text-[10px] font-semibold text-slate-400 uppercase",children:"On days"}),m.jsx("div",{role:"group","aria-labelledby":"weekdays-label",className:"flex justify-between",children:Tae.map((N,D)=>{const H=b.byWeekDay.some(X=>X.weekday===N.val.weekday),_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return m.jsx("button",{"aria-label":_[D],"aria-pressed":H,onClick:()=>{const X=b.byWeekDay,K=X.some(te=>te.weekday===N.val.weekday);T({byWeekDay:K?X.filter(te=>te.weekday!==N.val.weekday):[...X,N.val]})},className:je("w-7 h-7 flex items-center justify-center rounded-full text-xs font-medium transition-all border",H?"bg-blue-500 text-white border-blue-600 shadow-sm":"bg-white dark:bg-slate-700 text-slate-500 dark:text-slate-400 border-slate-200 dark:border-slate-600 hover:border-blue-300 hover:text-blue-500"),children:N.label},N.label+N.val.weekday)})})]}),(b.freq===et.MONTHLY||b.freq===et.YEARLY)&&m.jsxs("div",{className:"space-y-3",children:[b.freq===et.YEARLY&&m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Months"}),m.jsx("div",{className:"grid grid-cols-6 gap-1",children:Sae.map((N,D)=>{const H=D+1,_=b.byMonth.includes(H);return m.jsx("button",{onClick:()=>{const X=b.byMonth;T({byMonth:X.includes(H)?X.filter(K=>K!==H):[...X,H]})},className:je("py-1 text-[15px] rounded border transition-colors",_?"bg-blue-500 text-white border-blue-600":"bg-white dark:bg-slate-800 border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:border-blue-300"),children:N},N)})})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Days"}),m.jsx("div",{className:"grid grid-cols-7 gap-1",children:Array.from({length:31},(N,D)=>D+1).map(N=>{const D=b.byMonthDay.includes(N);return m.jsx("button",{onClick:()=>{const H=b.byMonthDay;T({byMonthDay:H.includes(N)?H.filter(_=>_!==N):[...H,N]})},className:je("w-full aspect-square flex items-center justify-center text-[15px] rounded border transition-colors",D?"bg-blue-500 text-white border-blue-600":"bg-white dark:bg-slate-800 border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:border-blue-300"),children:N},N)})})]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-2 pt-2 border-t border-slate-200/50 dark:border-slate-700/50",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"Start Recurrence"}),m.jsx(F2,{value:b.start,onChange:N=>T({start:N&&pt.fromISO(N).toISODate()||""}),placeholder:"Select start",className:"h-8 text-xs"})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[10px] font-semibold text-slate-400 uppercase",children:"End Recurrence"}),m.jsx(F2,{value:b.end,onChange:N=>T({end:N&&pt.fromISO(N).toISODate()||""}),placeholder:"Select end",className:"h-8 text-xs"})]})]}),m.jsx("div",{className:"text-[10px] text-slate-400 italic bg-white/50 dark:bg-slate-800/50 p-2 rounded border border-slate-100 dark:border-slate-700 text-center",children:(()=>{try{const{freq:N,interval:D,byWeekDay:H,byMonth:_,byMonthDay:X,start:K,end:te}=b;return new et({freq:N,interval:D,byweekday:N===et.WEEKLY?H:null,bymonth:N===et.YEARLY&&_.length>0?_:null,bymonthday:(N===et.MONTHLY||N===et.YEARLY)&&X.length>0?X:null,dtstart:K?pt.fromISO(K).toJSDate():void 0,until:te?pt.fromISO(te).endOf("day").toJSDate():void 0}).toText()}catch(N){return console.error(`invalid recurrence rule: ${N}`),"Invalid Rule"}})()})]})})})]})]})]}),m.jsxs("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 border-t border-slate-100 dark:border-slate-800 flex justify-end gap-3 sticky bottom-0 z-10 shrink-0",children:[m.jsx("button",{onClick:n,className:"px-4 py-2 text-sm font-medium text-slate-600 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 rounded-lg transition-colors",children:"Cancel"}),m.jsx("button",{onClick:M,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg shadow-sm shadow-blue-200 transition-colors",children:"Save Changes"})]})]})},rY=({isOpen:e,onClose:t,task:n,onSave:r,availableCategories:a})=>m.jsx(Zd,{children:e&&n&&m.jsxs(m.Fragment,{children:[m.jsx(oo.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-50"}),m.jsx(oo.div,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},className:"fixed top-1/2 left-1/2 w-full max-w-lg bg-paper rounded-xl shadow-2xl z-50 border border-slate-200 dark:border-slate-800 overflow-hidden text-slate-900",children:m.jsx(Lae,{task:n,onSave:r,onClose:t,availableCategories:a},n.id)})]})}),aY=()=>m.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar bg-slate-50/50 dark:bg-slate-900/10",children:[m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Activity",size:14,className:"text-blue-500"}),"Task Lifecycle & Auto-Status"]}),m.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"The view automatically manages task statuses based on dates to keep your workflow organized. You rarely need to manually set status unless completing a task."}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[m.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"AlertCircle",size:14,className:"text-rose-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Due / Overdue"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks due Today, Tomorrow, or in the past are automatically flagged as Urgent."})]}),m.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Clock",size:14,className:"text-blue-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Scheduled (Doing)"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks with a future Start Date are marked as Scheduled until that date arrives."})]}),m.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Zap",size:14,className:"text-purple-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Unplanned"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks without dates that need immediate attention. You must manually set this."})]}),m.jsxs("div",{className:"p-3 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Archive",size:14,className:"text-slate-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Backlog"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Items with no Due Date or Start Date appear in the Backlog section."})]})]})]}),m.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Code2",size:14,className:"text-emerald-500"}),"Scripting Guide"]}),m.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"Unlock advanced control by writing short JavaScript snippets to filter and sort your tasks precisely."}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsxs("h4",{className:"text-xs font-bold text-slate-700 flex items-center gap-2",children:[m.jsx(He,{name:"Filter",size:12,className:"text-slate-400"}),"Filter Script"]}),m.jsxs("div",{className:"bg-[#1e1e1e] rounded-lg p-3 border border-slate-700 font-mono text-[10px] text-slate-300 shadow-inner",children:[m.jsx("p",{className:"text-slate-500 mb-1",children:"// Ex: Show only high priority tasks due today"}),m.jsxs("p",{children:[m.jsx("span",{className:"text-purple-400",children:"const"})," today ="," ",m.jsx("span",{className:"text-blue-400",children:"new"})," ","Date().toISOString().split('T')[0];"]}),m.jsxs("p",{children:[m.jsx("span",{className:"text-purple-400",children:"return"})," task.priority === 'high' && task.dueDate === today;"]})]}),m.jsxs("p",{className:"text-xs text-slate-500",children:[m.jsx("b",{children:"Variable:"})," ",m.jsx("code",{children:"task"})," (The Task object).",m.jsx("br",{}),m.jsx("b",{children:"Return:"})," ",m.jsx("code",{children:"true"})," to keep, ",m.jsx("code",{children:"false"})," to hide."]})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsxs("h4",{className:"text-xs font-bold text-slate-700 flex items-center gap-2",children:[m.jsx(He,{name:"ArrowUpDown",size:12,className:"text-slate-400"}),"Sort Script"]}),m.jsxs("div",{className:"bg-[#1e1e1e] rounded-lg p-3 border border-slate-700 font-mono text-[10px] text-slate-300 shadow-inner",children:[m.jsx("p",{className:"text-slate-500 mb-1",children:"// Ex: Sort by title length, then alphabetically"}),m.jsxs("p",{children:[m.jsx("span",{className:"text-purple-400",children:"if"})," (a.title.length !== b.title.length) ",m.jsx("span",{className:"text-purple-400",children:"return"})," ","a.title.length - b.title.length;"]}),m.jsxs("p",{children:[m.jsx("span",{className:"text-purple-400",children:"return"})," ","a.title.localeCompare(b.title);"]})]}),m.jsxs("p",{className:"text-xs text-slate-500",children:[m.jsx("b",{children:"Variables:"})," ",m.jsx("code",{children:"a"}),", ",m.jsx("code",{children:"b"})," (Two Task objects to compare).",m.jsx("br",{}),m.jsx("b",{children:"Return:"})," Negative number if a < b, Positive if a > b, 0 if equal."]})]})]})]}),m.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Sparkles",size:14,className:"text-purple-500"}),"AI & Voice Intelligence"]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:m.jsx(He,{name:"Mic",size:16})}),m.jsxs("div",{children:[m.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"Voice Commands"}),m.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:'Click the microphone icon to speak. Supports natural language like "Buy milk tomorrow priority high".'})]})]}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:m.jsx(He,{name:"TerminalSquare",size:16})}),m.jsxs("div",{children:[m.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"AI Mode"}),m.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Toggle AI mode to use Gemini. It can Create, Update, Query, and Delete tasks.",m.jsx("br",{}),m.jsx("em",{className:"opacity-80",children:'Example: "Move all overdue tasks to next friday" or "Summarize my high priority work".'})]})]})]})]})]}),m.jsx("div",{className:"h-px bg-slate-200 dark:bg-slate-700 w-full"}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Command",size:14,className:"text-slate-500"}),"Quick Controls"]}),m.jsxs("ul",{className:"text-xs text-slate-600 dark:text-slate-400 space-y-2",children:[m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Enter"}),m.jsx("span",{children:"Save task / Submit command"})]}),m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Double Click Delete"}),m.jsx("span",{children:"Click trash icon once to arm, twice to delete."})]}),m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Focus Mode"}),m.jsx("span",{children:"Hides everything except Today's active tasks."})]})]})]})]}),Iae=[{id:"system",name:"System",colors:"bg-slate-400 border-slate-700"},{id:"light",name:"Light",colors:"bg-white border-slate-200"},{id:"dark",name:"Dark",colors:"bg-slate-900 border-slate-700"},{id:"midnight",name:"Midnight",colors:"bg-[#0B1120] border-slate-800"},{id:"coffee",name:"Coffee",colors:"bg-[#f5f2eb] border-[#e8e4db]"}],oY=({theme:e,setTheme:t})=>m.jsxs(m.Fragment,{children:[m.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"Appearance"}),m.jsx("div",{className:"grid grid-cols-5 gap-2",children:Iae.map(n=>m.jsxs("button",{onClick:()=>t(n.id),className:je("flex flex-col items-center gap-2 p-2 rounded-xl border-2 transition-all outline-none",e===n.id?"border-blue-500 bg-blue-50/30 ring-2 ring-blue-200 dark:ring-blue-900":"border-transparent hover:bg-slate-50 dark:hover:bg-slate-800/50"),children:[m.jsx("div",{className:je("w-full aspect-square rounded-lg shadow-sm border border-slate-200/20",n.colors)}),m.jsx("span",{className:je("text-[10px] font-medium truncate w-full text-center",e===n.id?"text-blue-600":"text-slate-500"),children:n.name})]},n.id))})]}),Aae=[{id:"sm",label:"Small",class:"text-sm"},{id:"base",label:"Medium",class:"text-base"},{id:"lg",label:"Large",class:"text-lg"},{id:"xl",label:"Extra Large",class:"text-xl"}],iY=({fontSize:e,setFontSize:t})=>m.jsxs(m.Fragment,{children:[m.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"Typography"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{className:"text-xs font-medium text-slate-500",children:"Item Font Size"}),m.jsx("div",{className:"grid grid-cols-4 gap-2",children:Aae.map(n=>m.jsxs("button",{onClick:()=>t(n.id),className:je("py-2 px-1 rounded-lg border text-center transition-all",e===n.id?"border-blue-500 bg-blue-50 dark:bg-slate-700 text-blue-700 dark:text-blue-100 shadow-sm":"border-slate-200 dark:border-slate-700 hover:bg-slate-50 dark:hover:bg-slate-800 text-slate-600 dark:text-slate-400"),children:[m.jsx("span",{className:je("block leading-none mb-1",n.class),children:"Ag"}),m.jsx("span",{className:"text-[10px] opacity-70",children:n.label})]},n.id))})]})]}),Eae=[{id:"dueAt",label:"Due Date"},{id:"createdAt",label:"Created Date"},{id:"startAt",label:"Start Date"},{id:"completedAt",label:"Completed Date"}],sY=[{value:"MMM d",label:"Oct 24"},{value:"EEE, MMM d",label:"Mon, Oct 24"},{value:"yyyy-MM-dd",label:"2023-10-24"},{value:"dd/MM/yyyy",label:"24/10/2023"}],lY=({showCompleted:e,toggleShowCompleted:t,useRelativeDates:n,toggleRelativeDates:r,showProgressBar:a,toggleProgressBar:i,soundEnabled:c,toggleSound:y,defaultFocusMode:b,toggleDefaultFocus:x,setDateFormat:T,isCustomFormat:M,setIsCustomFormat:I,dateFormat:O,defaultCategory:N,setDefaultCategory:D,availableCategories:H,groupingStrategy:_,toggleGroupingStrategy:X})=>m.jsxs(m.Fragment,{children:[m.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4",children:"View Options"}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Show Completed"}),m.jsx("span",{className:"text-xs text-slate-400",children:"Display finished items"})]}),m.jsx("button",{onClick:t,className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",e?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:e?16:0}})})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Relative Dates"}),m.jsx("span",{className:"text-xs text-slate-400",children:'e.g. "In 2 days", "Yesterday"'})]}),m.jsx("button",{onClick:r,className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",n?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:n?16:0}})})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Progress Bars"}),m.jsx("span",{className:"text-xs text-slate-400",children:"Show visual completion in timeline"})]}),m.jsx("button",{onClick:i,className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",a?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:a?16:0}})})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Sound"}),m.jsx("span",{className:"text-xs text-slate-400",children:"Play sounds on actions"})]}),m.jsx("button",{onClick:y,className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",c?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:c?16:0}})})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Default Focus Mode"}),m.jsx("span",{className:"text-xs text-slate-400",children:"Start app in Focus Mode"})]}),m.jsx("button",{onClick:x,className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",b?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:b?16:0}})})]}),m.jsxs("div",{className:"pt-2",children:[m.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Date Format"}),m.jsx("div",{className:"grid grid-cols-2 gap-2 mb-2",children:sY.map(K=>m.jsxs("button",{onClick:()=>{T(K.value),I(!1)},className:je("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between",!M&&O===K.value?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[m.jsx("span",{children:K.label}),!M&&O===K.value&&m.jsx(He,{name:"Check",size:12,className:"text-blue-500"})]},K.value))}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("button",{onClick:()=>I(!0),className:je("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between flex-1",M?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[m.jsx("span",{children:"Custom..."}),M&&m.jsx(He,{name:"Check",size:12,className:"text-blue-500"})]}),M&&m.jsx("input",{type:"text",value:O,onChange:K=>T(K.target.value),className:"flex-1 px-3 py-2 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-blue-500 font-mono",placeholder:"yyyy/MM/dd HH:mm"})]}),M&&m.jsxs("p",{className:"text-[10px] text-slate-400 mt-1 pl-1",children:["Uses Luxon format tokens (e.g. ",m.jsx("code",{children:"EEE, MMM d"}),")"]})]}),m.jsxs("div",{className:"pt-2 border-t border-slate-100 dark:border-slate-800",children:[m.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Default Category"}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:"text",list:"category-suggestions",value:N,onChange:K=>D(K.target.value),className:"w-full px-3 py-2 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-blue-500",placeholder:"General"}),m.jsx("datalist",{id:"category-suggestions",children:H.map(K=>m.jsx("option",{value:K},K))})]})]}),m.jsxs("div",{className:"pt-2 border-t border-slate-100 dark:border-slate-800",children:[m.jsx("label",{className:"text-xs font-medium text-slate-500 block mb-2",children:"Group Tasks By (Multi-select)"}),m.jsx("div",{className:"grid grid-cols-2 gap-2",children:Eae.map(K=>{const te=_.includes(K.id);return m.jsxs("button",{onClick:()=>X(K.id),className:je("px-3 py-2 text-xs font-medium rounded-lg border transition-all text-left flex items-center justify-between group",te?"bg-blue-50 border-blue-200 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"),children:[m.jsx("span",{children:K.label}),te&&m.jsx(He,{name:"Check",size:12,className:"text-blue-500"})]},K.id)})})]})]})]}),Pae=[{key:"settingButtonOnInputBar",label:"Settings Button",description:"Show settings gear icon",icon:"Settings"},{key:"tagsFilterOnInputBar",label:"Tags Filter",description:"Show tags filter chips",icon:"Tag"},{key:"categoriesFilterOnInputBar",label:"Categories Filter",description:"Show categories filter chips",icon:"Folder"},{key:"priorityFilterOnInputBar",label:"Priority Filter",description:"Show priority filter chips",icon:"Flag"},{key:"statusFilterOnInputBar",label:"Status Filter",description:"Show status filter chips",icon:"CircleDot"},{key:"sortOnInputBar",label:"Sort Control",description:"Show sort options",icon:"ArrowUpDown"}],Rae=({settings:e,onUpdateSettings:t,availableCategories:n})=>{const r=H=>t({...e,fontSize:H}),a=H=>t({...e,theme:H}),i=H=>t({...e,dateFormat:H}),c=H=>t({...e,defaultCategory:H}),y=()=>t({...e,showCompleted:!e.showCompleted}),b=()=>t({...e,useRelativeDates:!e.useRelativeDates}),x=()=>t({...e,showProgressBar:!e.showProgressBar}),T=()=>t({...e,soundEnabled:!e.soundEnabled}),M=()=>t({...e,defaultFocusMode:!e.defaultFocusMode}),I=H=>{const _=e[H]!==!1;t({...e,[H]:!_})},O=H=>{const _=e.groupingStrategy,X=_.includes(H);let K;if(X){if(_.length===1)return;K=_.filter(te=>te!==H)}else K=[..._,H];t({...e,groupingStrategy:K})},[N,D]=de.useState(!sY.some(H=>H.value===e.dateFormat));return m.jsx(m.Fragment,{children:m.jsxs("div",{className:"p-6 space-y-8",children:[m.jsx("section",{children:m.jsx(oY,{theme:e.theme,setTheme:a})}),m.jsx("section",{children:m.jsx(iY,{fontSize:e.fontSize,setFontSize:r})}),m.jsx("section",{children:m.jsx(lY,{showCompleted:e.showCompleted,toggleShowCompleted:y,useRelativeDates:e.useRelativeDates,toggleRelativeDates:b,showProgressBar:e.showProgressBar,toggleProgressBar:x,soundEnabled:e.soundEnabled,toggleSound:T,defaultFocusMode:e.defaultFocusMode,toggleDefaultFocus:M,dateFormat:e.dateFormat,setDateFormat:i,isCustomFormat:N,setIsCustomFormat:D,defaultCategory:e.defaultCategory,setDefaultCategory:c,availableCategories:n,groupingStrategy:e.groupingStrategy,toggleGroupingStrategy:O})}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-4 flex items-center gap-2",children:[m.jsx(He,{name:"PanelBottom",size:12,className:"text-blue-500"}),"Input Bar"]}),m.jsx("div",{className:"space-y-4",children:Pae.map(H=>{const _=e[H.key]!==!1;return m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsx(He,{name:H.icon,size:14,className:"text-slate-400"}),m.jsxs("div",{className:"flex flex-col",children:[m.jsx("span",{className:"text-sm font-medium text-slate-700",children:H.label}),m.jsx("span",{className:"text-xs text-slate-400",children:H.description})]})]}),m.jsx("button",{onClick:()=>I(H.key),className:je("relative w-10 h-6 rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400",_?"bg-blue-500":"bg-slate-200 dark:bg-slate-700"),children:m.jsx(Qd,{layout:!0,className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow-sm block",animate:{x:_?16:0}})})]},H.key)})})]})]})})};async function cY(){try{return await import("@google/genai")}catch{throw new Error("The '@google/genai' package is required. Install it with: pnpm add @google/genai")}}function Fae(e,t){switch(t){case"string":return e.STRING;case"number":return e.NUMBER;case"boolean":return e.BOOLEAN;case"array":return e.ARRAY;case"object":return e.OBJECT}}function dN(e,t){const n={type:Fae(e,t.type)};return t.description&&(n.description=t.description),t.enum&&(n.enum=t.enum),t.items&&(n.items=dN(e,t.items)),t.properties&&(n.properties=Object.fromEntries(Object.entries(t.properties).map(([r,a])=>[r,dN(e,a)]))),t.required&&(n.required=t.required),n}function Oae(e,t){return t.map(n=>({name:n.name,description:n.description,parameters:{type:e.OBJECT,properties:Object.fromEntries(Object.entries(n.parameters.properties).map(([r,a])=>[r,dN(e,a)])),required:n.parameters.required}}))}class Dae{config;constructor(t){this.config=t}async chat(t,n,r,a,i){const{GoogleGenAI:c,Type:y}=await cY(),b=new c({apiKey:this.config.apiKey}),x=Oae(y,r),T=[];if(i){for(const D of i)if(D.role==="user")T.push({role:"user",parts:[{text:D.content||""}]});else if(D.role==="assistant"){const H=[];if(D.content&&H.push({text:D.content}),D.toolCalls)for(const _ of D.toolCalls)H.push({functionCall:{name:_.name,args:_.args}});T.push({role:"model",parts:H})}else if(D.role==="tool"&&D.toolResults){const H=D.toolResults.map(_=>({functionResponse:{name:_.name,response:{result:_.result}}}));T.push({role:"function",parts:H})}}const M=b.chats.create({model:this.config.model||"gemini-2.0-flash",config:{systemInstruction:t,tools:[{functionDeclarations:x}]},history:T.length>0?T:void 0});let I;a&&a.length>0?(i&&T.length>0&&T[T.length-1].role==="function"&&T.pop(),I=a.map(D=>({functionResponse:{name:D.name,response:{result:D.result}}}))):I=n;const O=await M.sendMessage({message:I}),N={};return O.text&&(N.text=O.text),O.functionCalls&&O.functionCalls.length>0&&(N.toolCalls=O.functionCalls.map(D=>({name:D.name,args:D.args||{}}))),O.usageMetadata&&(N.tokenCount=O.usageMetadata.totalTokenCount||0,N.tokenUsage={inputTokens:O.usageMetadata.promptTokenCount||0,outputTokens:O.usageMetadata.candidatesTokenCount||0,totalTokens:O.usageMetadata.totalTokenCount||0}),N}async test(){try{const{GoogleGenAI:t}=await cY();return{success:!0,message:`Connected to Gemini. Response: "${(await new t({apiKey:this.config.apiKey}).models.generateContent({model:this.config.model||"gemini-2.0-flash",contents:"Say hello in one word."})).text?.trim()}"`}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Unknown error"}}}}class dY{config;constructor(t){this.config=t}async getClient(){let t;try{t=await import("openai")}catch{throw new Error("The 'openai' package is required. Install it with: pnpm add openai")}const n=t.default;return new n({apiKey:this.config.apiKey,baseURL:this.config.baseUrl||void 0,dangerouslyAllowBrowser:!0})}async chat(t,n,r,a,i){const c=await this.getClient(),y=[{role:"system",content:t}];if(i){for(const I of i)if(I.role==="user")y.push({role:"user",content:I.content||""});else if(I.role==="assistant"){const O={role:"assistant",content:I.content||null};I.toolCalls&&I.toolCalls.length>0&&(O.tool_calls=I.toolCalls.map((N,D)=>({id:N.id||`call_${D}`,type:"function",function:{name:N.name,arguments:JSON.stringify(N.args)}}))),y.push(O)}else if(I.role==="tool"&&I.toolResults)for(const O of I.toolResults)y.push({role:"tool",content:JSON.stringify(O.result),tool_call_id:O.id||`call_${O.name}`})}if(a&&a.length>0){if(!i)for(const I of a)y.push({role:"tool",content:JSON.stringify(I.result),tool_call_id:I.id||`call_${I.name}`})}else i||y.push({role:"user",content:n});const b=r.map(I=>({type:"function",function:{name:I.name,description:I.description,parameters:I.parameters}})),x=await c.chat.completions.create({model:this.config.model||"gpt-4o",messages:y,tools:b.length>0?b:void 0}),T=x.choices[0],M={};return T?.message?.content&&(M.text=T.message.content),T?.message?.tool_calls&&T.message.tool_calls.length>0&&(M.toolCalls=T.message.tool_calls.filter(I=>I.type==="function").map(I=>({id:I.id,name:I.function.name,args:JSON.parse(I.function.arguments)}))),x.usage&&(M.tokenCount=x.usage.total_tokens,M.tokenUsage={inputTokens:x.usage.prompt_tokens||0,outputTokens:x.usage.completion_tokens||0,totalTokens:x.usage.total_tokens||0}),M}async test(){try{const r=(await(await this.getClient()).chat.completions.create({model:this.config.model||"gpt-4o",messages:[{role:"user",content:"Say hello in one word."}],max_tokens:10})).choices[0]?.message?.content?.trim();return{success:!0,message:`Connected to ${this.config.model||"gpt-4o"}. Response: "${r}"`}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Unknown error"}}}}class Nae{config;constructor(t){this.config=t}async getClient(){let t;try{t=await import("@anthropic-ai/sdk")}catch{throw new Error("The '@anthropic-ai/sdk' package is required. Install it with: pnpm add @anthropic-ai/sdk")}const n=t.default;return new n({apiKey:this.config.apiKey,baseURL:this.config.baseUrl||void 0,dangerouslyAllowBrowser:!0})}async chat(t,n,r,a,i){const c=await this.getClient(),y=[];if(i){for(const M of i)if(M.role==="user")y.push({role:"user",content:M.content||""});else if(M.role==="assistant"){const I=[];if(M.content&&I.push({type:"text",text:M.content}),M.toolCalls)for(const O of M.toolCalls)I.push({type:"tool_use",id:O.id||`toolu_${O.name}`,name:O.name,input:O.args});y.push({role:"assistant",content:I.length>0?I:""})}else if(M.role==="tool"&&M.toolResults){const I=M.toolResults.map(O=>({type:"tool_result",tool_use_id:O.id||`toolu_${O.name}`,content:JSON.stringify(O.result)}));y.push({role:"user",content:I})}}if(a&&a.length>0){if(!i){const M=a.map(I=>({type:"tool_result",tool_use_id:I.id||`toolu_${I.name}`,content:JSON.stringify(I.result)}));y.push({role:"user",content:M})}}else i||y.push({role:"user",content:n});const b=r.map(M=>({name:M.name,description:M.description,input_schema:M.parameters})),x=await c.messages.create({model:this.config.model||"claude-sonnet-4-20250514",max_tokens:4096,system:t,messages:y,tools:b.length>0?b:void 0}),T={};for(const M of x.content)M.type==="text"?T.text=(T.text||"")+M.text:M.type==="tool_use"&&(T.toolCalls||(T.toolCalls=[]),T.toolCalls.push({id:M.id,name:M.name,args:M.input||{}}));return x.usage&&(T.tokenCount=x.usage.input_tokens+x.usage.output_tokens,T.tokenUsage={inputTokens:x.usage.input_tokens||0,outputTokens:x.usage.output_tokens||0,totalTokens:(x.usage.input_tokens||0)+(x.usage.output_tokens||0)}),T}async test(){try{const n=await(await this.getClient()).messages.create({model:this.config.model||"claude-sonnet-4-20250514",max_tokens:10,messages:[{role:"user",content:"Say hello in one word."}]}),r=n.content[0]?.type==="text"?n.content[0].text.trim():"";return{success:!0,message:`Connected to ${this.config.model||"claude-sonnet-4-20250514"}. Response: "${r}"`}}catch(t){return{success:!1,message:t instanceof Error?t.message:"Unknown error"}}}}const zae=(e,t)=>{let n=`You are a task management assistant. You help users create, query, update, and delete tasks.
61
61
 
62
62
  ## Task Schema
63
63
 
@@ -330,7 +330,7 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
330
330
  "stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
331
331
  "$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),Mn=D('$RR("'),Ur=D('","'),Fa=D('",'),go=D('"'),St=D(")<\/script>");D('<template data-rci="" data-bid="'),D('<template data-rri="" data-bid="'),D('" data-sid="'),D('" data-sty="');var aa=D('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),rr=D('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),Ma=D('$RX("'),Ni=D('"'),Wn=D(","),Js=D(")<\/script>");D('<template data-rxi="" data-bid="'),D('" data-dgst="'),D('" data-msg="'),D('" data-stck="'),D('" data-cstck="');var mo=/[<\u2028\u2029]/g,oa=/[&><\u2028\u2029]/g,Ho=D(' media="not all" data-precedence="'),ia=D('" data-href="'),Qs=D('">'),zl=D("</style>"),Ca=!1,Hl=!0,sa=[],qs=D(' data-precedence="'),Cu=D('" data-href="'),Rn=D(" "),Bl=D('">'),Bo=D("</style>");D('<link rel="expect" href="#'),D('" blocking="render"/>');var Td=D(' id="'),$s=D("["),Sd=D(",["),Ld=D(","),Vl=D("]"),gs=0,Id=1,ni=2,el=3,tl=/[<>\r\n]/g,uh=/["';,\r\n]/g,vo=Function.prototype.bind,hh=Symbol.for("react.client.reference"),no={};Object.freeze(no);var ms={},zi=null,Ad={},Ed={},Pd=new Set,nl=new Set,fh=new Set,Tu=new Set,_l=new Set,ph=new Set,Rd=new Set,Yh=new Set,Su=new Set,Zh={enqueueSetState:function(o,l,v){var S=o._reactInternals;S.queue===null?Hr(o,"setState"):(S.queue.push(l),v!=null&&Io(v))},enqueueReplaceState:function(o,l,v){o=o._reactInternals,o.replace=!0,o.queue=[l],v!=null&&Io(v)},enqueueForceUpdate:function(o,l){o._reactInternals.queue===null?Hr(o,"forceUpdate"):l!=null&&Io(l)}},Fd={id:1,overflow:""},Ul=Math.clz32?Math.clz32:ad,D0=Math.log,N0=Math.LN2,ri=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),yh=null,z0=typeof Object.is=="function"?Object.is:od,Fr=null,Hi=null,la=null,vs=null,ko=null,ln=null,Oa=!1,Bi=!1,ur=0,Nc=0,Od=-1,gh=0,Wl=null,rl=null,zc=0,Vo=!1,al,Hc={readContext:th,use:function(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return kr(o);if(o.$$typeof===En)return th(o)}throw Error("An unsupported type was passed to use(): "+String(o))},useContext:function(o){return al="useContext",In(),o._currentValue},useMemo:kl,useReducer:vl,useRef:function(o){Fr=In(),ln=ml();var l=ln.memoizedState;return l===null?(o={current:o},Object.seal(o),ln.memoizedState=o):l},useState:function(o){return al="useState",vl(nh,o)},useInsertionEffect:Qr,useLayoutEffect:Qr,useCallback:function(o,l){return kl(function(){return o},l)},useImperativeHandle:Qr,useEffect:Qr,useDebugValue:Qr,useDeferredValue:function(o,l){return In(),l!==void 0?l:o},useTransition:function(){return In(),[!1,sd]},useId:function(){var o=Hi.treeContext,l=o.overflow;o=o.id,o=(o&~(1<<32-Ul(o)-1)).toString(32)+l;var v=s;if(v===null)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");return l=ur++,o="_"+v.idPrefix+"R_"+o,0<l&&(o+="H"+l.toString(32)),o+"_"},useSyncExternalStore:function(o,l,v){if(v===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return v()},useOptimistic:function(o){return In(),[o,hc]},useActionState:fc,useFormState:fc,useHostTransitionStatus:function(){return In(),an},useMemoCache:function(o){for(var l=Array(o),v=0;v<o;v++)l[v]=Do;return l},useCacheRefresh:function(){return bl},useEffectEvent:function(){return jo}},s=null,u=null,k={getCacheForType:function(){throw Error("Not implemented.")},cacheSignal:function(){throw Error("Not implemented.")},getOwner:function(){return u===null?null:u.componentStack}},L=0,R,V,Q,re,Te,he,we;pc.__reactDisabledLog=!0;var Ue,Je,Ye=!1,Ae=new(typeof WeakMap=="function"?WeakMap:Map),Ht={react_stack_bottom_frame:function(o,l,v){return o(l,v)}},bn=Ht.react_stack_bottom_frame.bind(Ht),kt={react_stack_bottom_frame:function(o){return o.render()}},en=kt.react_stack_bottom_frame.bind(kt),Wr={react_stack_bottom_frame:function(o){var l=o._init;return l(o._payload)}},Yr=Wr.react_stack_bottom_frame.bind(Wr),on=0;if(typeof performance=="object"&&typeof performance.now=="function")var Lr=performance,ai=function(){return Lr.now()};else{var Ta=Date;ai=function(){return Ta.now()}}var ot=4,un=0,hn=1,gn=2,Yn=3,Gt=4,Ft=5,ca=14,fn=null,Zr={},Fn={},Da={},Yl={},Na=!1,oi=!1,ii=!1,si=0,Or=!1;Oo(),Oo(),P0.prerender=function(o,l){return new Promise(function(v,S){var P=l?l.onHeaders:void 0,B;P&&(B=function(pe){P(new Headers(pe))});var G=Lt(l?l.identifierPrefix:void 0,l?l.unstable_externalRuntimeSrc:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),$=ka(o,G,Ce(G,void 0,l?l.unstable_externalRuntimeSrc:void 0,l?l.importMap:void 0,B,l?l.maxHeadersLength:void 0),fe(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,function(){var pe=new ReadableStream({type:"bytes",pull:function(Re){Qa($,Re)},cancel:function(Re){$.destination=null,yn($,Re)}},{highWaterMark:0});pe={postponed:An($),prelude:pe},v(pe)},void 0,void 0,S,l?l.onPostpone:void 0);if(l&&l.signal){var be=l.signal;if(be.aborted)yn($,be.reason);else{var oe=function(){yn($,be.reason),be.removeEventListener("abort",oe)};be.addEventListener("abort",oe)}}Ja($)})},P0.renderToReadableStream=function(o,l){return new Promise(function(v,S){var P,B,G=new Promise(function(De,Ie){B=De,P=Ie}),$=l?l.onHeaders:void 0,be;$&&(be=function(De){$(new Headers(De))});var oe=Lt(l?l.identifierPrefix:void 0,l?l.unstable_externalRuntimeSrc:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),pe=xl(o,oe,Ce(oe,l?l.nonce:void 0,l?l.unstable_externalRuntimeSrc:void 0,l?l.importMap:void 0,be,l?l.maxHeadersLength:void 0),fe(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,B,function(){var De=new ReadableStream({type:"bytes",pull:function(Ie){Qa(pe,Ie)},cancel:function(Ie){pe.destination=null,yn(pe,Ie)}},{highWaterMark:0});De.allReady=G,v(De)},function(De){G.catch(function(){}),S(De)},P,l?l.onPostpone:void 0,l?l.formState:void 0);if(l&&l.signal){var Re=l.signal;if(Re.aborted)yn(pe,Re.reason);else{var Ne=function(){yn(pe,Re.reason),Re.removeEventListener("abort",Ne)};Re.addEventListener("abort",Ne)}}Ja(pe)})},P0.resume=function(o,l,v){return new Promise(function(S,P){var B,G,$=new Promise(function(Re,Ne){G=Re,B=Ne}),be=Cr(o,l,Ce(l.resumableState,v?v.nonce:void 0,void 0,void 0,void 0,void 0),v?v.onError:void 0,G,function(){var Re=new ReadableStream({type:"bytes",pull:function(Ne){Qa(be,Ne)},cancel:function(Ne){be.destination=null,yn(be,Ne)}},{highWaterMark:0});Re.allReady=$,S(Re)},function(Re){$.catch(function(){}),P(Re)},B,v?v.onPostpone:void 0);if(v&&v.signal){var oe=v.signal;if(oe.aborted)yn(be,oe.reason);else{var pe=function(){yn(be,oe.reason),oe.removeEventListener("abort",pe)};oe.addEventListener("abort",pe)}}Ja(be)})},P0.resumeAndPrerender=function(o,l,v){return new Promise(function(S,P){var B=xn(o,l,Ce(l.resumableState,void 0,void 0,void 0,void 0,void 0),v?v.onError:void 0,function(){var be=new ReadableStream({type:"bytes",pull:function(oe){Qa(B,oe)},cancel:function(oe){B.destination=null,yn(B,oe)}},{highWaterMark:0});be={postponed:An(B),prelude:be},S(be)},void 0,void 0,P,v?v.onPostpone:void 0);if(v&&v.signal){var G=v.signal;if(G.aborted)yn(B,G.reason);else{var $=function(){yn(B,G.reason),G.removeEventListener("abort",$)};G.addEventListener("abort",$)}}Ja(B)})},P0.version="19.2.4"})()),P0}var mY;function Xae(){if(mY)return A0;mY=1;var e,t;return process.env.NODE_ENV==="production"?(e=Yae(),t=Zae()):(e=Gae(),t=jae()),A0.version=e.version,A0.renderToString=e.renderToString,A0.renderToStaticMarkup=e.renderToStaticMarkup,A0.renderToReadableStream=t.renderToReadableStream,A0.resume=t.resume,A0}var Kae=Xae(),hF={exports:{}},fF={exports:{}},Xn={};var vY;function Jae(){if(vY)return Xn;vY=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,y=e?Symbol.for("react.context"):60110,b=e?Symbol.for("react.async_mode"):60111,x=e?Symbol.for("react.concurrent_mode"):60111,T=e?Symbol.for("react.forward_ref"):60112,M=e?Symbol.for("react.suspense"):60113,I=e?Symbol.for("react.suspense_list"):60120,O=e?Symbol.for("react.memo"):60115,N=e?Symbol.for("react.lazy"):60116,D=e?Symbol.for("react.block"):60121,H=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,X=e?Symbol.for("react.scope"):60119;function K(J){if(typeof J=="object"&&J!==null){var ne=J.$$typeof;switch(ne){case t:switch(J=J.type,J){case b:case x:case r:case i:case a:case M:return J;default:switch(J=J&&J.$$typeof,J){case y:case T:case N:case O:case c:return J;default:return ne}}case n:return ne}}}function te(J){return K(J)===x}return Xn.AsyncMode=b,Xn.ConcurrentMode=x,Xn.ContextConsumer=y,Xn.ContextProvider=c,Xn.Element=t,Xn.ForwardRef=T,Xn.Fragment=r,Xn.Lazy=N,Xn.Memo=O,Xn.Portal=n,Xn.Profiler=i,Xn.StrictMode=a,Xn.Suspense=M,Xn.isAsyncMode=function(J){return te(J)||K(J)===b},Xn.isConcurrentMode=te,Xn.isContextConsumer=function(J){return K(J)===y},Xn.isContextProvider=function(J){return K(J)===c},Xn.isElement=function(J){return typeof J=="object"&&J!==null&&J.$$typeof===t},Xn.isForwardRef=function(J){return K(J)===T},Xn.isFragment=function(J){return K(J)===r},Xn.isLazy=function(J){return K(J)===N},Xn.isMemo=function(J){return K(J)===O},Xn.isPortal=function(J){return K(J)===n},Xn.isProfiler=function(J){return K(J)===i},Xn.isStrictMode=function(J){return K(J)===a},Xn.isSuspense=function(J){return K(J)===M},Xn.isValidElementType=function(J){return typeof J=="string"||typeof J=="function"||J===r||J===x||J===i||J===a||J===M||J===I||typeof J=="object"&&J!==null&&(J.$$typeof===N||J.$$typeof===O||J.$$typeof===c||J.$$typeof===y||J.$$typeof===T||J.$$typeof===H||J.$$typeof===_||J.$$typeof===X||J.$$typeof===D)},Xn.typeOf=K,Xn}var Kn={};var kY;function Qae(){return kY||(kY=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,y=e?Symbol.for("react.context"):60110,b=e?Symbol.for("react.async_mode"):60111,x=e?Symbol.for("react.concurrent_mode"):60111,T=e?Symbol.for("react.forward_ref"):60112,M=e?Symbol.for("react.suspense"):60113,I=e?Symbol.for("react.suspense_list"):60120,O=e?Symbol.for("react.memo"):60115,N=e?Symbol.for("react.lazy"):60116,D=e?Symbol.for("react.block"):60121,H=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,X=e?Symbol.for("react.scope"):60119;function K(Ge){return typeof Ge=="string"||typeof Ge=="function"||Ge===r||Ge===x||Ge===i||Ge===a||Ge===M||Ge===I||typeof Ge=="object"&&Ge!==null&&(Ge.$$typeof===N||Ge.$$typeof===O||Ge.$$typeof===c||Ge.$$typeof===y||Ge.$$typeof===T||Ge.$$typeof===H||Ge.$$typeof===_||Ge.$$typeof===X||Ge.$$typeof===D)}function te(Ge){if(typeof Ge=="object"&&Ge!==null){var rt=Ge.$$typeof;switch(rt){case t:var rn=Ge.type;switch(rn){case b:case x:case r:case i:case a:case M:return rn;default:var _t=rn&&rn.$$typeof;switch(_t){case y:case T:case N:case O:case c:return _t;default:return rt}}case n:return rt}}}var J=b,ne=x,ue=y,ye=c,Ee=t,Ve=T,tt=r,st=N,Be=O,Qe=n,Fe=i,ie=a,me=M,Ce=!1;function Lt(Ge){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ae(Ge)||te(Ge)===b}function ae(Ge){return te(Ge)===x}function U(Ge){return te(Ge)===y}function fe(Ge){return te(Ge)===c}function Se(Ge){return typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===t}function Oe(Ge){return te(Ge)===T}function Ke(Ge){return te(Ge)===r}function nt(Ge){return te(Ge)===N}function Pe(Ge){return te(Ge)===O}function yt(Ge){return te(Ge)===n}function ut(Ge){return te(Ge)===i}function at(Ge){return te(Ge)===a}function It(Ge){return te(Ge)===M}Kn.AsyncMode=J,Kn.ConcurrentMode=ne,Kn.ContextConsumer=ue,Kn.ContextProvider=ye,Kn.Element=Ee,Kn.ForwardRef=Ve,Kn.Fragment=tt,Kn.Lazy=st,Kn.Memo=Be,Kn.Portal=Qe,Kn.Profiler=Fe,Kn.StrictMode=ie,Kn.Suspense=me,Kn.isAsyncMode=Lt,Kn.isConcurrentMode=ae,Kn.isContextConsumer=U,Kn.isContextProvider=fe,Kn.isElement=Se,Kn.isForwardRef=Oe,Kn.isFragment=Ke,Kn.isLazy=nt,Kn.isMemo=Pe,Kn.isPortal=yt,Kn.isProfiler=ut,Kn.isStrictMode=at,Kn.isSuspense=It,Kn.isValidElementType=K,Kn.typeOf=te})()),Kn}var bY;function xY(){return bY||(bY=1,process.env.NODE_ENV==="production"?fF.exports=Jae():fF.exports=Qae()),fF.exports}var uN,wY;function qae(){if(wY)return uN;wY=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},y=0;y<10;y++)c["_"+String.fromCharCode(y)]=y;var b=Object.getOwnPropertyNames(c).map(function(T){return c[T]});if(b.join("")!=="0123456789")return!1;var x={};return"abcdefghijklmnopqrst".split("").forEach(function(T){x[T]=T}),Object.keys(Object.assign({},x)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return uN=a()?Object.assign:function(i,c){for(var y,b=r(i),x,T=1;T<arguments.length;T++){y=Object(arguments[T]);for(var M in y)t.call(y,M)&&(b[M]=y[M]);if(e){x=e(y);for(var I=0;I<x.length;I++)n.call(y,x[I])&&(b[x[I]]=y[x[I]])}}return b},uN}var hN,MY;function fN(){if(MY)return hN;MY=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hN=e,hN}var pN,CY;function TY(){return CY||(CY=1,pN=Function.call.bind(Object.prototype.hasOwnProperty)),pN}var yN,SY;function $ae(){if(SY)return yN;SY=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=fN(),n={},r=TY();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function a(i,c,y,b,x){if(process.env.NODE_ENV!=="production"){for(var T in i)if(r(i,T)){var M;try{if(typeof i[T]!="function"){var I=Error((b||"React class")+": "+y+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}M=i[T](c,T,b,y,null,t)}catch(N){M=N}if(M&&!(M instanceof Error)&&e((b||"React class")+": type specification of "+y+" `"+T+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof M+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),M instanceof Error&&!(M.message in n)){n[M.message]=!0;var O=x?x():"";e("Failed "+y+" type: "+M.message+(O??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},yN=a,yN}var gN,LY;function eoe(){if(LY)return gN;LY=1;var e=xY(),t=qae(),n=fN(),r=TY(),a=$ae(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(y){var b="Warning: "+y;typeof console<"u"&&console.error(b);try{throw new Error(b)}catch{}});function c(){return null}return gN=function(y,b){var x=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function M(ae){var U=ae&&(x&&ae[x]||ae[T]);if(typeof U=="function")return U}var I="<<anonymous>>",O={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:X(),arrayOf:K,element:te(),elementType:J(),instanceOf:ne,node:Ve(),objectOf:ye,oneOf:ue,oneOfType:Ee,shape:st,exact:Be};function N(ae,U){return ae===U?ae!==0||1/ae===1/U:ae!==ae&&U!==U}function D(ae,U){this.message=ae,this.data=U&&typeof U=="object"?U:{},this.stack=""}D.prototype=Error.prototype;function H(ae){if(process.env.NODE_ENV!=="production")var U={},fe=0;function Se(Ke,nt,Pe,yt,ut,at,It){if(yt=yt||I,at=at||Pe,It!==n){if(b){var Ge=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ge.name="Invariant Violation",Ge}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var rt=yt+":"+Pe;!U[rt]&&fe<3&&(i("You are manually calling a React.PropTypes validation function for the `"+at+"` prop on `"+yt+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[rt]=!0,fe++)}}return nt[Pe]==null?Ke?nt[Pe]===null?new D("The "+ut+" `"+at+"` is marked as required "+("in `"+yt+"`, but its value is `null`.")):new D("The "+ut+" `"+at+"` is marked as required in "+("`"+yt+"`, but its value is `undefined`.")):null:ae(nt,Pe,yt,ut,at)}var Oe=Se.bind(null,!1);return Oe.isRequired=Se.bind(null,!0),Oe}function _(ae){function U(fe,Se,Oe,Ke,nt,Pe){var yt=fe[Se],ut=ie(yt);if(ut!==ae){var at=me(yt);return new D("Invalid "+Ke+" `"+nt+"` of type "+("`"+at+"` supplied to `"+Oe+"`, expected ")+("`"+ae+"`."),{expectedType:ae})}return null}return H(U)}function X(){return H(c)}function K(ae){function U(fe,Se,Oe,Ke,nt){if(typeof ae!="function")return new D("Property `"+nt+"` of component `"+Oe+"` has invalid PropType notation inside arrayOf.");var Pe=fe[Se];if(!Array.isArray(Pe)){var yt=ie(Pe);return new D("Invalid "+Ke+" `"+nt+"` of type "+("`"+yt+"` supplied to `"+Oe+"`, expected an array."))}for(var ut=0;ut<Pe.length;ut++){var at=ae(Pe,ut,Oe,Ke,nt+"["+ut+"]",n);if(at instanceof Error)return at}return null}return H(U)}function te(){function ae(U,fe,Se,Oe,Ke){var nt=U[fe];if(!y(nt)){var Pe=ie(nt);return new D("Invalid "+Oe+" `"+Ke+"` of type "+("`"+Pe+"` supplied to `"+Se+"`, expected a single ReactElement."))}return null}return H(ae)}function J(){function ae(U,fe,Se,Oe,Ke){var nt=U[fe];if(!e.isValidElementType(nt)){var Pe=ie(nt);return new D("Invalid "+Oe+" `"+Ke+"` of type "+("`"+Pe+"` supplied to `"+Se+"`, expected a single ReactElement type."))}return null}return H(ae)}function ne(ae){function U(fe,Se,Oe,Ke,nt){if(!(fe[Se]instanceof ae)){var Pe=ae.name||I,yt=Lt(fe[Se]);return new D("Invalid "+Ke+" `"+nt+"` of type "+("`"+yt+"` supplied to `"+Oe+"`, expected ")+("instance of `"+Pe+"`."))}return null}return H(U)}function ue(ae){if(!Array.isArray(ae))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function U(fe,Se,Oe,Ke,nt){for(var Pe=fe[Se],yt=0;yt<ae.length;yt++)if(N(Pe,ae[yt]))return null;var ut=JSON.stringify(ae,function(It,Ge){var rt=me(Ge);return rt==="symbol"?String(Ge):Ge});return new D("Invalid "+Ke+" `"+nt+"` of value `"+String(Pe)+"` "+("supplied to `"+Oe+"`, expected one of "+ut+"."))}return H(U)}function ye(ae){function U(fe,Se,Oe,Ke,nt){if(typeof ae!="function")return new D("Property `"+nt+"` of component `"+Oe+"` has invalid PropType notation inside objectOf.");var Pe=fe[Se],yt=ie(Pe);if(yt!=="object")return new D("Invalid "+Ke+" `"+nt+"` of type "+("`"+yt+"` supplied to `"+Oe+"`, expected an object."));for(var ut in Pe)if(r(Pe,ut)){var at=ae(Pe,ut,Oe,Ke,nt+"."+ut,n);if(at instanceof Error)return at}return null}return H(U)}function Ee(ae){if(!Array.isArray(ae))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var U=0;U<ae.length;U++){var fe=ae[U];if(typeof fe!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ce(fe)+" at index "+U+"."),c}function Se(Oe,Ke,nt,Pe,yt){for(var ut=[],at=0;at<ae.length;at++){var It=ae[at],Ge=It(Oe,Ke,nt,Pe,yt,n);if(Ge==null)return null;Ge.data&&r(Ge.data,"expectedType")&&ut.push(Ge.data.expectedType)}var rt=ut.length>0?", expected one of type ["+ut.join(", ")+"]":"";return new D("Invalid "+Pe+" `"+yt+"` supplied to "+("`"+nt+"`"+rt+"."))}return H(Se)}function Ve(){function ae(U,fe,Se,Oe,Ke){return Qe(U[fe])?null:new D("Invalid "+Oe+" `"+Ke+"` supplied to "+("`"+Se+"`, expected a ReactNode."))}return H(ae)}function tt(ae,U,fe,Se,Oe){return new D((ae||"React class")+": "+U+" type `"+fe+"."+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Oe+"`.")}function st(ae){function U(fe,Se,Oe,Ke,nt){var Pe=fe[Se],yt=ie(Pe);if(yt!=="object")return new D("Invalid "+Ke+" `"+nt+"` of type `"+yt+"` "+("supplied to `"+Oe+"`, expected `object`."));for(var ut in ae){var at=ae[ut];if(typeof at!="function")return tt(Oe,Ke,nt,ut,me(at));var It=at(Pe,ut,Oe,Ke,nt+"."+ut,n);if(It)return It}return null}return H(U)}function Be(ae){function U(fe,Se,Oe,Ke,nt){var Pe=fe[Se],yt=ie(Pe);if(yt!=="object")return new D("Invalid "+Ke+" `"+nt+"` of type `"+yt+"` "+("supplied to `"+Oe+"`, expected `object`."));var ut=t({},fe[Se],ae);for(var at in ut){var It=ae[at];if(r(ae,at)&&typeof It!="function")return tt(Oe,Ke,nt,at,me(It));if(!It)return new D("Invalid "+Ke+" `"+nt+"` key `"+at+"` supplied to `"+Oe+"`.\nBad object: "+JSON.stringify(fe[Se],null," ")+`
332
332
  Valid keys: `+JSON.stringify(Object.keys(ae),null," "));var Ge=It(Pe,at,Oe,Ke,nt+"."+at,n);if(Ge)return Ge}return null}return H(U)}function Qe(ae){switch(typeof ae){case"number":case"string":case"undefined":return!0;case"boolean":return!ae;case"object":if(Array.isArray(ae))return ae.every(Qe);if(ae===null||y(ae))return!0;var U=M(ae);if(U){var fe=U.call(ae),Se;if(U!==ae.entries){for(;!(Se=fe.next()).done;)if(!Qe(Se.value))return!1}else for(;!(Se=fe.next()).done;){var Oe=Se.value;if(Oe&&!Qe(Oe[1]))return!1}}else return!1;return!0;default:return!1}}function Fe(ae,U){return ae==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function ie(ae){var U=typeof ae;return Array.isArray(ae)?"array":ae instanceof RegExp?"object":Fe(U,ae)?"symbol":U}function me(ae){if(typeof ae>"u"||ae===null)return""+ae;var U=ie(ae);if(U==="object"){if(ae instanceof Date)return"date";if(ae instanceof RegExp)return"regexp"}return U}function Ce(ae){var U=me(ae);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function Lt(ae){return!ae.constructor||!ae.constructor.name?I:ae.constructor.name}return O.checkPropTypes=a,O.resetWarningCache=a.resetWarningCache,O.PropTypes=O,O},gN}var mN,IY;function toe(){if(IY)return mN;IY=1;var e=fN();function t(){}function n(){}return n.resetWarningCache=t,mN=function(){function r(c,y,b,x,T,M){if(M!==e){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},mN}var AY;function noe(){if(AY)return hF.exports;if(AY=1,process.env.NODE_ENV!=="production"){var e=xY(),t=!0;hF.exports=eoe()(e.isElement,t)}else hF.exports=toe()();return hF.exports}var roe=noe();const td=yZ(roe);var aoe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function EY(e,t){return e(t={exports:{}},t.exports),t.exports}var ooe=EY((function(e){(function(t){var n=function(H,_,X){if(!b(_)||T(_)||M(_)||I(_)||y(_))return _;var K,te=0,J=0;if(x(_))for(K=[],J=_.length;te<J;te++)K.push(n(H,_[te],X));else for(var ne in K={},_)Object.prototype.hasOwnProperty.call(_,ne)&&(K[H(ne,X)]=n(H,_[ne],X));return K},r=function(H){return O(H)?H:(H=H.replace(/[\-_\s]+(.)?/g,(function(_,X){return X?X.toUpperCase():""}))).substr(0,1).toLowerCase()+H.substr(1)},a=function(H){var _=r(H);return _.substr(0,1).toUpperCase()+_.substr(1)},i=function(H,_){return(function(X,K){var te=(K=K||{}).separator||"_",J=K.split||/(?=[A-Z])/;return X.split(J).join(te)})(H,_).toLowerCase()},c=Object.prototype.toString,y=function(H){return typeof H=="function"},b=function(H){return H===Object(H)},x=function(H){return c.call(H)=="[object Array]"},T=function(H){return c.call(H)=="[object Date]"},M=function(H){return c.call(H)=="[object RegExp]"},I=function(H){return c.call(H)=="[object Boolean]"},O=function(H){return(H-=0)==H},N=function(H,_){var X=_&&"process"in _?_.process:_;return typeof X!="function"?H:function(K,te){return X(K,H,te)}},D={camelize:r,decamelize:i,pascalize:a,depascalize:i,camelizeKeys:function(H,_){return n(N(r,_),H)},decamelizeKeys:function(H,_){return n(N(i,_),H,_)},pascalizeKeys:function(H,_){return n(N(a,_),H)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=D:t.humps=D})(aoe)})).decamelize,ioe=function(e){if(Array.isArray(e))return e},soe=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var c,y=e[Symbol.iterator]();!(r=(c=y.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(b){a=!0,i=b}finally{try{r||y.return==null||y.return()}finally{if(a)throw i}}return n}},PY=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},loe=function(e,t){if(e){if(typeof e=="string")return PY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PY(e,t):void 0}},coe=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
333
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},doe=function(e,t){return ioe(e)||soe(e,t)||loe(e,t)||coe()},RY=EY((function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])}return n},t.apply(this,arguments)}e.exports=t})),uoe=function(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a},FY=function(e,t){if(e==null)return{};var n,r,a=uoe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},hoe=de.createContext(null);function OY(e){var t=e.children,n=t===void 0?"":t,r=FY(e,["children"]);return typeof n!="string"&&(n=Kae.renderToString(n)),de.createElement("template",RY({},r,{dangerouslySetInnerHTML:{__html:n}}))}function DY(e){var t=e.root,n=e.children;return Qh.createPortal(n===void 0?null:n,t)}function foe(e){var t=de.forwardRef((function(n,r){var a,i,c=n.mode,y=c===void 0?"open":c,b=n.delegatesFocus,x=b!==void 0&&b,T=n.styleSheets,M=T===void 0?[]:T,I=n.ssr,O=I!==void 0&&I,N=n.children,D=FY(n,["mode","delegatesFocus","styleSheets","ssr","children"]),H=(i=de.useRef((a=r)&&a.current),de.useEffect((function(){a&&(a.current=i.current)}),[a]),i),_=de.useState(null),X=doe(_,2),K=X[0],te=X[1],J="node_".concat(y).concat(x);return de.useLayoutEffect((function(){if(H.current)try{if(typeof r=="function"&&r(H.current),O){var ne=H.current.shadowRoot;return void te(ne)}var ue=H.current.attachShadow({mode:y,delegatesFocus:x});M.length>0&&(ue.adoptedStyleSheets=M),te(ue)}catch(ye){(function(Ee){var Ve=Ee.error,tt=Ee.styleSheets,st=Ee.root;if(Ve.name==="NotSupportedError")tt.length>0&&(st.adoptedStyleSheets=tt);else throw Ve})({error:ye,styleSheets:M,root:K})}}),[r,H,M]),de.createElement(de.Fragment,null,de.createElement(e.tag,RY({key:J,ref:H},D),(K||O)&&de.createElement(hoe.Provider,{value:K},O?de.createElement(OY,{shadowroot:y,shadowrootmode:y},e.render({root:K,ssr:O,children:N})):de.createElement(DY,{root:K},e.render({root:K,ssr:O,children:N})))))}));return t.propTypes={mode:td.oneOf(["open","closed"]),delegatesFocus:td.bool,styleSheets:td.arrayOf(td.instanceOf(globalThis.CSSStyleSheet)),ssr:td.bool,children:td.node},t}OY.propTypes={children:td.oneOfType([td.string,td.node])},DY.propTypes={root:td.object.isRequired,children:td.node};var vN=new Map;function poe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,a){var i=ooe(a,{separator:"-"}),c="".concat(t,"-").concat(i);return vN.has(c)||vN.set(c,foe({tag:i,render:n})),vN.get(c)}})}var NY=poe();const zY=`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-x-reverse:0}}}@layer tasks-timeline-app{@layer theme{:root,:host{--font-sans:Inter,sans-serif;--font-mono:"JetBrains Mono",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-amber-50:hsl(var(--amber-50));--color-amber-100:hsl(var(--amber-100));--color-amber-200:hsl(var(--amber-200));--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:hsl(var(--amber-500));--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:hsl(var(--amber-700));--color-amber-900:oklch(41.4% .112 45.904);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:hsl(var(--emerald-50));--color-emerald-100:hsl(var(--emerald-100));--color-emerald-200:hsl(var(--emerald-200));--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:hsl(var(--emerald-400));--color-emerald-500:hsl(var(--emerald-500));--color-emerald-600:hsl(var(--emerald-600));--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-900:oklch(37.8% .077 168.94);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:hsl(var(--blue-50));--color-blue-100:hsl(var(--blue-100));--color-blue-200:hsl(var(--blue-200));--color-blue-300:hsl(var(--blue-300));--color-blue-400:hsl(var(--blue-400));--color-blue-500:hsl(var(--blue-500));--color-blue-600:hsl(var(--blue-600));--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-indigo-400:oklch(67.3% .182 276.935);--color-purple-50:hsl(var(--purple-50));--color-purple-100:hsl(var(--purple-100));--color-purple-200:hsl(var(--purple-200));--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:hsl(var(--purple-400));--color-purple-500:hsl(var(--purple-500));--color-purple-600:hsl(var(--purple-600));--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-rose-50:hsl(var(--rose-50));--color-rose-100:hsl(var(--rose-100));--color-rose-200:hsl(var(--rose-200));--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:hsl(var(--rose-500));--color-rose-600:hsl(var(--rose-600));--color-rose-700:hsl(var(--rose-700));--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-slate-50:hsl(var(--slate-50));--color-slate-100:hsl(var(--slate-100));--color-slate-200:hsl(var(--slate-200));--color-slate-300:hsl(var(--slate-300));--color-slate-400:hsl(var(--slate-400));--color-slate-500:hsl(var(--slate-500));--color-slate-600:hsl(var(--slate-600));--color-slate-700:hsl(var(--slate-700));--color-slate-800:hsl(var(--slate-800));--color-slate-900:hsl(var(--slate-900));--color-slate-950:hsl(var(--slate-950));--color-gray-50:oklch(98.5% .002 247.839);--color-black:#000;--color-white:hsl(var(--background));--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:var(--radius);--color-background:hsl(var(--background));--color-foreground:hsl(var(--foreground));--color-popover:hsl(var(--popover));--color-popover-foreground:hsl(var(--popover-foreground));--color-primary:hsl(var(--primary));--color-primary-foreground:hsl(var(--primary-foreground));--color-secondary:hsl(var(--secondary));--color-secondary-foreground:hsl(var(--secondary-foreground));--color-muted:hsl(var(--muted));--color-muted-foreground:hsl(var(--muted-foreground));--color-accent:hsl(var(--accent));--color-accent-foreground:hsl(var(--accent-foreground));--color-destructive:hsl(var(--destructive));--color-destructive-foreground:hsl(var(--destructive-foreground));--color-border:hsl(var(--border));--color-input:hsl(var(--input));--color-ring:hsl(var(--ring));--color-paper:hsl(var(--card))}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-0{top:calc(var(--spacing)*0)}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1{top:calc(var(--spacing)*1)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-2\\.5{top:calc(var(--spacing)*2.5)}.top-3{top:calc(var(--spacing)*3)}.top-4{top:calc(var(--spacing)*4)}.top-5{top:calc(var(--spacing)*5)}.top-\\[50\\%\\]{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-6{right:calc(var(--spacing)*6)}.right-8{right:calc(var(--spacing)*8)}.-bottom-1{bottom:calc(var(--spacing)*-1)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-2{bottom:calc(var(--spacing)*2)}.bottom-6{bottom:calc(var(--spacing)*6)}.left-0{left:calc(var(--spacing)*0)}.left-0\\.5{left:calc(var(--spacing)*.5)}.left-1{left:calc(var(--spacing)*1)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-\\[50\\%\\]{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-9999{z-index:9999}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-0\\.5{margin-inline:calc(var(--spacing)*.5)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.-mt-1{margin-top:calc(var(--spacing)*-1)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-10{margin-top:calc(var(--spacing)*10)}.-mr-1{margin-right:calc(var(--spacing)*-1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-4\\.5{height:calc(var(--spacing)*4.5)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-6{height:calc(var(--spacing)*6)}.h-6\\.5{height:calc(var(--spacing)*6.5)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-9\\.5{height:calc(var(--spacing)*9.5)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-16{height:calc(var(--spacing)*16)}.h-24{height:calc(var(--spacing)*24)}.h-28{height:calc(var(--spacing)*28)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:calc(var(--spacing)*40)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-\\[40vh\\]{max-height:40vh}.max-h-\\[60vh\\]{max-height:60vh}.max-h-\\[85vh\\]{max-height:85vh}.max-h-\\[var\\(--radix-dropdown-menu-content-available-height\\)\\]{max-height:var(--radix-dropdown-menu-content-available-height)}.min-h-5\\.5{min-height:calc(var(--spacing)*5.5)}.min-h-20{min-height:calc(var(--spacing)*20)}.min-h-100{min-height:calc(var(--spacing)*100)}.min-h-\\[38px\\]{min-height:38px}.min-h-screen{min-height:100vh}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-44{width:calc(var(--spacing)*44)}.w-48{width:calc(var(--spacing)*48)}.w-56{width:calc(var(--spacing)*56)}.w-72{width:calc(var(--spacing)*72)}.w-\\[280px\\]{width:280px}.w-\\[400px\\]{width:400px}.w-\\[600px\\]{width:600px}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[120px\\]{max-width:120px}.max-w-\\[350px\\]{max-width:350px}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-4{min-width:calc(var(--spacing)*4)}.min-w-50{min-width:calc(var(--spacing)*50)}.min-w-80{min-width:calc(var(--spacing)*80)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[250px\\]{min-width:250px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-\\[--radix-dropdown-menu-content-transform-origin\\]{transform-origin:--radix-dropdown-menu-content-transform-origin}.origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:--radix-popover-content-transform-origin}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.resize{resize:both}.resize-none{resize:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\\[auto_1fr\\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-start\\!{justify-content:flex-start!important}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-y-1{row-gap:calc(var(--spacing)*1)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:var(--radius)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-\\[\\#e8e4db\\]{border-color:#e8e4db}.border-amber-100\\/50{border-color:color-mix(in srgb,hsl(var(--amber-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-amber-100\\/50{border-color:color-mix(in oklab,var(--color-amber-100)50%,transparent)}}.border-amber-200{border-color:var(--color-amber-200)}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-100\\/50{border-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-blue-100\\/50{border-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-600{border-color:var(--color-blue-600)}.border-border{border-color:var(--color-border)}.border-emerald-100\\/50{border-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-emerald-100\\/50{border-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-200\\/50{border-color:color-mix(in srgb,hsl(var(--emerald-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-emerald-200\\/50{border-color:color-mix(in oklab,var(--color-emerald-200)50%,transparent)}}.border-green-200{border-color:var(--color-green-200)}.border-input{border-color:var(--color-input)}.border-purple-100{border-color:var(--color-purple-100)}.border-purple-200{border-color:var(--color-purple-200)}.border-purple-300{border-color:var(--color-purple-300)}.border-purple-400{border-color:var(--color-purple-400)}.border-red-200{border-color:var(--color-red-200)}.border-rose-100{border-color:var(--color-rose-100)}.border-rose-100\\/50{border-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-rose-100\\/50{border-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-rose-200{border-color:var(--color-rose-200)}.border-rose-200\\/50{border-color:color-mix(in srgb,hsl(var(--rose-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-rose-200\\/50{border-color:color-mix(in oklab,var(--color-rose-200)50%,transparent)}}.border-rose-400{border-color:var(--color-rose-400)}.border-slate-50{border-color:var(--color-slate-50)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-100\\/50{border-color:color-mix(in srgb,hsl(var(--slate-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-100\\/50{border-color:color-mix(in oklab,var(--color-slate-100)50%,transparent)}}.border-slate-100\\/80{border-color:color-mix(in srgb,hsl(var(--slate-100))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-100\\/80{border-color:color-mix(in oklab,var(--color-slate-100)80%,transparent)}}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-200\\/20{border-color:color-mix(in srgb,hsl(var(--slate-200))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/20{border-color:color-mix(in oklab,var(--color-slate-200)20%,transparent)}}.border-slate-200\\/50{border-color:color-mix(in srgb,hsl(var(--slate-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/50{border-color:color-mix(in oklab,var(--color-slate-200)50%,transparent)}}.border-slate-200\\/60{border-color:color-mix(in srgb,hsl(var(--slate-200))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/60{border-color:color-mix(in oklab,var(--color-slate-200)60%,transparent)}}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-slate-700{border-color:var(--color-slate-700)}.border-slate-800{border-color:var(--color-slate-800)}.border-transparent{border-color:#0000}.border-y-amber-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--amber-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-amber-100\\/50{border-block-color:color-mix(in oklab,var(--color-amber-100)50%,transparent)}}.border-y-blue-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-blue-100\\/50{border-block-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-y-emerald-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-emerald-100\\/50{border-block-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-y-rose-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-rose-100\\/50{border-block-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-r-amber-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--amber-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-amber-100\\/50{border-right-color:color-mix(in oklab,var(--color-amber-100)50%,transparent)}}.border-r-blue-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-blue-100\\/50{border-right-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-r-emerald-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-emerald-100\\/50{border-right-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-r-rose-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-rose-100\\/50{border-right-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-l-amber-500{border-left-color:var(--color-amber-500)}.border-l-blue-500{border-left-color:var(--color-blue-500)}.border-l-emerald-500{border-left-color:var(--color-emerald-500)}.border-l-rose-500{border-left-color:var(--color-rose-500)}.bg-\\[\\#0B1120\\]{background-color:#0b1120}.bg-\\[\\#1e1e1e\\]{background-color:#1e1e1e}.bg-\\[\\#29abe0\\]{background-color:#29abe0}.bg-\\[\\#FFDD00\\]{background-color:#fd0}.bg-\\[\\#f5f2eb\\]{background-color:#f5f2eb}.bg-accent{background-color:var(--color-accent)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-50\\/80{background-color:color-mix(in srgb,hsl(var(--amber-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\\/80{background-color:color-mix(in oklab,var(--color-amber-50)80%,transparent)}}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-background{background-color:var(--color-background)}.bg-black\\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/30{background-color:color-mix(in srgb,hsl(var(--blue-50))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/30{background-color:color-mix(in oklab,var(--color-blue-50)30%,transparent)}}.bg-blue-50\\/50{background-color:color-mix(in srgb,hsl(var(--blue-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/50{background-color:color-mix(in oklab,var(--color-blue-50)50%,transparent)}}.bg-blue-50\\/80{background-color:color-mix(in srgb,hsl(var(--blue-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/80{background-color:color-mix(in oklab,var(--color-blue-50)80%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-destructive{background-color:var(--color-destructive)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-50\\/80{background-color:color-mix(in srgb,hsl(var(--emerald-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\\/80{background-color:color-mix(in oklab,var(--color-emerald-50)80%,transparent)}}.bg-emerald-100\\/50{background-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-emerald-100\\/50{background-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-green-50{background-color:var(--color-green-50)}.bg-indigo-400{background-color:var(--color-indigo-400)}.bg-muted{background-color:var(--color-muted)}.bg-paper{background-color:var(--color-paper)}.bg-paper\\/50{background-color:color-mix(in srgb,hsl(var(--card))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-paper\\/50{background-color:color-mix(in oklab,var(--color-paper)50%,transparent)}}.bg-paper\\/95{background-color:color-mix(in srgb,hsl(var(--card))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-paper\\/95{background-color:color-mix(in oklab,var(--color-paper)95%,transparent)}}.bg-popover{background-color:var(--color-popover)}.bg-primary{background-color:var(--color-primary)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-400{background-color:var(--color-purple-400)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-50\\/50{background-color:color-mix(in srgb,hsl(var(--rose-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/50{background-color:color-mix(in oklab,var(--color-rose-50)50%,transparent)}}.bg-rose-50\\/60{background-color:color-mix(in srgb,hsl(var(--rose-50))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/60{background-color:color-mix(in oklab,var(--color-rose-50)60%,transparent)}}.bg-rose-50\\/80{background-color:color-mix(in srgb,hsl(var(--rose-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/80{background-color:color-mix(in oklab,var(--color-rose-50)80%,transparent)}}.bg-rose-100{background-color:var(--color-rose-100)}.bg-rose-100\\/50{background-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-100\\/50{background-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.bg-rose-300{background-color:var(--color-rose-300)}.bg-rose-500{background-color:var(--color-rose-500)}.bg-secondary{background-color:var(--color-secondary)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-50\\/30{background-color:color-mix(in srgb,hsl(var(--slate-50))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/30{background-color:color-mix(in oklab,var(--color-slate-50)30%,transparent)}}.bg-slate-50\\/50{background-color:color-mix(in srgb,hsl(var(--slate-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/50{background-color:color-mix(in oklab,var(--color-slate-50)50%,transparent)}}.bg-slate-50\\/80{background-color:color-mix(in srgb,hsl(var(--slate-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/80{background-color:color-mix(in oklab,var(--color-slate-50)80%,transparent)}}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-200\\/60{background-color:color-mix(in srgb,hsl(var(--slate-200))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-200\\/60{background-color:color-mix(in oklab,var(--color-slate-200)60%,transparent)}}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\\/40{background-color:color-mix(in srgb,hsl(var(--slate-900))40%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/40{background-color:color-mix(in oklab,var(--color-slate-900)40%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/50{background-color:color-mix(in srgb,hsl(var(--background))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-white\\/50{background-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.bg-white\\/95{background-color:color-mix(in srgb,hsl(var(--background))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-white\\/95{background-color:color-mix(in oklab,var(--color-white)95%,transparent)}}.bg-gradient-to-l{--tw-gradient-position:to left in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-white{--tw-gradient-from:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.fill-current{fill:currentColor}.p-0{padding:calc(var(--spacing)*0)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-0\\.5{padding-inline:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-10{padding-block:calc(var(--spacing)*10)}.pt-0\\.5{padding-top:calc(var(--spacing)*.5)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-6{padding-right:calc(var(--spacing)*6)}.pr-16{padding-right:calc(var(--spacing)*16)}.pr-20{padding-right:calc(var(--spacing)*20)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-1\\.5{padding-bottom:calc(var(--spacing)*1.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-10{padding-bottom:calc(var(--spacing)*10)}.pl-0\\.5{padding-left:calc(var(--spacing)*.5)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-9{padding-left:calc(var(--spacing)*9)}.text-center{text-align:center}.text-left{text-align:left}.text-left\\!{text-align:left!important}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[9px\\]{font-size:9px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[15px\\]{font-size:15px}.text-\\[length\\:inherit\\]{font-size:inherit}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-tighter{--tw-tracking:var(--tracking-tighter);letter-spacing:var(--tracking-tighter)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent-foreground{color:var(--color-accent-foreground)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-blue-400{color:var(--color-blue-400)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-600\\!{color:var(--color-blue-600)!important}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-destructive-foreground{color:var(--color-destructive-foreground)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-foreground{color:var(--color-foreground)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--color-muted-foreground)}.text-muted-foreground\\/40{color:color-mix(in srgb,hsl(var(--muted-foreground))40%,transparent)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/40{color:color-mix(in oklab,var(--color-muted-foreground)40%,transparent)}}.text-popover-foreground{color:var(--color-popover-foreground)}.text-primary{color:var(--color-primary)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-purple-300{color:var(--color-purple-300)}.text-purple-400{color:var(--color-purple-400)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-purple-900{color:var(--color-purple-900)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-700{color:var(--color-red-700)}.text-rose-400{color:var(--color-rose-400)}.text-rose-500{color:var(--color-rose-500)}.text-rose-600{color:var(--color-rose-600)}.text-rose-600\\!{color:var(--color-rose-600)!important}.text-rose-700{color:var(--color-rose-700)}.text-rose-900{color:var(--color-rose-900)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.text-sky-500{color:var(--color-sky-500)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.decoration-slate-300{-webkit-text-decoration-color:var(--color-slate-300);text-decoration-color:var(--color-slate-300)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-blue-200{--tw-shadow-color:hsl(var(--blue-200))}@supports (color:color-mix(in lab,red,red)){.shadow-blue-200{--tw-shadow-color:color-mix(in oklab,var(--color-blue-200)var(--tw-shadow-alpha),transparent)}}.shadow-emerald-100{--tw-shadow-color:hsl(var(--emerald-100))}@supports (color:color-mix(in lab,red,red)){.shadow-emerald-100{--tw-shadow-color:color-mix(in oklab,var(--color-emerald-100)var(--tw-shadow-alpha),transparent)}}.shadow-rose-100{--tw-shadow-color:hsl(var(--rose-100))}@supports (color:color-mix(in lab,red,red)){.shadow-rose-100{--tw-shadow-color:color-mix(in oklab,var(--color-rose-100)var(--tw-shadow-alpha),transparent)}}.shadow-rose-100\\/50{--tw-shadow-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.shadow-rose-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-rose-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-slate-100{--tw-shadow-color:hsl(var(--slate-100))}@supports (color:color-mix(in lab,red,red)){.shadow-slate-100{--tw-shadow-color:color-mix(in oklab,var(--color-slate-100)var(--tw-shadow-alpha),transparent)}}.shadow-slate-200{--tw-shadow-color:hsl(var(--slate-200))}@supports (color:color-mix(in lab,red,red)){.shadow-slate-200{--tw-shadow-color:color-mix(in oklab,var(--color-slate-200)var(--tw-shadow-alpha),transparent)}}.shadow-slate-200\\/50{--tw-shadow-color:color-mix(in srgb,hsl(var(--slate-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.shadow-slate-200\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-slate-200)50%,transparent)var(--tw-shadow-alpha),transparent)}}.ring-blue-200{--tw-ring-color:var(--color-blue-200)}.ring-primary\\/30{--tw-ring-color:color-mix(in srgb,hsl(var(--primary))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.ring-primary\\/30{--tw-ring-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.ring-purple-200{--tw-ring-color:var(--color-purple-200)}.ring-offset-background{--tw-ring-offset-color:var(--color-background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-first\\:hidden:is(:where(.group):first-child *){display:none}@media(hover:hover){.group-hover\\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\\:text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)}.group-hover\\:text-blue-600:is(:where(.group):hover *){color:var(--color-blue-600)}.group-hover\\:text-slate-400:is(:where(.group):hover *){color:var(--color-slate-400)}.group-hover\\:text-slate-700:is(:where(.group):hover *){color:var(--color-slate-700)}.group-hover\\:text-slate-900:is(:where(.group):hover *){color:var(--color-slate-900)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.selection\\:bg-rose-100 ::selection{background-color:var(--color-rose-100)}.selection\\:bg-rose-100::selection{background-color:var(--color-rose-100)}.selection\\:text-rose-900 ::selection{color:var(--color-rose-900)}.selection\\:text-rose-900::selection{color:var(--color-rose-900)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--color-foreground)}.placeholder\\:text-muted-foreground::placeholder{color:var(--color-muted-foreground)}.placeholder\\:text-purple-300::placeholder{color:var(--color-purple-300)}.placeholder\\:text-slate-400::placeholder{color:var(--color-slate-400)}.focus-within\\:border-blue-500:focus-within{border-color:var(--color-blue-500)}.focus-within\\:ring-1:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:ring-blue-500\\/20:focus-within{--tw-ring-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus-within\\:ring-blue-500\\/20:focus-within{--tw-ring-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}@media(hover:hover){.hover\\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\\:border-rose-100:hover{border-color:var(--color-rose-100)}.hover\\:border-slate-200:hover{border-color:var(--color-slate-200)}.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:bg-accent:hover{background-color:var(--color-accent)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in srgb,hsl(var(--destructive))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in oklab,var(--color-destructive)80%,transparent)}}.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in srgb,hsl(var(--destructive))90%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--color-destructive)90%,transparent)}}.hover\\:bg-emerald-100:hover{background-color:var(--color-emerald-100)}.hover\\:bg-primary\\/80:hover{background-color:color-mix(in srgb,hsl(var(--primary))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/80:hover{background-color:color-mix(in oklab,var(--color-primary)80%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:color-mix(in srgb,hsl(var(--primary))90%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--color-primary)90%,transparent)}}.hover\\:bg-purple-100:hover{background-color:var(--color-purple-100)}.hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\\:bg-rose-50:hover{background-color:var(--color-rose-50)}.hover\\:bg-rose-100:hover{background-color:var(--color-rose-100)}.hover\\:bg-rose-100\\/50:hover{background-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-rose-100\\/50:hover{background-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in srgb,hsl(var(--secondary))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--color-secondary)80%,transparent)}}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\\:bg-slate-300:hover{background-color:var(--color-slate-300)}.hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\\:text-accent-foreground:hover{color:var(--color-accent-foreground)}.hover\\:text-blue-500:hover{color:var(--color-blue-500)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-foreground:hover{color:var(--color-foreground)}.hover\\:text-primary-foreground:hover{color:var(--color-primary-foreground)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-rose-500:hover{color:var(--color-rose-500)}.hover\\:text-rose-600:hover{color:var(--color-rose-600)}.hover\\:text-rose-800:hover{color:var(--color-rose-800)}.hover\\:text-slate-600:hover{color:var(--color-slate-600)}.hover\\:text-slate-700:hover{color:var(--color-slate-700)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-100:hover{opacity:1}.hover\\:brightness-95:hover{--tw-brightness:brightness(95%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:border-blue-500\\/50:focus{border-color:color-mix(in srgb,hsl(var(--blue-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:border-blue-500\\/50:focus{border-color:color-mix(in oklab,var(--color-blue-500)50%,transparent)}}.focus\\:border-emerald-500\\/50:focus{border-color:color-mix(in srgb,hsl(var(--emerald-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:border-emerald-500\\/50:focus{border-color:color-mix(in oklab,var(--color-emerald-500)50%,transparent)}}.focus\\:border-purple-400:focus{border-color:var(--color-purple-400)}.focus\\:border-purple-500:focus{border-color:var(--color-purple-500)}.focus\\:border-purple-500\\/50:focus{border-color:color-mix(in srgb,hsl(var(--purple-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:border-purple-500\\/50:focus{border-color:color-mix(in oklab,var(--color-purple-500)50%,transparent)}}.focus\\:border-ring:focus{border-color:var(--color-ring)}.focus\\:border-slate-400:focus{border-color:var(--color-slate-400)}.focus\\:bg-accent:focus{background-color:var(--color-accent)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:text-accent-foreground:focus{color:var(--color-accent-foreground)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-300:focus{--tw-ring-color:var(--color-blue-300)}.focus\\:ring-blue-400:focus{--tw-ring-color:var(--color-blue-400)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:ring-blue-500\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.focus\\:ring-blue-500\\/50:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--blue-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-blue-500)50%,transparent)}}.focus\\:ring-emerald-500\\/50:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--emerald-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-emerald-500\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-emerald-500)50%,transparent)}}.focus\\:ring-purple-400\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--purple-400))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-purple-400\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-purple-400)20%,transparent)}}.focus\\:ring-purple-500\\/50:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--purple-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-purple-500\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-purple-500)50%,transparent)}}.focus\\:ring-ring:focus{--tw-ring-color:var(--color-ring)}.focus\\:ring-slate-200:focus{--tw-ring-color:var(--color-slate-200)}.focus\\:ring-slate-400\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--slate-400))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-slate-400\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-slate-400)20%,transparent)}}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:var(--color-ring)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--color-accent)}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--color-muted-foreground)}@media(min-width:400px){.min-\\[400px\\]\\:right-3{right:calc(var(--spacing)*3)}.min-\\[400px\\]\\:left-3{left:calc(var(--spacing)*3)}.min-\\[400px\\]\\:mx-1{margin-inline:calc(var(--spacing)*1)}.min-\\[400px\\]\\:flex{display:flex}.min-\\[400px\\]\\:h-5{height:calc(var(--spacing)*5)}.min-\\[400px\\]\\:w-5{width:calc(var(--spacing)*5)}.min-\\[400px\\]\\:gap-1{gap:calc(var(--spacing)*1)}.min-\\[400px\\]\\:gap-1\\.5{gap:calc(var(--spacing)*1.5)}.min-\\[400px\\]\\:gap-2{gap:calc(var(--spacing)*2)}.min-\\[400px\\]\\:p-1\\.5{padding:calc(var(--spacing)*1.5)}.min-\\[400px\\]\\:px-2{padding-inline:calc(var(--spacing)*2)}.min-\\[400px\\]\\:px-3{padding-inline:calc(var(--spacing)*3)}.min-\\[400px\\]\\:px-4{padding-inline:calc(var(--spacing)*4)}.min-\\[400px\\]\\:py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.min-\\[400px\\]\\:py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.min-\\[400px\\]\\:pr-4{padding-right:calc(var(--spacing)*4)}.min-\\[400px\\]\\:pr-24{padding-right:calc(var(--spacing)*24)}.min-\\[400px\\]\\:pl-1{padding-left:calc(var(--spacing)*1)}.min-\\[400px\\]\\:pl-10{padding-left:calc(var(--spacing)*10)}}@media(min-width:550px){.min-\\[550px\\]\\:block{display:block}}@media(min-width:40rem){.sm\\:inline-block{display:inline-block}.sm\\:w-6{width:calc(var(--spacing)*6)}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-2{gap:calc(var(--spacing)*2)}.sm\\:gap-4{gap:calc(var(--spacing)*4)}:where(.sm\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius-lg)}.sm\\:px-1{padding-inline:calc(var(--spacing)*1)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\\:pr-8{padding-right:calc(var(--spacing)*8)}.sm\\:pr-20{padding-right:calc(var(--spacing)*20)}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:48rem){.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(prefers-color-scheme:dark){.dark\\:border-blue-800{border-color:var(--color-blue-800)}.dark\\:border-emerald-700{border-color:var(--color-emerald-700)}.dark\\:border-purple-800{border-color:var(--color-purple-800)}.dark\\:border-red-700{border-color:var(--color-red-700)}.dark\\:border-rose-900\\/20{border-color:#8b083633}@supports (color:color-mix(in lab,red,red)){.dark\\:border-rose-900\\/20{border-color:color-mix(in oklab,var(--color-rose-900)20%,transparent)}}.dark\\:border-slate-500{border-color:var(--color-slate-500)}.dark\\:border-slate-600{border-color:var(--color-slate-600)}.dark\\:border-slate-700{border-color:var(--color-slate-700)}.dark\\:border-slate-700\\/50{border-color:color-mix(in srgb,hsl(var(--slate-700))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:border-slate-700\\/50{border-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.dark\\:border-slate-800{border-color:var(--color-slate-800)}.dark\\:bg-blue-900\\/30{background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-900\\/30{background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\\:bg-emerald-900\\/30{background-color:#004e3b4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-emerald-900\\/30{background-color:color-mix(in oklab,var(--color-emerald-900)30%,transparent)}}.dark\\:bg-red-900\\/30{background-color:#82181a4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-900\\/30{background-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\\:bg-rose-900\\/10{background-color:#8b08361a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-rose-900\\/10{background-color:color-mix(in oklab,var(--color-rose-900)10%,transparent)}}.dark\\:bg-slate-600{background-color:var(--color-slate-600)}.dark\\:bg-slate-700{background-color:var(--color-slate-700)}.dark\\:bg-slate-800{background-color:var(--color-slate-800)}.dark\\:bg-slate-800\\/30{background-color:color-mix(in srgb,hsl(var(--slate-800))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-800\\/30{background-color:color-mix(in oklab,var(--color-slate-800)30%,transparent)}}.dark\\:bg-slate-800\\/50{background-color:color-mix(in srgb,hsl(var(--slate-800))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-800\\/50{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.dark\\:bg-slate-900{background-color:var(--color-slate-900)}.dark\\:bg-slate-900\\/10{background-color:color-mix(in srgb,hsl(var(--slate-900))10%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-900\\/10{background-color:color-mix(in oklab,var(--color-slate-900)10%,transparent)}}.dark\\:bg-slate-900\\/20{background-color:color-mix(in srgb,hsl(var(--slate-900))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-900\\/20{background-color:color-mix(in oklab,var(--color-slate-900)20%,transparent)}}.dark\\:text-blue-100{color:var(--color-blue-100)}.dark\\:text-blue-300{color:var(--color-blue-300)}.dark\\:text-emerald-300{color:var(--color-emerald-300)}.dark\\:text-red-300{color:var(--color-red-300)}.dark\\:text-slate-100{color:var(--color-slate-100)}.dark\\:text-slate-200{color:var(--color-slate-200)}.dark\\:text-slate-300{color:var(--color-slate-300)}.dark\\:text-slate-400{color:var(--color-slate-400)}.dark\\:shadow-slate-950{--tw-shadow-color:hsl(var(--slate-950))}@supports (color:color-mix(in lab,red,red)){.dark\\:shadow-slate-950{--tw-shadow-color:color-mix(in oklab,var(--color-slate-950)var(--tw-shadow-alpha),transparent)}}.dark\\:ring-blue-900{--tw-ring-color:var(--color-blue-900)}@media(hover:hover){.dark\\:hover\\:bg-blue-900\\/30:hover{background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-blue-900\\/30:hover{background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\\:hover\\:bg-emerald-900\\/50:hover{background-color:#004e3b80}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-emerald-900\\/50:hover{background-color:color-mix(in oklab,var(--color-emerald-900)50%,transparent)}}.dark\\:hover\\:bg-red-900\\/50:hover{background-color:#82181a80}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-red-900\\/50:hover{background-color:color-mix(in oklab,var(--color-red-900)50%,transparent)}}.dark\\:hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.dark\\:hover\\:bg-slate-800:hover{background-color:var(--color-slate-800)}.dark\\:hover\\:bg-slate-800\\/50:hover{background-color:color-mix(in srgb,hsl(var(--slate-800))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-slate-800\\/50:hover{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.dark\\:hover\\:text-slate-200:hover{color:var(--color-slate-200)}.dark\\:hover\\:text-slate-300:hover{color:var(--color-slate-300)}}}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-slate-600{border-color:var(--color-slate-600)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-slate-700\\/50{border-color:color-mix(in srgb,hsl(var(--slate-700))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-slate-700\\/50{border-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-amber-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--amber-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-amber-500\\/20{border-block-color:color-mix(in oklab,var(--color-amber-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-blue-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-blue-500\\/20{border-block-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-emerald-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--emerald-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-emerald-500\\/20{border-block-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-rose-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--rose-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-rose-500\\/20{border-block-color:color-mix(in oklab,var(--color-rose-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-amber-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--amber-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-amber-500\\/20{border-right-color:color-mix(in oklab,var(--color-amber-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-blue-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-blue-500\\/20{border-right-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-emerald-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--emerald-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-emerald-500\\/20{border-right-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-rose-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--rose-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-rose-500\\/20{border-right-color:color-mix(in oklab,var(--color-rose-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-amber-900\\/30{background-color:#7b33064d}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-amber-900\\/30{background-color:color-mix(in oklab,var(--color-amber-900)30%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-rose-900\\/30{background-color:#8b08364d}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-rose-900\\/30{background-color:color-mix(in oklab,var(--color-rose-900)30%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-700{background-color:var(--color-slate-700)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-700\\/50{background-color:color-mix(in srgb,hsl(var(--slate-700))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-700\\/50{background-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-800\\/95{background-color:color-mix(in srgb,hsl(var(--slate-800))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-800\\/95{background-color:color-mix(in oklab,var(--color-slate-800)95%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-amber-400{color:var(--color-amber-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-blue-400{color:var(--color-blue-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-emerald-400{color:var(--color-emerald-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-rose-400{color:var(--color-rose-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-100{color:var(--color-slate-100)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-200{color:var(--color-slate-200)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-300{color:var(--color-slate-300)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-400{color:var(--color-slate-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:shadow-black\\/20{--tw-shadow-color:#0003}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:shadow-black\\/20{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-black)20%,transparent)var(--tw-shadow-alpha),transparent)}}@media(hover:hover){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:hover\\:bg-slate-600:hover{background-color:var(--color-slate-600)}}}}:root{--background:0 0% 100%;--foreground:222.2 47.4% 11.2%;--card:0 0% 98.8%;--card-foreground:222.2 47.4% 11.2%;--popover:0 0% 98.8%;--popover-foreground:222.2 47.4% 11.2%;--primary:217.2 91.2% 59.8%;--primary-foreground:0 0% 100%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:214.3 100% 97.1%;--accent-foreground:217.2 91.2% 59.8%;--destructive:346.8 77.2% 49.8%;--destructive-foreground:0 0% 100%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:217.2 91.2% 59.8%;--radius:.5rem;--slate-50:210 40% 98%;--slate-100:210 40% 96.1%;--slate-200:214.3 31.8% 91.4%;--slate-300:212.7 26.8% 83.9%;--slate-400:215 20.2% 65.1%;--slate-500:215.4 16.3% 46.9%;--slate-600:215.3 19.3% 34.5%;--slate-700:215.3 25% 26.7%;--slate-800:217.2 32.6% 17.5%;--slate-900:222.2 47.4% 11.2%;--slate-950:222.2 84% 4.9%;--rose-50:355.7 100% 97.3%;--rose-100:355.6 100% 94.7%;--rose-200:352.7 96.1% 90%;--rose-500:349.7 89.2% 60.2%;--rose-600:346.8 77.2% 49.8%;--rose-700:345.3 82.7% 40.8%;--emerald-50:151.8 81% 95.9%;--emerald-100:149.3 80.4% 90%;--emerald-200:152.4 76% 80.4%;--emerald-400:160.1 84.1% 52.5%;--emerald-500:160.1 84.1% 39.4%;--emerald-600:161.4 93.5% 30.4%;--blue-50:213.8 100% 96.9%;--blue-100:214.3 94.6% 92.7%;--blue-200:213.3 96.9% 87.3%;--blue-300:211.7 96.4% 78.4%;--blue-400:213.1 93.9% 67.8%;--blue-500:217.2 91.2% 59.8%;--blue-600:221.2 83.2% 53.3%;--amber-50:48 100% 96.1%;--amber-100:48 96.5% 88.8%;--amber-200:48 96.6% 76.7%;--amber-500:43 96.4% 56.3%;--amber-700:37.7 92.1% 38%;--purple-50:270 100% 98%;--purple-100:269 100% 95.5%;--purple-200:268.7 100% 91.8%;--purple-400:270.4 95.2% 75.3%;--purple-500:270.7 91% 65.1%;--purple-600:271.5 81.3% 55.9%}.tasks-timeline-app[data-theme=dark]{--background:222.2 47.4% 11.2%;--foreground:210 40% 98%;--card:217.2 32.6% 17.5%;--card-foreground:210 40% 98%;--popover:217.2 32.6% 17.5%;--popover-foreground:210 40% 98%;--primary:213.1 93.9% 67.8%;--primary-foreground:222.2 47.4% 11.2%;--secondary:215.3 25% 26.7%;--secondary-foreground:210 40% 98%;--muted:215.3 25% 26.7%;--muted-foreground:215 20.2% 65.1%;--accent:217.2 32.6% 17.5%;--accent-foreground:213.1 93.9% 67.8%;--destructive:350 89.2% 60.2%;--destructive-foreground:210 40% 98%;--border:215.3 25% 26.7%;--input:215.3 25% 26.7%;--ring:213.1 93.9% 67.8%;--slate-50:217.2 32.6% 17.5%;--slate-100:215.3 25% 26.7%;--slate-200:215.3 19.3% 34.5%;--slate-300:215.4 16.3% 46.9%;--slate-400:215 20.2% 65.1%;--slate-500:212.7 26.8% 83.9%;--slate-600:214.3 31.8% 91.4%;--slate-700:210 40% 96.1%;--slate-800:210 40% 98%;--slate-900:0 0% 100%;--slate-950:0 0% 100%;--rose-50:347 82% 15%;--rose-100:345 79% 26%;--rose-200:346 84% 32%;--rose-500:353.7 89.5% 70.6%;--rose-600:352.7 96.1% 90%;--rose-700:355.6 100% 94.7%;--emerald-50:162 100% 8%;--emerald-100:163 94% 14%;--emerald-200:164 86% 18%;--emerald-500:158 64% 52%;--emerald-600:152.4 76% 80.4%;--blue-50:221 83% 15%;--blue-100:222 87% 24%;--blue-200:223 83% 30%;--blue-500:213.1 93.9% 67.8%;--blue-600:213.3 96.9% 87.3%;--amber-50:31 100% 10%;--amber-100:30 93% 17%;--amber-200:29 93% 22%;--amber-500:47 92% 68%;--amber-700:48 96.6% 76.7%;--purple-50:273 100% 10%;--purple-100:273 94% 18%;--purple-200:272 87% 24%;--purple-500:270.7 91% 65.1%;--purple-600:270.4 95.2% 75.3%}.tasks-timeline-app[data-theme=midnight]{--background:222 47% 7%;--foreground:210 40% 98%;--card:218 36% 13%;--card-foreground:210 40% 98%;--popover:218 36% 13%;--popover-foreground:210 40% 98%;--primary:213.1 93.9% 67.8%;--primary-foreground:222 47% 7%;--secondary:217.2 32.6% 17.5%;--secondary-foreground:210 40% 98%;--muted:215.3 25% 26.7%;--muted-foreground:215 20.2% 65.1%;--accent:218 36% 13%;--accent-foreground:213.1 93.9% 67.8%;--destructive:350 89.2% 60.2%;--destructive-foreground:210 40% 98%;--border:215.3 25% 26.7%;--input:215.3 25% 26.7%;--ring:213.1 93.9% 67.8%;--slate-50:218 36% 13%;--slate-100:217.2 32.6% 17.5%;--slate-200:215.3 25% 26.7%;--slate-300:215.3 19.3% 34.5%;--slate-400:215.4 16.3% 46.9%;--slate-500:215 20.2% 65.1%;--slate-600:212.7 26.8% 83.9%;--slate-700:214.3 31.8% 91.4%;--slate-800:210 40% 96.1%;--slate-900:210 40% 98%;--slate-950:0 0% 100%;--rose-50:347 82% 15%;--rose-100:345 79% 26%;--rose-200:346 84% 32%;--rose-500:353.7 89.5% 70.6%;--rose-600:352.7 96.1% 90%;--rose-700:355.6 100% 94.7%;--emerald-50:162 100% 8%;--emerald-100:163 94% 14%;--emerald-200:164 86% 18%;--emerald-500:158 64% 52%;--emerald-600:152.4 76% 80.4%;--blue-50:221 83% 15%;--blue-100:222 87% 24%;--blue-200:223 83% 30%;--blue-500:213.1 93.9% 67.8%;--blue-600:213.3 96.9% 87.3%;--amber-50:31 100% 10%;--amber-100:30 93% 17%;--amber-200:29 93% 22%;--amber-500:47 92% 68%;--amber-700:48 96.6% 76.7%;--purple-50:273 100% 10%;--purple-100:273 94% 18%;--purple-200:272 87% 24%;--purple-500:270.7 91% 65.1%;--purple-600:270.4 95.2% 75.3%}.tasks-timeline-app[data-theme=coffee]{--background:40 17% 99%;--foreground:30 25% 10%;--card:40 23% 95%;--card-foreground:30 25% 10%;--popover:40 23% 95%;--popover-foreground:30 25% 10%;--primary:37.7 92.1% 38%;--primary-foreground:40 17% 99%;--secondary:40 19% 90%;--secondary-foreground:30 25% 10%;--muted:40 19% 90%;--muted-foreground:30 10% 46%;--accent:40 21% 94%;--accent-foreground:37.7 92.1% 38%;--destructive:346.8 77.2% 49.8%;--destructive-foreground:40 17% 99%;--border:40 17% 80%;--input:40 17% 80%;--ring:37.7 92.1% 38%;--slate-50:40 21% 94%;--slate-100:40 19% 90%;--slate-200:40 17% 80%;--slate-300:40 13% 68%;--slate-400:40 9% 56%;--slate-500:30 10% 46%;--slate-600:30 11% 38%;--slate-700:30 14% 31%;--slate-800:30 18% 24%;--slate-900:30 23% 14%;--slate-950:30 25% 10%}.tasks-timeline-app button,.tasks-timeline-app input[type=text],.tasks-timeline-app input[type=search],.tasks-timeline-app input[type=number],.tasks-timeline-app input[type=date],.tasks-timeline-app input[type=datetime-local]{box-shadow:none;color:inherit;appearance:none;background-color:#0000;background-image:none;border:1px solid #0000;margin:0;padding:0;font-family:inherit}.tasks-timeline-app{background-color:hsl(var(--background));color:hsl(var(--foreground));font-family:var(--font-sans);-webkit-font-smoothing:antialiased;scrollbar-gutter:stable;box-sizing:border-box;transition:background-color .3s,color .3s}.tasks-timeline-app *,.tasks-timeline-app :before,.tasks-timeline-app :after{box-sizing:inherit;transition-property:background-color,border-color,color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tasks-timeline-app ::-webkit-scrollbar{width:10px;height:10px}.tasks-timeline-app ::-webkit-scrollbar-track{background:hsl(var(--muted)/.2);border-radius:6px;margin:2px}.tasks-timeline-app ::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.4);border:2px solid hsl(var(--background));border-radius:6px;transition:all .2s}.tasks-timeline-app ::-webkit-scrollbar-thumb:hover{background:hsl(var(--primary)/.6);border-color:hsl(var(--muted)/.3)}.tasks-timeline-app ::-webkit-scrollbar-thumb:active{background:hsl(var(--primary)/.8)}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app .no-scrollbar::-webkit-scrollbar{width:0;height:0;display:none}.tasks-timeline-app .no-scrollbar{-ms-overflow-style:none;scrollbar-width:none;overflow:-moz-scrollbars-none}.tasks-timeline-app .no-scrollbar::-webkit-scrollbar-track{display:none}.tasks-timeline-app .no-scrollbar::-webkit-scrollbar-thumb{display:none}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`,yoe=()=>m.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar bg-slate-50/50 dark:bg-slate-900/10",children:[m.jsxs("section",{className:"text-center space-y-3 pt-4",children:[m.jsx("div",{className:"w-16 h-16 bg-slate-900 text-white rounded-2xl mx-auto flex items-center justify-center shadow-lg shadow-slate-200 dark:shadow-slate-950",children:m.jsx(He,{name:"CheckSquare",size:32})}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("h3",{className:"text-xl font-bold text-slate-900 dark:text-slate-100",children:"Tasks Timeline View"}),m.jsxs("p",{className:"text-xs text-slate-500 font-mono",children:["v","0.4.1"," • Built at ","fa60af0"]})]}),m.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 max-w-sm mx-auto leading-relaxed",children:"A high-fidelity, timeline-based task management tool designed for focus, clarity, and AI-assisted productivity."})]}),m.jsxs("section",{className:"space-y-3",children:[m.jsx("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:"Connect & Contribute"}),m.jsx("div",{className:"grid grid-cols-1 gap-2",children:m.jsxs("a",{href:"https://github.com/Leonezz/tasks-timeline-components",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 rounded-xl border border-slate-200 bg-white hover:bg-slate-50 dark:bg-slate-900 dark:border-slate-800 dark:hover:bg-slate-800 transition-colors group",children:[m.jsx("div",{className:"bg-slate-100 dark:bg-slate-800 p-2 rounded-lg group-hover:scale-105 transition-transform text-slate-700 dark:text-slate-300",children:m.jsx(He,{name:"Github",size:20})}),m.jsxs("div",{className:"flex-1",children:[m.jsx("div",{className:"text-sm font-bold text-slate-800 dark:text-slate-200",children:"GitHub Repository"}),m.jsx("div",{className:"text-xs text-slate-500",children:"View source code, report issues, or contribute."})]}),m.jsx(He,{name:"ExternalLink",size:14,className:"text-slate-400 group-hover:text-blue-500 transition-colors"})]})})]}),m.jsxs("section",{className:"space-y-3",children:[m.jsx("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:"Support Development"}),m.jsxs("div",{className:"rounded-xl border border-rose-100 bg-rose-50/50 dark:bg-rose-900/10 dark:border-rose-900/20 p-4 space-y-4",children:[m.jsx("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:"If you find this tool useful, consider supporting its development. Your contribution helps keep the updates coming!"}),m.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[m.jsx("a",{href:"https://buymeacoffee.com/zhuwenqa",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#FFDD00] text-slate-900 font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:m.jsx("img",{src:"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png",alt:"Buy Me A Coffee"})}),m.jsxs("a",{href:"https://ko-fi.com/zhuwenqa",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[m.jsx(He,{name:"CoffeeIcon",size:16}),m.jsx("span",{children:"Ko-fi"})]}),m.jsxs("a",{href:"https://patreon.com/zhuwenq",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[m.jsx(He,{name:"Star",size:16}),m.jsx("span",{children:"Patreon"})]}),m.jsxs("a",{href:"https://www.paypal.com/paypalme/zhuwenq",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[m.jsx(He,{name:"Wallet2",size:16}),m.jsx("span",{children:"Paypal"})]})]})]})]}),m.jsx("div",{className:"pt-6 border-t border-slate-100 dark:border-slate-800 text-center",children:m.jsxs("p",{className:"text-[10px] text-slate-400 leading-relaxed",children:["Built with React, Tailwind, Framer Motion & Gemini AI. ",m.jsx("br",{}),"MIT License © ",new Date().getFullYear()," Tasks Timeline View"]})})]}),goe=["general","filters","ai","docs","about"],HY=({settings:e,onUpdateSettings:t,availableCategories:n,availableTags:r,onClose:a,inSeperatePage:i,inDarkMode:c,customTabs:y=[]})=>{const[b,x]=de.useState("general"),[T,M]=de.useState(null);de.useEffect(()=>{y.forEach(O=>{goe.includes(O.id)&&Mt.warn("Settings",`CustomSettingsTab id "${O.id}" conflicts with built-in tab. Consider using a different id.`)})},[y]),de.useEffect(()=>{if(Mt.info("Settings",`system in dark mode: ${c}, in seperate page: ${i}, onClose: ${a}`),!i||!T)return;const O=c?"midnight":"light";Mt.info("Settings","adjust to system theme: ",O),T.setAttribute("data-theme",O)},[e.theme,T,c,i,a]);const I=()=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 shrink-0",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"p-2 bg-slate-200 dark:bg-slate-700 rounded-lg text-slate-600 dark:text-slate-200",children:m.jsx(He,{name:"Settings",size:18})}),m.jsx("h2",{className:"font-bold text-slate-800 text-lg",children:"Settings"})]}),m.jsxs("div",{className:"flex p-1 bg-slate-100 dark:bg-slate-800 rounded-lg",children:[m.jsx("button",{onClick:()=>x("general"),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all",b==="general"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"General"}),m.jsx("button",{onClick:()=>x("filters"),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all",b==="filters"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"Filters & Sorting"}),m.jsx("button",{onClick:()=>x("ai"),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all",b==="ai"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"AI"}),m.jsx("button",{onClick:()=>x("docs"),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all",b==="docs"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"Docs"}),m.jsx("button",{onClick:()=>x("about"),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all",b==="about"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"About"}),y.map(O=>m.jsxs("button",{onClick:()=>x(O.id),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all flex items-center gap-1",b===O.id?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:[O.icon&&m.jsx(He,{name:O.icon,size:12}),O.label]},O.id))]})]}),a&&m.jsx("button",{onClick:a,className:"p-2 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 rounded-full transition-colors outline-none",children:m.jsx(He,{name:"X",size:20})})]}),m.jsxs("div",{className:"p-0 overflow-y-auto flex-1 min-h-100",children:[b==="general"&&m.jsx(Rae,{settings:e,onUpdateSettings:t,availableCategories:n}),b==="filters"&&m.jsx(Wae,{settings:e,onUpdateSettings:t,availableTags:r,availableCategories:n}),b==="ai"&&m.jsx(hY,{settings:e,onUpdateSettings:t}),b==="docs"&&m.jsx(aY,{}),b==="about"&&m.jsx(yoe,{}),y.find(O=>O.id===b)?.content]}),m.jsx("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 text-center border-t border-slate-100 dark:border-slate-800 shrink-0",children:m.jsxs("p",{className:"text-[10px] text-slate-400",children:["Timeline Tasks View • ","0.4.1"," at ","fa60af0"]})})]});return i?m.jsx("div",{ref:M,className:"tasks-timeline-app",id:"tasks-timeline-app",style:{width:"100%"},children:m.jsxs(NY.div,{children:[m.jsx("style",{children:zY}),I()]})}):I()},BY=({isOpen:e,onClose:t,settings:n,onUpdateSettings:r,availableTags:a,availableCategories:i,customTabs:c})=>m.jsx(Zd,{children:e&&m.jsxs(m.Fragment,{children:[m.jsx(so,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-40"}),m.jsx(so,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},transition:{type:"spring",duration:.5},className:"fixed top-1/2 left-1/2 w-full max-w-2xl bg-paper rounded-2xl shadow-2xl z-50 overflow-hidden border border-slate-200 dark:border-slate-800 flex flex-col max-h-[85vh] text-slate-900",children:m.jsx(HY,{settings:n,onUpdateSettings:r,availableCategories:i,availableTags:a,onClose:t,inSeperatePage:!1,customTabs:c})})]})}),moe=({isOpen:e,onClose:t})=>m.jsx(Zd,{children:e&&m.jsxs(m.Fragment,{children:[m.jsx(oo.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-50"}),m.jsxs(oo.div,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},className:"fixed top-1/2 left-1/2 w-full max-w-2xl bg-paper rounded-xl shadow-2xl z-50 border border-slate-200 dark:border-slate-800 overflow-hidden max-h-[85vh] flex flex-col text-slate-900",children:[m.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 shrink-0",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg text-blue-600 dark:text-blue-300",children:m.jsx(He,{name:"BookOpen",size:18})}),m.jsx("h2",{className:"font-bold text-slate-800 text-lg",children:"Documentation"})]}),m.jsx("button",{onClick:t,className:"p-2 text-slate-400 hover:text-slate-600 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:m.jsx(He,{name:"X",size:20})})]}),m.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar",children:[m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Activity",size:14,className:"text-blue-500"}),"Task Lifecycle & Auto-Status"]}),m.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"The view automatically manages task statuses based on dates to keep your workflow organized. You rarely need to manually set status unless completing a task."}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[m.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"AlertCircle",size:14,className:"text-rose-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Due / Overdue"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks due Today, Tomorrow, or in the past are automatically flagged as Urgent."})]}),m.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Clock",size:14,className:"text-blue-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Scheduled (Doing)"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks with a future Start Date are marked as Scheduled until that date arrives."})]}),m.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Zap",size:14,className:"text-purple-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Unplanned"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks without dates that need immediate attention. You must manually set this."})]}),m.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Archive",size:14,className:"text-slate-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Backlog"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Items with no Due Date or Start Date appear in the Backlog section."})]})]})]}),m.jsx("div",{className:"h-px bg-slate-100 dark:bg-slate-800 w-full"}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Sparkles",size:14,className:"text-purple-500"}),"AI & Voice Intelligence"]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:m.jsx(He,{name:"Mic",size:16})}),m.jsxs("div",{children:[m.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"Voice Commands"}),m.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:'Click the microphone icon to speak. Supports natural language like "Buy milk tomorrow priority high".'})]})]}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:m.jsx(He,{name:"TerminalSquare",size:16})}),m.jsxs("div",{children:[m.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"AI Mode"}),m.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Toggle AI mode to use Gemini. It can Create, Update, Query, and Delete tasks.",m.jsx("br",{}),m.jsx("em",{className:"opacity-80",children:'Example: "Move all overdue tasks to next friday" or "Summarize my high priority work".'})]})]})]})]})]}),m.jsx("div",{className:"h-px bg-slate-100 dark:bg-slate-800 w-full"}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Command",size:14,className:"text-slate-500"}),"Quick Controls"]}),m.jsxs("ul",{className:"text-xs text-slate-600 dark:text-slate-400 space-y-2",children:[m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Enter"}),m.jsx("span",{children:"Save task / Submit command"})]}),m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Double Click Delete"}),m.jsx("span",{children:"Click trash icon once to arm, twice to delete."})]}),m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Focus Mode"}),m.jsx("span",{children:"Hides everything except Today's active tasks."})]})]})]})]}),m.jsx("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 text-center border-t border-slate-100 dark:border-slate-800 shrink-0",children:m.jsx("p",{className:"text-[10px] text-slate-400",children:"Tasks Timeline • v0.1.2"})})]})]})}),voe=({content:e})=>m.jsx("p",{className:"text-xs text-slate-600 [.chronos-app[data-theme='dark']_&]:text-slate-400 leading-relaxed whitespace-pre-wrap",children:e}),koe={high:"bg-rose-100 text-rose-700 [.chronos-app[data-theme='dark']_&]:bg-rose-900/30 [.chronos-app[data-theme='dark']_&]:text-rose-400",medium:"bg-amber-100 text-amber-700 [.chronos-app[data-theme='dark']_&]:bg-amber-900/30 [.chronos-app[data-theme='dark']_&]:text-amber-400",low:"bg-slate-100 text-slate-600 [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:text-slate-400"},boe={done:"bg-emerald-500",overdue:"bg-rose-500",due:"bg-amber-500",doing:"bg-blue-500",scheduled:"bg-indigo-400",todo:"bg-slate-400",cancelled:"bg-slate-300",unplanned:"bg-purple-400"},xoe=({tasks:e,label:t})=>m.jsxs("div",{children:[t&&m.jsx("h5",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1.5",children:t}),m.jsx("div",{className:"space-y-1",children:e.map(n=>m.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded bg-slate-50 [.chronos-app[data-theme='dark']_&]:bg-slate-700/50",children:[m.jsx("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${boe[n.status]||"bg-slate-400"}`}),m.jsx("span",{className:"text-xs font-medium truncate flex-1",children:n.title}),m.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded font-semibold shrink-0 ${koe[n.priority]||""}`,children:n.priority})]},n.id))})]}),woe={done:"bg-emerald-500",overdue:"bg-rose-500",due:"bg-amber-500",doing:"bg-blue-500",scheduled:"bg-indigo-400",todo:"bg-slate-400",cancelled:"bg-slate-300",unplanned:"bg-purple-400"},Moe=({data:e})=>m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"text-xs font-semibold text-slate-700 [.chronos-app[data-theme='dark']_&]:text-slate-200",children:[e.total," total tasks"]}),e.total>0&&m.jsx("div",{className:"flex h-2 rounded-full overflow-hidden bg-slate-100 [.chronos-app[data-theme='dark']_&]:bg-slate-700",children:Object.entries(e.byStatus).map(([t,n])=>n>0?m.jsx("div",{className:woe[t]||"bg-slate-400",style:{width:`${n/e.total*100}%`},title:`${t}: ${n}`},t):null)}),m.jsx("div",{className:"flex gap-2 flex-wrap",children:Object.entries(e.byPriority).map(([t,n])=>n>0?m.jsxs("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-slate-100 text-slate-600 font-medium [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:text-slate-300",children:[t,": ",n]},t):null)})]}),Coe=({entries:e})=>m.jsx("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-1",children:e.map(t=>m.jsxs(de.Fragment,{children:[m.jsx("span",{className:"text-[10px] font-semibold text-slate-400 uppercase tracking-wider",children:t.key}),m.jsx("span",{className:"text-xs text-slate-600 [.chronos-app[data-theme='dark']_&]:text-slate-300",children:t.value})]},t.key))}),Toe=({block:e})=>{switch(e.type){case"text":return m.jsx(voe,{content:e.content});case"task-list":return m.jsx(xoe,{tasks:e.tasks,label:e.label});case"stats":return m.jsx(Moe,{data:e.data});case"key-value":return m.jsx(Coe,{entries:e.entries})}},Soe=({placeholder:e,onSubmit:t,onCancel:n})=>{const[r,a]=de.useState(""),i=()=>{const c=r.trim();c&&t(c)};return m.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:[m.jsx("input",{type:"text",value:r,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&i(),c.key==="Escape"&&n()},placeholder:e??"Type your answer...",autoFocus:!0,className:"w-full px-3 py-1.5 text-xs rounded-md border border-slate-200 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500/50 transition-colors [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:border-slate-600 [.chronos-app[data-theme='dark']_&]:text-slate-100"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:i,disabled:!r.trim(),className:"px-3 py-1.5 text-xs font-semibold rounded-md bg-blue-500 text-white hover:bg-blue-600 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:"Submit"}),m.jsx("button",{onClick:n,className:"px-3 py-1.5 text-xs font-semibold rounded-md bg-slate-100 text-slate-600 hover:bg-slate-200 transition-colors [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:text-slate-300",children:"Cancel"})]})]})},VY=({toast:e,onDismiss:t,isExpanded:n,onToggleExpand:r})=>{de.useEffect(()=>{if(e.timeout===null||e.timeout<=0)return;const y=setTimeout(()=>{t(e.id)},e.timeout);return()=>clearTimeout(y)},[e.id,t,e.timeout]);const a=()=>{switch(e.variant){case"success":return"CheckCircle2";case"error":return"AlertCircle";case"info":return"Info";case"warning":return"AlertTriangle"}},i=()=>{const y="bg-white/95 backdrop-blur-md border shadow-xl shadow-slate-200/50 [.chronos-app[data-theme='dark']_&]:bg-slate-800/95 [.chronos-app[data-theme='dark']_&]:shadow-black/20 [.chronos-app[data-theme='dark']_&]:border-slate-700/50";switch(e.variant){case"success":return je(y,"border-l-4 border-l-emerald-500 border-y-emerald-100/50 border-r-emerald-100/50 [.chronos-app[data-theme='dark']_&]:border-y-emerald-500/20 [.chronos-app[data-theme='dark']_&]:border-r-emerald-500/20");case"error":return je(y,"border-l-4 border-l-rose-500 border-y-rose-100/50 border-r-rose-100/50 [.chronos-app[data-theme='dark']_&]:border-y-rose-500/20 [.chronos-app[data-theme='dark']_&]:border-r-rose-500/20");case"info":return je(y,"border-l-4 border-l-blue-500 border-y-blue-100/50 border-r-blue-100/50 [.chronos-app[data-theme='dark']_&]:border-y-blue-500/20 [.chronos-app[data-theme='dark']_&]:border-r-blue-500/20");case"warning":return je(y,"border-l-4 border-l-amber-500 border-y-amber-100/50 border-r-amber-100/50 [.chronos-app[data-theme='dark']_&]:border-y-amber-500/20 [.chronos-app[data-theme='dark']_&]:border-r-amber-500/20")}},c=()=>{switch(e.variant){case"success":return"text-emerald-500 [.chronos-app[data-theme='dark']_&]:text-emerald-400";case"error":return"text-rose-500 [.chronos-app[data-theme='dark']_&]:text-rose-400";case"info":return"text-blue-500 [.chronos-app[data-theme='dark']_&]:text-blue-400";case"warning":return"text-amber-500 [.chronos-app[data-theme='dark']_&]:text-amber-400"}};return m.jsxs(so,{layout:!0,initial:{opacity:0,x:50,scale:.9},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:20,scale:.9},className:je("flex items-start gap-3 p-4 rounded-lg w-full pointer-events-auto text-slate-800 [.chronos-app[data-theme='dark']_&]:text-slate-100",n?"max-w-[350px]":"max-w-sm",i()),children:[m.jsx("div",{className:je("mt-0.5 shrink-0",c()),children:m.jsx(He,{name:a(),size:18})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("h4",{className:"text-sm font-bold leading-tight",children:e.title}),e.description&&m.jsx("p",{className:"text-xs opacity-80 mt-1 leading-snug font-medium text-slate-500 [.chronos-app[data-theme='dark']_&]:text-slate-400",children:e.description}),e.body&&m.jsx("p",{className:"text-xs mt-2 leading-relaxed text-slate-600 [.chronos-app[data-theme='dark']_&]:text-slate-300 whitespace-pre-wrap",children:e.body}),e.interaction.kind==="confirm"&&m.jsxs("div",{className:"flex gap-2 mt-3",children:[m.jsx("button",{onClick:()=>e.interaction.kind==="confirm"&&e.interaction.onConfirm(),className:"px-3 py-1.5 text-xs font-semibold rounded-md bg-blue-500 text-white hover:bg-blue-600 transition-colors",children:e.interaction.kind==="confirm"&&(e.interaction.confirmLabel||"Yes")}),m.jsx("button",{onClick:()=>{e.interaction.kind==="confirm"&&e.interaction.onCancel?.()},className:"px-3 py-1.5 text-xs font-semibold rounded-md bg-slate-100 text-slate-600 hover:bg-slate-200 transition-colors [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:text-slate-300",children:e.interaction.kind==="confirm"&&(e.interaction.cancelLabel||"No")})]}),e.interaction.kind==="select"&&m.jsxs("div",{className:"flex flex-col gap-1.5 mt-3",children:[e.interaction.options.map(y=>m.jsx("button",{onClick:()=>e.interaction.kind==="select"&&e.interaction.onSelect(y.value),className:"text-left px-3 py-1.5 text-xs font-medium rounded-md bg-slate-50 hover:bg-slate-100 border border-slate-200 transition-colors [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:border-slate-600 [.chronos-app[data-theme='dark']_&]:hover:bg-slate-600",children:y.label},y.value)),m.jsx("button",{onClick:()=>e.interaction.kind==="select"&&e.interaction.onCancel?.(),className:"text-center px-3 py-1 text-xs text-slate-400 hover:text-slate-600 transition-colors",children:"Cancel"})]}),e.interaction.kind==="prompt"&&m.jsx("div",{className:"flex gap-2 mt-3",children:m.jsx(Soe,{placeholder:e.interaction.kind==="prompt"?e.interaction.placeholder:void 0,onSubmit:y=>e.interaction.kind==="prompt"&&e.interaction.onSubmit(y),onCancel:()=>{e.interaction.kind==="prompt"&&e.interaction.onCancel?.()}})}),e.detail&&e.detail.length>0&&m.jsxs("div",{className:"mt-2",children:[m.jsxs("button",{onClick:()=>r?.(e.id),className:"text-xs text-blue-500 hover:text-blue-600 font-medium flex items-center gap-1 transition-colors",children:[m.jsx(He,{name:n?"ChevronUp":"ChevronDown",size:12}),n?"Hide details":"Show details"]}),m.jsx(Zd,{children:n&&m.jsx(so,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:m.jsx("div",{className:"mt-2 space-y-2 max-h-[40vh] overflow-y-auto",children:e.detail.map((y,b)=>m.jsx(Toe,{block:y},b))})})})]})]}),m.jsx("button",{onClick:()=>t(e.id),className:"opacity-40 hover:opacity-100 transition-opacity p-0.5 -mr-1 -mt-1",children:m.jsx(He,{name:"X",size:14})})]})};var oc="INUMBER",O2="IOP1",D2="IOP2",N2="IOP3",Gu="IVAR",R0="IVARNAME",z2="IFUNCALL",pF="IFUNDEF",Ms="IEXPR",kN="IEXPREVAL",F0="IMEMBER",yF="IENDSTATEMENT",H2="IARRAY";function Sn(e,t){this.type=e,this.value=t??0}Sn.prototype.toString=function(){switch(this.type){case oc:case O2:case D2:case N2:case Gu:case R0:case yF:return this.value;case z2:return"CALL "+this.value;case pF:return"DEF "+this.value;case H2:return"ARRAY "+this.value;case F0:return"."+this.value;default:return"Invalid Instruction"}};function gF(e){return new Sn(O2,e)}function ju(e){return new Sn(D2,e)}function _Y(e){return new Sn(N2,e)}function bN(e,t,n,r,a){for(var i=[],c=[],y,b,x,T,M=0;M<e.length;M++){var I=e[M],O=I.type;if(O===oc||O===R0)Array.isArray(I.value)?i.push.apply(i,bN(I.value.map(function(N){return new Sn(oc,N)}).concat(new Sn(H2,I.value.length)),t,n,r,a)):i.push(I);else if(O===Gu&&a.hasOwnProperty(I.value))I=new Sn(oc,a[I.value]),i.push(I);else if(O===D2&&i.length>1)b=i.pop(),y=i.pop(),T=n[I.value],I=new Sn(oc,T(y.value,b.value)),i.push(I);else if(O===N2&&i.length>2)x=i.pop(),b=i.pop(),y=i.pop(),I.value==="?"?i.push(y.value?b.value:x.value):(T=r[I.value],I=new Sn(oc,T(y.value,b.value,x.value)),i.push(I));else if(O===O2&&i.length>0)y=i.pop(),T=t[I.value],I=new Sn(oc,T(y.value)),i.push(I);else if(O===Ms){for(;i.length>0;)c.push(i.shift());c.push(new Sn(Ms,bN(I.value,t,n,r,a)))}else if(O===F0&&i.length>0)y=i.pop(),i.push(new Sn(oc,y.value[I.value]));else{for(;i.length>0;)c.push(i.shift());c.push(I)}}for(;i.length>0;)c.push(i.shift());return c}function UY(e,t,n){for(var r=[],a=0;a<e.length;a++){var i=e[a],c=i.type;if(c===Gu&&i.value===t)for(var y=0;y<n.tokens.length;y++){var b=n.tokens[y],x;b.type===O2?x=gF(b.value):b.type===D2?x=ju(b.value):b.type===N2?x=_Y(b.value):x=new Sn(b.type,b.value),r.push(x)}else c===Ms?r.push(new Sn(Ms,UY(i.value,t,n))):r.push(i)}return r}function O0(e,t,n){var r=[],a,i,c,y,b,x;if(xN(e))return Xu(e,n);for(var T=e.length,M=0;M<T;M++){var I=e[M],O=I.type;if(O===oc||O===R0)r.push(I.value);else if(O===D2)i=r.pop(),a=r.pop(),I.value==="and"?r.push(a?!!O0(i,t,n):!1):I.value==="or"?r.push(a?!0:!!O0(i,t,n)):I.value==="="?(y=t.binaryOps[I.value],r.push(y(a,O0(i,t,n),n))):(y=t.binaryOps[I.value],r.push(y(Xu(a,n),Xu(i,n))));else if(O===N2)c=r.pop(),i=r.pop(),a=r.pop(),I.value==="?"?r.push(O0(a?i:c,t,n)):(y=t.ternaryOps[I.value],r.push(y(Xu(a,n),Xu(i,n),Xu(c,n))));else if(O===Gu)if(I.value in t.functions)r.push(t.functions[I.value]);else if(I.value in t.unaryOps&&t.parser.isOperatorEnabled(I.value))r.push(t.unaryOps[I.value]);else{var N=n[I.value];if(N!==void 0)r.push(N);else throw new Error("undefined variable: "+I.value)}else if(O===O2)a=r.pop(),y=t.unaryOps[I.value],r.push(y(Xu(a,n)));else if(O===z2){for(x=I.value,b=[];x-- >0;)b.unshift(Xu(r.pop(),n));if(y=r.pop(),y.apply&&y.call)r.push(y.apply(void 0,b));else throw new Error(y+" is not a function")}else if(O===pF)r.push((function(){for(var D=r.pop(),H=[],_=I.value;_-- >0;)H.unshift(r.pop());var X=r.pop(),K=function(){for(var te=Object.assign({},n),J=0,ne=H.length;J<ne;J++)te[H[J]]=arguments[J];return O0(D,t,te)};return Object.defineProperty(K,"name",{value:X,writable:!1}),n[X]=K,K})());else if(O===Ms)r.push(Loe(I,t));else if(O===kN)r.push(I);else if(O===F0)a=r.pop(),r.push(a[I.value]);else if(O===yF)r.pop();else if(O===H2){for(x=I.value,b=[];x-- >0;)b.unshift(r.pop());r.push(b)}else throw new Error("invalid Expression")}if(r.length>1)throw new Error("invalid Expression (parity)");return r[0]===0?0:Xu(r[0],n)}function Loe(e,t,n){return xN(e)?e:{type:kN,value:function(r){return O0(e.value,t,r)}}}function xN(e){return e&&e.type===kN}function Xu(e,t){return xN(e)?e.value(t):e}function wN(e,t){for(var n=[],r,a,i,c,y,b,x=0;x<e.length;x++){var T=e[x],M=T.type;if(M===oc)typeof T.value=="number"&&T.value<0?n.push("("+T.value+")"):Array.isArray(T.value)?n.push("["+T.value.map(WY).join(", ")+"]"):n.push(WY(T.value));else if(M===D2)a=n.pop(),r=n.pop(),c=T.value,t?c==="^"?n.push("Math.pow("+r+", "+a+")"):c==="and"?n.push("(!!"+r+" && !!"+a+")"):c==="or"?n.push("(!!"+r+" || !!"+a+")"):c==="||"?n.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+r+"),("+a+")))"):c==="=="?n.push("("+r+" === "+a+")"):c==="!="?n.push("("+r+" !== "+a+")"):c==="["?n.push(r+"[("+a+") | 0]"):n.push("("+r+" "+c+" "+a+")"):c==="["?n.push(r+"["+a+"]"):n.push("("+r+" "+c+" "+a+")");else if(M===N2)if(i=n.pop(),a=n.pop(),r=n.pop(),c=T.value,c==="?")n.push("("+r+" ? "+a+" : "+i+")");else throw new Error("invalid Expression");else if(M===Gu||M===R0)n.push(T.value);else if(M===O2)r=n.pop(),c=T.value,c==="-"||c==="+"?n.push("("+c+r+")"):t?c==="not"?n.push("(!"+r+")"):c==="!"?n.push("fac("+r+")"):n.push(c+"("+r+")"):c==="!"?n.push("("+r+"!)"):n.push("("+c+" "+r+")");else if(M===z2){for(b=T.value,y=[];b-- >0;)y.unshift(n.pop());c=n.pop(),n.push(c+"("+y.join(", ")+")")}else if(M===pF){for(a=n.pop(),b=T.value,y=[];b-- >0;)y.unshift(n.pop());r=n.pop(),t?n.push("("+r+" = function("+y.join(", ")+") { return "+a+" })"):n.push("("+r+"("+y.join(", ")+") = "+a+")")}else if(M===F0)r=n.pop(),n.push(r+"."+T.value);else if(M===H2){for(b=T.value,y=[];b-- >0;)y.unshift(n.pop());n.push("["+y.join(", ")+"]")}else if(M===Ms)n.push("("+wN(T.value,t)+")");else if(M!==yF)throw new Error("invalid Expression")}return n.length>1&&(t?n=[n.join(",")]:n=[n.join(";")]),String(n[0])}function WY(e){return typeof e=="string"?JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):e}function B2(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}function MN(e,t,n){n=n||{};for(var r=!!n.withMembers,a=null,i=0;i<e.length;i++){var c=e[i];c.type===Gu||c.type===R0?!r&&!B2(t,c.value)?t.push(c.value):(a!==null&&(B2(t,a)||t.push(a)),a=c.value):c.type===F0&&r&&a!==null?a+="."+c.value:c.type===Ms?MN(c.value,t,n):a!==null&&(B2(t,a)||t.push(a),a=null)}a!==null&&!B2(t,a)&&t.push(a)}function nd(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}nd.prototype.simplify=function(e){return e=e||{},new nd(bN(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,e),this.parser)},nd.prototype.substitute=function(e,t){return t instanceof nd||(t=this.parser.parse(String(t))),new nd(UY(this.tokens,e,t),this.parser)},nd.prototype.evaluate=function(e){return e=e||{},O0(this.tokens,this,e)},nd.prototype.toString=function(){return wN(this.tokens,!1)},nd.prototype.symbols=function(e){e=e||{};var t=[];return MN(this.tokens,t,e),t},nd.prototype.variables=function(e){e=e||{};var t=[];MN(this.tokens,t,e);var n=this.functions;return t.filter(function(r){return!(r in n)})},nd.prototype.toJSFunction=function(e,t){var n=this,r=new Function(e,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+wN(this.simplify(t).tokens,!0)+"; }");return function(){return r.apply(n,arguments)}};var Df="TEOF",Mr="TOP",mF="TNUMBER",YY="TSTRING",Ku="TPAREN",V2="TBRACKET",vF="TCOMMA",CN="TNAME",TN="TSEMICOLON";function ZY(e,t,n){this.type=e,this.value=t,this.index=n}ZY.prototype.toString=function(){return this.type+": "+this.value};function ga(e,t){this.pos=0,this.current=null,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.consts=e.consts,this.expression=t,this.savedPosition=0,this.savedCurrent=null,this.options=e.options,this.parser=e}ga.prototype.newToken=function(e,t,n){return new ZY(e,t,n??this.pos)},ga.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},ga.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},ga.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(Df,"EOF");if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},ga.prototype.isString=function(){var e=!1,t=this.pos,n=this.expression.charAt(t);if(n==="'"||n==='"')for(var r=this.expression.indexOf(n,t+1);r>=0&&this.pos<this.expression.length;){if(this.pos=r+1,this.expression.charAt(r-1)!=="\\"){var a=this.expression.substring(t+1,r);this.current=this.newToken(YY,this.unescape(a),t),e=!0;break}r=this.expression.indexOf(n,r+1)}return e},ga.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return e==="("||e===")"?(this.current=this.newToken(Ku,e),this.pos++,!0):!1},ga.prototype.isBracket=function(){var e=this.expression.charAt(this.pos);return(e==="["||e==="]")&&this.isOperatorEnabled("[")?(this.current=this.newToken(V2,e),this.pos++,!0):!1},ga.prototype.isComma=function(){var e=this.expression.charAt(this.pos);return e===","?(this.current=this.newToken(vF,","),this.pos++,!0):!1},ga.prototype.isSemicolon=function(){var e=this.expression.charAt(this.pos);return e===";"?(this.current=this.newToken(TN,";"),this.pos++,!0):!1},ga.prototype.isConst=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||n!=="_"&&n!=="."&&(n<"0"||n>"9")))break}if(t>e){var r=this.expression.substring(e,t);if(r in this.consts)return this.current=this.newToken(mF,this.consts[r]),this.pos+=r.length,!0}return!1},ga.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||n!=="_"&&(n<"0"||n>"9")))break}if(t>e){var r=this.expression.substring(e,t);if(this.isOperatorEnabled(r)&&(r in this.binaryOps||r in this.unaryOps||r in this.ternaryOps))return this.current=this.newToken(Mr,r),this.pos+=r.length,!0}return!1},ga.prototype.isName=function(){for(var e=this.pos,t=e,n=!1;t<this.expression.length;t++){var r=this.expression.charAt(t);if(r.toUpperCase()===r.toLowerCase()){if(t===this.pos&&(r==="$"||r==="_")){r==="_"&&(n=!0);continue}else if(t===this.pos||!n||r!=="_"&&(r<"0"||r>"9"))break}else n=!0}if(n){var a=this.expression.substring(e,t);return this.current=this.newToken(CN,a),this.pos+=a.length,!0}return!1},ga.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);(t===" "||t===" "||t===`
333
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},doe=function(e,t){return ioe(e)||soe(e,t)||loe(e,t)||coe()},RY=EY((function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])}return n},t.apply(this,arguments)}e.exports=t})),uoe=function(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a},FY=function(e,t){if(e==null)return{};var n,r,a=uoe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},hoe=de.createContext(null);function OY(e){var t=e.children,n=t===void 0?"":t,r=FY(e,["children"]);return typeof n!="string"&&(n=Kae.renderToString(n)),de.createElement("template",RY({},r,{dangerouslySetInnerHTML:{__html:n}}))}function DY(e){var t=e.root,n=e.children;return Qh.createPortal(n===void 0?null:n,t)}function foe(e){var t=de.forwardRef((function(n,r){var a,i,c=n.mode,y=c===void 0?"open":c,b=n.delegatesFocus,x=b!==void 0&&b,T=n.styleSheets,M=T===void 0?[]:T,I=n.ssr,O=I!==void 0&&I,N=n.children,D=FY(n,["mode","delegatesFocus","styleSheets","ssr","children"]),H=(i=de.useRef((a=r)&&a.current),de.useEffect((function(){a&&(a.current=i.current)}),[a]),i),_=de.useState(null),X=doe(_,2),K=X[0],te=X[1],J="node_".concat(y).concat(x);return de.useLayoutEffect((function(){if(H.current)try{if(typeof r=="function"&&r(H.current),O){var ne=H.current.shadowRoot;return void te(ne)}var ue=H.current.attachShadow({mode:y,delegatesFocus:x});M.length>0&&(ue.adoptedStyleSheets=M),te(ue)}catch(ye){(function(Ee){var Ve=Ee.error,tt=Ee.styleSheets,st=Ee.root;if(Ve.name==="NotSupportedError")tt.length>0&&(st.adoptedStyleSheets=tt);else throw Ve})({error:ye,styleSheets:M,root:K})}}),[r,H,M]),de.createElement(de.Fragment,null,de.createElement(e.tag,RY({key:J,ref:H},D),(K||O)&&de.createElement(hoe.Provider,{value:K},O?de.createElement(OY,{shadowroot:y,shadowrootmode:y},e.render({root:K,ssr:O,children:N})):de.createElement(DY,{root:K},e.render({root:K,ssr:O,children:N})))))}));return t.propTypes={mode:td.oneOf(["open","closed"]),delegatesFocus:td.bool,styleSheets:td.arrayOf(td.instanceOf(globalThis.CSSStyleSheet)),ssr:td.bool,children:td.node},t}OY.propTypes={children:td.oneOfType([td.string,td.node])},DY.propTypes={root:td.object.isRequired,children:td.node};var vN=new Map;function poe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,a){var i=ooe(a,{separator:"-"}),c="".concat(t,"-").concat(i);return vN.has(c)||vN.set(c,foe({tag:i,render:n})),vN.get(c)}})}var NY=poe();const zY=`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-x-reverse:0}}}@layer tasks-timeline-app{@layer theme{:root,:host{--font-sans:Inter,sans-serif;--font-mono:"JetBrains Mono",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-amber-50:hsl(var(--amber-50));--color-amber-100:hsl(var(--amber-100));--color-amber-200:hsl(var(--amber-200));--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:hsl(var(--amber-500));--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:hsl(var(--amber-700));--color-amber-900:oklch(41.4% .112 45.904);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-50:hsl(var(--emerald-50));--color-emerald-100:hsl(var(--emerald-100));--color-emerald-200:hsl(var(--emerald-200));--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:hsl(var(--emerald-400));--color-emerald-500:hsl(var(--emerald-500));--color-emerald-600:hsl(var(--emerald-600));--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-900:oklch(37.8% .077 168.94);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:hsl(var(--blue-50));--color-blue-100:hsl(var(--blue-100));--color-blue-200:hsl(var(--blue-200));--color-blue-300:hsl(var(--blue-300));--color-blue-400:hsl(var(--blue-400));--color-blue-500:hsl(var(--blue-500));--color-blue-600:hsl(var(--blue-600));--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-indigo-400:oklch(67.3% .182 276.935);--color-purple-50:hsl(var(--purple-50));--color-purple-100:hsl(var(--purple-100));--color-purple-200:hsl(var(--purple-200));--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:hsl(var(--purple-400));--color-purple-500:hsl(var(--purple-500));--color-purple-600:hsl(var(--purple-600));--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-rose-50:hsl(var(--rose-50));--color-rose-100:hsl(var(--rose-100));--color-rose-200:hsl(var(--rose-200));--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:hsl(var(--rose-500));--color-rose-600:hsl(var(--rose-600));--color-rose-700:hsl(var(--rose-700));--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-slate-50:hsl(var(--slate-50));--color-slate-100:hsl(var(--slate-100));--color-slate-200:hsl(var(--slate-200));--color-slate-300:hsl(var(--slate-300));--color-slate-400:hsl(var(--slate-400));--color-slate-500:hsl(var(--slate-500));--color-slate-600:hsl(var(--slate-600));--color-slate-700:hsl(var(--slate-700));--color-slate-800:hsl(var(--slate-800));--color-slate-900:hsl(var(--slate-900));--color-slate-950:hsl(var(--slate-950));--color-gray-50:oklch(98.5% .002 247.839);--color-black:#000;--color-white:hsl(var(--background));--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:var(--radius);--color-background:hsl(var(--background));--color-foreground:hsl(var(--foreground));--color-popover:hsl(var(--popover));--color-popover-foreground:hsl(var(--popover-foreground));--color-primary:hsl(var(--primary));--color-primary-foreground:hsl(var(--primary-foreground));--color-secondary:hsl(var(--secondary));--color-secondary-foreground:hsl(var(--secondary-foreground));--color-muted:hsl(var(--muted));--color-muted-foreground:hsl(var(--muted-foreground));--color-accent:hsl(var(--accent));--color-accent-foreground:hsl(var(--accent-foreground));--color-destructive:hsl(var(--destructive));--color-destructive-foreground:hsl(var(--destructive-foreground));--color-border:hsl(var(--border));--color-input:hsl(var(--input));--color-ring:hsl(var(--ring));--color-paper:hsl(var(--card))}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-0{top:calc(var(--spacing)*0)}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1{top:calc(var(--spacing)*1)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-2\\.5{top:calc(var(--spacing)*2.5)}.top-3{top:calc(var(--spacing)*3)}.top-4{top:calc(var(--spacing)*4)}.top-5{top:calc(var(--spacing)*5)}.top-\\[50\\%\\]{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-6{right:calc(var(--spacing)*6)}.right-8{right:calc(var(--spacing)*8)}.-bottom-1{bottom:calc(var(--spacing)*-1)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-2{bottom:calc(var(--spacing)*2)}.bottom-6{bottom:calc(var(--spacing)*6)}.left-0{left:calc(var(--spacing)*0)}.left-0\\.5{left:calc(var(--spacing)*.5)}.left-1{left:calc(var(--spacing)*1)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-\\[50\\%\\]{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-9999{z-index:9999}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-0\\.5{margin-inline:calc(var(--spacing)*.5)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.-mt-1{margin-top:calc(var(--spacing)*-1)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-10{margin-top:calc(var(--spacing)*10)}.-mr-1{margin-right:calc(var(--spacing)*-1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-4\\.5{height:calc(var(--spacing)*4.5)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-6{height:calc(var(--spacing)*6)}.h-6\\.5{height:calc(var(--spacing)*6.5)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-9\\.5{height:calc(var(--spacing)*9.5)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-16{height:calc(var(--spacing)*16)}.h-24{height:calc(var(--spacing)*24)}.h-28{height:calc(var(--spacing)*28)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:calc(var(--spacing)*40)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-\\[40vh\\]{max-height:40vh}.max-h-\\[60vh\\]{max-height:60vh}.max-h-\\[85vh\\]{max-height:85vh}.max-h-\\[var\\(--radix-dropdown-menu-content-available-height\\)\\]{max-height:var(--radix-dropdown-menu-content-available-height)}.min-h-5\\.5{min-height:calc(var(--spacing)*5.5)}.min-h-20{min-height:calc(var(--spacing)*20)}.min-h-100{min-height:calc(var(--spacing)*100)}.min-h-\\[38px\\]{min-height:38px}.min-h-screen{min-height:100vh}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-44{width:calc(var(--spacing)*44)}.w-48{width:calc(var(--spacing)*48)}.w-56{width:calc(var(--spacing)*56)}.w-72{width:calc(var(--spacing)*72)}.w-\\[280px\\]{width:280px}.w-\\[400px\\]{width:400px}.w-\\[600px\\]{width:600px}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[120px\\]{max-width:120px}.max-w-\\[350px\\]{max-width:350px}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-4{min-width:calc(var(--spacing)*4)}.min-w-50{min-width:calc(var(--spacing)*50)}.min-w-80{min-width:calc(var(--spacing)*80)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[250px\\]{min-width:250px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-\\[--radix-dropdown-menu-content-transform-origin\\]{transform-origin:--radix-dropdown-menu-content-transform-origin}.origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:--radix-popover-content-transform-origin}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.resize{resize:both}.resize-none{resize:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\\[auto_1fr\\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-start\\!{justify-content:flex-start!important}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-y-1{row-gap:calc(var(--spacing)*1)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:var(--radius)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-\\[\\#e8e4db\\]{border-color:#e8e4db}.border-amber-100\\/50{border-color:color-mix(in srgb,hsl(var(--amber-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-amber-100\\/50{border-color:color-mix(in oklab,var(--color-amber-100)50%,transparent)}}.border-amber-200{border-color:var(--color-amber-200)}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-100\\/50{border-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-blue-100\\/50{border-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-600{border-color:var(--color-blue-600)}.border-border{border-color:var(--color-border)}.border-emerald-100\\/50{border-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-emerald-100\\/50{border-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-200\\/50{border-color:color-mix(in srgb,hsl(var(--emerald-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-emerald-200\\/50{border-color:color-mix(in oklab,var(--color-emerald-200)50%,transparent)}}.border-green-200{border-color:var(--color-green-200)}.border-input{border-color:var(--color-input)}.border-purple-100{border-color:var(--color-purple-100)}.border-purple-200{border-color:var(--color-purple-200)}.border-purple-300{border-color:var(--color-purple-300)}.border-purple-400{border-color:var(--color-purple-400)}.border-red-200{border-color:var(--color-red-200)}.border-rose-100{border-color:var(--color-rose-100)}.border-rose-100\\/50{border-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-rose-100\\/50{border-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-rose-200{border-color:var(--color-rose-200)}.border-rose-200\\/50{border-color:color-mix(in srgb,hsl(var(--rose-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-rose-200\\/50{border-color:color-mix(in oklab,var(--color-rose-200)50%,transparent)}}.border-rose-400{border-color:var(--color-rose-400)}.border-slate-50{border-color:var(--color-slate-50)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-100\\/50{border-color:color-mix(in srgb,hsl(var(--slate-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-100\\/50{border-color:color-mix(in oklab,var(--color-slate-100)50%,transparent)}}.border-slate-100\\/80{border-color:color-mix(in srgb,hsl(var(--slate-100))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-100\\/80{border-color:color-mix(in oklab,var(--color-slate-100)80%,transparent)}}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-200\\/20{border-color:color-mix(in srgb,hsl(var(--slate-200))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/20{border-color:color-mix(in oklab,var(--color-slate-200)20%,transparent)}}.border-slate-200\\/50{border-color:color-mix(in srgb,hsl(var(--slate-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/50{border-color:color-mix(in oklab,var(--color-slate-200)50%,transparent)}}.border-slate-200\\/60{border-color:color-mix(in srgb,hsl(var(--slate-200))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-slate-200\\/60{border-color:color-mix(in oklab,var(--color-slate-200)60%,transparent)}}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-slate-700{border-color:var(--color-slate-700)}.border-slate-800{border-color:var(--color-slate-800)}.border-transparent{border-color:#0000}.border-y-amber-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--amber-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-amber-100\\/50{border-block-color:color-mix(in oklab,var(--color-amber-100)50%,transparent)}}.border-y-blue-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-blue-100\\/50{border-block-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-y-emerald-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-emerald-100\\/50{border-block-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-y-rose-100\\/50{border-block-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-y-rose-100\\/50{border-block-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-r-amber-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--amber-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-amber-100\\/50{border-right-color:color-mix(in oklab,var(--color-amber-100)50%,transparent)}}.border-r-blue-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--blue-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-blue-100\\/50{border-right-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}}.border-r-emerald-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-emerald-100\\/50{border-right-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.border-r-rose-100\\/50{border-right-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.border-r-rose-100\\/50{border-right-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.border-l-amber-500{border-left-color:var(--color-amber-500)}.border-l-blue-500{border-left-color:var(--color-blue-500)}.border-l-emerald-500{border-left-color:var(--color-emerald-500)}.border-l-rose-500{border-left-color:var(--color-rose-500)}.bg-\\[\\#0B1120\\]{background-color:#0b1120}.bg-\\[\\#1e1e1e\\]{background-color:#1e1e1e}.bg-\\[\\#29abe0\\]{background-color:#29abe0}.bg-\\[\\#FFDD00\\]{background-color:#fd0}.bg-\\[\\#f5f2eb\\]{background-color:#f5f2eb}.bg-accent{background-color:var(--color-accent)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-50\\/80{background-color:color-mix(in srgb,hsl(var(--amber-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\\/80{background-color:color-mix(in oklab,var(--color-amber-50)80%,transparent)}}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-background{background-color:var(--color-background)}.bg-black\\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/30{background-color:color-mix(in srgb,hsl(var(--blue-50))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/30{background-color:color-mix(in oklab,var(--color-blue-50)30%,transparent)}}.bg-blue-50\\/50{background-color:color-mix(in srgb,hsl(var(--blue-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/50{background-color:color-mix(in oklab,var(--color-blue-50)50%,transparent)}}.bg-blue-50\\/80{background-color:color-mix(in srgb,hsl(var(--blue-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/80{background-color:color-mix(in oklab,var(--color-blue-50)80%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-destructive{background-color:var(--color-destructive)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-50\\/80{background-color:color-mix(in srgb,hsl(var(--emerald-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\\/80{background-color:color-mix(in oklab,var(--color-emerald-50)80%,transparent)}}.bg-emerald-100\\/50{background-color:color-mix(in srgb,hsl(var(--emerald-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-emerald-100\\/50{background-color:color-mix(in oklab,var(--color-emerald-100)50%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-green-50{background-color:var(--color-green-50)}.bg-indigo-400{background-color:var(--color-indigo-400)}.bg-muted{background-color:var(--color-muted)}.bg-paper{background-color:var(--color-paper)}.bg-paper\\/50{background-color:color-mix(in srgb,hsl(var(--card))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-paper\\/50{background-color:color-mix(in oklab,var(--color-paper)50%,transparent)}}.bg-paper\\/95{background-color:color-mix(in srgb,hsl(var(--card))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-paper\\/95{background-color:color-mix(in oklab,var(--color-paper)95%,transparent)}}.bg-popover{background-color:var(--color-popover)}.bg-primary{background-color:var(--color-primary)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-400{background-color:var(--color-purple-400)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-50\\/50{background-color:color-mix(in srgb,hsl(var(--rose-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/50{background-color:color-mix(in oklab,var(--color-rose-50)50%,transparent)}}.bg-rose-50\\/60{background-color:color-mix(in srgb,hsl(var(--rose-50))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/60{background-color:color-mix(in oklab,var(--color-rose-50)60%,transparent)}}.bg-rose-50\\/80{background-color:color-mix(in srgb,hsl(var(--rose-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\\/80{background-color:color-mix(in oklab,var(--color-rose-50)80%,transparent)}}.bg-rose-100{background-color:var(--color-rose-100)}.bg-rose-100\\/50{background-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-rose-100\\/50{background-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.bg-rose-300{background-color:var(--color-rose-300)}.bg-rose-500{background-color:var(--color-rose-500)}.bg-secondary{background-color:var(--color-secondary)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-50\\/30{background-color:color-mix(in srgb,hsl(var(--slate-50))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/30{background-color:color-mix(in oklab,var(--color-slate-50)30%,transparent)}}.bg-slate-50\\/50{background-color:color-mix(in srgb,hsl(var(--slate-50))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/50{background-color:color-mix(in oklab,var(--color-slate-50)50%,transparent)}}.bg-slate-50\\/80{background-color:color-mix(in srgb,hsl(var(--slate-50))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\\/80{background-color:color-mix(in oklab,var(--color-slate-50)80%,transparent)}}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-200\\/60{background-color:color-mix(in srgb,hsl(var(--slate-200))60%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-200\\/60{background-color:color-mix(in oklab,var(--color-slate-200)60%,transparent)}}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\\/40{background-color:color-mix(in srgb,hsl(var(--slate-900))40%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/40{background-color:color-mix(in oklab,var(--color-slate-900)40%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/50{background-color:color-mix(in srgb,hsl(var(--background))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-white\\/50{background-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.bg-white\\/95{background-color:color-mix(in srgb,hsl(var(--background))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.bg-white\\/95{background-color:color-mix(in oklab,var(--color-white)95%,transparent)}}.bg-gradient-to-l{--tw-gradient-position:to left in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-white{--tw-gradient-from:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.fill-current{fill:currentColor}.p-0{padding:calc(var(--spacing)*0)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-0\\.5{padding-inline:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-10{padding-block:calc(var(--spacing)*10)}.pt-0\\.5{padding-top:calc(var(--spacing)*.5)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-6{padding-right:calc(var(--spacing)*6)}.pr-16{padding-right:calc(var(--spacing)*16)}.pr-24{padding-right:calc(var(--spacing)*24)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-1\\.5{padding-bottom:calc(var(--spacing)*1.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-10{padding-bottom:calc(var(--spacing)*10)}.pl-0\\.5{padding-left:calc(var(--spacing)*.5)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-9{padding-left:calc(var(--spacing)*9)}.text-center{text-align:center}.text-left{text-align:left}.text-left\\!{text-align:left!important}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[9px\\]{font-size:9px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[15px\\]{font-size:15px}.text-\\[length\\:inherit\\]{font-size:inherit}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-tighter{--tw-tracking:var(--tracking-tighter);letter-spacing:var(--tracking-tighter)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent-foreground{color:var(--color-accent-foreground)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-blue-400{color:var(--color-blue-400)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-600\\!{color:var(--color-blue-600)!important}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-destructive-foreground{color:var(--color-destructive-foreground)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-foreground{color:var(--color-foreground)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--color-muted-foreground)}.text-muted-foreground\\/40{color:color-mix(in srgb,hsl(var(--muted-foreground))40%,transparent)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/40{color:color-mix(in oklab,var(--color-muted-foreground)40%,transparent)}}.text-popover-foreground{color:var(--color-popover-foreground)}.text-primary{color:var(--color-primary)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-purple-300{color:var(--color-purple-300)}.text-purple-400{color:var(--color-purple-400)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-purple-900{color:var(--color-purple-900)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-700{color:var(--color-red-700)}.text-rose-400{color:var(--color-rose-400)}.text-rose-500{color:var(--color-rose-500)}.text-rose-600{color:var(--color-rose-600)}.text-rose-600\\!{color:var(--color-rose-600)!important}.text-rose-700{color:var(--color-rose-700)}.text-rose-900{color:var(--color-rose-900)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.text-sky-500{color:var(--color-sky-500)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.decoration-slate-300{-webkit-text-decoration-color:var(--color-slate-300);text-decoration-color:var(--color-slate-300)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-blue-200{--tw-shadow-color:hsl(var(--blue-200))}@supports (color:color-mix(in lab,red,red)){.shadow-blue-200{--tw-shadow-color:color-mix(in oklab,var(--color-blue-200)var(--tw-shadow-alpha),transparent)}}.shadow-emerald-100{--tw-shadow-color:hsl(var(--emerald-100))}@supports (color:color-mix(in lab,red,red)){.shadow-emerald-100{--tw-shadow-color:color-mix(in oklab,var(--color-emerald-100)var(--tw-shadow-alpha),transparent)}}.shadow-rose-100{--tw-shadow-color:hsl(var(--rose-100))}@supports (color:color-mix(in lab,red,red)){.shadow-rose-100{--tw-shadow-color:color-mix(in oklab,var(--color-rose-100)var(--tw-shadow-alpha),transparent)}}.shadow-rose-100\\/50{--tw-shadow-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.shadow-rose-100\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-rose-100)50%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-slate-100{--tw-shadow-color:hsl(var(--slate-100))}@supports (color:color-mix(in lab,red,red)){.shadow-slate-100{--tw-shadow-color:color-mix(in oklab,var(--color-slate-100)var(--tw-shadow-alpha),transparent)}}.shadow-slate-200{--tw-shadow-color:hsl(var(--slate-200))}@supports (color:color-mix(in lab,red,red)){.shadow-slate-200{--tw-shadow-color:color-mix(in oklab,var(--color-slate-200)var(--tw-shadow-alpha),transparent)}}.shadow-slate-200\\/50{--tw-shadow-color:color-mix(in srgb,hsl(var(--slate-200))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.shadow-slate-200\\/50{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-slate-200)50%,transparent)var(--tw-shadow-alpha),transparent)}}.ring-blue-200{--tw-ring-color:var(--color-blue-200)}.ring-primary\\/30{--tw-ring-color:color-mix(in srgb,hsl(var(--primary))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.ring-primary\\/30{--tw-ring-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.ring-purple-200{--tw-ring-color:var(--color-purple-200)}.ring-offset-background{--tw-ring-offset-color:var(--color-background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-first\\:hidden:is(:where(.group):first-child *){display:none}@media(hover:hover){.group-hover\\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\\:text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)}.group-hover\\:text-blue-600:is(:where(.group):hover *){color:var(--color-blue-600)}.group-hover\\:text-slate-400:is(:where(.group):hover *){color:var(--color-slate-400)}.group-hover\\:text-slate-700:is(:where(.group):hover *){color:var(--color-slate-700)}.group-hover\\:text-slate-900:is(:where(.group):hover *){color:var(--color-slate-900)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.selection\\:bg-rose-100 ::selection{background-color:var(--color-rose-100)}.selection\\:bg-rose-100::selection{background-color:var(--color-rose-100)}.selection\\:text-rose-900 ::selection{color:var(--color-rose-900)}.selection\\:text-rose-900::selection{color:var(--color-rose-900)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--color-foreground)}.placeholder\\:text-muted-foreground::placeholder{color:var(--color-muted-foreground)}.placeholder\\:text-purple-300::placeholder{color:var(--color-purple-300)}.placeholder\\:text-slate-400::placeholder{color:var(--color-slate-400)}.focus-within\\:border-blue-500:focus-within{border-color:var(--color-blue-500)}.focus-within\\:ring-1:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:ring-blue-500\\/20:focus-within{--tw-ring-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus-within\\:ring-blue-500\\/20:focus-within{--tw-ring-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}@media(hover:hover){.hover\\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\\:border-rose-100:hover{border-color:var(--color-rose-100)}.hover\\:border-slate-200:hover{border-color:var(--color-slate-200)}.hover\\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\\:bg-accent:hover{background-color:var(--color-accent)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in srgb,hsl(var(--destructive))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in oklab,var(--color-destructive)80%,transparent)}}.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in srgb,hsl(var(--destructive))90%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--color-destructive)90%,transparent)}}.hover\\:bg-emerald-100:hover{background-color:var(--color-emerald-100)}.hover\\:bg-primary\\/80:hover{background-color:color-mix(in srgb,hsl(var(--primary))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/80:hover{background-color:color-mix(in oklab,var(--color-primary)80%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:color-mix(in srgb,hsl(var(--primary))90%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--color-primary)90%,transparent)}}.hover\\:bg-purple-100:hover{background-color:var(--color-purple-100)}.hover\\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\\:bg-rose-50:hover{background-color:var(--color-rose-50)}.hover\\:bg-rose-100:hover{background-color:var(--color-rose-100)}.hover\\:bg-rose-100\\/50:hover{background-color:color-mix(in srgb,hsl(var(--rose-100))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-rose-100\\/50:hover{background-color:color-mix(in oklab,var(--color-rose-100)50%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in srgb,hsl(var(--secondary))80%,transparent)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--color-secondary)80%,transparent)}}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\\:bg-slate-300:hover{background-color:var(--color-slate-300)}.hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\\:text-accent-foreground:hover{color:var(--color-accent-foreground)}.hover\\:text-blue-500:hover{color:var(--color-blue-500)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-foreground:hover{color:var(--color-foreground)}.hover\\:text-primary-foreground:hover{color:var(--color-primary-foreground)}.hover\\:text-red-500:hover{color:var(--color-red-500)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-rose-500:hover{color:var(--color-rose-500)}.hover\\:text-rose-600:hover{color:var(--color-rose-600)}.hover\\:text-rose-800:hover{color:var(--color-rose-800)}.hover\\:text-slate-600:hover{color:var(--color-slate-600)}.hover\\:text-slate-700:hover{color:var(--color-slate-700)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}.hover\\:text-slate-900:hover{color:var(--color-slate-900)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-100:hover{opacity:1}.hover\\:brightness-95:hover{--tw-brightness:brightness(95%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:border-blue-500\\/50:focus{border-color:color-mix(in srgb,hsl(var(--blue-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:border-blue-500\\/50:focus{border-color:color-mix(in oklab,var(--color-blue-500)50%,transparent)}}.focus\\:border-emerald-500\\/50:focus{border-color:color-mix(in srgb,hsl(var(--emerald-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:border-emerald-500\\/50:focus{border-color:color-mix(in oklab,var(--color-emerald-500)50%,transparent)}}.focus\\:border-purple-400:focus{border-color:var(--color-purple-400)}.focus\\:border-purple-500:focus{border-color:var(--color-purple-500)}.focus\\:border-purple-500\\/50:focus{border-color:color-mix(in srgb,hsl(var(--purple-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:border-purple-500\\/50:focus{border-color:color-mix(in oklab,var(--color-purple-500)50%,transparent)}}.focus\\:border-ring:focus{border-color:var(--color-ring)}.focus\\:border-slate-400:focus{border-color:var(--color-slate-400)}.focus\\:bg-accent:focus{background-color:var(--color-accent)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:text-accent-foreground:focus{color:var(--color-accent-foreground)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-300:focus{--tw-ring-color:var(--color-blue-300)}.focus\\:ring-blue-400:focus{--tw-ring-color:var(--color-blue-400)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:ring-blue-500\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.focus\\:ring-blue-500\\/50:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--blue-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-blue-500)50%,transparent)}}.focus\\:ring-emerald-500\\/50:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--emerald-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-emerald-500\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-emerald-500)50%,transparent)}}.focus\\:ring-purple-400\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--purple-400))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-purple-400\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-purple-400)20%,transparent)}}.focus\\:ring-purple-500\\/50:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--purple-500))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-purple-500\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-purple-500)50%,transparent)}}.focus\\:ring-ring:focus{--tw-ring-color:var(--color-ring)}.focus\\:ring-slate-200:focus{--tw-ring-color:var(--color-slate-200)}.focus\\:ring-slate-400\\/20:focus{--tw-ring-color:color-mix(in srgb,hsl(var(--slate-400))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-slate-400\\/20:focus{--tw-ring-color:color-mix(in oklab,var(--color-slate-400)20%,transparent)}}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:var(--color-ring)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--color-accent)}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--color-muted-foreground)}@media(min-width:400px){.min-\\[400px\\]\\:right-3{right:calc(var(--spacing)*3)}.min-\\[400px\\]\\:left-3{left:calc(var(--spacing)*3)}.min-\\[400px\\]\\:mx-1{margin-inline:calc(var(--spacing)*1)}.min-\\[400px\\]\\:flex{display:flex}.min-\\[400px\\]\\:h-5{height:calc(var(--spacing)*5)}.min-\\[400px\\]\\:w-5{width:calc(var(--spacing)*5)}.min-\\[400px\\]\\:gap-1{gap:calc(var(--spacing)*1)}.min-\\[400px\\]\\:gap-1\\.5{gap:calc(var(--spacing)*1.5)}.min-\\[400px\\]\\:gap-2{gap:calc(var(--spacing)*2)}.min-\\[400px\\]\\:p-1\\.5{padding:calc(var(--spacing)*1.5)}.min-\\[400px\\]\\:px-2{padding-inline:calc(var(--spacing)*2)}.min-\\[400px\\]\\:px-3{padding-inline:calc(var(--spacing)*3)}.min-\\[400px\\]\\:px-4{padding-inline:calc(var(--spacing)*4)}.min-\\[400px\\]\\:py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.min-\\[400px\\]\\:py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.min-\\[400px\\]\\:pr-4{padding-right:calc(var(--spacing)*4)}.min-\\[400px\\]\\:pr-28{padding-right:calc(var(--spacing)*28)}.min-\\[400px\\]\\:pl-1{padding-left:calc(var(--spacing)*1)}.min-\\[400px\\]\\:pl-10{padding-left:calc(var(--spacing)*10)}}@media(min-width:550px){.min-\\[550px\\]\\:block{display:block}}@media(min-width:40rem){.sm\\:inline-block{display:inline-block}.sm\\:w-6{width:calc(var(--spacing)*6)}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-2{gap:calc(var(--spacing)*2)}.sm\\:gap-4{gap:calc(var(--spacing)*4)}:where(.sm\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius-lg)}.sm\\:px-1{padding-inline:calc(var(--spacing)*1)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\\:pr-8{padding-right:calc(var(--spacing)*8)}.sm\\:pr-20{padding-right:calc(var(--spacing)*20)}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:48rem){.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(prefers-color-scheme:dark){.dark\\:border-blue-800{border-color:var(--color-blue-800)}.dark\\:border-emerald-700{border-color:var(--color-emerald-700)}.dark\\:border-purple-800{border-color:var(--color-purple-800)}.dark\\:border-red-700{border-color:var(--color-red-700)}.dark\\:border-rose-900\\/20{border-color:#8b083633}@supports (color:color-mix(in lab,red,red)){.dark\\:border-rose-900\\/20{border-color:color-mix(in oklab,var(--color-rose-900)20%,transparent)}}.dark\\:border-slate-500{border-color:var(--color-slate-500)}.dark\\:border-slate-600{border-color:var(--color-slate-600)}.dark\\:border-slate-700{border-color:var(--color-slate-700)}.dark\\:border-slate-700\\/50{border-color:color-mix(in srgb,hsl(var(--slate-700))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:border-slate-700\\/50{border-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.dark\\:border-slate-800{border-color:var(--color-slate-800)}.dark\\:bg-blue-900\\/30{background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-900\\/30{background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\\:bg-emerald-900\\/30{background-color:#004e3b4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-emerald-900\\/30{background-color:color-mix(in oklab,var(--color-emerald-900)30%,transparent)}}.dark\\:bg-red-900\\/30{background-color:#82181a4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-900\\/30{background-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\\:bg-rose-900\\/10{background-color:#8b08361a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-rose-900\\/10{background-color:color-mix(in oklab,var(--color-rose-900)10%,transparent)}}.dark\\:bg-slate-600{background-color:var(--color-slate-600)}.dark\\:bg-slate-700{background-color:var(--color-slate-700)}.dark\\:bg-slate-800{background-color:var(--color-slate-800)}.dark\\:bg-slate-800\\/30{background-color:color-mix(in srgb,hsl(var(--slate-800))30%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-800\\/30{background-color:color-mix(in oklab,var(--color-slate-800)30%,transparent)}}.dark\\:bg-slate-800\\/50{background-color:color-mix(in srgb,hsl(var(--slate-800))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-800\\/50{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.dark\\:bg-slate-900{background-color:var(--color-slate-900)}.dark\\:bg-slate-900\\/10{background-color:color-mix(in srgb,hsl(var(--slate-900))10%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-900\\/10{background-color:color-mix(in oklab,var(--color-slate-900)10%,transparent)}}.dark\\:bg-slate-900\\/20{background-color:color-mix(in srgb,hsl(var(--slate-900))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-slate-900\\/20{background-color:color-mix(in oklab,var(--color-slate-900)20%,transparent)}}.dark\\:text-blue-100{color:var(--color-blue-100)}.dark\\:text-blue-300{color:var(--color-blue-300)}.dark\\:text-emerald-300{color:var(--color-emerald-300)}.dark\\:text-red-300{color:var(--color-red-300)}.dark\\:text-slate-100{color:var(--color-slate-100)}.dark\\:text-slate-200{color:var(--color-slate-200)}.dark\\:text-slate-300{color:var(--color-slate-300)}.dark\\:text-slate-400{color:var(--color-slate-400)}.dark\\:shadow-slate-950{--tw-shadow-color:hsl(var(--slate-950))}@supports (color:color-mix(in lab,red,red)){.dark\\:shadow-slate-950{--tw-shadow-color:color-mix(in oklab,var(--color-slate-950)var(--tw-shadow-alpha),transparent)}}.dark\\:ring-blue-900{--tw-ring-color:var(--color-blue-900)}@media(hover:hover){.dark\\:hover\\:bg-blue-900\\/30:hover{background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-blue-900\\/30:hover{background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\\:hover\\:bg-emerald-900\\/50:hover{background-color:#004e3b80}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-emerald-900\\/50:hover{background-color:color-mix(in oklab,var(--color-emerald-900)50%,transparent)}}.dark\\:hover\\:bg-red-900\\/50:hover{background-color:#82181a80}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-red-900\\/50:hover{background-color:color-mix(in oklab,var(--color-red-900)50%,transparent)}}.dark\\:hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.dark\\:hover\\:bg-slate-800:hover{background-color:var(--color-slate-800)}.dark\\:hover\\:bg-slate-800\\/50:hover{background-color:color-mix(in srgb,hsl(var(--slate-800))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-slate-800\\/50:hover{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.dark\\:hover\\:text-slate-200:hover{color:var(--color-slate-200)}.dark\\:hover\\:text-slate-300:hover{color:var(--color-slate-300)}}}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-slate-600{border-color:var(--color-slate-600)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-slate-700\\/50{border-color:color-mix(in srgb,hsl(var(--slate-700))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-slate-700\\/50{border-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-amber-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--amber-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-amber-500\\/20{border-block-color:color-mix(in oklab,var(--color-amber-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-blue-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-blue-500\\/20{border-block-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-emerald-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--emerald-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-emerald-500\\/20{border-block-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-rose-500\\/20{border-block-color:color-mix(in srgb,hsl(var(--rose-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-y-rose-500\\/20{border-block-color:color-mix(in oklab,var(--color-rose-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-amber-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--amber-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-amber-500\\/20{border-right-color:color-mix(in oklab,var(--color-amber-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-blue-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--blue-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-blue-500\\/20{border-right-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-emerald-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--emerald-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-emerald-500\\/20{border-right-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-rose-500\\/20{border-right-color:color-mix(in srgb,hsl(var(--rose-500))20%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:border-r-rose-500\\/20{border-right-color:color-mix(in oklab,var(--color-rose-500)20%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-amber-900\\/30{background-color:#7b33064d}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-amber-900\\/30{background-color:color-mix(in oklab,var(--color-amber-900)30%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-rose-900\\/30{background-color:#8b08364d}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-rose-900\\/30{background-color:color-mix(in oklab,var(--color-rose-900)30%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-700{background-color:var(--color-slate-700)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-700\\/50{background-color:color-mix(in srgb,hsl(var(--slate-700))50%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-700\\/50{background-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-800\\/95{background-color:color-mix(in srgb,hsl(var(--slate-800))95%,transparent)}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:bg-slate-800\\/95{background-color:color-mix(in oklab,var(--color-slate-800)95%,transparent)}}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-amber-400{color:var(--color-amber-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-blue-400{color:var(--color-blue-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-emerald-400{color:var(--color-emerald-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-rose-400{color:var(--color-rose-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-100{color:var(--color-slate-100)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-200{color:var(--color-slate-200)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-300{color:var(--color-slate-300)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:text-slate-400{color:var(--color-slate-400)}.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:shadow-black\\/20{--tw-shadow-color:#0003}@supports (color:color-mix(in lab,red,red)){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:shadow-black\\/20{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-black)20%,transparent)var(--tw-shadow-alpha),transparent)}}@media(hover:hover){.chronos-app[data-theme=dark] .\\[\\.chronos-app\\[data-theme\\=\\'dark\\'\\]_\\&\\]\\:hover\\:bg-slate-600:hover{background-color:var(--color-slate-600)}}}}:root{--background:0 0% 100%;--foreground:222.2 47.4% 11.2%;--card:0 0% 98.8%;--card-foreground:222.2 47.4% 11.2%;--popover:0 0% 98.8%;--popover-foreground:222.2 47.4% 11.2%;--primary:217.2 91.2% 59.8%;--primary-foreground:0 0% 100%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:214.3 100% 97.1%;--accent-foreground:217.2 91.2% 59.8%;--destructive:346.8 77.2% 49.8%;--destructive-foreground:0 0% 100%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:217.2 91.2% 59.8%;--radius:.5rem;--slate-50:210 40% 98%;--slate-100:210 40% 96.1%;--slate-200:214.3 31.8% 91.4%;--slate-300:212.7 26.8% 83.9%;--slate-400:215 20.2% 65.1%;--slate-500:215.4 16.3% 46.9%;--slate-600:215.3 19.3% 34.5%;--slate-700:215.3 25% 26.7%;--slate-800:217.2 32.6% 17.5%;--slate-900:222.2 47.4% 11.2%;--slate-950:222.2 84% 4.9%;--rose-50:355.7 100% 97.3%;--rose-100:355.6 100% 94.7%;--rose-200:352.7 96.1% 90%;--rose-500:349.7 89.2% 60.2%;--rose-600:346.8 77.2% 49.8%;--rose-700:345.3 82.7% 40.8%;--emerald-50:151.8 81% 95.9%;--emerald-100:149.3 80.4% 90%;--emerald-200:152.4 76% 80.4%;--emerald-400:160.1 84.1% 52.5%;--emerald-500:160.1 84.1% 39.4%;--emerald-600:161.4 93.5% 30.4%;--blue-50:213.8 100% 96.9%;--blue-100:214.3 94.6% 92.7%;--blue-200:213.3 96.9% 87.3%;--blue-300:211.7 96.4% 78.4%;--blue-400:213.1 93.9% 67.8%;--blue-500:217.2 91.2% 59.8%;--blue-600:221.2 83.2% 53.3%;--amber-50:48 100% 96.1%;--amber-100:48 96.5% 88.8%;--amber-200:48 96.6% 76.7%;--amber-500:43 96.4% 56.3%;--amber-700:37.7 92.1% 38%;--purple-50:270 100% 98%;--purple-100:269 100% 95.5%;--purple-200:268.7 100% 91.8%;--purple-400:270.4 95.2% 75.3%;--purple-500:270.7 91% 65.1%;--purple-600:271.5 81.3% 55.9%}.tasks-timeline-app[data-theme=dark]{--background:222.2 47.4% 11.2%;--foreground:210 40% 98%;--card:217.2 32.6% 17.5%;--card-foreground:210 40% 98%;--popover:217.2 32.6% 17.5%;--popover-foreground:210 40% 98%;--primary:213.1 93.9% 67.8%;--primary-foreground:222.2 47.4% 11.2%;--secondary:215.3 25% 26.7%;--secondary-foreground:210 40% 98%;--muted:215.3 25% 26.7%;--muted-foreground:215 20.2% 65.1%;--accent:217.2 32.6% 17.5%;--accent-foreground:213.1 93.9% 67.8%;--destructive:350 89.2% 60.2%;--destructive-foreground:210 40% 98%;--border:215.3 25% 26.7%;--input:215.3 25% 26.7%;--ring:213.1 93.9% 67.8%;--slate-50:217.2 32.6% 17.5%;--slate-100:215.3 25% 26.7%;--slate-200:215.3 19.3% 34.5%;--slate-300:215.4 16.3% 46.9%;--slate-400:215 20.2% 65.1%;--slate-500:212.7 26.8% 83.9%;--slate-600:214.3 31.8% 91.4%;--slate-700:210 40% 96.1%;--slate-800:210 40% 98%;--slate-900:0 0% 100%;--slate-950:0 0% 100%;--rose-50:347 82% 15%;--rose-100:345 79% 26%;--rose-200:346 84% 32%;--rose-500:353.7 89.5% 70.6%;--rose-600:352.7 96.1% 90%;--rose-700:355.6 100% 94.7%;--emerald-50:162 100% 8%;--emerald-100:163 94% 14%;--emerald-200:164 86% 18%;--emerald-500:158 64% 52%;--emerald-600:152.4 76% 80.4%;--blue-50:221 83% 15%;--blue-100:222 87% 24%;--blue-200:223 83% 30%;--blue-500:213.1 93.9% 67.8%;--blue-600:213.3 96.9% 87.3%;--amber-50:31 100% 10%;--amber-100:30 93% 17%;--amber-200:29 93% 22%;--amber-500:47 92% 68%;--amber-700:48 96.6% 76.7%;--purple-50:273 100% 10%;--purple-100:273 94% 18%;--purple-200:272 87% 24%;--purple-500:270.7 91% 65.1%;--purple-600:270.4 95.2% 75.3%}.tasks-timeline-app[data-theme=midnight]{--background:222 47% 7%;--foreground:210 40% 98%;--card:218 36% 13%;--card-foreground:210 40% 98%;--popover:218 36% 13%;--popover-foreground:210 40% 98%;--primary:213.1 93.9% 67.8%;--primary-foreground:222 47% 7%;--secondary:217.2 32.6% 17.5%;--secondary-foreground:210 40% 98%;--muted:215.3 25% 26.7%;--muted-foreground:215 20.2% 65.1%;--accent:218 36% 13%;--accent-foreground:213.1 93.9% 67.8%;--destructive:350 89.2% 60.2%;--destructive-foreground:210 40% 98%;--border:215.3 25% 26.7%;--input:215.3 25% 26.7%;--ring:213.1 93.9% 67.8%;--slate-50:218 36% 13%;--slate-100:217.2 32.6% 17.5%;--slate-200:215.3 25% 26.7%;--slate-300:215.3 19.3% 34.5%;--slate-400:215.4 16.3% 46.9%;--slate-500:215 20.2% 65.1%;--slate-600:212.7 26.8% 83.9%;--slate-700:214.3 31.8% 91.4%;--slate-800:210 40% 96.1%;--slate-900:210 40% 98%;--slate-950:0 0% 100%;--rose-50:347 82% 15%;--rose-100:345 79% 26%;--rose-200:346 84% 32%;--rose-500:353.7 89.5% 70.6%;--rose-600:352.7 96.1% 90%;--rose-700:355.6 100% 94.7%;--emerald-50:162 100% 8%;--emerald-100:163 94% 14%;--emerald-200:164 86% 18%;--emerald-500:158 64% 52%;--emerald-600:152.4 76% 80.4%;--blue-50:221 83% 15%;--blue-100:222 87% 24%;--blue-200:223 83% 30%;--blue-500:213.1 93.9% 67.8%;--blue-600:213.3 96.9% 87.3%;--amber-50:31 100% 10%;--amber-100:30 93% 17%;--amber-200:29 93% 22%;--amber-500:47 92% 68%;--amber-700:48 96.6% 76.7%;--purple-50:273 100% 10%;--purple-100:273 94% 18%;--purple-200:272 87% 24%;--purple-500:270.7 91% 65.1%;--purple-600:270.4 95.2% 75.3%}.tasks-timeline-app[data-theme=coffee]{--background:40 17% 99%;--foreground:30 25% 10%;--card:40 23% 95%;--card-foreground:30 25% 10%;--popover:40 23% 95%;--popover-foreground:30 25% 10%;--primary:37.7 92.1% 38%;--primary-foreground:40 17% 99%;--secondary:40 19% 90%;--secondary-foreground:30 25% 10%;--muted:40 19% 90%;--muted-foreground:30 10% 46%;--accent:40 21% 94%;--accent-foreground:37.7 92.1% 38%;--destructive:346.8 77.2% 49.8%;--destructive-foreground:40 17% 99%;--border:40 17% 80%;--input:40 17% 80%;--ring:37.7 92.1% 38%;--slate-50:40 21% 94%;--slate-100:40 19% 90%;--slate-200:40 17% 80%;--slate-300:40 13% 68%;--slate-400:40 9% 56%;--slate-500:30 10% 46%;--slate-600:30 11% 38%;--slate-700:30 14% 31%;--slate-800:30 18% 24%;--slate-900:30 23% 14%;--slate-950:30 25% 10%}.tasks-timeline-app button,.tasks-timeline-app input[type=text],.tasks-timeline-app input[type=search],.tasks-timeline-app input[type=number],.tasks-timeline-app input[type=date],.tasks-timeline-app input[type=datetime-local]{box-shadow:none;color:inherit;appearance:none;background-color:#0000;background-image:none;border:1px solid #0000;margin:0;padding:0;font-family:inherit}.tasks-timeline-app{background-color:hsl(var(--background));color:hsl(var(--foreground));font-family:var(--font-sans);-webkit-font-smoothing:antialiased;scrollbar-gutter:stable;box-sizing:border-box;transition:background-color .3s,color .3s}.tasks-timeline-app *,.tasks-timeline-app :before,.tasks-timeline-app :after{box-sizing:inherit;transition-property:background-color,border-color,color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tasks-timeline-app ::-webkit-scrollbar{width:10px;height:10px}.tasks-timeline-app ::-webkit-scrollbar-track{background:hsl(var(--muted)/.2);border-radius:6px;margin:2px}.tasks-timeline-app ::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.4);border:2px solid hsl(var(--background));border-radius:6px;transition:all .2s}.tasks-timeline-app ::-webkit-scrollbar-thumb:hover{background:hsl(var(--primary)/.6);border-color:hsl(var(--muted)/.3)}.tasks-timeline-app ::-webkit-scrollbar-thumb:active{background:hsl(var(--primary)/.8)}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar{width:6px;height:6px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-track{background:0 0;margin:4px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border:none;border-radius:3px}.tasks-timeline-app .custom-scrollbar::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app [data-radix-scroll-area-viewport]::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app [data-slot=popover-content] ::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.tasks-timeline-app .no-scrollbar::-webkit-scrollbar{width:0;height:0;display:none}.tasks-timeline-app .no-scrollbar{-ms-overflow-style:none;scrollbar-width:none;overflow:-moz-scrollbars-none}.tasks-timeline-app .no-scrollbar::-webkit-scrollbar-track{display:none}.tasks-timeline-app .no-scrollbar::-webkit-scrollbar-thumb{display:none}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`,yoe=()=>m.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar bg-slate-50/50 dark:bg-slate-900/10",children:[m.jsxs("section",{className:"text-center space-y-3 pt-4",children:[m.jsx("div",{className:"w-16 h-16 bg-slate-900 text-white rounded-2xl mx-auto flex items-center justify-center shadow-lg shadow-slate-200 dark:shadow-slate-950",children:m.jsx(He,{name:"CheckSquare",size:32})}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("h3",{className:"text-xl font-bold text-slate-900 dark:text-slate-100",children:"Tasks Timeline View"}),m.jsxs("p",{className:"text-xs text-slate-500 font-mono",children:["v","0.4.2"," • Built at ","f8d853c"]})]}),m.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 max-w-sm mx-auto leading-relaxed",children:"A high-fidelity, timeline-based task management tool designed for focus, clarity, and AI-assisted productivity."})]}),m.jsxs("section",{className:"space-y-3",children:[m.jsx("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:"Connect & Contribute"}),m.jsx("div",{className:"grid grid-cols-1 gap-2",children:m.jsxs("a",{href:"https://github.com/Leonezz/tasks-timeline-components",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 rounded-xl border border-slate-200 bg-white hover:bg-slate-50 dark:bg-slate-900 dark:border-slate-800 dark:hover:bg-slate-800 transition-colors group",children:[m.jsx("div",{className:"bg-slate-100 dark:bg-slate-800 p-2 rounded-lg group-hover:scale-105 transition-transform text-slate-700 dark:text-slate-300",children:m.jsx(He,{name:"Github",size:20})}),m.jsxs("div",{className:"flex-1",children:[m.jsx("div",{className:"text-sm font-bold text-slate-800 dark:text-slate-200",children:"GitHub Repository"}),m.jsx("div",{className:"text-xs text-slate-500",children:"View source code, report issues, or contribute."})]}),m.jsx(He,{name:"ExternalLink",size:14,className:"text-slate-400 group-hover:text-blue-500 transition-colors"})]})})]}),m.jsxs("section",{className:"space-y-3",children:[m.jsx("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:"Support Development"}),m.jsxs("div",{className:"rounded-xl border border-rose-100 bg-rose-50/50 dark:bg-rose-900/10 dark:border-rose-900/20 p-4 space-y-4",children:[m.jsx("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:"If you find this tool useful, consider supporting its development. Your contribution helps keep the updates coming!"}),m.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[m.jsx("a",{href:"https://buymeacoffee.com/zhuwenqa",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#FFDD00] text-slate-900 font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:m.jsx("img",{src:"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png",alt:"Buy Me A Coffee"})}),m.jsxs("a",{href:"https://ko-fi.com/zhuwenqa",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[m.jsx(He,{name:"CoffeeIcon",size:16}),m.jsx("span",{children:"Ko-fi"})]}),m.jsxs("a",{href:"https://patreon.com/zhuwenq",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[m.jsx(He,{name:"Star",size:16}),m.jsx("span",{children:"Patreon"})]}),m.jsxs("a",{href:"https://www.paypal.com/paypalme/zhuwenq",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-[#29abe0] text-white font-bold rounded-lg hover:brightness-95 transition-all shadow-sm active:scale-95 text-xs sm:text-sm",children:[m.jsx(He,{name:"Wallet2",size:16}),m.jsx("span",{children:"Paypal"})]})]})]})]}),m.jsx("div",{className:"pt-6 border-t border-slate-100 dark:border-slate-800 text-center",children:m.jsxs("p",{className:"text-[10px] text-slate-400 leading-relaxed",children:["Built with React, Tailwind, Framer Motion & Gemini AI. ",m.jsx("br",{}),"MIT License © ",new Date().getFullYear()," Tasks Timeline View"]})})]}),goe=["general","filters","ai","docs","about"],HY=({settings:e,onUpdateSettings:t,availableCategories:n,availableTags:r,onClose:a,inSeperatePage:i,inDarkMode:c,customTabs:y=[]})=>{const[b,x]=de.useState("general"),[T,M]=de.useState(null);de.useEffect(()=>{y.forEach(O=>{goe.includes(O.id)&&Mt.warn("Settings",`CustomSettingsTab id "${O.id}" conflicts with built-in tab. Consider using a different id.`)})},[y]),de.useEffect(()=>{if(Mt.info("Settings",`system in dark mode: ${c}, in seperate page: ${i}, onClose: ${a}`),!i||!T)return;const O=c?"midnight":"light";Mt.info("Settings","adjust to system theme: ",O),T.setAttribute("data-theme",O)},[e.theme,T,c,i,a]);const I=()=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 shrink-0",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"p-2 bg-slate-200 dark:bg-slate-700 rounded-lg text-slate-600 dark:text-slate-200",children:m.jsx(He,{name:"Settings",size:18})}),m.jsx("h2",{className:"font-bold text-slate-800 text-lg",children:"Settings"})]}),m.jsxs("div",{className:"flex p-1 bg-slate-100 dark:bg-slate-800 rounded-lg",children:[m.jsx("button",{onClick:()=>x("general"),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all",b==="general"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"General"}),m.jsx("button",{onClick:()=>x("filters"),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all",b==="filters"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"Filters & Sorting"}),m.jsx("button",{onClick:()=>x("ai"),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all",b==="ai"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"AI"}),m.jsx("button",{onClick:()=>x("docs"),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all",b==="docs"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"Docs"}),m.jsx("button",{onClick:()=>x("about"),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all",b==="about"?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:"About"}),y.map(O=>m.jsxs("button",{onClick:()=>x(O.id),className:je("px-3 py-1 text-xs font-medium rounded-md transition-all flex items-center gap-1",b===O.id?"bg-white shadow-sm text-blue-600":"text-slate-500 hover:text-slate-700"),children:[O.icon&&m.jsx(He,{name:O.icon,size:12}),O.label]},O.id))]})]}),a&&m.jsx("button",{onClick:a,className:"p-2 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 rounded-full transition-colors outline-none",children:m.jsx(He,{name:"X",size:20})})]}),m.jsxs("div",{className:"p-0 overflow-y-auto flex-1 min-h-100",children:[b==="general"&&m.jsx(Rae,{settings:e,onUpdateSettings:t,availableCategories:n}),b==="filters"&&m.jsx(Wae,{settings:e,onUpdateSettings:t,availableTags:r,availableCategories:n}),b==="ai"&&m.jsx(hY,{settings:e,onUpdateSettings:t}),b==="docs"&&m.jsx(aY,{}),b==="about"&&m.jsx(yoe,{}),y.find(O=>O.id===b)?.content]}),m.jsx("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 text-center border-t border-slate-100 dark:border-slate-800 shrink-0",children:m.jsxs("p",{className:"text-[10px] text-slate-400",children:["Timeline Tasks View • ","0.4.2"," at ","f8d853c"]})})]});return i?m.jsx("div",{ref:M,className:"tasks-timeline-app",id:"tasks-timeline-app",style:{width:"100%"},children:m.jsxs(NY.div,{children:[m.jsx("style",{children:zY}),I()]})}):I()},BY=({isOpen:e,onClose:t,settings:n,onUpdateSettings:r,availableTags:a,availableCategories:i,customTabs:c})=>m.jsx(Zd,{children:e&&m.jsxs(m.Fragment,{children:[m.jsx(so,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-40"}),m.jsx(so,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},transition:{type:"spring",duration:.5},className:"fixed top-1/2 left-1/2 w-full max-w-2xl bg-paper rounded-2xl shadow-2xl z-50 overflow-hidden border border-slate-200 dark:border-slate-800 flex flex-col max-h-[85vh] text-slate-900",children:m.jsx(HY,{settings:n,onUpdateSettings:r,availableCategories:i,availableTags:a,onClose:t,inSeperatePage:!1,customTabs:c})})]})}),moe=({isOpen:e,onClose:t})=>m.jsx(Zd,{children:e&&m.jsxs(m.Fragment,{children:[m.jsx(oo.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-50"}),m.jsxs(oo.div,{initial:{opacity:0,scale:.95,y:"-50%",x:"-50%"},animate:{opacity:1,scale:1,y:"-50%",x:"-50%"},exit:{opacity:0,scale:.95,y:"-50%",x:"-50%"},className:"fixed top-1/2 left-1/2 w-full max-w-2xl bg-paper rounded-xl shadow-2xl z-50 border border-slate-200 dark:border-slate-800 overflow-hidden max-h-[85vh] flex flex-col text-slate-900",children:[m.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 dark:border-slate-800 bg-paper/50 shrink-0",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg text-blue-600 dark:text-blue-300",children:m.jsx(He,{name:"BookOpen",size:18})}),m.jsx("h2",{className:"font-bold text-slate-800 text-lg",children:"Documentation"})]}),m.jsx("button",{onClick:t,className:"p-2 text-slate-400 hover:text-slate-600 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:m.jsx(He,{name:"X",size:20})})]}),m.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-8 custom-scrollbar",children:[m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Activity",size:14,className:"text-blue-500"}),"Task Lifecycle & Auto-Status"]}),m.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4 leading-relaxed",children:"The view automatically manages task statuses based on dates to keep your workflow organized. You rarely need to manually set status unless completing a task."}),m.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[m.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"AlertCircle",size:14,className:"text-rose-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Due / Overdue"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks due Today, Tomorrow, or in the past are automatically flagged as Urgent."})]}),m.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Clock",size:14,className:"text-blue-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Scheduled (Doing)"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks with a future Start Date are marked as Scheduled until that date arrives."})]}),m.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Zap",size:14,className:"text-purple-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Unplanned"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Tasks without dates that need immediate attention. You must manually set this."})]}),m.jsxs("div",{className:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-lg border border-slate-100 dark:border-slate-700",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(He,{name:"Archive",size:14,className:"text-slate-500"}),m.jsx("span",{className:"font-bold text-slate-700 text-xs uppercase",children:"Backlog"})]}),m.jsx("p",{className:"text-xs text-slate-500",children:"Items with no Due Date or Start Date appear in the Backlog section."})]})]})]}),m.jsx("div",{className:"h-px bg-slate-100 dark:bg-slate-800 w-full"}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Sparkles",size:14,className:"text-purple-500"}),"AI & Voice Intelligence"]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:m.jsx(He,{name:"Mic",size:16})}),m.jsxs("div",{children:[m.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"Voice Commands"}),m.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:'Click the microphone icon to speak. Supports natural language like "Buy milk tomorrow priority high".'})]})]}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"shrink-0 w-8 h-8 rounded-full bg-purple-50 flex items-center justify-center text-purple-600",children:m.jsx(He,{name:"TerminalSquare",size:16})}),m.jsxs("div",{children:[m.jsx("h4",{className:"text-sm font-semibold text-slate-800",children:"AI Mode"}),m.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Toggle AI mode to use Gemini. It can Create, Update, Query, and Delete tasks.",m.jsx("br",{}),m.jsx("em",{className:"opacity-80",children:'Example: "Move all overdue tasks to next friday" or "Summarize my high priority work".'})]})]})]})]})]}),m.jsx("div",{className:"h-px bg-slate-100 dark:bg-slate-800 w-full"}),m.jsxs("section",{children:[m.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-wider mb-3 flex items-center gap-2",children:[m.jsx(He,{name:"Command",size:14,className:"text-slate-500"}),"Quick Controls"]}),m.jsxs("ul",{className:"text-xs text-slate-600 dark:text-slate-400 space-y-2",children:[m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Enter"}),m.jsx("span",{children:"Save task / Submit command"})]}),m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Double Click Delete"}),m.jsx("span",{children:"Click trash icon once to arm, twice to delete."})]}),m.jsxs("li",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200 font-mono text-[10px]",children:"Focus Mode"}),m.jsx("span",{children:"Hides everything except Today's active tasks."})]})]})]})]}),m.jsx("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 text-center border-t border-slate-100 dark:border-slate-800 shrink-0",children:m.jsx("p",{className:"text-[10px] text-slate-400",children:"Tasks Timeline • v0.1.2"})})]})]})}),voe=({content:e})=>m.jsx("p",{className:"text-xs text-slate-600 [.chronos-app[data-theme='dark']_&]:text-slate-400 leading-relaxed whitespace-pre-wrap",children:e}),koe={high:"bg-rose-100 text-rose-700 [.chronos-app[data-theme='dark']_&]:bg-rose-900/30 [.chronos-app[data-theme='dark']_&]:text-rose-400",medium:"bg-amber-100 text-amber-700 [.chronos-app[data-theme='dark']_&]:bg-amber-900/30 [.chronos-app[data-theme='dark']_&]:text-amber-400",low:"bg-slate-100 text-slate-600 [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:text-slate-400"},boe={done:"bg-emerald-500",overdue:"bg-rose-500",due:"bg-amber-500",doing:"bg-blue-500",scheduled:"bg-indigo-400",todo:"bg-slate-400",cancelled:"bg-slate-300",unplanned:"bg-purple-400"},xoe=({tasks:e,label:t})=>m.jsxs("div",{children:[t&&m.jsx("h5",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-1.5",children:t}),m.jsx("div",{className:"space-y-1",children:e.map(n=>m.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded bg-slate-50 [.chronos-app[data-theme='dark']_&]:bg-slate-700/50",children:[m.jsx("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${boe[n.status]||"bg-slate-400"}`}),m.jsx("span",{className:"text-xs font-medium truncate flex-1",children:n.title}),m.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded font-semibold shrink-0 ${koe[n.priority]||""}`,children:n.priority})]},n.id))})]}),woe={done:"bg-emerald-500",overdue:"bg-rose-500",due:"bg-amber-500",doing:"bg-blue-500",scheduled:"bg-indigo-400",todo:"bg-slate-400",cancelled:"bg-slate-300",unplanned:"bg-purple-400"},Moe=({data:e})=>m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"text-xs font-semibold text-slate-700 [.chronos-app[data-theme='dark']_&]:text-slate-200",children:[e.total," total tasks"]}),e.total>0&&m.jsx("div",{className:"flex h-2 rounded-full overflow-hidden bg-slate-100 [.chronos-app[data-theme='dark']_&]:bg-slate-700",children:Object.entries(e.byStatus).map(([t,n])=>n>0?m.jsx("div",{className:woe[t]||"bg-slate-400",style:{width:`${n/e.total*100}%`},title:`${t}: ${n}`},t):null)}),m.jsx("div",{className:"flex gap-2 flex-wrap",children:Object.entries(e.byPriority).map(([t,n])=>n>0?m.jsxs("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-slate-100 text-slate-600 font-medium [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:text-slate-300",children:[t,": ",n]},t):null)})]}),Coe=({entries:e})=>m.jsx("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-1",children:e.map(t=>m.jsxs(de.Fragment,{children:[m.jsx("span",{className:"text-[10px] font-semibold text-slate-400 uppercase tracking-wider",children:t.key}),m.jsx("span",{className:"text-xs text-slate-600 [.chronos-app[data-theme='dark']_&]:text-slate-300",children:t.value})]},t.key))}),Toe=({block:e})=>{switch(e.type){case"text":return m.jsx(voe,{content:e.content});case"task-list":return m.jsx(xoe,{tasks:e.tasks,label:e.label});case"stats":return m.jsx(Moe,{data:e.data});case"key-value":return m.jsx(Coe,{entries:e.entries})}},Soe=({placeholder:e,onSubmit:t,onCancel:n})=>{const[r,a]=de.useState(""),i=()=>{const c=r.trim();c&&t(c)};return m.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:[m.jsx("input",{type:"text",value:r,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&i(),c.key==="Escape"&&n()},placeholder:e??"Type your answer...",autoFocus:!0,className:"w-full px-3 py-1.5 text-xs rounded-md border border-slate-200 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500/50 transition-colors [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:border-slate-600 [.chronos-app[data-theme='dark']_&]:text-slate-100"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:i,disabled:!r.trim(),className:"px-3 py-1.5 text-xs font-semibold rounded-md bg-blue-500 text-white hover:bg-blue-600 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:"Submit"}),m.jsx("button",{onClick:n,className:"px-3 py-1.5 text-xs font-semibold rounded-md bg-slate-100 text-slate-600 hover:bg-slate-200 transition-colors [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:text-slate-300",children:"Cancel"})]})]})},VY=({toast:e,onDismiss:t,isExpanded:n,onToggleExpand:r})=>{de.useEffect(()=>{if(e.timeout===null||e.timeout<=0)return;const y=setTimeout(()=>{t(e.id)},e.timeout);return()=>clearTimeout(y)},[e.id,t,e.timeout]);const a=()=>{switch(e.variant){case"success":return"CheckCircle2";case"error":return"AlertCircle";case"info":return"Info";case"warning":return"AlertTriangle"}},i=()=>{const y="bg-white/95 backdrop-blur-md border shadow-xl shadow-slate-200/50 [.chronos-app[data-theme='dark']_&]:bg-slate-800/95 [.chronos-app[data-theme='dark']_&]:shadow-black/20 [.chronos-app[data-theme='dark']_&]:border-slate-700/50";switch(e.variant){case"success":return je(y,"border-l-4 border-l-emerald-500 border-y-emerald-100/50 border-r-emerald-100/50 [.chronos-app[data-theme='dark']_&]:border-y-emerald-500/20 [.chronos-app[data-theme='dark']_&]:border-r-emerald-500/20");case"error":return je(y,"border-l-4 border-l-rose-500 border-y-rose-100/50 border-r-rose-100/50 [.chronos-app[data-theme='dark']_&]:border-y-rose-500/20 [.chronos-app[data-theme='dark']_&]:border-r-rose-500/20");case"info":return je(y,"border-l-4 border-l-blue-500 border-y-blue-100/50 border-r-blue-100/50 [.chronos-app[data-theme='dark']_&]:border-y-blue-500/20 [.chronos-app[data-theme='dark']_&]:border-r-blue-500/20");case"warning":return je(y,"border-l-4 border-l-amber-500 border-y-amber-100/50 border-r-amber-100/50 [.chronos-app[data-theme='dark']_&]:border-y-amber-500/20 [.chronos-app[data-theme='dark']_&]:border-r-amber-500/20")}},c=()=>{switch(e.variant){case"success":return"text-emerald-500 [.chronos-app[data-theme='dark']_&]:text-emerald-400";case"error":return"text-rose-500 [.chronos-app[data-theme='dark']_&]:text-rose-400";case"info":return"text-blue-500 [.chronos-app[data-theme='dark']_&]:text-blue-400";case"warning":return"text-amber-500 [.chronos-app[data-theme='dark']_&]:text-amber-400"}};return m.jsxs(so,{layout:!0,initial:{opacity:0,x:50,scale:.9},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:20,scale:.9},className:je("flex items-start gap-3 p-4 rounded-lg w-full pointer-events-auto text-slate-800 [.chronos-app[data-theme='dark']_&]:text-slate-100",n?"max-w-[350px]":"max-w-sm",i()),children:[m.jsx("div",{className:je("mt-0.5 shrink-0",c()),children:m.jsx(He,{name:a(),size:18})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("h4",{className:"text-sm font-bold leading-tight",children:e.title}),e.description&&m.jsx("p",{className:"text-xs opacity-80 mt-1 leading-snug font-medium text-slate-500 [.chronos-app[data-theme='dark']_&]:text-slate-400",children:e.description}),e.body&&m.jsx("p",{className:"text-xs mt-2 leading-relaxed text-slate-600 [.chronos-app[data-theme='dark']_&]:text-slate-300 whitespace-pre-wrap",children:e.body}),e.interaction.kind==="confirm"&&m.jsxs("div",{className:"flex gap-2 mt-3",children:[m.jsx("button",{onClick:()=>e.interaction.kind==="confirm"&&e.interaction.onConfirm(),className:"px-3 py-1.5 text-xs font-semibold rounded-md bg-blue-500 text-white hover:bg-blue-600 transition-colors",children:e.interaction.kind==="confirm"&&(e.interaction.confirmLabel||"Yes")}),m.jsx("button",{onClick:()=>{e.interaction.kind==="confirm"&&e.interaction.onCancel?.()},className:"px-3 py-1.5 text-xs font-semibold rounded-md bg-slate-100 text-slate-600 hover:bg-slate-200 transition-colors [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:text-slate-300",children:e.interaction.kind==="confirm"&&(e.interaction.cancelLabel||"No")})]}),e.interaction.kind==="select"&&m.jsxs("div",{className:"flex flex-col gap-1.5 mt-3",children:[e.interaction.options.map(y=>m.jsx("button",{onClick:()=>e.interaction.kind==="select"&&e.interaction.onSelect(y.value),className:"text-left px-3 py-1.5 text-xs font-medium rounded-md bg-slate-50 hover:bg-slate-100 border border-slate-200 transition-colors [.chronos-app[data-theme='dark']_&]:bg-slate-700 [.chronos-app[data-theme='dark']_&]:border-slate-600 [.chronos-app[data-theme='dark']_&]:hover:bg-slate-600",children:y.label},y.value)),m.jsx("button",{onClick:()=>e.interaction.kind==="select"&&e.interaction.onCancel?.(),className:"text-center px-3 py-1 text-xs text-slate-400 hover:text-slate-600 transition-colors",children:"Cancel"})]}),e.interaction.kind==="prompt"&&m.jsx("div",{className:"flex gap-2 mt-3",children:m.jsx(Soe,{placeholder:e.interaction.kind==="prompt"?e.interaction.placeholder:void 0,onSubmit:y=>e.interaction.kind==="prompt"&&e.interaction.onSubmit(y),onCancel:()=>{e.interaction.kind==="prompt"&&e.interaction.onCancel?.()}})}),e.detail&&e.detail.length>0&&m.jsxs("div",{className:"mt-2",children:[m.jsxs("button",{onClick:()=>r?.(e.id),className:"text-xs text-blue-500 hover:text-blue-600 font-medium flex items-center gap-1 transition-colors",children:[m.jsx(He,{name:n?"ChevronUp":"ChevronDown",size:12}),n?"Hide details":"Show details"]}),m.jsx(Zd,{children:n&&m.jsx(so,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:m.jsx("div",{className:"mt-2 space-y-2 max-h-[40vh] overflow-y-auto",children:e.detail.map((y,b)=>m.jsx(Toe,{block:y},b))})})})]})]}),m.jsx("button",{onClick:()=>t(e.id),className:"opacity-40 hover:opacity-100 transition-opacity p-0.5 -mr-1 -mt-1",children:m.jsx(He,{name:"X",size:14})})]})};var oc="INUMBER",O2="IOP1",D2="IOP2",N2="IOP3",Gu="IVAR",R0="IVARNAME",z2="IFUNCALL",pF="IFUNDEF",Ms="IEXPR",kN="IEXPREVAL",F0="IMEMBER",yF="IENDSTATEMENT",H2="IARRAY";function Sn(e,t){this.type=e,this.value=t??0}Sn.prototype.toString=function(){switch(this.type){case oc:case O2:case D2:case N2:case Gu:case R0:case yF:return this.value;case z2:return"CALL "+this.value;case pF:return"DEF "+this.value;case H2:return"ARRAY "+this.value;case F0:return"."+this.value;default:return"Invalid Instruction"}};function gF(e){return new Sn(O2,e)}function ju(e){return new Sn(D2,e)}function _Y(e){return new Sn(N2,e)}function bN(e,t,n,r,a){for(var i=[],c=[],y,b,x,T,M=0;M<e.length;M++){var I=e[M],O=I.type;if(O===oc||O===R0)Array.isArray(I.value)?i.push.apply(i,bN(I.value.map(function(N){return new Sn(oc,N)}).concat(new Sn(H2,I.value.length)),t,n,r,a)):i.push(I);else if(O===Gu&&a.hasOwnProperty(I.value))I=new Sn(oc,a[I.value]),i.push(I);else if(O===D2&&i.length>1)b=i.pop(),y=i.pop(),T=n[I.value],I=new Sn(oc,T(y.value,b.value)),i.push(I);else if(O===N2&&i.length>2)x=i.pop(),b=i.pop(),y=i.pop(),I.value==="?"?i.push(y.value?b.value:x.value):(T=r[I.value],I=new Sn(oc,T(y.value,b.value,x.value)),i.push(I));else if(O===O2&&i.length>0)y=i.pop(),T=t[I.value],I=new Sn(oc,T(y.value)),i.push(I);else if(O===Ms){for(;i.length>0;)c.push(i.shift());c.push(new Sn(Ms,bN(I.value,t,n,r,a)))}else if(O===F0&&i.length>0)y=i.pop(),i.push(new Sn(oc,y.value[I.value]));else{for(;i.length>0;)c.push(i.shift());c.push(I)}}for(;i.length>0;)c.push(i.shift());return c}function UY(e,t,n){for(var r=[],a=0;a<e.length;a++){var i=e[a],c=i.type;if(c===Gu&&i.value===t)for(var y=0;y<n.tokens.length;y++){var b=n.tokens[y],x;b.type===O2?x=gF(b.value):b.type===D2?x=ju(b.value):b.type===N2?x=_Y(b.value):x=new Sn(b.type,b.value),r.push(x)}else c===Ms?r.push(new Sn(Ms,UY(i.value,t,n))):r.push(i)}return r}function O0(e,t,n){var r=[],a,i,c,y,b,x;if(xN(e))return Xu(e,n);for(var T=e.length,M=0;M<T;M++){var I=e[M],O=I.type;if(O===oc||O===R0)r.push(I.value);else if(O===D2)i=r.pop(),a=r.pop(),I.value==="and"?r.push(a?!!O0(i,t,n):!1):I.value==="or"?r.push(a?!0:!!O0(i,t,n)):I.value==="="?(y=t.binaryOps[I.value],r.push(y(a,O0(i,t,n),n))):(y=t.binaryOps[I.value],r.push(y(Xu(a,n),Xu(i,n))));else if(O===N2)c=r.pop(),i=r.pop(),a=r.pop(),I.value==="?"?r.push(O0(a?i:c,t,n)):(y=t.ternaryOps[I.value],r.push(y(Xu(a,n),Xu(i,n),Xu(c,n))));else if(O===Gu)if(I.value in t.functions)r.push(t.functions[I.value]);else if(I.value in t.unaryOps&&t.parser.isOperatorEnabled(I.value))r.push(t.unaryOps[I.value]);else{var N=n[I.value];if(N!==void 0)r.push(N);else throw new Error("undefined variable: "+I.value)}else if(O===O2)a=r.pop(),y=t.unaryOps[I.value],r.push(y(Xu(a,n)));else if(O===z2){for(x=I.value,b=[];x-- >0;)b.unshift(Xu(r.pop(),n));if(y=r.pop(),y.apply&&y.call)r.push(y.apply(void 0,b));else throw new Error(y+" is not a function")}else if(O===pF)r.push((function(){for(var D=r.pop(),H=[],_=I.value;_-- >0;)H.unshift(r.pop());var X=r.pop(),K=function(){for(var te=Object.assign({},n),J=0,ne=H.length;J<ne;J++)te[H[J]]=arguments[J];return O0(D,t,te)};return Object.defineProperty(K,"name",{value:X,writable:!1}),n[X]=K,K})());else if(O===Ms)r.push(Loe(I,t));else if(O===kN)r.push(I);else if(O===F0)a=r.pop(),r.push(a[I.value]);else if(O===yF)r.pop();else if(O===H2){for(x=I.value,b=[];x-- >0;)b.unshift(r.pop());r.push(b)}else throw new Error("invalid Expression")}if(r.length>1)throw new Error("invalid Expression (parity)");return r[0]===0?0:Xu(r[0],n)}function Loe(e,t,n){return xN(e)?e:{type:kN,value:function(r){return O0(e.value,t,r)}}}function xN(e){return e&&e.type===kN}function Xu(e,t){return xN(e)?e.value(t):e}function wN(e,t){for(var n=[],r,a,i,c,y,b,x=0;x<e.length;x++){var T=e[x],M=T.type;if(M===oc)typeof T.value=="number"&&T.value<0?n.push("("+T.value+")"):Array.isArray(T.value)?n.push("["+T.value.map(WY).join(", ")+"]"):n.push(WY(T.value));else if(M===D2)a=n.pop(),r=n.pop(),c=T.value,t?c==="^"?n.push("Math.pow("+r+", "+a+")"):c==="and"?n.push("(!!"+r+" && !!"+a+")"):c==="or"?n.push("(!!"+r+" || !!"+a+")"):c==="||"?n.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+r+"),("+a+")))"):c==="=="?n.push("("+r+" === "+a+")"):c==="!="?n.push("("+r+" !== "+a+")"):c==="["?n.push(r+"[("+a+") | 0]"):n.push("("+r+" "+c+" "+a+")"):c==="["?n.push(r+"["+a+"]"):n.push("("+r+" "+c+" "+a+")");else if(M===N2)if(i=n.pop(),a=n.pop(),r=n.pop(),c=T.value,c==="?")n.push("("+r+" ? "+a+" : "+i+")");else throw new Error("invalid Expression");else if(M===Gu||M===R0)n.push(T.value);else if(M===O2)r=n.pop(),c=T.value,c==="-"||c==="+"?n.push("("+c+r+")"):t?c==="not"?n.push("(!"+r+")"):c==="!"?n.push("fac("+r+")"):n.push(c+"("+r+")"):c==="!"?n.push("("+r+"!)"):n.push("("+c+" "+r+")");else if(M===z2){for(b=T.value,y=[];b-- >0;)y.unshift(n.pop());c=n.pop(),n.push(c+"("+y.join(", ")+")")}else if(M===pF){for(a=n.pop(),b=T.value,y=[];b-- >0;)y.unshift(n.pop());r=n.pop(),t?n.push("("+r+" = function("+y.join(", ")+") { return "+a+" })"):n.push("("+r+"("+y.join(", ")+") = "+a+")")}else if(M===F0)r=n.pop(),n.push(r+"."+T.value);else if(M===H2){for(b=T.value,y=[];b-- >0;)y.unshift(n.pop());n.push("["+y.join(", ")+"]")}else if(M===Ms)n.push("("+wN(T.value,t)+")");else if(M!==yF)throw new Error("invalid Expression")}return n.length>1&&(t?n=[n.join(",")]:n=[n.join(";")]),String(n[0])}function WY(e){return typeof e=="string"?JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):e}function B2(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}function MN(e,t,n){n=n||{};for(var r=!!n.withMembers,a=null,i=0;i<e.length;i++){var c=e[i];c.type===Gu||c.type===R0?!r&&!B2(t,c.value)?t.push(c.value):(a!==null&&(B2(t,a)||t.push(a)),a=c.value):c.type===F0&&r&&a!==null?a+="."+c.value:c.type===Ms?MN(c.value,t,n):a!==null&&(B2(t,a)||t.push(a),a=null)}a!==null&&!B2(t,a)&&t.push(a)}function nd(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}nd.prototype.simplify=function(e){return e=e||{},new nd(bN(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,e),this.parser)},nd.prototype.substitute=function(e,t){return t instanceof nd||(t=this.parser.parse(String(t))),new nd(UY(this.tokens,e,t),this.parser)},nd.prototype.evaluate=function(e){return e=e||{},O0(this.tokens,this,e)},nd.prototype.toString=function(){return wN(this.tokens,!1)},nd.prototype.symbols=function(e){e=e||{};var t=[];return MN(this.tokens,t,e),t},nd.prototype.variables=function(e){e=e||{};var t=[];MN(this.tokens,t,e);var n=this.functions;return t.filter(function(r){return!(r in n)})},nd.prototype.toJSFunction=function(e,t){var n=this,r=new Function(e,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+wN(this.simplify(t).tokens,!0)+"; }");return function(){return r.apply(n,arguments)}};var Df="TEOF",Mr="TOP",mF="TNUMBER",YY="TSTRING",Ku="TPAREN",V2="TBRACKET",vF="TCOMMA",CN="TNAME",TN="TSEMICOLON";function ZY(e,t,n){this.type=e,this.value=t,this.index=n}ZY.prototype.toString=function(){return this.type+": "+this.value};function ga(e,t){this.pos=0,this.current=null,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.consts=e.consts,this.expression=t,this.savedPosition=0,this.savedCurrent=null,this.options=e.options,this.parser=e}ga.prototype.newToken=function(e,t,n){return new ZY(e,t,n??this.pos)},ga.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},ga.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},ga.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(Df,"EOF");if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},ga.prototype.isString=function(){var e=!1,t=this.pos,n=this.expression.charAt(t);if(n==="'"||n==='"')for(var r=this.expression.indexOf(n,t+1);r>=0&&this.pos<this.expression.length;){if(this.pos=r+1,this.expression.charAt(r-1)!=="\\"){var a=this.expression.substring(t+1,r);this.current=this.newToken(YY,this.unescape(a),t),e=!0;break}r=this.expression.indexOf(n,r+1)}return e},ga.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return e==="("||e===")"?(this.current=this.newToken(Ku,e),this.pos++,!0):!1},ga.prototype.isBracket=function(){var e=this.expression.charAt(this.pos);return(e==="["||e==="]")&&this.isOperatorEnabled("[")?(this.current=this.newToken(V2,e),this.pos++,!0):!1},ga.prototype.isComma=function(){var e=this.expression.charAt(this.pos);return e===","?(this.current=this.newToken(vF,","),this.pos++,!0):!1},ga.prototype.isSemicolon=function(){var e=this.expression.charAt(this.pos);return e===";"?(this.current=this.newToken(TN,";"),this.pos++,!0):!1},ga.prototype.isConst=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||n!=="_"&&n!=="."&&(n<"0"||n>"9")))break}if(t>e){var r=this.expression.substring(e,t);if(r in this.consts)return this.current=this.newToken(mF,this.consts[r]),this.pos+=r.length,!0}return!1},ga.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||n!=="_"&&(n<"0"||n>"9")))break}if(t>e){var r=this.expression.substring(e,t);if(this.isOperatorEnabled(r)&&(r in this.binaryOps||r in this.unaryOps||r in this.ternaryOps))return this.current=this.newToken(Mr,r),this.pos+=r.length,!0}return!1},ga.prototype.isName=function(){for(var e=this.pos,t=e,n=!1;t<this.expression.length;t++){var r=this.expression.charAt(t);if(r.toUpperCase()===r.toLowerCase()){if(t===this.pos&&(r==="$"||r==="_")){r==="_"&&(n=!0);continue}else if(t===this.pos||!n||r!=="_"&&(r<"0"||r>"9"))break}else n=!0}if(n){var a=this.expression.substring(e,t);return this.current=this.newToken(CN,a),this.pos+=a.length,!0}return!1},ga.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);(t===" "||t===" "||t===`
334
334
  `||t==="\r")&&(e=!0,this.pos++,!(this.pos>=this.expression.length));)t=this.expression.charAt(this.pos);return e};var Ioe=/^[0-9a-f]{4}$/i;ga.prototype.unescape=function(e){var t=e.indexOf("\\");if(t<0)return e;for(var n=e.substring(0,t);t>=0;){var r=e.charAt(++t);switch(r){case"'":n+="'";break;case'"':n+='"';break;case"\\":n+="\\";break;case"/":n+="/";break;case"b":n+="\b";break;case"f":n+="\f";break;case"n":n+=`
335
335
  `;break;case"r":n+="\r";break;case"t":n+=" ";break;case"u":var a=e.substring(t+1,t+5);Ioe.test(a)||this.parseError("Illegal escape sequence: \\u"+a),n+=String.fromCharCode(parseInt(a,16)),t+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+r+'"')}++t;var i=e.indexOf("\\",t);n+=e.substring(t,i<0?e.length:i),t=i}return n},ga.prototype.isComment=function(){var e=this.expression.charAt(this.pos);return e==="/"&&this.expression.charAt(this.pos+1)==="*"?(this.pos=this.expression.indexOf("*/",this.pos)+2,this.pos===1&&(this.pos=this.expression.length),!0):!1},ga.prototype.isRadixInteger=function(){var e=this.pos;if(e>=this.expression.length-2||this.expression.charAt(e)!=="0")return!1;++e;var t,n;if(this.expression.charAt(e)==="x")t=16,n=/^[0-9a-f]$/i,++e;else if(this.expression.charAt(e)==="b")t=2,n=/^[01]$/i,++e;else return!1;for(var r=!1,a=e;e<this.expression.length;){var i=this.expression.charAt(e);if(n.test(i))e++,r=!0;else break}return r&&(this.current=this.newToken(mF,parseInt(this.expression.substring(a,e),t)),this.pos=e),r},ga.prototype.isNumber=function(){for(var e=!1,t=this.pos,n=t,r=t,a=!1,i=!1,c;t<this.expression.length&&(c=this.expression.charAt(t),c>="0"&&c<="9"||!a&&c===".");)c==="."?a=!0:i=!0,t++,e=i;if(e&&(r=t),c==="e"||c==="E"){t++;for(var y=!0,b=!1;t<this.expression.length;){if(c=this.expression.charAt(t),y&&(c==="+"||c==="-"))y=!1;else if(c>="0"&&c<="9")b=!0,y=!1;else break;t++}b||(t=r)}return e?(this.current=this.newToken(mF,parseFloat(this.expression.substring(n,t))),this.pos=t):this.pos=r,e},ga.prototype.isOperator=function(){var e=this.pos,t=this.expression.charAt(this.pos);if(t==="+"||t==="-"||t==="*"||t==="/"||t==="%"||t==="^"||t==="?"||t===":"||t===".")this.current=this.newToken(Mr,t);else if(t==="∙"||t==="•")this.current=this.newToken(Mr,"*");else if(t===">")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Mr,">="),this.pos++):this.current=this.newToken(Mr,">");else if(t==="<")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Mr,"<="),this.pos++):this.current=this.newToken(Mr,"<");else if(t==="|")if(this.expression.charAt(this.pos+1)==="|")this.current=this.newToken(Mr,"||"),this.pos++;else return!1;else if(t==="=")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Mr,"=="),this.pos++):this.current=this.newToken(Mr,t);else if(t==="!")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(Mr,"!="),this.pos++):this.current=this.newToken(Mr,t);else return!1;return this.pos++,this.isOperatorEnabled(this.current.value)?!0:(this.pos=e,!1)},ga.prototype.isOperatorEnabled=function(e){return this.parser.isOperatorEnabled(e)},ga.prototype.getCoordinates=function(){var e=0,t,n=-1;do e++,t=this.pos-n,n=this.expression.indexOf(`
336
336
  `,n+1);while(n>=0&&n<this.pos);return{line:e,column:t}},ga.prototype.parseError=function(e){var t=this.getCoordinates();throw new Error("parse error ["+t.line+":"+t.column+"]: "+e)};function Er(e,t,n){this.parser=e,this.tokens=t,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=n.allowMemberAccess!==!1}Er.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},Er.prototype.tokenMatches=function(e,t){return typeof t>"u"?!0:Array.isArray(t)?B2(t,e.value):typeof t=="function"?t(e):e.value===t},Er.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},Er.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},Er.prototype.accept=function(e,t){return this.nextToken.type===e&&this.tokenMatches(this.nextToken,t)?(this.next(),!0):!1},Er.prototype.expect=function(e,t){if(!this.accept(e,t)){var n=this.tokens.getCoordinates();throw new Error("parse error ["+n.line+":"+n.column+"]: Expected "+(t||e))}},Er.prototype.parseAtom=function(e){var t=this.tokens.unaryOps;function n(a){return a.value in t}if(this.accept(CN)||this.accept(Mr,n))e.push(new Sn(Gu,this.current.value));else if(this.accept(mF))e.push(new Sn(oc,this.current.value));else if(this.accept(YY))e.push(new Sn(oc,this.current.value));else if(this.accept(Ku,"("))this.parseExpression(e),this.expect(Ku,")");else if(this.accept(V2,"["))if(this.accept(V2,"]"))e.push(new Sn(H2,0));else{var r=this.parseArrayList(e);e.push(new Sn(H2,r))}else throw new Error("unexpected "+this.nextToken)},Er.prototype.parseExpression=function(e){var t=[];this.parseUntilEndStatement(e,t)||(this.parseVariableAssignmentExpression(t),!this.parseUntilEndStatement(e,t)&&this.pushExpression(e,t))},Er.prototype.pushExpression=function(e,t){for(var n=0,r=t.length;n<r;n++)e.push(t[n])},Er.prototype.parseUntilEndStatement=function(e,t){return this.accept(TN)?(this.nextToken&&this.nextToken.type!==Df&&!(this.nextToken.type===Ku&&this.nextToken.value===")")&&t.push(new Sn(yF)),this.nextToken.type!==Df&&this.parseExpression(t),e.push(new Sn(Ms,t)),!0):!1},Er.prototype.parseArrayList=function(e){for(var t=0;!this.accept(V2,"]");)for(this.parseExpression(e),++t;this.accept(vF);)this.parseExpression(e),++t;return t},Er.prototype.parseVariableAssignmentExpression=function(e){for(this.parseConditionalExpression(e);this.accept(Mr,"=");){var t=e.pop(),n=[],r=e.length-1;if(t.type===z2){if(!this.tokens.isOperatorEnabled("()="))throw new Error("function definition is not permitted");for(var a=0,i=t.value+1;a<i;a++){var c=r-a;e[c].type===Gu&&(e[c]=new Sn(R0,e[c].value))}this.parseVariableAssignmentExpression(n),e.push(new Sn(Ms,n)),e.push(new Sn(pF,t.value));continue}if(t.type!==Gu&&t.type!==F0)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(n),e.push(new Sn(R0,t.value)),e.push(new Sn(Ms,n)),e.push(ju("="))}},Er.prototype.parseConditionalExpression=function(e){for(this.parseOrExpression(e);this.accept(Mr,"?");){var t=[],n=[];this.parseConditionalExpression(t),this.expect(Mr,":"),this.parseConditionalExpression(n),e.push(new Sn(Ms,t)),e.push(new Sn(Ms,n)),e.push(_Y("?"))}},Er.prototype.parseOrExpression=function(e){for(this.parseAndExpression(e);this.accept(Mr,"or");){var t=[];this.parseAndExpression(t),e.push(new Sn(Ms,t)),e.push(ju("or"))}},Er.prototype.parseAndExpression=function(e){for(this.parseComparison(e);this.accept(Mr,"and");){var t=[];this.parseComparison(t),e.push(new Sn(Ms,t)),e.push(ju("and"))}};var Aoe=["==","!=","<","<=",">=",">","in"];Er.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(Mr,Aoe);){var t=this.current;this.parseAddSub(e),e.push(ju(t.value))}};var Eoe=["+","-","||"];Er.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(Mr,Eoe);){var t=this.current;this.parseTerm(e),e.push(ju(t.value))}};var Poe=["*","/","%"];Er.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(Mr,Poe);){var t=this.current;this.parseFactor(e),e.push(ju(t.value))}},Er.prototype.parseFactor=function(e){var t=this.tokens.unaryOps;function n(a){return a.value in t}if(this.save(),this.accept(Mr,n)){if(this.current.value!=="-"&&this.current.value!=="+"){if(this.nextToken.type===Ku&&this.nextToken.value==="("){this.restore(),this.parseExponential(e);return}else if(this.nextToken.type===TN||this.nextToken.type===vF||this.nextToken.type===Df||this.nextToken.type===Ku&&this.nextToken.value===")"){this.restore(),this.parseAtom(e);return}}var r=this.current;this.parseFactor(e),e.push(gF(r.value))}else this.parseExponential(e)},Er.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(Mr,"^");)this.parseFactor(e),e.push(ju("^"))},Er.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(Mr,"!");)e.push(gF("!"))},Er.prototype.parseFunctionCall=function(e){var t=this.tokens.unaryOps;function n(i){return i.value in t}if(this.accept(Mr,n)){var r=this.current;this.parseAtom(e),e.push(gF(r.value))}else for(this.parseMemberExpression(e);this.accept(Ku,"(");)if(this.accept(Ku,")"))e.push(new Sn(z2,0));else{var a=this.parseArgumentList(e);e.push(new Sn(z2,a))}},Er.prototype.parseArgumentList=function(e){for(var t=0;!this.accept(Ku,")");)for(this.parseExpression(e),++t;this.accept(vF);)this.parseExpression(e),++t;return t},Er.prototype.parseMemberExpression=function(e){for(this.parseAtom(e);this.accept(Mr,".")||this.accept(V2,"[");){var t=this.current;if(t.value==="."){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(CN),e.push(new Sn(F0,this.current.value))}else if(t.value==="["){if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(e),this.expect(V2,"]"),e.push(ju("["))}else throw new Error("unexpected symbol: "+t.value)}};function Roe(e,t){return Number(e)+Number(t)}function Foe(e,t){return e-t}function Ooe(e,t){return e*t}function Doe(e,t){return e/t}function Noe(e,t){return e%t}function zoe(e,t){return Array.isArray(e)&&Array.isArray(t)?e.concat(t):""+e+t}function Hoe(e,t){return e===t}function Boe(e,t){return e!==t}function Voe(e,t){return e>t}function _oe(e,t){return e<t}function Uoe(e,t){return e>=t}function Woe(e,t){return e<=t}function Yoe(e,t){return!!(e&&t)}function Zoe(e,t){return!!(e||t)}function Goe(e,t){return B2(t,e)}function joe(e){return(Math.exp(e)-Math.exp(-e))/2}function Xoe(e){return(Math.exp(e)+Math.exp(-e))/2}function Koe(e){return e===1/0?1:e===-1/0?-1:(Math.exp(e)-Math.exp(-e))/(Math.exp(e)+Math.exp(-e))}function Joe(e){return e===-1/0?e:Math.log(e+Math.sqrt(e*e+1))}function Qoe(e){return Math.log(e+Math.sqrt(e*e-1))}function qoe(e){return Math.log((1+e)/(1-e))/2}function GY(e){return Math.log(e)*Math.LOG10E}function $oe(e){return-e}function eie(e){return!e}function tie(e){return e<0?Math.ceil(e):Math.floor(e)}function nie(e){return Math.random()*(e||1)}function jY(e){return LN(e+1)}function rie(e){return isFinite(e)&&e===Math.round(e)}var aie=4.7421875,SN=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function LN(e){var t,n;if(rie(e)){if(e<=0)return isFinite(e)?1/0:NaN;if(e>171)return 1/0;for(var r=e-2,a=e-1;r>1;)a*=r,r--;return a===0&&(a=1),a}if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*LN(1-e));if(e>=171.35)return 1/0;if(e>85){var i=e*e,c=i*e,y=c*e,b=y*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*i)-139/(51840*c)-571/(2488320*y)+163879/(209018880*b)+5246819/(75246796800*b*e))}--e,n=SN[0];for(var x=1;x<SN.length;++x)n+=SN[x]/(e+x);return t=e+aie+.5,Math.sqrt(2*Math.PI)*Math.pow(t,e+.5)*Math.exp(-t)*n}function oie(e){return Array.isArray(e)?e.length:String(e).length}function XY(){for(var e=0,t=0,n=0;n<arguments.length;n++){var r=Math.abs(arguments[n]),a;t<r?(a=t/r,e=e*a*a+1,t=r):r>0?(a=r/t,e+=a*a):e+=r}return t===1/0?1/0:t*Math.sqrt(e)}function KY(e,t,n){return e?t:n}function iie(e,t){return typeof t>"u"||+t==0?Math.round(e):(e=+e,t=-+t,isNaN(e)||!(typeof t=="number"&&t%1===0)?NaN:(e=e.toString().split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]-t:-t))),e=e.toString().split("e"),+(e[0]+"e"+(e[1]?+e[1]+t:t))))}function sie(e,t,n){return n&&(n[e]=t),t}function lie(e,t){return e[t|0]}function cie(e){return arguments.length===1&&Array.isArray(e)?Math.max.apply(Math,e):Math.max.apply(Math,arguments)}function die(e){return arguments.length===1&&Array.isArray(e)?Math.min.apply(Math,e):Math.min.apply(Math,arguments)}function uie(e,t){if(typeof e!="function")throw new Error("First argument to map is not a function");if(!Array.isArray(t))throw new Error("Second argument to map is not an array");return t.map(function(n,r){return e(n,r)})}function hie(e,t,n){if(typeof e!="function")throw new Error("First argument to fold is not a function");if(!Array.isArray(n))throw new Error("Second argument to fold is not an array");return n.reduce(function(r,a,i){return e(r,a,i)},t)}function fie(e,t){if(typeof e!="function")throw new Error("First argument to filter is not a function");if(!Array.isArray(t))throw new Error("Second argument to filter is not an array");return t.filter(function(n,r){return e(n,r)})}function pie(e,t){if(!(Array.isArray(t)||typeof t=="string"))throw new Error("Second argument to indexOf is not a string or array");return t.indexOf(e)}function yie(e,t){if(!Array.isArray(t))throw new Error("Second argument to join is not an array");return t.join(e)}function gie(e){return(e>0)-(e<0)||+e}var JY=1/3;function mie(e){return e<0?-Math.pow(-e,JY):Math.pow(e,JY)}function vie(e){return Math.exp(e)-1}function kie(e){return Math.log(1+e)}function bie(e){return Math.log(e)/Math.LN2}function Vh(e){this.options=e||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||joe,cosh:Math.cosh||Xoe,tanh:Math.tanh||Koe,asinh:Math.asinh||Joe,acosh:Math.acosh||Qoe,atanh:Math.atanh||qoe,sqrt:Math.sqrt,cbrt:Math.cbrt||mie,log:Math.log,log2:Math.log2||bie,ln:Math.log,lg:Math.log10||GY,log10:Math.log10||GY,expm1:Math.expm1||vie,log1p:Math.log1p||kie,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||tie,"-":$oe,"+":Number,exp:Math.exp,not:eie,length:oie,"!":jY,sign:Math.sign||gie},this.binaryOps={"+":Roe,"-":Foe,"*":Ooe,"/":Doe,"%":Noe,"^":Math.pow,"||":zoe,"==":Hoe,"!=":Boe,">":Voe,"<":_oe,">=":Uoe,"<=":Woe,and:Yoe,or:Zoe,in:Goe,"=":sie,"[":lie},this.ternaryOps={"?":KY},this.functions={random:nie,fac:jY,min:die,max:cie,hypot:Math.hypot||XY,pyt:Math.hypot||XY,pow:Math.pow,atan2:Math.atan2,if:KY,gamma:LN,roundTo:iie,map:uie,fold:hie,filter:fie,indexOf:pie,join:yie},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}Vh.prototype.parse=function(e){var t=[],n=new Er(this,new ga(this,e),{allowMemberAccess:this.options.allowMemberAccess});return n.parseExpression(t),n.expect(Df,"EOF"),new nd(t,this)},Vh.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var QY=new Vh;Vh.parse=function(e){return QY.parse(e)},Vh.evaluate=function(e,t){return QY.parse(e).evaluate(t)};var qY={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};function xie(e){return qY.hasOwnProperty(e)?qY[e]:e}Vh.prototype.isOperatorEnabled=function(e){var t=xie(e),n=this.options.operators||{};return!(t in n)||!!n[t]};function wie(e){const t=new Set,n=new Set;return e.forEach(r=>{r.tags.forEach(a=>t.add(a.name)),r.category&&n.add(r.category)}),{uniqueTags:Array.from(t),uniqueCategories:Array.from(n)}}function Mie(e,t){let n=[...e];if(t.tags.include.length>0&&(n=n.filter(r=>r.tags.some(a=>t.tags.include.includes(a.name)))),t.tags.exclude.length>0&&(n=n.filter(r=>!r.tags.some(a=>t.tags.exclude.includes(a.name)))),t.categories.include.length>0&&(n=n.filter(r=>r.category&&t.categories.include.includes(r.category))),t.categories.exclude.length>0&&(n=n.filter(r=>!r.category||!t.categories.exclude.includes(r.category))),t.priorities.include.length>0&&(n=n.filter(r=>t.priorities.include.includes(r.priority))),t.priorities.exclude.length>0&&(n=n.filter(r=>!t.priorities.exclude.includes(r.priority))),t.statuses.include.length>0&&(n=n.filter(r=>t.statuses.include.includes(r.status))),t.statuses.exclude.length>0&&(n=n.filter(r=>!t.statuses.exclude.includes(r.status))),t.enableScript&&t.script.trim())try{const r=new Vh,a=r.parse(t.script);n=n.filter(i=>{try{return!!a.evaluate({task:i})}catch(c){return Mt.error("TaskFiltering","Custom filter script execution failed",c),!1}})}catch(r){Mt.error("TaskFiltering","Custom filter script parsing failed",r)}return n}function Cie(e,t){const n=[...e];return n.sort((r,a)=>{if(t.field==="custom"){if(!t.script.trim())return 0;try{const y=new Vh,b=y.parse(t.script),x=b.evaluate({a:r,b:a});return typeof x=="number"?x:0}catch(y){return Mt.error("TaskFiltering","Custom sort script failed",y),0}}let i=r[t.field],c=a[t.field];if(t.field==="priority"){const y={high:3,medium:2,low:1};i=y[r.priority],c=y[a.priority]}return i==null&&(i=""),c==null&&(c=""),i<c?t.direction==="asc"?-1:1:i>c?t.direction==="asc"?1:-1:0}),n}const $Y=(e,t,n)=>{const{uniqueTags:r,uniqueCategories:a}=de.useMemo(()=>wie(e),[e]);return{processedTasks:de.useMemo(()=>Cie(Mie(e,t),n),[e,t,n]),uniqueTags:r,uniqueCategories:a}},eZ=e=>de.useMemo(()=>e.reduce((t,n)=>(n.status==="done"||n.status==="cancelled"||(n.status==="todo"&&t.todo++,n.status==="unplanned"&&t.unplanned++,n.status==="scheduled"&&t.scheduled++,n.status==="doing"&&t.doing++,(n.status==="overdue"||n.status==="due")&&t.urgent++),t),{todo:0,unplanned:0,urgent:0,scheduled:0,doing:0}),[e]);function Tie(e){return{name:"create_task",description:"Create a new task with a title and optional details like description, priority, dates, tags, and recurrence.",schema:{type:"object",properties:{title:{type:"string",description:"The title of the task (required)"},description:{type:"string",description:"A detailed description of the task"},priority:{type:"string",description:"Task priority level",enum:["low","medium","high"]},status:{type:"string",description:"Initial task status",enum:["todo","scheduled"]},dueAt:{type:"string",description:"Due date in ISO 8601 format (YYYY-MM-DD)"},startAt:{type:"string",description:"Start date in ISO 8601 format (YYYY-MM-DD)"},category:{type:"string",description:"Task category"},tags:{type:"array",description:"List of tag names to attach to the task",items:{type:"string"}},recurrence:{type:"string",description:"Recurrence rule in RRULE RFC 5545 format (e.g. FREQ=WEEKLY;BYDAY=MO)"}},required:["title"]},async execute(t){const n=t.title,r=t.description,a=t.priority??"medium",i=t.status??"todo",c=t.dueAt,y=t.startAt,b=t.category,x=t.tags??[],T=t.recurrence,M=RR("ai"),I=LD(),O=x.map(_=>({id:RR("tag"),name:_})),N={id:M,title:n,...r!==void 0?{description:r}:{},priority:a,status:i,createdAt:I,...c!==void 0?{dueAt:c}:{},...y!==void 0?{startAt:y}:{},...b!==void 0?{category:b}:{},tags:O,...T!==void 0?{isRecurring:!0,recurringInterval:T}:{}},D=T0(N),H={...N,status:D};return await e.addTask(H),e.notify?.("success",`Created task: ${n}`),{name:"create_task",result:{success:!0,id:M,title:n}}}}}const tZ={high:0,medium:1,low:2};function Sie(e){return{id:e.id,title:e.title,status:e.status,priority:e.priority,dueAt:e.dueAt,startAt:e.startAt,category:e.category,tags:e.tags.map(t=>t.name),isRecurring:e.isRecurring===!0}}function Lie(e,t){const n=t.toLowerCase(),r=e.title.toLowerCase().includes(n),a=e.description?.toLowerCase().includes(n)??!1;return r||a}function Iie(e,t){const n=t.toLowerCase();return e.tags.some(r=>r.name.toLowerCase()===n)}function Aie(e,t,n){return t===void 0&&n===void 0?!0:!(e.dueAt===void 0||t!==void 0&&e.dueAt<t||n!==void 0&&e.dueAt>n)}function Eie(e,t,n){switch(n){case"priority":return tZ[e.priority]-tZ[t.priority];case"dueAt":return(e.dueAt??"").localeCompare(t.dueAt??"");case"createdAt":return(e.createdAt??"").localeCompare(t.createdAt??"");case"title":return e.title.localeCompare(t.title);default:return 0}}function Pie(e){return{name:"query_tasks",description:"Search and filter tasks by status, category, tags, date range, recurrence, and free-text search. Returns a token-efficient summary.",schema:{type:"object",properties:{status:{type:"string",description:"Filter by exact task status",enum:["done","scheduled","todo","due","overdue","cancelled","unplanned","doing"]},search:{type:"string",description:"Case-insensitive substring search on task title and description"},category:{type:"string",description:"Filter by exact category match"},tag:{type:"string",description:"Filter by tag name (case-insensitive)"},dateFrom:{type:"string",description:"Inclusive start of due-date range in ISO 8601 format (YYYY-MM-DD)"},dateTo:{type:"string",description:"Inclusive end of due-date range in ISO 8601 format (YYYY-MM-DD)"},recurring:{type:"boolean",description:"Filter by recurrence: true for recurring tasks, false for non-recurring"},sort:{type:"string",description:"Sort results by the specified field",enum:["priority","dueAt","createdAt","title"]},limit:{type:"number",description:"Maximum number of tasks to return (default 50)"}}},async execute(t){const n=t.status,r=t.search,a=t.category,i=t.tag,c=t.dateFrom,y=t.dateTo,b=t.recurring,x=t.sort,T=t.limit??50,I=(await e.getTasks()).filter(H=>!(n!==void 0&&H.status!==n||r!==void 0&&!Lie(H,r)||a!==void 0&&H.category!==a||i!==void 0&&!Iie(H,i)||!Aie(H,c,y)||b!==void 0&&(b&&H.isRecurring!==!0||!b&&H.isRecurring===!0))),D=(x!==void 0?[...I].sort((H,_)=>Eie(H,_,x)):I).slice(0,T).map(Sie);return I.length>0&&e.showToast?.({variant:"info",title:`Found ${I.length} task${I.length===1?"":"s"}`,detail:[{type:"task-list",tasks:I,label:"Search Results"}],timeout:8e3}),{name:"query_tasks",result:{tasks:D,count:D.length}}}}}function Rie(e){return{name:"update_task",description:"Update an existing task by ID. Only the fields you provide will be changed; all other fields are preserved.",schema:{type:"object",properties:{id:{type:"string",description:"The ID of the task to update (required)"},title:{type:"string",description:"New title for the task"},description:{type:"string",description:"New description for the task"},status:{type:"string",description:"New status for the task (only terminal/settable states allowed)",enum:["todo","done","cancelled"]},priority:{type:"string",description:"New priority level",enum:["low","medium","high"]},dueAt:{type:"string",description:"New due date in ISO 8601 format (YYYY-MM-DD)"},startAt:{type:"string",description:"New start date in ISO 8601 format (YYYY-MM-DD)"},completedAt:{type:"string",description:"Completion timestamp in ISO 8601 format"},category:{type:"string",description:"New task category"},tags:{type:"array",description:"New list of tag names (replaces existing tags)",items:{type:"string"}},recurrence:{type:"string",description:"Recurrence rule in RRULE RFC 5545 format (e.g. FREQ=WEEKLY;BYDAY=MO). Use empty string to clear recurrence."}},required:["id"]},async execute(t){const n=t.id,r=await e.getTask(n);if(!r)return{name:"update_task",result:{success:!1,error:`Task not found: ${n}`}};const a={};if(t.title!==void 0&&(a.title=t.title),t.description!==void 0&&(a.description=t.description),t.status!==void 0&&(a.status=t.status),t.priority!==void 0&&(a.priority=t.priority),t.dueAt!==void 0&&(a.dueAt=t.dueAt),t.startAt!==void 0&&(a.startAt=t.startAt),t.completedAt!==void 0&&(a.completedAt=t.completedAt),t.category!==void 0&&(a.category=t.category),t.tags!==void 0){const x=t.tags.map(T=>({id:RR("tag"),name:T}));a.tags=x}if(t.recurrence!==void 0){const b=t.recurrence;b===""?(a.isRecurring=void 0,a.recurringInterval=void 0):(a.isRecurring=!0,a.recurringInterval=b)}const i={...r,...a},c=T0(i),y={...i,status:c};return await e.updateTask(y),e.notify?.("success",`Updated task: ${n}`),{name:"update_task",result:{success:!0,id:n}}}}}function Fie(e){return{name:"delete_task",description:"Delete an existing task by its ID.",schema:{type:"object",properties:{id:{type:"string",description:"The ID of the task to delete (required)"}},required:["id"]},async execute(t){const n=t.id,r=await e.getTask(n);if(!r)return{name:"delete_task",result:{success:!1,message:`Task not found: ${n}`}};const a=await e.confirm?.(`Delete "${r.title}"?`,"This action cannot be undone.");return a===!1||a===null?{name:"delete_task",result:{success:!1,message:"Cancelled by user"}}:(await e.deleteTask(n),e.notify?.("info",`Deleted task: ${r.title}`),{name:"delete_task",result:{success:!0,id:n,title:r.title}})}}}function Oie(e){return{name:"complete_task",description:"Mark a task as done. For recurring tasks, completes the current instance and creates the next occurrence.",schema:{type:"object",properties:{id:{type:"string",description:"The ID of the task to complete (required)"}},required:["id"]},async execute(t){const n=t.id,r=await e.getTask(n);if(!r)return{name:"complete_task",result:{success:!1,error:`Task not found: ${n}`}};const a=LD(),i={...r,status:"done",completedAt:a};await e.updateTask(i);let c=!1;if(r.isRecurring&&r.recurringInterval){const y={...r,id:RR("ai"),status:"todo",createdAt:a,completedAt:void 0,cancelledAt:void 0},b=T0(y),x={...y,status:b};await e.addTask(x),c=!0}return e.notify?.("success",`Completed task: ${r.title}${c?" (next occurrence created)":""}`),{name:"complete_task",result:{success:!0,id:n,title:r.title,createdNextOccurrence:c}}}}}function Die(e){return{name:"cancel_task",description:"Cancel a task. For recurring tasks, cancels the entire series.",schema:{type:"object",properties:{id:{type:"string",description:"The ID of the task to cancel (required)"}},required:["id"]},async execute(t){const n=t.id,r=await e.getTask(n);if(!r)return{name:"cancel_task",result:{success:!1,error:`Task not found: ${n}`}};const a={...r,status:"cancelled",cancelledAt:LD()};return await e.updateTask(a),e.notify?.("info",`Cancelled task: ${r.title}`),{name:"cancel_task",result:{success:!0,id:n,title:r.title}}}}}function Nie(e,t){const n=t.toLowerCase();return e.tags.some(r=>r.name.toLowerCase()===n)}function zie(e){return{name:"batch_update_tasks",description:"Update multiple tasks matching a filter criteria. All matching tasks receive the same updates. Filters use exact matching for status and category, case-insensitive matching for tags.",schema:{type:"object",properties:{filter:{type:"object",description:"Filter criteria to select tasks to update. All conditions are combined with AND logic.",properties:{status:{type:"string",description:"Filter by exact task status",enum:["done","scheduled","todo","due","overdue","cancelled","unplanned","doing"]},category:{type:"string",description:"Filter by exact category match"},tag:{type:"string",description:"Filter by tag name (case-insensitive)"},recurring:{type:"boolean",description:"Filter by recurrence: true for recurring tasks, false for non-recurring"}}},update:{type:"object",description:"Fields to update on all matching tasks. Omitted fields are not changed.",properties:{status:{type:"string",description:"New status (only terminal/settable states allowed)",enum:["todo","done","cancelled"]},priority:{type:"string",description:"New priority level",enum:["low","medium","high"]},dueAt:{type:"string",description:"New due date in ISO 8601 format (YYYY-MM-DD)"},category:{type:"string",description:"New task category"},recurrence:{type:"string",description:"Recurrence rule in RRULE RFC 5545 format (e.g. FREQ=WEEKLY;BYDAY=MO). Use empty string to clear recurrence."}}}},required:["filter","update"]},async execute(t){const n=t.filter,r=t.update;if(!n||!r)return{name:"batch_update_tasks",result:{success:!1,error:"filter and update are required"}};const a=n.status,i=n.category,c=n.tag,y=n.recurring,x=(await e.getTasks()).filter(I=>!(a!==void 0&&I.status!==a||i!==void 0&&I.category!==i||c!==void 0&&!Nie(I,c)||y!==void 0&&(y&&I.isRecurring!==!0||!y&&I.isRecurring===!0)));if(x.length>0){const I=await e.confirm?.(`Update ${x.length} task${x.length===1?"":"s"}?`,"This will apply changes to all matching tasks.");if(I===!1||I===null)return{name:"batch_update_tasks",result:{success:!1,message:"Cancelled by user",updated:0}}}const T=[],M=[];for(const I of x){const O={};if(r.status!==void 0&&(O.status=r.status),r.priority!==void 0&&(O.priority=r.priority),r.dueAt!==void 0&&(O.dueAt=r.dueAt),r.category!==void 0&&(O.category=r.category),r.recurrence!==void 0){const _=r.recurrence;_===""?(O.isRecurring=void 0,O.recurringInterval=void 0):(O.isRecurring=!0,O.recurringInterval=_)}const N={...I,...O},D=T0(N),H={...N,status:D};await e.updateTask(H),T.push(I.id),M.push(H)}return M.length>0&&e.showToast?.({variant:"success",title:`Updated ${M.length} task${M.length===1?"":"s"}`,detail:[{type:"task-list",tasks:M,label:"Updated Tasks"}],timeout:6e3}),e.notify?.("success",`Updated ${x.length} task${x.length===1?"":"s"}`),{name:"batch_update_tasks",result:{success:!0,updatedCount:x.length,taskIds:T}}}}}function Hie(e){return{name:"get_task_stats",description:"Get aggregate statistics about all tasks including counts by status, priority, category, completion metrics, and recurring task count.",schema:{type:"object",properties:{}},async execute(){const t=await e.getTasks(),n={total:t.length,byStatus:{},byPriority:{},byCategory:{},overdue:0,completedToday:0,completionRate:0,recurring:0,generatedAt:new Date().toISOString()},r=Rh();for(const a of t)n.byStatus[a.status]=(n.byStatus[a.status]??0)+1,n.byPriority[a.priority]=(n.byPriority[a.priority]??0)+1,a.category&&(n.byCategory[a.category]=(n.byCategory[a.category]??0)+1),a.status==="overdue"&&(n.overdue+=1),a.completedAt&&a.completedAt.startsWith(r)&&(n.completedToday+=1),a.isRecurring&&(n.recurring+=1);if(t.length>0){const i=(n.byStatus.done??0)/t.length;n.completionRate=Math.round(i*100)/100}return e.showToast?.({variant:"info",title:"Task Statistics",description:`${n.total} total tasks`,detail:[{type:"stats",data:{total:n.total,byStatus:n.byStatus,byPriority:n.byPriority}}],timeout:8e3}),{name:"get_task_stats",result:n}}}}const nZ={high:0,medium:1,low:2};function rZ(e,t){return nZ[e.priority]-nZ[t.priority]}function Bie(e){return{name:"get_today_plan",description:"Get today's task plan with tasks due today (sorted by priority) and overdue tasks (sorted by priority).",schema:{type:"object",properties:{}},async execute(){const t=await e.getTasks(),n=Rh(),r=[],a=[],i=[],c=[];for(const x of t){const T={id:x.id,title:x.title,priority:x.priority,status:x.status,...x.category?{category:x.category}:{},tags:x.tags.map(M=>M.name),...x.isRecurring!==void 0?{isRecurring:x.isRecurring}:{}};x.dueAt===n&&x.status!=="done"&&x.status!=="cancelled"&&(r.push(T),i.push(x)),x.status==="overdue"&&(a.push(T),c.push(x))}r.sort(rZ),a.sort(rZ);const y={date:n,todayTasks:r,todayCount:r.length,overdueTasks:a,overdueCount:a.length},b=[];return i.length>0&&b.push({type:"task-list",tasks:i,label:"Today"}),c.length>0&&b.push({type:"task-list",tasks:c,label:"Overdue"}),b.length>0&&e.showToast?.({variant:c.length>0?"warning":"info",title:"Today's Plan",description:`${y.todayCount} due today, ${y.overdueCount} overdue`,detail:b,timeout:1e4}),{name:"get_today_plan",result:y}}}}function Vie(e){return{name:"notify_user",description:"Show a notification to the user with a title, optional description, body text, and optional timeout. Use this to communicate results, progress, or important information.",schema:{type:"object",properties:{variant:{type:"string",description:"Visual style of the notification",enum:["success","error","info","warning"]},title:{type:"string",description:"Short headline for the notification (required)"},description:{type:"string",description:"Brief subtitle below the title"},body:{type:"string",description:"Longer text content for detailed information"},timeout:{type:"number",description:"Auto-dismiss after this many milliseconds. Use 0 or null for persistent notifications. Default: 8000"}},required:["variant","title"]},async execute(t){const n=t.variant,r=t.title,a=t.description,i=t.body,c=t.timeout,y=c===null||c===0?null:c??8e3;return e.showToast?.({variant:n,title:r,description:a,body:i,timeout:y}),{name:"notify_user",result:{success:!0}}}}}function _ie(e){return{name:"ask_user",description:"Ask the user a question and wait for their response. Supports three modes: free-text input (question only), select from options (question + options), or yes/no confirmation (question + confirm). Use this when you need clarification or user input before proceeding.",schema:{type:"object",properties:{question:{type:"string",description:"The question to ask the user (required)"},options:{type:"array",description:"List of options for the user to choose from. When provided, renders a selection list.",items:{type:"object",properties:{label:{type:"string",description:"Display text for this option"},value:{type:"string",description:"Value returned when this option is selected"}}}},confirm:{type:"boolean",description:"When true, presents a yes/no confirmation dialog instead of free-text input"}},required:["question"]},async execute(t){const n=t.question,r=t.options,a=t.confirm,i={question:n,answer:null,error:"User interaction not available"};if(a){if(!e.confirm)return{name:"ask_user",result:i};const y=t.description,b=await e.confirm(n,y);return b===null?{name:"ask_user",result:{question:n,answer:null,dismissed:!0}}:{name:"ask_user",result:{question:n,answer:b?"yes":"no"}}}if(r&&r.length>0){if(!e.select)return{name:"ask_user",result:i};const y=await e.select(n,r);return y===null?{name:"ask_user",result:{question:n,answer:null,dismissed:!0}}:{name:"ask_user",result:{question:n,answer:y}}}if(!e.prompt)return{name:"ask_user",result:i};const c=await e.prompt(n);return c===null?{name:"ask_user",result:{question:n,answer:null,dismissed:!0}}:{name:"ask_user",result:{question:n,answer:c}}}}}function Uie(e){return{name:"all-tasks",uri:"tasks://all",description:"List of all tasks in the system.",mimeType:"application/json",async read(){const t=await e.getTasks();return{contents:[{uri:"tasks://all",text:JSON.stringify({tasks:t,count:t.length,generatedAt:new Date().toISOString()}),mimeType:"application/json"}]}}}}function Wie(e){return{name:"task-by-id",uri:"tasks://task",uriTemplate:"tasks://{taskId}",description:"Retrieve a single task by its ID.",mimeType:"application/json",async read(t){const n=t?.taskId??"",r=await e.getTask(n);return{contents:[{uri:`tasks://${n}`,text:JSON.stringify({task:r??null,found:r!==null}),mimeType:"application/json"}]}}}}function Yie(e){return[{name:"overdue-tasks",uri:"tasks://overdue",description:"Tasks that are currently overdue.",mimeType:"application/json",async read(){const i=(await e.getTasks()).filter(c=>c.status==="overdue");return{contents:[{uri:"tasks://overdue",text:JSON.stringify({tasks:i,count:i.length,generatedAt:new Date().toISOString()}),mimeType:"application/json"}]}}},{name:"today-tasks",uri:"tasks://today",description:"Tasks due today or starting today.",mimeType:"application/json",async read(){const a=await e.getTasks(),i=Rh(),c=a.filter(y=>y.dueAt===i||y.startAt===i);return{contents:[{uri:"tasks://today",text:JSON.stringify({tasks:c,count:c.length,generatedAt:new Date().toISOString()}),mimeType:"application/json"}]}}},{name:"upcoming-tasks",uri:"tasks://upcoming",description:"Tasks due in the next 7 days (excluding today).",mimeType:"application/json",async read(){const a=await e.getTasks(),i=Rh(),c=_$(7),y=a.filter(b=>b.dueAt?b.dueAt>i&&b.dueAt<=c:!1);return{contents:[{uri:"tasks://upcoming",text:JSON.stringify({tasks:y,count:y.length,generatedAt:new Date().toISOString()}),mimeType:"application/json"}]}}}]}function Zie(e){return{name:"stats",uri:"tasks://stats",description:"Aggregate statistics about all tasks including counts by status, priority, category, completion metrics, and recurring task count.",mimeType:"application/json",async read(){const t=await e.getTasks(),n=Rh(),r={total:t.length,byStatus:{},byPriority:{},byCategory:{},overdue:0,completedToday:0,completionRate:0,recurring:0,generatedAt:new Date().toISOString()};for(const a of t)r.byStatus[a.status]=(r.byStatus[a.status]??0)+1,r.byPriority[a.priority]=(r.byPriority[a.priority]??0)+1,a.category&&(r.byCategory[a.category]=(r.byCategory[a.category]??0)+1),a.status==="overdue"&&(r.overdue+=1),a.completedAt&&a.completedAt.startsWith(n)&&(r.completedToday+=1),a.isRecurring&&(r.recurring+=1);if(t.length>0){const i=(r.byStatus.done??0)/t.length;r.completionRate=Math.round(i*100)/100}return{contents:[{uri:"tasks://stats",text:JSON.stringify(r),mimeType:"application/json"}]}}}}function Gie(e){return{name:"plan_my_day",description:"Review today's tasks and create a prioritized plan for the day.",arguments:[{name:"focusArea",description:"What to prioritize today",required:!1}],async render(t){const n=await e.getTasks(),r=Rh(),a=n.filter(y=>y.dueAt?.startsWith(r)&&y.status!=="done"&&y.status!=="cancelled"),i=n.filter(y=>y.status==="overdue"),c=["Review my tasks for today and create a prioritized plan."];t?.focusArea&&c.push(`Focus area: ${t.focusArea}`),c.push(""),c.push(`## Today's Tasks (${a.length})`);for(const y of a)c.push(`- [${y.status}] ${y.title} (${y.priority})`);c.push(""),c.push(`## Overdue (${i.length})`);for(const y of i)c.push(`- ${y.title} — due ${y.dueAt}`);return c.push(""),c.push("Use the available tools to reschedule, complete, or update tasks as needed."),[{role:"user",content:c.join(`