@1d1s/design-system 0.2.19 → 0.2.20
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.
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(D,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("next/image"),require("lucide-react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","next/image","lucide-react"],s):(D=typeof globalThis<"u"?globalThis:D||self,s(D.OdosDesignSystem={},D.jsxRuntime,D.React,D.ReactDOM,D.nextImage,D.LucideReact))})(this,(function(D,s,P,Go,lt,ce){"use strict";function Uo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=Uo(P),dn=Uo(Go);function gc(e,t){const n=h.createContext(t),r=a=>{const{children:i,...l}=a,c=h.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(a){const i=h.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ae(e,t=[]){let n=[];function r(a,i){const l=h.createContext(i),c=n.length;n=[...n,i];const d=f=>{const{scope:p,children:v,...b}=f,g=p?.[e]?.[c]||l,m=h.useMemo(()=>b,Object.values(b));return s.jsx(g.Provider,{value:m,children:v})};d.displayName=a+"Provider";function u(f,p){const v=p?.[e]?.[c]||l,b=h.useContext(v);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,u]}const o=()=>{const a=n.map(i=>h.createContext(i));return function(l){const c=l?.[e]||a;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,mc(o,...t)]}function mc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((l,{useScope:c,scopeName:d})=>{const f=c(a)[`__scope${d}`];return{...l,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ko(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lr(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Ko(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Ko(e[o],null)}}}}function J(...e){return h.useCallback(lr(...e),e)}function vt(e){const t=vc(e),n=h.forwardRef((r,o)=>{const{children:a,...i}=r,l=h.Children.toArray(a),c=l.find(yc);if(c){const d=c.props.children,u=l.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...i,ref:o,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return s.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function vc(e){const t=h.forwardRef((n,r)=>{const{children:o,...a}=n;if(h.isValidElement(o)){const i=xc(o),l=wc(a,o.props);return o.type!==h.Fragment&&(l.ref=r?lr(r,i):i),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qo=Symbol("radix.slottable");function bc(e){const t=({children:n})=>s.jsx(s.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Qo,t}function yc(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qo}function wc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{const c=a(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function xc(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)}function cr(e){const t=e+"CollectionProvider",[n,r]=Ae(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:m,children:w}=g,y=P.useRef(null),x=P.useRef(new Map).current;return s.jsx(o,{scope:m,itemMap:x,collectionRef:y,children:w})};i.displayName=t;const l=e+"CollectionSlot",c=vt(l),d=P.forwardRef((g,m)=>{const{scope:w,children:y}=g,x=a(l,w),N=J(m,x.collectionRef);return s.jsx(c,{ref:N,children:y})});d.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=vt(u),v=P.forwardRef((g,m)=>{const{scope:w,children:y,...x}=g,N=P.useRef(null),S=J(m,N),M=a(u,w);return P.useEffect(()=>(M.itemMap.set(N,{ref:N,...x}),()=>{M.itemMap.delete(N)})),s.jsx(p,{[f]:"",ref:S,children:y})});v.displayName=u;function b(g){const m=a(e+"CollectionConsumer",g);return P.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((M,E)=>x.indexOf(M.ref.current)-x.indexOf(E.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:d,ItemSlot:v},b,r]}function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var fe=globalThis?.document?h.useLayoutEffect:()=>{},Cc=h[" useInsertionEffect ".trim().toString()]||fe;function Ce({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=Nc({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const u=h.useRef(e!==void 0);h.useEffect(()=>{const f=u.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const d=h.useCallback(u=>{if(l){const f=Sc(u)?u(e):u;f!==e&&i.current?.(f)}else a(u)},[l,e,a,i]);return[c,d]}function Nc({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),a=h.useRef(t);return Cc(()=>{a.current=t},[t]),h.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function Sc(e){return typeof e=="function"}var kc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],G=kc.reduce((e,t)=>{const n=vt(`Primitive.${t}`),r=h.forwardRef((o,a)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ac(e,t){e&&dn.flushSync(()=>e.dispatchEvent(t))}function Pc(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var We=e=>{const{present:t,children:n}=e,r=Ec(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),a=J(r.ref,_c(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:a}):null};We.displayName="Presence";function Ec(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),a=h.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Pc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const d=un(r.current);a.current=l==="mounted"?d:"none"},[l]),fe(()=>{const d=r.current,u=o.current;if(u!==e){const p=a.current,v=un(d);e?c("MOUNT"):v==="none"||d?.display==="none"?c("UNMOUNT"):c(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),fe(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=v=>{const g=un(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&g&&(c("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},p=v=>{v.target===t&&(a.current=un(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function un(e){return e?.animationName||"none"}function _c(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)}var Mc=h[" useId ".trim().toString()]||(()=>{}),Tc=0;function Pe(e){const[t,n]=h.useState(Mc());return fe(()=>{n(r=>r??String(Tc++))},[e]),e||(t?`radix-${t}`:"")}var fn="Collapsible",[Dc,qo]=Ae(fn),[Oc,dr]=Dc(fn),Xo=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[c,d]=Ce({prop:r,defaultProp:o??!1,onChange:i,caller:fn});return s.jsx(Oc,{scope:n,disabled:a,contentId:Pe(),open:c,onOpenToggle:h.useCallback(()=>d(u=>!u),[d]),children:s.jsx(G.div,{"data-state":fr(c),"data-disabled":a?"":void 0,...l,ref:t})})});Xo.displayName=fn;var Zo="CollapsibleTrigger",Jo=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=dr(Zo,n);return s.jsx(G.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":fr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:V(e.onClick,o.onOpenToggle)})});Jo.displayName=Zo;var ur="CollapsibleContent",Ro=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=dr(ur,e.__scopeCollapsible);return s.jsx(We,{present:n||o.open,children:({present:a})=>s.jsx(Ic,{...r,ref:t,present:a})})});Ro.displayName=ur;var Ic=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=dr(ur,n),[l,c]=h.useState(r),d=h.useRef(null),u=J(t,d),f=h.useRef(0),p=f.current,v=h.useRef(0),b=v.current,g=i.open||l,m=h.useRef(g),w=h.useRef(void 0);return h.useEffect(()=>{const y=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(y)},[]),fe(()=>{const y=d.current;if(y){w.current=w.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const x=y.getBoundingClientRect();f.current=x.height,v.current=x.width,m.current||(y.style.transitionDuration=w.current.transitionDuration,y.style.animationName=w.current.animationName),c(r)}},[i.open,r]),s.jsx(G.div,{"data-state":fr(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...a,ref:u,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:g&&o})});function fr(e){return e?"open":"closed"}var Lc=Xo,Fc=Jo,Wc=Ro,zc=h.createContext(void 0);function hn(e){const t=h.useContext(zc);return e||t||"ltr"}var Ee="Accordion",Bc=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[hr,$c,Hc]=cr(Ee),[pn]=Ae(Ee,[Hc,qo]),pr=qo(),ea=P.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return s.jsx(hr.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?s.jsx(Gc,{...a,ref:t}):s.jsx(Yc,{...o,ref:t})})});ea.displayName=Ee;var[ta,Vc]=pn(Ee),[na,jc]=pn(Ee,{collapsible:!1}),Yc=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,c]=Ce({prop:n,defaultProp:r??"",onChange:o,caller:Ee});return s.jsx(ta,{scope:e.__scopeAccordion,value:P.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:P.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(na,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(ra,{...i,ref:t})})})}),Gc=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=Ce({prop:n,defaultProp:r??[],onChange:o,caller:Ee}),c=P.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=P.useCallback(u=>l((f=[])=>f.filter(p=>p!==u)),[l]);return s.jsx(ta,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d,children:s.jsx(na,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(ra,{...a,ref:t})})})}),[Uc,gn]=pn(Ee),ra=P.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,l=P.useRef(null),c=J(l,t),d=$c(n),f=hn(o)==="ltr",p=V(e.onKeyDown,v=>{if(!Bc.includes(v.key))return;const b=v.target,g=d().filter(k=>!k.ref.current?.disabled),m=g.findIndex(k=>k.ref.current===b),w=g.length;if(m===-1)return;v.preventDefault();let y=m;const x=0,N=w-1,S=()=>{y=m+1,y>N&&(y=x)},M=()=>{y=m-1,y<x&&(y=N)};switch(v.key){case"Home":y=x;break;case"End":y=N;break;case"ArrowRight":a==="horizontal"&&(f?S():M());break;case"ArrowDown":a==="vertical"&&S();break;case"ArrowLeft":a==="horizontal"&&(f?M():S());break;case"ArrowUp":a==="vertical"&&M();break}const E=y%w;g[E].ref.current?.focus()});return s.jsx(Uc,{scope:n,disabled:r,direction:o,orientation:a,children:s.jsx(hr.Slot,{scope:n,children:s.jsx(G.div,{...i,"data-orientation":a,ref:c,onKeyDown:r?void 0:p})})})}),mn="AccordionItem",[Kc,gr]=pn(mn),oa=P.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=gn(mn,n),i=Vc(mn,n),l=pr(n),c=Pe(),d=r&&i.value.includes(r)||!1,u=a.disabled||e.disabled;return s.jsx(Kc,{scope:n,open:d,disabled:u,triggerId:c,children:s.jsx(Lc,{"data-orientation":a.orientation,"data-state":da(d),...l,...o,ref:t,disabled:u,open:d,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});oa.displayName=mn;var aa="AccordionHeader",sa=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=gn(Ee,n),a=gr(aa,n);return s.jsx(G.h3,{"data-orientation":o.orientation,"data-state":da(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});sa.displayName=aa;var mr="AccordionTrigger",ia=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=gn(Ee,n),a=gr(mr,n),i=jc(mr,n),l=pr(n);return s.jsx(hr.ItemSlot,{scope:n,children:s.jsx(Fc,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...r,ref:t})})});ia.displayName=mr;var la="AccordionContent",ca=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=gn(Ee,n),a=gr(la,n),i=pr(n);return s.jsx(Wc,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});ca.displayName=la;function da(e){return e?"open":"closed"}var Qc=ea,qc=oa,Xc=sa,Zc=ia,Jc=ca;function ua(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ua(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fa(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ua(e))&&(r&&(r+=" "),r+=t);return r}const Rc=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ed=(e,t)=>({classGroupId:e,validator:t}),ha=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),vn="-",pa=[],td="arbitrary..",nd=e=>{const t=od(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return rd(i);const l=i.split(vn),c=l[0]===""&&l.length>1?1:0;return ga(l,c,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=r[i],d=n[i];return c?d?Rc(d,c):c:d||pa}return n[i]||pa}}},ga=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const d=ga(e,t+1,a);if(d)return d}const i=n.validators;if(i===null)return;const l=t===0?e.join(vn):e.slice(t).join(vn),c=i.length;for(let d=0;d<c;d++){const u=i[d];if(u.validator(l))return u.classGroupId}},rd=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?td+r:void 0})(),od=e=>{const{theme:t,classGroups:n}=e;return ad(n,t)},ad=(e,t)=>{const n=ha();for(const r in e){const o=e[r];vr(o,n,r,t)}return n},vr=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const i=e[a];sd(i,t,n,r)}},sd=(e,t,n,r)=>{if(typeof e=="string"){id(e,t,n);return}if(typeof e=="function"){ld(e,t,n,r);return}cd(e,t,n,r)},id=(e,t,n)=>{const r=e===""?t:ma(t,e);r.classGroupId=n},ld=(e,t,n,r)=>{if(dd(e)){vr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ed(n,e))},cd=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[l,c]=o[i];vr(c,ma(t,l),n,r)}},ma=(e,t)=>{let n=e;const r=t.split(vn),o=r.length;for(let a=0;a<o;a++){const i=r[a];let l=n.nextPart.get(i);l||(l=ha(),n.nextPart.set(i,l)),n=l}return n},dd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ud=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,i)=>{n[a]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let i=n[a];if(i!==void 0)return i;if((i=r[a])!==void 0)return o(a,i),i},set(a,i){a in n?n[a]=i:o(a,i)}}},br="!",va=":",fd=[],ba=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),hd=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,l=0,c=0,d;const u=o.length;for(let g=0;g<u;g++){const m=o[g];if(i===0&&l===0){if(m===va){a.push(o.slice(c,g)),c=g+1;continue}if(m==="/"){d=g;continue}}m==="["?i++:m==="]"?i--:m==="("?l++:m===")"&&l--}const f=a.length===0?o:o.slice(c);let p=f,v=!1;f.endsWith(br)?(p=f.slice(0,-1),v=!0):f.startsWith(br)&&(p=f.slice(1),v=!0);const b=d&&d>c?d-c:void 0;return ba(a,v,p,b)};if(t){const o=t+va,a=r;r=i=>i.startsWith(o)?a(i.slice(o.length)):ba(fd,!1,i,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},pd=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const i=n[a],l=i[0]==="[",c=t.has(i);l||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},gd=e=>({cache:ud(e.cacheSize),parseClassName:hd(e),sortModifiers:pd(e),...nd(e)}),md=/\s+/,vd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],l=e.trim().split(md);let c="";for(let d=l.length-1;d>=0;d-=1){const u=l[d],{isExternal:f,modifiers:p,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:g}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let m=!!g,w=r(m?b.substring(0,g):b);if(!w){if(!m){c=u+(c.length>0?" "+c:c);continue}if(w=r(b),!w){c=u+(c.length>0?" "+c:c);continue}m=!1}const y=p.length===0?"":p.length===1?p[0]:a(p).join(":"),x=v?y+br:y,N=x+w;if(i.indexOf(N)>-1)continue;i.push(N);const S=o(w,m);for(let M=0;M<S.length;++M){const E=S[M];i.push(x+E)}c=u+(c.length>0?" "+c:c)}return c},bd=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=ya(n))&&(o&&(o+=" "),o+=r);return o},ya=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ya(e[r]))&&(n&&(n+=" "),n+=t);return n},yd=(e,...t)=>{let n,r,o,a;const i=c=>{const d=t.reduce((u,f)=>f(u),e());return n=gd(d),r=n.cache.get,o=n.cache.set,a=l,l(c)},l=c=>{const d=r(c);if(d)return d;const u=vd(c,n);return o(c,u),u};return a=i,(...c)=>a(bd(...c))},wd=[],le=e=>{const t=n=>n[e]||wd;return t.isThemeGetter=!0,t},wa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xd=/^\d+\/\d+$/,Cd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ad=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bt=e=>xd.test(e),Q=e=>!!e&&!Number.isNaN(Number(e)),Ze=e=>!!e&&Number.isInteger(Number(e)),yr=e=>e.endsWith("%")&&Q(e.slice(0,-1)),Ke=e=>Cd.test(e),Pd=()=>!0,Ed=e=>Nd.test(e)&&!Sd.test(e),Ca=()=>!1,_d=e=>kd.test(e),Md=e=>Ad.test(e),Td=e=>!F(e)&&!W(e),Dd=e=>yt(e,Pa,Ca),F=e=>wa.test(e),ct=e=>yt(e,Ea,Ed),wr=e=>yt(e,Wd,Q),Na=e=>yt(e,ka,Ca),Od=e=>yt(e,Aa,Md),bn=e=>yt(e,_a,_d),W=e=>xa.test(e),Ht=e=>wt(e,Ea),Id=e=>wt(e,zd),Sa=e=>wt(e,ka),Ld=e=>wt(e,Pa),Fd=e=>wt(e,Aa),yn=e=>wt(e,_a,!0),yt=(e,t,n)=>{const r=wa.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},wt=(e,t,n=!1)=>{const r=xa.exec(e);return r?r[1]?t(r[1]):n:!1},ka=e=>e==="position"||e==="percentage",Aa=e=>e==="image"||e==="url",Pa=e=>e==="length"||e==="size"||e==="bg-size",Ea=e=>e==="length",Wd=e=>e==="number",zd=e=>e==="family-name",_a=e=>e==="shadow",Bd=yd(()=>{const e=le("color"),t=le("font"),n=le("text"),r=le("font-weight"),o=le("tracking"),a=le("leading"),i=le("breakpoint"),l=le("container"),c=le("spacing"),d=le("radius"),u=le("shadow"),f=le("inset-shadow"),p=le("text-shadow"),v=le("drop-shadow"),b=le("blur"),g=le("perspective"),m=le("aspect"),w=le("ease"),y=le("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...N(),W,F],M=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],k=()=>[W,F,c],z=()=>[bt,"full","auto",...k()],j=()=>[Ze,"none","subgrid",W,F],B=()=>["auto",{span:["full",Ze,W,F]},Ze,W,F],Y=()=>[Ze,"auto",W,F],K=()=>["auto","min","max","fr",W,F],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...k()],_=()=>[bt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],C=()=>[e,W,F],$=()=>[...N(),Sa,Na,{position:[W,F]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",Ld,Dd,{size:[W,F]}],ke=()=>[yr,Ht,ct],se=()=>["","none","full",d,W,F],ae=()=>["",Q,Ht,ct],ge=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[Q,yr,Sa,Na],ne=()=>["","none",b,W,F],ie=()=>["none",Q,W,F],q=()=>["none",Q,W,F],R=()=>[Q,W,F],re=()=>[bt,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ke],breakpoint:[Ke],color:[Pd],container:[Ke],"drop-shadow":[Ke],ease:["in","out","in-out"],font:[Td],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ke],shadow:[Ke],spacing:["px",Q],text:[Ke],"text-shadow":[Ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bt,F,W,m]}],container:["container"],columns:[{columns:[Q,F,W,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Ze,"auto",W,F]}],basis:[{basis:[bt,"full","auto",l,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,bt,"auto","initial","none",F]}],grow:[{grow:["",Q,W,F]}],shrink:[{shrink:["",Q,W,F]}],order:[{order:[Ze,"first","last","none",W,F]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],w:[{w:[l,"screen",..._()]}],"min-w":[{"min-w":[l,"screen","none",..._()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",n,Ht,ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,W,wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yr,F]}],"font-family":[{font:[Id,F,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,W,F]}],"line-clamp":[{"line-clamp":[Q,"none",W,wr]}],leading:[{leading:[a,...k()]}],"list-image":[{"list-image":["none",W,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",W,ct]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Q,"auto",W,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ze,W,F],radial:["",W,F],conic:[Ze,W,F]},Fd,Od]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:ke()}],"gradient-via-pos":[{via:ke()}],"gradient-to-pos":[{to:ke()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,W,F]}],"outline-w":[{outline:["",Q,Ht,ct]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",u,yn,bn]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",f,yn,bn]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Q,ct]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",p,yn,bn]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Q,W,F]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[W,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,F]}],filter:[{filter:["","none",W,F]}],blur:[{blur:ne()}],brightness:[{brightness:[Q,W,F]}],contrast:[{contrast:[Q,W,F]}],"drop-shadow":[{"drop-shadow":["","none",v,yn,bn]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Q,W,F]}],"hue-rotate":[{"hue-rotate":[Q,W,F]}],invert:[{invert:["",Q,W,F]}],saturate:[{saturate:[Q,W,F]}],sepia:[{sepia:["",Q,W,F]}],"backdrop-filter":[{"backdrop-filter":["","none",W,F]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[Q,W,F]}],"backdrop-contrast":[{"backdrop-contrast":[Q,W,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,W,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,W,F]}],"backdrop-invert":[{"backdrop-invert":["",Q,W,F]}],"backdrop-opacity":[{"backdrop-opacity":[Q,W,F]}],"backdrop-saturate":[{"backdrop-saturate":[Q,W,F]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,W,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",W,F]}],ease:[{ease:["linear","initial",w,W,F]}],delay:[{delay:[Q,W,F]}],animate:[{animate:["none",y,W,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,W,F]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:R()}],"skew-x":[{"skew-x":R()}],"skew-y":[{"skew-y":R()}],transform:[{transform:[W,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W,F]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Q,Ht,ct,wr]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function A(...e){return Bd(fa(e))}const wn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M20 8L12 16L4 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),$d=Qc;function Hd({className:e,...t}){return s.jsx(qc,{className:A("border-b border-gray-200 last:border-b-0",e),...t})}function Vd({className:e,children:t,...n}){return s.jsx(Xc,{className:"flex",children:s.jsxs(Zc,{className:A("flex flex-1 items-center justify-between py-3 sm:py-4 text-left","text-sm sm:text-base font-medium text-gray-900 transition-colors","hover:text-main-900","focus:outline-none focus-visible:ring-2 focus-visible:ring-main-500 focus-visible:ring-offset-2 rounded-1","[&[data-state=open]>svg]:rotate-180","cursor-pointer",e),...n,children:[t,s.jsx(wn,{className:A("h-4 w-4 sm:h-5 sm:w-5 shrink-0 text-gray-500 transition-transform duration-200")})]})})}function jd({className:e,children:t,...n}){return s.jsx(Jc,{className:A("overflow-hidden text-gray-700","data-[state=closed]:animate-accordion-up","data-[state=open]:animate-accordion-down"),...n,children:s.jsx("div",{className:A("pb-3 sm:pb-4 pt-0 text-sm sm:text-base",e),children:t})})}var Yd=Symbol.for("react.lazy"),xn=h[" use ".trim().toString()];function Gd(e){return typeof e=="object"&&e!==null&&"then"in e}function Ma(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Yd&&"_payload"in e&&Gd(e._payload)}function Ud(e){const t=Qd(e),n=h.forwardRef((r,o)=>{let{children:a,...i}=r;Ma(a)&&typeof xn=="function"&&(a=xn(a._payload));const l=h.Children.toArray(a),c=l.find(Xd);if(c){const d=c.props.children,u=l.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...i,ref:o,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return s.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Kd=Ud("Slot");function Qd(e){const t=h.forwardRef((n,r)=>{let{children:o,...a}=n;if(Ma(o)&&typeof xn=="function"&&(o=xn(o._payload)),h.isValidElement(o)){const i=Jd(o),l=Zd(a,o.props);return o.type!==h.Fragment&&(l.ref=r?lr(r,i):i),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qd=Symbol("radix.slottable");function Xd(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qd}function Zd(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{const c=a(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Jd(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 Ta=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Da=fa,dt=(e,t)=>n=>{var r;if(t?.variants==null)return Da(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(d=>{const u=n?.[d],f=a?.[d];if(u===null)return null;const p=Ta(u)||Ta(f);return o[d][p]}),l=n&&Object.entries(n).reduce((d,u)=>{let[f,p]=u;return p===void 0||(d[f]=p),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:f,className:p,...v}=u;return Object.entries(v).every(b=>{let[g,m]=b;return Array.isArray(m)?m.includes({...a,...l}[g]):{...a,...l}[g]===m})?[...d,f,p]:d},[]);return Da(e,i,c,n?.class,n?.className)},Cn=dt("leading-none",{variants:{size:{display1:"text-5xl",display2:"text-4xl",heading1:"text-3xl",heading2:"text-2xl",body1:"text-xl",body2:"text-lg",caption1:"text-base",caption2:"text-sm",caption3:"text-xs",pageTitle:"text-3xl"},weight:{bold:"font-bold",medium:"font-medium",regular:"font-normal",light:"font-light"}},defaultVariants:{size:"body2",weight:"medium"}});function I({className:e,size:t,weight:n,as:r="span",...o}){return s.jsx(r,{className:A(Cn({size:t,weight:n,className:e})),...o})}const Rd=dt("inline-flex cursor-pointer items-center justify-center gap-2 rounded-3 border border-transparent transition-colors duration-200 disabled:cursor-not-allowed",{variants:{variant:{default:"bg-main-800 text-white hover:bg-main-600 disabled:bg-main-400 disabled:text-white",outlined:"bg-white text-gray-800 border-gray-300 hover:bg-gray-100 disabled:bg-gray-200 disabled:text-gray-400",secondary:"bg-white text-gray-800 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400",ghost:"bg-transparent text-gray-800 hover:bg-gray-100 disabled:text-gray-400"},size:{small:"h-9 px-3.5",medium:"h-11 px-3.5",large:"h-13 px-5",icon:"h-9 w-9 p-0"}},defaultVariants:{variant:"default",size:"large"}});function de({className:e,variant:t="default",size:n="large",asChild:r=!1,disabled:o=!1,...a}){const i=r?Kd:"button",l=t??"default",c=n??"large",d={small:{size:"caption2",weight:"bold"},medium:{size:"caption1",weight:"bold"},large:{size:"body2",weight:"bold"},icon:{size:"caption1",weight:"bold"}},u=c!=="icon"&&(typeof a.children=="string"||typeof a.children=="number");return s.jsx(i,{"data-slot":"button",className:A(Rd({variant:l,size:c,className:e})),disabled:o,...a,children:u?s.jsx(I,{size:d[c].size,weight:d[c].weight,children:a.children}):a.children})}function xt({imageUrl:e,size:t="md",className:n}){const r={sm:"w-10 h-10",md:"w-12 h-12",lg:"w-16 h-16",xl:"w-20 h-20"},o="/DefaultProfile.png",[a,i]=P.useState(!0);P.useEffect(()=>{i(!0)},[e]);const l=typeof e=="string"&&/^(\/|https?:\/\/)/.test(e);return s.jsx("div",{className:A("relative overflow-hidden rounded-full",r[t],n),children:s.jsx(lt,{src:!e||!l||!a?o:e,alt:"avatar",fill:!0,className:"object-cover",onError:()=>i(!1)})})}const eu=e=>s.jsxs("svg",{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("rect",{width:"60",height:"60",fill:"url(#pattern0_3714_3925)"}),s.jsxs("defs",{children:[s.jsx("pattern",{id:"pattern0_3714_3925",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:s.jsx("use",{xlinkHref:"#image0_3714_3925",transform:"translate(-0.1 -0.1) scale(0.0125)"})}),s.jsx("image",{id:"image0_3714_3925",width:"96",height:"96",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAGy0lEQVR4Ae2dT2gcVRzHk6wR1nQJkYZqsnR3kbIoLRbsJafQg4b0kJMHPVmCh4pQb/Wo1+ZWQexBigVBzz00tB6KJy8RFAsSetjd/G1I0IQkLhg28fszb0uyO/Peb9682dmd+T0YZue9N7/f+32+M2/+v+3rkyQEhIAQEAJCQAgIASEgBIRA2gj0d3PA4+Pj+cHBwXeOjo4u9vf3X8C8iPa+hulVTGcwvYyJ0r+Y9jD9hek56lZR9xnmTw8ODn5dXV1dQX5Xpq4SoFwu5+r1+jRITQPeVcwLjqjVIMgT2JrPZrPzi4uLu47shjbTDQJkCoXCFCKZxXQNUzZ0VHoDdRQ/xHSvVqs9wryhrx5taWwCjI6OnhkaGvoYW+ZnCLEYbZi+1qvY0+7s7+9/u7m5SV1Yx1PHBRgbG3sF/fqniPQWprMdj9jb4Ray53C8+Hptbe0f7yrR5HZUgGKx+AG2+NsI5Xw04YS2uoQ94vNqtfpjaEtMAx0RAH18CYHdBfz3mO2KtRra+hhtvYFjRCXqhmSidoCt/jp8PMD0VtS+HNp/A7ZmR0ZG1re3t39zaLfNVGR7QD6fzw4MDHyDremjNq89lIE94f7h4eEnKysrdPbkPEUiALqc19FS2uqvOG9xPAYX4HYGXdK6a/fOBSiVSmVsMXR+7eoiynXMtvZq2KOnKpXKoq0Br/UGvDJt89DtXAL8n7F+0uATkgLFRjHa8vFaz9keoLZ8gn/Oy1GC8jawJ0y62hOcCKD6/F8AOYlbvte2U0PmhItjQuguiM520Bg64KYFPglCsT5QsdOydQotAJ1qwntSznaCgLyiYg+yTlvdUBdi6iLrizarKcnANc5lXKzVwlysWR8D6PYCOP+OKZcS3n5h0rOFt21vW1h3QXRvR+D/r0lOsfATSJtvJYC6q9kTN9a00TsqpJuMxMTGXOAuSN3P/xPOYrmljF1d22Z0jUc2IByss4TnCW8GfZ4QeA9QD1Nige8AUpQmzis2gXwEEoAeI8I6PcmS5E3glmLkXeqRG0gAeoYLG93yGNEjnNizzipG7IYEESCDgw09QJekIaAYsa+v2ALg4EavjhQ1vqXomEBRsWLxYAsAa7Msi1KJCLBZsQSgN9ZglF6aksQjcE0xM9ZmCaBeF4z6jTVjY3uoQlYxMzaZJQCsTBstSYVWAixmLAFwr+Nqq3VZ1hPgMjMKQK+Iw1WaHrboyfJLC4qddg2jAPR+vtaCFPoS4LAzCoALi4u+HqRAS4DDzigA+rILWi9S6EuAw84oAFQs+nqQAi0BDruXtBaOC+mbLGfJdD8/rKOw9h0/TzCyM+4BAEIfxEmyI2BkxxGAngFIsiNgZMcRoPkpqF0T0r2WkR1HgHQjjDh6jgD0EbQkOwJGdhwB9ux8y1ogYGTHEYA+/5dkR8DIjnMd8By+y3b+29cKe55tOs8Pa7+9xaFyiJ02GfcAXE5XtRak0JcAh51RAFxOP/P1IAVaAhx2RgGg4lOtFyn0JcBhZxSAxtvx9SAFWgIcdkYB1GBHNa0nKfQiUOMMFGUUgCyjL3vi5UHy/AlwmbEEgJt5f1dS4kOAxYwlAA3zBSd1H0eS3U6grpi1l7TksARQY6zRMF+SeAQecselYwmgfN7j+ZZaIMBmxRYAtwBoAI6q4DUSqCpWxopUgS0A6jZwYXGHZTXFlRQj9kiMQQToo9EFwXYrxXxNoW8pRqZ6L8oDCaCGdpx7sbb8aCUwF3T4y0ACkDca2hGzpVbPstxHn6kSm0BJ+82tnyX1ofYPfuVpzEff/6HNcJdWAhBgiPAIl9vytTxYAP5jwKdv6AKnwF1Q0wPg38DvrhkEu9muGOa7ioWVa2sBcK5bgfI3rbwmaCViQCxsQ2J/z+rlgMbJGR4eLqERl73Kk56HLf8+4H8ZJk7rPaDplAY1xe+F5nKK5gsq9lAhhxZAjSg7g1ak6aENxTrjYjTd0AKQ/NgN12lQU/zcoOWEJxq2copidhGn9Wmol3Ma1DSTyfyEsnNe5QnI22g0Gu9iy//DVSxO9oBmY6hh2DomsZzE7oiGLp50CZ+4ORWADKoRZSfwM0kHZoplwtVoucSpmUKdhjaNtM53dnb2crnc9zg9zff6KSqdauJs5/3l5eW/W+N0sez0GODVINyyuI4gvkJZrw1vuYuN5yZuMXznFZervMgFoIbihdkSgpG/MPFQrSMCNP2qu6i3sdytg/4l8098mgLQXP7G6iQN3Ek9vdi5Jfkjt2PWsQlwQmr5K8MTMGL9ScN8yZ95xirBaedp+Dvb0xHLkhAQAkJACAgBISAEhIAQEAJpIPAfJpcfclVEKqsAAAAASUVORK5CYII="})]})]}),Oa=e=>s.jsx(ce.Bell,{...e}),tu=e=>s.jsx(ce.BookOpen,{...e}),Ia=e=>s.jsx(ce.CalendarDays,{...e}),nu=e=>s.jsx(ce.Dumbbell,{...e}),ru=e=>s.jsx(ce.Flag,{...e}),La=e=>s.jsx(ce.Flame,{...e}),ou=e=>s.jsx(ce.Code2,{...e}),Ct=({strokeWidth:e=14,...t})=>s.jsx("svg",{width:"65",height:"50",viewBox:"0 0 65 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:s.jsx("path",{d:"M57.5 7.5L23.125 41.875L7.5 26.25",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"})}),au=e=>s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M0 0.6C0 0.268629 0.268629 0 0.6 0H6C7.10457 0 8 0.895431 8 2V7.4C8 7.73137 7.73137 8 7.4 8C7.06863 8 6.8 7.73137 6.8 7.4V2.2C6.8 1.64772 6.35228 1.2 5.8 1.2H0.6C0.268629 1.2 0 0.931371 0 0.6Z",fill:"currentColor"})}),Nn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M16 20L8 12L16 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Sn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M8 4L16 12L8 20",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Fa=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M4 16L12 8L20 16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),kn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M18 6L6 18M18 18L6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),su=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M18.178 8c5.096 0 5.096 8 0 8-5.095 0-7.133-8-12.739-8-4.585 0-4.585 8 0 8 5.606 0 7.644-8 12.74-8Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),iu=e=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.01759 11.1645C4.0676 6.79251 8.02225 4.5 11.9841 4.5C16.6371 4.5 20.6453 7.53129 23.0101 11.1836L23.0112 11.1853C23.1677 11.4285 23.2509 11.7115 23.2509 12.0007C23.2509 12.2893 23.168 12.5719 23.012 12.8147C20.6493 16.5141 16.6671 19.5 11.9841 19.5C7.2513 19.5 3.3458 16.5203 0.988892 12.8317C0.828743 12.583 0.745679 12.2925 0.750173 11.9968C0.754679 11.7002 0.846976 11.4117 1.0154 11.1676L1.01759 11.1645ZM2.25001 12.0196L2.25208 12.0228C4.42901 15.4304 7.91813 18 11.9841 18C16.0045 18 19.5689 15.4195 21.7484 12.0065L21.7498 12.0043C21.7505 12.0032 21.7509 12.002 21.7509 12.0007C21.7509 12.0002 21.7508 11.9996 21.7507 11.9991C21.7505 11.9985 21.7503 11.9979 21.7499 11.9973C19.5621 8.61915 15.9686 6 11.9841 6C8.63995 6 5.10025 7.93555 2.25001 12.0196Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9ZM7.5 12C7.5 9.51472 9.51472 7.5 12 7.5C14.4853 7.5 16.5 9.51472 16.5 12C16.5 14.4853 14.4853 16.5 12 16.5C9.51472 16.5 7.5 14.4853 7.5 12Z",fill:"currentColor"})]}),lu=e=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M20.2501 21.0001C20.1516 21.0003 20.054 20.9809 19.963 20.9432C19.872 20.9054 19.7894 20.8501 19.7199 20.7803L3.21994 4.28025C3.08522 4.13845 3.01123 3.94964 3.01373 3.75407C3.01624 3.5585 3.09504 3.37164 3.23334 3.23334C3.37164 3.09504 3.5585 3.01624 3.75407 3.01373C3.94964 3.01123 4.13845 3.08522 4.28025 3.21994L20.7803 19.7199C20.8851 19.8248 20.9564 19.9584 20.9854 20.1039C21.0143 20.2493 20.9994 20.4001 20.9427 20.5371C20.8859 20.6741 20.7899 20.7912 20.6666 20.8736C20.5433 20.956 20.3984 21 20.2501 21.0001Z",fill:"currentColor"}),s.jsx("path",{d:"M11.984 18.0002C10.0392 18.0002 8.16371 17.4245 6.40965 16.2892C4.81261 15.258 3.37496 13.7809 2.25183 12.0236V12.0198C3.18652 10.6806 4.21027 9.54812 5.30996 8.635C5.31991 8.62668 5.32802 8.61639 5.33379 8.60478C5.33956 8.59317 5.34285 8.58048 5.34347 8.56753C5.34409 8.55458 5.34201 8.54164 5.33737 8.52953C5.33273 8.51742 5.32563 8.50641 5.31652 8.49719L4.38277 7.56484C4.36618 7.54811 4.34389 7.53824 4.32035 7.5372C4.29682 7.53616 4.27375 7.54402 4.25574 7.55922C3.08761 8.54359 2.0034 9.75109 1.01761 11.1648C0.848014 11.4083 0.754608 11.6966 0.749266 11.9932C0.743924 12.2899 0.826888 12.5814 0.987615 12.8308C2.22558 14.7681 3.81886 16.3998 5.59449 17.5487C7.59371 18.8439 9.74527 19.5002 11.984 19.5002C13.1924 19.4964 14.3923 19.2973 15.5371 18.9105C15.5522 18.9053 15.5658 18.8965 15.5765 18.8846C15.5872 18.8728 15.5947 18.8585 15.5983 18.8429C15.602 18.8274 15.6015 18.8112 15.5972 18.7959C15.5928 18.7805 15.5845 18.7666 15.5732 18.7553L14.5617 17.7437C14.5384 17.721 14.5096 17.7048 14.4781 17.6965C14.4466 17.6883 14.4136 17.6884 14.3821 17.6969C13.5987 17.8986 12.793 18.0005 11.984 18.0002Z",fill:"currentColor"}),s.jsx("path",{d:"M23.0081 11.1844C21.7678 9.26625 20.1586 7.63688 18.3548 6.47203C16.3594 5.18203 14.1562 4.5 11.9841 4.5C10.7884 4.50212 9.60172 4.70543 8.47358 5.10141C8.45855 5.10664 8.4451 5.11561 8.4345 5.12747C8.42389 5.13934 8.41648 5.15371 8.41296 5.16923C8.40945 5.18475 8.40994 5.20091 8.41439 5.21619C8.41885 5.23147 8.42712 5.24536 8.43843 5.25656L9.44858 6.26672C9.4721 6.28984 9.5013 6.30634 9.53323 6.31457C9.56516 6.3228 9.5987 6.32246 9.63046 6.31359C10.3978 6.10602 11.1891 6.00058 11.9841 6C13.8914 6 15.7612 6.58266 17.5411 7.73438C19.1681 8.78438 20.6226 10.26 21.7486 12C21.7494 12.0011 21.7499 12.0024 21.7499 12.0037C21.7499 12.0051 21.7494 12.0064 21.7486 12.0075C20.9313 13.2942 19.9171 14.4446 18.743 15.4167C18.7329 15.425 18.7247 15.4353 18.7188 15.4469C18.713 15.4586 18.7096 15.4713 18.7089 15.4843C18.7083 15.4973 18.7103 15.5103 18.715 15.5225C18.7196 15.5347 18.7268 15.5457 18.7359 15.555L19.6687 16.4873C19.6852 16.504 19.7074 16.5139 19.7308 16.515C19.7543 16.5161 19.7773 16.5084 19.7953 16.4934C21.0487 15.4381 22.1337 14.1975 23.0128 12.8147C23.1682 12.571 23.2503 12.2878 23.2495 11.9988C23.2487 11.7098 23.1649 11.4272 23.0081 11.1844Z",fill:"currentColor"}),s.jsx("path",{d:"M12.0002 7.5C11.6632 7.49982 11.3271 7.53756 10.9985 7.6125C10.9819 7.61595 10.9666 7.62383 10.9541 7.63531C10.9416 7.64679 10.9325 7.66144 10.9277 7.6777C10.9229 7.69395 10.9226 7.71121 10.9268 7.72763C10.931 7.74405 10.9396 7.75901 10.9516 7.77094L16.2293 13.0472C16.2412 13.0592 16.2562 13.0678 16.2726 13.0721C16.289 13.0763 16.3063 13.076 16.3225 13.0712C16.3388 13.0663 16.3534 13.0572 16.3649 13.0447C16.3764 13.0323 16.3843 13.0169 16.3877 13.0003C16.538 12.3413 16.5379 11.6568 16.3873 10.9979C16.2368 10.3389 15.9397 9.72228 15.5182 9.19385C15.0967 8.66542 14.5615 8.23874 13.9525 7.9455C13.3435 7.65226 12.6762 7.49999 12.0002 7.5Z",fill:"currentColor"}),s.jsx("path",{d:"M7.77091 10.9526C7.75899 10.9406 7.74402 10.932 7.7276 10.9278C7.71118 10.9235 7.69392 10.9238 7.67767 10.9287C7.66141 10.9335 7.64676 10.9426 7.63528 10.9551C7.6238 10.9675 7.61592 10.9829 7.61247 10.9995C7.44248 11.7422 7.46382 12.5158 7.67451 13.248C7.88519 13.9801 8.27832 14.6468 8.81704 15.1855C9.35577 15.7243 10.0224 16.1174 10.7546 16.3281C11.4868 16.5388 12.2604 16.5601 13.0031 16.3901C13.0197 16.3867 13.035 16.3788 13.0475 16.3673C13.06 16.3558 13.0691 16.3412 13.0739 16.3249C13.0787 16.3087 13.0791 16.2914 13.0748 16.275C13.0706 16.2586 13.062 16.2436 13.05 16.2317L7.77091 10.9526Z",fill:"currentColor"})]}),Wa=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M6 12H18M6 6H18M6 18H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),xr=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),Cr=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",fill:"currentColor"})}),cu=e=>s.jsx(ce.Laptop,{...e}),Nr=e=>s.jsx(ce.LogIn,{...e}),Vt=e=>s.jsxs("svg",{width:"48",height:"80",viewBox:"0 0 48 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M0 78.622V15.4757C0 14.1285 1.72603 13.5819 2.49497 14.6855L46.4899 77.8318C47.1262 78.7453 46.4759 79.9999 45.3664 79.9999H1.37144C0.614016 79.9999 0 79.3833 0 78.622Z",fill:"currentColor"}),s.jsx("path",{d:"M48 78.622V15.4757C48 14.1285 46.274 13.5819 45.505 14.6855L1.51006 77.8318C0.873795 78.7453 1.52406 79.9999 2.63359 79.9999H46.6285C47.386 79.9999 48 79.3833 48 78.622Z",fill:"currentColor"}),s.jsx("path",{d:"M23.3378 0.511435L21.3598 7.96401C21.2965 8.20239 21.1111 8.38861 20.8739 8.4522L13.4563 10.4396C12.7776 10.6214 12.7776 11.5891 13.4563 11.7709L20.8739 13.7583C21.1111 13.8218 21.2965 14.0081 21.3598 14.2464L23.3378 21.699C23.5188 22.3809 24.4819 22.3809 24.6629 21.699L26.6409 14.2464C26.7042 14.0081 26.8896 13.8218 27.1268 13.7583L34.5444 11.7709C35.2231 11.5891 35.2231 10.6214 34.5444 10.4396L27.1268 8.4522C26.8896 8.38861 26.7042 8.20239 26.6409 7.96401L24.6629 0.511435C24.4819 -0.170478 23.5188 -0.170478 23.3378 0.511435Z",fill:"currentColor"})]}),du=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M19 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),uu=e=>s.jsx(ce.Palette,{...e}),Sr=e=>s.jsx(ce.Users,{...e}),An=e=>s.jsx(ce.PencilLine,{...e}),Nt=e=>s.jsx(ce.UserRound,{...e}),fu=e=>s.jsxs("svg",{width:"36",height:"60",viewBox:"0 0 36 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("rect",{width:"36",height:"60",fill:"url(#pattern0_3714_3923)"}),s.jsxs("defs",{children:[s.jsx("pattern",{id:"pattern0_3714_3923",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:s.jsx("use",{xlinkHref:"#image0_3714_3923",transform:"matrix(0.0208333 0 0 0.0125 -0.5 -0.15)"})}),s.jsx("image",{id:"image0_3714_3923",width:"96",height:"96",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAACZUlEQVR4Ae2bUU7CUBBFqa6AFcBS2Jm4M5cCO2AH1X6QkEFqrrm9Q/WYGJ12mNt3Dk3aj7fZ8AMBCEAAAhCAAAQgAAEIQAACEIAABCDwXwgM6YXudrsxnanknc/nKJMX5eLo9RNAgJ+pNBEBEi5/MwL8TKWJCJBw+ZsR4GcqTUSAhMvfHH3m/e7yu98L0s/9lQF3QCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhOtWAfv9/hhe711c9zW83l1R6MC08HEc30JxczGH7XY7XC6Xj7mmpc61CHgi+FeubRLiAp4QfquEqIAnht8mISZgBfBbJEQErAh+XMLiAlYIPyph8T1i3XvArjR/+3fpPWStL2K/hfKXPoeAZpsIQEAzgeZ47gAENBNojucOaBaw+HuAe30/vVcs/dzuXg93gJuoOA8BIjB3OwLcRMV5CBCBudsR4CYqzkOACMzdjgA3UXEeAkRg7nYEuImK8xAgAnO3I8BNVJyHABGYux0BbqLiPASIwNztCHATFechQATmbkeAm6g4DwEiMHc7AtxExXkIEIG52xHgJirOQ4AIzN2OADdRcd7qBAzD8P5ojXPnHn2m+/jiO2TcC5z28077er/mHm5nT/BPp9Px9tga/l+dgAlqlbBW+Gv4gsxe47T/bPqdbeIkBCAAAQhA4EkJfAJCj18c5aGGIQAAAABJRU5ErkJggg=="})]})]}),hu=e=>s.jsx(ce.Plane,{...e}),pu=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M12 5V19M19 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),gu=e=>s.jsx(ce.Salad,{...e}),za=e=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"2"}),s.jsx("path",{d:"M20 20L16.5 16.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),kr=e=>s.jsx(ce.Settings,{...e}),mu={AddCircle:eu,Bell:Oa,BookOpen:tu,Calendar:Ia,Check:Ct,Code2:ou,Chevron:au,ChevronDown:wn,ChevronLeft:Nn,ChevronRight:Sn,ChevronUp:Fa,Close:kn,Dumbbell:nu,Endless:su,Eye:iu,EyeOff:lu,Flag:ru,Flame:La,HamburgerMenu:Wa,Heart:xr,HeartFilled:Cr,Laptop:cu,LogIn:Nr,Logo:Vt,Minus:du,Palette:uu,People:Sr,PencilLine:An,Person:Nt,Pin:fu,Plane:hu,Plus:pu,Salad:gu,Search:za,Settings:kr,Target:e=>s.jsx(ce.Target,{...e}),Trophy:e=>s.jsx(ce.Trophy,{...e})};function Ba({name:e,size:t,width:n,height:r,...o}){const a=mu[e],i=n??t,l=r??t;return s.jsx(a,{width:i,height:l,...o})}function vu({baseSize:e,radius:t,strokeWidth:n,circumference:r,dashOffset:o,className:a}){return s.jsx("svg",{viewBox:`0 0 ${e} ${e}`,className:A("rounded-full",a),children:s.jsx("circle",{cx:e/2,cy:e/2,r:t,fill:"none",className:"stroke-main-800",strokeWidth:n,strokeDasharray:r,strokeDashoffset:o,transform:`rotate(-100 ${e/2} ${e/2})`,style:{transition:"stroke-dashoffset 800ms cubic-bezier(0.2, 0.7, 0.1, 1)"},strokeLinecap:"round"})})}const bu=[{key:"home",label:"홈"},{key:"explore",label:"탐색"},{key:"challenge",label:"챌린지"},{key:"diary",label:"일지"}];function yu({brandName:e="1D1S",logo:t,navItems:n=bu,activeKey:r="challenge",showProfile:o=!0,profileImage:a,showBackButton:i=!1,onBackClick:l,className:c,onLogoClick:d,onNavChange:u,onNotificationClick:f,onProfileClick:p}){const[v,b]=P.useState(!1),g=t??s.jsx(Vt,{className:"h-5 w-3.5 text-white","aria-hidden":!0}),m=s.jsx(s.Fragment,{children:n.map(w=>{const y=w.key===r;return s.jsx("li",{children:s.jsx("button",{type:"button",disabled:w.disabled,"aria-current":y?"page":void 0,onClick:()=>{u?.(w.key),b(!1)},className:A("cursor-pointer transition-colors",w.disabled&&"cursor-not-allowed opacity-50",!w.disabled&&"hover:text-main-700"),children:s.jsx(I,{size:"body2",weight:y?"bold":"medium",className:A(y?"text-main-800":"text-gray-600"),children:w.label})})},w.key)})});return s.jsxs("div",{className:"relative",children:[s.jsx("header",{className:A("w-full rounded-4 border border-gray-200 bg-white px-6 py-4",c),children:s.jsxs("div",{className:"flex items-center justify-between gap-5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-8",children:[i&&s.jsx(de,{type:"button",variant:"ghost",size:"icon",onClick:l,"aria-label":"뒤로가기",className:"shrink-0 cursor-pointer text-gray-700 hover:text-gray-900 lg:hidden",children:s.jsx(Nn,{className:"h-4 w-4"})}),s.jsxs("button",{type:"button",onClick:d,className:A("inline-flex shrink-0 cursor-pointer items-center gap-2",i&&"hidden lg:inline-flex"),"aria-label":"홈으로 이동",children:[s.jsx("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-3 bg-main-800",children:g}),s.jsx(I,{size:"heading2",weight:"bold",className:"text-gray-900",children:e})]}),s.jsx("nav",{className:"hidden min-w-0 overflow-x-auto lg:block","aria-label":"주요 메뉴",children:s.jsx("ul",{className:"flex items-center gap-6 whitespace-nowrap",children:m})})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[s.jsx(de,{type:"button",variant:"ghost",size:"icon",onClick:f,"aria-label":"알림",className:"cursor-pointer text-gray-700 hover:text-gray-900",children:s.jsx(Oa,{className:"h-4 w-4"})}),s.jsx(de,{type:"button",variant:"ghost",size:"icon","aria-label":"메뉴",onClick:()=>b(w=>!w),className:"cursor-pointer text-gray-700 hover:text-gray-900 lg:hidden",children:s.jsx(Wa,{className:"h-4 w-4"})}),o?s.jsx("button",{type:"button",onClick:p,"aria-label":"프로필 열기",className:"cursor-pointer rounded-full",children:s.jsx(xt,{imageUrl:a,size:"sm",className:"ring-2 ring-mint-900/30"})}):null]})]})}),s.jsx("div",{className:A("fixed inset-0 z-40 transition-opacity duration-200 lg:hidden",v?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onClick:()=>b(!1),"aria-hidden":!0}),s.jsx("nav",{className:A("absolute left-0 right-0 top-full z-50 mt-1 rounded-4 border border-gray-200 bg-white px-6 py-4 shadow-lg transition-opacity duration-200 lg:hidden",v?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),"aria-label":"모바일 메뉴",children:s.jsx("ul",{className:"flex flex-col gap-1",children:m})})]})}const wu="banner",xu="#FF6D2D",Cu="#FF9A3E";function Nu({items:e,autoSlideIntervalMs:t=5e3,initialIndex:n=0,enableLoop:r=!0,showIndicators:o=!0,aspectRatioClassName:a="aspect-[4/1]",minHeightPx:i=180,componentId:l,enableDataLayerTracking:c=!1,impressionMode:d="once",onBannerClick:u,onBannerImpression:f,onBannerChange:p,onItemClick:v,className:b,...g}){const m=e.length,w=i>0?`${i}px`:void 0,y=P.useMemo(()=>m===0||n<0?0:n>m-1?m-1:n,[n,m]),x=r&&m>1,N=P.useMemo(()=>{if(m===0)return[];if(!x)return e;const[O]=e,[T]=e.slice(-1);return[T,...e,O]},[x,m,e]),[S,M]=P.useState(x?y+1:y),[E,k]=P.useState(!0);P.useEffect(()=>{M(x?y+1:y)},[x,y,m]),P.useEffect(()=>{if(m<=1||t<=0)return;let O;const T=()=>{O=window.setInterval(()=>{M($=>$+1)},t)},_=()=>window.clearInterval(O),C=()=>{document.hidden?_():(k(!1),M($=>{const X=(($-(x?1:0)+m)%m+m)%m;return x?X+1:X}),T())};return T(),document.addEventListener("visibilitychange",C),()=>{_(),document.removeEventListener("visibilitychange",C)}},[t,x,m]),P.useEffect(()=>{if(E)return;const O=window.setTimeout(()=>{k(!0)},30);return()=>window.clearTimeout(O)},[E]);const z=m===0?0:((S-(x?1:0)+m)%m+m)%m,j=P.useRef(new Set),B=P.useCallback((O,T,_)=>{const C=T.id===void 0?`${_}`:String(T.id),$={event:O,componentId:l,bannerId:C,bannerIndex:_,bannerType:T.type,bannerTitle:T.title,bannerSubtitle:T.subtitle,timestamp:Date.now()};if(O==="click"&&u?.($),O==="impression"&&f?.($),O==="change"&&p?.($),c&&typeof window<"u"){const X=window;Array.isArray(X.dataLayer)&&X.dataLayer.push({event:`${wu}_${O}`,component_id:l??"banner-carousel",banner_id:$.bannerId,banner_index:$.bannerIndex,banner_type:$.bannerType,banner_title:$.bannerTitle,banner_subtitle:$.bannerSubtitle,timestamp:$.timestamp})}},[l,c,p,u,f]);P.useEffect(()=>{if(m===0)return;const O=e[z];if(!O)return;B("change",O,z);const T=`${O.id===void 0?`${z}`:String(O.id)}-${z}`,_=j.current.has(T);d==="once"&&_||(j.current.add(T),B("impression",O,z))},[z,B,d,m,e]);const Y=()=>{k(!0),M(O=>O-1)},K=()=>{k(!0),M(O=>O+1)},U=()=>{if(x){if(S===m+1){k(!1),M(1);return}S===0&&(k(!1),M(m))}};return m===0?null:s.jsx("div",{className:A("w-full",b),...g,children:s.jsxs("div",{className:"relative overflow-hidden rounded-4",children:[s.jsx("div",{className:A("flex",E&&"transition-transform duration-500 ease-out"),style:{transform:`translateX(-${S*100}%)`},onTransitionEnd:U,children:N.map((O,T)=>{const _=O.backgroundImageUrl??O.backgroundImage,C=!!(_&&_.trim().length>0),$=m===0?0:(T-(x?1:0)+m)%m,X=O.id===void 0?`${$}-${T}`:String(O.id);return s.jsxs("button",{type:"button",onClick:()=>{B("click",O,$),v?.(O,$)},"data-banner-id":O.id===void 0?`${$}`:String(O.id),"data-banner-index":$,"data-banner-type":O.type,"data-banner-title":O.title,"data-banner-image-url":_??"",className:A("relative w-full shrink-0 overflow-hidden p-4 pb-10 text-left text-white transition hover:brightness-105 sm:p-8 sm:pb-8","cursor-pointer",a),style:{backgroundImage:`linear-gradient(to right, ${xu}, ${Cu})`,minHeight:w},children:[C?s.jsxs(s.Fragment,{children:[s.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${_})`}}),s.jsx("div",{className:"absolute inset-0 bg-black/28"})]}):null,s.jsx("div",{className:"pointer-events-none absolute -top-10 -right-8 h-36 w-36 rounded-full bg-white/15 blur-2xl"}),s.jsxs("div",{className:"relative flex h-full flex-col justify-between",children:[s.jsx(I,{size:"caption3",weight:"medium",className:"text-white/85",children:O.type}),s.jsxs("div",{className:"flex items-end justify-between gap-4",children:[s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(I,{size:"heading2",weight:"bold",className:"line-clamp-1 text-white sm:text-3xl",children:O.title}),s.jsx(I,{size:"caption1",weight:"medium",className:"line-clamp-1 text-white/90 sm:text-lg",children:O.subtitle})]}),s.jsx(I,{size:"heading2",weight:"bold",className:"text-white sm:text-3xl",children:"→"})]})]})]},`${X}-${T}`)})}),m>1?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:Y,className:"absolute top-1/2 left-2 z-10 -translate-y-1/2 cursor-pointer rounded-full bg-black/25 p-1.5 text-white transition hover:bg-black/40","aria-label":"이전 배너",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})})}),s.jsx("button",{type:"button",onClick:K,className:"absolute top-1/2 right-2 z-10 -translate-y-1/2 cursor-pointer rounded-full bg-black/25 p-1.5 text-white transition hover:bg-black/40","aria-label":"다음 배너",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})})]}):null,o?s.jsx("div",{className:"pointer-events-none absolute right-4 bottom-3 left-4 flex justify-center",children:s.jsx("div",{className:"pointer-events-auto flex items-center gap-2 rounded-full bg-black/25 px-2 py-1",children:e.map((O,T)=>s.jsx("button",{type:"button",onClick:()=>{k(!0),M(x?T+1:T)},className:A("h-2 cursor-pointer rounded-full transition-all",z===T?"w-5 bg-white":"w-2 bg-white/50 hover:bg-white/80"),"aria-label":`${T+1}번째 배너로 이동`},O.id===void 0?`${T}`:String(O.id)))})}):null]})})}const Ar=6048e5,Su=864e5,$a=Symbol.for("constructDateFrom");function ue(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&$a in e?e[$a](t):e instanceof Date?new e.constructor(t):new Date(t)}function ee(e,t){return ue(t||e,e)}function pe(e,t,n){const r=ee(e,n?.in);return isNaN(t)?ue(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function _e(e,t,n){const r=ee(e,n?.in);if(isNaN(t))return ue(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),a=ue(n?.in||e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let ku={};function jt(){return ku}function ze(e,t){const n=jt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ee(e,t?.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function ut(e,t){return ze(e,{...t,weekStartsOn:1})}function Ha(e,t){const n=ee(e,t?.in),r=n.getFullYear(),o=ue(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=ut(o),i=ue(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const l=ut(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Pn(e){const t=ee(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 St(e,...t){const n=ue.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function kt(e,t){const n=ee(e,t?.in);return n.setHours(0,0,0,0),n}function Be(e,t,n){const[r,o]=St(n?.in,e,t),a=kt(r),i=kt(o),l=+a-Pn(a),c=+i-Pn(i);return Math.round((l-c)/Su)}function Au(e,t){const n=Ha(e,t),r=ue(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ut(r)}function Pr(e,t,n){return pe(e,t*7,n)}function Pu(e,t,n){return _e(e,t*12,n)}function Eu(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ue.bind(null,o));const a=ee(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),ue(r,n||NaN)}function _u(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ue.bind(null,o));const a=ee(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),ue(r,n||NaN)}function ye(e,t,n){const[r,o]=St(n?.in,e,t);return+kt(r)==+kt(o)}function Er(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Mu(e){return!(!Er(e)&&typeof e!="number"||isNaN(+ee(e)))}function Yt(e,t,n){const[r,o]=St(n?.in,e,t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function Tu(e,t,n){const[r,o]=St(n?.in,e,t),a=ze(r,n),i=ze(o,n),l=+a-Pn(a),c=+i-Pn(i);return Math.round((l-c)/Ar)}function _r(e,t){const n=ee(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function we(e,t){const n=ee(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Va(e,t){const n=ee(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Mr(e,t){const n=jt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ee(e,t?.in),a=o.getDay(),i=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function ja(e,t){return Mr(e,{...t,weekStartsOn:1})}const Du={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"}},Ou=(e,t,n)=>{let r;const o=Du[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function At(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Iu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wu={date:At({formats:Iu,defaultWidth:"full"}),time:At({formats:Lu,defaultWidth:"full"}),dateTime:At({formats:Fu,defaultWidth:"full"})},zu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Bu=(e,t,n,r)=>zu[e];function $e(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{const i=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const $u={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Hu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vu={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"]},ju={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"]},Yu={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"}},Gu={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"}},Uu={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:$e({values:$u,defaultWidth:"wide"}),quarter:$e({values:Hu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$e({values:Vu,defaultWidth:"wide"}),day:$e({values:ju,defaultWidth:"wide"}),dayPeriod:$e({values:Yu,defaultWidth:"wide",formattingValues:Gu,defaultFormattingWidth:"wide"})};function He(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Qu(l,f=>f.test(i)):Ku(l,f=>f.test(i));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(i.length);return{value:d,rest:u}}}function Ku(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Qu(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ya(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const l=t.slice(o.length);return{value:i,rest:l}}}const qu=/^(\d+)(th|st|nd|rd)?/i,Xu=/\d+/i,Zu={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},Ju={any:[/^b/i,/^(a|c)/i]},Ru={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ef={any:[/1/i,/2/i,/3/i,/4/i]},tf={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},nf={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]},rf={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},of={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]},af={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},sf={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}},lf={ordinalNumber:Ya({matchPattern:qu,parsePattern:Xu,valueCallback:e=>parseInt(e,10)}),era:He({matchPatterns:Zu,defaultMatchWidth:"wide",parsePatterns:Ju,defaultParseWidth:"any"}),quarter:He({matchPatterns:Ru,defaultMatchWidth:"wide",parsePatterns:ef,defaultParseWidth:"any",valueCallback:e=>e+1}),month:He({matchPatterns:tf,defaultMatchWidth:"wide",parsePatterns:nf,defaultParseWidth:"any"}),day:He({matchPatterns:rf,defaultMatchWidth:"wide",parsePatterns:of,defaultParseWidth:"any"}),dayPeriod:He({matchPatterns:af,defaultMatchWidth:"any",parsePatterns:sf,defaultParseWidth:"any"})},Ga={code:"en-US",formatDistance:Ou,formatLong:Wu,formatRelative:Bu,localize:Uu,match:lf,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cf(e,t){const n=ee(e,t?.in);return Be(n,Va(n))+1}function Ua(e,t){const n=ee(e,t?.in),r=+ut(n)-+Au(n);return Math.round(r/Ar)+1}function Ka(e,t){const n=ee(e,t?.in),r=n.getFullYear(),o=jt(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=ue(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=ze(i,t),c=ue(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const d=ze(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function df(e,t){const n=jt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Ka(e,t),a=ue(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),ze(a,t)}function Qa(e,t){const n=ee(e,t?.in),r=+ze(n,t)-+df(n,t);return Math.round(r/Ar)+1}function te(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Je={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return te(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):te(n+1,2)},d(e,t){return te(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 te(e.getHours()%12||12,t.length)},H(e,t){return te(e.getHours(),t.length)},m(e,t){return te(e.getMinutes(),t.length)},s(e,t){return te(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return te(o,t.length)}},Pt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qa={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(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Je.y(e,t)},Y:function(e,t,n,r){const o=Ka(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return te(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):te(a,t.length)},R:function(e,t){const n=Ha(e);return te(n,t.length)},u:function(e,t){const n=e.getFullYear();return te(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 te(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 te(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 Je.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 te(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 o=Qa(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):te(o,t.length)},I:function(e,t,n){const r=Ua(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):te(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Je.d(e,t)},D:function(e,t,n){const r=cf(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):te(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 o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return te(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return te(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return te(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Pt.noon:r===0?o=Pt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Pt.evening:r>=12?o=Pt.afternoon:r>=4?o=Pt.morning:o=Pt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Je.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Je.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):te(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):te(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Je.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Je.s(e,t)},S:function(e,t){return Je.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Za(r);case"XXXX":case"XX":return ft(r);default:return ft(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Za(r);case"xxxx":case"xx":return ft(r);default:return ft(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Xa(r,":");default:return"GMT"+ft(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Xa(r,":");default:return"GMT"+ft(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return te(r,t.length)},T:function(e,t,n){return te(+e,t.length)}};function Xa(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+te(a,2)}function Za(e,t){return e%60===0?(e>0?"-":"+")+te(Math.abs(e)/60,2):ft(e,t)}function ft(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=te(Math.trunc(r/60),2),a=te(r%60,2);return n+o+t+a}const Ja=(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"})}},Ra=(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"})}},uf={p:Ra,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Ja(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ja(r,t)).replace("{{time}}",Ra(o,t))}},ff=/^D+$/,hf=/^Y+$/,pf=["D","DD","YY","YYYY"];function gf(e){return ff.test(e)}function mf(e){return hf.test(e)}function vf(e,t,n){const r=bf(e,t,n);if(console.warn(r),pf.includes(e))throw new RangeError(r)}function bf(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 yf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xf=/^'([^]*?)'?$/,Cf=/''/g,Nf=/[a-zA-Z]/;function Me(e,t,n){const r=jt(),o=n?.locale??r.locale??Ga,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=ee(e,n?.in);if(!Mu(l))throw new RangeError("Invalid time value");let c=t.match(wf).map(u=>{const f=u[0];if(f==="p"||f==="P"){const p=uf[f];return p(u,o.formatLong)}return u}).join("").match(yf).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:Sf(u)};if(qa[f])return{isToken:!0,value:u};if(f.match(Nf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&mf(f)||!n?.useAdditionalDayOfYearTokens&&gf(f))&&vf(f,t,String(e));const p=qa[f[0]];return p(l,f,o.localize,d)}).join("")}function Sf(e){const t=e.match(xf);return t?t[1].replace(Cf,"'"):e}function kf(e,t){const n=ee(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=ue(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Af(e){return Math.trunc(+ee(e)/1e3)}function Pf(e,t){const n=ee(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),ee(n,t?.in)}function Ef(e,t){const n=ee(e,t?.in);return Tu(Pf(n,t),we(n,t),t)+1}function Tr(e,t){return+ee(e)>+ee(t)}function es(e,t){return+ee(e)<+ee(t)}function Dr(e,t,n){const[r,o]=St(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function _f(e,t,n){const[r,o]=St(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function Or(e,t,n){return pe(e,-t,n)}function Ir(e,t,n){const r=ee(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=ue(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const l=kf(i);return r.setMonth(t,Math.min(a,l)),r}function ts(e,t,n){const r=ee(e,n?.in);return isNaN(+r)?ue(e,NaN):(r.setFullYear(t),r)}const Mf={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Tf=(e,t,n)=>{let r;const o=Mf[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" 후":r+" 전":r},Df={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},Of={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},If={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Lf={date:At({formats:Df,defaultWidth:"full"}),time:At({formats:Of,defaultWidth:"full"}),dateTime:At({formats:If,defaultWidth:"full"})},Ff={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Wf=(e,t,n,r)=>Ff[e],zf={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},Bf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},$f={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},Hf={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},Vf={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},jf={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Yf={ordinalNumber:(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},era:$e({values:zf,defaultWidth:"wide"}),quarter:$e({values:Bf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$e({values:$f,defaultWidth:"wide"}),day:$e({values:Hf,defaultWidth:"wide"}),dayPeriod:$e({values:Vf,defaultWidth:"wide",formattingValues:jf,defaultFormattingWidth:"wide"})},Gf=/^(\d+)(일|번째)?/i,Uf=/\d+/i,Kf={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},Qf={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},qf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},Xf={any:[/1/i,/2/i,/3/i,/4/i]},Zf={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},Jf={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Rf={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},eh={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},th={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},nh={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},rh={ordinalNumber:Ya({matchPattern:Gf,parsePattern:Uf,valueCallback:e=>parseInt(e,10)}),era:He({matchPatterns:Kf,defaultMatchWidth:"wide",parsePatterns:Qf,defaultParseWidth:"any"}),quarter:He({matchPatterns:qf,defaultMatchWidth:"wide",parsePatterns:Xf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:He({matchPatterns:Zf,defaultMatchWidth:"wide",parsePatterns:Jf,defaultParseWidth:"any"}),day:He({matchPatterns:Rf,defaultMatchWidth:"wide",parsePatterns:eh,defaultParseWidth:"any"}),dayPeriod:He({matchPatterns:th,defaultMatchWidth:"any",parsePatterns:nh,defaultParseWidth:"any"})},oh={code:"ko",formatDistance:Tf,formatLong:Lf,formatRelative:Wf,localize:Yf,match:rh,options:{weekStartsOn:0,firstWeekContainsDate:1}};var H=function(){return H=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},H.apply(this,arguments)};function ah(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ns(e,t,n){for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Gt(e){return e.mode==="multiple"}function Ut(e){return e.mode==="range"}function En(e){return e.mode==="single"}var sh={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function ih(e,t){return Me(e,"LLLL y",t)}function lh(e,t){return Me(e,"d",t)}function ch(e,t){return Me(e,"LLLL",t)}function dh(e){return"".concat(e)}function uh(e,t){return Me(e,"cccccc",t)}function fh(e,t){return Me(e,"yyyy",t)}var hh=Object.freeze({__proto__:null,formatCaption:ih,formatDay:lh,formatMonthCaption:ch,formatWeekNumber:dh,formatWeekdayName:uh,formatYearCaption:fh}),ph=function(e,t,n){return Me(e,"do MMMM (EEEE)",n)},gh=function(){return"Month: "},mh=function(){return"Go to next month"},vh=function(){return"Go to previous month"},bh=function(e,t){return Me(e,"cccc",t)},yh=function(e){return"Week n. ".concat(e)},wh=function(){return"Year: "},xh=Object.freeze({__proto__:null,labelDay:ph,labelMonthDropdown:gh,labelNext:mh,labelPrevious:vh,labelWeekNumber:yh,labelWeekday:bh,labelYearDropdown:wh});function Ch(){var e="buttons",t=sh,n=Ga,r={},o={},a=1,i={},l=new Date;return{captionLayout:e,classNames:t,formatters:hh,labels:xh,locale:n,modifiersClassNames:r,modifiers:o,numberOfMonths:a,styles:i,today:l,mode:"default"}}function Nh(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,i=e.toDate;return r?a=we(r):t&&(a=new Date(t,0,1)),o?i=_r(o):n&&(i=new Date(n,11,31)),{fromDate:a?kt(a):void 0,toDate:i?kt(i):void 0}}var rs=P.createContext(void 0);function Sh(e){var t,n=e.initialProps,r=Ch(),o=Nh(n),a=o.fromDate,i=o.toDate,l=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;l!=="buttons"&&(!a||!i)&&(l="buttons");var c;(En(n)||Gt(n)||Ut(n))&&(c=n.onSelect);var d=H(H(H({},r),n),{captionLayout:l,classNames:H(H({},r.classNames),n.classNames),components:H({},n.components),formatters:H(H({},r.formatters),n.formatters),fromDate:a,labels:H(H({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:H(H({},r.modifiers),n.modifiers),modifiersClassNames:H(H({},r.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:H(H({},r.styles),n.styles),toDate:i});return s.jsx(rs.Provider,{value:d,children:e.children})}function oe(){var e=P.useContext(rs);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function os(e){var t=oe(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return s.jsx("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function kh(e){return s.jsx("svg",H({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:s.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function as(e){var t,n,r=e.onChange,o=e.value,a=e.children,i=e.caption,l=e.className,c=e.style,d=oe(),u=(n=(t=d.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:kh;return s.jsxs("div",{className:l,style:c,children:[s.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),s.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:o,onChange:r,children:a}),s.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[i,s.jsx(u,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function Ah(e){var t,n=oe(),r=n.fromDate,o=n.toDate,a=n.styles,i=n.locale,l=n.formatters.formatMonthCaption,c=n.classNames,d=n.components,u=n.labels.labelMonthDropdown;if(!r)return s.jsx(s.Fragment,{});if(!o)return s.jsx(s.Fragment,{});var f=[];if(_f(r,o))for(var p=we(r),v=r.getMonth();v<=o.getMonth();v++)f.push(Ir(p,v));else for(var p=we(new Date),v=0;v<=11;v++)f.push(Ir(p,v));var b=function(m){var w=Number(m.target.value),y=Ir(we(e.displayMonth),w);e.onChange(y)},g=(t=d?.Dropdown)!==null&&t!==void 0?t:as;return s.jsx(g,{name:"months","aria-label":u(),className:c.dropdown_month,style:a.dropdown_month,onChange:b,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:i}),children:f.map(function(m){return s.jsx("option",{value:m.getMonth(),children:l(m,{locale:i})},m.getMonth())})})}function Ph(e){var t,n=e.displayMonth,r=oe(),o=r.fromDate,a=r.toDate,i=r.locale,l=r.styles,c=r.classNames,d=r.components,u=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,p=[];if(!o)return s.jsx(s.Fragment,{});if(!a)return s.jsx(s.Fragment,{});for(var v=o.getFullYear(),b=a.getFullYear(),g=v;g<=b;g++)p.push(ts(Va(new Date),g));var m=function(y){var x=ts(we(n),Number(y.target.value));e.onChange(x)},w=(t=d?.Dropdown)!==null&&t!==void 0?t:as;return s.jsx(w,{name:"years","aria-label":f(),className:c.dropdown_year,style:l.dropdown_year,onChange:m,value:n.getFullYear(),caption:u(n,{locale:i}),children:p.map(function(y){return s.jsx("option",{value:y.getFullYear(),children:u(y,{locale:i})},y.getFullYear())})})}function Eh(e,t){var n=P.useState(e),r=n[0],o=n[1],a=t===void 0?r:t;return[a,o]}function _h(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,i=e.fromDate,l=e.numberOfMonths,c=l===void 0?1:l;if(a&&Yt(a,o)<0){var d=-1*(c-1);o=_e(a,d)}return i&&Yt(o,i)<0&&(o=i),we(o)}function Mh(){var e=oe(),t=_h(e),n=Eh(t,e.month),r=n[0],o=n[1],a=function(i){var l;if(!e.disableNavigation){var c=we(i);o(c),(l=e.onMonthChange)===null||l===void 0||l.call(e,c)}};return[r,a]}function Th(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=we(e),a=we(_e(o,r)),i=Yt(a,o),l=[],c=0;c<i;c++){var d=_e(o,c);l.push(d)}return n&&(l=l.reverse()),l}function Dh(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,i=r?a:1,l=we(e);if(!n)return _e(l,i);var c=Yt(n,e);if(!(c<a))return _e(l,i)}}function Oh(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,i=r?a:1,l=we(e);if(!n)return _e(l,-i);var c=Yt(l,n);if(!(c<=0))return _e(l,-i)}}var ss=P.createContext(void 0);function Ih(e){var t=oe(),n=Mh(),r=n[0],o=n[1],a=Th(r,t),i=Dh(r,t),l=Oh(r,t),c=function(f){return a.some(function(p){return Dr(f,p)})},d=function(f,p){c(f)||(p&&es(f,p)?o(_e(f,1+t.numberOfMonths*-1)):o(f))},u={currentMonth:r,displayMonths:a,goToMonth:o,goToDate:d,previousMonth:l,nextMonth:i,isDateDisplayed:c};return s.jsx(ss.Provider,{value:u,children:e.children})}function Kt(){var e=P.useContext(ss);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function is(e){var t,n=oe(),r=n.classNames,o=n.styles,a=n.components,i=Kt().goToMonth,l=function(u){i(_e(u,e.displayIndex?-e.displayIndex:0))},c=(t=a?.CaptionLabel)!==null&&t!==void 0?t:os,d=s.jsx(c,{id:e.id,displayMonth:e.displayMonth});return s.jsxs("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[s.jsx("div",{className:r.vhidden,children:d}),s.jsx(Ah,{onChange:l,displayMonth:e.displayMonth}),s.jsx(Ph,{onChange:l,displayMonth:e.displayMonth})]})}function Lh(e){return s.jsx("svg",H({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:s.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Fh(e){return s.jsx("svg",H({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:s.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var _n=P.forwardRef(function(e,t){var n=oe(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var i=a.join(" "),l=H(H({},o.button_reset),o.button);return e.style&&Object.assign(l,e.style),s.jsx("button",H({},e,{ref:t,type:"button",className:i,style:l}))});function Wh(e){var t,n,r=oe(),o=r.dir,a=r.locale,i=r.classNames,l=r.styles,c=r.labels,d=c.labelPrevious,u=c.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return s.jsx(s.Fragment,{});var p=d(e.previousMonth,{locale:a}),v=[i.nav_button,i.nav_button_previous].join(" "),b=u(e.nextMonth,{locale:a}),g=[i.nav_button,i.nav_button_next].join(" "),m=(t=f?.IconRight)!==null&&t!==void 0?t:Fh,w=(n=f?.IconLeft)!==null&&n!==void 0?n:Lh;return s.jsxs("div",{className:i.nav,style:l.nav,children:[!e.hidePrevious&&s.jsx(_n,{name:"previous-month","aria-label":p,className:v,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?s.jsx(m,{className:i.nav_icon,style:l.nav_icon}):s.jsx(w,{className:i.nav_icon,style:l.nav_icon})}),!e.hideNext&&s.jsx(_n,{name:"next-month","aria-label":b,className:g,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?s.jsx(w,{className:i.nav_icon,style:l.nav_icon}):s.jsx(m,{className:i.nav_icon,style:l.nav_icon})})]})}function ls(e){var t=oe().numberOfMonths,n=Kt(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,i=n.displayMonths,l=i.findIndex(function(b){return Dr(e.displayMonth,b)}),c=l===0,d=l===i.length-1,u=t>1&&(c||!d),f=t>1&&(d||!c),p=function(){r&&a(r)},v=function(){o&&a(o)};return s.jsx(Wh,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:f,nextMonth:o,previousMonth:r,onPreviousClick:p,onNextClick:v})}function zh(e){var t,n=oe(),r=n.classNames,o=n.disableNavigation,a=n.styles,i=n.captionLayout,l=n.components,c=(t=l?.CaptionLabel)!==null&&t!==void 0?t:os,d;return o?d=s.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?d=s.jsx(is,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?d=s.jsxs(s.Fragment,{children:[s.jsx(is,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),s.jsx(ls,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):d=s.jsxs(s.Fragment,{children:[s.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),s.jsx(ls,{displayMonth:e.displayMonth,id:e.id})]}),s.jsx("div",{className:r.caption,style:a.caption,children:d})}function Bh(e){var t=oe(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?s.jsx("tfoot",{className:o,style:r.tfoot,children:s.jsx("tr",{children:s.jsx("td",{colSpan:8,children:n})})}):s.jsx(s.Fragment,{})}function $h(e,t,n){for(var r=n?ut(new Date):ze(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=pe(r,a);o.push(i)}return o}function Hh(){var e=oe(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,i=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,d=$h(o,a,i);return s.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&s.jsx("td",{style:n.head_cell,className:t.head_cell}),d.map(function(u,f){return s.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":c(u,{locale:o}),children:l(u,{locale:o})},f)})]})}function Vh(){var e,t=oe(),n=t.classNames,r=t.styles,o=t.components,a=(e=o?.HeadRow)!==null&&e!==void 0?e:Hh;return s.jsx("thead",{style:r.head,className:n.head,children:s.jsx(a,{})})}function jh(e){var t=oe(),n=t.locale,r=t.formatters.formatDay;return s.jsx(s.Fragment,{children:r(e.date,{locale:n})})}var Lr=P.createContext(void 0);function Yh(e){if(!Gt(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return s.jsx(Lr.Provider,{value:t,children:e.children})}return s.jsx(Gh,{initialProps:e.initialProps,children:e.children})}function Gh(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,i=function(d,u,f){var p,v;(p=t.onDayClick)===null||p===void 0||p.call(t,d,u,f);var b=!!(u.selected&&o&&r?.length===o);if(!b){var g=!!(!u.selected&&a&&r?.length===a);if(!g){var m=r?ns([],r):[];if(u.selected){var w=m.findIndex(function(y){return ye(d,y)});m.splice(w,1)}else m.push(d);(v=t.onSelect)===null||v===void 0||v.call(t,m,d,u,f)}}},l={disabled:[]};r&&l.disabled.push(function(d){var u=a&&r.length>a-1,f=r.some(function(p){return ye(p,d)});return!!(u&&!f)});var c={selected:r,onDayClick:i,modifiers:l};return s.jsx(Lr.Provider,{value:c,children:n})}function Fr(){var e=P.useContext(Lr);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Uh(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?ye(o,e)&&ye(r,e)?void 0:ye(o,e)?{from:o,to:void 0}:ye(r,e)?void 0:Tr(r,e)?{from:e,to:o}:{from:r,to:e}:o?Tr(e,o)?{from:o,to:e}:{from:e,to:o}:r?es(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var Wr=P.createContext(void 0);function Kh(e){if(!Ut(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return s.jsx(Wr.Provider,{value:t,children:e.children})}return s.jsx(Qh,{initialProps:e.initialProps,children:e.children})}function Qh(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,i=o.to,l=t.min,c=t.max,d=function(v,b,g){var m,w;(m=t.onDayClick)===null||m===void 0||m.call(t,v,b,g);var y=Uh(v,r);(w=t.onSelect)===null||w===void 0||w.call(t,y,v,b,g)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],i?(u.range_end=[i],ye(a,i)||(u.range_middle=[{after:a,before:i}])):u.range_end=[a]):i&&(u.range_start=[i],u.range_end=[i]),l&&(a&&!i&&u.disabled.push({after:Or(a,l-1),before:pe(a,l-1)}),a&&i&&u.disabled.push({after:a,before:pe(a,l-1)}),!a&&i&&u.disabled.push({after:Or(i,l-1),before:pe(i,l-1)})),c){if(a&&!i&&(u.disabled.push({before:pe(a,-c+1)}),u.disabled.push({after:pe(a,c-1)})),a&&i){var f=Be(i,a)+1,p=c-f;u.disabled.push({before:Or(a,p)}),u.disabled.push({after:pe(i,p)})}!a&&i&&(u.disabled.push({before:pe(i,-c+1)}),u.disabled.push({after:pe(i,c-1)}))}return s.jsx(Wr.Provider,{value:{selected:r,onDayClick:d,modifiers:u},children:n})}function zr(){var e=P.useContext(Wr);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Mn(e){return Array.isArray(e)?ns([],e):e!==void 0?[e]:[]}function qh(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=Mn(o)}),t}var Te;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Te||(Te={}));var Xh=Te.Selected,Qe=Te.Disabled,Zh=Te.Hidden,Jh=Te.Today,Br=Te.RangeEnd,$r=Te.RangeMiddle,Hr=Te.RangeStart,Rh=Te.Outside;function ep(e,t,n){var r,o=(r={},r[Xh]=Mn(e.selected),r[Qe]=Mn(e.disabled),r[Zh]=Mn(e.hidden),r[Jh]=[e.today],r[Br]=[],r[$r]=[],r[Hr]=[],r[Rh]=[],r);return e.fromDate&&o[Qe].push({before:e.fromDate}),e.toDate&&o[Qe].push({after:e.toDate}),Gt(e)?o[Qe]=o[Qe].concat(t.modifiers[Qe]):Ut(e)&&(o[Qe]=o[Qe].concat(n.modifiers[Qe]),o[Hr]=n.modifiers[Hr],o[$r]=n.modifiers[$r],o[Br]=n.modifiers[Br]),o}var cs=P.createContext(void 0);function tp(e){var t=oe(),n=Fr(),r=zr(),o=ep(t,n,r),a=qh(t.modifiers),i=H(H({},o),a);return s.jsx(cs.Provider,{value:i,children:e.children})}function ds(){var e=P.useContext(cs);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function np(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function rp(e){return!!(e&&typeof e=="object"&&"from"in e)}function op(e){return!!(e&&typeof e=="object"&&"after"in e)}function ap(e){return!!(e&&typeof e=="object"&&"before"in e)}function sp(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function ip(e,t){var n,r=t.from,o=t.to;if(r&&o){var a=Be(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var i=Be(e,r)>=0&&Be(o,e)>=0;return i}return o?ye(o,e):r?ye(r,e):!1}function lp(e){return Er(e)}function cp(e){return Array.isArray(e)&&e.every(Er)}function dp(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(lp(n))return ye(e,n);if(cp(n))return n.includes(e);if(rp(n))return ip(e,n);if(sp(n))return n.dayOfWeek.includes(e.getDay());if(np(n)){var r=Be(n.before,e),o=Be(n.after,e),a=r>0,i=o<0,l=Tr(n.before,n.after);return l?i&&a:a||i}return op(n)?Be(e,n.after)>0:ap(n)?Be(n.before,e)>0:typeof n=="function"?n(e):!1})}function Vr(e,t,n){var r=Object.keys(t).reduce(function(a,i){var l=t[i];return dp(e,l)&&a.push(i),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),n&&!Dr(e,n)&&(o.outside=!0),o}function up(e,t){for(var n=we(e[0]),r=_r(e[e.length-1]),o,a,i=n;i<=r;){var l=Vr(i,t),c=!l.disabled&&!l.hidden;if(!c){i=pe(i,1);continue}if(l.selected)return i;l.today&&!a&&(a=i),o||(o=i),i=pe(i,1)}return a||o}var fp=365;function us(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,i=t.retry,l=i===void 0?{count:0,lastFocused:e}:i,c=o.weekStartsOn,d=o.fromDate,u=o.toDate,f=o.locale,p={day:pe,week:Pr,month:_e,year:Pu,startOfWeek:function(m){return o.ISOWeek?ut(m):ze(m,{locale:f,weekStartsOn:c})},endOfWeek:function(m){return o.ISOWeek?ja(m):Mr(m,{locale:f,weekStartsOn:c})}},v=p[n](e,r==="after"?1:-1);r==="before"&&d?v=Eu([d,v]):r==="after"&&u&&(v=_u([u,v]));var b=!0;if(a){var g=Vr(v,a);b=!g.disabled&&!g.hidden}return b?v:l.count>fp?l.lastFocused:us(v,{moveBy:n,direction:r,context:o,modifiers:a,retry:H(H({},l),{count:l.count+1})})}var fs=P.createContext(void 0);function hp(e){var t=Kt(),n=ds(),r=P.useState(),o=r[0],a=r[1],i=P.useState(),l=i[0],c=i[1],d=up(t.displayMonths,n),u=o??(l&&t.isDateDisplayed(l))?l:d,f=function(){c(o),a(void 0)},p=function(m){a(m)},v=oe(),b=function(m,w){if(o){var y=us(o,{moveBy:m,direction:w,context:v,modifiers:n});ye(o,y)||(t.goToDate(y,o),p(y))}},g={focusedDay:o,focusTarget:u,blur:f,focus:p,focusDayAfter:function(){return b("day","after")},focusDayBefore:function(){return b("day","before")},focusWeekAfter:function(){return b("week","after")},focusWeekBefore:function(){return b("week","before")},focusMonthBefore:function(){return b("month","before")},focusMonthAfter:function(){return b("month","after")},focusYearBefore:function(){return b("year","before")},focusYearAfter:function(){return b("year","after")},focusStartOfWeek:function(){return b("startOfWeek","before")},focusEndOfWeek:function(){return b("endOfWeek","after")}};return s.jsx(fs.Provider,{value:g,children:e.children})}function jr(){var e=P.useContext(fs);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function pp(e,t){var n=ds(),r=Vr(e,n,t);return r}var Yr=P.createContext(void 0);function gp(e){if(!En(e.initialProps)){var t={selected:void 0};return s.jsx(Yr.Provider,{value:t,children:e.children})}return s.jsx(mp,{initialProps:e.initialProps,children:e.children})}function mp(e){var t=e.initialProps,n=e.children,r=function(a,i,l){var c,d,u;if((c=t.onDayClick)===null||c===void 0||c.call(t,a,i,l),i.selected&&!t.required){(d=t.onSelect)===null||d===void 0||d.call(t,void 0,a,i,l);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,i,l)},o={selected:t.selected,onDayClick:r};return s.jsx(Yr.Provider,{value:o,children:n})}function hs(){var e=P.useContext(Yr);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function vp(e,t){var n=oe(),r=hs(),o=Fr(),a=zr(),i=jr(),l=i.focusDayAfter,c=i.focusDayBefore,d=i.focusWeekAfter,u=i.focusWeekBefore,f=i.blur,p=i.focus,v=i.focusMonthBefore,b=i.focusMonthAfter,g=i.focusYearBefore,m=i.focusYearAfter,w=i.focusStartOfWeek,y=i.focusEndOfWeek,x=function(_){var C,$,X,he;En(n)?(C=r.onDayClick)===null||C===void 0||C.call(r,e,t,_):Gt(n)?($=o.onDayClick)===null||$===void 0||$.call(o,e,t,_):Ut(n)?(X=a.onDayClick)===null||X===void 0||X.call(a,e,t,_):(he=n.onDayClick)===null||he===void 0||he.call(n,e,t,_)},N=function(_){var C;p(e),(C=n.onDayFocus)===null||C===void 0||C.call(n,e,t,_)},S=function(_){var C;f(),(C=n.onDayBlur)===null||C===void 0||C.call(n,e,t,_)},M=function(_){var C;(C=n.onDayMouseEnter)===null||C===void 0||C.call(n,e,t,_)},E=function(_){var C;(C=n.onDayMouseLeave)===null||C===void 0||C.call(n,e,t,_)},k=function(_){var C;(C=n.onDayPointerEnter)===null||C===void 0||C.call(n,e,t,_)},z=function(_){var C;(C=n.onDayPointerLeave)===null||C===void 0||C.call(n,e,t,_)},j=function(_){var C;(C=n.onDayTouchCancel)===null||C===void 0||C.call(n,e,t,_)},B=function(_){var C;(C=n.onDayTouchEnd)===null||C===void 0||C.call(n,e,t,_)},Y=function(_){var C;(C=n.onDayTouchMove)===null||C===void 0||C.call(n,e,t,_)},K=function(_){var C;(C=n.onDayTouchStart)===null||C===void 0||C.call(n,e,t,_)},U=function(_){var C;(C=n.onDayKeyUp)===null||C===void 0||C.call(n,e,t,_)},O=function(_){var C;switch(_.key){case"ArrowLeft":_.preventDefault(),_.stopPropagation(),n.dir==="rtl"?l():c();break;case"ArrowRight":_.preventDefault(),_.stopPropagation(),n.dir==="rtl"?c():l();break;case"ArrowDown":_.preventDefault(),_.stopPropagation(),d();break;case"ArrowUp":_.preventDefault(),_.stopPropagation(),u();break;case"PageUp":_.preventDefault(),_.stopPropagation(),_.shiftKey?g():v();break;case"PageDown":_.preventDefault(),_.stopPropagation(),_.shiftKey?m():b();break;case"Home":_.preventDefault(),_.stopPropagation(),w();break;case"End":_.preventDefault(),_.stopPropagation(),y();break}(C=n.onDayKeyDown)===null||C===void 0||C.call(n,e,t,_)},T={onClick:x,onFocus:N,onBlur:S,onKeyDown:O,onKeyUp:U,onMouseEnter:M,onMouseLeave:E,onPointerEnter:k,onPointerLeave:z,onTouchCancel:j,onTouchEnd:B,onTouchMove:Y,onTouchStart:K};return T}function bp(){var e=oe(),t=hs(),n=Fr(),r=zr(),o=En(e)?t.selected:Gt(e)?n.selected:Ut(e)?r.selected:void 0;return o}function yp(e){return Object.values(Te).includes(e)}function wp(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(yp(r)){var a=e.classNames["day_".concat(r)];a&&n.push(a)}}),n}function xp(e,t){var n=H({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=H(H({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function Cp(e,t,n){var r,o,a,i=oe(),l=jr(),c=pp(e,t),d=vp(e,c),u=bp(),f=!!(i.onDayClick||i.mode!=="default");P.useEffect(function(){var M;c.outside||l.focusedDay&&f&&ye(l.focusedDay,e)&&((M=n.current)===null||M===void 0||M.focus())},[l.focusedDay,e,n,f,c.outside]);var p=wp(i,c).join(" "),v=xp(i,c),b=!!(c.outside&&!i.showOutsideDays||c.hidden),g=(a=(o=i.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:jh,m=s.jsx(g,{date:e,displayMonth:t,activeModifiers:c}),w={style:v,className:p,children:m,role:"gridcell"},y=l.focusTarget&&ye(l.focusTarget,e)&&!c.outside,x=l.focusedDay&&ye(l.focusedDay,e),N=H(H(H({},w),(r={disabled:c.disabled,role:"gridcell"},r["aria-selected"]=c.selected,r.tabIndex=x||y?0:-1,r)),d),S={isButton:f,isHidden:b,activeModifiers:c,selectedDays:u,buttonProps:N,divProps:w};return S}function Np(e){var t=P.useRef(null),n=Cp(e.date,e.displayMonth,t);return n.isHidden?s.jsx("div",{role:"gridcell"}):n.isButton?s.jsx(_n,H({name:"day",ref:t},n.buttonProps)):s.jsx("div",H({},n.divProps))}function Sp(e){var t=e.number,n=e.dates,r=oe(),o=r.onWeekNumberClick,a=r.styles,i=r.classNames,l=r.locale,c=r.labels.labelWeekNumber,d=r.formatters.formatWeekNumber,u=d(Number(t),{locale:l});if(!o)return s.jsx("span",{className:i.weeknumber,style:a.weeknumber,children:u});var f=c(Number(t),{locale:l}),p=function(v){o(t,n,v)};return s.jsx(_n,{name:"week-number","aria-label":f,className:i.weeknumber,style:a.weeknumber,onClick:p,children:u})}function kp(e){var t,n,r=oe(),o=r.styles,a=r.classNames,i=r.showWeekNumber,l=r.components,c=(t=l?.Day)!==null&&t!==void 0?t:Np,d=(n=l?.WeekNumber)!==null&&n!==void 0?n:Sp,u;return i&&(u=s.jsx("td",{className:a.cell,style:o.cell,children:s.jsx(d,{number:e.weekNumber,dates:e.dates})})),s.jsxs("tr",{className:a.row,style:o.row,children:[u,e.dates.map(function(f){return s.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:s.jsx(c,{displayMonth:e.displayMonth,date:f})},Af(f))})]})}function ps(e,t,n){for(var r=n?.ISOWeek?ja(t):Mr(t,n),o=n?.ISOWeek?ut(e):ze(e,n),a=Be(r,o),i=[],l=0;l<=a;l++)i.push(pe(o,l));var c=i.reduce(function(d,u){var f=n?.ISOWeek?Ua(u):Qa(u,n),p=d.find(function(v){return v.weekNumber===f});return p?(p.dates.push(u),d):(d.push({weekNumber:f,dates:[u]}),d)},[]);return c}function Ap(e,t){var n=ps(we(e),_r(e),t);if(t?.useFixedWeeks){var r=Ef(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],i=Pr(a,6-r),l=ps(Pr(a,1),i,t);n.push.apply(n,l)}}return n}function Pp(e){var t,n,r,o=oe(),a=o.locale,i=o.classNames,l=o.styles,c=o.hideHead,d=o.fixedWeeks,u=o.components,f=o.weekStartsOn,p=o.firstWeekContainsDate,v=o.ISOWeek,b=Ap(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:v,locale:a,weekStartsOn:f,firstWeekContainsDate:p}),g=(t=u?.Head)!==null&&t!==void 0?t:Vh,m=(n=u?.Row)!==null&&n!==void 0?n:kp,w=(r=u?.Footer)!==null&&r!==void 0?r:Bh;return s.jsxs("table",{id:e.id,className:i.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&s.jsx(g,{}),s.jsx("tbody",{className:i.tbody,style:l.tbody,children:b.map(function(y){return s.jsx(m,{displayMonth:e.displayMonth,dates:y.dates,weekNumber:y.weekNumber},y.weekNumber)})}),s.jsx(w,{displayMonth:e.displayMonth})]})}function Ep(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var _p=Ep()?P.useLayoutEffect:P.useEffect,Gr=!1,Mp=0;function gs(){return"react-day-picker-".concat(++Mp)}function Tp(e){var t,n=e??(Gr?gs():null),r=P.useState(n),o=r[0],a=r[1];return _p(function(){o===null&&a(gs())},[]),P.useEffect(function(){Gr===!1&&(Gr=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function Dp(e){var t,n,r=oe(),o=r.dir,a=r.classNames,i=r.styles,l=r.components,c=Kt().displayMonths,d=Tp(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),u=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,f=[a.month],p=i.month,v=e.displayIndex===0,b=e.displayIndex===c.length-1,g=!v&&!b;o==="rtl"&&(t=[v,b],b=t[0],v=t[1]),v&&(f.push(a.caption_start),p=H(H({},p),i.caption_start)),b&&(f.push(a.caption_end),p=H(H({},p),i.caption_end)),g&&(f.push(a.caption_between),p=H(H({},p),i.caption_between));var m=(n=l?.Caption)!==null&&n!==void 0?n:zh;return s.jsxs("div",{className:f.join(" "),style:p,children:[s.jsx(m,{id:d,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),s.jsx(Pp,{id:u,"aria-labelledby":d,displayMonth:e.displayMonth})]},e.displayIndex)}function Op(e){var t=oe(),n=t.classNames,r=t.styles;return s.jsx("div",{className:n.months,style:r.months,children:e.children})}function Ip(e){var t,n,r=e.initialProps,o=oe(),a=jr(),i=Kt(),l=P.useState(!1),c=l[0],d=l[1];P.useEffect(function(){o.initialFocus&&a.focusTarget&&(c||(a.focus(a.focusTarget),d(!0)))},[o.initialFocus,c,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var f=H(H({},o.styles.root),o.style),p=Object.keys(r).filter(function(b){return b.startsWith("data-")}).reduce(function(b,g){var m;return H(H({},b),(m={},m[g]=r[g],m))},{}),v=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:Op;return s.jsx("div",H({className:u.join(" "),style:f,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},p,{children:s.jsx(v,{children:i.displayMonths.map(function(b,g){return s.jsx(Dp,{displayIndex:g,displayMonth:b},g)})})}))}function Lp(e){var t=e.children,n=ah(e,["children"]);return s.jsx(Sh,{initialProps:n,children:s.jsx(Ih,{children:s.jsx(gp,{initialProps:n,children:s.jsx(Yh,{initialProps:n,children:s.jsx(Kh,{initialProps:n,children:s.jsx(tp,{children:s.jsx(hp,{children:t})})})})})})})}function Fp(e){return s.jsx(Lp,H({},e,{children:s.jsx(Ip,{initialProps:e})}))}function Ur({className:e,classNames:t,showOutsideDays:n=!0,...r}){const o=r.mode==="range";return s.jsx(Fp,{locale:oh,showOutsideDays:n,className:A("w-fit p-1.5",e),classNames:{months:"flex flex-col gap-2",month:"flex flex-col gap-2",caption:"relative flex h-9 items-center justify-center",caption_label:"text-base font-bold text-gray-800",nav:"absolute inset-x-0 top-1/2 flex -translate-y-1/2 items-center justify-between px-1",nav_button:"inline-flex h-8 w-8 items-center justify-center rounded-2 border border-gray-300 bg-white p-0 text-gray-700 transition-colors hover:bg-gray-100 hover:text-gray-900 hover:cursor-pointer disabled:opacity-40",nav_button_previous:"",nav_button_next:"",table:"w-full border-collapse",head_row:"flex",head_cell:"h-8 w-9 text-center text-xs font-bold tracking-[0.02em] text-gray-500",row:"mt-1 flex w-full",cell:A("relative h-9 w-9 p-0 text-center text-sm","focus-within:relative focus-within:z-20",o?"[&:has(.day-range-middle)]:bg-main-200/70 [&:has(.day-range-start)]:bg-main-200/70 [&:has(.day-range-end)]:bg-main-200/70 [&:has(.day-range-start)]:rounded-l-2 [&:has(.day-range-end)]:rounded-r-2":"[&:has([aria-selected])]:rounded-2"),day:"inline-flex h-9 w-9 items-center justify-center rounded-2 border border-transparent p-0 text-sm font-medium text-gray-700 transition-colors aria-selected:opacity-100 hover:bg-gray-100 hover:text-gray-900 hover:cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-main-300/70",day_range_start:"day-range-start aria-selected:rounded-2 aria-selected:bg-main-800 aria-selected:text-white",day_range_end:"day-range-end aria-selected:rounded-2 aria-selected:bg-main-800 aria-selected:text-white",day_selected:"bg-main-800 text-white hover:bg-main-700 hover:text-white focus:bg-main-700 focus:text-white",day_today:"border-main-500 text-main-800",day_outside:"day-outside text-gray-400 aria-selected:text-gray-500",day_disabled:"cursor-not-allowed text-gray-300 opacity-40 hover:bg-transparent hover:text-gray-300",day_range_middle:"day-range-middle aria-selected:rounded-none aria-selected:bg-main-200 aria-selected:text-main-800",day_hidden:"invisible",...t},components:{IconLeft:({className:a,...i})=>s.jsx(Nn,{className:A("size-4",a),...i}),IconRight:({className:a,...i})=>s.jsx(Sn,{className:A("size-4",a),...i})},...r})}function Qt({className:e,logoSize:t="md"}){const n={sm:"w-4 h-6",md:"w-6 h-10",lg:"w-8 h-14"};return s.jsx("div",{className:A("flex items-center justify-center bg-main-200",e),children:s.jsx(Vt,{className:A("text-main-500",n[t])})})}const Wp=dt("inline-flex items-center rounded-2 px-2.5 py-1 bg-main-800 text-white",{variants:{hasIcon:{true:"gap-1.5",false:""}},defaultVariants:{hasIcon:!1}});function qt({icon:e,children:t,size:n="caption2",weight:r="bold",className:o}){return s.jsxs("span",{className:A(Wp({hasIcon:!!e}),o),children:[e&&s.jsx(I,{size:n,weight:"medium",children:e}),s.jsx(I,{size:n,weight:r,children:t})]})}function zp({challengeTitle:e,challengeType:t,challengeCategory:n,imageUrl:r,currentUserCount:o,maxUserCount:a,startDate:i,endDate:l,isInfiniteChallenge:c=!1,isEarlyEnded:d=!1,isOngoing:u=!1,isEnded:f=!1,className:p,onClick:v}){const b=!!(r&&r.trim().length>0),g=a<=1?"개인":`${o} / ${a}`,m=c?d:f,w=m?"종료됨":u?"진행중":"모집중",y=m?"bg-gray-500":u?"bg-green-500":"bg-blue-500",x=c?`${i} - 무한!`:`${i} - ${l}`;return s.jsxs("div",{className:A("min-w-60 w-full overflow-hidden rounded-[12px] border border-gray-200 bg-white",v&&"cursor-pointer","transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default",p),onClick:v,children:[s.jsxs("div",{className:"relative h-40 w-full overflow-hidden bg-gray-100 sm:h-52",children:[b?s.jsx("div",{className:"absolute inset-0",children:s.jsx(lt,{src:r,alt:e,width:1200,height:800,className:"h-full w-full object-cover"})}):s.jsx(Qt,{className:"absolute inset-0",logoSize:"lg"}),b?s.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-10 h-16 bg-linear-to-b from-black/20 to-transparent"}):null,s.jsxs("div",{className:"absolute top-3 left-3 z-20 flex items-center gap-1.5",children:[s.jsx(qt,{size:"caption2",weight:"bold",children:n??t}),s.jsx(qt,{size:"caption2",weight:"bold",className:y,children:w})]})]}),s.jsxs("div",{className:"w-full bg-white px-4 py-4 sm:px-5 sm:py-5",children:[s.jsx(I,{as:"p",size:"body1",weight:"bold",className:"line-clamp-2 leading-snug min-h-[2.5rem] text-gray-900 sm:min-h-[3rem] sm:text-2xl",children:e}),s.jsxs("div",{className:"mt-2 flex w-full items-center justify-between sm:mt-3",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Nt,{className:"h-3 w-3 text-gray-600 sm:h-3.5 sm:w-3.5"}),s.jsx(I,{size:"caption2",weight:"medium",className:"text-gray-600 sm:text-base",children:t})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Sr,{className:"h-3 w-3 text-gray-600 sm:h-3.5 sm:w-3.5"}),s.jsx(I,{size:"caption2",weight:"medium",className:"text-gray-600 sm:text-base",children:g})]})]}),s.jsx(I,{size:"caption2",weight:"regular",className:"mt-1.5 text-gray-500 sm:mt-2 sm:text-base",children:x})]})]})}function Bp({challengeTitle:e,challengeType:t,challengeCategory:n,imageUrl:r,currentUserCount:o,maxUserCount:a,startDate:i,endDate:l,isInfiniteChallenge:c=!1,isEarlyEnded:d=!1,isOngoing:u,isEnded:f=!1,className:p,onClick:v}){const b=!!(r&&r.trim().length>0),g=a<=1,m=c?d:f,w=m?"종료됨":u?"진행중":"모집중",y=m?"bg-gray-500":u?"bg-green-500":"bg-blue-500",x=c?`${i} - 무한!`:`${i} - ${l}`;return s.jsxs("div",{className:A("flex gap-3 rounded-4 border border-gray-200 bg-white p-3 transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default sm:gap-4 sm:p-4",v&&"cursor-pointer",p),onClick:v,children:[s.jsx("div",{className:"relative -mb-3 -ml-3 -mt-3 w-[120px] shrink-0 self-stretch overflow-hidden rounded-l-3 bg-gray-100 sm:-mb-4 sm:-ml-4 sm:-mt-4 sm:w-[140px]",children:b?s.jsx(lt,{src:r,alt:e,width:96,height:96,className:"h-full w-full object-cover"}):s.jsx(Qt,{className:"h-full w-full",logoSize:"sm"})}),s.jsxs("div",{className:"flex flex-1 flex-col min-w-0 gap-1.5 sm:gap-2",children:[s.jsx(I,{as:"p",size:"caption1",weight:"bold",className:"truncate text-gray-900 sm:text-lg",children:e}),s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[s.jsx(qt,{size:"caption3",weight:"medium",children:n??t}),s.jsx(qt,{size:"caption3",weight:"bold",className:y,children:w})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[g?s.jsx(Nt,{className:"h-3.5 w-3.5 text-gray-400"}):s.jsx(Sr,{className:"h-3.5 w-3.5 text-gray-400"}),s.jsx(I,{size:"caption3",weight:"medium",className:"text-gray-500",children:g?"개인 목표":`고정 목표 · ${o} / ${a}`})]}),s.jsx(I,{size:"caption3",weight:"regular",className:"hidden text-gray-400 sm:block",children:x})]})]})}function $p({label:e,icon:t,children:n,checked:r,defaultChecked:o=!1,onCheckedChange:a,showCheckIndicator:i=!0,width:l=320,height:c=220,className:d,disabled:u,onClick:f,style:p,"aria-label":v,...b}){const g=typeof r=="boolean",[m,w]=P.useState(o),y=g?r:m,x=n!==void 0,N=v??(typeof e=="string"||typeof e=="number"?String(e):void 0),S=M=>{if(u)return;const E=!y;g||w(E),a?.(E),f?.(M)};return s.jsxs("button",{type:"button",role:"checkbox","aria-checked":y,"aria-label":N,disabled:u,onClick:S,className:A("relative overflow-hidden rounded-[28px] border-2 transition-colors duration-200","flex flex-col items-center justify-center",!x&&"gap-4",y?"border-main-800 bg-main-200 text-main-800":"border-gray-300 bg-white text-gray-500",!u&&"hover:cursor-pointer"&&(y?"hover:bg-main-300":"hover:bg-gray-100"),u&&"cursor-not-allowed opacity-60",d),style:{width:l,height:c,...p},...b,children:[i?s.jsx("span",{className:A("absolute top-4 right-4 flex w-[clamp(18px,8%,32px)] aspect-square shrink-0 items-center justify-center rounded-full border-2 transition-colors",y?"border-main-800 bg-main-800 text-white":"border-gray-300 bg-white text-transparent"),children:s.jsx(Ct,{className:"h-[46%] w-[46%]",strokeWidth:4.4})}):null,x?n:s.jsxs("div",{className:"flex flex-col items-center justify-center gap-3",children:[t?s.jsx("span",{className:"text-inherit [&>svg]:h-14 [&>svg]:w-14",children:t}):null,typeof e=="string"||typeof e=="number"?s.jsx(I,{size:"heading1",weight:"bold",className:A("text-inherit",y?"text-main-800":"text-gray-600"),children:e}):e]})]})}function ms(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function vs(e){const[t,n]=h.useState(void 0);return fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Tn="Checkbox",[Hp]=Ae(Tn),[Vp,Kr]=Hp(Tn);function jp(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:l,onCheckedChange:c,required:d,value:u="on",internal_do_not_use_render:f}=e,[p,v]=Ce({prop:n,defaultProp:o??!1,onChange:c,caller:Tn}),[b,g]=h.useState(null),[m,w]=h.useState(null),y=h.useRef(!1),x=b?!!i||!!b.closest("form"):!0,N={checked:p,disabled:a,setChecked:v,control:b,setControl:g,name:l,form:i,value:u,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:Re(o)?!1:o,isFormControl:x,bubbleInput:m,setBubbleInput:w};return s.jsx(Vp,{scope:t,...N,children:Yp(f)?f(N):r})}var bs="CheckboxTrigger",ys=h.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:i,disabled:l,checked:c,required:d,setControl:u,setChecked:f,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:b}=Kr(bs,e),g=J(o,u),m=h.useRef(c);return h.useEffect(()=>{const w=a?.form;if(w){const y=()=>f(m.current);return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)}},[a,f]),s.jsx(G.button,{type:"button",role:"checkbox","aria-checked":Re(c)?"mixed":c,"aria-required":d,"data-state":Ss(c),"data-disabled":l?"":void 0,disabled:l,value:i,...r,ref:g,onKeyDown:V(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:V(n,w=>{f(y=>Re(y)?!0:!y),b&&v&&(p.current=w.isPropagationStopped(),p.current||w.stopPropagation())})})});ys.displayName=bs;var Qr=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:c,onCheckedChange:d,form:u,...f}=e;return s.jsx(jp,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:l,required:i,onCheckedChange:d,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:p})=>s.jsxs(s.Fragment,{children:[s.jsx(ys,{...f,ref:t,__scopeCheckbox:n}),p&&s.jsx(Ns,{__scopeCheckbox:n})]})})});Qr.displayName=Tn;var ws="CheckboxIndicator",xs=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Kr(ws,n);return s.jsx(We,{present:r||Re(a.checked)||a.checked===!0,children:s.jsx(G.span,{"data-state":Ss(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});xs.displayName=ws;var Cs="CheckboxBubbleInput",Ns=h.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:l,disabled:c,name:d,value:u,form:f,bubbleInput:p,setBubbleInput:v}=Kr(Cs,e),b=J(n,v),g=ms(a),m=vs(r);h.useEffect(()=>{const y=p;if(!y)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,M=!o.current;if(g!==a&&S){const E=new Event("click",{bubbles:M});y.indeterminate=Re(a),S.call(y,Re(a)?!1:a),y.dispatchEvent(E)}},[p,g,a,o]);const w=h.useRef(Re(a)?!1:a);return s.jsx(G.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??w.current,required:l,disabled:c,name:d,value:u,form:f,...t,tabIndex:-1,ref:b,style:{...t.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Ns.displayName=Cs;function Yp(e){return typeof e=="function"}function Re(e){return e==="indeterminate"}function Ss(e){return Re(e)?"indeterminate":e?"checked":"unchecked"}const qr=h.forwardRef(({className:e,label:t,id:n,readOnly:r,...o},a)=>{const i=h.useId(),l=n||i;return s.jsxs("div",{className:A("flex items-center gap-2.5",r&&"pointer-events-none"),children:[s.jsx(Qr,{ref:a,id:l,className:A("peer h-5 w-5 shrink-0 rounded-1.5 border border-gray-300 bg-white transition-all duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-main-900 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-main-900 data-[state=checked]:border-main-900 data-[state=checked]:text-white","cursor-pointer",e),...o,children:s.jsx(xs,{className:A("flex items-center justify-center text-current"),children:s.jsx(Ct,{className:"h-3 w-3",strokeWidth:13})})}),t&&s.jsx("label",{htmlFor:l,className:A("text-gray-900 select-none cursor-pointer","peer-disabled:cursor-not-allowed peer-disabled:opacity-50"),children:s.jsx(I,{size:"body2",weight:"medium",children:t})})]})});qr.displayName=Qr.displayName;function Gp({options:e,value:t,onValueChange:n,className:r,readOnly:o=!1,disabled:a=!1}){const i=P.useId(),l=(c,d)=>{if(d){n(t.includes(c)?t:[...t,c]);return}n(t.filter(u=>u!==c))};return s.jsx("div",{className:A("overflow-hidden rounded-4 border border-gray-200 bg-white",r),children:e.map((c,d)=>{const u=t.includes(c.id),f=a||c.disabled,p=!f&&o,v=f||p,b=`${i}-${c.id}`;return s.jsxs("label",{htmlFor:b,"aria-disabled":v,onClick:g=>{v&&g.preventDefault()},className:A("flex w-full items-center gap-4 px-4 py-4 text-left transition-colors",d>0&&"border-t border-gray-200",!v&&"cursor-pointer hover:bg-gray-100/70",f&&"cursor-not-allowed",p&&"cursor-default hover:cursor-not-allowed"),children:[s.jsx(qr,{id:b,checked:u,disabled:f,onCheckedChange:g=>{v||g==="indeterminate"||l(c.id,g===!0)},className:A("h-5 w-5 rounded-1.5","data-[state=checked]:border-main-800 data-[state=checked]:bg-main-800",p&&"cursor-default hover:cursor-not-allowed")}),typeof c.label=="string"||typeof c.label=="number"?s.jsx(I,{size:"body1",weight:"medium",className:A("flex-1 transition-colors",u?"text-gray-900":"text-gray-600",f&&"text-gray-400"),children:c.label}):s.jsx("span",{className:A("flex-1",!u&&"text-gray-600",f&&"opacity-60"),children:c.label})]},c.id)})})}const Up=dt("",{variants:{size:{sm:"w-11 h-11",lg:"w-30 h-30"}},defaultVariants:{size:"sm"}});function Xr({value:e,size:t,showPercentage:n=!0,className:r}){const o=t==="lg"?"lg":"sm",a={sm:50,lg:120},i={sm:5,lg:10},l={sm:"caption3",lg:"display2"},c=a[o],d=i[o],u=(c-d)/2,f=2*Math.PI*u,p=Math.min(Math.max(e,0),100),[v,b]=P.useState(0);P.useEffect(()=>{const w=requestAnimationFrame(()=>{b(p)});return()=>cancelAnimationFrame(w)},[p]);const g=f-f*v/100,m=A(Up({size:o}),"rounded-full",r);return s.jsxs("div",{className:"relative inline-block",children:[s.jsx(vu,{baseSize:c,radius:u,strokeWidth:d,circumference:f,dashOffset:g,className:m}),n&&s.jsx(I,{className:"absolute inset-0 flex items-center justify-center text-main-800",size:l[o],weight:"bold",children:`${p}%`})]})}function et(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>t.current?.(...n),[])}function Kp(e,t=globalThis?.document){const n=et(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Qp="DismissableLayer",Zr="dismissableLayer.update",qp="dismissableLayer.pointerDownOutside",Xp="dismissableLayer.focusOutside",ks,As=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xt=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...c}=e,d=h.useContext(As),[u,f]=h.useState(null),p=u?.ownerDocument??globalThis?.document,[,v]=h.useState({}),b=J(t,E=>f(E)),g=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(m),y=u?g.indexOf(u):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,N=y>=w,S=Rp(E=>{const k=E.target,z=[...d.branches].some(j=>j.contains(k));!N||z||(o?.(E),i?.(E),E.defaultPrevented||l?.())},p),M=eg(E=>{const k=E.target;[...d.branches].some(j=>j.contains(k))||(a?.(E),i?.(E),E.defaultPrevented||l?.())},p);return Kp(E=>{y===d.layers.size-1&&(r?.(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},p),h.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ks=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Ps(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ks)}},[u,p,n,d]),h.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Ps())},[u,d]),h.useEffect(()=>{const E=()=>v({});return document.addEventListener(Zr,E),()=>document.removeEventListener(Zr,E)},[]),s.jsx(G.div,{...c,ref:b,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,M.onFocusCapture),onBlurCapture:V(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,S.onPointerDownCapture)})});Xt.displayName=Qp;var Zp="DismissableLayerBranch",Jp=h.forwardRef((e,t)=>{const n=h.useContext(As),r=h.useRef(null),o=J(t,r);return h.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),s.jsx(G.div,{...e,ref:o})});Jp.displayName=Zp;function Rp(e,t=globalThis?.document){const n=et(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let c=function(){Es(qp,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function eg(e,t=globalThis?.document){const n=et(e),r=h.useRef(!1);return h.useEffect(()=>{const o=a=>{a.target&&!r.current&&Es(Xp,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ps(){const e=new CustomEvent(Zr);document.dispatchEvent(e)}function Es(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ac(o,a):o.dispatchEvent(a)}var Jr=0;function Rr(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_s()),document.body.insertAdjacentElement("beforeend",e[1]??_s()),Jr++,()=>{Jr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jr--}},[])}function _s(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var eo="focusScope.autoFocusOnMount",to="focusScope.autoFocusOnUnmount",Ms={bubbles:!1,cancelable:!0},tg="FocusScope",Dn=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,c]=h.useState(null),d=et(o),u=et(a),f=h.useRef(null),p=J(t,g=>c(g)),v=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let g=function(x){if(v.paused||!l)return;const N=x.target;l.contains(N)?f.current=N:tt(f.current,{select:!0})},m=function(x){if(v.paused||!l)return;const N=x.relatedTarget;N!==null&&(l.contains(N)||tt(f.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&tt(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",m);const y=new MutationObserver(w);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",m),y.disconnect()}}},[r,l,v.paused]),h.useEffect(()=>{if(l){Os.add(v);const g=document.activeElement;if(!l.contains(g)){const w=new CustomEvent(eo,Ms);l.addEventListener(eo,d),l.dispatchEvent(w),w.defaultPrevented||(ng(ig(Ts(l)),{select:!0}),document.activeElement===g&&tt(l))}return()=>{l.removeEventListener(eo,d),setTimeout(()=>{const w=new CustomEvent(to,Ms);l.addEventListener(to,u),l.dispatchEvent(w),w.defaultPrevented||tt(g??document.body,{select:!0}),l.removeEventListener(to,u),Os.remove(v)},0)}}},[l,d,u,v]);const b=h.useCallback(g=>{if(!n&&!r||v.paused)return;const m=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(m&&w){const y=g.currentTarget,[x,N]=rg(y);x&&N?!g.shiftKey&&w===N?(g.preventDefault(),n&&tt(x,{select:!0})):g.shiftKey&&w===x&&(g.preventDefault(),n&&tt(N,{select:!0})):w===y&&g.preventDefault()}},[n,r,v.paused]);return s.jsx(G.div,{tabIndex:-1,...i,ref:p,onKeyDown:b})});Dn.displayName=tg;function ng(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(tt(r,{select:t}),document.activeElement!==n)return}function rg(e){const t=Ts(e),n=Ds(t,e),r=Ds(t.reverse(),e);return[n,r]}function Ts(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ds(e,t){for(const n of e)if(!og(n,{upTo:t}))return n}function og(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ag(e){return e instanceof HTMLInputElement&&"select"in e}function tt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ag(e)&&t&&e.select()}}var Os=sg();function sg(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Is(e,t),e.unshift(t)},remove(t){e=Is(e,t),e[0]?.resume()}}}function Is(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ig(e){return e.filter(t=>t.tagName!=="A")}const lg=["top","right","bottom","left"],nt=Math.min,Ne=Math.max,On=Math.round,In=Math.floor,Ve=e=>({x:e,y:e}),cg={left:"right",right:"left",bottom:"top",top:"bottom"},dg={start:"end",end:"start"};function no(e,t,n){return Ne(e,nt(t,n))}function qe(e,t){return typeof e=="function"?e(t):e}function Xe(e){return e.split("-")[0]}function Et(e){return e.split("-")[1]}function ro(e){return e==="x"?"y":"x"}function oo(e){return e==="y"?"height":"width"}const ug=new Set(["top","bottom"]);function je(e){return ug.has(Xe(e))?"y":"x"}function ao(e){return ro(je(e))}function fg(e,t,n){n===void 0&&(n=!1);const r=Et(e),o=ao(e),a=oo(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Ln(i)),[i,Ln(i)]}function hg(e){const t=Ln(e);return[so(e),t,so(t)]}function so(e){return e.replace(/start|end/g,t=>dg[t])}const Ls=["left","right"],Fs=["right","left"],pg=["top","bottom"],gg=["bottom","top"];function mg(e,t,n){switch(e){case"top":case"bottom":return n?t?Fs:Ls:t?Ls:Fs;case"left":case"right":return t?pg:gg;default:return[]}}function vg(e,t,n,r){const o=Et(e);let a=mg(Xe(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(so)))),a}function Ln(e){return e.replace(/left|right|bottom|top/g,t=>cg[t])}function bg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ws(e){return typeof e!="number"?bg(e):{top:e,right:e,bottom:e,left:e}}function Fn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function zs(e,t,n){let{reference:r,floating:o}=e;const a=je(t),i=ao(t),l=oo(i),c=Xe(t),d=a==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let v;switch(c){case"top":v={x:u,y:r.y-o.height};break;case"bottom":v={x:u,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(Et(t)){case"start":v[i]-=p*(n&&d?-1:1);break;case"end":v[i]+=p*(n&&d?-1:1);break}return v}const yg=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=zs(d,r,c),p=r,v={},b=0;for(let g=0;g<l.length;g++){const{name:m,fn:w}=l[g],{x:y,y:x,data:N,reset:S}=await w({x:u,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:v,rects:d,platform:i,elements:{reference:e,floating:t}});u=y??u,f=x??f,v={...v,[m]:{...v[m],...N}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(d=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=zs(d,p,c)),g=-1)}return{x:u,y:f,placement:p,strategy:o,middlewareData:v}};async function Zt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=qe(t,e),b=Ws(v),m=l[p?f==="floating"?"reference":"floating":f],w=Fn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(m)))==null||n?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),y=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),N=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Fn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:c}):y);return{top:(w.top-S.top+b.top)/N.y,bottom:(S.bottom-w.bottom+b.bottom)/N.y,left:(w.left-S.left+b.left)/N.x,right:(S.right-w.right+b.right)/N.x}}const wg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=qe(e,t)||{};if(d==null)return{};const f=Ws(u),p={x:n,y:r},v=ao(o),b=oo(v),g=await i.getDimensions(d),m=v==="y",w=m?"top":"left",y=m?"bottom":"right",x=m?"clientHeight":"clientWidth",N=a.reference[b]+a.reference[v]-p[v]-a.floating[b],S=p[v]-a.reference[v],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let E=M?M[x]:0;(!E||!await(i.isElement==null?void 0:i.isElement(M)))&&(E=l.floating[x]||a.floating[b]);const k=N/2-S/2,z=E/2-g[b]/2-1,j=nt(f[w],z),B=nt(f[y],z),Y=j,K=E-g[b]-B,U=E/2-g[b]/2+k,O=no(Y,U,K),T=!c.arrow&&Et(o)!=null&&U!==O&&a.reference[b]/2-(U<Y?j:B)-g[b]/2<0,_=T?U<Y?U-Y:U-K:0;return{[v]:p[v]+_,data:{[v]:O,centerOffset:U-O-_,...T&&{alignmentOffset:_}},reset:T}}}),xg=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...m}=qe(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Xe(o),y=je(l),x=Xe(l)===l,N=await(c.isRTL==null?void 0:c.isRTL(d.floating)),S=p||(x||!g?[Ln(l)]:hg(l)),M=b!=="none";!p&&M&&S.push(...vg(l,g,b,N));const E=[l,...S],k=await Zt(t,m),z=[];let j=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&z.push(k[w]),f){const U=fg(o,i,N);z.push(k[U[0]],k[U[1]])}if(j=[...j,{placement:o,overflows:z}],!z.every(U=>U<=0)){var B,Y;const U=(((B=a.flip)==null?void 0:B.index)||0)+1,O=E[U];if(O&&(!(f==="alignment"?y!==je(O):!1)||j.every(C=>je(C.placement)===y?C.overflows[0]>0:!0)))return{data:{index:U,overflows:j},reset:{placement:O}};let T=(Y=j.filter(_=>_.overflows[0]<=0).sort((_,C)=>_.overflows[1]-C.overflows[1])[0])==null?void 0:Y.placement;if(!T)switch(v){case"bestFit":{var K;const _=(K=j.filter(C=>{if(M){const $=je(C.placement);return $===y||$==="y"}return!0}).map(C=>[C.placement,C.overflows.filter($=>$>0).reduce(($,X)=>$+X,0)]).sort((C,$)=>C[1]-$[1])[0])==null?void 0:K[0];_&&(T=_);break}case"initialPlacement":T=l;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function Bs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $s(e){return lg.some(t=>e[t]>=0)}const Cg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=qe(e,t);switch(r){case"referenceHidden":{const a=await Zt(t,{...o,elementContext:"reference"}),i=Bs(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:$s(i)}}}case"escaped":{const a=await Zt(t,{...o,altBoundary:!0}),i=Bs(a,n.floating);return{data:{escapedOffsets:i,escaped:$s(i)}}}default:return{}}}}},Hs=new Set(["left","top"]);async function Ng(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Xe(n),l=Et(n),c=je(n)==="y",d=Hs.has(i)?-1:1,u=a&&c?-1:1,f=qe(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(v=l==="end"?b*-1:b),c?{x:v*u,y:p*d}:{x:p*d,y:v*u}}const Sg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,c=await Ng(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},kg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:m=>{let{x:w,y}=m;return{x:w,y}}},...c}=qe(e,t),d={x:n,y:r},u=await Zt(t,c),f=je(Xe(o)),p=ro(f);let v=d[p],b=d[f];if(a){const m=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=v+u[m],x=v-u[w];v=no(y,v,x)}if(i){const m=f==="y"?"top":"left",w=f==="y"?"bottom":"right",y=b+u[m],x=b-u[w];b=no(y,b,x)}const g=l.fn({...t,[p]:v,[f]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:a,[f]:i}}}}}},Ag=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=qe(e,t),u={x:n,y:r},f=je(o),p=ro(f);let v=u[p],b=u[f];const g=qe(l,t),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const x=p==="y"?"height":"width",N=a.reference[p]-a.floating[x]+m.mainAxis,S=a.reference[p]+a.reference[x]-m.mainAxis;v<N?v=N:v>S&&(v=S)}if(d){var w,y;const x=p==="y"?"width":"height",N=Hs.has(Xe(o)),S=a.reference[f]-a.floating[x]+(N&&((w=i.offset)==null?void 0:w[f])||0)+(N?0:m.crossAxis),M=a.reference[f]+a.reference[x]+(N?0:((y=i.offset)==null?void 0:y[f])||0)-(N?m.crossAxis:0);b<S?b=S:b>M&&(b=M)}return{[p]:v,[f]:b}}}},Pg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:c=()=>{},...d}=qe(e,t),u=await Zt(t,d),f=Xe(o),p=Et(o),v=je(o)==="y",{width:b,height:g}=a.floating;let m,w;f==="top"||f==="bottom"?(m=f,w=p===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(w=f,m=p==="end"?"top":"bottom");const y=g-u.top-u.bottom,x=b-u.left-u.right,N=nt(g-u[m],y),S=nt(b-u[w],x),M=!t.middlewareData.shift;let E=N,k=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=y),M&&!p){const j=Ne(u.left,0),B=Ne(u.right,0),Y=Ne(u.top,0),K=Ne(u.bottom,0);v?k=b-2*(j!==0||B!==0?j+B:Ne(u.left,u.right)):E=g-2*(Y!==0||K!==0?Y+K:Ne(u.top,u.bottom))}await c({...t,availableWidth:k,availableHeight:E});const z=await i.getDimensions(l.floating);return b!==z.width||g!==z.height?{reset:{rects:!0}}:{}}}};function Wn(){return typeof window<"u"}function _t(e){return Vs(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ye(e){var t;return(t=(Vs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vs(e){return Wn()?e instanceof Node||e instanceof Se(e).Node:!1}function De(e){return Wn()?e instanceof Element||e instanceof Se(e).Element:!1}function Ge(e){return Wn()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function js(e){return!Wn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const Eg=new Set(["inline","contents"]);function Jt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Eg.has(o)}const _g=new Set(["table","td","th"]);function Mg(e){return _g.has(_t(e))}const Tg=[":popover-open",":modal"];function zn(e){return Tg.some(t=>{try{return e.matches(t)}catch{return!1}})}const Dg=["transform","translate","scale","rotate","perspective"],Og=["transform","translate","scale","rotate","perspective","filter"],Ig=["paint","layout","strict","content"];function io(e){const t=lo(),n=De(e)?Oe(e):e;return Dg.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Og.some(r=>(n.willChange||"").includes(r))||Ig.some(r=>(n.contain||"").includes(r))}function Lg(e){let t=rt(e);for(;Ge(t)&&!Mt(t);){if(io(t))return t;if(zn(t))return null;t=rt(t)}return null}function lo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Fg=new Set(["html","body","#document"]);function Mt(e){return Fg.has(_t(e))}function Oe(e){return Se(e).getComputedStyle(e)}function Bn(e){return De(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rt(e){if(_t(e)==="html")return e;const t=e.assignedSlot||e.parentNode||js(e)&&e.host||Ye(e);return js(t)?t.host:t}function Ys(e){const t=rt(e);return Mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ge(t)&&Jt(t)?t:Ys(t)}function Rt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ys(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=Se(o);if(a){const l=co(i);return t.concat(i,i.visualViewport||[],Jt(o)?o:[],l&&n?Rt(l):[])}return t.concat(o,Rt(o,[],n))}function co(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gs(e){const t=Oe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ge(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=On(n)!==a||On(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function uo(e){return De(e)?e:e.contextElement}function Tt(e){const t=uo(e);if(!Ge(t))return Ve(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Gs(t);let i=(a?On(n.width):n.width)/r,l=(a?On(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Wg=Ve(0);function Us(e){const t=Se(e);return!lo()||!t.visualViewport?Wg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Se(e)?!1:t}function ht(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=uo(e);let i=Ve(1);t&&(r?De(r)&&(i=Tt(r)):i=Tt(e));const l=zg(a,n,r)?Us(a):Ve(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,u=o.width/i.x,f=o.height/i.y;if(a){const p=Se(a),v=r&&De(r)?Se(r):r;let b=p,g=co(b);for(;g&&r&&v!==b;){const m=Tt(g),w=g.getBoundingClientRect(),y=Oe(g),x=w.left+(g.clientLeft+parseFloat(y.paddingLeft))*m.x,N=w.top+(g.clientTop+parseFloat(y.paddingTop))*m.y;c*=m.x,d*=m.y,u*=m.x,f*=m.y,c+=x,d+=N,b=Se(g),g=co(b)}}return Fn({width:u,height:f,x:c,y:d})}function $n(e,t){const n=Bn(e).scrollLeft;return t?t.left+n:ht(Ye(e)).left+n}function Ks(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-$n(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Bg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Ye(r),l=t?zn(t.floating):!1;if(r===i||l&&a)return n;let c={scrollLeft:0,scrollTop:0},d=Ve(1);const u=Ve(0),f=Ge(r);if((f||!f&&!a)&&((_t(r)!=="body"||Jt(i))&&(c=Bn(r)),Ge(r))){const v=ht(r);d=Tt(r),u.x=v.x+r.clientLeft,u.y=v.y+r.clientTop}const p=i&&!f&&!a?Ks(i,c):Ve(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+p.x,y:n.y*d.y-c.scrollTop*d.y+u.y+p.y}}function $g(e){return Array.from(e.getClientRects())}function Hg(e){const t=Ye(e),n=Bn(e),r=e.ownerDocument.body,o=Ne(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ne(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+$n(e);const l=-n.scrollTop;return Oe(r).direction==="rtl"&&(i+=Ne(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}const Qs=25;function Vg(e,t){const n=Se(e),r=Ye(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){a=o.width,i=o.height;const u=lo();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=$n(r);if(d<=0){const u=r.ownerDocument,f=u.body,p=getComputedStyle(f),v=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-f.clientWidth-v);b<=Qs&&(a-=b)}else d<=Qs&&(a+=d);return{width:a,height:i,x:l,y:c}}const jg=new Set(["absolute","fixed"]);function Yg(e,t){const n=ht(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ge(e)?Tt(e):Ve(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,c=o*a.x,d=r*a.y;return{width:i,height:l,x:c,y:d}}function qs(e,t,n){let r;if(t==="viewport")r=Vg(e,n);else if(t==="document")r=Hg(Ye(e));else if(De(t))r=Yg(t,n);else{const o=Us(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fn(r)}function Xs(e,t){const n=rt(e);return n===t||!De(n)||Mt(n)?!1:Oe(n).position==="fixed"||Xs(n,t)}function Gg(e,t){const n=t.get(e);if(n)return n;let r=Rt(e,[],!1).filter(l=>De(l)&&_t(l)!=="body"),o=null;const a=Oe(e).position==="fixed";let i=a?rt(e):e;for(;De(i)&&!Mt(i);){const l=Oe(i),c=io(i);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&jg.has(o.position)||Jt(i)&&!c&&Xs(e,i))?r=r.filter(u=>u!==i):o=l,i=rt(i)}return t.set(e,r),r}function Ug(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?zn(t)?[]:Gg(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((d,u)=>{const f=qs(t,u,o);return d.top=Ne(f.top,d.top),d.right=nt(f.right,d.right),d.bottom=nt(f.bottom,d.bottom),d.left=Ne(f.left,d.left),d},qs(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Kg(e){const{width:t,height:n}=Gs(e);return{width:t,height:n}}function Qg(e,t,n){const r=Ge(t),o=Ye(t),a=n==="fixed",i=ht(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=Ve(0);function d(){c.x=$n(o)}if(r||!r&&!a)if((_t(t)!=="body"||Jt(o))&&(l=Bn(t)),r){const v=ht(t,!0,a,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&d();a&&!r&&o&&d();const u=o&&!r&&!a?Ks(o,l):Ve(0),f=i.left+l.scrollLeft-c.x-u.x,p=i.top+l.scrollTop-c.y-u.y;return{x:f,y:p,width:i.width,height:i.height}}function fo(e){return Oe(e).position==="static"}function Zs(e,t){if(!Ge(e)||Oe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ye(e)===n&&(n=n.ownerDocument.body),n}function Js(e,t){const n=Se(e);if(zn(e))return n;if(!Ge(e)){let o=rt(e);for(;o&&!Mt(o);){if(De(o)&&!fo(o))return o;o=rt(o)}return n}let r=Zs(e,t);for(;r&&Mg(r)&&fo(r);)r=Zs(r,t);return r&&Mt(r)&&fo(r)&&!io(r)?n:r||Lg(e)||n}const qg=async function(e){const t=this.getOffsetParent||Js,n=this.getDimensions,r=await n(e.floating);return{reference:Qg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xg(e){return Oe(e).direction==="rtl"}const Zg={convertOffsetParentRelativeRectToViewportRelativeRect:Bg,getDocumentElement:Ye,getClippingRect:Ug,getOffsetParent:Js,getElementRects:qg,getClientRects:$g,getDimensions:Kg,getScale:Tt,isElement:De,isRTL:Xg};function Rs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jg(e,t){let n=null,r;const o=Ye(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:u,top:f,width:p,height:v}=d;if(l||t(),!p||!v)return;const b=In(f),g=In(o.clientWidth-(u+p)),m=In(o.clientHeight-(f+v)),w=In(u),x={rootMargin:-b+"px "+-g+"px "+-m+"px "+-w+"px",threshold:Ne(0,nt(1,c))||1};let N=!0;function S(M){const E=M[0].intersectionRatio;if(E!==c){if(!N)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Rs(d,e.getBoundingClientRect())&&i(),N=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return i(!0),a}function Rg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=uo(e),u=o||a?[...d?Rt(d):[],...Rt(t)]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const f=d&&l?Jg(d,n):null;let p=-1,v=null;i&&(v=new ResizeObserver(w=>{let[y]=w;y&&y.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),n()}),d&&!c&&v.observe(d),v.observe(t));let b,g=c?ht(e):null;c&&m();function m(){const w=ht(e);g&&!Rs(g,w)&&n(),g=w,b=requestAnimationFrame(m)}return n(),()=>{var w;u.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f?.(),(w=v)==null||w.disconnect(),v=null,c&&cancelAnimationFrame(b)}}const em=Sg,tm=kg,nm=xg,rm=Pg,om=Cg,ei=wg,am=Ag,sm=(e,t,n)=>{const r=new Map,o={platform:Zg,...n},a={...o.platform,_c:r};return yg(e,t,{...o,platform:a})};var im=typeof document<"u",lm=function(){},Hn=im?P.useLayoutEffect:lm;function Vn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Vn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Vn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ti(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ni(e,t){const n=ti(e);return Math.round(t*n)/n}function ho(e){const t=h.useRef(e);return Hn(()=>{t.current=e}),t}function cm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=h.useState(r);Vn(p,r)||v(r);const[b,g]=h.useState(null),[m,w]=h.useState(null),y=h.useCallback(C=>{C!==M.current&&(M.current=C,g(C))},[]),x=h.useCallback(C=>{C!==E.current&&(E.current=C,w(C))},[]),N=a||b,S=i||m,M=h.useRef(null),E=h.useRef(null),k=h.useRef(u),z=c!=null,j=ho(c),B=ho(o),Y=ho(d),K=h.useCallback(()=>{if(!M.current||!E.current)return;const C={placement:t,strategy:n,middleware:p};B.current&&(C.platform=B.current),sm(M.current,E.current,C).then($=>{const X={...$,isPositioned:Y.current!==!1};U.current&&!Vn(k.current,X)&&(k.current=X,dn.flushSync(()=>{f(X)}))})},[p,t,n,B,Y]);Hn(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(C=>({...C,isPositioned:!1})))},[d]);const U=h.useRef(!1);Hn(()=>(U.current=!0,()=>{U.current=!1}),[]),Hn(()=>{if(N&&(M.current=N),S&&(E.current=S),N&&S){if(j.current)return j.current(N,S,K);K()}},[N,S,K,j,z]);const O=h.useMemo(()=>({reference:M,floating:E,setReference:y,setFloating:x}),[y,x]),T=h.useMemo(()=>({reference:N,floating:S}),[N,S]),_=h.useMemo(()=>{const C={position:n,left:0,top:0};if(!T.floating)return C;const $=ni(T.floating,u.x),X=ni(T.floating,u.y);return l?{...C,transform:"translate("+$+"px, "+X+"px)",...ti(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:X}},[n,l,T.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:K,refs:O,elements:T,floatingStyles:_}),[u,K,O,T,_])}const dm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ei({element:r.current,padding:o}).fn(n):{}:r?ei({element:r,padding:o}).fn(n):{}}}},um=(e,t)=>({...em(e),options:[e,t]}),fm=(e,t)=>({...tm(e),options:[e,t]}),hm=(e,t)=>({...am(e),options:[e,t]}),pm=(e,t)=>({...nm(e),options:[e,t]}),gm=(e,t)=>({...rm(e),options:[e,t]}),mm=(e,t)=>({...om(e),options:[e,t]}),vm=(e,t)=>({...dm(e),options:[e,t]});var bm="Arrow",ri=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return s.jsx(G.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});ri.displayName=bm;var ym=ri,po="Popper",[oi,Dt]=Ae(po),[wm,ai]=oi(po),si=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return s.jsx(wm,{scope:t,anchor:r,onAnchorChange:o,children:n})};si.displayName=po;var ii="PopperAnchor",li=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ai(ii,n),i=h.useRef(null),l=J(t,i),c=h.useRef(null);return h.useEffect(()=>{const d=c.current;c.current=r?.current||i.current,d!==c.current&&a.onAnchorChange(c.current)}),r?null:s.jsx(G.div,{...o,ref:l})});li.displayName=ii;var go="PopperContent",[xm,Cm]=oi(go),ci=h.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:b,...g}=e,m=ai(go,n),[w,y]=h.useState(null),x=J(t,L=>y(L)),[N,S]=h.useState(null),M=vs(N),E=M?.width??0,k=M?.height??0,z=r+(a!=="center"?"-"+a:""),j=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},B=Array.isArray(d)?d:[d],Y=B.length>0,K={padding:j,boundary:B.filter(Sm),altBoundary:Y},{refs:U,floatingStyles:O,placement:T,isPositioned:_,middlewareData:C}=cm({strategy:"fixed",placement:z,whileElementsMounted:(...L)=>Rg(...L,{animationFrame:v==="always"}),elements:{reference:m.anchor},middleware:[um({mainAxis:o+k,alignmentAxis:i}),c&&fm({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?hm():void 0,...K}),c&&pm({...K}),gm({...K,apply:({elements:L,rects:ne,availableWidth:ie,availableHeight:q})=>{const{width:R,height:re}=ne.reference,xe=L.floating.style;xe.setProperty("--radix-popper-available-width",`${ie}px`),xe.setProperty("--radix-popper-available-height",`${q}px`),xe.setProperty("--radix-popper-anchor-width",`${R}px`),xe.setProperty("--radix-popper-anchor-height",`${re}px`)}}),N&&vm({element:N,padding:l}),km({arrowWidth:E,arrowHeight:k}),p&&mm({strategy:"referenceHidden",...K})]}),[$,X]=fi(T),he=et(b);fe(()=>{_&&he?.()},[_,he]);const ke=C.arrow?.x,se=C.arrow?.y,ae=C.arrow?.centerOffset!==0,[ge,me]=h.useState();return fe(()=>{w&&me(window.getComputedStyle(w).zIndex)},[w]),s.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:_?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[C.transformOrigin?.x,C.transformOrigin?.y].join(" "),...C.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(xm,{scope:n,placedSide:$,onArrowChange:S,arrowX:ke,arrowY:se,shouldHideArrow:ae,children:s.jsx(G.div,{"data-side":$,"data-align":X,...g,ref:x,style:{...g.style,animation:_?void 0:"none"}})})})});ci.displayName=go;var di="PopperArrow",Nm={top:"bottom",right:"left",bottom:"top",left:"right"},ui=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Cm(di,r),i=Nm[a.placedSide];return s.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:s.jsx(ym,{...o,ref:n,style:{...o.style,display:"block"}})})});ui.displayName=di;function Sm(e){return e!==null}var km=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,u]=fi(n),f={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+l/2,v=(o.arrow?.y??0)+c/2;let b="",g="";return d==="bottom"?(b=i?f:`${p}px`,g=`${-c}px`):d==="top"?(b=i?f:`${p}px`,g=`${r.floating.height+c}px`):d==="right"?(b=`${-c}px`,g=i?f:`${v}px`):d==="left"&&(b=`${r.floating.width+c}px`,g=i?f:`${v}px`),{data:{x:b,y:g}}}});function fi(e){const[t,n="center"]=e.split("-");return[t,n]}var mo=si,jn=li,vo=ci,bo=ui,Am="Portal",en=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=h.useState(!1);fe(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Go.createPortal(s.jsx(G.div,{...r,ref:t}),i):null});en.displayName=Am;var Pm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ot=new WeakMap,Yn=new WeakMap,Gn={},yo=0,hi=function(e){return e&&(e.host||hi(e.parentNode))},Em=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hi(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_m=function(e,t,n,r){var o=Em(t,Array.isArray(e)?e:[e]);Gn[n]||(Gn[n]=new WeakMap);var a=Gn[n],i=[],l=new Set,c=new Set(o),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};o.forEach(d);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))u(p);else try{var v=p.getAttribute(r),b=v!==null&&v!=="false",g=(Ot.get(p)||0)+1,m=(a.get(p)||0)+1;Ot.set(p,g),a.set(p,m),i.push(p),g===1&&b&&Yn.set(p,!0),m===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",p,w)}})};return u(t),l.clear(),yo++,function(){i.forEach(function(f){var p=Ot.get(f)-1,v=a.get(f)-1;Ot.set(f,p),a.set(f,v),p||(Yn.has(f)||f.removeAttribute(r),Yn.delete(f)),v||f.removeAttribute(n)}),yo--,yo||(Ot=new WeakMap,Ot=new WeakMap,Yn=new WeakMap,Gn={})}},wo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Pm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),_m(r,o,n,"aria-hidden")):function(){return null}},Ue=function(){return Ue=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ue.apply(this,arguments)};function pi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Mm(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Un="right-scroll-bar-position",Kn="width-before-scroll-bar",Tm="with-scroll-bars-hidden",Dm="--removed-body-scroll-bar-size";function xo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Om(e,t){var n=P.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Im=typeof window<"u"?h.useLayoutEffect:h.useEffect,gi=new WeakMap;function Lm(e,t){var n=Om(null,function(r){return e.forEach(function(o){return xo(o,r)})});return Im(function(){var r=gi.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(l){a.has(l)||xo(l,null)}),a.forEach(function(l){o.has(l)||xo(l,i)})}gi.set(n,e)},[e]),n}function Fm(e){return e}function Wm(e,t){t===void 0&&(t=Fm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(a),i=n}var c=function(){var u=i;i=[],u.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(u){i.push(u),d()},filter:function(u){return i=i.filter(u),n}}}};return o}function zm(e){e===void 0&&(e={});var t=Wm(null);return t.options=Ue({async:!0,ssr:!1},e),t}var mi=function(e){var t=e.sideCar,n=pi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,Ue({},n))};mi.isSideCarExport=!0;function Bm(e,t){return e.useMedium(t),mi}var vi=zm(),Co=function(){},Qn=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Co,onWheelCapture:Co,onTouchMoveCapture:Co}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,b=e.noIsolation,g=e.inert,m=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,x=e.gapMode,N=pi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,M=Lm([n,t]),E=Ue(Ue({},N),o);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:vi,removeScrollBar:d,shards:f,noRelative:v,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:x}),i?h.cloneElement(h.Children.only(l),Ue(Ue({},E),{ref:M})):h.createElement(y,Ue({},E,{className:c,ref:M}),l))});Qn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Qn.classNames={fullWidth:Kn,zeroRight:Un};var $m=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$m();return t&&e.setAttribute("nonce",t),e}function Vm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ym=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hm())&&(Vm(t,n),jm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Gm=function(){var e=Ym();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},bi=function(){var e=Gm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Um={left:0,top:0,right:0,gap:0},No=function(e){return parseInt(e||"",10)||0},Km=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[No(n),No(r),No(o)]},Qm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Um;var t=Km(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qm=bi(),It="data-scroll-locked",Xm=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
-
.`.concat(
|
|
1
|
+
(function(D,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("next/image"),require("lucide-react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","next/image","lucide-react"],s):(D=typeof globalThis<"u"?globalThis:D||self,s(D.OdosDesignSystem={},D.jsxRuntime,D.React,D.ReactDOM,D.nextImage,D.LucideReact))})(this,(function(D,s,P,qo,lt,ce){"use strict";function Xo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=Xo(P),dn=Xo(qo);function uc(e,t){const n=h.createContext(t),r=a=>{const{children:i,...l}=a,c=h.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(a){const i=h.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ae(e,t=[]){let n=[];function r(a,i){const l=h.createContext(i),c=n.length;n=[...n,i];const d=f=>{const{scope:g,children:v,...b}=f,p=g?.[e]?.[c]||l,m=h.useMemo(()=>b,Object.values(b));return s.jsx(p.Provider,{value:m,children:v})};d.displayName=a+"Provider";function u(f,g){const v=g?.[e]?.[c]||l,b=h.useContext(v);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,u]}const o=()=>{const a=n.map(i=>h.createContext(i));return function(l){const c=l?.[e]||a;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,fc(o,...t)]}function fc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((l,{useScope:c,scopeName:d})=>{const f=c(a)[`__scope${d}`];return{...l,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Zo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lr(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Zo(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Zo(e[o],null)}}}}function J(...e){return h.useCallback(lr(...e),e)}function vt(e){const t=hc(e),n=h.forwardRef((r,o)=>{const{children:a,...i}=r,l=h.Children.toArray(a),c=l.find(gc);if(c){const d=c.props.children,u=l.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...i,ref:o,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return s.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function hc(e){const t=h.forwardRef((n,r)=>{const{children:o,...a}=n;if(h.isValidElement(o)){const i=vc(o),l=mc(a,o.props);return o.type!==h.Fragment&&(l.ref=r?lr(r,i):i),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jo=Symbol("radix.slottable");function pc(e){const t=({children:n})=>s.jsx(s.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Jo,t}function gc(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jo}function mc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{const c=a(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function vc(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)}function cr(e){const t=e+"CollectionProvider",[n,r]=Ae(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:m,children:w}=p,y=P.useRef(null),x=P.useRef(new Map).current;return s.jsx(o,{scope:m,itemMap:x,collectionRef:y,children:w})};i.displayName=t;const l=e+"CollectionSlot",c=vt(l),d=P.forwardRef((p,m)=>{const{scope:w,children:y}=p,x=a(l,w),N=J(m,x.collectionRef);return s.jsx(c,{ref:N,children:y})});d.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",g=vt(u),v=P.forwardRef((p,m)=>{const{scope:w,children:y,...x}=p,N=P.useRef(null),S=J(m,N),M=a(u,w);return P.useEffect(()=>(M.itemMap.set(N,{ref:N,...x}),()=>{M.itemMap.delete(N)})),s.jsx(g,{[f]:"",ref:S,children:y})});v.displayName=u;function b(p){const m=a(e+"CollectionConsumer",p);return P.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((M,E)=>x.indexOf(M.ref.current)-x.indexOf(E.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:d,ItemSlot:v},b,r]}function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var fe=globalThis?.document?h.useLayoutEffect:()=>{},bc=h[" useInsertionEffect ".trim().toString()]||fe;function Ce({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=yc({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const u=h.useRef(e!==void 0);h.useEffect(()=>{const f=u.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const d=h.useCallback(u=>{if(l){const f=wc(u)?u(e):u;f!==e&&i.current?.(f)}else a(u)},[l,e,a,i]);return[c,d]}function yc({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),a=h.useRef(t);return bc(()=>{a.current=t},[t]),h.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function wc(e){return typeof e=="function"}var xc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],G=xc.reduce((e,t)=>{const n=vt(`Primitive.${t}`),r=h.forwardRef((o,a)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Cc(e,t){e&&dn.flushSync(()=>e.dispatchEvent(t))}function Nc(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var We=e=>{const{present:t,children:n}=e,r=Sc(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),a=J(r.ref,kc(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:a}):null};We.displayName="Presence";function Sc(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),a=h.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Nc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const d=un(r.current);a.current=l==="mounted"?d:"none"},[l]),fe(()=>{const d=r.current,u=o.current;if(u!==e){const g=a.current,v=un(d);e?c("MOUNT"):v==="none"||d?.display==="none"?c("UNMOUNT"):c(u&&g!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),fe(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=v=>{const p=un(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&p&&(c("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},g=v=>{v.target===t&&(a.current=un(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function un(e){return e?.animationName||"none"}function kc(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)}var Ac=h[" useId ".trim().toString()]||(()=>{}),Pc=0;function Pe(e){const[t,n]=h.useState(Ac());return fe(()=>{n(r=>r??String(Pc++))},[e]),e||(t?`radix-${t}`:"")}var fn="Collapsible",[Ec,Ro]=Ae(fn),[_c,dr]=Ec(fn),ea=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[c,d]=Ce({prop:r,defaultProp:o??!1,onChange:i,caller:fn});return s.jsx(_c,{scope:n,disabled:a,contentId:Pe(),open:c,onOpenToggle:h.useCallback(()=>d(u=>!u),[d]),children:s.jsx(G.div,{"data-state":fr(c),"data-disabled":a?"":void 0,...l,ref:t})})});ea.displayName=fn;var ta="CollapsibleTrigger",na=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=dr(ta,n);return s.jsx(G.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":fr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:V(e.onClick,o.onOpenToggle)})});na.displayName=ta;var ur="CollapsibleContent",ra=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=dr(ur,e.__scopeCollapsible);return s.jsx(We,{present:n||o.open,children:({present:a})=>s.jsx(Mc,{...r,ref:t,present:a})})});ra.displayName=ur;var Mc=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=dr(ur,n),[l,c]=h.useState(r),d=h.useRef(null),u=J(t,d),f=h.useRef(0),g=f.current,v=h.useRef(0),b=v.current,p=i.open||l,m=h.useRef(p),w=h.useRef(void 0);return h.useEffect(()=>{const y=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(y)},[]),fe(()=>{const y=d.current;if(y){w.current=w.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const x=y.getBoundingClientRect();f.current=x.height,v.current=x.width,m.current||(y.style.transitionDuration=w.current.transitionDuration,y.style.animationName=w.current.animationName),c(r)}},[i.open,r]),s.jsx(G.div,{"data-state":fr(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!p,...a,ref:u,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:p&&o})});function fr(e){return e?"open":"closed"}var Tc=ea,Dc=na,Oc=ra,Ic=h.createContext(void 0);function hn(e){const t=h.useContext(Ic);return e||t||"ltr"}var Ee="Accordion",Lc=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[hr,Fc,Wc]=cr(Ee),[pn]=Ae(Ee,[Wc,Ro]),pr=Ro(),oa=P.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return s.jsx(hr.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?s.jsx(Hc,{...a,ref:t}):s.jsx($c,{...o,ref:t})})});oa.displayName=Ee;var[aa,zc]=pn(Ee),[sa,Bc]=pn(Ee,{collapsible:!1}),$c=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,c]=Ce({prop:n,defaultProp:r??"",onChange:o,caller:Ee});return s.jsx(aa,{scope:e.__scopeAccordion,value:P.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:P.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(sa,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(ia,{...i,ref:t})})})}),Hc=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=Ce({prop:n,defaultProp:r??[],onChange:o,caller:Ee}),c=P.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=P.useCallback(u=>l((f=[])=>f.filter(g=>g!==u)),[l]);return s.jsx(aa,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d,children:s.jsx(sa,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(ia,{...a,ref:t})})})}),[Vc,gn]=pn(Ee),ia=P.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,l=P.useRef(null),c=J(l,t),d=Fc(n),f=hn(o)==="ltr",g=V(e.onKeyDown,v=>{if(!Lc.includes(v.key))return;const b=v.target,p=d().filter(k=>!k.ref.current?.disabled),m=p.findIndex(k=>k.ref.current===b),w=p.length;if(m===-1)return;v.preventDefault();let y=m;const x=0,N=w-1,S=()=>{y=m+1,y>N&&(y=x)},M=()=>{y=m-1,y<x&&(y=N)};switch(v.key){case"Home":y=x;break;case"End":y=N;break;case"ArrowRight":a==="horizontal"&&(f?S():M());break;case"ArrowDown":a==="vertical"&&S();break;case"ArrowLeft":a==="horizontal"&&(f?M():S());break;case"ArrowUp":a==="vertical"&&M();break}const E=y%w;p[E].ref.current?.focus()});return s.jsx(Vc,{scope:n,disabled:r,direction:o,orientation:a,children:s.jsx(hr.Slot,{scope:n,children:s.jsx(G.div,{...i,"data-orientation":a,ref:c,onKeyDown:r?void 0:g})})})}),mn="AccordionItem",[jc,gr]=pn(mn),la=P.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=gn(mn,n),i=zc(mn,n),l=pr(n),c=Pe(),d=r&&i.value.includes(r)||!1,u=a.disabled||e.disabled;return s.jsx(jc,{scope:n,open:d,disabled:u,triggerId:c,children:s.jsx(Tc,{"data-orientation":a.orientation,"data-state":pa(d),...l,...o,ref:t,disabled:u,open:d,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});la.displayName=mn;var ca="AccordionHeader",da=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=gn(Ee,n),a=gr(ca,n);return s.jsx(G.h3,{"data-orientation":o.orientation,"data-state":pa(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});da.displayName=ca;var mr="AccordionTrigger",ua=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=gn(Ee,n),a=gr(mr,n),i=Bc(mr,n),l=pr(n);return s.jsx(hr.ItemSlot,{scope:n,children:s.jsx(Dc,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...r,ref:t})})});ua.displayName=mr;var fa="AccordionContent",ha=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=gn(Ee,n),a=gr(fa,n),i=pr(n);return s.jsx(Oc,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});ha.displayName=fa;function pa(e){return e?"open":"closed"}var Yc=oa,Gc=la,Uc=da,Kc=ua,Qc=ha;function ga(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ga(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ma(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ga(e))&&(r&&(r+=" "),r+=t);return r}const qc=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Xc=(e,t)=>({classGroupId:e,validator:t}),va=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),vn="-",ba=[],Zc="arbitrary..",Jc=e=>{const t=ed(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Rc(i);const l=i.split(vn),c=l[0]===""&&l.length>1?1:0;return ya(l,c,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=r[i],d=n[i];return c?d?qc(d,c):c:d||ba}return n[i]||ba}}},ya=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const d=ya(e,t+1,a);if(d)return d}const i=n.validators;if(i===null)return;const l=t===0?e.join(vn):e.slice(t).join(vn),c=i.length;for(let d=0;d<c;d++){const u=i[d];if(u.validator(l))return u.classGroupId}},Rc=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Zc+r:void 0})(),ed=e=>{const{theme:t,classGroups:n}=e;return td(n,t)},td=(e,t)=>{const n=va();for(const r in e){const o=e[r];vr(o,n,r,t)}return n},vr=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const i=e[a];nd(i,t,n,r)}},nd=(e,t,n,r)=>{if(typeof e=="string"){rd(e,t,n);return}if(typeof e=="function"){od(e,t,n,r);return}ad(e,t,n,r)},rd=(e,t,n)=>{const r=e===""?t:wa(t,e);r.classGroupId=n},od=(e,t,n,r)=>{if(sd(e)){vr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Xc(n,e))},ad=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let i=0;i<a;i++){const[l,c]=o[i];vr(c,wa(t,l),n,r)}},wa=(e,t)=>{let n=e;const r=t.split(vn),o=r.length;for(let a=0;a<o;a++){const i=r[a];let l=n.nextPart.get(i);l||(l=va(),n.nextPart.set(i,l)),n=l}return n},sd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,id=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,i)=>{n[a]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let i=n[a];if(i!==void 0)return i;if((i=r[a])!==void 0)return o(a,i),i},set(a,i){a in n?n[a]=i:o(a,i)}}},br="!",xa=":",ld=[],Ca=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),cd=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,l=0,c=0,d;const u=o.length;for(let p=0;p<u;p++){const m=o[p];if(i===0&&l===0){if(m===xa){a.push(o.slice(c,p)),c=p+1;continue}if(m==="/"){d=p;continue}}m==="["?i++:m==="]"?i--:m==="("?l++:m===")"&&l--}const f=a.length===0?o:o.slice(c);let g=f,v=!1;f.endsWith(br)?(g=f.slice(0,-1),v=!0):f.startsWith(br)&&(g=f.slice(1),v=!0);const b=d&&d>c?d-c:void 0;return Ca(a,v,g,b)};if(t){const o=t+xa,a=r;r=i=>i.startsWith(o)?a(i.slice(o.length)):Ca(ld,!1,i,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},dd=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const i=n[a],l=i[0]==="[",c=t.has(i);l||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},ud=e=>({cache:id(e.cacheSize),parseClassName:cd(e),sortModifiers:dd(e),...Jc(e)}),fd=/\s+/,hd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],l=e.trim().split(fd);let c="";for(let d=l.length-1;d>=0;d-=1){const u=l[d],{isExternal:f,modifiers:g,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:p}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let m=!!p,w=r(m?b.substring(0,p):b);if(!w){if(!m){c=u+(c.length>0?" "+c:c);continue}if(w=r(b),!w){c=u+(c.length>0?" "+c:c);continue}m=!1}const y=g.length===0?"":g.length===1?g[0]:a(g).join(":"),x=v?y+br:y,N=x+w;if(i.indexOf(N)>-1)continue;i.push(N);const S=o(w,m);for(let M=0;M<S.length;++M){const E=S[M];i.push(x+E)}c=u+(c.length>0?" "+c:c)}return c},pd=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Na(n))&&(o&&(o+=" "),o+=r);return o},Na=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Na(e[r]))&&(n&&(n+=" "),n+=t);return n},gd=(e,...t)=>{let n,r,o,a;const i=c=>{const d=t.reduce((u,f)=>f(u),e());return n=ud(d),r=n.cache.get,o=n.cache.set,a=l,l(c)},l=c=>{const d=r(c);if(d)return d;const u=hd(c,n);return o(c,u),u};return a=i,(...c)=>a(pd(...c))},md=[],le=e=>{const t=n=>n[e]||md;return t.isThemeGetter=!0,t},Sa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ka=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vd=/^\d+\/\d+$/,bd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bt=e=>vd.test(e),Q=e=>!!e&&!Number.isNaN(Number(e)),Ze=e=>!!e&&Number.isInteger(Number(e)),yr=e=>e.endsWith("%")&&Q(e.slice(0,-1)),Ke=e=>bd.test(e),Nd=()=>!0,Sd=e=>yd.test(e)&&!wd.test(e),Aa=()=>!1,kd=e=>xd.test(e),Ad=e=>Cd.test(e),Pd=e=>!F(e)&&!W(e),Ed=e=>yt(e,Ta,Aa),F=e=>Sa.test(e),ct=e=>yt(e,Da,Sd),wr=e=>yt(e,Od,Q),Pa=e=>yt(e,_a,Aa),_d=e=>yt(e,Ma,Ad),bn=e=>yt(e,Oa,kd),W=e=>ka.test(e),Ht=e=>wt(e,Da),Md=e=>wt(e,Id),Ea=e=>wt(e,_a),Td=e=>wt(e,Ta),Dd=e=>wt(e,Ma),yn=e=>wt(e,Oa,!0),yt=(e,t,n)=>{const r=Sa.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},wt=(e,t,n=!1)=>{const r=ka.exec(e);return r?r[1]?t(r[1]):n:!1},_a=e=>e==="position"||e==="percentage",Ma=e=>e==="image"||e==="url",Ta=e=>e==="length"||e==="size"||e==="bg-size",Da=e=>e==="length",Od=e=>e==="number",Id=e=>e==="family-name",Oa=e=>e==="shadow",Ld=gd(()=>{const e=le("color"),t=le("font"),n=le("text"),r=le("font-weight"),o=le("tracking"),a=le("leading"),i=le("breakpoint"),l=le("container"),c=le("spacing"),d=le("radius"),u=le("shadow"),f=le("inset-shadow"),g=le("text-shadow"),v=le("drop-shadow"),b=le("blur"),p=le("perspective"),m=le("aspect"),w=le("ease"),y=le("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...N(),W,F],M=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],k=()=>[W,F,c],z=()=>[bt,"full","auto",...k()],j=()=>[Ze,"none","subgrid",W,F],B=()=>["auto",{span:["full",Ze,W,F]},Ze,W,F],Y=()=>[Ze,"auto",W,F],K=()=>["auto","min","max","fr",W,F],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...k()],_=()=>[bt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],C=()=>[e,W,F],$=()=>[...N(),Ea,Pa,{position:[W,F]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",Td,Ed,{size:[W,F]}],ke=()=>[yr,Ht,ct],se=()=>["","none","full",d,W,F],ae=()=>["",Q,Ht,ct],ge=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[Q,yr,Ea,Pa],ne=()=>["","none",b,W,F],ie=()=>["none",Q,W,F],q=()=>["none",Q,W,F],R=()=>[Q,W,F],re=()=>[bt,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ke],breakpoint:[Ke],color:[Nd],container:[Ke],"drop-shadow":[Ke],ease:["in","out","in-out"],font:[Pd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ke],shadow:[Ke],spacing:["px",Q],text:[Ke],"text-shadow":[Ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bt,F,W,m]}],container:["container"],columns:[{columns:[Q,F,W,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Ze,"auto",W,F]}],basis:[{basis:[bt,"full","auto",l,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,bt,"auto","initial","none",F]}],grow:[{grow:["",Q,W,F]}],shrink:[{shrink:["",Q,W,F]}],order:[{order:[Ze,"first","last","none",W,F]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],w:[{w:[l,"screen",..._()]}],"min-w":[{"min-w":[l,"screen","none",..._()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",n,Ht,ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,W,wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yr,F]}],"font-family":[{font:[Md,F,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,W,F]}],"line-clamp":[{"line-clamp":[Q,"none",W,wr]}],leading:[{leading:[a,...k()]}],"list-image":[{"list-image":["none",W,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",W,ct]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Q,"auto",W,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ze,W,F],radial:["",W,F],conic:[Ze,W,F]},Dd,_d]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:ke()}],"gradient-via-pos":[{via:ke()}],"gradient-to-pos":[{to:ke()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,W,F]}],"outline-w":[{outline:["",Q,Ht,ct]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",u,yn,bn]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",f,yn,bn]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Q,ct]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",g,yn,bn]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Q,W,F]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[W,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,F]}],filter:[{filter:["","none",W,F]}],blur:[{blur:ne()}],brightness:[{brightness:[Q,W,F]}],contrast:[{contrast:[Q,W,F]}],"drop-shadow":[{"drop-shadow":["","none",v,yn,bn]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Q,W,F]}],"hue-rotate":[{"hue-rotate":[Q,W,F]}],invert:[{invert:["",Q,W,F]}],saturate:[{saturate:[Q,W,F]}],sepia:[{sepia:["",Q,W,F]}],"backdrop-filter":[{"backdrop-filter":["","none",W,F]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[Q,W,F]}],"backdrop-contrast":[{"backdrop-contrast":[Q,W,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,W,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,W,F]}],"backdrop-invert":[{"backdrop-invert":["",Q,W,F]}],"backdrop-opacity":[{"backdrop-opacity":[Q,W,F]}],"backdrop-saturate":[{"backdrop-saturate":[Q,W,F]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,W,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",W,F]}],ease:[{ease:["linear","initial",w,W,F]}],delay:[{delay:[Q,W,F]}],animate:[{animate:["none",y,W,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,W,F]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:R()}],"skew-x":[{"skew-x":R()}],"skew-y":[{"skew-y":R()}],transform:[{transform:[W,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W,F]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Q,Ht,ct,wr]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function A(...e){return Ld(ma(e))}const wn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M20 8L12 16L4 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Fd=Yc;function Wd({className:e,...t}){return s.jsx(Gc,{className:A("border-b border-gray-200 last:border-b-0",e),...t})}function zd({className:e,children:t,...n}){return s.jsx(Uc,{className:"flex",children:s.jsxs(Kc,{className:A("flex flex-1 items-center justify-between py-3 sm:py-4 text-left","text-sm sm:text-base font-medium text-gray-900 transition-colors","hover:text-main-900","focus:outline-none focus-visible:ring-2 focus-visible:ring-main-500 focus-visible:ring-offset-2 rounded-1","[&[data-state=open]>svg]:rotate-180","cursor-pointer",e),...n,children:[t,s.jsx(wn,{className:A("h-4 w-4 sm:h-5 sm:w-5 shrink-0 text-gray-500 transition-transform duration-200")})]})})}function Bd({className:e,children:t,...n}){return s.jsx(Qc,{className:A("overflow-hidden text-gray-700","data-[state=closed]:animate-accordion-up","data-[state=open]:animate-accordion-down"),...n,children:s.jsx("div",{className:A("pb-3 sm:pb-4 pt-0 text-sm sm:text-base",e),children:t})})}var $d=Symbol.for("react.lazy"),xn=h[" use ".trim().toString()];function Hd(e){return typeof e=="object"&&e!==null&&"then"in e}function Ia(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===$d&&"_payload"in e&&Hd(e._payload)}function Vd(e){const t=Yd(e),n=h.forwardRef((r,o)=>{let{children:a,...i}=r;Ia(a)&&typeof xn=="function"&&(a=xn(a._payload));const l=h.Children.toArray(a),c=l.find(Ud);if(c){const d=c.props.children,u=l.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...i,ref:o,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return s.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var jd=Vd("Slot");function Yd(e){const t=h.forwardRef((n,r)=>{let{children:o,...a}=n;if(Ia(o)&&typeof xn=="function"&&(o=xn(o._payload)),h.isValidElement(o)){const i=Qd(o),l=Kd(a,o.props);return o.type!==h.Fragment&&(l.ref=r?lr(r,i):i),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gd=Symbol("radix.slottable");function Ud(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gd}function Kd(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{const c=a(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Qd(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 La=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Fa=ma,dt=(e,t)=>n=>{var r;if(t?.variants==null)return Fa(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(d=>{const u=n?.[d],f=a?.[d];if(u===null)return null;const g=La(u)||La(f);return o[d][g]}),l=n&&Object.entries(n).reduce((d,u)=>{let[f,g]=u;return g===void 0||(d[f]=g),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:f,className:g,...v}=u;return Object.entries(v).every(b=>{let[p,m]=b;return Array.isArray(m)?m.includes({...a,...l}[p]):{...a,...l}[p]===m})?[...d,f,g]:d},[]);return Fa(e,i,c,n?.class,n?.className)},Cn=dt("leading-none",{variants:{size:{display1:"text-5xl",display2:"text-4xl",heading1:"text-3xl",heading2:"text-2xl",body1:"text-xl",body2:"text-lg",caption1:"text-base",caption2:"text-sm",caption3:"text-xs",pageTitle:"text-3xl"},weight:{bold:"font-bold",medium:"font-medium",regular:"font-normal",light:"font-light"}},defaultVariants:{size:"body2",weight:"medium"}});function I({className:e,size:t,weight:n,as:r="span",...o}){return s.jsx(r,{className:A(Cn({size:t,weight:n,className:e})),...o})}const qd=dt("inline-flex cursor-pointer items-center justify-center gap-2 rounded-3 border border-transparent transition-colors duration-200 disabled:cursor-not-allowed",{variants:{variant:{default:"bg-main-800 text-white hover:bg-main-600 disabled:bg-main-400 disabled:text-white",outlined:"bg-white text-gray-800 border-gray-300 hover:bg-gray-100 disabled:bg-gray-200 disabled:text-gray-400",secondary:"bg-white text-gray-800 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400",ghost:"bg-transparent text-gray-800 hover:bg-gray-100 disabled:text-gray-400"},size:{small:"h-9 px-3.5",medium:"h-11 px-3.5",large:"h-13 px-5",icon:"h-9 w-9 p-0"}},defaultVariants:{variant:"default",size:"large"}});function de({className:e,variant:t="default",size:n="large",asChild:r=!1,disabled:o=!1,...a}){const i=r?jd:"button",l=t??"default",c=n??"large",d={small:{size:"caption2",weight:"bold"},medium:{size:"caption1",weight:"bold"},large:{size:"body2",weight:"bold"},icon:{size:"caption1",weight:"bold"}},u=c!=="icon"&&(typeof a.children=="string"||typeof a.children=="number");return s.jsx(i,{"data-slot":"button",className:A(qd({variant:l,size:c,className:e})),disabled:o,...a,children:u?s.jsx(I,{size:d[c].size,weight:d[c].weight,children:a.children}):a.children})}function xt({imageUrl:e,size:t="md",className:n}){const r={sm:"w-10 h-10",md:"w-12 h-12",lg:"w-16 h-16",xl:"w-20 h-20"},o="/DefaultProfile.png",[a,i]=P.useState(!0);P.useEffect(()=>{i(!0)},[e]);const l=typeof e=="string"&&/^(\/|https?:\/\/)/.test(e);return s.jsx("div",{className:A("relative overflow-hidden rounded-full",r[t],n),children:s.jsx(lt,{src:!e||!l||!a?o:e,alt:"avatar",fill:!0,className:"object-cover",onError:()=>i(!1)})})}const Xd=e=>s.jsxs("svg",{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("rect",{width:"60",height:"60",fill:"url(#pattern0_3714_3925)"}),s.jsxs("defs",{children:[s.jsx("pattern",{id:"pattern0_3714_3925",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:s.jsx("use",{xlinkHref:"#image0_3714_3925",transform:"translate(-0.1 -0.1) scale(0.0125)"})}),s.jsx("image",{id:"image0_3714_3925",width:"96",height:"96",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAGy0lEQVR4Ae2dT2gcVRzHk6wR1nQJkYZqsnR3kbIoLRbsJafQg4b0kJMHPVmCh4pQb/Wo1+ZWQexBigVBzz00tB6KJy8RFAsSetjd/G1I0IQkLhg28fszb0uyO/Peb9682dmd+T0YZue9N7/f+32+M2/+v+3rkyQEhIAQEAJCQAgIASEgBIRA2gj0d3PA4+Pj+cHBwXeOjo4u9vf3X8C8iPa+hulVTGcwvYyJ0r+Y9jD9hek56lZR9xnmTw8ODn5dXV1dQX5Xpq4SoFwu5+r1+jRITQPeVcwLjqjVIMgT2JrPZrPzi4uLu47shjbTDQJkCoXCFCKZxXQNUzZ0VHoDdRQ/xHSvVqs9wryhrx5taWwCjI6OnhkaGvoYW+ZnCLEYbZi+1qvY0+7s7+9/u7m5SV1Yx1PHBRgbG3sF/fqniPQWprMdj9jb4Ray53C8+Hptbe0f7yrR5HZUgGKx+AG2+NsI5Xw04YS2uoQ94vNqtfpjaEtMAx0RAH18CYHdBfz3mO2KtRra+hhtvYFjRCXqhmSidoCt/jp8PMD0VtS+HNp/A7ZmR0ZG1re3t39zaLfNVGR7QD6fzw4MDHyDremjNq89lIE94f7h4eEnKysrdPbkPEUiALqc19FS2uqvOG9xPAYX4HYGXdK6a/fOBSiVSmVsMXR+7eoiynXMtvZq2KOnKpXKoq0Br/UGvDJt89DtXAL8n7F+0uATkgLFRjHa8vFaz9keoLZ8gn/Oy1GC8jawJ0y62hOcCKD6/F8AOYlbvte2U0PmhItjQuguiM520Bg64KYFPglCsT5QsdOydQotAJ1qwntSznaCgLyiYg+yTlvdUBdi6iLrizarKcnANc5lXKzVwlysWR8D6PYCOP+OKZcS3n5h0rOFt21vW1h3QXRvR+D/r0lOsfATSJtvJYC6q9kTN9a00TsqpJuMxMTGXOAuSN3P/xPOYrmljF1d22Z0jUc2IByss4TnCW8GfZ4QeA9QD1Nige8AUpQmzis2gXwEEoAeI8I6PcmS5E3glmLkXeqRG0gAeoYLG93yGNEjnNizzipG7IYEESCDgw09QJekIaAYsa+v2ALg4EavjhQ1vqXomEBRsWLxYAsAa7Msi1KJCLBZsQSgN9ZglF6aksQjcE0xM9ZmCaBeF4z6jTVjY3uoQlYxMzaZJQCsTBstSYVWAixmLAFwr+Nqq3VZ1hPgMjMKQK+Iw1WaHrboyfJLC4qddg2jAPR+vtaCFPoS4LAzCoALi4u+HqRAS4DDzigA+rILWi9S6EuAw84oAFQs+nqQAi0BDruXtBaOC+mbLGfJdD8/rKOw9h0/TzCyM+4BAEIfxEmyI2BkxxGAngFIsiNgZMcRoPkpqF0T0r2WkR1HgHQjjDh6jgD0EbQkOwJGdhwB9ux8y1ogYGTHEYA+/5dkR8DIjnMd8By+y3b+29cKe55tOs8Pa7+9xaFyiJ02GfcAXE5XtRak0JcAh51RAFxOP/P1IAVaAhx2RgGg4lOtFyn0JcBhZxSAxtvx9SAFWgIcdkYB1GBHNa0nKfQiUOMMFGUUgCyjL3vi5UHy/AlwmbEEgJt5f1dS4kOAxYwlAA3zBSd1H0eS3U6grpi1l7TksARQY6zRMF+SeAQecselYwmgfN7j+ZZaIMBmxRYAtwBoAI6q4DUSqCpWxopUgS0A6jZwYXGHZTXFlRQj9kiMQQToo9EFwXYrxXxNoW8pRqZ6L8oDCaCGdpx7sbb8aCUwF3T4y0ACkDca2hGzpVbPstxHn6kSm0BJ+82tnyX1ofYPfuVpzEff/6HNcJdWAhBgiPAIl9vytTxYAP5jwKdv6AKnwF1Q0wPg38DvrhkEu9muGOa7ioWVa2sBcK5bgfI3rbwmaCViQCxsQ2J/z+rlgMbJGR4eLqERl73Kk56HLf8+4H8ZJk7rPaDplAY1xe+F5nKK5gsq9lAhhxZAjSg7g1ak6aENxTrjYjTd0AKQ/NgN12lQU/zcoOWEJxq2copidhGn9Wmol3Ma1DSTyfyEsnNe5QnI22g0Gu9iy//DVSxO9oBmY6hh2DomsZzE7oiGLp50CZ+4ORWADKoRZSfwM0kHZoplwtVoucSpmUKdhjaNtM53dnb2crnc9zg9zff6KSqdauJs5/3l5eW/W+N0sez0GODVINyyuI4gvkJZrw1vuYuN5yZuMXznFZervMgFoIbihdkSgpG/MPFQrSMCNP2qu6i3sdytg/4l8098mgLQXP7G6iQN3Ek9vdi5Jfkjt2PWsQlwQmr5K8MTMGL9ScN8yZ95xirBaedp+Dvb0xHLkhAQAkJACAgBISAEhIAQEAJpIPAfJpcfclVEKqsAAAAASUVORK5CYII="})]})]}),Wa=e=>s.jsx(ce.Bell,{...e}),Zd=e=>s.jsx(ce.BookOpen,{...e}),za=e=>s.jsx(ce.CalendarDays,{...e}),Jd=e=>s.jsx(ce.Dumbbell,{...e}),Rd=e=>s.jsx(ce.Flag,{...e}),Ba=e=>s.jsx(ce.Flame,{...e}),eu=e=>s.jsx(ce.Code2,{...e}),Ct=({strokeWidth:e=14,...t})=>s.jsx("svg",{width:"65",height:"50",viewBox:"0 0 65 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:s.jsx("path",{d:"M57.5 7.5L23.125 41.875L7.5 26.25",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"})}),tu=e=>s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M0 0.6C0 0.268629 0.268629 0 0.6 0H6C7.10457 0 8 0.895431 8 2V7.4C8 7.73137 7.73137 8 7.4 8C7.06863 8 6.8 7.73137 6.8 7.4V2.2C6.8 1.64772 6.35228 1.2 5.8 1.2H0.6C0.268629 1.2 0 0.931371 0 0.6Z",fill:"currentColor"})}),Nn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M16 20L8 12L16 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Sn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M8 4L16 12L8 20",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),$a=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M4 16L12 8L20 16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),kn=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M18 6L6 18M18 18L6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),nu=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M18.178 8c5.096 0 5.096 8 0 8-5.095 0-7.133-8-12.739-8-4.585 0-4.585 8 0 8 5.606 0 7.644-8 12.74-8Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),ru=e=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.01759 11.1645C4.0676 6.79251 8.02225 4.5 11.9841 4.5C16.6371 4.5 20.6453 7.53129 23.0101 11.1836L23.0112 11.1853C23.1677 11.4285 23.2509 11.7115 23.2509 12.0007C23.2509 12.2893 23.168 12.5719 23.012 12.8147C20.6493 16.5141 16.6671 19.5 11.9841 19.5C7.2513 19.5 3.3458 16.5203 0.988892 12.8317C0.828743 12.583 0.745679 12.2925 0.750173 11.9968C0.754679 11.7002 0.846976 11.4117 1.0154 11.1676L1.01759 11.1645ZM2.25001 12.0196L2.25208 12.0228C4.42901 15.4304 7.91813 18 11.9841 18C16.0045 18 19.5689 15.4195 21.7484 12.0065L21.7498 12.0043C21.7505 12.0032 21.7509 12.002 21.7509 12.0007C21.7509 12.0002 21.7508 11.9996 21.7507 11.9991C21.7505 11.9985 21.7503 11.9979 21.7499 11.9973C19.5621 8.61915 15.9686 6 11.9841 6C8.63995 6 5.10025 7.93555 2.25001 12.0196Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9ZM7.5 12C7.5 9.51472 9.51472 7.5 12 7.5C14.4853 7.5 16.5 9.51472 16.5 12C16.5 14.4853 14.4853 16.5 12 16.5C9.51472 16.5 7.5 14.4853 7.5 12Z",fill:"currentColor"})]}),ou=e=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M20.2501 21.0001C20.1516 21.0003 20.054 20.9809 19.963 20.9432C19.872 20.9054 19.7894 20.8501 19.7199 20.7803L3.21994 4.28025C3.08522 4.13845 3.01123 3.94964 3.01373 3.75407C3.01624 3.5585 3.09504 3.37164 3.23334 3.23334C3.37164 3.09504 3.5585 3.01624 3.75407 3.01373C3.94964 3.01123 4.13845 3.08522 4.28025 3.21994L20.7803 19.7199C20.8851 19.8248 20.9564 19.9584 20.9854 20.1039C21.0143 20.2493 20.9994 20.4001 20.9427 20.5371C20.8859 20.6741 20.7899 20.7912 20.6666 20.8736C20.5433 20.956 20.3984 21 20.2501 21.0001Z",fill:"currentColor"}),s.jsx("path",{d:"M11.984 18.0002C10.0392 18.0002 8.16371 17.4245 6.40965 16.2892C4.81261 15.258 3.37496 13.7809 2.25183 12.0236V12.0198C3.18652 10.6806 4.21027 9.54812 5.30996 8.635C5.31991 8.62668 5.32802 8.61639 5.33379 8.60478C5.33956 8.59317 5.34285 8.58048 5.34347 8.56753C5.34409 8.55458 5.34201 8.54164 5.33737 8.52953C5.33273 8.51742 5.32563 8.50641 5.31652 8.49719L4.38277 7.56484C4.36618 7.54811 4.34389 7.53824 4.32035 7.5372C4.29682 7.53616 4.27375 7.54402 4.25574 7.55922C3.08761 8.54359 2.0034 9.75109 1.01761 11.1648C0.848014 11.4083 0.754608 11.6966 0.749266 11.9932C0.743924 12.2899 0.826888 12.5814 0.987615 12.8308C2.22558 14.7681 3.81886 16.3998 5.59449 17.5487C7.59371 18.8439 9.74527 19.5002 11.984 19.5002C13.1924 19.4964 14.3923 19.2973 15.5371 18.9105C15.5522 18.9053 15.5658 18.8965 15.5765 18.8846C15.5872 18.8728 15.5947 18.8585 15.5983 18.8429C15.602 18.8274 15.6015 18.8112 15.5972 18.7959C15.5928 18.7805 15.5845 18.7666 15.5732 18.7553L14.5617 17.7437C14.5384 17.721 14.5096 17.7048 14.4781 17.6965C14.4466 17.6883 14.4136 17.6884 14.3821 17.6969C13.5987 17.8986 12.793 18.0005 11.984 18.0002Z",fill:"currentColor"}),s.jsx("path",{d:"M23.0081 11.1844C21.7678 9.26625 20.1586 7.63688 18.3548 6.47203C16.3594 5.18203 14.1562 4.5 11.9841 4.5C10.7884 4.50212 9.60172 4.70543 8.47358 5.10141C8.45855 5.10664 8.4451 5.11561 8.4345 5.12747C8.42389 5.13934 8.41648 5.15371 8.41296 5.16923C8.40945 5.18475 8.40994 5.20091 8.41439 5.21619C8.41885 5.23147 8.42712 5.24536 8.43843 5.25656L9.44858 6.26672C9.4721 6.28984 9.5013 6.30634 9.53323 6.31457C9.56516 6.3228 9.5987 6.32246 9.63046 6.31359C10.3978 6.10602 11.1891 6.00058 11.9841 6C13.8914 6 15.7612 6.58266 17.5411 7.73438C19.1681 8.78438 20.6226 10.26 21.7486 12C21.7494 12.0011 21.7499 12.0024 21.7499 12.0037C21.7499 12.0051 21.7494 12.0064 21.7486 12.0075C20.9313 13.2942 19.9171 14.4446 18.743 15.4167C18.7329 15.425 18.7247 15.4353 18.7188 15.4469C18.713 15.4586 18.7096 15.4713 18.7089 15.4843C18.7083 15.4973 18.7103 15.5103 18.715 15.5225C18.7196 15.5347 18.7268 15.5457 18.7359 15.555L19.6687 16.4873C19.6852 16.504 19.7074 16.5139 19.7308 16.515C19.7543 16.5161 19.7773 16.5084 19.7953 16.4934C21.0487 15.4381 22.1337 14.1975 23.0128 12.8147C23.1682 12.571 23.2503 12.2878 23.2495 11.9988C23.2487 11.7098 23.1649 11.4272 23.0081 11.1844Z",fill:"currentColor"}),s.jsx("path",{d:"M12.0002 7.5C11.6632 7.49982 11.3271 7.53756 10.9985 7.6125C10.9819 7.61595 10.9666 7.62383 10.9541 7.63531C10.9416 7.64679 10.9325 7.66144 10.9277 7.6777C10.9229 7.69395 10.9226 7.71121 10.9268 7.72763C10.931 7.74405 10.9396 7.75901 10.9516 7.77094L16.2293 13.0472C16.2412 13.0592 16.2562 13.0678 16.2726 13.0721C16.289 13.0763 16.3063 13.076 16.3225 13.0712C16.3388 13.0663 16.3534 13.0572 16.3649 13.0447C16.3764 13.0323 16.3843 13.0169 16.3877 13.0003C16.538 12.3413 16.5379 11.6568 16.3873 10.9979C16.2368 10.3389 15.9397 9.72228 15.5182 9.19385C15.0967 8.66542 14.5615 8.23874 13.9525 7.9455C13.3435 7.65226 12.6762 7.49999 12.0002 7.5Z",fill:"currentColor"}),s.jsx("path",{d:"M7.77091 10.9526C7.75899 10.9406 7.74402 10.932 7.7276 10.9278C7.71118 10.9235 7.69392 10.9238 7.67767 10.9287C7.66141 10.9335 7.64676 10.9426 7.63528 10.9551C7.6238 10.9675 7.61592 10.9829 7.61247 10.9995C7.44248 11.7422 7.46382 12.5158 7.67451 13.248C7.88519 13.9801 8.27832 14.6468 8.81704 15.1855C9.35577 15.7243 10.0224 16.1174 10.7546 16.3281C11.4868 16.5388 12.2604 16.5601 13.0031 16.3901C13.0197 16.3867 13.035 16.3788 13.0475 16.3673C13.06 16.3558 13.0691 16.3412 13.0739 16.3249C13.0787 16.3087 13.0791 16.2914 13.0748 16.275C13.0706 16.2586 13.062 16.2436 13.05 16.2317L7.77091 10.9526Z",fill:"currentColor"})]}),Ha=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M6 12H18M6 6H18M6 18H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),xr=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),Cr=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",fill:"currentColor"})}),au=e=>s.jsx(ce.Laptop,{...e}),Nr=e=>s.jsx(ce.LogIn,{...e}),Vt=e=>s.jsxs("svg",{width:"48",height:"80",viewBox:"0 0 48 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M0 78.622V15.4757C0 14.1285 1.72603 13.5819 2.49497 14.6855L46.4899 77.8318C47.1262 78.7453 46.4759 79.9999 45.3664 79.9999H1.37144C0.614016 79.9999 0 79.3833 0 78.622Z",fill:"currentColor"}),s.jsx("path",{d:"M48 78.622V15.4757C48 14.1285 46.274 13.5819 45.505 14.6855L1.51006 77.8318C0.873795 78.7453 1.52406 79.9999 2.63359 79.9999H46.6285C47.386 79.9999 48 79.3833 48 78.622Z",fill:"currentColor"}),s.jsx("path",{d:"M23.3378 0.511435L21.3598 7.96401C21.2965 8.20239 21.1111 8.38861 20.8739 8.4522L13.4563 10.4396C12.7776 10.6214 12.7776 11.5891 13.4563 11.7709L20.8739 13.7583C21.1111 13.8218 21.2965 14.0081 21.3598 14.2464L23.3378 21.699C23.5188 22.3809 24.4819 22.3809 24.6629 21.699L26.6409 14.2464C26.7042 14.0081 26.8896 13.8218 27.1268 13.7583L34.5444 11.7709C35.2231 11.5891 35.2231 10.6214 34.5444 10.4396L27.1268 8.4522C26.8896 8.38861 26.7042 8.20239 26.6409 7.96401L24.6629 0.511435C24.4819 -0.170478 23.5188 -0.170478 23.3378 0.511435Z",fill:"currentColor"})]}),su=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M19 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),iu=e=>s.jsx(ce.Palette,{...e}),Sr=e=>s.jsx(ce.Users,{...e}),An=e=>s.jsx(ce.PencilLine,{...e}),Nt=e=>s.jsx(ce.UserRound,{...e}),lu=e=>s.jsxs("svg",{width:"36",height:"60",viewBox:"0 0 36 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("rect",{width:"36",height:"60",fill:"url(#pattern0_3714_3923)"}),s.jsxs("defs",{children:[s.jsx("pattern",{id:"pattern0_3714_3923",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:s.jsx("use",{xlinkHref:"#image0_3714_3923",transform:"matrix(0.0208333 0 0 0.0125 -0.5 -0.15)"})}),s.jsx("image",{id:"image0_3714_3923",width:"96",height:"96",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAACZUlEQVR4Ae2bUU7CUBBFqa6AFcBS2Jm4M5cCO2AH1X6QkEFqrrm9Q/WYGJ12mNt3Dk3aj7fZ8AMBCEAAAhCAAAQgAAEIQAACEIAABCDwXwgM6YXudrsxnanknc/nKJMX5eLo9RNAgJ+pNBEBEi5/MwL8TKWJCJBw+ZsR4GcqTUSAhMvfHH3m/e7yu98L0s/9lQF3QCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhGsEhIHXOARUIuEaAWHgNQ4BlUi4RkAYeI1DQCUSrhEQBl7jEFCJhOtWAfv9/hhe711c9zW83l1R6MC08HEc30JxczGH7XY7XC6Xj7mmpc61CHgi+FeubRLiAp4QfquEqIAnht8mISZgBfBbJEQErAh+XMLiAlYIPyph8T1i3XvArjR/+3fpPWStL2K/hfKXPoeAZpsIQEAzgeZ47gAENBNojucOaBaw+HuAe30/vVcs/dzuXg93gJuoOA8BIjB3OwLcRMV5CBCBudsR4CYqzkOACMzdjgA3UXEeAkRg7nYEuImK8xAgAnO3I8BNVJyHABGYux0BbqLiPASIwNztCHATFechQATmbkeAm6g4DwEiMHc7AtxExXkIEIG52xHgJirOQ4AIzN2OADdRcd7qBAzD8P5ojXPnHn2m+/jiO2TcC5z28077er/mHm5nT/BPp9Px9tga/l+dgAlqlbBW+Gv4gsxe47T/bPqdbeIkBCAAAQhA4EkJfAJCj18c5aGGIQAAAABJRU5ErkJggg=="})]})]}),cu=e=>s.jsx(ce.Plane,{...e}),du=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M12 5V19M19 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),uu=e=>s.jsx(ce.Salad,{...e}),Va=e=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"2"}),s.jsx("path",{d:"M20 20L16.5 16.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),kr=e=>s.jsx(ce.Settings,{...e}),fu={AddCircle:Xd,Bell:Wa,BookOpen:Zd,Calendar:za,Check:Ct,Code2:eu,Chevron:tu,ChevronDown:wn,ChevronLeft:Nn,ChevronRight:Sn,ChevronUp:$a,Close:kn,Dumbbell:Jd,Endless:nu,Eye:ru,EyeOff:ou,Flag:Rd,Flame:Ba,HamburgerMenu:Ha,Heart:xr,HeartFilled:Cr,Laptop:au,LogIn:Nr,Logo:Vt,Minus:su,Palette:iu,People:Sr,PencilLine:An,Person:Nt,Pin:lu,Plane:cu,Plus:du,Salad:uu,Search:Va,Settings:kr,Target:e=>s.jsx(ce.Target,{...e}),Trophy:e=>s.jsx(ce.Trophy,{...e})};function ja({name:e,size:t,width:n,height:r,...o}){const a=fu[e],i=n??t,l=r??t;return s.jsx(a,{width:i,height:l,...o})}function hu({baseSize:e,radius:t,strokeWidth:n,circumference:r,dashOffset:o,className:a}){return s.jsx("svg",{viewBox:`0 0 ${e} ${e}`,className:A("rounded-full",a),children:s.jsx("circle",{cx:e/2,cy:e/2,r:t,fill:"none",className:"stroke-main-800",strokeWidth:n,strokeDasharray:r,strokeDashoffset:o,transform:`rotate(-100 ${e/2} ${e/2})`,style:{transition:"stroke-dashoffset 800ms cubic-bezier(0.2, 0.7, 0.1, 1)"},strokeLinecap:"round"})})}const pu=[{key:"home",label:"홈"},{key:"explore",label:"탐색"},{key:"challenge",label:"챌린지"},{key:"diary",label:"일지"}];function gu({brandName:e="1D1S",logo:t,navItems:n=pu,activeKey:r="challenge",showProfile:o=!0,profileImage:a,showBackButton:i=!1,onBackClick:l,className:c,onLogoClick:d,onNavChange:u,onNotificationClick:f,onProfileClick:g}){const[v,b]=P.useState(!1),p=t??s.jsx(Vt,{className:"h-5 w-3.5 text-white","aria-hidden":!0}),m=s.jsx(s.Fragment,{children:n.map(w=>{const y=w.key===r;return s.jsx("li",{children:s.jsx("button",{type:"button",disabled:w.disabled,"aria-current":y?"page":void 0,onClick:()=>{u?.(w.key),b(!1)},className:A("cursor-pointer transition-colors",w.disabled&&"cursor-not-allowed opacity-50",!w.disabled&&"hover:text-main-700"),children:s.jsx(I,{size:"body2",weight:y?"bold":"medium",className:A(y?"text-main-800":"text-gray-600"),children:w.label})})},w.key)})});return s.jsxs("div",{className:"relative",children:[s.jsx("header",{className:A("w-full rounded-4 border border-gray-200 bg-white px-6 py-4",c),children:s.jsxs("div",{className:"flex items-center justify-between gap-5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-8",children:[i&&s.jsx(de,{type:"button",variant:"ghost",size:"icon",onClick:l,"aria-label":"뒤로가기",className:"shrink-0 cursor-pointer text-gray-700 hover:text-gray-900 lg:hidden",children:s.jsx(Nn,{className:"h-4 w-4"})}),s.jsxs("button",{type:"button",onClick:d,className:A("inline-flex shrink-0 cursor-pointer items-center gap-2",i&&"hidden lg:inline-flex"),"aria-label":"홈으로 이동",children:[s.jsx("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-3 bg-main-800",children:p}),s.jsx(I,{size:"heading2",weight:"bold",className:"text-gray-900",children:e})]}),s.jsx("nav",{className:"hidden min-w-0 overflow-x-auto lg:block","aria-label":"주요 메뉴",children:s.jsx("ul",{className:"flex items-center gap-6 whitespace-nowrap",children:m})})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[s.jsx(de,{type:"button",variant:"ghost",size:"icon",onClick:f,"aria-label":"알림",className:"cursor-pointer text-gray-700 hover:text-gray-900",children:s.jsx(Wa,{className:"h-4 w-4"})}),s.jsx(de,{type:"button",variant:"ghost",size:"icon","aria-label":"메뉴",onClick:()=>b(w=>!w),className:"cursor-pointer text-gray-700 hover:text-gray-900 lg:hidden",children:s.jsx(Ha,{className:"h-4 w-4"})}),o?s.jsx("button",{type:"button",onClick:g,"aria-label":"프로필 열기",className:"cursor-pointer rounded-full",children:s.jsx(xt,{imageUrl:a,size:"sm",className:"ring-2 ring-mint-900/30"})}):null]})]})}),s.jsx("div",{className:A("fixed inset-0 z-40 transition-opacity duration-200 lg:hidden",v?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onClick:()=>b(!1),"aria-hidden":!0}),s.jsx("nav",{className:A("absolute left-0 right-0 top-full z-50 mt-1 rounded-4 border border-gray-200 bg-white px-6 py-4 shadow-lg transition-opacity duration-200 lg:hidden",v?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),"aria-label":"모바일 메뉴",children:s.jsx("ul",{className:"flex flex-col gap-1",children:m})})]})}const mu="banner",vu="#FF6D2D",bu="#FF9A3E";function yu({items:e,autoSlideIntervalMs:t=5e3,initialIndex:n=0,enableLoop:r=!0,showIndicators:o=!0,aspectRatioClassName:a="aspect-[4/1]",minHeightPx:i=180,componentId:l,enableDataLayerTracking:c=!1,impressionMode:d="once",onBannerClick:u,onBannerImpression:f,onBannerChange:g,onItemClick:v,className:b,...p}){const m=e.length,w=i>0?`${i}px`:void 0,y=P.useMemo(()=>m===0||n<0?0:n>m-1?m-1:n,[n,m]),x=r&&m>1,N=P.useMemo(()=>{if(m===0)return[];if(!x)return e;const[O]=e,[T]=e.slice(-1);return[T,...e,O]},[x,m,e]),[S,M]=P.useState(x?y+1:y),[E,k]=P.useState(!0);P.useEffect(()=>{M(x?y+1:y)},[x,y,m]),P.useEffect(()=>{if(m<=1||t<=0)return;let O;const T=()=>{O=window.setInterval(()=>{M($=>$+1)},t)},_=()=>window.clearInterval(O),C=()=>{document.hidden?_():(k(!1),M($=>{const X=(($-(x?1:0)+m)%m+m)%m;return x?X+1:X}),T())};return T(),document.addEventListener("visibilitychange",C),()=>{_(),document.removeEventListener("visibilitychange",C)}},[t,x,m]),P.useEffect(()=>{if(E)return;const O=window.setTimeout(()=>{k(!0)},30);return()=>window.clearTimeout(O)},[E]);const z=m===0?0:((S-(x?1:0)+m)%m+m)%m,j=P.useRef(new Set),B=P.useCallback((O,T,_)=>{const C=T.id===void 0?`${_}`:String(T.id),$={event:O,componentId:l,bannerId:C,bannerIndex:_,bannerType:T.type,bannerTitle:T.title,bannerSubtitle:T.subtitle,timestamp:Date.now()};if(O==="click"&&u?.($),O==="impression"&&f?.($),O==="change"&&g?.($),c&&typeof window<"u"){const X=window;Array.isArray(X.dataLayer)&&X.dataLayer.push({event:`${mu}_${O}`,component_id:l??"banner-carousel",banner_id:$.bannerId,banner_index:$.bannerIndex,banner_type:$.bannerType,banner_title:$.bannerTitle,banner_subtitle:$.bannerSubtitle,timestamp:$.timestamp})}},[l,c,g,u,f]);P.useEffect(()=>{if(m===0)return;const O=e[z];if(!O)return;B("change",O,z);const T=`${O.id===void 0?`${z}`:String(O.id)}-${z}`,_=j.current.has(T);d==="once"&&_||(j.current.add(T),B("impression",O,z))},[z,B,d,m,e]);const Y=()=>{k(!0),M(O=>O-1)},K=()=>{k(!0),M(O=>O+1)},U=()=>{if(x){if(S===m+1){k(!1),M(1);return}S===0&&(k(!1),M(m))}};return m===0?null:s.jsx("div",{className:A("w-full",b),...p,children:s.jsxs("div",{className:"relative overflow-hidden rounded-4",children:[s.jsx("div",{className:A("flex",E&&"transition-transform duration-500 ease-out"),style:{transform:`translateX(-${S*100}%)`},onTransitionEnd:U,children:N.map((O,T)=>{const _=O.backgroundImageUrl??O.backgroundImage,C=!!(_&&_.trim().length>0),$=m===0?0:(T-(x?1:0)+m)%m,X=O.id===void 0?`${$}-${T}`:String(O.id);return s.jsxs("button",{type:"button",onClick:()=>{B("click",O,$),v?.(O,$)},"data-banner-id":O.id===void 0?`${$}`:String(O.id),"data-banner-index":$,"data-banner-type":O.type,"data-banner-title":O.title,"data-banner-image-url":_??"",className:A("relative w-full shrink-0 overflow-hidden p-4 pb-10 text-left text-white transition hover:brightness-105 sm:p-8 sm:pb-8","cursor-pointer",a),style:{backgroundImage:`linear-gradient(to right, ${vu}, ${bu})`,minHeight:w},children:[C?s.jsxs(s.Fragment,{children:[s.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${_})`}}),s.jsx("div",{className:"absolute inset-0 bg-black/28"})]}):null,s.jsx("div",{className:"pointer-events-none absolute -top-10 -right-8 h-36 w-36 rounded-full bg-white/15 blur-2xl"}),s.jsxs("div",{className:"relative flex h-full flex-col justify-between",children:[s.jsx(I,{size:"caption3",weight:"medium",className:"text-white/85",children:O.type}),s.jsxs("div",{className:"flex items-end justify-between gap-4",children:[s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(I,{size:"heading2",weight:"bold",className:"line-clamp-1 text-white sm:text-3xl",children:O.title}),s.jsx(I,{size:"caption1",weight:"medium",className:"line-clamp-1 text-white/90 sm:text-lg",children:O.subtitle})]}),s.jsx(I,{size:"heading2",weight:"bold",className:"text-white sm:text-3xl",children:"→"})]})]})]},`${X}-${T}`)})}),m>1?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:Y,className:"absolute top-1/2 left-2 z-10 -translate-y-1/2 cursor-pointer rounded-full bg-black/25 p-1.5 text-white transition hover:bg-black/40","aria-label":"이전 배너",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})})}),s.jsx("button",{type:"button",onClick:K,className:"absolute top-1/2 right-2 z-10 -translate-y-1/2 cursor-pointer rounded-full bg-black/25 p-1.5 text-white transition hover:bg-black/40","aria-label":"다음 배너",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})})]}):null,o?s.jsx("div",{className:"pointer-events-none absolute right-4 bottom-3 left-4 flex justify-center",children:s.jsx("div",{className:"pointer-events-auto flex items-center gap-2 rounded-full bg-black/25 px-2 py-1",children:e.map((O,T)=>s.jsx("button",{type:"button",onClick:()=>{k(!0),M(x?T+1:T)},className:A("h-2 cursor-pointer rounded-full transition-all",z===T?"w-5 bg-white":"w-2 bg-white/50 hover:bg-white/80"),"aria-label":`${T+1}번째 배너로 이동`},O.id===void 0?`${T}`:String(O.id)))})}):null]})})}const Ar=6048e5,wu=864e5,Ya=Symbol.for("constructDateFrom");function ue(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ya in e?e[Ya](t):e instanceof Date?new e.constructor(t):new Date(t)}function ee(e,t){return ue(t||e,e)}function pe(e,t,n){const r=ee(e,n?.in);return isNaN(t)?ue(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function _e(e,t,n){const r=ee(e,n?.in);if(isNaN(t))return ue(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),a=ue(n?.in||e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let xu={};function jt(){return xu}function ze(e,t){const n=jt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ee(e,t?.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function ut(e,t){return ze(e,{...t,weekStartsOn:1})}function Ga(e,t){const n=ee(e,t?.in),r=n.getFullYear(),o=ue(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=ut(o),i=ue(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const l=ut(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Pn(e){const t=ee(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 St(e,...t){const n=ue.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function kt(e,t){const n=ee(e,t?.in);return n.setHours(0,0,0,0),n}function Be(e,t,n){const[r,o]=St(n?.in,e,t),a=kt(r),i=kt(o),l=+a-Pn(a),c=+i-Pn(i);return Math.round((l-c)/wu)}function Cu(e,t){const n=Ga(e,t),r=ue(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ut(r)}function Pr(e,t,n){return pe(e,t*7,n)}function Nu(e,t,n){return _e(e,t*12,n)}function Su(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ue.bind(null,o));const a=ee(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),ue(r,n||NaN)}function ku(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ue.bind(null,o));const a=ee(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),ue(r,n||NaN)}function ye(e,t,n){const[r,o]=St(n?.in,e,t);return+kt(r)==+kt(o)}function Er(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Au(e){return!(!Er(e)&&typeof e!="number"||isNaN(+ee(e)))}function Yt(e,t,n){const[r,o]=St(n?.in,e,t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function Pu(e,t,n){const[r,o]=St(n?.in,e,t),a=ze(r,n),i=ze(o,n),l=+a-Pn(a),c=+i-Pn(i);return Math.round((l-c)/Ar)}function _r(e,t){const n=ee(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function we(e,t){const n=ee(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Ua(e,t){const n=ee(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Mr(e,t){const n=jt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ee(e,t?.in),a=o.getDay(),i=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function Ka(e,t){return Mr(e,{...t,weekStartsOn:1})}const Eu={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"}},_u=(e,t,n)=>{let r;const o=Eu[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function At(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Mu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Tu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Du={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ou={date:At({formats:Mu,defaultWidth:"full"}),time:At({formats:Tu,defaultWidth:"full"}),dateTime:At({formats:Du,defaultWidth:"full"})},Iu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Lu=(e,t,n,r)=>Iu[e];function $e(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{const i=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const Fu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Wu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zu={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"]},Bu={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"]},$u={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"}},Hu={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"}},Vu={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:$e({values:Fu,defaultWidth:"wide"}),quarter:$e({values:Wu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$e({values:zu,defaultWidth:"wide"}),day:$e({values:Bu,defaultWidth:"wide"}),dayPeriod:$e({values:$u,defaultWidth:"wide",formattingValues:Hu,defaultFormattingWidth:"wide"})};function He(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Yu(l,f=>f.test(i)):ju(l,f=>f.test(i));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(i.length);return{value:d,rest:u}}}function ju(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Yu(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Qa(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const l=t.slice(o.length);return{value:i,rest:l}}}const Gu=/^(\d+)(th|st|nd|rd)?/i,Uu=/\d+/i,Ku={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},Qu={any:[/^b/i,/^(a|c)/i]},qu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Xu={any:[/1/i,/2/i,/3/i,/4/i]},Zu={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},Ju={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]},Ru={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},ef={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]},tf={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},nf={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}},rf={ordinalNumber:Qa({matchPattern:Gu,parsePattern:Uu,valueCallback:e=>parseInt(e,10)}),era:He({matchPatterns:Ku,defaultMatchWidth:"wide",parsePatterns:Qu,defaultParseWidth:"any"}),quarter:He({matchPatterns:qu,defaultMatchWidth:"wide",parsePatterns:Xu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:He({matchPatterns:Zu,defaultMatchWidth:"wide",parsePatterns:Ju,defaultParseWidth:"any"}),day:He({matchPatterns:Ru,defaultMatchWidth:"wide",parsePatterns:ef,defaultParseWidth:"any"}),dayPeriod:He({matchPatterns:tf,defaultMatchWidth:"any",parsePatterns:nf,defaultParseWidth:"any"})},qa={code:"en-US",formatDistance:_u,formatLong:Ou,formatRelative:Lu,localize:Vu,match:rf,options:{weekStartsOn:0,firstWeekContainsDate:1}};function of(e,t){const n=ee(e,t?.in);return Be(n,Ua(n))+1}function Xa(e,t){const n=ee(e,t?.in),r=+ut(n)-+Cu(n);return Math.round(r/Ar)+1}function Za(e,t){const n=ee(e,t?.in),r=n.getFullYear(),o=jt(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=ue(t?.in||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=ze(i,t),c=ue(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const d=ze(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function af(e,t){const n=jt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Za(e,t),a=ue(t?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),ze(a,t)}function Ja(e,t){const n=ee(e,t?.in),r=+ze(n,t)-+af(n,t);return Math.round(r/Ar)+1}function te(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Je={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return te(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):te(n+1,2)},d(e,t){return te(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 te(e.getHours()%12||12,t.length)},H(e,t){return te(e.getHours(),t.length)},m(e,t){return te(e.getMinutes(),t.length)},s(e,t){return te(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return te(o,t.length)}},Pt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ra={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(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Je.y(e,t)},Y:function(e,t,n,r){const o=Za(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return te(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):te(a,t.length)},R:function(e,t){const n=Ga(e);return te(n,t.length)},u:function(e,t){const n=e.getFullYear();return te(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 te(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 te(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 Je.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 te(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 o=Ja(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):te(o,t.length)},I:function(e,t,n){const r=Xa(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):te(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Je.d(e,t)},D:function(e,t,n){const r=of(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):te(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 o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return te(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return te(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return te(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Pt.noon:r===0?o=Pt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Pt.evening:r>=12?o=Pt.afternoon:r>=4?o=Pt.morning:o=Pt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Je.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Je.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):te(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):te(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Je.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Je.s(e,t)},S:function(e,t){return Je.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return ts(r);case"XXXX":case"XX":return ft(r);default:return ft(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ts(r);case"xxxx":case"xx":return ft(r);default:return ft(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+es(r,":");default:return"GMT"+ft(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+es(r,":");default:return"GMT"+ft(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return te(r,t.length)},T:function(e,t,n){return te(+e,t.length)}};function es(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+te(a,2)}function ts(e,t){return e%60===0?(e>0?"-":"+")+te(Math.abs(e)/60,2):ft(e,t)}function ft(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=te(Math.trunc(r/60),2),a=te(r%60,2);return n+o+t+a}const ns=(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"})}},rs=(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"})}},sf={p:rs,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ns(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",ns(r,t)).replace("{{time}}",rs(o,t))}},lf=/^D+$/,cf=/^Y+$/,df=["D","DD","YY","YYYY"];function uf(e){return lf.test(e)}function ff(e){return cf.test(e)}function hf(e,t,n){const r=pf(e,t,n);if(console.warn(r),df.includes(e))throw new RangeError(r)}function pf(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 gf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vf=/^'([^]*?)'?$/,bf=/''/g,yf=/[a-zA-Z]/;function Me(e,t,n){const r=jt(),o=n?.locale??r.locale??qa,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=ee(e,n?.in);if(!Au(l))throw new RangeError("Invalid time value");let c=t.match(mf).map(u=>{const f=u[0];if(f==="p"||f==="P"){const g=sf[f];return g(u,o.formatLong)}return u}).join("").match(gf).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:wf(u)};if(Ra[f])return{isToken:!0,value:u};if(f.match(yf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&ff(f)||!n?.useAdditionalDayOfYearTokens&&uf(f))&&hf(f,t,String(e));const g=Ra[f[0]];return g(l,f,o.localize,d)}).join("")}function wf(e){const t=e.match(vf);return t?t[1].replace(bf,"'"):e}function xf(e,t){const n=ee(e,t?.in),r=n.getFullYear(),o=n.getMonth(),a=ue(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Cf(e){return Math.trunc(+ee(e)/1e3)}function Nf(e,t){const n=ee(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),ee(n,t?.in)}function Sf(e,t){const n=ee(e,t?.in);return Pu(Nf(n,t),we(n,t),t)+1}function Tr(e,t){return+ee(e)>+ee(t)}function os(e,t){return+ee(e)<+ee(t)}function Dr(e,t,n){const[r,o]=St(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function kf(e,t,n){const[r,o]=St(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function Or(e,t,n){return pe(e,-t,n)}function Ir(e,t,n){const r=ee(e,n?.in),o=r.getFullYear(),a=r.getDate(),i=ue(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const l=xf(i);return r.setMonth(t,Math.min(a,l)),r}function as(e,t,n){const r=ee(e,n?.in);return isNaN(+r)?ue(e,NaN):(r.setFullYear(t),r)}const Af={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Pf=(e,t,n)=>{let r;const o=Af[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" 후":r+" 전":r},Ef={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},_f={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Mf={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Tf={date:At({formats:Ef,defaultWidth:"full"}),time:At({formats:_f,defaultWidth:"full"}),dateTime:At({formats:Mf,defaultWidth:"full"})},Df={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Of=(e,t,n,r)=>Df[e],If={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},Lf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},Ff={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},Wf={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},zf={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Bf={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},$f={ordinalNumber:(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},era:$e({values:If,defaultWidth:"wide"}),quarter:$e({values:Lf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$e({values:Ff,defaultWidth:"wide"}),day:$e({values:Wf,defaultWidth:"wide"}),dayPeriod:$e({values:zf,defaultWidth:"wide",formattingValues:Bf,defaultFormattingWidth:"wide"})},Hf=/^(\d+)(일|번째)?/i,Vf=/\d+/i,jf={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},Yf={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},Gf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},Uf={any:[/1/i,/2/i,/3/i,/4/i]},Kf={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},Qf={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},qf={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Xf={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},Zf={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},Jf={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},Rf={ordinalNumber:Qa({matchPattern:Hf,parsePattern:Vf,valueCallback:e=>parseInt(e,10)}),era:He({matchPatterns:jf,defaultMatchWidth:"wide",parsePatterns:Yf,defaultParseWidth:"any"}),quarter:He({matchPatterns:Gf,defaultMatchWidth:"wide",parsePatterns:Uf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:He({matchPatterns:Kf,defaultMatchWidth:"wide",parsePatterns:Qf,defaultParseWidth:"any"}),day:He({matchPatterns:qf,defaultMatchWidth:"wide",parsePatterns:Xf,defaultParseWidth:"any"}),dayPeriod:He({matchPatterns:Zf,defaultMatchWidth:"any",parsePatterns:Jf,defaultParseWidth:"any"})},eh={code:"ko",formatDistance:Pf,formatLong:Tf,formatRelative:Of,localize:$f,match:Rf,options:{weekStartsOn:0,firstWeekContainsDate:1}};var H=function(){return H=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},H.apply(this,arguments)};function th(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ss(e,t,n){for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Gt(e){return e.mode==="multiple"}function Ut(e){return e.mode==="range"}function En(e){return e.mode==="single"}var nh={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function rh(e,t){return Me(e,"LLLL y",t)}function oh(e,t){return Me(e,"d",t)}function ah(e,t){return Me(e,"LLLL",t)}function sh(e){return"".concat(e)}function ih(e,t){return Me(e,"cccccc",t)}function lh(e,t){return Me(e,"yyyy",t)}var ch=Object.freeze({__proto__:null,formatCaption:rh,formatDay:oh,formatMonthCaption:ah,formatWeekNumber:sh,formatWeekdayName:ih,formatYearCaption:lh}),dh=function(e,t,n){return Me(e,"do MMMM (EEEE)",n)},uh=function(){return"Month: "},fh=function(){return"Go to next month"},hh=function(){return"Go to previous month"},ph=function(e,t){return Me(e,"cccc",t)},gh=function(e){return"Week n. ".concat(e)},mh=function(){return"Year: "},vh=Object.freeze({__proto__:null,labelDay:dh,labelMonthDropdown:uh,labelNext:fh,labelPrevious:hh,labelWeekNumber:gh,labelWeekday:ph,labelYearDropdown:mh});function bh(){var e="buttons",t=nh,n=qa,r={},o={},a=1,i={},l=new Date;return{captionLayout:e,classNames:t,formatters:ch,labels:vh,locale:n,modifiersClassNames:r,modifiers:o,numberOfMonths:a,styles:i,today:l,mode:"default"}}function yh(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,i=e.toDate;return r?a=we(r):t&&(a=new Date(t,0,1)),o?i=_r(o):n&&(i=new Date(n,11,31)),{fromDate:a?kt(a):void 0,toDate:i?kt(i):void 0}}var is=P.createContext(void 0);function wh(e){var t,n=e.initialProps,r=bh(),o=yh(n),a=o.fromDate,i=o.toDate,l=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;l!=="buttons"&&(!a||!i)&&(l="buttons");var c;(En(n)||Gt(n)||Ut(n))&&(c=n.onSelect);var d=H(H(H({},r),n),{captionLayout:l,classNames:H(H({},r.classNames),n.classNames),components:H({},n.components),formatters:H(H({},r.formatters),n.formatters),fromDate:a,labels:H(H({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:H(H({},r.modifiers),n.modifiers),modifiersClassNames:H(H({},r.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:H(H({},r.styles),n.styles),toDate:i});return s.jsx(is.Provider,{value:d,children:e.children})}function oe(){var e=P.useContext(is);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function ls(e){var t=oe(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return s.jsx("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function xh(e){return s.jsx("svg",H({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:s.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function cs(e){var t,n,r=e.onChange,o=e.value,a=e.children,i=e.caption,l=e.className,c=e.style,d=oe(),u=(n=(t=d.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:xh;return s.jsxs("div",{className:l,style:c,children:[s.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),s.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:o,onChange:r,children:a}),s.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[i,s.jsx(u,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function Ch(e){var t,n=oe(),r=n.fromDate,o=n.toDate,a=n.styles,i=n.locale,l=n.formatters.formatMonthCaption,c=n.classNames,d=n.components,u=n.labels.labelMonthDropdown;if(!r)return s.jsx(s.Fragment,{});if(!o)return s.jsx(s.Fragment,{});var f=[];if(kf(r,o))for(var g=we(r),v=r.getMonth();v<=o.getMonth();v++)f.push(Ir(g,v));else for(var g=we(new Date),v=0;v<=11;v++)f.push(Ir(g,v));var b=function(m){var w=Number(m.target.value),y=Ir(we(e.displayMonth),w);e.onChange(y)},p=(t=d?.Dropdown)!==null&&t!==void 0?t:cs;return s.jsx(p,{name:"months","aria-label":u(),className:c.dropdown_month,style:a.dropdown_month,onChange:b,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:i}),children:f.map(function(m){return s.jsx("option",{value:m.getMonth(),children:l(m,{locale:i})},m.getMonth())})})}function Nh(e){var t,n=e.displayMonth,r=oe(),o=r.fromDate,a=r.toDate,i=r.locale,l=r.styles,c=r.classNames,d=r.components,u=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,g=[];if(!o)return s.jsx(s.Fragment,{});if(!a)return s.jsx(s.Fragment,{});for(var v=o.getFullYear(),b=a.getFullYear(),p=v;p<=b;p++)g.push(as(Ua(new Date),p));var m=function(y){var x=as(we(n),Number(y.target.value));e.onChange(x)},w=(t=d?.Dropdown)!==null&&t!==void 0?t:cs;return s.jsx(w,{name:"years","aria-label":f(),className:c.dropdown_year,style:l.dropdown_year,onChange:m,value:n.getFullYear(),caption:u(n,{locale:i}),children:g.map(function(y){return s.jsx("option",{value:y.getFullYear(),children:u(y,{locale:i})},y.getFullYear())})})}function Sh(e,t){var n=P.useState(e),r=n[0],o=n[1],a=t===void 0?r:t;return[a,o]}function kh(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,i=e.fromDate,l=e.numberOfMonths,c=l===void 0?1:l;if(a&&Yt(a,o)<0){var d=-1*(c-1);o=_e(a,d)}return i&&Yt(o,i)<0&&(o=i),we(o)}function Ah(){var e=oe(),t=kh(e),n=Sh(t,e.month),r=n[0],o=n[1],a=function(i){var l;if(!e.disableNavigation){var c=we(i);o(c),(l=e.onMonthChange)===null||l===void 0||l.call(e,c)}};return[r,a]}function Ph(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=we(e),a=we(_e(o,r)),i=Yt(a,o),l=[],c=0;c<i;c++){var d=_e(o,c);l.push(d)}return n&&(l=l.reverse()),l}function Eh(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,i=r?a:1,l=we(e);if(!n)return _e(l,i);var c=Yt(n,e);if(!(c<a))return _e(l,i)}}function _h(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,i=r?a:1,l=we(e);if(!n)return _e(l,-i);var c=Yt(l,n);if(!(c<=0))return _e(l,-i)}}var ds=P.createContext(void 0);function Mh(e){var t=oe(),n=Ah(),r=n[0],o=n[1],a=Ph(r,t),i=Eh(r,t),l=_h(r,t),c=function(f){return a.some(function(g){return Dr(f,g)})},d=function(f,g){c(f)||(g&&os(f,g)?o(_e(f,1+t.numberOfMonths*-1)):o(f))},u={currentMonth:r,displayMonths:a,goToMonth:o,goToDate:d,previousMonth:l,nextMonth:i,isDateDisplayed:c};return s.jsx(ds.Provider,{value:u,children:e.children})}function Kt(){var e=P.useContext(ds);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function us(e){var t,n=oe(),r=n.classNames,o=n.styles,a=n.components,i=Kt().goToMonth,l=function(u){i(_e(u,e.displayIndex?-e.displayIndex:0))},c=(t=a?.CaptionLabel)!==null&&t!==void 0?t:ls,d=s.jsx(c,{id:e.id,displayMonth:e.displayMonth});return s.jsxs("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[s.jsx("div",{className:r.vhidden,children:d}),s.jsx(Ch,{onChange:l,displayMonth:e.displayMonth}),s.jsx(Nh,{onChange:l,displayMonth:e.displayMonth})]})}function Th(e){return s.jsx("svg",H({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:s.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Dh(e){return s.jsx("svg",H({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:s.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var _n=P.forwardRef(function(e,t){var n=oe(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var i=a.join(" "),l=H(H({},o.button_reset),o.button);return e.style&&Object.assign(l,e.style),s.jsx("button",H({},e,{ref:t,type:"button",className:i,style:l}))});function Oh(e){var t,n,r=oe(),o=r.dir,a=r.locale,i=r.classNames,l=r.styles,c=r.labels,d=c.labelPrevious,u=c.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return s.jsx(s.Fragment,{});var g=d(e.previousMonth,{locale:a}),v=[i.nav_button,i.nav_button_previous].join(" "),b=u(e.nextMonth,{locale:a}),p=[i.nav_button,i.nav_button_next].join(" "),m=(t=f?.IconRight)!==null&&t!==void 0?t:Dh,w=(n=f?.IconLeft)!==null&&n!==void 0?n:Th;return s.jsxs("div",{className:i.nav,style:l.nav,children:[!e.hidePrevious&&s.jsx(_n,{name:"previous-month","aria-label":g,className:v,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?s.jsx(m,{className:i.nav_icon,style:l.nav_icon}):s.jsx(w,{className:i.nav_icon,style:l.nav_icon})}),!e.hideNext&&s.jsx(_n,{name:"next-month","aria-label":b,className:p,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?s.jsx(w,{className:i.nav_icon,style:l.nav_icon}):s.jsx(m,{className:i.nav_icon,style:l.nav_icon})})]})}function fs(e){var t=oe().numberOfMonths,n=Kt(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,i=n.displayMonths,l=i.findIndex(function(b){return Dr(e.displayMonth,b)}),c=l===0,d=l===i.length-1,u=t>1&&(c||!d),f=t>1&&(d||!c),g=function(){r&&a(r)},v=function(){o&&a(o)};return s.jsx(Oh,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:f,nextMonth:o,previousMonth:r,onPreviousClick:g,onNextClick:v})}function Ih(e){var t,n=oe(),r=n.classNames,o=n.disableNavigation,a=n.styles,i=n.captionLayout,l=n.components,c=(t=l?.CaptionLabel)!==null&&t!==void 0?t:ls,d;return o?d=s.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?d=s.jsx(us,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?d=s.jsxs(s.Fragment,{children:[s.jsx(us,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),s.jsx(fs,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):d=s.jsxs(s.Fragment,{children:[s.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),s.jsx(fs,{displayMonth:e.displayMonth,id:e.id})]}),s.jsx("div",{className:r.caption,style:a.caption,children:d})}function Lh(e){var t=oe(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?s.jsx("tfoot",{className:o,style:r.tfoot,children:s.jsx("tr",{children:s.jsx("td",{colSpan:8,children:n})})}):s.jsx(s.Fragment,{})}function Fh(e,t,n){for(var r=n?ut(new Date):ze(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=pe(r,a);o.push(i)}return o}function Wh(){var e=oe(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,i=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,d=Fh(o,a,i);return s.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&s.jsx("td",{style:n.head_cell,className:t.head_cell}),d.map(function(u,f){return s.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":c(u,{locale:o}),children:l(u,{locale:o})},f)})]})}function zh(){var e,t=oe(),n=t.classNames,r=t.styles,o=t.components,a=(e=o?.HeadRow)!==null&&e!==void 0?e:Wh;return s.jsx("thead",{style:r.head,className:n.head,children:s.jsx(a,{})})}function Bh(e){var t=oe(),n=t.locale,r=t.formatters.formatDay;return s.jsx(s.Fragment,{children:r(e.date,{locale:n})})}var Lr=P.createContext(void 0);function $h(e){if(!Gt(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return s.jsx(Lr.Provider,{value:t,children:e.children})}return s.jsx(Hh,{initialProps:e.initialProps,children:e.children})}function Hh(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,i=function(d,u,f){var g,v;(g=t.onDayClick)===null||g===void 0||g.call(t,d,u,f);var b=!!(u.selected&&o&&r?.length===o);if(!b){var p=!!(!u.selected&&a&&r?.length===a);if(!p){var m=r?ss([],r):[];if(u.selected){var w=m.findIndex(function(y){return ye(d,y)});m.splice(w,1)}else m.push(d);(v=t.onSelect)===null||v===void 0||v.call(t,m,d,u,f)}}},l={disabled:[]};r&&l.disabled.push(function(d){var u=a&&r.length>a-1,f=r.some(function(g){return ye(g,d)});return!!(u&&!f)});var c={selected:r,onDayClick:i,modifiers:l};return s.jsx(Lr.Provider,{value:c,children:n})}function Fr(){var e=P.useContext(Lr);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Vh(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?ye(o,e)&&ye(r,e)?void 0:ye(o,e)?{from:o,to:void 0}:ye(r,e)?void 0:Tr(r,e)?{from:e,to:o}:{from:r,to:e}:o?Tr(e,o)?{from:o,to:e}:{from:e,to:o}:r?os(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var Wr=P.createContext(void 0);function jh(e){if(!Ut(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return s.jsx(Wr.Provider,{value:t,children:e.children})}return s.jsx(Yh,{initialProps:e.initialProps,children:e.children})}function Yh(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,i=o.to,l=t.min,c=t.max,d=function(v,b,p){var m,w;(m=t.onDayClick)===null||m===void 0||m.call(t,v,b,p);var y=Vh(v,r);(w=t.onSelect)===null||w===void 0||w.call(t,y,v,b,p)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],i?(u.range_end=[i],ye(a,i)||(u.range_middle=[{after:a,before:i}])):u.range_end=[a]):i&&(u.range_start=[i],u.range_end=[i]),l&&(a&&!i&&u.disabled.push({after:Or(a,l-1),before:pe(a,l-1)}),a&&i&&u.disabled.push({after:a,before:pe(a,l-1)}),!a&&i&&u.disabled.push({after:Or(i,l-1),before:pe(i,l-1)})),c){if(a&&!i&&(u.disabled.push({before:pe(a,-c+1)}),u.disabled.push({after:pe(a,c-1)})),a&&i){var f=Be(i,a)+1,g=c-f;u.disabled.push({before:Or(a,g)}),u.disabled.push({after:pe(i,g)})}!a&&i&&(u.disabled.push({before:pe(i,-c+1)}),u.disabled.push({after:pe(i,c-1)}))}return s.jsx(Wr.Provider,{value:{selected:r,onDayClick:d,modifiers:u},children:n})}function zr(){var e=P.useContext(Wr);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Mn(e){return Array.isArray(e)?ss([],e):e!==void 0?[e]:[]}function Gh(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=Mn(o)}),t}var Te;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Te||(Te={}));var Uh=Te.Selected,Qe=Te.Disabled,Kh=Te.Hidden,Qh=Te.Today,Br=Te.RangeEnd,$r=Te.RangeMiddle,Hr=Te.RangeStart,qh=Te.Outside;function Xh(e,t,n){var r,o=(r={},r[Uh]=Mn(e.selected),r[Qe]=Mn(e.disabled),r[Kh]=Mn(e.hidden),r[Qh]=[e.today],r[Br]=[],r[$r]=[],r[Hr]=[],r[qh]=[],r);return e.fromDate&&o[Qe].push({before:e.fromDate}),e.toDate&&o[Qe].push({after:e.toDate}),Gt(e)?o[Qe]=o[Qe].concat(t.modifiers[Qe]):Ut(e)&&(o[Qe]=o[Qe].concat(n.modifiers[Qe]),o[Hr]=n.modifiers[Hr],o[$r]=n.modifiers[$r],o[Br]=n.modifiers[Br]),o}var hs=P.createContext(void 0);function Zh(e){var t=oe(),n=Fr(),r=zr(),o=Xh(t,n,r),a=Gh(t.modifiers),i=H(H({},o),a);return s.jsx(hs.Provider,{value:i,children:e.children})}function ps(){var e=P.useContext(hs);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Jh(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Rh(e){return!!(e&&typeof e=="object"&&"from"in e)}function ep(e){return!!(e&&typeof e=="object"&&"after"in e)}function tp(e){return!!(e&&typeof e=="object"&&"before"in e)}function np(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function rp(e,t){var n,r=t.from,o=t.to;if(r&&o){var a=Be(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var i=Be(e,r)>=0&&Be(o,e)>=0;return i}return o?ye(o,e):r?ye(r,e):!1}function op(e){return Er(e)}function ap(e){return Array.isArray(e)&&e.every(Er)}function sp(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(op(n))return ye(e,n);if(ap(n))return n.includes(e);if(Rh(n))return rp(e,n);if(np(n))return n.dayOfWeek.includes(e.getDay());if(Jh(n)){var r=Be(n.before,e),o=Be(n.after,e),a=r>0,i=o<0,l=Tr(n.before,n.after);return l?i&&a:a||i}return ep(n)?Be(e,n.after)>0:tp(n)?Be(n.before,e)>0:typeof n=="function"?n(e):!1})}function Vr(e,t,n){var r=Object.keys(t).reduce(function(a,i){var l=t[i];return sp(e,l)&&a.push(i),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),n&&!Dr(e,n)&&(o.outside=!0),o}function ip(e,t){for(var n=we(e[0]),r=_r(e[e.length-1]),o,a,i=n;i<=r;){var l=Vr(i,t),c=!l.disabled&&!l.hidden;if(!c){i=pe(i,1);continue}if(l.selected)return i;l.today&&!a&&(a=i),o||(o=i),i=pe(i,1)}return a||o}var lp=365;function gs(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,i=t.retry,l=i===void 0?{count:0,lastFocused:e}:i,c=o.weekStartsOn,d=o.fromDate,u=o.toDate,f=o.locale,g={day:pe,week:Pr,month:_e,year:Nu,startOfWeek:function(m){return o.ISOWeek?ut(m):ze(m,{locale:f,weekStartsOn:c})},endOfWeek:function(m){return o.ISOWeek?Ka(m):Mr(m,{locale:f,weekStartsOn:c})}},v=g[n](e,r==="after"?1:-1);r==="before"&&d?v=Su([d,v]):r==="after"&&u&&(v=ku([u,v]));var b=!0;if(a){var p=Vr(v,a);b=!p.disabled&&!p.hidden}return b?v:l.count>lp?l.lastFocused:gs(v,{moveBy:n,direction:r,context:o,modifiers:a,retry:H(H({},l),{count:l.count+1})})}var ms=P.createContext(void 0);function cp(e){var t=Kt(),n=ps(),r=P.useState(),o=r[0],a=r[1],i=P.useState(),l=i[0],c=i[1],d=ip(t.displayMonths,n),u=o??(l&&t.isDateDisplayed(l))?l:d,f=function(){c(o),a(void 0)},g=function(m){a(m)},v=oe(),b=function(m,w){if(o){var y=gs(o,{moveBy:m,direction:w,context:v,modifiers:n});ye(o,y)||(t.goToDate(y,o),g(y))}},p={focusedDay:o,focusTarget:u,blur:f,focus:g,focusDayAfter:function(){return b("day","after")},focusDayBefore:function(){return b("day","before")},focusWeekAfter:function(){return b("week","after")},focusWeekBefore:function(){return b("week","before")},focusMonthBefore:function(){return b("month","before")},focusMonthAfter:function(){return b("month","after")},focusYearBefore:function(){return b("year","before")},focusYearAfter:function(){return b("year","after")},focusStartOfWeek:function(){return b("startOfWeek","before")},focusEndOfWeek:function(){return b("endOfWeek","after")}};return s.jsx(ms.Provider,{value:p,children:e.children})}function jr(){var e=P.useContext(ms);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function dp(e,t){var n=ps(),r=Vr(e,n,t);return r}var Yr=P.createContext(void 0);function up(e){if(!En(e.initialProps)){var t={selected:void 0};return s.jsx(Yr.Provider,{value:t,children:e.children})}return s.jsx(fp,{initialProps:e.initialProps,children:e.children})}function fp(e){var t=e.initialProps,n=e.children,r=function(a,i,l){var c,d,u;if((c=t.onDayClick)===null||c===void 0||c.call(t,a,i,l),i.selected&&!t.required){(d=t.onSelect)===null||d===void 0||d.call(t,void 0,a,i,l);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,i,l)},o={selected:t.selected,onDayClick:r};return s.jsx(Yr.Provider,{value:o,children:n})}function vs(){var e=P.useContext(Yr);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function hp(e,t){var n=oe(),r=vs(),o=Fr(),a=zr(),i=jr(),l=i.focusDayAfter,c=i.focusDayBefore,d=i.focusWeekAfter,u=i.focusWeekBefore,f=i.blur,g=i.focus,v=i.focusMonthBefore,b=i.focusMonthAfter,p=i.focusYearBefore,m=i.focusYearAfter,w=i.focusStartOfWeek,y=i.focusEndOfWeek,x=function(_){var C,$,X,he;En(n)?(C=r.onDayClick)===null||C===void 0||C.call(r,e,t,_):Gt(n)?($=o.onDayClick)===null||$===void 0||$.call(o,e,t,_):Ut(n)?(X=a.onDayClick)===null||X===void 0||X.call(a,e,t,_):(he=n.onDayClick)===null||he===void 0||he.call(n,e,t,_)},N=function(_){var C;g(e),(C=n.onDayFocus)===null||C===void 0||C.call(n,e,t,_)},S=function(_){var C;f(),(C=n.onDayBlur)===null||C===void 0||C.call(n,e,t,_)},M=function(_){var C;(C=n.onDayMouseEnter)===null||C===void 0||C.call(n,e,t,_)},E=function(_){var C;(C=n.onDayMouseLeave)===null||C===void 0||C.call(n,e,t,_)},k=function(_){var C;(C=n.onDayPointerEnter)===null||C===void 0||C.call(n,e,t,_)},z=function(_){var C;(C=n.onDayPointerLeave)===null||C===void 0||C.call(n,e,t,_)},j=function(_){var C;(C=n.onDayTouchCancel)===null||C===void 0||C.call(n,e,t,_)},B=function(_){var C;(C=n.onDayTouchEnd)===null||C===void 0||C.call(n,e,t,_)},Y=function(_){var C;(C=n.onDayTouchMove)===null||C===void 0||C.call(n,e,t,_)},K=function(_){var C;(C=n.onDayTouchStart)===null||C===void 0||C.call(n,e,t,_)},U=function(_){var C;(C=n.onDayKeyUp)===null||C===void 0||C.call(n,e,t,_)},O=function(_){var C;switch(_.key){case"ArrowLeft":_.preventDefault(),_.stopPropagation(),n.dir==="rtl"?l():c();break;case"ArrowRight":_.preventDefault(),_.stopPropagation(),n.dir==="rtl"?c():l();break;case"ArrowDown":_.preventDefault(),_.stopPropagation(),d();break;case"ArrowUp":_.preventDefault(),_.stopPropagation(),u();break;case"PageUp":_.preventDefault(),_.stopPropagation(),_.shiftKey?p():v();break;case"PageDown":_.preventDefault(),_.stopPropagation(),_.shiftKey?m():b();break;case"Home":_.preventDefault(),_.stopPropagation(),w();break;case"End":_.preventDefault(),_.stopPropagation(),y();break}(C=n.onDayKeyDown)===null||C===void 0||C.call(n,e,t,_)},T={onClick:x,onFocus:N,onBlur:S,onKeyDown:O,onKeyUp:U,onMouseEnter:M,onMouseLeave:E,onPointerEnter:k,onPointerLeave:z,onTouchCancel:j,onTouchEnd:B,onTouchMove:Y,onTouchStart:K};return T}function pp(){var e=oe(),t=vs(),n=Fr(),r=zr(),o=En(e)?t.selected:Gt(e)?n.selected:Ut(e)?r.selected:void 0;return o}function gp(e){return Object.values(Te).includes(e)}function mp(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(gp(r)){var a=e.classNames["day_".concat(r)];a&&n.push(a)}}),n}function vp(e,t){var n=H({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=H(H({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function bp(e,t,n){var r,o,a,i=oe(),l=jr(),c=dp(e,t),d=hp(e,c),u=pp(),f=!!(i.onDayClick||i.mode!=="default");P.useEffect(function(){var M;c.outside||l.focusedDay&&f&&ye(l.focusedDay,e)&&((M=n.current)===null||M===void 0||M.focus())},[l.focusedDay,e,n,f,c.outside]);var g=mp(i,c).join(" "),v=vp(i,c),b=!!(c.outside&&!i.showOutsideDays||c.hidden),p=(a=(o=i.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:Bh,m=s.jsx(p,{date:e,displayMonth:t,activeModifiers:c}),w={style:v,className:g,children:m,role:"gridcell"},y=l.focusTarget&&ye(l.focusTarget,e)&&!c.outside,x=l.focusedDay&&ye(l.focusedDay,e),N=H(H(H({},w),(r={disabled:c.disabled,role:"gridcell"},r["aria-selected"]=c.selected,r.tabIndex=x||y?0:-1,r)),d),S={isButton:f,isHidden:b,activeModifiers:c,selectedDays:u,buttonProps:N,divProps:w};return S}function yp(e){var t=P.useRef(null),n=bp(e.date,e.displayMonth,t);return n.isHidden?s.jsx("div",{role:"gridcell"}):n.isButton?s.jsx(_n,H({name:"day",ref:t},n.buttonProps)):s.jsx("div",H({},n.divProps))}function wp(e){var t=e.number,n=e.dates,r=oe(),o=r.onWeekNumberClick,a=r.styles,i=r.classNames,l=r.locale,c=r.labels.labelWeekNumber,d=r.formatters.formatWeekNumber,u=d(Number(t),{locale:l});if(!o)return s.jsx("span",{className:i.weeknumber,style:a.weeknumber,children:u});var f=c(Number(t),{locale:l}),g=function(v){o(t,n,v)};return s.jsx(_n,{name:"week-number","aria-label":f,className:i.weeknumber,style:a.weeknumber,onClick:g,children:u})}function xp(e){var t,n,r=oe(),o=r.styles,a=r.classNames,i=r.showWeekNumber,l=r.components,c=(t=l?.Day)!==null&&t!==void 0?t:yp,d=(n=l?.WeekNumber)!==null&&n!==void 0?n:wp,u;return i&&(u=s.jsx("td",{className:a.cell,style:o.cell,children:s.jsx(d,{number:e.weekNumber,dates:e.dates})})),s.jsxs("tr",{className:a.row,style:o.row,children:[u,e.dates.map(function(f){return s.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:s.jsx(c,{displayMonth:e.displayMonth,date:f})},Cf(f))})]})}function bs(e,t,n){for(var r=n?.ISOWeek?Ka(t):Mr(t,n),o=n?.ISOWeek?ut(e):ze(e,n),a=Be(r,o),i=[],l=0;l<=a;l++)i.push(pe(o,l));var c=i.reduce(function(d,u){var f=n?.ISOWeek?Xa(u):Ja(u,n),g=d.find(function(v){return v.weekNumber===f});return g?(g.dates.push(u),d):(d.push({weekNumber:f,dates:[u]}),d)},[]);return c}function Cp(e,t){var n=bs(we(e),_r(e),t);if(t?.useFixedWeeks){var r=Sf(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],i=Pr(a,6-r),l=bs(Pr(a,1),i,t);n.push.apply(n,l)}}return n}function Np(e){var t,n,r,o=oe(),a=o.locale,i=o.classNames,l=o.styles,c=o.hideHead,d=o.fixedWeeks,u=o.components,f=o.weekStartsOn,g=o.firstWeekContainsDate,v=o.ISOWeek,b=Cp(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:v,locale:a,weekStartsOn:f,firstWeekContainsDate:g}),p=(t=u?.Head)!==null&&t!==void 0?t:zh,m=(n=u?.Row)!==null&&n!==void 0?n:xp,w=(r=u?.Footer)!==null&&r!==void 0?r:Lh;return s.jsxs("table",{id:e.id,className:i.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&s.jsx(p,{}),s.jsx("tbody",{className:i.tbody,style:l.tbody,children:b.map(function(y){return s.jsx(m,{displayMonth:e.displayMonth,dates:y.dates,weekNumber:y.weekNumber},y.weekNumber)})}),s.jsx(w,{displayMonth:e.displayMonth})]})}function Sp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var kp=Sp()?P.useLayoutEffect:P.useEffect,Gr=!1,Ap=0;function ys(){return"react-day-picker-".concat(++Ap)}function Pp(e){var t,n=e??(Gr?ys():null),r=P.useState(n),o=r[0],a=r[1];return kp(function(){o===null&&a(ys())},[]),P.useEffect(function(){Gr===!1&&(Gr=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function Ep(e){var t,n,r=oe(),o=r.dir,a=r.classNames,i=r.styles,l=r.components,c=Kt().displayMonths,d=Pp(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),u=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,f=[a.month],g=i.month,v=e.displayIndex===0,b=e.displayIndex===c.length-1,p=!v&&!b;o==="rtl"&&(t=[v,b],b=t[0],v=t[1]),v&&(f.push(a.caption_start),g=H(H({},g),i.caption_start)),b&&(f.push(a.caption_end),g=H(H({},g),i.caption_end)),p&&(f.push(a.caption_between),g=H(H({},g),i.caption_between));var m=(n=l?.Caption)!==null&&n!==void 0?n:Ih;return s.jsxs("div",{className:f.join(" "),style:g,children:[s.jsx(m,{id:d,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),s.jsx(Np,{id:u,"aria-labelledby":d,displayMonth:e.displayMonth})]},e.displayIndex)}function _p(e){var t=oe(),n=t.classNames,r=t.styles;return s.jsx("div",{className:n.months,style:r.months,children:e.children})}function Mp(e){var t,n,r=e.initialProps,o=oe(),a=jr(),i=Kt(),l=P.useState(!1),c=l[0],d=l[1];P.useEffect(function(){o.initialFocus&&a.focusTarget&&(c||(a.focus(a.focusTarget),d(!0)))},[o.initialFocus,c,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var f=H(H({},o.styles.root),o.style),g=Object.keys(r).filter(function(b){return b.startsWith("data-")}).reduce(function(b,p){var m;return H(H({},b),(m={},m[p]=r[p],m))},{}),v=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:_p;return s.jsx("div",H({className:u.join(" "),style:f,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},g,{children:s.jsx(v,{children:i.displayMonths.map(function(b,p){return s.jsx(Ep,{displayIndex:p,displayMonth:b},p)})})}))}function Tp(e){var t=e.children,n=th(e,["children"]);return s.jsx(wh,{initialProps:n,children:s.jsx(Mh,{children:s.jsx(up,{initialProps:n,children:s.jsx($h,{initialProps:n,children:s.jsx(jh,{initialProps:n,children:s.jsx(Zh,{children:s.jsx(cp,{children:t})})})})})})})}function Dp(e){return s.jsx(Tp,H({},e,{children:s.jsx(Mp,{initialProps:e})}))}function Ur({className:e,classNames:t,showOutsideDays:n=!0,...r}){const o=r.mode==="range";return s.jsx(Dp,{locale:eh,showOutsideDays:n,className:A("w-fit p-1.5",e),classNames:{months:"flex flex-col gap-2",month:"flex flex-col gap-2",caption:"relative flex h-9 items-center justify-center",caption_label:"text-base font-bold text-gray-800",nav:"absolute inset-x-0 top-1/2 flex -translate-y-1/2 items-center justify-between px-1",nav_button:"inline-flex h-8 w-8 items-center justify-center rounded-2 border border-gray-300 bg-white p-0 text-gray-700 transition-colors hover:bg-gray-100 hover:text-gray-900 hover:cursor-pointer disabled:opacity-40",nav_button_previous:"",nav_button_next:"",table:"w-full border-collapse",head_row:"flex",head_cell:"h-8 w-9 text-center text-xs font-bold tracking-[0.02em] text-gray-500",row:"mt-1 flex w-full",cell:A("relative h-9 w-9 p-0 text-center text-sm","focus-within:relative focus-within:z-20",o?"[&:has(.day-range-middle)]:bg-main-200/70 [&:has(.day-range-start)]:bg-main-200/70 [&:has(.day-range-end)]:bg-main-200/70 [&:has(.day-range-start)]:rounded-l-2 [&:has(.day-range-end)]:rounded-r-2":"[&:has([aria-selected])]:rounded-2"),day:"inline-flex h-9 w-9 items-center justify-center rounded-2 border border-transparent p-0 text-sm font-medium text-gray-700 transition-colors aria-selected:opacity-100 hover:bg-gray-100 hover:text-gray-900 hover:cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-main-300/70",day_range_start:"day-range-start aria-selected:rounded-2 aria-selected:bg-main-800 aria-selected:text-white",day_range_end:"day-range-end aria-selected:rounded-2 aria-selected:bg-main-800 aria-selected:text-white",day_selected:"bg-main-800 text-white hover:bg-main-700 hover:text-white focus:bg-main-700 focus:text-white",day_today:"border-main-500 text-main-800",day_outside:"day-outside text-gray-400 aria-selected:text-gray-500",day_disabled:"cursor-not-allowed text-gray-300 opacity-40 hover:bg-transparent hover:text-gray-300",day_range_middle:"day-range-middle aria-selected:rounded-none aria-selected:bg-main-200 aria-selected:text-main-800",day_hidden:"invisible",...t},components:{IconLeft:({className:a,...i})=>s.jsx(Nn,{className:A("size-4",a),...i}),IconRight:({className:a,...i})=>s.jsx(Sn,{className:A("size-4",a),...i})},...r})}function Qt({className:e,logoSize:t="md"}){const n={sm:"w-4 h-6",md:"w-6 h-10",lg:"w-8 h-14"};return s.jsx("div",{className:A("flex items-center justify-center bg-main-200",e),children:s.jsx(Vt,{className:A("text-main-500",n[t])})})}const Op=dt("inline-flex items-center rounded-2 px-2.5 py-1 bg-main-800 text-white",{variants:{hasIcon:{true:"gap-1.5",false:""}},defaultVariants:{hasIcon:!1}});function qt({icon:e,children:t,size:n="caption2",weight:r="bold",className:o}){return s.jsxs("span",{className:A(Op({hasIcon:!!e}),o),children:[e&&s.jsx(I,{size:n,weight:"medium",children:e}),s.jsx(I,{size:n,weight:r,children:t})]})}function Ip({challengeTitle:e,challengeType:t,challengeCategory:n,imageUrl:r,currentUserCount:o,maxUserCount:a,startDate:i,endDate:l,isInfiniteChallenge:c=!1,isEarlyEnded:d=!1,isOngoing:u=!1,isEnded:f=!1,className:g,onClick:v}){const b=!!(r&&r.trim().length>0),p=a<=1?"개인":`${o} / ${a}`,m=c?d:f,w=m?"종료됨":u?"진행중":"모집중",y=m?"bg-gray-500":u?"bg-green-500":"bg-blue-500",x=c?`${i} - 무한!`:`${i} - ${l}`;return s.jsxs("div",{className:A("min-w-60 w-full overflow-hidden rounded-[12px] border border-gray-200 bg-white",v&&"cursor-pointer","transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default",g),onClick:v,children:[s.jsxs("div",{className:"relative h-40 w-full overflow-hidden bg-gray-100 sm:h-52",children:[b?s.jsx("div",{className:"absolute inset-0",children:s.jsx(lt,{src:r,alt:e,width:1200,height:800,className:"h-full w-full object-cover"})}):s.jsx(Qt,{className:"absolute inset-0",logoSize:"lg"}),b?s.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-10 h-16 bg-linear-to-b from-black/20 to-transparent"}):null,s.jsxs("div",{className:"absolute top-3 left-3 z-20 flex items-center gap-1.5",children:[s.jsx(qt,{size:"caption2",weight:"bold",children:n??t}),s.jsx(qt,{size:"caption2",weight:"bold",className:y,children:w})]})]}),s.jsxs("div",{className:"w-full bg-white px-4 py-4 sm:px-5 sm:py-5",children:[s.jsx(I,{as:"p",size:"body1",weight:"bold",className:"line-clamp-2 leading-snug min-h-[2.5rem] text-gray-900 sm:min-h-[3rem] sm:text-2xl",children:e}),s.jsxs("div",{className:"mt-2 flex w-full items-center justify-between sm:mt-3",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Nt,{className:"h-3 w-3 text-gray-600 sm:h-3.5 sm:w-3.5"}),s.jsx(I,{size:"caption2",weight:"medium",className:"text-gray-600 sm:text-base",children:t})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Sr,{className:"h-3 w-3 text-gray-600 sm:h-3.5 sm:w-3.5"}),s.jsx(I,{size:"caption2",weight:"medium",className:"text-gray-600 sm:text-base",children:p})]})]}),s.jsx(I,{size:"caption2",weight:"regular",className:"mt-1.5 text-gray-500 sm:mt-2 sm:text-base",children:x})]})]})}function Lp({challengeTitle:e,challengeType:t,challengeCategory:n,imageUrl:r,currentUserCount:o,maxUserCount:a,startDate:i,endDate:l,isInfiniteChallenge:c=!1,isEarlyEnded:d=!1,isOngoing:u,isEnded:f=!1,className:g,onClick:v}){const b=!!(r&&r.trim().length>0),p=a<=1,m=c?d:f,w=m?"종료됨":u?"진행중":"모집중",y=m?"bg-gray-500":u?"bg-green-500":"bg-blue-500",x=c?`${i} - 무한!`:`${i} - ${l}`;return s.jsxs("div",{className:A("flex gap-3 rounded-4 border border-gray-200 bg-white p-3 transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default sm:gap-4 sm:p-4",v&&"cursor-pointer",g),onClick:v,children:[s.jsx("div",{className:"relative -mb-3 -ml-3 -mt-3 w-[120px] shrink-0 self-stretch overflow-hidden rounded-l-3 bg-gray-100 sm:-mb-4 sm:-ml-4 sm:-mt-4 sm:w-[140px]",children:b?s.jsx(lt,{src:r,alt:e,width:96,height:96,className:"h-full w-full object-cover"}):s.jsx(Qt,{className:"h-full w-full",logoSize:"sm"})}),s.jsxs("div",{className:"flex flex-1 flex-col min-w-0 gap-1.5 sm:gap-2",children:[s.jsx(I,{as:"p",size:"caption1",weight:"bold",className:"truncate text-gray-900 sm:text-lg",children:e}),s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[s.jsx(qt,{size:"caption3",weight:"medium",children:n??t}),s.jsx(qt,{size:"caption3",weight:"bold",className:y,children:w})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[p?s.jsx(Nt,{className:"h-3.5 w-3.5 text-gray-400"}):s.jsx(Sr,{className:"h-3.5 w-3.5 text-gray-400"}),s.jsx(I,{size:"caption3",weight:"medium",className:"text-gray-500",children:p?"개인 목표":`고정 목표 · ${o} / ${a}`})]}),s.jsx(I,{size:"caption3",weight:"regular",className:"hidden text-gray-400 sm:block",children:x})]})]})}function Fp({label:e,icon:t,children:n,checked:r,defaultChecked:o=!1,onCheckedChange:a,showCheckIndicator:i=!0,width:l=320,height:c=220,className:d,disabled:u,onClick:f,style:g,"aria-label":v,...b}){const p=typeof r=="boolean",[m,w]=P.useState(o),y=p?r:m,x=n!==void 0,N=v??(typeof e=="string"||typeof e=="number"?String(e):void 0),S=M=>{if(u)return;const E=!y;p||w(E),a?.(E),f?.(M)};return s.jsxs("button",{type:"button",role:"checkbox","aria-checked":y,"aria-label":N,disabled:u,onClick:S,className:A("relative overflow-hidden rounded-[28px] border-2 transition-colors duration-200","flex flex-col items-center justify-center",!x&&"gap-4",y?"border-main-800 bg-main-200 text-main-800":"border-gray-300 bg-white text-gray-500",!u&&"hover:cursor-pointer"&&(y?"hover:bg-main-300":"hover:bg-gray-100"),u&&"cursor-not-allowed opacity-60",d),style:{width:l,height:c,...g},...b,children:[i?s.jsx("span",{className:A("absolute top-4 right-4 flex w-[clamp(18px,8%,32px)] aspect-square shrink-0 items-center justify-center rounded-full border-2 transition-colors",y?"border-main-800 bg-main-800 text-white":"border-gray-300 bg-white text-transparent"),children:s.jsx(Ct,{className:"h-[46%] w-[46%]",strokeWidth:4.4})}):null,x?n:s.jsxs("div",{className:"flex flex-col items-center justify-center gap-3",children:[t?s.jsx("span",{className:"text-inherit [&>svg]:h-14 [&>svg]:w-14",children:t}):null,typeof e=="string"||typeof e=="number"?s.jsx(I,{size:"heading1",weight:"bold",className:A("text-inherit",y?"text-main-800":"text-gray-600"),children:e}):e]})]})}function ws(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function xs(e){const[t,n]=h.useState(void 0);return fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Tn="Checkbox",[Wp]=Ae(Tn),[zp,Kr]=Wp(Tn);function Bp(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:l,onCheckedChange:c,required:d,value:u="on",internal_do_not_use_render:f}=e,[g,v]=Ce({prop:n,defaultProp:o??!1,onChange:c,caller:Tn}),[b,p]=h.useState(null),[m,w]=h.useState(null),y=h.useRef(!1),x=b?!!i||!!b.closest("form"):!0,N={checked:g,disabled:a,setChecked:v,control:b,setControl:p,name:l,form:i,value:u,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:Re(o)?!1:o,isFormControl:x,bubbleInput:m,setBubbleInput:w};return s.jsx(zp,{scope:t,...N,children:$p(f)?f(N):r})}var Cs="CheckboxTrigger",Ns=h.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:i,disabled:l,checked:c,required:d,setControl:u,setChecked:f,hasConsumerStoppedPropagationRef:g,isFormControl:v,bubbleInput:b}=Kr(Cs,e),p=J(o,u),m=h.useRef(c);return h.useEffect(()=>{const w=a?.form;if(w){const y=()=>f(m.current);return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)}},[a,f]),s.jsx(G.button,{type:"button",role:"checkbox","aria-checked":Re(c)?"mixed":c,"aria-required":d,"data-state":Es(c),"data-disabled":l?"":void 0,disabled:l,value:i,...r,ref:p,onKeyDown:V(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:V(n,w=>{f(y=>Re(y)?!0:!y),b&&v&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})})});Ns.displayName=Cs;var Qr=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:c,onCheckedChange:d,form:u,...f}=e;return s.jsx(Bp,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:l,required:i,onCheckedChange:d,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:g})=>s.jsxs(s.Fragment,{children:[s.jsx(Ns,{...f,ref:t,__scopeCheckbox:n}),g&&s.jsx(Ps,{__scopeCheckbox:n})]})})});Qr.displayName=Tn;var Ss="CheckboxIndicator",ks=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Kr(Ss,n);return s.jsx(We,{present:r||Re(a.checked)||a.checked===!0,children:s.jsx(G.span,{"data-state":Es(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});ks.displayName=Ss;var As="CheckboxBubbleInput",Ps=h.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:l,disabled:c,name:d,value:u,form:f,bubbleInput:g,setBubbleInput:v}=Kr(As,e),b=J(n,v),p=ws(a),m=xs(r);h.useEffect(()=>{const y=g;if(!y)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,M=!o.current;if(p!==a&&S){const E=new Event("click",{bubbles:M});y.indeterminate=Re(a),S.call(y,Re(a)?!1:a),y.dispatchEvent(E)}},[g,p,a,o]);const w=h.useRef(Re(a)?!1:a);return s.jsx(G.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??w.current,required:l,disabled:c,name:d,value:u,form:f,...t,tabIndex:-1,ref:b,style:{...t.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Ps.displayName=As;function $p(e){return typeof e=="function"}function Re(e){return e==="indeterminate"}function Es(e){return Re(e)?"indeterminate":e?"checked":"unchecked"}const qr=h.forwardRef(({className:e,label:t,id:n,readOnly:r,...o},a)=>{const i=h.useId(),l=n||i;return s.jsxs("div",{className:A("flex items-center gap-2.5",r&&"pointer-events-none"),children:[s.jsx(Qr,{ref:a,id:l,className:A("peer h-5 w-5 shrink-0 rounded-1.5 border border-gray-300 bg-white transition-all duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-main-900 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-main-900 data-[state=checked]:border-main-900 data-[state=checked]:text-white","cursor-pointer",e),...o,children:s.jsx(ks,{className:A("flex items-center justify-center text-current"),children:s.jsx(Ct,{className:"h-3 w-3",strokeWidth:13})})}),t&&s.jsx("label",{htmlFor:l,className:A("text-gray-900 select-none cursor-pointer","peer-disabled:cursor-not-allowed peer-disabled:opacity-50"),children:s.jsx(I,{size:"body2",weight:"medium",children:t})})]})});qr.displayName=Qr.displayName;function Hp({options:e,value:t,onValueChange:n,className:r,readOnly:o=!1,disabled:a=!1}){const i=P.useId(),l=(c,d)=>{if(d){n(t.includes(c)?t:[...t,c]);return}n(t.filter(u=>u!==c))};return s.jsx("div",{className:A("overflow-hidden rounded-4 border border-gray-200 bg-white",r),children:e.map((c,d)=>{const u=t.includes(c.id),f=a||c.disabled,g=!f&&o,v=f||g,b=`${i}-${c.id}`;return s.jsxs("label",{htmlFor:b,"aria-disabled":v,onClick:p=>{v&&p.preventDefault()},className:A("flex w-full items-center gap-4 px-4 py-4 text-left transition-colors",d>0&&"border-t border-gray-200",!v&&"cursor-pointer hover:bg-gray-100/70",f&&"cursor-not-allowed",g&&"cursor-default hover:cursor-not-allowed"),children:[s.jsx(qr,{id:b,checked:u,disabled:f,onCheckedChange:p=>{v||p==="indeterminate"||l(c.id,p===!0)},className:A("h-5 w-5 rounded-1.5","data-[state=checked]:border-main-800 data-[state=checked]:bg-main-800",g&&"cursor-default hover:cursor-not-allowed")}),typeof c.label=="string"||typeof c.label=="number"?s.jsx(I,{size:"body1",weight:"medium",className:A("flex-1 transition-colors",u?"text-gray-900":"text-gray-600",f&&"text-gray-400"),children:c.label}):s.jsx("span",{className:A("flex-1",!u&&"text-gray-600",f&&"opacity-60"),children:c.label})]},c.id)})})}const Vp=dt("",{variants:{size:{sm:"w-11 h-11",lg:"w-30 h-30"}},defaultVariants:{size:"sm"}});function Xr({value:e,size:t,showPercentage:n=!0,className:r}){const o=t==="lg"?"lg":"sm",a={sm:50,lg:120},i={sm:5,lg:10},l={sm:"caption3",lg:"display2"},c=a[o],d=i[o],u=(c-d)/2,f=2*Math.PI*u,g=Math.min(Math.max(e,0),100),[v,b]=P.useState(0);P.useEffect(()=>{const w=requestAnimationFrame(()=>{b(g)});return()=>cancelAnimationFrame(w)},[g]);const p=f-f*v/100,m=A(Vp({size:o}),"rounded-full",r);return s.jsxs("div",{className:"relative inline-block",children:[s.jsx(hu,{baseSize:c,radius:u,strokeWidth:d,circumference:f,dashOffset:p,className:m}),n&&s.jsx(I,{className:"absolute inset-0 flex items-center justify-center text-main-800",size:l[o],weight:"bold",children:`${g}%`})]})}function et(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>t.current?.(...n),[])}function jp(e,t=globalThis?.document){const n=et(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Yp="DismissableLayer",Zr="dismissableLayer.update",Gp="dismissableLayer.pointerDownOutside",Up="dismissableLayer.focusOutside",_s,Ms=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xt=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...c}=e,d=h.useContext(Ms),[u,f]=h.useState(null),g=u?.ownerDocument??globalThis?.document,[,v]=h.useState({}),b=J(t,E=>f(E)),p=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(m),y=u?p.indexOf(u):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,N=y>=w,S=qp(E=>{const k=E.target,z=[...d.branches].some(j=>j.contains(k));!N||z||(o?.(E),i?.(E),E.defaultPrevented||l?.())},g),M=Xp(E=>{const k=E.target;[...d.branches].some(j=>j.contains(k))||(a?.(E),i?.(E),E.defaultPrevented||l?.())},g);return jp(E=>{y===d.layers.size-1&&(r?.(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},g),h.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(_s=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Ts(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=_s)}},[u,g,n,d]),h.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Ts())},[u,d]),h.useEffect(()=>{const E=()=>v({});return document.addEventListener(Zr,E),()=>document.removeEventListener(Zr,E)},[]),s.jsx(G.div,{...c,ref:b,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,M.onFocusCapture),onBlurCapture:V(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,S.onPointerDownCapture)})});Xt.displayName=Yp;var Kp="DismissableLayerBranch",Qp=h.forwardRef((e,t)=>{const n=h.useContext(Ms),r=h.useRef(null),o=J(t,r);return h.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),s.jsx(G.div,{...e,ref:o})});Qp.displayName=Kp;function qp(e,t=globalThis?.document){const n=et(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let c=function(){Ds(Gp,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xp(e,t=globalThis?.document){const n=et(e),r=h.useRef(!1);return h.useEffect(()=>{const o=a=>{a.target&&!r.current&&Ds(Up,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ts(){const e=new CustomEvent(Zr);document.dispatchEvent(e)}function Ds(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Cc(o,a):o.dispatchEvent(a)}var Jr=0;function Rr(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Os()),document.body.insertAdjacentElement("beforeend",e[1]??Os()),Jr++,()=>{Jr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jr--}},[])}function Os(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var eo="focusScope.autoFocusOnMount",to="focusScope.autoFocusOnUnmount",Is={bubbles:!1,cancelable:!0},Zp="FocusScope",Dn=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,c]=h.useState(null),d=et(o),u=et(a),f=h.useRef(null),g=J(t,p=>c(p)),v=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let p=function(x){if(v.paused||!l)return;const N=x.target;l.contains(N)?f.current=N:tt(f.current,{select:!0})},m=function(x){if(v.paused||!l)return;const N=x.relatedTarget;N!==null&&(l.contains(N)||tt(f.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&tt(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",m);const y=new MutationObserver(w);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),y.disconnect()}}},[r,l,v.paused]),h.useEffect(()=>{if(l){Ws.add(v);const p=document.activeElement;if(!l.contains(p)){const w=new CustomEvent(eo,Is);l.addEventListener(eo,d),l.dispatchEvent(w),w.defaultPrevented||(Jp(rg(Ls(l)),{select:!0}),document.activeElement===p&&tt(l))}return()=>{l.removeEventListener(eo,d),setTimeout(()=>{const w=new CustomEvent(to,Is);l.addEventListener(to,u),l.dispatchEvent(w),w.defaultPrevented||tt(p??document.body,{select:!0}),l.removeEventListener(to,u),Ws.remove(v)},0)}}},[l,d,u,v]);const b=h.useCallback(p=>{if(!n&&!r||v.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(m&&w){const y=p.currentTarget,[x,N]=Rp(y);x&&N?!p.shiftKey&&w===N?(p.preventDefault(),n&&tt(x,{select:!0})):p.shiftKey&&w===x&&(p.preventDefault(),n&&tt(N,{select:!0})):w===y&&p.preventDefault()}},[n,r,v.paused]);return s.jsx(G.div,{tabIndex:-1,...i,ref:g,onKeyDown:b})});Dn.displayName=Zp;function Jp(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(tt(r,{select:t}),document.activeElement!==n)return}function Rp(e){const t=Ls(e),n=Fs(t,e),r=Fs(t.reverse(),e);return[n,r]}function Ls(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fs(e,t){for(const n of e)if(!eg(n,{upTo:t}))return n}function eg(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tg(e){return e instanceof HTMLInputElement&&"select"in e}function tt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tg(e)&&t&&e.select()}}var Ws=ng();function ng(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=zs(e,t),e.unshift(t)},remove(t){e=zs(e,t),e[0]?.resume()}}}function zs(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rg(e){return e.filter(t=>t.tagName!=="A")}const og=["top","right","bottom","left"],nt=Math.min,Ne=Math.max,On=Math.round,In=Math.floor,Ve=e=>({x:e,y:e}),ag={left:"right",right:"left",bottom:"top",top:"bottom"},sg={start:"end",end:"start"};function no(e,t,n){return Ne(e,nt(t,n))}function qe(e,t){return typeof e=="function"?e(t):e}function Xe(e){return e.split("-")[0]}function Et(e){return e.split("-")[1]}function ro(e){return e==="x"?"y":"x"}function oo(e){return e==="y"?"height":"width"}const ig=new Set(["top","bottom"]);function je(e){return ig.has(Xe(e))?"y":"x"}function ao(e){return ro(je(e))}function lg(e,t,n){n===void 0&&(n=!1);const r=Et(e),o=ao(e),a=oo(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Ln(i)),[i,Ln(i)]}function cg(e){const t=Ln(e);return[so(e),t,so(t)]}function so(e){return e.replace(/start|end/g,t=>sg[t])}const Bs=["left","right"],$s=["right","left"],dg=["top","bottom"],ug=["bottom","top"];function fg(e,t,n){switch(e){case"top":case"bottom":return n?t?$s:Bs:t?Bs:$s;case"left":case"right":return t?dg:ug;default:return[]}}function hg(e,t,n,r){const o=Et(e);let a=fg(Xe(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(so)))),a}function Ln(e){return e.replace(/left|right|bottom|top/g,t=>ag[t])}function pg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hs(e){return typeof e!="number"?pg(e):{top:e,right:e,bottom:e,left:e}}function Fn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Vs(e,t,n){let{reference:r,floating:o}=e;const a=je(t),i=ao(t),l=oo(i),c=Xe(t),d=a==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let v;switch(c){case"top":v={x:u,y:r.y-o.height};break;case"bottom":v={x:u,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(Et(t)){case"start":v[i]-=g*(n&&d?-1:1);break;case"end":v[i]+=g*(n&&d?-1:1);break}return v}const gg=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Vs(d,r,c),g=r,v={},b=0;for(let p=0;p<l.length;p++){const{name:m,fn:w}=l[p],{x:y,y:x,data:N,reset:S}=await w({x:u,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:d,platform:i,elements:{reference:e,floating:t}});u=y??u,f=x??f,v={...v,[m]:{...v[m],...N}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(d=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=Vs(d,g,c)),p=-1)}return{x:u,y:f,placement:g,strategy:o,middlewareData:v}};async function Zt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:g=!1,padding:v=0}=qe(t,e),b=Hs(v),m=l[g?f==="floating"?"reference":"floating":f],w=Fn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(m)))==null||n?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),y=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),N=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Fn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:c}):y);return{top:(w.top-S.top+b.top)/N.y,bottom:(S.bottom-w.bottom+b.bottom)/N.y,left:(w.left-S.left+b.left)/N.x,right:(S.right-w.right+b.right)/N.x}}const mg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=qe(e,t)||{};if(d==null)return{};const f=Hs(u),g={x:n,y:r},v=ao(o),b=oo(v),p=await i.getDimensions(d),m=v==="y",w=m?"top":"left",y=m?"bottom":"right",x=m?"clientHeight":"clientWidth",N=a.reference[b]+a.reference[v]-g[v]-a.floating[b],S=g[v]-a.reference[v],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let E=M?M[x]:0;(!E||!await(i.isElement==null?void 0:i.isElement(M)))&&(E=l.floating[x]||a.floating[b]);const k=N/2-S/2,z=E/2-p[b]/2-1,j=nt(f[w],z),B=nt(f[y],z),Y=j,K=E-p[b]-B,U=E/2-p[b]/2+k,O=no(Y,U,K),T=!c.arrow&&Et(o)!=null&&U!==O&&a.reference[b]/2-(U<Y?j:B)-p[b]/2<0,_=T?U<Y?U-Y:U-K:0;return{[v]:g[v]+_,data:{[v]:O,centerOffset:U-O-_,...T&&{alignmentOffset:_}},reset:T}}}),vg=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...m}=qe(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Xe(o),y=je(l),x=Xe(l)===l,N=await(c.isRTL==null?void 0:c.isRTL(d.floating)),S=g||(x||!p?[Ln(l)]:cg(l)),M=b!=="none";!g&&M&&S.push(...hg(l,p,b,N));const E=[l,...S],k=await Zt(t,m),z=[];let j=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&z.push(k[w]),f){const U=lg(o,i,N);z.push(k[U[0]],k[U[1]])}if(j=[...j,{placement:o,overflows:z}],!z.every(U=>U<=0)){var B,Y;const U=(((B=a.flip)==null?void 0:B.index)||0)+1,O=E[U];if(O&&(!(f==="alignment"?y!==je(O):!1)||j.every(C=>je(C.placement)===y?C.overflows[0]>0:!0)))return{data:{index:U,overflows:j},reset:{placement:O}};let T=(Y=j.filter(_=>_.overflows[0]<=0).sort((_,C)=>_.overflows[1]-C.overflows[1])[0])==null?void 0:Y.placement;if(!T)switch(v){case"bestFit":{var K;const _=(K=j.filter(C=>{if(M){const $=je(C.placement);return $===y||$==="y"}return!0}).map(C=>[C.placement,C.overflows.filter($=>$>0).reduce(($,X)=>$+X,0)]).sort((C,$)=>C[1]-$[1])[0])==null?void 0:K[0];_&&(T=_);break}case"initialPlacement":T=l;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function js(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ys(e){return og.some(t=>e[t]>=0)}const bg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=qe(e,t);switch(r){case"referenceHidden":{const a=await Zt(t,{...o,elementContext:"reference"}),i=js(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ys(i)}}}case"escaped":{const a=await Zt(t,{...o,altBoundary:!0}),i=js(a,n.floating);return{data:{escapedOffsets:i,escaped:Ys(i)}}}default:return{}}}}},Gs=new Set(["left","top"]);async function yg(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Xe(n),l=Et(n),c=je(n)==="y",d=Gs.has(i)?-1:1,u=a&&c?-1:1,f=qe(t,e);let{mainAxis:g,crossAxis:v,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(v=l==="end"?b*-1:b),c?{x:v*u,y:g*d}:{x:g*d,y:v*u}}const wg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,c=await yg(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},xg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:m=>{let{x:w,y}=m;return{x:w,y}}},...c}=qe(e,t),d={x:n,y:r},u=await Zt(t,c),f=je(Xe(o)),g=ro(f);let v=d[g],b=d[f];if(a){const m=g==="y"?"top":"left",w=g==="y"?"bottom":"right",y=v+u[m],x=v-u[w];v=no(y,v,x)}if(i){const m=f==="y"?"top":"left",w=f==="y"?"bottom":"right",y=b+u[m],x=b-u[w];b=no(y,b,x)}const p=l.fn({...t,[g]:v,[f]:b});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[g]:a,[f]:i}}}}}},Cg=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=qe(e,t),u={x:n,y:r},f=je(o),g=ro(f);let v=u[g],b=u[f];const p=qe(l,t),m=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=g==="y"?"height":"width",N=a.reference[g]-a.floating[x]+m.mainAxis,S=a.reference[g]+a.reference[x]-m.mainAxis;v<N?v=N:v>S&&(v=S)}if(d){var w,y;const x=g==="y"?"width":"height",N=Gs.has(Xe(o)),S=a.reference[f]-a.floating[x]+(N&&((w=i.offset)==null?void 0:w[f])||0)+(N?0:m.crossAxis),M=a.reference[f]+a.reference[x]+(N?0:((y=i.offset)==null?void 0:y[f])||0)-(N?m.crossAxis:0);b<S?b=S:b>M&&(b=M)}return{[g]:v,[f]:b}}}},Ng=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:c=()=>{},...d}=qe(e,t),u=await Zt(t,d),f=Xe(o),g=Et(o),v=je(o)==="y",{width:b,height:p}=a.floating;let m,w;f==="top"||f==="bottom"?(m=f,w=g===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(w=f,m=g==="end"?"top":"bottom");const y=p-u.top-u.bottom,x=b-u.left-u.right,N=nt(p-u[m],y),S=nt(b-u[w],x),M=!t.middlewareData.shift;let E=N,k=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=y),M&&!g){const j=Ne(u.left,0),B=Ne(u.right,0),Y=Ne(u.top,0),K=Ne(u.bottom,0);v?k=b-2*(j!==0||B!==0?j+B:Ne(u.left,u.right)):E=p-2*(Y!==0||K!==0?Y+K:Ne(u.top,u.bottom))}await c({...t,availableWidth:k,availableHeight:E});const z=await i.getDimensions(l.floating);return b!==z.width||p!==z.height?{reset:{rects:!0}}:{}}}};function Wn(){return typeof window<"u"}function _t(e){return Us(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ye(e){var t;return(t=(Us(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Us(e){return Wn()?e instanceof Node||e instanceof Se(e).Node:!1}function De(e){return Wn()?e instanceof Element||e instanceof Se(e).Element:!1}function Ge(e){return Wn()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Ks(e){return!Wn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const Sg=new Set(["inline","contents"]);function Jt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Sg.has(o)}const kg=new Set(["table","td","th"]);function Ag(e){return kg.has(_t(e))}const Pg=[":popover-open",":modal"];function zn(e){return Pg.some(t=>{try{return e.matches(t)}catch{return!1}})}const Eg=["transform","translate","scale","rotate","perspective"],_g=["transform","translate","scale","rotate","perspective","filter"],Mg=["paint","layout","strict","content"];function io(e){const t=lo(),n=De(e)?Oe(e):e;return Eg.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||_g.some(r=>(n.willChange||"").includes(r))||Mg.some(r=>(n.contain||"").includes(r))}function Tg(e){let t=rt(e);for(;Ge(t)&&!Mt(t);){if(io(t))return t;if(zn(t))return null;t=rt(t)}return null}function lo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Dg=new Set(["html","body","#document"]);function Mt(e){return Dg.has(_t(e))}function Oe(e){return Se(e).getComputedStyle(e)}function Bn(e){return De(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rt(e){if(_t(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ks(e)&&e.host||Ye(e);return Ks(t)?t.host:t}function Qs(e){const t=rt(e);return Mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ge(t)&&Jt(t)?t:Qs(t)}function Rt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Qs(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=Se(o);if(a){const l=co(i);return t.concat(i,i.visualViewport||[],Jt(o)?o:[],l&&n?Rt(l):[])}return t.concat(o,Rt(o,[],n))}function co(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qs(e){const t=Oe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ge(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=On(n)!==a||On(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function uo(e){return De(e)?e:e.contextElement}function Tt(e){const t=uo(e);if(!Ge(t))return Ve(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=qs(t);let i=(a?On(n.width):n.width)/r,l=(a?On(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Og=Ve(0);function Xs(e){const t=Se(e);return!lo()||!t.visualViewport?Og:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ig(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Se(e)?!1:t}function ht(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=uo(e);let i=Ve(1);t&&(r?De(r)&&(i=Tt(r)):i=Tt(e));const l=Ig(a,n,r)?Xs(a):Ve(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,u=o.width/i.x,f=o.height/i.y;if(a){const g=Se(a),v=r&&De(r)?Se(r):r;let b=g,p=co(b);for(;p&&r&&v!==b;){const m=Tt(p),w=p.getBoundingClientRect(),y=Oe(p),x=w.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,N=w.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;c*=m.x,d*=m.y,u*=m.x,f*=m.y,c+=x,d+=N,b=Se(p),p=co(b)}}return Fn({width:u,height:f,x:c,y:d})}function $n(e,t){const n=Bn(e).scrollLeft;return t?t.left+n:ht(Ye(e)).left+n}function Zs(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-$n(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Lg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Ye(r),l=t?zn(t.floating):!1;if(r===i||l&&a)return n;let c={scrollLeft:0,scrollTop:0},d=Ve(1);const u=Ve(0),f=Ge(r);if((f||!f&&!a)&&((_t(r)!=="body"||Jt(i))&&(c=Bn(r)),Ge(r))){const v=ht(r);d=Tt(r),u.x=v.x+r.clientLeft,u.y=v.y+r.clientTop}const g=i&&!f&&!a?Zs(i,c):Ve(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+g.x,y:n.y*d.y-c.scrollTop*d.y+u.y+g.y}}function Fg(e){return Array.from(e.getClientRects())}function Wg(e){const t=Ye(e),n=Bn(e),r=e.ownerDocument.body,o=Ne(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ne(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+$n(e);const l=-n.scrollTop;return Oe(r).direction==="rtl"&&(i+=Ne(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}const Js=25;function zg(e,t){const n=Se(e),r=Ye(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){a=o.width,i=o.height;const u=lo();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=$n(r);if(d<=0){const u=r.ownerDocument,f=u.body,g=getComputedStyle(f),v=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(r.clientWidth-f.clientWidth-v);b<=Js&&(a-=b)}else d<=Js&&(a+=d);return{width:a,height:i,x:l,y:c}}const Bg=new Set(["absolute","fixed"]);function $g(e,t){const n=ht(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ge(e)?Tt(e):Ve(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,c=o*a.x,d=r*a.y;return{width:i,height:l,x:c,y:d}}function Rs(e,t,n){let r;if(t==="viewport")r=zg(e,n);else if(t==="document")r=Wg(Ye(e));else if(De(t))r=$g(t,n);else{const o=Xs(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fn(r)}function ei(e,t){const n=rt(e);return n===t||!De(n)||Mt(n)?!1:Oe(n).position==="fixed"||ei(n,t)}function Hg(e,t){const n=t.get(e);if(n)return n;let r=Rt(e,[],!1).filter(l=>De(l)&&_t(l)!=="body"),o=null;const a=Oe(e).position==="fixed";let i=a?rt(e):e;for(;De(i)&&!Mt(i);){const l=Oe(i),c=io(i);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&Bg.has(o.position)||Jt(i)&&!c&&ei(e,i))?r=r.filter(u=>u!==i):o=l,i=rt(i)}return t.set(e,r),r}function Vg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?zn(t)?[]:Hg(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((d,u)=>{const f=Rs(t,u,o);return d.top=Ne(f.top,d.top),d.right=nt(f.right,d.right),d.bottom=nt(f.bottom,d.bottom),d.left=Ne(f.left,d.left),d},Rs(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function jg(e){const{width:t,height:n}=qs(e);return{width:t,height:n}}function Yg(e,t,n){const r=Ge(t),o=Ye(t),a=n==="fixed",i=ht(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=Ve(0);function d(){c.x=$n(o)}if(r||!r&&!a)if((_t(t)!=="body"||Jt(o))&&(l=Bn(t)),r){const v=ht(t,!0,a,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&d();a&&!r&&o&&d();const u=o&&!r&&!a?Zs(o,l):Ve(0),f=i.left+l.scrollLeft-c.x-u.x,g=i.top+l.scrollTop-c.y-u.y;return{x:f,y:g,width:i.width,height:i.height}}function fo(e){return Oe(e).position==="static"}function ti(e,t){if(!Ge(e)||Oe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ye(e)===n&&(n=n.ownerDocument.body),n}function ni(e,t){const n=Se(e);if(zn(e))return n;if(!Ge(e)){let o=rt(e);for(;o&&!Mt(o);){if(De(o)&&!fo(o))return o;o=rt(o)}return n}let r=ti(e,t);for(;r&&Ag(r)&&fo(r);)r=ti(r,t);return r&&Mt(r)&&fo(r)&&!io(r)?n:r||Tg(e)||n}const Gg=async function(e){const t=this.getOffsetParent||ni,n=this.getDimensions,r=await n(e.floating);return{reference:Yg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ug(e){return Oe(e).direction==="rtl"}const Kg={convertOffsetParentRelativeRectToViewportRelativeRect:Lg,getDocumentElement:Ye,getClippingRect:Vg,getOffsetParent:ni,getElementRects:Gg,getClientRects:Fg,getDimensions:jg,getScale:Tt,isElement:De,isRTL:Ug};function ri(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qg(e,t){let n=null,r;const o=Ye(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:u,top:f,width:g,height:v}=d;if(l||t(),!g||!v)return;const b=In(f),p=In(o.clientWidth-(u+g)),m=In(o.clientHeight-(f+v)),w=In(u),x={rootMargin:-b+"px "+-p+"px "+-m+"px "+-w+"px",threshold:Ne(0,nt(1,c))||1};let N=!0;function S(M){const E=M[0].intersectionRatio;if(E!==c){if(!N)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!ri(d,e.getBoundingClientRect())&&i(),N=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return i(!0),a}function qg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=uo(e),u=o||a?[...d?Rt(d):[],...Rt(t)]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const f=d&&l?Qg(d,n):null;let g=-1,v=null;i&&(v=new ResizeObserver(w=>{let[y]=w;y&&y.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),n()}),d&&!c&&v.observe(d),v.observe(t));let b,p=c?ht(e):null;c&&m();function m(){const w=ht(e);p&&!ri(p,w)&&n(),p=w,b=requestAnimationFrame(m)}return n(),()=>{var w;u.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f?.(),(w=v)==null||w.disconnect(),v=null,c&&cancelAnimationFrame(b)}}const Xg=wg,Zg=xg,Jg=vg,Rg=Ng,em=bg,oi=mg,tm=Cg,nm=(e,t,n)=>{const r=new Map,o={platform:Kg,...n},a={...o.platform,_c:r};return gg(e,t,{...o,platform:a})};var rm=typeof document<"u",om=function(){},Hn=rm?P.useLayoutEffect:om;function Vn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Vn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Vn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ai(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function si(e,t){const n=ai(e);return Math.round(t*n)/n}function ho(e){const t=h.useRef(e);return Hn(()=>{t.current=e}),t}function am(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,v]=h.useState(r);Vn(g,r)||v(r);const[b,p]=h.useState(null),[m,w]=h.useState(null),y=h.useCallback(C=>{C!==M.current&&(M.current=C,p(C))},[]),x=h.useCallback(C=>{C!==E.current&&(E.current=C,w(C))},[]),N=a||b,S=i||m,M=h.useRef(null),E=h.useRef(null),k=h.useRef(u),z=c!=null,j=ho(c),B=ho(o),Y=ho(d),K=h.useCallback(()=>{if(!M.current||!E.current)return;const C={placement:t,strategy:n,middleware:g};B.current&&(C.platform=B.current),nm(M.current,E.current,C).then($=>{const X={...$,isPositioned:Y.current!==!1};U.current&&!Vn(k.current,X)&&(k.current=X,dn.flushSync(()=>{f(X)}))})},[g,t,n,B,Y]);Hn(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(C=>({...C,isPositioned:!1})))},[d]);const U=h.useRef(!1);Hn(()=>(U.current=!0,()=>{U.current=!1}),[]),Hn(()=>{if(N&&(M.current=N),S&&(E.current=S),N&&S){if(j.current)return j.current(N,S,K);K()}},[N,S,K,j,z]);const O=h.useMemo(()=>({reference:M,floating:E,setReference:y,setFloating:x}),[y,x]),T=h.useMemo(()=>({reference:N,floating:S}),[N,S]),_=h.useMemo(()=>{const C={position:n,left:0,top:0};if(!T.floating)return C;const $=si(T.floating,u.x),X=si(T.floating,u.y);return l?{...C,transform:"translate("+$+"px, "+X+"px)",...ai(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:X}},[n,l,T.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:K,refs:O,elements:T,floatingStyles:_}),[u,K,O,T,_])}const sm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?oi({element:r.current,padding:o}).fn(n):{}:r?oi({element:r,padding:o}).fn(n):{}}}},im=(e,t)=>({...Xg(e),options:[e,t]}),lm=(e,t)=>({...Zg(e),options:[e,t]}),cm=(e,t)=>({...tm(e),options:[e,t]}),dm=(e,t)=>({...Jg(e),options:[e,t]}),um=(e,t)=>({...Rg(e),options:[e,t]}),fm=(e,t)=>({...em(e),options:[e,t]}),hm=(e,t)=>({...sm(e),options:[e,t]});var pm="Arrow",ii=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return s.jsx(G.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});ii.displayName=pm;var gm=ii,po="Popper",[li,Dt]=Ae(po),[mm,ci]=li(po),di=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return s.jsx(mm,{scope:t,anchor:r,onAnchorChange:o,children:n})};di.displayName=po;var ui="PopperAnchor",fi=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ci(ui,n),i=h.useRef(null),l=J(t,i),c=h.useRef(null);return h.useEffect(()=>{const d=c.current;c.current=r?.current||i.current,d!==c.current&&a.onAnchorChange(c.current)}),r?null:s.jsx(G.div,{...o,ref:l})});fi.displayName=ui;var go="PopperContent",[vm,bm]=li(go),hi=h.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:b,...p}=e,m=ci(go,n),[w,y]=h.useState(null),x=J(t,L=>y(L)),[N,S]=h.useState(null),M=xs(N),E=M?.width??0,k=M?.height??0,z=r+(a!=="center"?"-"+a:""),j=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},B=Array.isArray(d)?d:[d],Y=B.length>0,K={padding:j,boundary:B.filter(wm),altBoundary:Y},{refs:U,floatingStyles:O,placement:T,isPositioned:_,middlewareData:C}=am({strategy:"fixed",placement:z,whileElementsMounted:(...L)=>qg(...L,{animationFrame:v==="always"}),elements:{reference:m.anchor},middleware:[im({mainAxis:o+k,alignmentAxis:i}),c&&lm({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?cm():void 0,...K}),c&&dm({...K}),um({...K,apply:({elements:L,rects:ne,availableWidth:ie,availableHeight:q})=>{const{width:R,height:re}=ne.reference,xe=L.floating.style;xe.setProperty("--radix-popper-available-width",`${ie}px`),xe.setProperty("--radix-popper-available-height",`${q}px`),xe.setProperty("--radix-popper-anchor-width",`${R}px`),xe.setProperty("--radix-popper-anchor-height",`${re}px`)}}),N&&hm({element:N,padding:l}),xm({arrowWidth:E,arrowHeight:k}),g&&fm({strategy:"referenceHidden",...K})]}),[$,X]=mi(T),he=et(b);fe(()=>{_&&he?.()},[_,he]);const ke=C.arrow?.x,se=C.arrow?.y,ae=C.arrow?.centerOffset!==0,[ge,me]=h.useState();return fe(()=>{w&&me(window.getComputedStyle(w).zIndex)},[w]),s.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:_?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[C.transformOrigin?.x,C.transformOrigin?.y].join(" "),...C.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(vm,{scope:n,placedSide:$,onArrowChange:S,arrowX:ke,arrowY:se,shouldHideArrow:ae,children:s.jsx(G.div,{"data-side":$,"data-align":X,...p,ref:x,style:{...p.style,animation:_?void 0:"none"}})})})});hi.displayName=go;var pi="PopperArrow",ym={top:"bottom",right:"left",bottom:"top",left:"right"},gi=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=bm(pi,r),i=ym[a.placedSide];return s.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:s.jsx(gm,{...o,ref:n,style:{...o.style,display:"block"}})})});gi.displayName=pi;function wm(e){return e!==null}var xm=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,u]=mi(n),f={start:"0%",center:"50%",end:"100%"}[u],g=(o.arrow?.x??0)+l/2,v=(o.arrow?.y??0)+c/2;let b="",p="";return d==="bottom"?(b=i?f:`${g}px`,p=`${-c}px`):d==="top"?(b=i?f:`${g}px`,p=`${r.floating.height+c}px`):d==="right"?(b=`${-c}px`,p=i?f:`${v}px`):d==="left"&&(b=`${r.floating.width+c}px`,p=i?f:`${v}px`),{data:{x:b,y:p}}}});function mi(e){const[t,n="center"]=e.split("-");return[t,n]}var mo=di,jn=fi,vo=hi,bo=gi,Cm="Portal",en=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=h.useState(!1);fe(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?qo.createPortal(s.jsx(G.div,{...r,ref:t}),i):null});en.displayName=Cm;var Nm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ot=new WeakMap,Yn=new WeakMap,Gn={},yo=0,vi=function(e){return e&&(e.host||vi(e.parentNode))},Sm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=vi(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},km=function(e,t,n,r){var o=Sm(t,Array.isArray(e)?e:[e]);Gn[n]||(Gn[n]=new WeakMap);var a=Gn[n],i=[],l=new Set,c=new Set(o),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};o.forEach(d);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(l.has(g))u(g);else try{var v=g.getAttribute(r),b=v!==null&&v!=="false",p=(Ot.get(g)||0)+1,m=(a.get(g)||0)+1;Ot.set(g,p),a.set(g,m),i.push(g),p===1&&b&&Yn.set(g,!0),m===1&&g.setAttribute(n,"true"),b||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return u(t),l.clear(),yo++,function(){i.forEach(function(f){var g=Ot.get(f)-1,v=a.get(f)-1;Ot.set(f,g),a.set(f,v),g||(Yn.has(f)||f.removeAttribute(r),Yn.delete(f)),v||f.removeAttribute(n)}),yo--,yo||(Ot=new WeakMap,Ot=new WeakMap,Yn=new WeakMap,Gn={})}},wo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Nm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),km(r,o,n,"aria-hidden")):function(){return null}},Ue=function(){return Ue=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ue.apply(this,arguments)};function bi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Am(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Un="right-scroll-bar-position",Kn="width-before-scroll-bar",Pm="with-scroll-bars-hidden",Em="--removed-body-scroll-bar-size";function xo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _m(e,t){var n=P.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Mm=typeof window<"u"?h.useLayoutEffect:h.useEffect,yi=new WeakMap;function Tm(e,t){var n=_m(null,function(r){return e.forEach(function(o){return xo(o,r)})});return Mm(function(){var r=yi.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(l){a.has(l)||xo(l,null)}),a.forEach(function(l){o.has(l)||xo(l,i)})}yi.set(n,e)},[e]),n}function Dm(e){return e}function Om(e,t){t===void 0&&(t=Dm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(a),i=n}var c=function(){var u=i;i=[],u.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(u){i.push(u),d()},filter:function(u){return i=i.filter(u),n}}}};return o}function Im(e){e===void 0&&(e={});var t=Om(null);return t.options=Ue({async:!0,ssr:!1},e),t}var wi=function(e){var t=e.sideCar,n=bi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,Ue({},n))};wi.isSideCarExport=!0;function Lm(e,t){return e.useMedium(t),wi}var xi=Im(),Co=function(){},Qn=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Co,onWheelCapture:Co,onTouchMoveCapture:Co}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,f=e.shards,g=e.sideCar,v=e.noRelative,b=e.noIsolation,p=e.inert,m=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,x=e.gapMode,N=bi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,M=Tm([n,t]),E=Ue(Ue({},N),o);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:xi,removeScrollBar:d,shards:f,noRelative:v,noIsolation:b,inert:p,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:x}),i?h.cloneElement(h.Children.only(l),Ue(Ue({},E),{ref:M})):h.createElement(y,Ue({},E,{className:c,ref:M}),l))});Qn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Qn.classNames={fullWidth:Kn,zeroRight:Un};var Fm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fm();return t&&e.setAttribute("nonce",t),e}function zm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Bm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $m=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wm())&&(zm(t,n),Bm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hm=function(){var e=$m();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ci=function(){var e=Hm(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Vm={left:0,top:0,right:0,gap:0},No=function(e){return parseInt(e||"",10)||0},jm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[No(n),No(r),No(o)]},Ym=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Vm;var t=jm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Gm=Ci(),It="data-scroll-locked",Um=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
+
.`.concat(Pm,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(l,"px ").concat(r,`;
|
|
5
5
|
}
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
body[`).concat(It,`] {
|
|
36
|
-
`).concat(
|
|
36
|
+
`).concat(Em,": ").concat(l,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},
|
|
38
|
+
`)},Ni=function(){var e=parseInt(document.body.getAttribute(It)||"0",10);return isFinite(e)?e:0},Km=function(){h.useEffect(function(){return document.body.setAttribute(It,(Ni()+1).toString()),function(){var e=Ni()-1;e<=0?document.body.removeAttribute(It):document.body.setAttribute(It,e.toString())}},[])},Qm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Km();var a=h.useMemo(function(){return Ym(o)},[o]);return h.createElement(Gm,{styles:Um(a,!t,o,n?"":"!important")})},So=!1;if(typeof window<"u")try{var qn=Object.defineProperty({},"passive",{get:function(){return So=!0,!0}});window.addEventListener("test",qn,qn),window.removeEventListener("test",qn,qn)}catch{So=!1}var Lt=So?{passive:!1}:!1,qm=function(e){return e.tagName==="TEXTAREA"},Si=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qm(e)&&n[t]==="visible")},Xm=function(e){return Si(e,"overflowY")},Zm=function(e){return Si(e,"overflowX")},ki=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ai(e,r);if(o){var a=Pi(e,r),i=a[1],l=a[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Jm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Rm=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ai=function(e,t){return e==="v"?Xm(t):Zm(t)},Pi=function(e,t){return e==="v"?Jm(t):Rm(t)},ev=function(e,t){return e==="h"&&t==="rtl"?-1:1},tv=function(e,t,n,r,o){var a=ev(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,c=t.contains(l),d=!1,u=i>0,f=0,g=0;do{if(!l)break;var v=Pi(e,l),b=v[0],p=v[1],m=v[2],w=p-m-a*b;(b||w)&&Ai(e,l)&&(f+=w,g+=b);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&Math.abs(f)<1||!u&&Math.abs(g)<1)&&(d=!0),d},Xn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ei=function(e){return[e.deltaX,e.deltaY]},_i=function(e){return e&&"current"in e?e.current:e},nv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rv=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},lv=0,Ft=[];function cv(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(lv++)[0],a=h.useState(bi)[0],i=h.useRef(e);h.useEffect(function(){i.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Mm([e.lockRef.current],(e.shards||[]).map(ki),!0).filter(Boolean);return g.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(g,m){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var w=Xn(g),y=n.current,x="deltaX"in g?g.deltaX:y[0]-w[0],N="deltaY"in g?g.deltaY:y[1]-w[1],S,M=g.target,E=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in g&&E==="h"&&M.type==="range")return!1;var k=window.getSelection(),z=k&&k.anchorNode,j=z?z===M||z.contains(M):!1;if(j)return!1;var B=xi(E,M);if(!B)return!0;if(B?S=E:(S=E==="v"?"h":"v",B=xi(E,M)),!B)return!1;if(!r.current&&"changedTouches"in g&&(x||N)&&(r.current=S),!S)return!0;var Y=r.current||S;return av(Y,m,g,Y==="h"?x:N)},[]),c=h.useCallback(function(g){var m=g;if(!(!Ft.length||Ft[Ft.length-1]!==a)){var w="deltaY"in m?Si(m):Xn(m),y=t.current.filter(function(S){return S.name===m.type&&(S.target===m.target||m.target===S.shadowParent)&&sv(S.delta,w)})[0];if(y&&y.should){m.cancelable&&m.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(ki).filter(Boolean).filter(function(S){return S.contains(m.target)}),N=x.length>0?l(m,x[0]):!i.current.noIsolation;N&&m.cancelable&&m.preventDefault()}}},[]),d=h.useCallback(function(g,m,w,y){var x={name:g,delta:m,target:w,should:y,shadowParent:dv(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),u=h.useCallback(function(g){n.current=Xn(g),r.current=void 0},[]),f=h.useCallback(function(g){d(g.type,Si(g),g.target,l(g,e.lockRef.current))},[]),p=h.useCallback(function(g){d(g.type,Xn(g),g.target,l(g,e.lockRef.current))},[]);h.useEffect(function(){return Ft.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Lt),document.addEventListener("touchmove",c,Lt),document.addEventListener("touchstart",u,Lt),function(){Ft=Ft.filter(function(g){return g!==a}),document.removeEventListener("wheel",c,Lt),document.removeEventListener("touchmove",c,Lt),document.removeEventListener("touchstart",u,Lt)}},[]);var v=e.removeScrollBar,b=e.inert;return h.createElement(h.Fragment,null,b?h.createElement(a,{styles:iv(o)}):null,v?h.createElement(Jm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const uv=Bm(vi,cv);var Zn=h.forwardRef(function(e,t){return h.createElement(Qn,Ue({},e,{ref:t,sideCar:uv}))});Zn.classNames=Qn.classNames;var Jn="Popover",[Ai]=Ae(Jn,[Dt]),tn=Dt(),[fv,ot]=Ai(Jn),Pi=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=tn(t),c=h.useRef(null),[d,u]=h.useState(!1),[f,p]=Ce({prop:r,defaultProp:o??!1,onChange:a,caller:Jn});return s.jsx(mo,{...l,children:s.jsx(fv,{scope:t,contentId:Pe(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:h.useCallback(()=>p(v=>!v),[p]),hasCustomAnchor:d,onCustomAnchorAdd:h.useCallback(()=>u(!0),[]),onCustomAnchorRemove:h.useCallback(()=>u(!1),[]),modal:i,children:n})})};Pi.displayName=Jn;var Ei="PopoverAnchor",hv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ot(Ei,n),a=tn(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return h.useEffect(()=>(i(),()=>l()),[i,l]),s.jsx(jn,{...a,...r,ref:t})});hv.displayName=Ei;var _i="PopoverTrigger",Mi=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ot(_i,n),a=tn(n),i=J(t,o.triggerRef),l=s.jsx(G.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Li(o.open),...r,ref:i,onClick:V(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:s.jsx(jn,{asChild:!0,...a,children:l})});Mi.displayName=_i;var ko="PopoverPortal",[pv,gv]=Ai(ko,{forceMount:void 0}),Ti=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=ot(ko,t);return s.jsx(pv,{scope:t,forceMount:n,children:s.jsx(We,{present:n||a.open,children:s.jsx(en,{asChild:!0,container:o,children:r})})})};Ti.displayName=ko;var Wt="PopoverContent",Di=h.forwardRef((e,t)=>{const n=gv(Wt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=ot(Wt,e.__scopePopover);return s.jsx(We,{present:r||a.open,children:a.modal?s.jsx(vv,{...o,ref:t}):s.jsx(bv,{...o,ref:t})})});Di.displayName=Wt;var mv=vt("PopoverContent.RemoveScroll"),vv=h.forwardRef((e,t)=>{const n=ot(Wt,e.__scopePopover),r=h.useRef(null),o=J(t,r),a=h.useRef(!1);return h.useEffect(()=>{const i=r.current;if(i)return wo(i)},[]),s.jsx(Zn,{as:mv,allowPinchZoom:!0,children:s.jsx(Oi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,i=>{i.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),bv=h.forwardRef((e,t)=>{const n=ot(Wt,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return s.jsx(Oi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Oi=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...f}=e,p=ot(Wt,n),v=tn(n);return Rr(),s.jsx(Dn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Xt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:s.jsx(vo,{"data-state":Li(p.open),role:"dialog",id:p.contentId,...v,...f,ref:t,style:{...f.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)"}})})})}),Ii="PopoverClose",yv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ot(Ii,n);return s.jsx(G.button,{type:"button",...r,ref:t,onClick:V(e.onClick,()=>o.onOpenChange(!1))})});yv.displayName=Ii;var wv="PopoverArrow",xv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tn(n);return s.jsx(bo,{...o,...r,ref:t})});xv.displayName=wv;function Li(e){return e?"open":"closed"}var Fi=Pi,Wi=Mi,zi=Ti,Bi=Di;const Ao=P.forwardRef(({label:e,placeholder:t,className:n,type:r="button",...o},a)=>s.jsxs("button",{ref:a,type:r,className:A("group flex h-10 w-full items-center justify-between gap-3 rounded-3 border border-gray-300 bg-white px-5","transition-colors duration-200","data-[state=open]:border-main-500 hover:border-gray-400 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60",n),...o,children:[s.jsx(I,{size:"body2",weight:"medium",className:A(e?"text-gray-900":"text-gray-500"),children:e??t}),s.jsx(Ia,{className:"h-6 w-6 text-gray-600",strokeWidth:2.2})]}));Ao.displayName="PickerTrigger";function $i(e){return e?{onMouseDownCapture:t=>t.stopPropagation()}:{}}function Cv({value:e,onChange:t,className:n,placeholder:r="YYYY/MM/DD",disableClickPropagation:o=!1}){const[a,i]=P.useState(!1),l=e?Me(e,"yyyy/MM/dd"):void 0;return s.jsxs(Fi,{open:a,onOpenChange:i,children:[s.jsx(Wi,{asChild:!0,children:s.jsx(Ao,{label:l,placeholder:r,className:n})}),s.jsx(zi,{children:s.jsx(Bi,{className:A("z-50 w-auto rounded-4 border border-gray-300 bg-white p-2 text-gray-900","shadow-[0_10px_20px_rgba(34,34,34,0.12)] 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"),align:"start",sideOffset:8,...$i(o),children:s.jsx(Ur,{mode:"single",selected:e,onSelect:c=>{t(c),c&&i(!1)},initialFocus:!0})})})]})}function Nv({value:e,onChange:t,className:n,placeholder:r="기간을 선택해주세요",disableClickPropagation:o=!1}){const[a,i]=P.useState(!1),l=P.useRef(!1),c=e?.from&&e?.to?`${Me(e.from,"yyyy/MM/dd")} - ${Me(e.to,"yyyy/MM/dd")}`:e?.from?`${Me(e.from,"yyyy/MM/dd")} -`:void 0;return s.jsxs(Fi,{open:a,onOpenChange:d=>{if(i(d),d){l.current=!!(e?.from&&e?.to);return}l.current=!1},children:[s.jsx(Wi,{asChild:!0,children:s.jsx(Ao,{label:c,placeholder:r,className:n})}),s.jsx(zi,{children:s.jsx(Bi,{className:A("z-50 w-auto rounded-4 border border-gray-300 bg-white p-2 text-gray-900","shadow-[0_10px_20px_rgba(34,34,34,0.12)] 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"),align:"start",sideOffset:8,...$i(o),children:s.jsx(Ur,{mode:"range",selected:e,onSelect:(d,u)=>{if(l.current&&u){t({from:u,to:void 0}),l.current=!1;return}t(d),d?.from&&d?.to&&(i(!1),l.current=!1)},initialFocus:!0})})})]})}var Rn="Dialog",[Hi]=Ae(Rn),[Sv,Ie]=Hi(Rn),Vi=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=h.useRef(null),c=h.useRef(null),[d,u]=Ce({prop:r,defaultProp:o??!1,onChange:a,caller:Rn});return s.jsx(Sv,{scope:t,triggerRef:l,contentRef:c,contentId:Pe(),titleId:Pe(),descriptionId:Pe(),open:d,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(f=>!f),[u]),modal:i,children:n})};Vi.displayName=Rn;var ji="DialogTrigger",Yi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(ji,n),a=J(t,o.triggerRef);return s.jsx(G.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_o(o.open),...r,ref:a,onClick:V(e.onClick,o.onOpenToggle)})});Yi.displayName=ji;var Po="DialogPortal",[kv,Gi]=Hi(Po,{forceMount:void 0}),Ui=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ie(Po,t);return s.jsx(kv,{scope:t,forceMount:n,children:h.Children.map(r,i=>s.jsx(We,{present:n||a.open,children:s.jsx(en,{asChild:!0,container:o,children:i})}))})};Ui.displayName=Po;var er="DialogOverlay",Ki=h.forwardRef((e,t)=>{const n=Gi(er,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ie(er,e.__scopeDialog);return a.modal?s.jsx(We,{present:r||a.open,children:s.jsx(Pv,{...o,ref:t})}):null});Ki.displayName=er;var Av=vt("DialogOverlay.RemoveScroll"),Pv=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(er,n);return s.jsx(Zn,{as:Av,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(G.div,{"data-state":_o(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),pt="DialogContent",Qi=h.forwardRef((e,t)=>{const n=Gi(pt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ie(pt,e.__scopeDialog);return s.jsx(We,{present:r||a.open,children:a.modal?s.jsx(Ev,{...o,ref:t}):s.jsx(_v,{...o,ref:t})})});Qi.displayName=pt;var Ev=h.forwardRef((e,t)=>{const n=Ie(pt,e.__scopeDialog),r=h.useRef(null),o=J(t,n.contentRef,r);return h.useEffect(()=>{const a=r.current;if(a)return wo(a)},[]),s.jsx(qi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:V(e.onFocusOutside,a=>a.preventDefault())})}),_v=h.forwardRef((e,t)=>{const n=Ie(pt,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return s.jsx(qi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),qi=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=Ie(pt,n),c=h.useRef(null),d=J(t,c);return Rr(),s.jsxs(s.Fragment,{children:[s.jsx(Dn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Xt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":_o(l.open),...i,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Mv,{titleId:l.titleId}),s.jsx(Dv,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Eo="DialogTitle",Xi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(Eo,n);return s.jsx(G.h2,{id:o.titleId,...r,ref:t})});Xi.displayName=Eo;var Zi="DialogDescription",Ji=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(Zi,n);return s.jsx(G.p,{id:o.descriptionId,...r,ref:t})});Ji.displayName=Zi;var Ri="DialogClose",el=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(Ri,n);return s.jsx(G.button,{type:"button",...r,ref:t,onClick:V(e.onClick,()=>o.onOpenChange(!1))})});el.displayName=Ri;function _o(e){return e?"open":"closed"}var tl="DialogTitleWarning",[dy,nl]=gc(tl,{contentName:pt,titleName:Eo,docsSlug:"dialog"}),Mv=({titleId:e})=>{const t=nl(tl),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
41
|
+
`)},ov=0,Ft=[];function av(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(ov++)[0],a=h.useState(Ci)[0],i=h.useRef(e);h.useEffect(function(){i.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Am([e.lockRef.current],(e.shards||[]).map(_i),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(p,m){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var w=Xn(p),y=n.current,x="deltaX"in p?p.deltaX:y[0]-w[0],N="deltaY"in p?p.deltaY:y[1]-w[1],S,M=p.target,E=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in p&&E==="h"&&M.type==="range")return!1;var k=window.getSelection(),z=k&&k.anchorNode,j=z?z===M||z.contains(M):!1;if(j)return!1;var B=ki(E,M);if(!B)return!0;if(B?S=E:(S=E==="v"?"h":"v",B=ki(E,M)),!B)return!1;if(!r.current&&"changedTouches"in p&&(x||N)&&(r.current=S),!S)return!0;var Y=r.current||S;return tv(Y,m,p,Y==="h"?x:N)},[]),c=h.useCallback(function(p){var m=p;if(!(!Ft.length||Ft[Ft.length-1]!==a)){var w="deltaY"in m?Ei(m):Xn(m),y=t.current.filter(function(S){return S.name===m.type&&(S.target===m.target||m.target===S.shadowParent)&&nv(S.delta,w)})[0];if(y&&y.should){m.cancelable&&m.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(_i).filter(Boolean).filter(function(S){return S.contains(m.target)}),N=x.length>0?l(m,x[0]):!i.current.noIsolation;N&&m.cancelable&&m.preventDefault()}}},[]),d=h.useCallback(function(p,m,w,y){var x={name:p,delta:m,target:w,should:y,shadowParent:sv(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),u=h.useCallback(function(p){n.current=Xn(p),r.current=void 0},[]),f=h.useCallback(function(p){d(p.type,Ei(p),p.target,l(p,e.lockRef.current))},[]),g=h.useCallback(function(p){d(p.type,Xn(p),p.target,l(p,e.lockRef.current))},[]);h.useEffect(function(){return Ft.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Lt),document.addEventListener("touchmove",c,Lt),document.addEventListener("touchstart",u,Lt),function(){Ft=Ft.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,Lt),document.removeEventListener("touchmove",c,Lt),document.removeEventListener("touchstart",u,Lt)}},[]);var v=e.removeScrollBar,b=e.inert;return h.createElement(h.Fragment,null,b?h.createElement(a,{styles:rv(o)}):null,v?h.createElement(Qm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const iv=Lm(xi,av);var Zn=h.forwardRef(function(e,t){return h.createElement(Qn,Ue({},e,{ref:t,sideCar:iv}))});Zn.classNames=Qn.classNames;var Jn="Popover",[Mi]=Ae(Jn,[Dt]),tn=Dt(),[lv,ot]=Mi(Jn),Ti=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=tn(t),c=h.useRef(null),[d,u]=h.useState(!1),[f,g]=Ce({prop:r,defaultProp:o??!1,onChange:a,caller:Jn});return s.jsx(mo,{...l,children:s.jsx(lv,{scope:t,contentId:Pe(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:h.useCallback(()=>g(v=>!v),[g]),hasCustomAnchor:d,onCustomAnchorAdd:h.useCallback(()=>u(!0),[]),onCustomAnchorRemove:h.useCallback(()=>u(!1),[]),modal:i,children:n})})};Ti.displayName=Jn;var Di="PopoverAnchor",cv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ot(Di,n),a=tn(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return h.useEffect(()=>(i(),()=>l()),[i,l]),s.jsx(jn,{...a,...r,ref:t})});cv.displayName=Di;var Oi="PopoverTrigger",Ii=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ot(Oi,n),a=tn(n),i=J(t,o.triggerRef),l=s.jsx(G.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Bi(o.open),...r,ref:i,onClick:V(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:s.jsx(jn,{asChild:!0,...a,children:l})});Ii.displayName=Oi;var ko="PopoverPortal",[dv,uv]=Mi(ko,{forceMount:void 0}),Li=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=ot(ko,t);return s.jsx(dv,{scope:t,forceMount:n,children:s.jsx(We,{present:n||a.open,children:s.jsx(en,{asChild:!0,container:o,children:r})})})};Li.displayName=ko;var Wt="PopoverContent",Fi=h.forwardRef((e,t)=>{const n=uv(Wt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=ot(Wt,e.__scopePopover);return s.jsx(We,{present:r||a.open,children:a.modal?s.jsx(hv,{...o,ref:t}):s.jsx(pv,{...o,ref:t})})});Fi.displayName=Wt;var fv=vt("PopoverContent.RemoveScroll"),hv=h.forwardRef((e,t)=>{const n=ot(Wt,e.__scopePopover),r=h.useRef(null),o=J(t,r),a=h.useRef(!1);return h.useEffect(()=>{const i=r.current;if(i)return wo(i)},[]),s.jsx(Zn,{as:fv,allowPinchZoom:!0,children:s.jsx(Wi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,i=>{i.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),pv=h.forwardRef((e,t)=>{const n=ot(Wt,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return s.jsx(Wi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Wi=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...f}=e,g=ot(Wt,n),v=tn(n);return Rr(),s.jsx(Dn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Xt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:s.jsx(vo,{"data-state":Bi(g.open),role:"dialog",id:g.contentId,...v,...f,ref:t,style:{...f.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)"}})})})}),zi="PopoverClose",gv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ot(zi,n);return s.jsx(G.button,{type:"button",...r,ref:t,onClick:V(e.onClick,()=>o.onOpenChange(!1))})});gv.displayName=zi;var mv="PopoverArrow",vv=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tn(n);return s.jsx(bo,{...o,...r,ref:t})});vv.displayName=mv;function Bi(e){return e?"open":"closed"}var Ao=Ti,Po=Ii,Eo=Li,_o=Fi;const Mo=P.forwardRef(({label:e,placeholder:t,className:n,type:r="button",...o},a)=>s.jsxs("button",{ref:a,type:r,className:A("group flex h-10 w-full items-center justify-between gap-3 rounded-3 border border-gray-300 bg-white px-5","transition-colors duration-200","data-[state=open]:border-main-500 hover:border-gray-400 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60",n),...o,children:[s.jsx(I,{size:"body2",weight:"medium",className:A(e?"text-gray-900":"text-gray-500"),children:e??t}),s.jsx(za,{className:"h-6 w-6 text-gray-600",strokeWidth:2.2})]}));Mo.displayName="PickerTrigger";function $i(e){return e?{onMouseDownCapture:t=>t.stopPropagation()}:{}}function bv({value:e,onChange:t,className:n,placeholder:r="YYYY/MM/DD",disableClickPropagation:o=!1}){const[a,i]=P.useState(!1),l=e?Me(e,"yyyy/MM/dd"):void 0;return s.jsxs(Ao,{open:a,onOpenChange:i,children:[s.jsx(Po,{asChild:!0,children:s.jsx(Mo,{label:l,placeholder:r,className:n})}),s.jsx(Eo,{children:s.jsx(_o,{className:A("z-50 w-auto rounded-4 border border-gray-300 bg-white p-2 text-gray-900","shadow-[0_10px_20px_rgba(34,34,34,0.12)] 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"),align:"start",sideOffset:8,...$i(o),children:s.jsx(Ur,{mode:"single",selected:e,onSelect:c=>{t(c),c&&i(!1)},initialFocus:!0})})})]})}function yv({value:e,onChange:t,className:n,placeholder:r="기간을 선택해주세요",disableClickPropagation:o=!1}){const[a,i]=P.useState(!1),l=P.useRef(!1),c=e?.from&&e?.to?`${Me(e.from,"yyyy/MM/dd")} - ${Me(e.to,"yyyy/MM/dd")}`:e?.from?`${Me(e.from,"yyyy/MM/dd")} -`:void 0;return s.jsxs(Ao,{open:a,onOpenChange:d=>{if(i(d),d){l.current=!!(e?.from&&e?.to);return}l.current=!1},children:[s.jsx(Po,{asChild:!0,children:s.jsx(Mo,{label:c,placeholder:r,className:n})}),s.jsx(Eo,{children:s.jsx(_o,{className:A("z-50 w-auto rounded-4 border border-gray-300 bg-white p-2 text-gray-900","shadow-[0_10px_20px_rgba(34,34,34,0.12)] 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"),align:"start",sideOffset:8,...$i(o),children:s.jsx(Ur,{mode:"range",selected:e,onSelect:(d,u)=>{if(l.current&&u){t({from:u,to:void 0}),l.current=!1;return}t(d),d?.from&&d?.to&&(i(!1),l.current=!1)},initialFocus:!0})})})]})}var Rn="Dialog",[Hi]=Ae(Rn),[wv,Ie]=Hi(Rn),Vi=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=h.useRef(null),c=h.useRef(null),[d,u]=Ce({prop:r,defaultProp:o??!1,onChange:a,caller:Rn});return s.jsx(wv,{scope:t,triggerRef:l,contentRef:c,contentId:Pe(),titleId:Pe(),descriptionId:Pe(),open:d,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(f=>!f),[u]),modal:i,children:n})};Vi.displayName=Rn;var ji="DialogTrigger",Yi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(ji,n),a=J(t,o.triggerRef);return s.jsx(G.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Oo(o.open),...r,ref:a,onClick:V(e.onClick,o.onOpenToggle)})});Yi.displayName=ji;var To="DialogPortal",[xv,Gi]=Hi(To,{forceMount:void 0}),Ui=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ie(To,t);return s.jsx(xv,{scope:t,forceMount:n,children:h.Children.map(r,i=>s.jsx(We,{present:n||a.open,children:s.jsx(en,{asChild:!0,container:o,children:i})}))})};Ui.displayName=To;var er="DialogOverlay",Ki=h.forwardRef((e,t)=>{const n=Gi(er,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ie(er,e.__scopeDialog);return a.modal?s.jsx(We,{present:r||a.open,children:s.jsx(Nv,{...o,ref:t})}):null});Ki.displayName=er;var Cv=vt("DialogOverlay.RemoveScroll"),Nv=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(er,n);return s.jsx(Zn,{as:Cv,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(G.div,{"data-state":Oo(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),pt="DialogContent",Qi=h.forwardRef((e,t)=>{const n=Gi(pt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ie(pt,e.__scopeDialog);return s.jsx(We,{present:r||a.open,children:a.modal?s.jsx(Sv,{...o,ref:t}):s.jsx(kv,{...o,ref:t})})});Qi.displayName=pt;var Sv=h.forwardRef((e,t)=>{const n=Ie(pt,e.__scopeDialog),r=h.useRef(null),o=J(t,n.contentRef,r);return h.useEffect(()=>{const a=r.current;if(a)return wo(a)},[]),s.jsx(qi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:V(e.onFocusOutside,a=>a.preventDefault())})}),kv=h.forwardRef((e,t)=>{const n=Ie(pt,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return s.jsx(qi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),qi=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=Ie(pt,n),c=h.useRef(null),d=J(t,c);return Rr(),s.jsxs(s.Fragment,{children:[s.jsx(Dn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(Xt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Oo(l.open),...i,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Av,{titleId:l.titleId}),s.jsx(Ev,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Do="DialogTitle",Xi=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(Do,n);return s.jsx(G.h2,{id:o.titleId,...r,ref:t})});Xi.displayName=Do;var Zi="DialogDescription",Ji=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(Zi,n);return s.jsx(G.p,{id:o.descriptionId,...r,ref:t})});Ji.displayName=Zi;var Ri="DialogClose",el=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(Ri,n);return s.jsx(G.button,{type:"button",...r,ref:t,onClick:V(e.onClick,()=>o.onOpenChange(!1))})});el.displayName=Ri;function Oo(e){return e?"open":"closed"}var tl="DialogTitleWarning",[dy,nl]=uc(tl,{contentName:pt,titleName:Do,docsSlug:"dialog"}),Av=({titleId:e})=>{const t=nl(tl),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
42
42
|
|
|
43
43
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
44
|
|
|
45
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Tv="DialogDescriptionWarning",Dv=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nl(Tv).contentName}}.`;return h.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ov=Vi,Iv=Yi,Lv=Ui,Fv=Ki,Wv=Qi,zv=Xi,Bv=Ji,rl=el;const $v=Ov,Hv=Iv,ol=Lv,Vv=rl;function al({className:e,...t}){return s.jsx(Fv,{className:A("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})}function jv({className:e,children:t,...n}){return s.jsxs(ol,{children:[s.jsx(al,{}),s.jsxs(Wv,{className:A("fixed top-[50%] left-[50%] z-50","w-full max-w-[calc(100%-2rem)] sm:max-w-md","translate-x-[-50%] translate-y-[-50%]","rounded-2 bg-white p-4 sm:p-6 shadow-default","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-slot=button].h-13]:!h-11","[&_[data-slot=button].h-13]:!px-3.5","[&_[data-slot=button].h-11]:!h-9","[&_[data-slot=button]_.text-lg]:!text-base","[&_[data-slot=button]_.text-base]:!text-sm","duration-200",e),...n,children:[t,s.jsxs(rl,{className:"absolute top-3 right-3 sm:top-4 sm:right-4 rounded-full p-1.5 opacity-70 transition-opacity hover:opacity-100 focus:outline-none cursor-pointer",children:[s.jsx(kn,{width:18,height:18,className:"text-gray-500 sm:w-5 sm:h-5"}),s.jsx("span",{className:"sr-only",children:"닫기"})]})]})]})}function Yv({className:e,...t}){return s.jsx("div",{className:A("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Gv({className:e,...t}){return s.jsx("div",{className:A("mt-4 sm:mt-6 flex flex-row justify-end gap-2",e),...t})}function Uv({className:e,children:t,...n}){return s.jsx(zv,{asChild:!0,...n,children:s.jsx(I,{size:"heading2",weight:"bold",className:A("text-black",e),children:t})})}function Kv({className:e,children:t,...n}){return s.jsx(Bv,{asChild:!0,...n,children:s.jsx(I,{size:"body2",weight:"regular",className:A("text-gray-600 mt-2",e),children:t})})}function Qv({imageUrl:e,alt:t,percent:n,emotion:r,isLiked:o,likeCount:a,onToggleLike:i}){const l={happy:"😎",soso:"🙂",sad:"🥲"},c=Math.min(Math.max(n,0),100),d=!!(e&&e.trim().length>0);return s.jsxs("div",{className:"relative aspect-4/5 w-full overflow-hidden bg-gray-100",children:[d?s.jsx(lt,{src:e,alt:t,fill:!0,className:"h-full w-full object-cover"}):s.jsx(Qt,{className:"h-full w-full",logoSize:"lg"}),d?s.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-linear-to-t from-black/15 to-transparent"}):null,s.jsx("div",{className:"absolute top-3 left-3 z-20",children:s.jsx("div",{className:"relative flex h-10 w-10 items-center justify-center rounded-full bg-white shadow-[0_6px_14px_rgba(34,34,34,0.2)] sm:h-12 sm:w-12",children:s.jsx(Xr,{value:c,size:"sm",showPercentage:!0})})}),s.jsx("div",{className:"absolute top-3 right-3 z-20 text-2xl leading-none sm:text-3xl",children:s.jsx("span",{role:"img","aria-label":r,children:l[r]})}),s.jsx("div",{className:"absolute bottom-3 left-3 z-20",children:s.jsxs("button",{type:"button",onClick:u=>{u.stopPropagation(),i()},className:"inline-flex cursor-pointer items-center gap-1 rounded-full bg-main-800 px-3 py-1.5 text-white shadow-[0_4px_10px_rgba(34,34,34,0.25)] transition-colors hover:bg-main-900",children:[o?s.jsx(Cr,{width:14,height:14,className:"text-white"}):s.jsx(xr,{width:14,height:14,className:"text-white"}),s.jsx(I,{size:"body2",weight:"bold",className:"text-white",children:a})]})})]})}function qv({title:e,user:t,userImage:n,challengeLabel:r,onChallengeClick:o,date:a}){return s.jsxs("div",{className:"flex w-full flex-col gap-2 p-3 sm:gap-3 sm:p-4",children:[s.jsx(I,{as:"p",size:"body2",weight:"bold",className:"line-clamp-2 min-h-8 leading-tight text-gray-900 sm:text-xl sm:min-h-10",children:e}),s.jsx("button",{type:"button",onClick:i=>{i.stopPropagation(),o?.()},className:A("block w-full cursor-pointer rounded-1 px-1 py-0.5 text-left transition-colors","hover:bg-gray-100"),children:s.jsx(I,{size:"caption1",weight:"medium",className:"block w-full truncate text-blue-500 sm:text-lg",children:r})}),s.jsx("div",{className:"h-px w-full bg-gray-200"}),s.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[s.jsx(xt,{imageUrl:n,size:"sm"}),s.jsxs("div",{className:"flex flex-col gap-0.5 sm:gap-1",children:[s.jsx(I,{size:"caption1",weight:"bold",className:"text-gray-900 sm:text-lg",children:t}),s.jsx(I,{size:"caption3",weight:"regular",className:"text-gray-500 sm:text-sm",children:a})]})]})]})}function Xv({imageUrl:e,percent:t,likes:n,isLiked:r,defaultLiked:o=!1,onLikeToggle:a,title:i,user:l,userImage:c,challengeLabel:d,totalMemberCount:u,onChallengeClick:f,date:p,emotion:v="happy",onClick:b}){const g=typeof r=="boolean",[m,w]=P.useState(o),[y,x]=P.useState(n),N=g?r:m,S=g?n:y;P.useEffect(()=>{g||x(n)},[g,n]);const M=()=>{const k=!N,z=Math.max(0,S+(k?1:-1));g||(w(k),x(z)),a?.(k)},E=typeof u=="number"?u<=1?"개인":"단체":d;return s.jsx("div",{className:A("block w-full",b&&"cursor-pointer"),onClick:b,children:s.jsxs("div",{className:"overflow-hidden rounded-4 border border-gray-200 bg-white transition-transform duration-200 hover:-translate-y-1 hover:shadow-lg",children:[s.jsx(Qv,{imageUrl:e,alt:i,percent:t,emotion:v,isLiked:N,likeCount:S,onToggleLike:M}),s.jsx(qv,{title:i,user:l,userImage:c,challengeLabel:E,onChallengeClick:f,date:p})]})})}const Zv={happy:"😎",soso:"🙂",sad:"🥲"};function Jv({title:e,imageUrl:t,percent:n,emotion:r="happy",likes:o,isLiked:a,defaultLiked:i=!1,onLikeToggle:l,user:c,userImage:d,challengeLabel:u,totalMemberCount:f,onChallengeClick:p,date:v,onClick:b,className:g}){const m=typeof a=="boolean",[w,y]=P.useState(i),[x,N]=P.useState(o),S=m?a:w,M=m?o:x;P.useEffect(()=>{m||N(o)},[m,o]);const E=B=>{B.stopPropagation();const Y=!S,K=Math.max(0,M+(Y?1:-1));m||(y(Y),N(K)),l?.(Y)},k=!!(t&&t.trim().length>0),z=Math.min(Math.max(n,0),100),j=typeof f=="number"?f<=1?"개인":"단체":u;return s.jsxs("div",{className:A("flex min-w-[320px] gap-3 rounded-4 border border-gray-200 bg-white p-3 transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default sm:min-w-[560px]",b&&"cursor-pointer",g),onClick:b,children:[s.jsxs("div",{className:"relative -mb-3 -ml-3 -mt-3 w-[100px] shrink-0 self-stretch overflow-hidden rounded-l-3 bg-gray-100 sm:w-[140px]",children:[k?s.jsx(lt,{src:t,alt:e,width:128,height:128,className:"h-full w-full object-cover"}):s.jsx(Qt,{className:"h-full w-full",logoSize:"sm"}),k?s.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-6 bg-linear-to-t from-black/10 to-transparent"}):null,s.jsx("div",{className:"absolute top-2 left-2 z-10",children:s.jsx("div",{className:"relative flex h-9 w-9 items-center justify-center rounded-full bg-white shadow-[0_4px_10px_rgba(34,34,34,0.18)]",children:s.jsx(Xr,{value:z,size:"sm",showPercentage:!0})})}),s.jsx("div",{className:"absolute top-2 right-2 z-10 text-xl leading-none",children:s.jsx("span",{role:"img","aria-label":r,children:Zv[r]})})]}),s.jsxs("div",{className:"flex flex-1 flex-col min-w-0 gap-2 py-0.5",children:[s.jsx(I,{as:"p",size:"body1",weight:"bold",className:"line-clamp-2 leading-snug text-gray-900",children:e}),s.jsx("button",{type:"button",onClick:B=>{B.stopPropagation(),p?.()},className:"block w-fit cursor-pointer rounded-1 px-1 py-0.5 text-left transition-colors hover:bg-gray-100",children:s.jsx(I,{size:"caption1",weight:"medium",className:"truncate text-blue-500",children:j})}),s.jsx("div",{className:"h-px w-full bg-gray-200"}),s.jsxs("div",{className:"mt-auto flex items-center justify-between",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(xt,{imageUrl:d,size:"sm"}),s.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[s.jsx(I,{size:"caption2",weight:"bold",className:"truncate text-gray-900",children:c}),s.jsx(I,{size:"caption2",weight:"regular",className:"shrink-0 text-gray-500",children:v})]})]}),s.jsxs("button",{type:"button",onClick:E,className:"flex shrink-0 items-center gap-1 text-gray-500 transition-colors hover:text-red-500",children:[S?s.jsx(Cr,{width:15,height:15,className:"text-red-500"}):s.jsx(xr,{width:15,height:15}),s.jsx(I,{size:"caption2",weight:"medium",className:"text-inherit",children:M})]})]})]})]})}function sl(e,[t,n]){return Math.min(n,Math.max(t,e))}var il=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Rv="VisuallyHidden",ll=h.forwardRef((e,t)=>s.jsx(G.span,{...e,ref:t,style:{...il,...e.style}}));ll.displayName=Rv;var e0=ll,t0=[" ","Enter","ArrowUp","ArrowDown"],n0=[" ","Enter"],gt="Select",[tr,nr,r0]=cr(gt),[zt]=Ae(gt,[r0,Dt]),rr=Dt(),[o0,at]=zt(gt),[a0,s0]=zt(gt),cl=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:c,dir:d,name:u,autoComplete:f,disabled:p,required:v,form:b}=e,g=rr(t),[m,w]=h.useState(null),[y,x]=h.useState(null),[N,S]=h.useState(!1),M=hn(d),[E,k]=Ce({prop:r,defaultProp:o??!1,onChange:a,caller:gt}),[z,j]=Ce({prop:i,defaultProp:l,onChange:c,caller:gt}),B=h.useRef(null),Y=m?b||!!m.closest("form"):!0,[K,U]=h.useState(new Set),O=Array.from(K).map(T=>T.props.value).join(";");return s.jsx(mo,{...g,children:s.jsxs(o0,{required:v,scope:t,trigger:m,onTriggerChange:w,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:Pe(),value:z,onValueChange:j,open:E,onOpenChange:k,dir:M,triggerPointerDownPosRef:B,disabled:p,children:[s.jsx(tr.Provider,{scope:t,children:s.jsx(a0,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(T=>{U(_=>new Set(_).add(T))},[]),onNativeOptionRemove:h.useCallback(T=>{U(_=>{const C=new Set(_);return C.delete(T),C})},[]),children:n})}),Y?s.jsxs(Il,{"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:f,value:z,onChange:T=>j(T.target.value),disabled:p,form:b,children:[z===void 0?s.jsx("option",{value:""}):null,Array.from(K)]},O):null]})})};cl.displayName=gt;var dl="SelectTrigger",ul=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=rr(n),i=at(dl,n),l=i.disabled||r,c=J(t,i.onTriggerChange),d=nr(n),u=h.useRef("touch"),[f,p,v]=Fl(g=>{const m=d().filter(x=>!x.disabled),w=m.find(x=>x.value===i.value),y=Wl(m,g,w);y!==void 0&&i.onValueChange(y.value)}),b=g=>{l||(i.onOpenChange(!0),v()),g&&(i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return s.jsx(jn,{asChild:!0,...a,children:s.jsx(G.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Ll(i.value)?"":void 0,...o,ref:c,onClick:V(o.onClick,g=>{g.currentTarget.focus(),u.current!=="mouse"&&b(g)}),onPointerDown:V(o.onPointerDown,g=>{u.current=g.pointerType;const m=g.target;m.hasPointerCapture(g.pointerId)&&m.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(b(g),g.preventDefault())}),onKeyDown:V(o.onKeyDown,g=>{const m=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&p(g.key),!(m&&g.key===" ")&&t0.includes(g.key)&&(b(),g.preventDefault())})})})});ul.displayName=dl;var fl="SelectValue",hl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,c=at(fl,n),{onValueNodeHasChildrenChange:d}=c,u=a!==void 0,f=J(t,c.onValueNodeChange);return fe(()=>{d(u)},[d,u]),s.jsx(G.span,{...l,ref:f,style:{pointerEvents:"none"},children:Ll(c.value)?s.jsx(s.Fragment,{children:i}):a})});hl.displayName=fl;var i0="SelectIcon",pl=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return s.jsx(G.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});pl.displayName=i0;var l0="SelectPortal",gl=e=>s.jsx(en,{asChild:!0,...e});gl.displayName=l0;var mt="SelectContent",ml=h.forwardRef((e,t)=>{const n=at(mt,e.__scopeSelect),[r,o]=h.useState();if(fe(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?dn.createPortal(s.jsx(vl,{scope:e.__scopeSelect,children:s.jsx(tr.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),a):null}return s.jsx(bl,{...e,ref:t})});ml.displayName=mt;var Le=10,[vl,st]=zt(mt),c0="SelectContentImpl",d0=vt("SelectContent.RemoveScroll"),bl=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:v,sticky:b,hideWhenDetached:g,avoidCollisions:m,...w}=e,y=at(mt,n),[x,N]=h.useState(null),[S,M]=h.useState(null),E=J(t,L=>N(L)),[k,z]=h.useState(null),[j,B]=h.useState(null),Y=nr(n),[K,U]=h.useState(!1),O=h.useRef(!1);h.useEffect(()=>{if(x)return wo(x)},[x]),Rr();const T=h.useCallback(L=>{const[ne,...ie]=Y().map(re=>re.ref.current),[q]=ie.slice(-1),R=document.activeElement;for(const re of L)if(re===R||(re?.scrollIntoView({block:"nearest"}),re===ne&&S&&(S.scrollTop=0),re===q&&S&&(S.scrollTop=S.scrollHeight),re?.focus(),document.activeElement!==R))return},[Y,S]),_=h.useCallback(()=>T([k,x]),[T,k,x]);h.useEffect(()=>{K&&_()},[K,_]);const{onOpenChange:C,triggerPointerDownPosRef:$}=y;h.useEffect(()=>{if(x){let L={x:0,y:0};const ne=q=>{L={x:Math.abs(Math.round(q.pageX)-($.current?.x??0)),y:Math.abs(Math.round(q.pageY)-($.current?.y??0))}},ie=q=>{L.x<=10&&L.y<=10?q.preventDefault():x.contains(q.target)||C(!1),document.removeEventListener("pointermove",ne),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",ie,{capture:!0})}}},[x,C,$]),h.useEffect(()=>{const L=()=>C(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L)}},[C]);const[X,he]=Fl(L=>{const ne=Y().filter(R=>!R.disabled),ie=ne.find(R=>R.ref.current===document.activeElement),q=Wl(ne,L,ie);q&&setTimeout(()=>q.ref.current.focus())}),ke=h.useCallback((L,ne,ie)=>{const q=!O.current&&!ie;(y.value!==void 0&&y.value===ne||q)&&(z(L),q&&(O.current=!0))},[y.value]),se=h.useCallback(()=>x?.focus(),[x]),ae=h.useCallback((L,ne,ie)=>{const q=!O.current&&!ie;(y.value!==void 0&&y.value===ne||q)&&B(L)},[y.value]),ge=r==="popper"?Mo:yl,me=ge===Mo?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:v,sticky:b,hideWhenDetached:g,avoidCollisions:m}:{};return s.jsx(vl,{scope:n,content:x,viewport:S,onViewportChange:M,itemRefCallback:ke,selectedItem:k,onItemLeave:se,itemTextRefCallback:ae,focusSelectedItem:_,selectedItemText:j,position:r,isPositioned:K,searchRef:X,children:s.jsx(Zn,{as:d0,allowPinchZoom:!0,children:s.jsx(Dn,{asChild:!0,trapped:y.open,onMountAutoFocus:L=>{L.preventDefault()},onUnmountAutoFocus:V(o,L=>{y.trigger?.focus({preventScroll:!0}),L.preventDefault()}),children:s.jsx(Xt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:s.jsx(ge,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:L=>L.preventDefault(),...w,...me,onPlaced:()=>U(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:V(w.onKeyDown,L=>{const ne=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!ne&&L.key.length===1&&he(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let q=Y().filter(R=>!R.disabled).map(R=>R.ref.current);if(["ArrowUp","End"].includes(L.key)&&(q=q.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const R=L.target,re=q.indexOf(R);q=q.slice(re+1)}setTimeout(()=>T(q)),L.preventDefault()}})})})})})})});bl.displayName=c0;var u0="SelectItemAlignedPosition",yl=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=at(mt,n),i=st(mt,n),[l,c]=h.useState(null),[d,u]=h.useState(null),f=J(t,E=>u(E)),p=nr(n),v=h.useRef(!1),b=h.useRef(!0),{viewport:g,selectedItem:m,selectedItemText:w,focusSelectedItem:y}=i,x=h.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&g&&m&&w){const E=a.trigger.getBoundingClientRect(),k=d.getBoundingClientRect(),z=a.valueNode.getBoundingClientRect(),j=w.getBoundingClientRect();if(a.dir!=="rtl"){const R=j.left-k.left,re=z.left-R,xe=E.left-re,Z=E.width+xe,ve=Math.max(Z,k.width),be=window.innerWidth-Le,cn=sl(re,[Le,Math.max(Le,be-ve)]);l.style.minWidth=Z+"px",l.style.left=cn+"px"}else{const R=k.right-j.right,re=window.innerWidth-z.right-R,xe=window.innerWidth-E.right-re,Z=E.width+xe,ve=Math.max(Z,k.width),be=window.innerWidth-Le,cn=sl(re,[Le,Math.max(Le,be-ve)]);l.style.minWidth=Z+"px",l.style.right=cn+"px"}const B=p(),Y=window.innerHeight-Le*2,K=g.scrollHeight,U=window.getComputedStyle(d),O=parseInt(U.borderTopWidth,10),T=parseInt(U.paddingTop,10),_=parseInt(U.borderBottomWidth,10),C=parseInt(U.paddingBottom,10),$=O+T+K+C+_,X=Math.min(m.offsetHeight*5,$),he=window.getComputedStyle(g),ke=parseInt(he.paddingTop,10),se=parseInt(he.paddingBottom,10),ae=E.top+E.height/2-Le,ge=Y-ae,me=m.offsetHeight/2,L=m.offsetTop+me,ne=O+T+L,ie=$-ne;if(ne<=ae){const R=B.length>0&&m===B[B.length-1].ref.current;l.style.bottom="0px";const re=d.clientHeight-g.offsetTop-g.offsetHeight,xe=Math.max(ge,me+(R?se:0)+re+_),Z=ne+xe;l.style.height=Z+"px"}else{const R=B.length>0&&m===B[0].ref.current;l.style.top="0px";const xe=Math.max(ae,O+g.offsetTop+(R?ke:0)+me)+ie;l.style.height=xe+"px",g.scrollTop=ne-ae+g.offsetTop}l.style.margin=`${Le}px 0`,l.style.minHeight=X+"px",l.style.maxHeight=Y+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[p,a.trigger,a.valueNode,l,d,g,m,w,a.dir,r]);fe(()=>x(),[x]);const[N,S]=h.useState();fe(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);const M=h.useCallback(E=>{E&&b.current===!0&&(x(),y?.(),b.current=!1)},[x,y]);return s.jsx(h0,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:M,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:s.jsx(G.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});yl.displayName=u0;var f0="SelectPopperPosition",Mo=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Le,...a}=e,i=rr(n);return s.jsx(vo,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Mo.displayName=f0;var[h0,To]=zt(mt,{}),Do="SelectViewport",wl=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=st(Do,n),i=To(Do,n),l=J(t,a.onViewportChange),c=h.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),s.jsx(tr.Slot,{scope:n,children:s.jsx(G.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:V(o.onScroll,d=>{const u=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:p}=i;if(p?.current&&f){const v=Math.abs(c.current-u.scrollTop);if(v>0){const b=window.innerHeight-Le*2,g=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),w=Math.max(g,m);if(w<b){const y=w+v,x=Math.min(b,y),N=y-x;f.style.height=x+"px",f.style.bottom==="0px"&&(u.scrollTop=N>0?N:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});wl.displayName=Do;var xl="SelectGroup",[p0,g0]=zt(xl),Cl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Pe();return s.jsx(p0,{scope:n,id:o,children:s.jsx(G.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Cl.displayName=xl;var Nl="SelectLabel",Sl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=g0(Nl,n);return s.jsx(G.div,{id:o.id,...r,ref:t})});Sl.displayName=Nl;var or="SelectItem",[m0,kl]=zt(or),Al=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=at(or,n),c=st(or,n),d=l.value===r,[u,f]=h.useState(a??""),[p,v]=h.useState(!1),b=J(t,y=>c.itemRefCallback?.(y,r,o)),g=Pe(),m=h.useRef("touch"),w=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(m0,{scope:n,value:r,disabled:o,textId:g,isSelected:d,onItemTextChange:h.useCallback(y=>{f(x=>x||(y?.textContent??"").trim())},[]),children:s.jsx(tr.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:s.jsx(G.div,{role:"option","aria-labelledby":g,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:V(i.onFocus,()=>v(!0)),onBlur:V(i.onBlur,()=>v(!1)),onClick:V(i.onClick,()=>{m.current!=="mouse"&&w()}),onPointerUp:V(i.onPointerUp,()=>{m.current==="mouse"&&w()}),onPointerDown:V(i.onPointerDown,y=>{m.current=y.pointerType}),onPointerMove:V(i.onPointerMove,y=>{m.current=y.pointerType,o?c.onItemLeave?.():m.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:V(i.onKeyDown,y=>{c.searchRef?.current!==""&&y.key===" "||(n0.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});Al.displayName=or;var nn="SelectItemText",Pl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=at(nn,n),l=st(nn,n),c=kl(nn,n),d=s0(nn,n),[u,f]=h.useState(null),p=J(t,w=>f(w),c.onItemTextChange,w=>l.itemTextRefCallback?.(w,c.value,c.disabled)),v=u?.textContent,b=h.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:g,onNativeOptionRemove:m}=d;return fe(()=>(g(b),()=>m(b)),[g,m,b]),s.jsxs(s.Fragment,{children:[s.jsx(G.span,{id:c.textId,...a,ref:p}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?dn.createPortal(a.children,i.valueNode):null]})});Pl.displayName=nn;var El="SelectItemIndicator",_l=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return kl(El,n).isSelected?s.jsx(G.span,{"aria-hidden":!0,...r,ref:t}):null});_l.displayName=El;var Oo="SelectScrollUpButton",Ml=h.forwardRef((e,t)=>{const n=st(Oo,e.__scopeSelect),r=To(Oo,e.__scopeSelect),[o,a]=h.useState(!1),i=J(t,r.onScrollButtonChange);return fe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?s.jsx(Dl,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});Ml.displayName=Oo;var Io="SelectScrollDownButton",Tl=h.forwardRef((e,t)=>{const n=st(Io,e.__scopeSelect),r=To(Io,e.__scopeSelect),[o,a]=h.useState(!1),i=J(t,r.onScrollButtonChange);return fe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<d;a(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?s.jsx(Dl,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});Tl.displayName=Io;var Dl=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=st("SelectScrollButton",n),i=h.useRef(null),l=nr(n),c=h.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return h.useEffect(()=>()=>c(),[c]),fe(()=>{l().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),s.jsx(G.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:V(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:V(o.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:V(o.onPointerLeave,()=>{c()})})}),v0="SelectSeparator",Ol=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return s.jsx(G.div,{"aria-hidden":!0,...r,ref:t})});Ol.displayName=v0;var Lo="SelectArrow",b0=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=rr(n),a=at(Lo,n),i=st(Lo,n);return a.open&&i.position==="popper"?s.jsx(bo,{...o,...r,ref:t}):null});b0.displayName=Lo;var y0="SelectBubbleInput",Il=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),a=J(r,o),i=ms(t);return h.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&u){const f=new Event("change",{bubbles:!0});u.call(l,t),l.dispatchEvent(f)}},[i,t]),s.jsx(G.select,{...n,style:{...il,...n.style},ref:a,defaultValue:t})});Il.displayName=y0;function Ll(e){return e===""||e===void 0}function Fl(e){const t=et(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(i=>{const l=n.current+i;t(l),(function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),a=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Wl(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=w0(e,Math.max(a,0));o.length===1&&(i=i.filter(d=>d!==n));const c=i.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function w0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var x0=cl,C0=ul,N0=hl,S0=pl,k0=gl,A0=ml,P0=wl,E0=Cl,_0=Sl,M0=Al,T0=Pl,D0=_l,O0=Ml,I0=Tl,L0=Ol;const F0=x0,W0=E0,z0=N0;function B0({className:e,size:t="default",children:n,...r}){const o=t==="sm";return s.jsxs(C0,{"data-slot":"select-trigger","data-size":t,className:A("group flex w-full items-center justify-between whitespace-nowrap border-2 bg-white outline-none transition-all duration-200","disabled:cursor-not-allowed disabled:opacity-50","data-[placeholder]:text-gray-500 focus-visible:ring-3 focus-visible:ring-main-300/60",o?"h-10 min-w-[150px] rounded-3 border-gray-300 px-3.5":"h-10 min-w-[150px] rounded-3 border-gray-300 px-4 shadow-[0_4px_10px_rgba(34,34,34,0.06)]",e),...r,children:[s.jsx(I,{size:"body2",weight:"medium",className:"line-clamp-1 text-gray-900",children:n}),s.jsx(S0,{asChild:!0,children:s.jsx(wn,{"data-slot":"select-chevron",className:A("pointer-events-none shrink-0 text-gray-600 transition-transform duration-200 group-data-[state=open]:rotate-180","h-4 w-4"),strokeWidth:2.8})})]})}function $0({className:e,children:t,...n}){return s.jsxs(M0,{"data-slot":"select-item",className:A("relative flex w-full cursor-pointer items-center gap-3 rounded-2 px-3.5 py-2.5 outline-hidden select-none","text-gray-900 transition-colors focus:bg-gray-100 focus:text-gray-900","data-disabled:pointer-events-none data-disabled:opacity-50",e),...n,children:[s.jsx("span",{className:"absolute right-3 flex size-4 items-center justify-center",children:s.jsx(D0,{children:s.jsx(Ct,{className:"size-4 text-main-800"})})}),s.jsx(T0,{children:s.jsx(I,{size:"body2",weight:"medium",children:t})})]})}function H0({className:e,...t}){return s.jsx(L0,{"data-slot":"select-separator",className:A("pointer-events-none my-1 h-px bg-gray-200",e),...t})}function zl({className:e,...t}){return s.jsx(O0,{"data-slot":"select-scroll-up-button",className:A("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:s.jsx(Fa,{className:"size-4"})})}function Bl({className:e,...t}){return s.jsx(I0,{"data-slot":"select-scroll-down-button",className:A("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:s.jsx(wn,{className:"size-4"})})}function V0({className:e,children:t,position:n="popper",...r}){return s.jsx(k0,{children:s.jsxs(A0,{"data-slot":"select-content",className:A("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto","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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","rounded-[24px] border-2 border-gray-300 bg-white shadow-[0_10px_20px_rgba(34,34,34,0.1)]",e),position:n,...r,children:[s.jsx(zl,{}),s.jsx(P0,{className:A("p-2",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:t}),s.jsx(Bl,{})]})})}function j0({className:e,...t}){return s.jsx(_0,{"data-slot":"select-label",className:A("px-4 py-2 text-xs font-bold text-gray-500",e),...t})}function Y0({goals:e,defaultGoals:t=[],onGoalsChange:n,placeholder:r="목표를 입력하세요",disabled:o=!1,addOnBlur:a=!1,inputAriaLabel:i="목표 입력",className:l,...c}){const d=e!==void 0,[u,f]=P.useState(t),[p,v]=P.useState(""),b=P.useRef(!1),g=d?e:u,m=x=>{d||f(x),n?.(x)},w=()=>{if(o)return;const x=p.trim();x&&(m([...g,x]),v(""))},y=x=>{o||m(g.filter((N,S)=>S!==x))};return s.jsxs("div",{className:A("flex w-full flex-col gap-4",l),...c,children:[g.map((x,N)=>s.jsxs("div",{className:"flex h-16 w-full items-center justify-between rounded-4 border border-gray-300 bg-white px-5",children:[s.jsx(I,{size:"body1",weight:"bold",className:"line-clamp-1 text-gray-900",children:x}),s.jsx("button",{type:"button","aria-label":`목표 삭제: ${x}`,disabled:o,onClick:()=>y(N),className:A("inline-flex h-8 w-8 items-center justify-center rounded-2 text-gray-600 transition-colors hover:cursor-pointer",!o&&"hover:bg-gray-100 hover:text-gray-700",o&&"cursor-not-allowed text-gray-400"),children:s.jsx(kn,{className:"h-5 w-5"})})]},`${x}-${N}`)),s.jsx("input",{type:"text",value:p,disabled:o,"aria-label":i,placeholder:r,onChange:x=>v(x.target.value),onCompositionStart:()=>{b.current=!0},onCompositionEnd:()=>{b.current=!1},onKeyDown:x=>{x.key==="Enter"&&(x.nativeEvent.isComposing||b.current||x.nativeEvent.keyCode===229||(x.preventDefault(),w()))},onBlur:()=>{a&&w()},className:A("h-16 w-full rounded-4 border border-gray-300 bg-white px-5","text-xl font-medium text-gray-900 placeholder:text-gray-500","outline-none transition-all duration-200","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60",o&&"cursor-not-allowed opacity-60")})]})}function G0({onChange:e,size:t=300,defaultImageUrl:n,changeLabel:r="Change",...o}){const a=Math.max(t,120),i=Math.max(Math.round(a*.3),28),l=Math.max(Math.round(i*.6),18),c=P.useRef(null),d=P.useRef(null),[u,f]=P.useState(n??null),p=()=>{c.current?.click()};P.useEffect(()=>{f(n??null)},[n]),P.useEffect(()=>()=>{d.current&&URL.revokeObjectURL(d.current)},[]);const v=b=>{const g=b.target.files?.[0];if(g){d.current&&URL.revokeObjectURL(d.current);const m=URL.createObjectURL(g);d.current=m,f(m)}};return s.jsxs("div",{className:"relative inline-flex",style:{width:a,height:a},children:[s.jsx("input",{type:"file",accept:"image/*",ref:c,className:"hidden",onChange:b=>{e!==void 0&&e(b),v(b)},...o}),s.jsx("button",{type:"button",onClick:p,"aria-label":"이미지 선택",className:A("relative h-full w-full overflow-hidden rounded-full","cursor-pointer",u?"bg-main-300":"border-2 border-dashed border-gray-400 bg-white"),children:u?s.jsx("img",{src:u,alt:"이미지 미리보기",className:"h-full w-full object-cover",loading:"lazy"}):s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(Vt,{width:l,height:i,className:"text-gray-300"})})}),s.jsxs("button",{type:"button",onClick:p,className:A("absolute bottom-0 left-1/2 z-10 inline-flex h-9 -translate-x-1/2 translate-y-1/2 items-center gap-1.5 rounded-full border border-gray-200 bg-white px-5","cursor-pointer shadow-[0_6px_16px_rgba(34,34,34,0.16)]"),children:[s.jsx(An,{className:"h-3.5 w-3.5 text-gray-700"}),s.jsx(I,{size:"caption1",weight:"medium",className:"text-gray-700",children:r})]})]})}function U0({mainText:e,subText:t,imageSrc:n,imageAlt:r="icon",gradientFrom:o,gradientTo:a,onClick:i,className:l}){return s.jsxs("div",{className:A("relative overflow-hidden rounded-2 text-white","flex flex-col justify-between","p-4 sm:p-4 lg:p-6","h-24 w-full sm:h-36 lg:h-47.5 lg:w-56","hover:shadow-default hover:-translate-y-1 transition-all duration-300",i&&"cursor-pointer",l),style:{backgroundImage:`linear-gradient(to bottom right, ${o}, ${a})`},onClick:i,children:[s.jsxs("div",{className:"flex w-full flex-col gap-0.5 sm:gap-1",children:[s.jsx(I,{size:"caption3",weight:"medium",className:"opacity-80",children:e}),s.jsx(I,{size:"caption2",weight:"bold",className:"mt-0.5 sm:text-xl sm:mt-1 lg:text-2xl",children:t})]}),s.jsx("div",{className:"absolute bottom-2 left-2 sm:bottom-4 sm:left-4 lg:bottom-6 lg:left-6",children:s.jsx(lt,{src:n,alt:r,width:24,height:40,className:"object-contain sm:w-9 sm:h-15 lg:w-12 lg:h-19.5"})}),s.jsx(I,{size:"body2",weight:"bold",className:"absolute right-2 bottom-2 sm:right-4 sm:bottom-4 sm:text-3xl lg:right-6 lg:bottom-6 lg:text-4xl",children:"→"})]})}function K0(){return s.jsxs("div",{className:"flex items-end gap-2",children:[s.jsx(Vt,{width:24,height:40,className:"text-gray-300"}),s.jsx(I,{size:"body1",weight:"bold",className:"my-2.5 text-gray-300",children:"1D1S"})]})}const rn="...";function Q0({currentPage:e,totalPages:t,siblingCount:n=1}){return h.useMemo(()=>{if(n+5>=t)return Array.from({length:t},(f,p)=>p+1);const a=Math.max(e-n,1),i=Math.min(e+n,t),l=a>2,c=i<t-2,d=1,u=t;if(!l&&c){const f=3+2*n;return[...Array.from({length:f},(v,b)=>b+1),rn,t]}if(l&&!c){const f=3+2*n,p=Array.from({length:f},(v,b)=>t-f+b+1);return[d,rn,...p]}if(l&&c){const f=Array.from({length:i-a+1},(p,v)=>a+v);return[d,rn,...f,rn,u]}},[t,e,n])}function q0({currentPage:e,totalPages:t,onPageChange:n,siblingCount:r=1,className:o}){const a=Q0({currentPage:e,totalPages:t,siblingCount:r});if(e===0||t<2)return null;const i=()=>{e<t&&n(e+1)},l=()=>{e>1&&n(e-1)};return s.jsxs("nav",{role:"navigation","aria-label":"Pagination",className:A("flex items-center justify-center gap-3",o),children:[s.jsx(de,{onClick:l,disabled:e===1,variant:"outlined",size:"icon",className:"rounded-3 border-gray-300 bg-white text-gray-600 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400","aria-label":"Go to previous page",children:s.jsx(Nn,{className:"h-5 w-5"})}),a?.map((c,d)=>{if(c===rn)return s.jsx("div",{className:"flex h-10 min-w-10 items-center justify-center px-1",children:s.jsx("span",{className:"text-lg font-medium text-gray-400",children:"..."})},`dots-${d}`);const u=c===e;return s.jsx(de,{onClick:()=>n(c),variant:u?"default":"secondary",size:"icon",className:A("rounded-3",u?"bg-main-800 text-white shadow-[0_8px_16px_rgba(255,87,34,0.3)] hover:bg-main-800":"bg-gray-100 text-gray-700 hover:bg-gray-200"),"aria-current":u?"page":void 0,children:s.jsx("span",{className:A("text-2xl leading-none",u?"font-bold text-white":"font-medium text-gray-700"),children:c})},c)}),s.jsx(de,{onClick:i,disabled:e===t,variant:"outlined",size:"icon",className:"rounded-3 border-gray-300 bg-white text-gray-600 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400","aria-label":"Go to next page",children:s.jsx(Sn,{className:"h-5 w-5"})})]})}function $l({value:e,label:t,showLabel:n,showValueText:r=!0,valueText:o,infinite:a=!1,thickness:i=6,fillColor:l,trackColor:c,className:d,labelClassName:u,valueClassName:f,trackClassName:p,fillClassName:v,...b}){const g=Math.min(Math.max(e,0),100),m=a?"100%":`${g}%`,w=o??(a?"∞":`${g}%`),y=n??t!==void 0;return s.jsxs("div",{className:A("w-full",d),...b,children:[(y||r)&&s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y?s.jsx(I,{size:"caption1",weight:"medium",className:A("line-clamp-1 text-gray-800",u),children:t}):s.jsx("span",{}),r?s.jsx(I,{size:"caption1",weight:"medium",className:A("shrink-0 text-gray-600",f),children:w}):null]}),s.jsx("div",{className:A("mt-2.5 overflow-hidden rounded-full bg-gray-200",p),style:{height:`${i}px`,...c?{backgroundColor:c}:{}},children:s.jsx("div",{className:A("h-full rounded-full bg-main-800 transition-all duration-200",v),style:{width:m,...l?{backgroundColor:l}:{}}})})]})}function X0({value:e}){const t=Math.max(0,Math.floor(e)),[n,r]=P.useState(0);P.useEffect(()=>{let a=0;const i=performance.now(),l=Math.min(1400,Math.max(500,t*30)),c=u=>1-(1-u)**3;r(0);const d=u=>{const f=u-i,p=Math.min(f/l,1),v=Math.floor(t*c(p));r(v),p<1&&(a=requestAnimationFrame(d))};return a=requestAnimationFrame(d),()=>{cancelAnimationFrame(a)}},[t]);const o=Math.max(String(t).length,1);return s.jsx("span",{className:"inline-flex justify-start tabular-nums",style:{minWidth:`${o}ch`},children:n})}function Fe({className:e}){return s.jsx("span",{"aria-hidden":!0,className:A("block animate-pulse rounded-md bg-gray-200",e)})}function Bt({className:e}){return s.jsx("span",{"aria-hidden":!0,className:A("block h-12 w-12 shrink-0 animate-pulse bg-gray-200",e),style:{borderRadius:"9999px"}})}function on({loading:e,skeleton:t,children:n,className:r,durationMs:o=280}){return s.jsxs("div",{className:A("relative",r),children:[s.jsx("div",{className:A("transition-opacity ease-out",e?"pointer-events-none opacity-0":"opacity-100"),style:{transitionDuration:`${o}ms`},"aria-hidden":e,children:n}),s.jsx("div",{className:A("pointer-events-none absolute inset-0 transition-opacity ease-out",e?"opacity-100":"opacity-0"),style:{transitionDuration:`${o}ms`},"aria-hidden":!e,children:t})]})}const Z0=[{id:"1",title:"알고리즘 부시기",progress:56,tone:"blue"},{id:"2",title:"새벽 러닝",progress:84,tone:"green"}],J0={blue:"#3b82f6",green:"#22c55e",orange:"#ff5722"};function R0({isLoggedIn:e=!0,isLoading:t=!1,userName:n,userSubtitle:r,userImage:o,streakDays:a,fixed:i=!0,collapsible:l=!0,className:c,diaryButtonLabel:d="일지 작성하기",myPageButtonLabel:u="마이페이지",loginButtonLabel:f="로그인",loginPromptMessage:p="로그인하고 연속 기록을 시작해보세요",settingButtonLabel:v="설정",challengeTitle:b="참여중인 챌린지",challenges:g=Z0,emptyChallengeMessage:m="챌린지가 없어요.",joinChallengeButtonLabel:w="챌린지 참여하기",joinChallengeMaxUserCount:y,createChallengeButtonLabel:x="챌린지 생성하기",onCollapseClick:N,onOpenSettings:S,onWriteDiary:M,onGoMyPage:E,onLogin:k,onJoinChallenge:z,onCreateChallenge:j,onChallengeClick:B}){const[T,_]=P.useState(!1),[C,$]=P.useState("expanded"),[X,he]=P.useState(!0),[ke,se]=P.useState(!1),[ae,ge]=P.useState(null),me=P.useRef(null),L=P.useRef([]),ne=typeof y=="number"&&y<=0,ie=()=>{L.current.forEach(Z=>clearTimeout(Z)),L.current=[]},q=(Z,ve)=>{const be=setTimeout(()=>{Z(),L.current=L.current.filter(cn=>cn!==be)},ve);L.current.push(be)};P.useEffect(()=>()=>{ie()},[]);const R=()=>{const Z=me.current;return Z?Math.max(Math.ceil(Z.scrollHeight),0):null},re=()=>{const Z=me.current;if(!Z)return null;const ve=Z.style.height;Z.style.height="auto";const be=R();return Z.style.height=ve,be},xe=()=>{if(ke)return;const Z=!T,ve=me.current?.offsetHeight;ve&&ve>0&&ge(ve),se(!0),he(!1),N?.(),ie(),q(()=>{_(Z),$(Z?"collapsed":"expanded")},140),q(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{const be=re();be&&be>0&&ge(be)})})},440),q(()=>{he(!0)},720),q(()=>{ge(null),se(!1)},940)};return s.jsxs("div",{className:A("z-40 transition-[width] duration-300 ease-in-out",i?"fixed top-4 right-3 max-h-[calc(100vh-2rem)]":"relative max-h-190",T?"w-22":"w-69",c),children:[l&&s.jsx(de,{type:"button",variant:"outlined",size:"icon","aria-label":"사이드바 접기",onClick:xe,disabled:ke,className:"absolute top-6 -left-4 z-20 h-8 w-8 min-w-8 rounded-full p-0 text-gray-500 shadow-sm",children:s.jsx(Sn,{className:A("h-4 w-4 transition-transform duration-200",T?"rotate-180":"rotate-0")})}),s.jsx("aside",{ref:me,className:A("relative flex w-full flex-col overflow-x-hidden overflow-y-auto rounded-4 border border-gray-200 bg-white p-3 shadow-[0_6px_16px_rgba(34,34,34,0.06)]",ae!==null&&"transition-[height] duration-300 ease-in-out",i&&"max-h-[calc(100vh-2rem)]",!i&&"max-h-full"),style:{height:ae?`${ae}px`:void 0},children:s.jsx("div",{className:A("flex h-full w-full transition-opacity ease-out",X?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),style:{transitionDuration:`${X?220:140}ms`},"aria-hidden":!X,children:C==="expanded"?s.jsxs("div",{className:"flex w-full flex-col px-2 py-2",children:[s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsx(on,{loading:t,skeleton:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Bt,{}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx(Fe,{className:"h-6 w-24 rounded-sm"}),s.jsx(Fe,{className:"h-4 w-28 rounded-sm"})]})]}),children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(xt,{imageUrl:o,size:"md",className:"ring-2 ring-mint-900/40"}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx(I,{size:"body1",weight:"bold",className:"text-gray-900",children:e?n??"고라니":"게스트"}),s.jsx(I,{size:"caption1",weight:"regular",className:"text-gray-600",children:e?r??"":"로그인 후 이용 가능"})]})]})}),s.jsx(on,{loading:t,skeleton:s.jsx(Fe,{className:"h-9 w-9 rounded-full"}),children:e?s.jsx(de,{type:"button",variant:"ghost",size:"icon","aria-label":"설정",onClick:S,className:"text-gray-500 hover:text-gray-700",children:s.jsx(kr,{className:"h-5 w-5"})}):null})]}),s.jsx("div",{className:"mt-6 rounded-3 border border-main-400 bg-main-200 px-4 py-4 text-center",children:s.jsx(on,{loading:t,skeleton:s.jsxs("div",{children:[s.jsx(Fe,{className:"mx-auto h-4 w-20 rounded-sm"}),s.jsxs("div",{className:"mt-3 flex items-center justify-center gap-2",children:[s.jsx(Bt,{className:"h-7 w-7"}),s.jsx(Fe,{className:"h-9 w-16 rounded-sm"}),s.jsx(Fe,{className:"h-5 w-12 rounded-sm"})]})]}),children:s.jsxs("div",{children:[s.jsx(I,{as:"p",size:"caption1",weight:"medium",className:"text-gray-700",children:"현재 연속 기록"}),e?s.jsxs("div",{className:"mt-3 flex items-center justify-center gap-2.5",children:[s.jsx(La,{className:"h-7 w-7 text-main-800",strokeWidth:2.2}),s.jsx(I,{size:"heading1",weight:"bold",className:"text-main-800",children:s.jsx(X0,{value:a})}),s.jsx(I,{size:"body1",weight:"bold",className:"text-gray-800",children:"Days"})]}):s.jsx(I,{as:"p",size:"caption1",weight:"medium",className:"mt-3 block leading-tight text-gray-700",children:p})]})})}),s.jsx(on,{loading:t,skeleton:s.jsxs("div",{children:[s.jsx(Fe,{className:"mt-5 h-10 w-full rounded-2"}),s.jsx(Fe,{className:"mt-3 h-10 w-full rounded-2"}),s.jsxs("div",{className:"mt-5 pt-5",children:[s.jsx(Fe,{className:"h-4 w-30 rounded-sm"}),s.jsx("div",{className:"mt-4 flex flex-col gap-3",children:Array.from({length:2},(Z,ve)=>s.jsxs("div",{className:"rounded-2 border border-gray-100 px-3 py-3",children:[s.jsx(Fe,{className:"h-4 w-32 rounded-sm"}),s.jsx(Fe,{className:"mt-3 h-2 w-full rounded-full"})]},ve))})]})]}),children:e?s.jsxs(s.Fragment,{children:[s.jsxs(de,{className:"mt-5 w-full",size:"medium",disabled:g.length===0,onClick:M,children:[s.jsx(An,{className:"h-4 w-4"}),s.jsx(I,{size:"body2",weight:"bold",className:"text-inherit",children:d})]}),s.jsxs(de,{variant:"outlined",className:"mt-3 w-full",size:"medium",onClick:E,children:[s.jsx(Nt,{className:"h-4 w-4"}),s.jsx(I,{size:"body2",weight:"bold",className:"text-inherit",children:u})]}),s.jsxs("div",{className:"mt-5 pt-5",children:[s.jsx(I,{size:"caption1",weight:"medium",className:"text-gray-500",children:b}),g.length>0?s.jsx("div",{className:"mt-4 flex flex-col gap-1",children:g.map(Z=>{const ve=Z.tone??"blue";return s.jsx("div",{role:B?"button":void 0,tabIndex:B?0:void 0,onClick:B?()=>B(Z):void 0,onKeyDown:B?be=>{(be.key==="Enter"||be.key===" ")&&B(Z)}:void 0,className:A("-mx-2 rounded-2 px-2 py-2 transition-colors duration-150",B&&"cursor-pointer hover:bg-gray-100 active:bg-gray-200"),children:s.jsx($l,{label:Z.title,value:Z.progress,infinite:Z.hasDeadline===!1,fillColor:J0[ve]})},Z.id)})}):s.jsxs("div",{className:"mt-4",children:[s.jsx(I,{as:"p",size:"caption1",weight:"medium",className:"text-gray-600",children:m}),s.jsxs("div",{className:"mt-3 flex flex-col gap-2.5",children:[s.jsx(de,{type:"button",className:"w-full",size:"medium",disabled:ne,onClick:z,children:w}),s.jsx(de,{type:"button",variant:"outlined",className:"w-full",size:"medium",onClick:j,children:x})]})]})]})]}):s.jsxs(de,{className:"mt-5 w-full",size:"medium",onClick:k,children:[s.jsx(Nr,{className:"h-4 w-4"}),s.jsx(I,{size:"body2",weight:"bold",className:"text-inherit",children:f})]})})]}):s.jsx("div",{className:"flex w-full flex-col items-center pt-2",children:s.jsx(on,{loading:t,className:"w-full",skeleton:s.jsxs("div",{className:"flex w-full flex-col items-center",children:[s.jsx(Bt,{}),s.jsxs("div",{className:"mt-5 flex flex-col items-center gap-3",children:[s.jsx(Bt,{className:"h-10 w-10"}),s.jsx(Bt,{className:"h-10 w-10"}),s.jsx(Bt,{className:"h-10 w-10"})]})]}),children:s.jsxs("div",{className:"flex w-full flex-col items-center",children:[s.jsx(xt,{imageUrl:o,size:"md",className:"ring-2 ring-mint-900/40"}),s.jsx("div",{className:"mt-5 flex flex-col items-center gap-3",children:e?s.jsxs(s.Fragment,{children:[s.jsx(de,{type:"button",size:"icon","aria-label":d,onClick:M,children:s.jsx(An,{className:"h-4 w-4"})}),s.jsx(de,{type:"button",variant:"outlined",size:"icon","aria-label":u,onClick:E,children:s.jsx(Nt,{className:"h-4 w-4"})}),s.jsx(de,{type:"button",variant:"outlined",size:"icon","aria-label":v,onClick:S,children:s.jsx(kr,{className:"h-4 w-4"})})]}):s.jsx(de,{type:"button",size:"icon","aria-label":f,onClick:k,children:s.jsx(Nr,{className:"h-4 w-4"})})})]})})})})})]})}const eb=["SUN","MON","TUE","WED","THU","FRI","SAT"];function tb(e){return e===void 0?"100%":typeof e=="number"?`${e}%`:e}function nb(e="default"){return e==="strong"?"text-gray-900 font-bold":e==="accent"?"text-main-800 font-bold":e==="muted"?"text-gray-500 font-medium":"text-gray-600 font-medium"}function rb(e="main"){return e==="soft"?"bg-main-600/50":"bg-main-800"}function ob({rows:e,weekLabels:t=[...eb],cellMinHeight:n=140,className:r}){return s.jsx("div",{className:A("w-full overflow-hidden rounded-4 border border-gray-300 bg-white",r),children:s.jsxs("table",{className:"w-full table-fixed border-collapse",children:[s.jsx("thead",{children:s.jsx("tr",{children:t.map((o,a)=>s.jsx("th",{className:A("h-8 border-b border-r border-gray-300 bg-gray-100 px-1 text-center align-middle sm:h-12 sm:px-2.5",a===t.length-1&&"border-r-0"),scope:"col",children:s.jsx(I,{size:"caption3",weight:"bold",className:"text-gray-600 sm:text-lg",children:o})},`${o}-${a}`))})}),s.jsx("tbody",{children:e.map((o,a)=>s.jsx("tr",{children:o.map((i,l)=>{const c=i.colSpan??1,d=i.id??`r${a}-c${l}`,u=o.slice(0,l+1).reduce((f,p)=>f+(p.colSpan??1),0)>=7;return s.jsx("td",{colSpan:c,className:A("border-r border-b border-gray-300 align-top",u&&"border-r-0"),children:s.jsx("div",{className:A("flex h-full flex-col gap-1 p-1 sm:gap-2 sm:p-2",i.muted&&"bg-gray-300",i.highlighted&&"bg-main-200 ring-1 ring-inset ring-main-400"),style:{minHeight:`${n}px`},children:i.content?i.content:s.jsxs(s.Fragment,{children:[i.day!==void 0?s.jsx(I,{size:"caption3",weight:"medium",className:A("leading-tight sm:text-lg",nb(i.dayTone)),children:i.day}):null,i.title!==void 0?s.jsx(I,{size:"caption3",weight:"bold",className:"line-clamp-1 text-gray-900 sm:text-lg",children:i.title}):null,i.bars&&i.bars.length>0?s.jsx("div",{className:"mt-0.5 flex flex-col gap-1",children:i.bars.map((f,p)=>s.jsx("span",{className:A("block h-1 rounded-full transition-all duration-200 sm:h-1.5",rb(f.tone)),style:{width:tb(f.width)}},`${d}-bar-${p}`))}):null,i.subtitle!==void 0?s.jsx(I,{size:"caption3",weight:"medium",className:"hidden text-gray-600 sm:block",children:i.subtitle}):null]})})},d)})},`row-${a}`))})]})})}function ab({icon:e,iconName:t,title:n,value:r,unit:o,className:a,iconClassName:i,...l}){const c=e??(t?s.jsx(Ba,{name:t,size:32}):null);return s.jsxs("div",{className:A("rounded-[24px] border border-gray-200 bg-white p-7","shadow-[0_1px_4px_rgba(17,17,17,0.08)]","w-full",a),...l,children:[s.jsxs("div",{className:"flex items-center gap-3.5",children:[s.jsx("div",{className:A("text-main-800","[&_svg]:h-8 [&_svg]:w-8",i),children:c}),s.jsx(I,{size:"heading2",weight:"medium",className:"leading-tight text-gray-600",children:n})]}),s.jsxs("div",{className:"mt-6 flex items-end gap-1.5",children:[s.jsx(I,{size:"display1",weight:"bold",className:"text-gray-900",children:r}),s.jsx(I,{size:"heading2",weight:"medium",className:"pb-1 text-gray-600",children:o})]})]})}const sb={sm:{circle:"h-7 w-7",trackTop:"top-3.5",checkIcon:"h-3 w-3",numberSize:"caption1",labelSize:"body2",labelMargin:"mt-3"},md:{circle:"h-10 w-10",trackTop:"top-5",checkIcon:"h-4 w-4",numberSize:"body1",labelSize:"heading2",labelMargin:"mt-5"},lg:{circle:"h-14 w-14",trackTop:"top-7",checkIcon:"h-5 w-5",numberSize:"body1",labelSize:"heading1",labelMargin:"mt-7"}};function ib({steps:e,currentStep:t,size:n="md",className:r}){const o=sb[n];if(e.length===0)return s.jsx("div",{className:A("w-full",r)});const a=Math.max(e.length-1,0),i=Math.min(Math.max(t-1,0),a),l=`${100/(e.length*2)}%`,c=a===0?100:i/a*100;return s.jsx("div",{className:A("w-full",r),children:s.jsxs("div",{className:"relative",children:[e.length>1?s.jsxs("div",{className:A("absolute",o.trackTop),style:{left:l,right:l},children:[s.jsx("div",{className:"h-0.5 w-full bg-gray-200"}),s.jsx("div",{className:"absolute top-0 left-0 h-0.5 bg-main-800 transition-all duration-300 ease-in-out",style:{width:`${c}%`}})]}):null,s.jsx("ol",{className:"relative z-10 flex items-start",children:e.map((d,u)=>{const f=u<i,p=u===i,v=d.id??`step-${u}`;return s.jsxs("li",{className:"flex flex-1 flex-col items-center",children:[s.jsx("span",{className:A("flex items-center justify-center rounded-full border-2 bg-white transition-colors duration-200",o.circle,f&&"border-main-800 bg-main-800 text-white",p&&"border-main-800 bg-main-800 text-white ring-4 ring-main-300",!f&&!p&&"border-gray-300 text-gray-600"),"aria-current":p?"step":void 0,children:f?s.jsx(Ct,{className:o.checkIcon,strokeWidth:2.5}):s.jsx(I,{size:o.numberSize,weight:"bold",className:A(p?"text-white":"text-gray-600"),children:u+1})}),s.jsx(I,{size:o.labelSize,weight:p?"bold":"medium",className:A("text-center leading-tight",o.labelMargin,f&&"text-gray-900",p&&"text-main-800",!f&&!p&&"text-gray-600"),children:d.label})]},v)})})]})})}var[ar]=Ae("Tooltip",[Dt]),sr=Dt(),Hl="TooltipProvider",lb=700,Fo="tooltip.open",[cb,Wo]=ar(Hl),Vl=e=>{const{__scopeTooltip:t,delayDuration:n=lb,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=h.useRef(!0),l=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),s.jsx(cb,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:h.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:a})};Vl.displayName=Hl;var an="Tooltip",[db,sn]=ar(an),jl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,c=Wo(an,e.__scopeTooltip),d=sr(t),[u,f]=h.useState(null),p=Pe(),v=h.useRef(0),b=i??c.disableHoverableContent,g=l??c.delayDuration,m=h.useRef(!1),[w,y]=Ce({prop:r,defaultProp:o??!1,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(Fo))):c.onClose(),a?.(E)},caller:an}),x=h.useMemo(()=>w?m.current?"delayed-open":"instant-open":"closed",[w]),N=h.useCallback(()=>{window.clearTimeout(v.current),v.current=0,m.current=!1,y(!0)},[y]),S=h.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y(!1)},[y]),M=h.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{m.current=!0,y(!0),v.current=0},g)},[g,y]);return h.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),s.jsx(mo,{...d,children:s.jsx(db,{scope:t,contentId:p,open:w,stateAttribute:x,trigger:u,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{c.isOpenDelayedRef.current?M():N()},[c.isOpenDelayedRef,M,N]),onTriggerLeave:h.useCallback(()=>{b?S():(window.clearTimeout(v.current),v.current=0)},[S,b]),onOpen:N,onClose:S,disableHoverableContent:b,children:n})})};jl.displayName=an;var zo="TooltipTrigger",Yl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sn(zo,n),a=Wo(zo,n),i=sr(n),l=h.useRef(null),c=J(t,l,o.onTriggerChange),d=h.useRef(!1),u=h.useRef(!1),f=h.useCallback(()=>d.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),s.jsx(jn,{asChild:!0,...i,children:s.jsx(G.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:V(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:V(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:V(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:V(e.onBlur,o.onClose),onClick:V(e.onClick,o.onClose)})})});Yl.displayName=zo;var Bo="TooltipPortal",[ub,fb]=ar(Bo,{forceMount:void 0}),Gl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=sn(Bo,t);return s.jsx(ub,{scope:t,forceMount:n,children:s.jsx(We,{present:n||a.open,children:s.jsx(en,{asChild:!0,container:o,children:r})})})};Gl.displayName=Bo;var $t="TooltipContent",Ul=h.forwardRef((e,t)=>{const n=fb($t,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=sn($t,e.__scopeTooltip);return s.jsx(We,{present:r||i.open,children:i.disableHoverableContent?s.jsx(Kl,{side:o,...a,ref:t}):s.jsx(hb,{side:o,...a,ref:t})})}),hb=h.forwardRef((e,t)=>{const n=sn($t,e.__scopeTooltip),r=Wo($t,e.__scopeTooltip),o=h.useRef(null),a=J(t,o),[i,l]=h.useState(null),{trigger:c,onClose:d}=n,u=o.current,{onPointerInTransitChange:f}=r,p=h.useCallback(()=>{l(null),f(!1)},[f]),v=h.useCallback((b,g)=>{const m=b.currentTarget,w={x:b.clientX,y:b.clientY},y=bb(w,m.getBoundingClientRect()),x=yb(w,y),N=wb(g.getBoundingClientRect()),S=Cb([...x,...N]);l(S),f(!0)},[f]);return h.useEffect(()=>()=>p(),[p]),h.useEffect(()=>{if(c&&u){const b=m=>v(m,u),g=m=>v(m,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",g)}}},[c,u,v,p]),h.useEffect(()=>{if(i){const b=g=>{const m=g.target,w={x:g.clientX,y:g.clientY},y=c?.contains(m)||u?.contains(m),x=!xb(w,i);y?p():x&&(p(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,i,d,p]),s.jsx(Kl,{...e,ref:a})}),[pb,gb]=ar(an,{isInside:!1}),mb=bc("TooltipContent"),Kl=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,c=sn($t,n),d=sr(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(Fo,u),()=>document.removeEventListener(Fo,u)),[u]),h.useEffect(()=>{if(c.trigger){const f=p=>{p.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),s.jsx(Xt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:s.jsxs(vo,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(mb,{children:r}),s.jsx(pb,{scope:n,isInside:!0,children:s.jsx(e0,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Ul.displayName=$t;var Ql="TooltipArrow",vb=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sr(n);return gb(Ql,n).isInside?null:s.jsx(bo,{...o,...r,ref:t})});vb.displayName=Ql;function bb(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function yb(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function wb(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function xb(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a],c=t[i],d=l.x,u=l.y,f=c.x,p=c.y;u>r!=p>r&&n<(f-d)*(r-u)/(p-u)+d&&(o=!o)}return o}function Cb(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Nb(t)}function Nb(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Sb=Vl,kb=jl,Ab=Yl,Pb=Gl,Eb=Ul;function ql({delayDuration:e=200,...t}){return s.jsx(Sb,{delayDuration:e,...t})}const Xl=kb,Zl=Ab;function Jl({className:e,sideOffset:t=4,...n}){return s.jsx(Pb,{children:s.jsx(Eb,{sideOffset:t,className:A("z-50 overflow-hidden rounded-1.5 bg-gray-900 px-3 py-1.5 text-caption2 text-white shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...n})})}function _b({data:e=[],size:t=26,gap:n=8,className:r}){const o=a=>a<=0?"bg-gray-100":a===1?"bg-main-300":a===2?"bg-main-500":a===3?"bg-main-700":"bg-main-800";return s.jsx("div",{className:A("w-full overflow-x-auto pb-2",r),children:s.jsx(ql,{children:s.jsx("div",{className:"grid w-max grid-flow-col grid-rows-7",style:{gridTemplateRows:`repeat(7, ${t}px)`,gridAutoColumns:`${t}px`,gap:`${n}px`},children:e.map((a,i)=>s.jsxs(Xl,{children:[s.jsx(Zl,{asChild:!0,children:s.jsx("div",{className:A("transition-colors duration-200",o(a.count)),style:{width:t,height:t,borderRadius:`${Math.max(4,Math.round(t*.23))}px`}})}),s.jsx(Jl,{side:"top",children:s.jsxs("p",{className:"text-xs",children:[a.date," · ",a.count,"회 활동"]})})]},i))})})})}const Rl=dt(["w-full transition-all duration-200 outline-none","disabled:cursor-not-allowed disabled:opacity-50","placeholder:text-gray-500","focus-visible:outline-none"],{variants:{variant:{default:["rounded-3 border border-gray-300 bg-white px-5 text-gray-900 shadow-none","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60"],search:["rounded-3 !h-10 border border-gray-300 bg-white pl-11 pr-4 text-gray-700 placeholder:text-gray-500","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60"]},multiline:{false:"h-10 py-0",true:"min-h-[320px] resize-none py-8 align-top leading-relaxed"}},defaultVariants:{variant:"default",multiline:!1}});function Mb(e,t){return"body2"}function Tb({label:e,labelHint:t,required:n,htmlFor:r}){return e?s.jsxs("label",{htmlFor:r,className:"mb-2 inline-flex items-center gap-2",children:[s.jsx(I,{size:"body1",weight:"bold",className:"text-gray-900",children:e}),n?s.jsx(I,{size:"body1",weight:"bold",className:"text-main-800",children:"*"}):null,t?s.jsx(I,{size:"body1",weight:"regular",className:"text-gray-500",children:t}):null]}):null}const $o=h.forwardRef(({className:e,variant:t="default",label:n,labelHint:r,error:o,type:a,multiline:i=!1,rows:l=8,cols:c,required:d,id:u,...f},p)=>{const v=t==="search",b=Mb(t,i);return s.jsxs("div",{className:"flex w-full flex-col",children:[s.jsx(Tb,{label:n,labelHint:r,required:d,htmlFor:u}),s.jsxs("div",{className:"relative w-full",children:[i?s.jsx("textarea",{id:u,rows:l,cols:c,required:d,className:A(Cn({size:b,weight:"regular"}),Rl({variant:t,multiline:!0}),e),ref:p,...f}):s.jsx("input",{id:u,type:a,required:d,className:A(Cn({size:b,weight:v?"light":"regular"}),Rl({variant:t,multiline:!1}),e),ref:p,...f}),v&&!i?s.jsx(za,{width:20,height:20,className:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-gray-500"}):null]}),o?s.jsx(I,{size:"caption1",weight:"regular",className:"mt-2 text-warning",children:o}):null]})});$o.displayName="TextField";const ec=h.forwardRef((e,t)=>s.jsx($o,{...e,ref:t,multiline:!0}));ec.displayName="TextArea";var tc="Toggle",Ho=h.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[i,l]=Ce({prop:n,onChange:o,defaultProp:r??!1,caller:tc});return s.jsx(G.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:V(e.onClick,()=>{e.disabled||l(!i)})})});Ho.displayName=tc;var Db=Ho;const Ob=dt(["inline-flex w-fit items-center justify-center gap-2.5 border bg-white whitespace-nowrap","text-gray-700 transition-all duration-200","cursor-pointer disabled:pointer-events-none disabled:opacity-50","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60","hover:bg-gray-100","data-[state=on]:border-main-800 data-[state=on]:bg-main-800 data-[state=on]:text-white","data-[state=on]:shadow-[0_4px_10px_rgba(255,87,34,0.22)]"],{variants:{shape:{rounded:"h-10 rounded-full px-5",square:"h-10 rounded-3 px-4"}},defaultVariants:{shape:"rounded"}});function Ib({icon:e,shape:t="rounded",children:n,className:r,...o}){return s.jsxs(Db,{className:A(Ob({shape:t}),r),...o,children:[e?s.jsx("span",{className:"inline-flex items-center justify-center text-[18px] leading-none text-inherit [&>svg]:h-5 [&>svg]:w-5",children:e}):null,s.jsx(I,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}var Vo="rovingFocusGroup.onEntryFocus",Lb={bubbles:!1,cancelable:!0},ln="RovingFocusGroup",[jo,nc,Fb]=cr(ln),[Wb,rc]=Ae(ln,[Fb]),[zb,Bb]=Wb(ln),oc=h.forwardRef((e,t)=>s.jsx(jo.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(jo.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx($b,{...e,ref:t})})}));oc.displayName=ln;var $b=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...f}=e,p=h.useRef(null),v=J(t,p),b=hn(a),[g,m]=Ce({prop:i,defaultProp:l??null,onChange:c,caller:ln}),[w,y]=h.useState(!1),x=et(d),N=nc(n),S=h.useRef(!1),[M,E]=h.useState(0);return h.useEffect(()=>{const k=p.current;if(k)return k.addEventListener(Vo,x),()=>k.removeEventListener(Vo,x)},[x]),s.jsx(zb,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:h.useCallback(k=>m(k),[m]),onItemShiftTab:h.useCallback(()=>y(!0),[]),onFocusableItemAdd:h.useCallback(()=>E(k=>k+1),[]),onFocusableItemRemove:h.useCallback(()=>E(k=>k-1),[]),children:s.jsx(G.div,{tabIndex:w||M===0?-1:0,"data-orientation":r,...f,ref:v,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{S.current=!0}),onFocus:V(e.onFocus,k=>{const z=!S.current;if(k.target===k.currentTarget&&z&&!w){const j=new CustomEvent(Vo,Lb);if(k.currentTarget.dispatchEvent(j),!j.defaultPrevented){const B=N().filter(T=>T.focusable),Y=B.find(T=>T.active),K=B.find(T=>T.id===g),O=[Y,K,...B].filter(Boolean).map(T=>T.ref.current);ic(O,u)}}S.current=!1}),onBlur:V(e.onBlur,()=>y(!1))})})}),ac="RovingFocusGroupItem",sc=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...l}=e,c=Pe(),d=a||c,u=Bb(ac,n),f=u.currentTabStopId===d,p=nc(n),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:g}=u;return h.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),s.jsx(jo.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:s.jsx(G.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...l,ref:t,onMouseDown:V(e.onMouseDown,m=>{r?u.onItemFocus(d):m.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:V(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const w=jb(m,u.orientation,u.dir);if(w!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let x=p().filter(N=>N.focusable).map(N=>N.ref.current);if(w==="last")x.reverse();else if(w==="prev"||w==="next"){w==="prev"&&x.reverse();const N=x.indexOf(m.currentTarget);x=u.loop?Yb(x,N+1):x.slice(N+1)}setTimeout(()=>ic(x))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:g!=null}):i})})});sc.displayName=ac;var Hb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Vb(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function jb(e,t,n){const r=Vb(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Hb[r]}function ic(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Yb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Gb=oc,Ub=sc,it="ToggleGroup",[lc]=Ae(it,[rc]),cc=rc(),Yo=P.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return s.jsx(Kb,{...o,ref:t})}if(n==="multiple"){const o=r;return s.jsx(Qb,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${it}\``)});Yo.displayName=it;var[dc,uc]=lc(it),Kb=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=Ce({prop:n,defaultProp:r??"",onChange:o,caller:it});return s.jsx(dc,{scope:e.__scopeToggleGroup,type:"single",value:P.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:P.useCallback(()=>l(""),[l]),children:s.jsx(fc,{...a,ref:t})})}),Qb=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=Ce({prop:n,defaultProp:r??[],onChange:o,caller:it}),c=P.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=P.useCallback(u=>l((f=[])=>f.filter(p=>p!==u)),[l]);return s.jsx(dc,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:d,children:s.jsx(fc,{...a,ref:t})})});Yo.displayName=it;var[qb,Xb]=lc(it),fc=P.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...c}=e,d=cc(n),u=hn(i),f={role:"group",dir:u,...c};return s.jsx(qb,{scope:n,rovingFocus:o,disabled:r,children:o?s.jsx(Gb,{asChild:!0,...d,orientation:a,dir:u,loop:l,children:s.jsx(G.div,{...f,ref:t})}):s.jsx(G.div,{...f,ref:t})})}),ir="ToggleGroupItem",hc=P.forwardRef((e,t)=>{const n=uc(ir,e.__scopeToggleGroup),r=Xb(ir,e.__scopeToggleGroup),o=cc(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,l={...e,pressed:a,disabled:i},c=P.useRef(null);return r.rovingFocus?s.jsx(Ub,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:s.jsx(pc,{...l,ref:t})}):s.jsx(pc,{...l,ref:t})});hc.displayName=ir;var pc=P.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=uc(ir,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return s.jsx(Ho,{...l,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Zb=Yo,Jb=hc;const Rb=dt(["inline-flex w-fit items-center justify-center gap-2.5 border bg-white whitespace-nowrap","text-gray-700 transition-all duration-200","cursor-pointer disabled:pointer-events-none disabled:opacity-50","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60","hover:bg-gray-100","data-[state=on]:border-main-800 data-[state=on]:bg-main-800 data-[state=on]:text-white","data-[state=on]:shadow-[0_4px_10px_rgba(255,87,34,0.22)]"],{variants:{shape:{rounded:"h-10 rounded-full px-5",square:"h-10 rounded-3 px-4"}},defaultVariants:{shape:"rounded"}});function ey({children:e,className:t,...n}){return s.jsx(Zb,{"data-slot":"toggle-group",className:A("flex flex-wrap gap-4 rounded-none",t),...n,children:e})}function ty({icon:e,shape:t="rounded",children:n,className:r,...o}){return s.jsxs(Jb,{"data-slot":"toggle-group-item",className:A(Rb({shape:t}),r),...o,children:[e?s.jsx("span",{className:"inline-flex items-center justify-center text-[18px] leading-none text-inherit [&>svg]:h-5 [&>svg]:w-5",children:e}):null,s.jsx(I,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}function ny({className:e,userName:t,userImageSrc:n,timeLabel:r,isAuthor:o=!1,onAccept:a,onReject:i}){return s.jsxs("div",{className:A("flex h-[50px] items-center justify-between gap-3 rounded-3 border border-gray-200 bg-white px-3",e),children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[s.jsx("div",{className:"relative flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-gray-200",children:n?s.jsx(lt,{src:n,alt:`${t} profile`,fill:!0,className:"object-cover"}):s.jsx(Nt,{className:"h-4.5 w-4.5 text-gray-500"})}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx(I,{size:"body2",weight:"bold",className:"line-clamp-1 text-gray-900",children:t}),r?s.jsx(I,{size:"caption2",weight:"regular",className:"text-gray-600",children:r}):null]})]}),o?s.jsx("div",{className:"flex shrink-0 items-center gap-2",children:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button","aria-label":"수락",onClick:a,className:"inline-flex h-9 w-9 items-center justify-center rounded-2 bg-main-200 text-main-800 transition-colors hover:bg-main-300",children:s.jsx(Ct,{className:"h-4.5 w-4.5",strokeWidth:2.6})}),s.jsx("button",{type:"button","aria-label":"거절",onClick:i,className:"inline-flex h-9 w-9 items-center justify-center rounded-2 bg-gray-100 text-gray-600 transition-colors hover:bg-gray-200",children:s.jsx(kn,{className:"h-4.5 w-4.5",strokeWidth:2.4})})]})}):null]})}D.Accordion=$d,D.AccordionContent=jd,D.AccordionItem=Hd,D.AccordionTrigger=Vd,D.AppHeader=yu,D.BannerCarousel=Nu,D.Button=de,D.Calendar=Ur,D.ChallengeCard=zp,D.ChallengeListItem=Bp,D.CheckContainer=$p,D.CheckList=Gp,D.Checkbox=qr,D.CircleAvatar=xt,D.CircularProgress=Xr,D.DatePicker=Cv,D.Dialog=$v,D.DialogClose=Vv,D.DialogContent=jv,D.DialogDescription=Kv,D.DialogFooter=Gv,D.DialogHeader=Yv,D.DialogOverlay=al,D.DialogPortal=ol,D.DialogTitle=Uv,D.DialogTrigger=Hv,D.DiaryCard=Xv,D.DiaryListItem=Jv,D.GoalAddList=Y0,D.Icon=Ba,D.ImagePicker=G0,D.ImagePlaceholder=Qt,D.InfoButton=U0,D.PageWatermark=K0,D.Pagination=q0,D.ProgressBar=$l,D.RangeDatePicker=Nv,D.RightSidebar=R0,D.ScheduleCalendar=ob,D.Select=F0,D.SelectContent=V0,D.SelectGroup=W0,D.SelectItem=$0,D.SelectLabel=j0,D.SelectScrollDownButton=Bl,D.SelectScrollUpButton=zl,D.SelectSeparator=H0,D.SelectTrigger=B0,D.SelectValue=z0,D.StatContainer=ab,D.StepIndicator=ib,D.Streak=_b,D.Tag=qt,D.Text=I,D.TextArea=ec,D.TextField=$o,D.Toggle=Ib,D.ToggleGroup=ey,D.ToggleGroupItem=ty,D.Tooltip=Xl,D.TooltipContent=Jl,D.TooltipProvider=ql,D.TooltipTrigger=Zl,D.UserListItem=ny,D.cn=A,D.textVariants=Cn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Pv="DialogDescriptionWarning",Ev=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nl(Pv).contentName}}.`;return h.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},_v=Vi,Mv=Yi,Tv=Ui,Dv=Ki,Ov=Qi,Iv=Xi,Lv=Ji,rl=el;const Fv=_v,Wv=Mv,ol=Tv,zv=rl;function al({className:e,...t}){return s.jsx(Dv,{className:A("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})}function Bv({className:e,children:t,...n}){return s.jsxs(ol,{children:[s.jsx(al,{}),s.jsxs(Ov,{className:A("fixed top-[50%] left-[50%] z-50","w-full max-w-[calc(100%-2rem)] sm:max-w-md","translate-x-[-50%] translate-y-[-50%]","rounded-2 bg-white p-4 sm:p-6 shadow-default","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-slot=button].h-13]:!h-11","[&_[data-slot=button].h-13]:!px-3.5","[&_[data-slot=button].h-11]:!h-9","[&_[data-slot=button]_.text-lg]:!text-base","[&_[data-slot=button]_.text-base]:!text-sm","duration-200",e),...n,children:[t,s.jsxs(rl,{className:"absolute top-3 right-3 sm:top-4 sm:right-4 rounded-full p-1.5 opacity-70 transition-opacity hover:opacity-100 focus:outline-none cursor-pointer",children:[s.jsx(kn,{width:18,height:18,className:"text-gray-500 sm:w-5 sm:h-5"}),s.jsx("span",{className:"sr-only",children:"닫기"})]})]})]})}function $v({className:e,...t}){return s.jsx("div",{className:A("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Hv({className:e,...t}){return s.jsx("div",{className:A("mt-4 sm:mt-6 flex flex-row justify-end gap-2",e),...t})}function Vv({className:e,children:t,...n}){return s.jsx(Iv,{asChild:!0,...n,children:s.jsx(I,{size:"heading2",weight:"bold",className:A("text-black",e),children:t})})}function jv({className:e,children:t,...n}){return s.jsx(Lv,{asChild:!0,...n,children:s.jsx(I,{size:"body2",weight:"regular",className:A("text-gray-600 mt-2",e),children:t})})}function Yv({imageUrl:e,alt:t,percent:n,emotion:r,isLiked:o,likeCount:a,onToggleLike:i}){const l={happy:"😎",soso:"🙂",sad:"🥲"},c=Math.min(Math.max(n,0),100),d=!!(e&&e.trim().length>0);return s.jsxs("div",{className:"relative aspect-4/5 w-full overflow-hidden bg-gray-100",children:[d?s.jsx(lt,{src:e,alt:t,fill:!0,className:"h-full w-full object-cover"}):s.jsx(Qt,{className:"h-full w-full",logoSize:"lg"}),d?s.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-linear-to-t from-black/15 to-transparent"}):null,s.jsx("div",{className:"absolute top-3 left-3 z-20",children:s.jsx("div",{className:"relative flex h-10 w-10 items-center justify-center rounded-full bg-white shadow-[0_6px_14px_rgba(34,34,34,0.2)] sm:h-12 sm:w-12",children:s.jsx(Xr,{value:c,size:"sm",showPercentage:!0})})}),s.jsx("div",{className:"absolute top-3 right-3 z-20 text-2xl leading-none sm:text-3xl",children:s.jsx("span",{role:"img","aria-label":r,children:l[r]})}),s.jsx("div",{className:"absolute bottom-3 left-3 z-20",children:s.jsxs("button",{type:"button",onClick:u=>{u.stopPropagation(),i()},className:"inline-flex cursor-pointer items-center gap-1 rounded-full bg-main-800 px-3 py-1.5 text-white shadow-[0_4px_10px_rgba(34,34,34,0.25)] transition-colors hover:bg-main-900",children:[o?s.jsx(Cr,{width:14,height:14,className:"text-white"}):s.jsx(xr,{width:14,height:14,className:"text-white"}),s.jsx(I,{size:"body2",weight:"bold",className:"text-white",children:a})]})})]})}function Gv({title:e,user:t,userImage:n,challengeLabel:r,onChallengeClick:o,date:a}){return s.jsxs("div",{className:"flex w-full flex-col gap-2 p-3 sm:gap-3 sm:p-4",children:[s.jsx(I,{as:"p",size:"body2",weight:"bold",className:"line-clamp-2 min-h-8 leading-tight text-gray-900 sm:text-xl sm:min-h-10",children:e}),s.jsx("button",{type:"button",onClick:i=>{i.stopPropagation(),o?.()},className:A("block w-full cursor-pointer rounded-1 px-1 py-0.5 text-left transition-colors","hover:bg-gray-100"),children:s.jsx(I,{size:"caption1",weight:"medium",className:"block w-full truncate text-blue-500 sm:text-lg",children:r})}),s.jsx("div",{className:"h-px w-full bg-gray-200"}),s.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[s.jsx(xt,{imageUrl:n,size:"sm"}),s.jsxs("div",{className:"flex flex-col gap-0.5 sm:gap-1",children:[s.jsx(I,{size:"caption1",weight:"bold",className:"text-gray-900 sm:text-lg",children:t}),s.jsx(I,{size:"caption3",weight:"regular",className:"text-gray-500 sm:text-sm",children:a})]})]})]})}function Uv({imageUrl:e,percent:t,likes:n,isLiked:r,defaultLiked:o=!1,onLikeToggle:a,title:i,user:l,userImage:c,challengeLabel:d,totalMemberCount:u,onChallengeClick:f,date:g,emotion:v="happy",onClick:b}){const p=typeof r=="boolean",[m,w]=P.useState(o),[y,x]=P.useState(n),N=p?r:m,S=p?n:y;P.useEffect(()=>{p||x(n)},[p,n]);const M=()=>{const k=!N,z=Math.max(0,S+(k?1:-1));p||(w(k),x(z)),a?.(k)},E=typeof u=="number"?u<=1?"개인":"단체":d;return s.jsx("div",{className:A("block w-full",b&&"cursor-pointer"),onClick:b,children:s.jsxs("div",{className:"overflow-hidden rounded-4 border border-gray-200 bg-white transition-transform duration-200 hover:-translate-y-1 hover:shadow-lg",children:[s.jsx(Yv,{imageUrl:e,alt:i,percent:t,emotion:v,isLiked:N,likeCount:S,onToggleLike:M}),s.jsx(Gv,{title:i,user:l,userImage:c,challengeLabel:E,onChallengeClick:f,date:g})]})})}const Kv={happy:"😎",soso:"🙂",sad:"🥲"};function Qv({title:e,imageUrl:t,percent:n,emotion:r="happy",likes:o,isLiked:a,defaultLiked:i=!1,onLikeToggle:l,user:c,userImage:d,challengeLabel:u,totalMemberCount:f,onChallengeClick:g,date:v,onClick:b,className:p}){const m=typeof a=="boolean",[w,y]=P.useState(i),[x,N]=P.useState(o),S=m?a:w,M=m?o:x;P.useEffect(()=>{m||N(o)},[m,o]);const E=B=>{B.stopPropagation();const Y=!S,K=Math.max(0,M+(Y?1:-1));m||(y(Y),N(K)),l?.(Y)},k=!!(t&&t.trim().length>0),z=Math.min(Math.max(n,0),100),j=typeof f=="number"?f<=1?"개인":"단체":u;return s.jsxs("div",{className:A("flex min-w-[320px] gap-3 rounded-4 border border-gray-200 bg-white p-3 transition-all duration-200 ease-in-out hover:-translate-y-1 hover:shadow-default sm:min-w-[560px]",b&&"cursor-pointer",p),onClick:b,children:[s.jsxs("div",{className:"relative -mb-3 -ml-3 -mt-3 w-[100px] shrink-0 self-stretch overflow-hidden rounded-l-3 bg-gray-100 sm:w-[140px]",children:[k?s.jsx(lt,{src:t,alt:e,width:128,height:128,className:"h-full w-full object-cover"}):s.jsx(Qt,{className:"h-full w-full",logoSize:"sm"}),k?s.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-6 bg-linear-to-t from-black/10 to-transparent"}):null,s.jsx("div",{className:"absolute top-2 left-2 z-10",children:s.jsx("div",{className:"relative flex h-9 w-9 items-center justify-center rounded-full bg-white shadow-[0_4px_10px_rgba(34,34,34,0.18)]",children:s.jsx(Xr,{value:z,size:"sm",showPercentage:!0})})}),s.jsx("div",{className:"absolute top-2 right-2 z-10 text-xl leading-none",children:s.jsx("span",{role:"img","aria-label":r,children:Kv[r]})})]}),s.jsxs("div",{className:"flex flex-1 flex-col min-w-0 gap-2 py-0.5",children:[s.jsx(I,{as:"p",size:"body1",weight:"bold",className:"line-clamp-2 leading-snug text-gray-900",children:e}),s.jsx("button",{type:"button",onClick:B=>{B.stopPropagation(),g?.()},className:"block w-fit cursor-pointer rounded-1 px-1 py-0.5 text-left transition-colors hover:bg-gray-100",children:s.jsx(I,{size:"caption1",weight:"medium",className:"truncate text-blue-500",children:j})}),s.jsx("div",{className:"h-px w-full bg-gray-200"}),s.jsxs("div",{className:"mt-auto flex items-center justify-between",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(xt,{imageUrl:d,size:"sm"}),s.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[s.jsx(I,{size:"caption2",weight:"bold",className:"truncate text-gray-900",children:c}),s.jsx(I,{size:"caption2",weight:"regular",className:"shrink-0 text-gray-500",children:v})]})]}),s.jsxs("button",{type:"button",onClick:E,className:"flex shrink-0 items-center gap-1 text-gray-500 transition-colors hover:text-red-500",children:[S?s.jsx(Cr,{width:15,height:15,className:"text-red-500"}):s.jsx(xr,{width:15,height:15}),s.jsx(I,{size:"caption2",weight:"medium",className:"text-inherit",children:M})]})]})]})]})}function sl(e,[t,n]){return Math.min(n,Math.max(t,e))}var il=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),qv="VisuallyHidden",ll=h.forwardRef((e,t)=>s.jsx(G.span,{...e,ref:t,style:{...il,...e.style}}));ll.displayName=qv;var Xv=ll,Zv=[" ","Enter","ArrowUp","ArrowDown"],Jv=[" ","Enter"],gt="Select",[tr,nr,Rv]=cr(gt),[zt]=Ae(gt,[Rv,Dt]),rr=Dt(),[e0,at]=zt(gt),[t0,n0]=zt(gt),cl=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:c,dir:d,name:u,autoComplete:f,disabled:g,required:v,form:b}=e,p=rr(t),[m,w]=h.useState(null),[y,x]=h.useState(null),[N,S]=h.useState(!1),M=hn(d),[E,k]=Ce({prop:r,defaultProp:o??!1,onChange:a,caller:gt}),[z,j]=Ce({prop:i,defaultProp:l,onChange:c,caller:gt}),B=h.useRef(null),Y=m?b||!!m.closest("form"):!0,[K,U]=h.useState(new Set),O=Array.from(K).map(T=>T.props.value).join(";");return s.jsx(mo,{...p,children:s.jsxs(e0,{required:v,scope:t,trigger:m,onTriggerChange:w,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:Pe(),value:z,onValueChange:j,open:E,onOpenChange:k,dir:M,triggerPointerDownPosRef:B,disabled:g,children:[s.jsx(tr.Provider,{scope:t,children:s.jsx(t0,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(T=>{U(_=>new Set(_).add(T))},[]),onNativeOptionRemove:h.useCallback(T=>{U(_=>{const C=new Set(_);return C.delete(T),C})},[]),children:n})}),Y?s.jsxs(Il,{"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:f,value:z,onChange:T=>j(T.target.value),disabled:g,form:b,children:[z===void 0?s.jsx("option",{value:""}):null,Array.from(K)]},O):null]})})};cl.displayName=gt;var dl="SelectTrigger",ul=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=rr(n),i=at(dl,n),l=i.disabled||r,c=J(t,i.onTriggerChange),d=nr(n),u=h.useRef("touch"),[f,g,v]=Fl(p=>{const m=d().filter(x=>!x.disabled),w=m.find(x=>x.value===i.value),y=Wl(m,p,w);y!==void 0&&i.onValueChange(y.value)}),b=p=>{l||(i.onOpenChange(!0),v()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return s.jsx(jn,{asChild:!0,...a,children:s.jsx(G.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Ll(i.value)?"":void 0,...o,ref:c,onClick:V(o.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&b(p)}),onPointerDown:V(o.onPointerDown,p=>{u.current=p.pointerType;const m=p.target;m.hasPointerCapture(p.pointerId)&&m.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(b(p),p.preventDefault())}),onKeyDown:V(o.onKeyDown,p=>{const m=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&g(p.key),!(m&&p.key===" ")&&Zv.includes(p.key)&&(b(),p.preventDefault())})})})});ul.displayName=dl;var fl="SelectValue",hl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,c=at(fl,n),{onValueNodeHasChildrenChange:d}=c,u=a!==void 0,f=J(t,c.onValueNodeChange);return fe(()=>{d(u)},[d,u]),s.jsx(G.span,{...l,ref:f,style:{pointerEvents:"none"},children:Ll(c.value)?s.jsx(s.Fragment,{children:i}):a})});hl.displayName=fl;var r0="SelectIcon",pl=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return s.jsx(G.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});pl.displayName=r0;var o0="SelectPortal",gl=e=>s.jsx(en,{asChild:!0,...e});gl.displayName=o0;var mt="SelectContent",ml=h.forwardRef((e,t)=>{const n=at(mt,e.__scopeSelect),[r,o]=h.useState();if(fe(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?dn.createPortal(s.jsx(vl,{scope:e.__scopeSelect,children:s.jsx(tr.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),a):null}return s.jsx(bl,{...e,ref:t})});ml.displayName=mt;var Le=10,[vl,st]=zt(mt),a0="SelectContentImpl",s0=vt("SelectContent.RemoveScroll"),bl=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:v,sticky:b,hideWhenDetached:p,avoidCollisions:m,...w}=e,y=at(mt,n),[x,N]=h.useState(null),[S,M]=h.useState(null),E=J(t,L=>N(L)),[k,z]=h.useState(null),[j,B]=h.useState(null),Y=nr(n),[K,U]=h.useState(!1),O=h.useRef(!1);h.useEffect(()=>{if(x)return wo(x)},[x]),Rr();const T=h.useCallback(L=>{const[ne,...ie]=Y().map(re=>re.ref.current),[q]=ie.slice(-1),R=document.activeElement;for(const re of L)if(re===R||(re?.scrollIntoView({block:"nearest"}),re===ne&&S&&(S.scrollTop=0),re===q&&S&&(S.scrollTop=S.scrollHeight),re?.focus(),document.activeElement!==R))return},[Y,S]),_=h.useCallback(()=>T([k,x]),[T,k,x]);h.useEffect(()=>{K&&_()},[K,_]);const{onOpenChange:C,triggerPointerDownPosRef:$}=y;h.useEffect(()=>{if(x){let L={x:0,y:0};const ne=q=>{L={x:Math.abs(Math.round(q.pageX)-($.current?.x??0)),y:Math.abs(Math.round(q.pageY)-($.current?.y??0))}},ie=q=>{L.x<=10&&L.y<=10?q.preventDefault():x.contains(q.target)||C(!1),document.removeEventListener("pointermove",ne),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",ie,{capture:!0})}}},[x,C,$]),h.useEffect(()=>{const L=()=>C(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L)}},[C]);const[X,he]=Fl(L=>{const ne=Y().filter(R=>!R.disabled),ie=ne.find(R=>R.ref.current===document.activeElement),q=Wl(ne,L,ie);q&&setTimeout(()=>q.ref.current.focus())}),ke=h.useCallback((L,ne,ie)=>{const q=!O.current&&!ie;(y.value!==void 0&&y.value===ne||q)&&(z(L),q&&(O.current=!0))},[y.value]),se=h.useCallback(()=>x?.focus(),[x]),ae=h.useCallback((L,ne,ie)=>{const q=!O.current&&!ie;(y.value!==void 0&&y.value===ne||q)&&B(L)},[y.value]),ge=r==="popper"?Io:yl,me=ge===Io?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:v,sticky:b,hideWhenDetached:p,avoidCollisions:m}:{};return s.jsx(vl,{scope:n,content:x,viewport:S,onViewportChange:M,itemRefCallback:ke,selectedItem:k,onItemLeave:se,itemTextRefCallback:ae,focusSelectedItem:_,selectedItemText:j,position:r,isPositioned:K,searchRef:X,children:s.jsx(Zn,{as:s0,allowPinchZoom:!0,children:s.jsx(Dn,{asChild:!0,trapped:y.open,onMountAutoFocus:L=>{L.preventDefault()},onUnmountAutoFocus:V(o,L=>{y.trigger?.focus({preventScroll:!0}),L.preventDefault()}),children:s.jsx(Xt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:s.jsx(ge,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:L=>L.preventDefault(),...w,...me,onPlaced:()=>U(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:V(w.onKeyDown,L=>{const ne=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!ne&&L.key.length===1&&he(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let q=Y().filter(R=>!R.disabled).map(R=>R.ref.current);if(["ArrowUp","End"].includes(L.key)&&(q=q.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const R=L.target,re=q.indexOf(R);q=q.slice(re+1)}setTimeout(()=>T(q)),L.preventDefault()}})})})})})})});bl.displayName=a0;var i0="SelectItemAlignedPosition",yl=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=at(mt,n),i=st(mt,n),[l,c]=h.useState(null),[d,u]=h.useState(null),f=J(t,E=>u(E)),g=nr(n),v=h.useRef(!1),b=h.useRef(!0),{viewport:p,selectedItem:m,selectedItemText:w,focusSelectedItem:y}=i,x=h.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&p&&m&&w){const E=a.trigger.getBoundingClientRect(),k=d.getBoundingClientRect(),z=a.valueNode.getBoundingClientRect(),j=w.getBoundingClientRect();if(a.dir!=="rtl"){const R=j.left-k.left,re=z.left-R,xe=E.left-re,Z=E.width+xe,ve=Math.max(Z,k.width),be=window.innerWidth-Le,cn=sl(re,[Le,Math.max(Le,be-ve)]);l.style.minWidth=Z+"px",l.style.left=cn+"px"}else{const R=k.right-j.right,re=window.innerWidth-z.right-R,xe=window.innerWidth-E.right-re,Z=E.width+xe,ve=Math.max(Z,k.width),be=window.innerWidth-Le,cn=sl(re,[Le,Math.max(Le,be-ve)]);l.style.minWidth=Z+"px",l.style.right=cn+"px"}const B=g(),Y=window.innerHeight-Le*2,K=p.scrollHeight,U=window.getComputedStyle(d),O=parseInt(U.borderTopWidth,10),T=parseInt(U.paddingTop,10),_=parseInt(U.borderBottomWidth,10),C=parseInt(U.paddingBottom,10),$=O+T+K+C+_,X=Math.min(m.offsetHeight*5,$),he=window.getComputedStyle(p),ke=parseInt(he.paddingTop,10),se=parseInt(he.paddingBottom,10),ae=E.top+E.height/2-Le,ge=Y-ae,me=m.offsetHeight/2,L=m.offsetTop+me,ne=O+T+L,ie=$-ne;if(ne<=ae){const R=B.length>0&&m===B[B.length-1].ref.current;l.style.bottom="0px";const re=d.clientHeight-p.offsetTop-p.offsetHeight,xe=Math.max(ge,me+(R?se:0)+re+_),Z=ne+xe;l.style.height=Z+"px"}else{const R=B.length>0&&m===B[0].ref.current;l.style.top="0px";const xe=Math.max(ae,O+p.offsetTop+(R?ke:0)+me)+ie;l.style.height=xe+"px",p.scrollTop=ne-ae+p.offsetTop}l.style.margin=`${Le}px 0`,l.style.minHeight=X+"px",l.style.maxHeight=Y+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[g,a.trigger,a.valueNode,l,d,p,m,w,a.dir,r]);fe(()=>x(),[x]);const[N,S]=h.useState();fe(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);const M=h.useCallback(E=>{E&&b.current===!0&&(x(),y?.(),b.current=!1)},[x,y]);return s.jsx(c0,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:M,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:s.jsx(G.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});yl.displayName=i0;var l0="SelectPopperPosition",Io=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Le,...a}=e,i=rr(n);return s.jsx(vo,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Io.displayName=l0;var[c0,Lo]=zt(mt,{}),Fo="SelectViewport",wl=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=st(Fo,n),i=Lo(Fo,n),l=J(t,a.onViewportChange),c=h.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),s.jsx(tr.Slot,{scope:n,children:s.jsx(G.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:V(o.onScroll,d=>{const u=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=i;if(g?.current&&f){const v=Math.abs(c.current-u.scrollTop);if(v>0){const b=window.innerHeight-Le*2,p=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),w=Math.max(p,m);if(w<b){const y=w+v,x=Math.min(b,y),N=y-x;f.style.height=x+"px",f.style.bottom==="0px"&&(u.scrollTop=N>0?N:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});wl.displayName=Fo;var xl="SelectGroup",[d0,u0]=zt(xl),Cl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Pe();return s.jsx(d0,{scope:n,id:o,children:s.jsx(G.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Cl.displayName=xl;var Nl="SelectLabel",Sl=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=u0(Nl,n);return s.jsx(G.div,{id:o.id,...r,ref:t})});Sl.displayName=Nl;var or="SelectItem",[f0,kl]=zt(or),Al=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=at(or,n),c=st(or,n),d=l.value===r,[u,f]=h.useState(a??""),[g,v]=h.useState(!1),b=J(t,y=>c.itemRefCallback?.(y,r,o)),p=Pe(),m=h.useRef("touch"),w=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(f0,{scope:n,value:r,disabled:o,textId:p,isSelected:d,onItemTextChange:h.useCallback(y=>{f(x=>x||(y?.textContent??"").trim())},[]),children:s.jsx(tr.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:s.jsx(G.div,{role:"option","aria-labelledby":p,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:V(i.onFocus,()=>v(!0)),onBlur:V(i.onBlur,()=>v(!1)),onClick:V(i.onClick,()=>{m.current!=="mouse"&&w()}),onPointerUp:V(i.onPointerUp,()=>{m.current==="mouse"&&w()}),onPointerDown:V(i.onPointerDown,y=>{m.current=y.pointerType}),onPointerMove:V(i.onPointerMove,y=>{m.current=y.pointerType,o?c.onItemLeave?.():m.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:V(i.onKeyDown,y=>{c.searchRef?.current!==""&&y.key===" "||(Jv.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});Al.displayName=or;var nn="SelectItemText",Pl=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=at(nn,n),l=st(nn,n),c=kl(nn,n),d=n0(nn,n),[u,f]=h.useState(null),g=J(t,w=>f(w),c.onItemTextChange,w=>l.itemTextRefCallback?.(w,c.value,c.disabled)),v=u?.textContent,b=h.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:p,onNativeOptionRemove:m}=d;return fe(()=>(p(b),()=>m(b)),[p,m,b]),s.jsxs(s.Fragment,{children:[s.jsx(G.span,{id:c.textId,...a,ref:g}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?dn.createPortal(a.children,i.valueNode):null]})});Pl.displayName=nn;var El="SelectItemIndicator",_l=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return kl(El,n).isSelected?s.jsx(G.span,{"aria-hidden":!0,...r,ref:t}):null});_l.displayName=El;var Wo="SelectScrollUpButton",Ml=h.forwardRef((e,t)=>{const n=st(Wo,e.__scopeSelect),r=Lo(Wo,e.__scopeSelect),[o,a]=h.useState(!1),i=J(t,r.onScrollButtonChange);return fe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?s.jsx(Dl,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});Ml.displayName=Wo;var zo="SelectScrollDownButton",Tl=h.forwardRef((e,t)=>{const n=st(zo,e.__scopeSelect),r=Lo(zo,e.__scopeSelect),[o,a]=h.useState(!1),i=J(t,r.onScrollButtonChange);return fe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<d;a(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?s.jsx(Dl,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});Tl.displayName=zo;var Dl=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=st("SelectScrollButton",n),i=h.useRef(null),l=nr(n),c=h.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return h.useEffect(()=>()=>c(),[c]),fe(()=>{l().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),s.jsx(G.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:V(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:V(o.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:V(o.onPointerLeave,()=>{c()})})}),h0="SelectSeparator",Ol=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return s.jsx(G.div,{"aria-hidden":!0,...r,ref:t})});Ol.displayName=h0;var Bo="SelectArrow",p0=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=rr(n),a=at(Bo,n),i=st(Bo,n);return a.open&&i.position==="popper"?s.jsx(bo,{...o,...r,ref:t}):null});p0.displayName=Bo;var g0="SelectBubbleInput",Il=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),a=J(r,o),i=ws(t);return h.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&u){const f=new Event("change",{bubbles:!0});u.call(l,t),l.dispatchEvent(f)}},[i,t]),s.jsx(G.select,{...n,style:{...il,...n.style},ref:a,defaultValue:t})});Il.displayName=g0;function Ll(e){return e===""||e===void 0}function Fl(e){const t=et(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(i=>{const l=n.current+i;t(l),(function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),a=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Wl(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=m0(e,Math.max(a,0));o.length===1&&(i=i.filter(d=>d!==n));const c=i.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function m0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var v0=cl,b0=ul,y0=hl,w0=pl,x0=gl,C0=ml,N0=wl,S0=Cl,k0=Sl,A0=Al,P0=Pl,E0=_l,_0=Ml,M0=Tl,T0=Ol;const D0=v0,O0=S0,I0=y0;function L0({className:e,size:t="default",children:n,...r}){const o=t==="sm";return s.jsxs(b0,{"data-slot":"select-trigger","data-size":t,className:A("group flex w-full items-center justify-between whitespace-nowrap border-2 bg-white outline-none transition-all duration-200","disabled:cursor-not-allowed disabled:opacity-50","data-[placeholder]:text-gray-500 focus-visible:ring-3 focus-visible:ring-main-300/60",o?"h-10 min-w-[150px] rounded-3 border-gray-300 px-3.5":"h-10 min-w-[150px] rounded-3 border-gray-300 px-4 shadow-[0_4px_10px_rgba(34,34,34,0.06)]",e),...r,children:[s.jsx(I,{size:"body2",weight:"medium",className:"line-clamp-1 text-gray-900",children:n}),s.jsx(w0,{asChild:!0,children:s.jsx(wn,{"data-slot":"select-chevron",className:A("pointer-events-none shrink-0 text-gray-600 transition-transform duration-200 group-data-[state=open]:rotate-180","h-4 w-4"),strokeWidth:2.8})})]})}function F0({className:e,children:t,...n}){return s.jsxs(A0,{"data-slot":"select-item",className:A("relative flex w-full cursor-pointer items-center gap-3 rounded-2 px-3.5 py-2.5 outline-hidden select-none","text-gray-900 transition-colors focus:bg-gray-100 focus:text-gray-900","data-disabled:pointer-events-none data-disabled:opacity-50",e),...n,children:[s.jsx("span",{className:"absolute right-3 flex size-4 items-center justify-center",children:s.jsx(E0,{children:s.jsx(Ct,{className:"size-4 text-main-800"})})}),s.jsx(P0,{children:s.jsx(I,{size:"body2",weight:"medium",children:t})})]})}function W0({className:e,...t}){return s.jsx(T0,{"data-slot":"select-separator",className:A("pointer-events-none my-1 h-px bg-gray-200",e),...t})}function zl({className:e,...t}){return s.jsx(_0,{"data-slot":"select-scroll-up-button",className:A("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:s.jsx($a,{className:"size-4"})})}function Bl({className:e,...t}){return s.jsx(M0,{"data-slot":"select-scroll-down-button",className:A("flex cursor-default items-center justify-center py-1 text-gray-600",e),...t,children:s.jsx(wn,{className:"size-4"})})}function z0({className:e,children:t,position:n="popper",...r}){return s.jsx(x0,{children:s.jsxs(C0,{"data-slot":"select-content",className:A("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto","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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","rounded-[24px] border-2 border-gray-300 bg-white shadow-[0_10px_20px_rgba(34,34,34,0.1)]",e),position:n,...r,children:[s.jsx(zl,{}),s.jsx(N0,{className:A("p-2",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:t}),s.jsx(Bl,{})]})})}function B0({className:e,...t}){return s.jsx(k0,{"data-slot":"select-label",className:A("px-4 py-2 text-xs font-bold text-gray-500",e),...t})}function $0({goals:e,defaultGoals:t=[],onGoalsChange:n,placeholder:r="목표를 입력하세요",disabled:o=!1,addOnBlur:a=!1,inputAriaLabel:i="목표 입력",className:l,...c}){const d=e!==void 0,[u,f]=P.useState(t),[g,v]=P.useState(""),b=P.useRef(!1),p=d?e:u,m=x=>{d||f(x),n?.(x)},w=()=>{if(o)return;const x=g.trim();x&&(m([...p,x]),v(""))},y=x=>{o||m(p.filter((N,S)=>S!==x))};return s.jsxs("div",{className:A("flex w-full flex-col gap-4",l),...c,children:[p.map((x,N)=>s.jsxs("div",{className:"flex h-16 w-full items-center justify-between rounded-4 border border-gray-300 bg-white px-5",children:[s.jsx(I,{size:"body1",weight:"bold",className:"line-clamp-1 text-gray-900",children:x}),s.jsx("button",{type:"button","aria-label":`목표 삭제: ${x}`,disabled:o,onClick:()=>y(N),className:A("inline-flex h-8 w-8 items-center justify-center rounded-2 text-gray-600 transition-colors hover:cursor-pointer",!o&&"hover:bg-gray-100 hover:text-gray-700",o&&"cursor-not-allowed text-gray-400"),children:s.jsx(kn,{className:"h-5 w-5"})})]},`${x}-${N}`)),s.jsx("input",{type:"text",value:g,disabled:o,"aria-label":i,placeholder:r,onChange:x=>v(x.target.value),onCompositionStart:()=>{b.current=!0},onCompositionEnd:()=>{b.current=!1},onKeyDown:x=>{x.key==="Enter"&&(x.nativeEvent.isComposing||b.current||x.nativeEvent.keyCode===229||(x.preventDefault(),w()))},onBlur:()=>{a&&w()},className:A("h-16 w-full rounded-4 border border-gray-300 bg-white px-5","text-xl font-medium text-gray-900 placeholder:text-gray-500","outline-none transition-all duration-200","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60",o&&"cursor-not-allowed opacity-60")})]})}function H0({onChange:e,size:t=300,defaultImageUrl:n,changeLabel:r="Change",...o}){const a=Math.max(t,120),i=Math.max(Math.round(a*.3),28),l=Math.max(Math.round(i*.6),18),c=P.useRef(null),d=P.useRef(null),[u,f]=P.useState(n??null),g=()=>{c.current?.click()};P.useEffect(()=>{f(n??null)},[n]),P.useEffect(()=>()=>{d.current&&URL.revokeObjectURL(d.current)},[]);const v=b=>{const p=b.target.files?.[0];if(p){d.current&&URL.revokeObjectURL(d.current);const m=URL.createObjectURL(p);d.current=m,f(m)}};return s.jsxs("div",{className:"relative inline-flex",style:{width:a,height:a},children:[s.jsx("input",{type:"file",accept:"image/*",ref:c,className:"hidden",onChange:b=>{e!==void 0&&e(b),v(b)},...o}),s.jsx("button",{type:"button",onClick:g,"aria-label":"이미지 선택",className:A("relative h-full w-full overflow-hidden rounded-full","cursor-pointer",u?"bg-main-300":"border-2 border-dashed border-gray-400 bg-white"),children:u?s.jsx("img",{src:u,alt:"이미지 미리보기",className:"h-full w-full object-cover",loading:"lazy"}):s.jsx("div",{className:"flex h-full w-full items-center justify-center",children:s.jsx(Vt,{width:l,height:i,className:"text-gray-300"})})}),s.jsxs("button",{type:"button",onClick:g,className:A("absolute bottom-0 left-1/2 z-10 inline-flex h-9 -translate-x-1/2 translate-y-1/2 items-center gap-1.5 rounded-full border border-gray-200 bg-white px-5","cursor-pointer shadow-[0_6px_16px_rgba(34,34,34,0.16)]"),children:[s.jsx(An,{className:"h-3.5 w-3.5 text-gray-700"}),s.jsx(I,{size:"caption1",weight:"medium",className:"text-gray-700",children:r})]})]})}function V0({mainText:e,subText:t,imageSrc:n,imageAlt:r="icon",gradientFrom:o,gradientTo:a,onClick:i,className:l}){return s.jsxs("div",{className:A("relative overflow-hidden rounded-2 text-white","flex flex-col justify-between","p-4 sm:p-4 lg:p-6","h-24 w-full sm:h-36 lg:h-47.5 lg:w-56","hover:shadow-default hover:-translate-y-1 transition-all duration-300",i&&"cursor-pointer",l),style:{backgroundImage:`linear-gradient(to bottom right, ${o}, ${a})`},onClick:i,children:[s.jsxs("div",{className:"flex w-full flex-col gap-0.5 sm:gap-1",children:[s.jsx(I,{size:"caption3",weight:"medium",className:"opacity-80",children:e}),s.jsx(I,{size:"caption2",weight:"bold",className:"mt-0.5 sm:text-xl sm:mt-1 lg:text-2xl",children:t})]}),s.jsx("div",{className:"absolute bottom-2 left-2 sm:bottom-4 sm:left-4 lg:bottom-6 lg:left-6",children:s.jsx(lt,{src:n,alt:r,width:24,height:40,className:"object-contain sm:w-9 sm:h-15 lg:w-12 lg:h-19.5"})}),s.jsx(I,{size:"body2",weight:"bold",className:"absolute right-2 bottom-2 sm:right-4 sm:bottom-4 sm:text-3xl lg:right-6 lg:bottom-6 lg:text-4xl",children:"→"})]})}function j0(){return s.jsxs("div",{className:"flex items-end gap-2",children:[s.jsx(Vt,{width:24,height:40,className:"text-gray-300"}),s.jsx(I,{size:"body1",weight:"bold",className:"my-2.5 text-gray-300",children:"1D1S"})]})}const rn="...";function Y0({currentPage:e,totalPages:t,siblingCount:n=1}){return h.useMemo(()=>{if(n+5>=t)return Array.from({length:t},(f,g)=>g+1);const a=Math.max(e-n,1),i=Math.min(e+n,t),l=a>2,c=i<t-2,d=1,u=t;if(!l&&c){const f=3+2*n;return[...Array.from({length:f},(v,b)=>b+1),rn,t]}if(l&&!c){const f=3+2*n,g=Array.from({length:f},(v,b)=>t-f+b+1);return[d,rn,...g]}if(l&&c){const f=Array.from({length:i-a+1},(g,v)=>a+v);return[d,rn,...f,rn,u]}},[t,e,n])}function G0({currentPage:e,totalPages:t,onPageChange:n,siblingCount:r=1,className:o}){const a=Y0({currentPage:e,totalPages:t,siblingCount:r});if(e===0||t<2)return null;const i=()=>{e<t&&n(e+1)},l=()=>{e>1&&n(e-1)};return s.jsxs("nav",{role:"navigation","aria-label":"Pagination",className:A("flex items-center justify-center gap-3",o),children:[s.jsx(de,{onClick:l,disabled:e===1,variant:"outlined",size:"icon",className:"rounded-3 border-gray-300 bg-white text-gray-600 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400","aria-label":"Go to previous page",children:s.jsx(Nn,{className:"h-5 w-5"})}),a?.map((c,d)=>{if(c===rn)return s.jsx("div",{className:"flex h-10 min-w-10 items-center justify-center px-1",children:s.jsx("span",{className:"text-lg font-medium text-gray-400",children:"..."})},`dots-${d}`);const u=c===e;return s.jsx(de,{onClick:()=>n(c),variant:u?"default":"secondary",size:"icon",className:A("rounded-3",u?"bg-main-800 text-white shadow-[0_8px_16px_rgba(255,87,34,0.3)] hover:bg-main-800":"bg-gray-100 text-gray-700 hover:bg-gray-200"),"aria-current":u?"page":void 0,children:s.jsx("span",{className:A("text-2xl leading-none",u?"font-bold text-white":"font-medium text-gray-700"),children:c})},c)}),s.jsx(de,{onClick:i,disabled:e===t,variant:"outlined",size:"icon",className:"rounded-3 border-gray-300 bg-white text-gray-600 hover:bg-gray-100 disabled:bg-gray-100 disabled:text-gray-400","aria-label":"Go to next page",children:s.jsx(Sn,{className:"h-5 w-5"})})]})}function $l({value:e,label:t,showLabel:n,showValueText:r=!0,valueText:o,infinite:a=!1,thickness:i=6,fillColor:l,trackColor:c,className:d,labelClassName:u,valueClassName:f,trackClassName:g,fillClassName:v,...b}){const p=Math.min(Math.max(e,0),100),m=a?"100%":`${p}%`,w=o??(a?"∞":`${p}%`),y=n??t!==void 0;return s.jsxs("div",{className:A("w-full",d),...b,children:[(y||r)&&s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y?s.jsx(I,{size:"caption1",weight:"medium",className:A("line-clamp-1 text-gray-800",u),children:t}):s.jsx("span",{}),r?s.jsx(I,{size:"caption1",weight:"medium",className:A("shrink-0 text-gray-600",f),children:w}):null]}),s.jsx("div",{className:A("mt-2.5 overflow-hidden rounded-full bg-gray-200",g),style:{height:`${i}px`,...c?{backgroundColor:c}:{}},children:s.jsx("div",{className:A("h-full rounded-full bg-main-800 transition-all duration-200",v),style:{width:m,...l?{backgroundColor:l}:{}}})})]})}function U0({value:e}){const t=Math.max(0,Math.floor(e)),[n,r]=P.useState(0);P.useEffect(()=>{let a=0;const i=performance.now(),l=Math.min(1400,Math.max(500,t*30)),c=u=>1-(1-u)**3;r(0);const d=u=>{const f=u-i,g=Math.min(f/l,1),v=Math.floor(t*c(g));r(v),g<1&&(a=requestAnimationFrame(d))};return a=requestAnimationFrame(d),()=>{cancelAnimationFrame(a)}},[t]);const o=Math.max(String(t).length,1);return s.jsx("span",{className:"inline-flex justify-start tabular-nums",style:{minWidth:`${o}ch`},children:n})}function Fe({className:e}){return s.jsx("span",{"aria-hidden":!0,className:A("block animate-pulse rounded-md bg-gray-200",e)})}function Bt({className:e}){return s.jsx("span",{"aria-hidden":!0,className:A("block h-12 w-12 shrink-0 animate-pulse bg-gray-200",e),style:{borderRadius:"9999px"}})}function on({loading:e,skeleton:t,children:n,className:r,durationMs:o=280}){return s.jsxs("div",{className:A("relative",r),children:[s.jsx("div",{className:A("transition-opacity ease-out",e?"pointer-events-none opacity-0":"opacity-100"),style:{transitionDuration:`${o}ms`},"aria-hidden":e,children:n}),s.jsx("div",{className:A("pointer-events-none absolute inset-0 transition-opacity ease-out",e?"opacity-100":"opacity-0"),style:{transitionDuration:`${o}ms`},"aria-hidden":!e,children:t})]})}const K0=[{id:"1",title:"알고리즘 부시기",progress:56,tone:"blue"},{id:"2",title:"새벽 러닝",progress:84,tone:"green"}],Q0={blue:"#3b82f6",green:"#22c55e",orange:"#ff5722"};function q0({isLoggedIn:e=!0,isLoading:t=!1,userName:n,userSubtitle:r,userImage:o,streakDays:a,fixed:i=!0,collapsible:l=!0,className:c,diaryButtonLabel:d="일지 작성하기",myPageButtonLabel:u="마이페이지",loginButtonLabel:f="로그인",loginPromptMessage:g="로그인하고 연속 기록을 시작해보세요",settingButtonLabel:v="설정",challengeTitle:b="참여중인 챌린지",challenges:p=K0,emptyChallengeMessage:m="챌린지가 없어요.",joinChallengeButtonLabel:w="챌린지 참여하기",joinChallengeMaxUserCount:y,createChallengeButtonLabel:x="챌린지 생성하기",onCollapseClick:N,onOpenSettings:S,onWriteDiary:M,onGoMyPage:E,onLogin:k,onJoinChallenge:z,onCreateChallenge:j,onChallengeClick:B}){const[T,_]=P.useState(!1),[C,$]=P.useState("expanded"),[X,he]=P.useState(!0),[ke,se]=P.useState(!1),[ae,ge]=P.useState(null),me=P.useRef(null),L=P.useRef([]),ne=typeof y=="number"&&y<=0,ie=()=>{L.current.forEach(Z=>clearTimeout(Z)),L.current=[]},q=(Z,ve)=>{const be=setTimeout(()=>{Z(),L.current=L.current.filter(cn=>cn!==be)},ve);L.current.push(be)};P.useEffect(()=>()=>{ie()},[]);const R=()=>{const Z=me.current;return Z?Math.max(Math.ceil(Z.scrollHeight),0):null},re=()=>{const Z=me.current;if(!Z)return null;const ve=Z.style.height;Z.style.height="auto";const be=R();return Z.style.height=ve,be},xe=()=>{if(ke)return;const Z=!T,ve=me.current?.offsetHeight;ve&&ve>0&&ge(ve),se(!0),he(!1),N?.(),ie(),q(()=>{_(Z),$(Z?"collapsed":"expanded")},140),q(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{const be=re();be&&be>0&&ge(be)})})},440),q(()=>{he(!0)},720),q(()=>{ge(null),se(!1)},940)};return s.jsxs("div",{className:A("z-40 transition-[width] duration-300 ease-in-out",i?"fixed top-4 right-3 max-h-[calc(100vh-2rem)]":"relative max-h-190",T?"w-22":"w-69",c),children:[l&&s.jsx(de,{type:"button",variant:"outlined",size:"icon","aria-label":"사이드바 접기",onClick:xe,disabled:ke,className:"absolute top-6 -left-4 z-20 h-8 w-8 min-w-8 rounded-full p-0 text-gray-500 shadow-sm",children:s.jsx(Sn,{className:A("h-4 w-4 transition-transform duration-200",T?"rotate-180":"rotate-0")})}),s.jsx("aside",{ref:me,className:A("relative flex w-full flex-col overflow-x-hidden overflow-y-auto rounded-4 border border-gray-200 bg-white p-3 shadow-[0_6px_16px_rgba(34,34,34,0.06)]",ae!==null&&"transition-[height] duration-300 ease-in-out",i&&"max-h-[calc(100vh-2rem)]",!i&&"max-h-full"),style:{height:ae?`${ae}px`:void 0},children:s.jsx("div",{className:A("flex h-full w-full transition-opacity ease-out",X?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),style:{transitionDuration:`${X?220:140}ms`},"aria-hidden":!X,children:C==="expanded"?s.jsxs("div",{className:"flex w-full flex-col px-2 py-2",children:[s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsx(on,{loading:t,skeleton:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Bt,{}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx(Fe,{className:"h-6 w-24 rounded-sm"}),s.jsx(Fe,{className:"h-4 w-28 rounded-sm"})]})]}),children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(xt,{imageUrl:o,size:"md",className:"ring-2 ring-mint-900/40"}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx(I,{size:"body1",weight:"bold",className:"text-gray-900",children:e?n??"고라니":"게스트"}),s.jsx(I,{size:"caption1",weight:"regular",className:"text-gray-600",children:e?r??"":"로그인 후 이용 가능"})]})]})}),s.jsx(on,{loading:t,skeleton:s.jsx(Fe,{className:"h-9 w-9 rounded-full"}),children:e?s.jsx(de,{type:"button",variant:"ghost",size:"icon","aria-label":"설정",onClick:S,className:"text-gray-500 hover:text-gray-700",children:s.jsx(kr,{className:"h-5 w-5"})}):null})]}),s.jsx("div",{className:"mt-6 rounded-3 border border-main-400 bg-main-200 px-4 py-4 text-center",children:s.jsx(on,{loading:t,skeleton:s.jsxs("div",{children:[s.jsx(Fe,{className:"mx-auto h-4 w-20 rounded-sm"}),s.jsxs("div",{className:"mt-3 flex items-center justify-center gap-2",children:[s.jsx(Bt,{className:"h-7 w-7"}),s.jsx(Fe,{className:"h-9 w-16 rounded-sm"}),s.jsx(Fe,{className:"h-5 w-12 rounded-sm"})]})]}),children:s.jsxs("div",{children:[s.jsx(I,{as:"p",size:"caption1",weight:"medium",className:"text-gray-700",children:"현재 연속 기록"}),e?s.jsxs("div",{className:"mt-3 flex items-center justify-center gap-2.5",children:[s.jsx(Ba,{className:"h-7 w-7 text-main-800",strokeWidth:2.2}),s.jsx(I,{size:"heading1",weight:"bold",className:"text-main-800",children:s.jsx(U0,{value:a})}),s.jsx(I,{size:"body1",weight:"bold",className:"text-gray-800",children:"Days"})]}):s.jsx(I,{as:"p",size:"caption1",weight:"medium",className:"mt-3 block leading-tight text-gray-700",children:g})]})})}),s.jsx(on,{loading:t,skeleton:s.jsxs("div",{children:[s.jsx(Fe,{className:"mt-5 h-10 w-full rounded-2"}),s.jsx(Fe,{className:"mt-3 h-10 w-full rounded-2"}),s.jsxs("div",{className:"mt-5 pt-5",children:[s.jsx(Fe,{className:"h-4 w-30 rounded-sm"}),s.jsx("div",{className:"mt-4 flex flex-col gap-3",children:Array.from({length:2},(Z,ve)=>s.jsxs("div",{className:"rounded-2 border border-gray-100 px-3 py-3",children:[s.jsx(Fe,{className:"h-4 w-32 rounded-sm"}),s.jsx(Fe,{className:"mt-3 h-2 w-full rounded-full"})]},ve))})]})]}),children:e?s.jsxs(s.Fragment,{children:[s.jsxs(de,{className:"mt-5 w-full",size:"medium",disabled:p.length===0,onClick:M,children:[s.jsx(An,{className:"h-4 w-4"}),s.jsx(I,{size:"body2",weight:"bold",className:"text-inherit",children:d})]}),s.jsxs(de,{variant:"outlined",className:"mt-3 w-full",size:"medium",onClick:E,children:[s.jsx(Nt,{className:"h-4 w-4"}),s.jsx(I,{size:"body2",weight:"bold",className:"text-inherit",children:u})]}),s.jsxs("div",{className:"mt-5 pt-5",children:[s.jsx(I,{size:"caption1",weight:"medium",className:"text-gray-500",children:b}),p.length>0?s.jsx("div",{className:"mt-4 flex flex-col gap-1",children:p.map(Z=>{const ve=Z.tone??"blue";return s.jsx("div",{role:B?"button":void 0,tabIndex:B?0:void 0,onClick:B?()=>B(Z):void 0,onKeyDown:B?be=>{(be.key==="Enter"||be.key===" ")&&B(Z)}:void 0,className:A("-mx-2 rounded-2 px-2 py-2 transition-colors duration-150",B&&"cursor-pointer hover:bg-gray-100 active:bg-gray-200"),children:s.jsx($l,{label:Z.title,value:Z.progress,infinite:Z.hasDeadline===!1,fillColor:Q0[ve]})},Z.id)})}):s.jsxs("div",{className:"mt-4",children:[s.jsx(I,{as:"p",size:"caption1",weight:"medium",className:"text-gray-600",children:m}),s.jsxs("div",{className:"mt-3 flex flex-col gap-2.5",children:[s.jsx(de,{type:"button",className:"w-full",size:"medium",disabled:ne,onClick:z,children:w}),s.jsx(de,{type:"button",variant:"outlined",className:"w-full",size:"medium",onClick:j,children:x})]})]})]})]}):s.jsxs(de,{className:"mt-5 w-full",size:"medium",onClick:k,children:[s.jsx(Nr,{className:"h-4 w-4"}),s.jsx(I,{size:"body2",weight:"bold",className:"text-inherit",children:f})]})})]}):s.jsx("div",{className:"flex w-full flex-col items-center pt-2",children:s.jsx(on,{loading:t,className:"w-full",skeleton:s.jsxs("div",{className:"flex w-full flex-col items-center",children:[s.jsx(Bt,{}),s.jsxs("div",{className:"mt-5 flex flex-col items-center gap-3",children:[s.jsx(Bt,{className:"h-10 w-10"}),s.jsx(Bt,{className:"h-10 w-10"}),s.jsx(Bt,{className:"h-10 w-10"})]})]}),children:s.jsxs("div",{className:"flex w-full flex-col items-center",children:[s.jsx(xt,{imageUrl:o,size:"md",className:"ring-2 ring-mint-900/40"}),s.jsx("div",{className:"mt-5 flex flex-col items-center gap-3",children:e?s.jsxs(s.Fragment,{children:[s.jsx(de,{type:"button",size:"icon","aria-label":d,onClick:M,children:s.jsx(An,{className:"h-4 w-4"})}),s.jsx(de,{type:"button",variant:"outlined",size:"icon","aria-label":u,onClick:E,children:s.jsx(Nt,{className:"h-4 w-4"})}),s.jsx(de,{type:"button",variant:"outlined",size:"icon","aria-label":v,onClick:S,children:s.jsx(kr,{className:"h-4 w-4"})})]}):s.jsx(de,{type:"button",size:"icon","aria-label":f,onClick:k,children:s.jsx(Nr,{className:"h-4 w-4"})})})]})})})})})]})}const X0=["SUN","MON","TUE","WED","THU","FRI","SAT"];function Z0(e){return e===void 0?"100%":typeof e=="number"?`${e}%`:e}function J0(e="default"){return e==="strong"?"text-gray-900 font-bold":e==="accent"?"text-main-800 font-bold":e==="muted"?"text-gray-500 font-medium":"text-gray-600 font-medium"}function R0(e="main"){return e==="soft"?"bg-main-600/50":"bg-main-800"}function eb({rows:e,weekLabels:t=[...X0],cellMinHeight:n=140,className:r}){return s.jsx("div",{className:A("w-full overflow-hidden rounded-4 border border-gray-300 bg-white",r),children:s.jsxs("table",{className:"w-full table-fixed border-collapse",children:[s.jsx("thead",{children:s.jsx("tr",{children:t.map((o,a)=>s.jsx("th",{className:A("h-8 border-b border-r border-gray-300 bg-gray-100 px-1 text-center align-middle sm:h-12 sm:px-2.5",a===t.length-1&&"border-r-0"),scope:"col",children:s.jsx(I,{size:"caption3",weight:"bold",className:"text-gray-600 sm:text-lg",children:o})},`${o}-${a}`))})}),s.jsx("tbody",{children:e.map((o,a)=>s.jsx("tr",{children:o.map((i,l)=>{const c=i.colSpan??1,d=i.id??`r${a}-c${l}`,u=o.slice(0,l+1).reduce((f,g)=>f+(g.colSpan??1),0)>=7;return s.jsx("td",{colSpan:c,className:A("border-r border-b border-gray-300 align-top",u&&"border-r-0"),children:s.jsx("div",{className:A("flex h-full flex-col gap-1 p-1 sm:gap-2 sm:p-2",i.muted&&"bg-gray-300",i.highlighted&&"bg-main-200 ring-1 ring-inset ring-main-400"),style:{minHeight:`${n}px`},children:i.content?i.content:s.jsxs(s.Fragment,{children:[i.day!==void 0?s.jsx(I,{size:"caption3",weight:"medium",className:A("leading-tight sm:text-lg",J0(i.dayTone)),children:i.day}):null,i.title!==void 0?s.jsx(I,{size:"caption3",weight:"bold",className:"line-clamp-1 text-gray-900 sm:text-lg",children:i.title}):null,i.bars&&i.bars.length>0?s.jsx("div",{className:"mt-0.5 flex flex-col gap-1",children:i.bars.map((f,g)=>s.jsx("span",{className:A("block h-1 rounded-full transition-all duration-200 sm:h-1.5",R0(f.tone)),style:{width:Z0(f.width)}},`${d}-bar-${g}`))}):null,i.subtitle!==void 0?s.jsx(I,{size:"caption3",weight:"medium",className:"hidden text-gray-600 sm:block",children:i.subtitle}):null]})})},d)})},`row-${a}`))})]})})}function tb({icon:e,iconName:t,title:n,value:r,unit:o,className:a,iconClassName:i,...l}){const c=e??(t?s.jsx(ja,{name:t,size:32}):null);return s.jsxs("div",{className:A("rounded-[24px] border border-gray-200 bg-white p-7","shadow-[0_1px_4px_rgba(17,17,17,0.08)]","w-full",a),...l,children:[s.jsxs("div",{className:"flex items-center gap-3.5",children:[s.jsx("div",{className:A("text-main-800","[&_svg]:h-8 [&_svg]:w-8",i),children:c}),s.jsx(I,{size:"heading2",weight:"medium",className:"leading-tight text-gray-600",children:n})]}),s.jsxs("div",{className:"mt-6 flex items-end gap-1.5",children:[s.jsx(I,{size:"display1",weight:"bold",className:"text-gray-900",children:r}),s.jsx(I,{size:"heading2",weight:"medium",className:"pb-1 text-gray-600",children:o})]})]})}const nb={sm:{circle:"h-7 w-7",trackTop:"top-3.5",checkIcon:"h-3 w-3",numberSize:"caption1",labelSize:"body2",labelMargin:"mt-3"},md:{circle:"h-10 w-10",trackTop:"top-5",checkIcon:"h-4 w-4",numberSize:"body1",labelSize:"heading2",labelMargin:"mt-5"},lg:{circle:"h-14 w-14",trackTop:"top-7",checkIcon:"h-5 w-5",numberSize:"body1",labelSize:"heading1",labelMargin:"mt-7"}};function rb({steps:e,currentStep:t,size:n="md",className:r}){const o=nb[n];if(e.length===0)return s.jsx("div",{className:A("w-full",r)});const a=Math.max(e.length-1,0),i=Math.min(Math.max(t-1,0),a),l=`${100/(e.length*2)}%`,c=a===0?100:i/a*100;return s.jsx("div",{className:A("w-full",r),children:s.jsxs("div",{className:"relative",children:[e.length>1?s.jsxs("div",{className:A("absolute",o.trackTop),style:{left:l,right:l},children:[s.jsx("div",{className:"h-0.5 w-full bg-gray-200"}),s.jsx("div",{className:"absolute top-0 left-0 h-0.5 bg-main-800 transition-all duration-300 ease-in-out",style:{width:`${c}%`}})]}):null,s.jsx("ol",{className:"relative z-10 flex items-start",children:e.map((d,u)=>{const f=u<i,g=u===i,v=d.id??`step-${u}`;return s.jsxs("li",{className:"flex flex-1 flex-col items-center",children:[s.jsx("span",{className:A("flex items-center justify-center rounded-full border-2 bg-white transition-colors duration-200",o.circle,f&&"border-main-800 bg-main-800 text-white",g&&"border-main-800 bg-main-800 text-white ring-4 ring-main-300",!f&&!g&&"border-gray-300 text-gray-600"),"aria-current":g?"step":void 0,children:f?s.jsx(Ct,{className:o.checkIcon,strokeWidth:2.5}):s.jsx(I,{size:o.numberSize,weight:"bold",className:A(g?"text-white":"text-gray-600"),children:u+1})}),s.jsx(I,{size:o.labelSize,weight:g?"bold":"medium",className:A("text-center leading-tight",o.labelMargin,f&&"text-gray-900",g&&"text-main-800",!f&&!g&&"text-gray-600"),children:d.label})]},v)})})]})})}function ob({data:e=[],size:t=26,gap:n=8,className:r,renderCellActions:o}){const[a,i]=P.useState(null),[l,c]=P.useState(null),d=P.useRef(null),u=P.useRef(!1),f=P.useRef(!1),g=()=>{d.current!==null&&(clearTimeout(d.current),d.current=null)},v=b=>b<=0?"bg-gray-100":b===1?"bg-main-300":b===2?"bg-main-500":b===3?"bg-main-700":"bg-main-800";return s.jsx("div",{className:A("w-full overflow-x-auto pb-2",r),children:s.jsx("div",{className:"grid w-max grid-flow-col grid-rows-7",style:{gridTemplateRows:`repeat(7, ${t}px)`,gridAutoColumns:`${t}px`,gap:`${n}px`},children:e.map((b,p)=>s.jsxs(Ao,{open:a===p,onOpenChange:m=>{if(!m){if(u.current){u.current=!1;return}i(null),c(null),f.current=!0,setTimeout(()=>{f.current=!1},200)}},children:[s.jsx(Po,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":`${b.date} · ${b.count}회 활동`,className:A("cursor-pointer transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-800 focus-visible:ring-offset-1",v(b.count),l===p&&"ring-2 ring-gray-800 ring-offset-1"),style:{width:t,height:t,borderRadius:`${Math.max(4,Math.round(t*.23))}px`},onMouseEnter:()=>{g(),l===null&&!f.current&&i(p)},onMouseLeave:()=>{l===null&&(d.current=setTimeout(()=>i(null),80))},onClick:()=>{g(),l===p?(c(null),i(null),f.current=!0,setTimeout(()=>{f.current=!1},200)):(u.current=!0,c(p),i(p))}})}),s.jsx(Eo,{children:s.jsxs(_o,{side:"top",sideOffset:4,onOpenAutoFocus:m=>m.preventDefault(),onMouseEnter:()=>{g()},onMouseLeave:()=>{l===null&&i(null)},className:A("z-50 min-w-[120px] rounded-xl bg-gray-900 px-3 py-2 text-white shadow-md","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=top]:slide-in-from-bottom-2 data-[side=bottom]:slide-in-from-top-2"),children:[s.jsxs("p",{className:"whitespace-nowrap text-xs",children:[b.date," · ",b.count,"회 활동"]}),l===p&&o?s.jsx("div",{className:"mt-2",children:o(b)}):null]})})]},p))})})}const Hl=dt(["w-full transition-all duration-200 outline-none","disabled:cursor-not-allowed disabled:opacity-50","placeholder:text-gray-500","focus-visible:outline-none"],{variants:{variant:{default:["rounded-3 border border-gray-300 bg-white px-5 text-gray-900 shadow-none","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60"],search:["rounded-3 !h-10 border border-gray-300 bg-white pl-11 pr-4 text-gray-700 placeholder:text-gray-500","focus-visible:border-main-500 focus-visible:ring-3 focus-visible:ring-main-300/60"]},multiline:{false:"h-10 py-0",true:"min-h-[320px] resize-none py-8 align-top leading-relaxed"}},defaultVariants:{variant:"default",multiline:!1}});function ab(e,t){return"body2"}function sb({label:e,labelHint:t,required:n,htmlFor:r}){return e?s.jsxs("label",{htmlFor:r,className:"mb-2 inline-flex items-center gap-2",children:[s.jsx(I,{size:"body1",weight:"bold",className:"text-gray-900",children:e}),n?s.jsx(I,{size:"body1",weight:"bold",className:"text-main-800",children:"*"}):null,t?s.jsx(I,{size:"body1",weight:"regular",className:"text-gray-500",children:t}):null]}):null}const $o=h.forwardRef(({className:e,variant:t="default",label:n,labelHint:r,error:o,type:a,multiline:i=!1,rows:l=8,cols:c,required:d,id:u,...f},g)=>{const v=t==="search",b=ab(t,i);return s.jsxs("div",{className:"flex w-full flex-col",children:[s.jsx(sb,{label:n,labelHint:r,required:d,htmlFor:u}),s.jsxs("div",{className:"relative w-full",children:[i?s.jsx("textarea",{id:u,rows:l,cols:c,required:d,className:A(Cn({size:b,weight:"regular"}),Hl({variant:t,multiline:!0}),e),ref:g,...f}):s.jsx("input",{id:u,type:a,required:d,className:A(Cn({size:b,weight:v?"light":"regular"}),Hl({variant:t,multiline:!1}),e),ref:g,...f}),v&&!i?s.jsx(Va,{width:20,height:20,className:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-gray-500"}):null]}),o?s.jsx(I,{size:"caption1",weight:"regular",className:"mt-2 text-warning",children:o}):null]})});$o.displayName="TextField";const Vl=h.forwardRef((e,t)=>s.jsx($o,{...e,ref:t,multiline:!0}));Vl.displayName="TextArea";var jl="Toggle",Ho=h.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[i,l]=Ce({prop:n,onChange:o,defaultProp:r??!1,caller:jl});return s.jsx(G.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:V(e.onClick,()=>{e.disabled||l(!i)})})});Ho.displayName=jl;var ib=Ho;const lb=dt(["inline-flex w-fit items-center justify-center gap-2.5 border bg-white whitespace-nowrap","text-gray-700 transition-all duration-200","cursor-pointer disabled:pointer-events-none disabled:opacity-50","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60","hover:bg-gray-100","data-[state=on]:border-main-800 data-[state=on]:bg-main-800 data-[state=on]:text-white","data-[state=on]:shadow-[0_4px_10px_rgba(255,87,34,0.22)]"],{variants:{shape:{rounded:"h-10 rounded-full px-5",square:"h-10 rounded-3 px-4"}},defaultVariants:{shape:"rounded"}});function cb({icon:e,shape:t="rounded",children:n,className:r,...o}){return s.jsxs(ib,{className:A(lb({shape:t}),r),...o,children:[e?s.jsx("span",{className:"inline-flex items-center justify-center text-[18px] leading-none text-inherit [&>svg]:h-5 [&>svg]:w-5",children:e}):null,s.jsx(I,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}var Vo="rovingFocusGroup.onEntryFocus",db={bubbles:!1,cancelable:!0},an="RovingFocusGroup",[jo,Yl,ub]=cr(an),[fb,Gl]=Ae(an,[ub]),[hb,pb]=fb(an),Ul=h.forwardRef((e,t)=>s.jsx(jo.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(jo.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(gb,{...e,ref:t})})}));Ul.displayName=an;var gb=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...f}=e,g=h.useRef(null),v=J(t,g),b=hn(a),[p,m]=Ce({prop:i,defaultProp:l??null,onChange:c,caller:an}),[w,y]=h.useState(!1),x=et(d),N=Yl(n),S=h.useRef(!1),[M,E]=h.useState(0);return h.useEffect(()=>{const k=g.current;if(k)return k.addEventListener(Vo,x),()=>k.removeEventListener(Vo,x)},[x]),s.jsx(hb,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:p,onItemFocus:h.useCallback(k=>m(k),[m]),onItemShiftTab:h.useCallback(()=>y(!0),[]),onFocusableItemAdd:h.useCallback(()=>E(k=>k+1),[]),onFocusableItemRemove:h.useCallback(()=>E(k=>k-1),[]),children:s.jsx(G.div,{tabIndex:w||M===0?-1:0,"data-orientation":r,...f,ref:v,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{S.current=!0}),onFocus:V(e.onFocus,k=>{const z=!S.current;if(k.target===k.currentTarget&&z&&!w){const j=new CustomEvent(Vo,db);if(k.currentTarget.dispatchEvent(j),!j.defaultPrevented){const B=N().filter(T=>T.focusable),Y=B.find(T=>T.active),K=B.find(T=>T.id===p),O=[Y,K,...B].filter(Boolean).map(T=>T.ref.current);ql(O,u)}}S.current=!1}),onBlur:V(e.onBlur,()=>y(!1))})})}),Kl="RovingFocusGroupItem",Ql=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...l}=e,c=Pe(),d=a||c,u=pb(Kl,n),f=u.currentTabStopId===d,g=Yl(n),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:p}=u;return h.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),s.jsx(jo.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:s.jsx(G.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...l,ref:t,onMouseDown:V(e.onMouseDown,m=>{r?u.onItemFocus(d):m.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:V(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const w=bb(m,u.orientation,u.dir);if(w!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let x=g().filter(N=>N.focusable).map(N=>N.ref.current);if(w==="last")x.reverse();else if(w==="prev"||w==="next"){w==="prev"&&x.reverse();const N=x.indexOf(m.currentTarget);x=u.loop?yb(x,N+1):x.slice(N+1)}setTimeout(()=>ql(x))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:p!=null}):i})})});Ql.displayName=Kl;var mb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vb(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function bb(e,t,n){const r=vb(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return mb[r]}function ql(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function yb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wb=Ul,xb=Ql,it="ToggleGroup",[Xl]=Ae(it,[Gl]),Zl=Gl(),Yo=P.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return s.jsx(Cb,{...o,ref:t})}if(n==="multiple"){const o=r;return s.jsx(Nb,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${it}\``)});Yo.displayName=it;var[Jl,Rl]=Xl(it),Cb=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=Ce({prop:n,defaultProp:r??"",onChange:o,caller:it});return s.jsx(Jl,{scope:e.__scopeToggleGroup,type:"single",value:P.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:P.useCallback(()=>l(""),[l]),children:s.jsx(ec,{...a,ref:t})})}),Nb=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=Ce({prop:n,defaultProp:r??[],onChange:o,caller:it}),c=P.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=P.useCallback(u=>l((f=[])=>f.filter(g=>g!==u)),[l]);return s.jsx(Jl,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:d,children:s.jsx(ec,{...a,ref:t})})});Yo.displayName=it;var[Sb,kb]=Xl(it),ec=P.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...c}=e,d=Zl(n),u=hn(i),f={role:"group",dir:u,...c};return s.jsx(Sb,{scope:n,rovingFocus:o,disabled:r,children:o?s.jsx(wb,{asChild:!0,...d,orientation:a,dir:u,loop:l,children:s.jsx(G.div,{...f,ref:t})}):s.jsx(G.div,{...f,ref:t})})}),ar="ToggleGroupItem",tc=P.forwardRef((e,t)=>{const n=Rl(ar,e.__scopeToggleGroup),r=kb(ar,e.__scopeToggleGroup),o=Zl(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,l={...e,pressed:a,disabled:i},c=P.useRef(null);return r.rovingFocus?s.jsx(xb,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:s.jsx(nc,{...l,ref:t})}):s.jsx(nc,{...l,ref:t})});tc.displayName=ar;var nc=P.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=Rl(ar,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return s.jsx(Ho,{...l,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Ab=Yo,Pb=tc;const Eb=dt(["inline-flex w-fit items-center justify-center gap-2.5 border bg-white whitespace-nowrap","text-gray-700 transition-all duration-200","cursor-pointer disabled:pointer-events-none disabled:opacity-50","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-main-300/60","hover:bg-gray-100","data-[state=on]:border-main-800 data-[state=on]:bg-main-800 data-[state=on]:text-white","data-[state=on]:shadow-[0_4px_10px_rgba(255,87,34,0.22)]"],{variants:{shape:{rounded:"h-10 rounded-full px-5",square:"h-10 rounded-3 px-4"}},defaultVariants:{shape:"rounded"}});function _b({children:e,className:t,...n}){return s.jsx(Ab,{"data-slot":"toggle-group",className:A("flex flex-wrap gap-4 rounded-none",t),...n,children:e})}function Mb({icon:e,shape:t="rounded",children:n,className:r,...o}){return s.jsxs(Pb,{"data-slot":"toggle-group-item",className:A(Eb({shape:t}),r),...o,children:[e?s.jsx("span",{className:"inline-flex items-center justify-center text-[18px] leading-none text-inherit [&>svg]:h-5 [&>svg]:w-5",children:e}):null,s.jsx(I,{size:"body2",weight:"bold",className:"text-inherit",children:n})]})}var[sr]=Ae("Tooltip",[Dt]),ir=Dt(),rc="TooltipProvider",Tb=700,Go="tooltip.open",[Db,Uo]=sr(rc),oc=e=>{const{__scopeTooltip:t,delayDuration:n=Tb,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=h.useRef(!0),l=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),s.jsx(Db,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:h.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:a})};oc.displayName=rc;var sn="Tooltip",[Ob,ln]=sr(sn),ac=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,c=Uo(sn,e.__scopeTooltip),d=ir(t),[u,f]=h.useState(null),g=Pe(),v=h.useRef(0),b=i??c.disableHoverableContent,p=l??c.delayDuration,m=h.useRef(!1),[w,y]=Ce({prop:r,defaultProp:o??!1,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(Go))):c.onClose(),a?.(E)},caller:sn}),x=h.useMemo(()=>w?m.current?"delayed-open":"instant-open":"closed",[w]),N=h.useCallback(()=>{window.clearTimeout(v.current),v.current=0,m.current=!1,y(!0)},[y]),S=h.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y(!1)},[y]),M=h.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{m.current=!0,y(!0),v.current=0},p)},[p,y]);return h.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),s.jsx(mo,{...d,children:s.jsx(Ob,{scope:t,contentId:g,open:w,stateAttribute:x,trigger:u,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{c.isOpenDelayedRef.current?M():N()},[c.isOpenDelayedRef,M,N]),onTriggerLeave:h.useCallback(()=>{b?S():(window.clearTimeout(v.current),v.current=0)},[S,b]),onOpen:N,onClose:S,disableHoverableContent:b,children:n})})};ac.displayName=sn;var Ko="TooltipTrigger",sc=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ln(Ko,n),a=Uo(Ko,n),i=ir(n),l=h.useRef(null),c=J(t,l,o.onTriggerChange),d=h.useRef(!1),u=h.useRef(!1),f=h.useCallback(()=>d.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),s.jsx(jn,{asChild:!0,...i,children:s.jsx(G.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:V(e.onPointerMove,g=>{g.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:V(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:V(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:V(e.onBlur,o.onClose),onClick:V(e.onClick,o.onClose)})})});sc.displayName=Ko;var Qo="TooltipPortal",[Ib,Lb]=sr(Qo,{forceMount:void 0}),ic=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=ln(Qo,t);return s.jsx(Ib,{scope:t,forceMount:n,children:s.jsx(We,{present:n||a.open,children:s.jsx(en,{asChild:!0,container:o,children:r})})})};ic.displayName=Qo;var $t="TooltipContent",lc=h.forwardRef((e,t)=>{const n=Lb($t,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=ln($t,e.__scopeTooltip);return s.jsx(We,{present:r||i.open,children:i.disableHoverableContent?s.jsx(cc,{side:o,...a,ref:t}):s.jsx(Fb,{side:o,...a,ref:t})})}),Fb=h.forwardRef((e,t)=>{const n=ln($t,e.__scopeTooltip),r=Uo($t,e.__scopeTooltip),o=h.useRef(null),a=J(t,o),[i,l]=h.useState(null),{trigger:c,onClose:d}=n,u=o.current,{onPointerInTransitChange:f}=r,g=h.useCallback(()=>{l(null),f(!1)},[f]),v=h.useCallback((b,p)=>{const m=b.currentTarget,w={x:b.clientX,y:b.clientY},y=Hb(w,m.getBoundingClientRect()),x=Vb(w,y),N=jb(p.getBoundingClientRect()),S=Gb([...x,...N]);l(S),f(!0)},[f]);return h.useEffect(()=>()=>g(),[g]),h.useEffect(()=>{if(c&&u){const b=m=>v(m,u),p=m=>v(m,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",p)}}},[c,u,v,g]),h.useEffect(()=>{if(i){const b=p=>{const m=p.target,w={x:p.clientX,y:p.clientY},y=c?.contains(m)||u?.contains(m),x=!Yb(w,i);y?g():x&&(g(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,i,d,g]),s.jsx(cc,{...e,ref:a})}),[Wb,zb]=sr(sn,{isInside:!1}),Bb=pc("TooltipContent"),cc=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,c=ln($t,n),d=ir(n),{onClose:u}=c;return h.useEffect(()=>(document.addEventListener(Go,u),()=>document.removeEventListener(Go,u)),[u]),h.useEffect(()=>{if(c.trigger){const f=g=>{g.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),s.jsx(Xt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:s.jsxs(vo,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(Bb,{children:r}),s.jsx(Wb,{scope:n,isInside:!0,children:s.jsx(Xv,{id:c.contentId,role:"tooltip",children:o||r})})]})})});lc.displayName=$t;var dc="TooltipArrow",$b=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ir(n);return zb(dc,n).isInside?null:s.jsx(bo,{...o,...r,ref:t})});$b.displayName=dc;function Hb(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Vb(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function jb(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Yb(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a],c=t[i],d=l.x,u=l.y,f=c.x,g=c.y;u>r!=g>r&&n<(f-d)*(r-u)/(g-u)+d&&(o=!o)}return o}function Gb(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ub(t)}function Ub(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Kb=oc,Qb=ac,qb=sc,Xb=ic,Zb=lc;function Jb({delayDuration:e=200,...t}){return s.jsx(Kb,{delayDuration:e,...t})}const Rb=Qb,ey=qb;function ty({className:e,sideOffset:t=4,...n}){return s.jsx(Xb,{children:s.jsx(Zb,{sideOffset:t,className:A("z-50 overflow-hidden rounded-1.5 bg-gray-900 px-3 py-1.5 text-caption2 text-white shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...n})})}function ny({className:e,userName:t,userImageSrc:n,timeLabel:r,isAuthor:o=!1,onAccept:a,onReject:i}){return s.jsxs("div",{className:A("flex h-[50px] items-center justify-between gap-3 rounded-3 border border-gray-200 bg-white px-3",e),children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[s.jsx("div",{className:"relative flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-gray-200",children:n?s.jsx(lt,{src:n,alt:`${t} profile`,fill:!0,className:"object-cover"}):s.jsx(Nt,{className:"h-4.5 w-4.5 text-gray-500"})}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx(I,{size:"body2",weight:"bold",className:"line-clamp-1 text-gray-900",children:t}),r?s.jsx(I,{size:"caption2",weight:"regular",className:"text-gray-600",children:r}):null]})]}),o?s.jsx("div",{className:"flex shrink-0 items-center gap-2",children:s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button","aria-label":"수락",onClick:a,className:"inline-flex h-9 w-9 items-center justify-center rounded-2 bg-main-200 text-main-800 transition-colors hover:bg-main-300",children:s.jsx(Ct,{className:"h-4.5 w-4.5",strokeWidth:2.6})}),s.jsx("button",{type:"button","aria-label":"거절",onClick:i,className:"inline-flex h-9 w-9 items-center justify-center rounded-2 bg-gray-100 text-gray-600 transition-colors hover:bg-gray-200",children:s.jsx(kn,{className:"h-4.5 w-4.5",strokeWidth:2.4})})]})}):null]})}D.Accordion=Fd,D.AccordionContent=Bd,D.AccordionItem=Wd,D.AccordionTrigger=zd,D.AppHeader=gu,D.BannerCarousel=yu,D.Button=de,D.Calendar=Ur,D.ChallengeCard=Ip,D.ChallengeListItem=Lp,D.CheckContainer=Fp,D.CheckList=Hp,D.Checkbox=qr,D.CircleAvatar=xt,D.CircularProgress=Xr,D.DatePicker=bv,D.Dialog=Fv,D.DialogClose=zv,D.DialogContent=Bv,D.DialogDescription=jv,D.DialogFooter=Hv,D.DialogHeader=$v,D.DialogOverlay=al,D.DialogPortal=ol,D.DialogTitle=Vv,D.DialogTrigger=Wv,D.DiaryCard=Uv,D.DiaryListItem=Qv,D.GoalAddList=$0,D.Icon=ja,D.ImagePicker=H0,D.ImagePlaceholder=Qt,D.InfoButton=V0,D.PageWatermark=j0,D.Pagination=G0,D.ProgressBar=$l,D.RangeDatePicker=yv,D.RightSidebar=q0,D.ScheduleCalendar=eb,D.Select=D0,D.SelectContent=z0,D.SelectGroup=O0,D.SelectItem=F0,D.SelectLabel=B0,D.SelectScrollDownButton=Bl,D.SelectScrollUpButton=zl,D.SelectSeparator=W0,D.SelectTrigger=L0,D.SelectValue=I0,D.StatContainer=tb,D.StepIndicator=rb,D.Streak=ob,D.Tag=qt,D.Text=I,D.TextArea=Vl,D.TextField=$o,D.Toggle=cb,D.ToggleGroup=_b,D.ToggleGroupItem=Mb,D.Tooltip=Rb,D.TooltipContent=ty,D.TooltipProvider=Jb,D.TooltipTrigger=ey,D.UserListItem=ny,D.cn=A,D.textVariants=Cn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|