commerce-toolkit 0.0.21 → 0.0.23

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.
Files changed (42) hide show
  1. package/dist/components/accordion/primitives/accordion-trigger.d.ts.map +1 -1
  2. package/dist/components/blog-post-card/primitives/blog-post-card-author.d.ts.map +1 -1
  3. package/dist/components/blog-post-card/primitives/blog-post-card-content.d.ts.map +1 -1
  4. package/dist/components/blog-post-card/primitives/blog-post-card-link.d.ts.map +1 -1
  5. package/dist/components/blog-post-card/primitives/blog-post-card-title.d.ts.map +1 -1
  6. package/dist/components/rating/index.d.ts +7 -0
  7. package/dist/components/rating/index.d.ts.map +1 -0
  8. package/dist/components/rating/primitives/rating-provider.d.ts +19 -0
  9. package/dist/components/rating/primitives/rating-provider.d.ts.map +1 -0
  10. package/dist/components/rating/primitives/rating-root.d.ts +4 -0
  11. package/dist/components/rating/primitives/rating-root.d.ts.map +1 -0
  12. package/dist/components/rating/primitives/rating-star.d.ts +4 -0
  13. package/dist/components/rating/primitives/rating-star.d.ts.map +1 -0
  14. package/dist/components/rating/primitives/rating-stars.d.ts +2 -0
  15. package/dist/components/rating/primitives/rating-stars.d.ts.map +1 -0
  16. package/dist/components/rating/primitives/rating-value.d.ts +4 -0
  17. package/dist/components/rating/primitives/rating-value.d.ts.map +1 -0
  18. package/dist/components/rating/rating.d.ts +19 -0
  19. package/dist/components/rating/rating.d.ts.map +1 -0
  20. package/dist/components/reveal/index.d.ts +7 -0
  21. package/dist/components/reveal/index.d.ts.map +1 -0
  22. package/dist/components/reveal/primitives/reveal-controls.d.ts +4 -0
  23. package/dist/components/reveal/primitives/reveal-controls.d.ts.map +1 -0
  24. package/dist/components/reveal/primitives/reveal-provider.d.ts +23 -0
  25. package/dist/components/reveal/primitives/reveal-provider.d.ts.map +1 -0
  26. package/dist/components/reveal/primitives/reveal-root.d.ts +4 -0
  27. package/dist/components/reveal/primitives/reveal-root.d.ts.map +1 -0
  28. package/dist/components/reveal/primitives/reveal-trigger.d.ts +4 -0
  29. package/dist/components/reveal/primitives/reveal-trigger.d.ts.map +1 -0
  30. package/dist/components/reveal/primitives/reveal-viewport.d.ts +4 -0
  31. package/dist/components/reveal/primitives/reveal-viewport.d.ts.map +1 -0
  32. package/dist/components/reveal/reveal.d.ts +12 -0
  33. package/dist/components/reveal/reveal.d.ts.map +1 -0
  34. package/dist/index.cjs +8 -8
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.ts +2 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +1119 -877
  39. package/dist/index.js.map +1 -1
  40. package/dist/lib/index.d.ts +1 -1
  41. package/dist/lib/index.d.ts.map +1 -1
  42. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1,37 +1,37 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),h=require("react");require("react-dom");function hr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=hr(h);function vr({className:e,colorScheme:t="light",items:r,...o}){return s.jsx(Et,{colorScheme:t,items:r,children:s.jsx(It,{className:e,...o,children:r.map(n=>s.jsx(zt,{content:n.content,title:n.title,value:n.value,children:s.jsxs(_t,{children:[s.jsx(Bt,{}),s.jsx(St,{})]})},n.value))})})}function Ne(e,t=[]){let r=[];function o(a,i){const l=m.createContext(i),c=r.length;r=[...r,i];const f=x=>{const{scope:N,children:C,...j}=x,w=N?.[e]?.[c]||l,A=m.useMemo(()=>j,Object.values(j));return s.jsx(w.Provider,{value:A,children:C})};f.displayName=a+"Provider";function p(x,N){const C=N?.[e]?.[c]||l,j=m.useContext(C);if(j)return j;if(i!==void 0)return i;throw new Error(`\`${x}\` must be used within \`${a}\``)}return[f,p]}const n=()=>{const a=r.map(i=>m.createContext(i));return function(l){const c=l?.[e]||a;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return n.scopeName=e,[o,xr(n,...t)]}function xr(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const i=o.reduce((l,{useScope:c,scopeName:f})=>{const x=c(a)[`__scope${f}`];return{...l,...x}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function qe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qe(...e){return t=>{let r=!1;const o=e.map(n=>{const a=qe(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<o.length;n++){const a=o[n];typeof a=="function"?a():qe(e[n],null)}}}}function Y(...e){return m.useCallback(Qe(...e),e)}function ke(e){const t=yr(e),r=m.forwardRef((o,n)=>{const{children:a,...i}=o,l=m.Children.toArray(a),c=l.find(wr);if(c){const f=c.props.children,p=l.map(x=>x===c?m.Children.count(f)>1?m.Children.only(null):m.isValidElement(f)?f.props.children:null:x);return s.jsx(t,{...i,ref:n,children:m.isValidElement(f)?m.cloneElement(f,void 0,p):null})}return s.jsx(t,{...i,ref:n,children:a})});return r.displayName=`${e}.Slot`,r}function yr(e){const t=m.forwardRef((r,o)=>{const{children:n,...a}=r;if(m.isValidElement(n)){const i=Ar(n),l=Cr(a,n.props);return n.type!==m.Fragment&&(l.ref=o?Qe(o,i):i),m.cloneElement(n,l)}return m.Children.count(n)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kr=Symbol("radix.slottable");function wr(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kr}function Cr(e,t){const r={...t};for(const o in t){const n=e[o],a=t[o];/^on[A-Z]/.test(o)?n&&a?r[o]=(...l)=>{const c=a(...l);return n(...l),c}:n&&(r[o]=n):o==="style"?r[o]={...n,...a}:o==="className"&&(r[o]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}function Ar(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function jr(e){const t=e+"CollectionProvider",[r,o]=Ne(t),[n,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=w=>{const{scope:A,children:P}=w,k=h.useRef(null),R=h.useRef(new Map).current;return s.jsx(n,{scope:A,itemMap:R,collectionRef:k,children:P})};i.displayName=t;const l=e+"CollectionSlot",c=ke(l),f=h.forwardRef((w,A)=>{const{scope:P,children:k}=w,R=a(l,P),I=Y(A,R.collectionRef);return s.jsx(c,{ref:I,children:k})});f.displayName=l;const p=e+"CollectionItemSlot",x="data-radix-collection-item",N=ke(p),C=h.forwardRef((w,A)=>{const{scope:P,children:k,...R}=w,I=h.useRef(null),T=Y(A,I),M=a(p,P);return h.useEffect(()=>(M.itemMap.set(I,{ref:I,...R}),()=>void M.itemMap.delete(I))),s.jsx(N,{[x]:"",ref:T,children:k})});C.displayName=p;function j(w){const A=a(e+"CollectionConsumer",w);return h.useCallback(()=>{const k=A.collectionRef.current;if(!k)return[];const R=Array.from(k.querySelectorAll(`[${x}]`));return Array.from(A.itemMap.values()).sort((M,L)=>R.indexOf(M.ref.current)-R.indexOf(L.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:i,Slot:f,ItemSlot:C},j,o]}function Pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var Q=globalThis?.document?m.useLayoutEffect:()=>{},Nr=m[" useInsertionEffect ".trim().toString()]||Q;function de({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[n,a,i]=Pr({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:n;{const p=m.useRef(e!==void 0);m.useEffect(()=>{const x=p.current;x!==l&&console.warn(`${o} is changing from ${x?"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.`),p.current=l},[l,o])}const f=m.useCallback(p=>{if(l){const x=Rr(p)?p(e):p;x!==e&&i.current?.(x)}else a(p)},[l,e,a,i]);return[c,f]}function Pr({defaultProp:e,onChange:t}){const[r,o]=m.useState(e),n=m.useRef(r),a=m.useRef(t);return Nr(()=>{a.current=t},[t]),m.useEffect(()=>{n.current!==r&&(a.current?.(r),n.current=r)},[r,n]),[r,o,a]}function Rr(e){return typeof e=="function"}var _r=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=_r.reduce((e,t)=>{const r=ke(`Primitive.${t}`),o=m.forwardRef((n,a)=>{const{asChild:i,...l}=n,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Ir(e,t){return m.useReducer((r,o)=>t[r][o]??r,e)}var et=e=>{const{present:t,children:r}=e,o=Sr(t),n=typeof r=="function"?r({present:o.isPresent}):m.Children.only(r),a=Y(o.ref,Mr(n));return typeof r=="function"||o.isPresent?m.cloneElement(n,{ref:a}):null};et.displayName="Presence";function Sr(e){const[t,r]=m.useState(),o=m.useRef(null),n=m.useRef(e),a=m.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Ir(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const f=se(o.current);a.current=l==="mounted"?f:"none"},[l]),Q(()=>{const f=o.current,p=n.current;if(p!==e){const N=a.current,C=se(f);e?c("MOUNT"):C==="none"||f?.display==="none"?c("UNMOUNT"):c(p&&N!==C?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,c]),Q(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,x=C=>{const w=se(o.current).includes(CSS.escape(C.animationName));if(C.target===t&&w&&(c("ANIMATION_END"),!n.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},N=C=>{C.target===t&&(a.current=se(o.current))};return t.addEventListener("animationstart",N),t.addEventListener("animationcancel",x),t.addEventListener("animationend",x),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",N),t.removeEventListener("animationcancel",x),t.removeEventListener("animationend",x)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(f=>{o.current=f?getComputedStyle(f):null,r(f)},[])}}function se(e){return e?.animationName||"none"}function Mr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Er=m[" useId ".trim().toString()]||(()=>{}),Tr=0;function tt(e){const[t,r]=m.useState(Er());return Q(()=>{r(o=>o??String(Tr++))},[e]),t?`radix-${t}`:""}var ue="Collapsible",[zr,rt]=Ne(ue),[Br,Re]=zr(ue),ot=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:n,disabled:a,onOpenChange:i,...l}=e,[c,f]=de({prop:o,defaultProp:n??!1,onChange:i,caller:ue});return s.jsx(Br,{scope:r,disabled:a,contentId:tt(),open:c,onOpenToggle:m.useCallback(()=>f(p=>!p),[f]),children:s.jsx(q.div,{"data-state":Ie(c),"data-disabled":a?"":void 0,...l,ref:t})})});ot.displayName=ue;var nt="CollapsibleTrigger",at=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,n=Re(nt,r);return s.jsx(q.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":Ie(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:t,onClick:Pe(e.onClick,n.onOpenToggle)})});at.displayName=nt;var _e="CollapsibleContent",st=m.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Re(_e,e.__scopeCollapsible);return s.jsx(et,{present:r||n.open,children:({present:a})=>s.jsx(Lr,{...o,ref:t,present:a})})});st.displayName=_e;var Lr=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:n,...a}=e,i=Re(_e,r),[l,c]=m.useState(o),f=m.useRef(null),p=Y(t,f),x=m.useRef(0),N=x.current,C=m.useRef(0),j=C.current,w=i.open||l,A=m.useRef(w),P=m.useRef(void 0);return m.useEffect(()=>{const k=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(k)},[]),Q(()=>{const k=f.current;if(k){P.current=P.current||{transitionDuration:k.style.transitionDuration,animationName:k.style.animationName},k.style.transitionDuration="0s",k.style.animationName="none";const R=k.getBoundingClientRect();x.current=R.height,C.current=R.width,A.current||(k.style.transitionDuration=P.current.transitionDuration,k.style.animationName=P.current.animationName),c(o)}},[i.open,o]),s.jsx(q.div,{"data-state":Ie(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!w,...a,ref:p,style:{"--radix-collapsible-content-height":N?`${N}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...e.style},children:w&&n})});function Ie(e){return e?"open":"closed"}var Or=ot,Dr=at,$r=st,Vr=m.createContext(void 0);function Fr(e){const t=m.useContext(Vr);return e||t||"ltr"}var B="Accordion",Gr=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Se,Ur,Wr]=jr(B),[fe]=Ne(B,[Wr,rt]),Me=rt(),it=h.forwardRef((e,t)=>{const{type:r,...o}=e,n=o,a=o;return s.jsx(Se.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?s.jsx(Zr,{...a,ref:t}):s.jsx(Kr,{...n,ref:t})})});it.displayName=B;var[lt,Hr]=fe(B),[ct,qr]=fe(B,{collapsible:!1}),Kr=h.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},collapsible:a=!1,...i}=e,[l,c]=de({prop:r,defaultProp:o??"",onChange:n,caller:B});return s.jsx(lt,{scope:e.__scopeAccordion,value:h.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:h.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(ct,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(dt,{...i,ref:t})})})}),Zr=h.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},...a}=e,[i,l]=de({prop:r,defaultProp:o??[],onChange:n,caller:B}),c=h.useCallback(p=>l((x=[])=>[...x,p]),[l]),f=h.useCallback(p=>l((x=[])=>x.filter(N=>N!==p)),[l]);return s.jsx(lt,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:f,children:s.jsx(ct,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(dt,{...a,ref:t})})})}),[Xr,me]=fe(B),dt=h.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:o,dir:n,orientation:a="vertical",...i}=e,l=h.useRef(null),c=Y(l,t),f=Ur(r),x=Fr(n)==="ltr",N=Pe(e.onKeyDown,C=>{if(!Gr.includes(C.key))return;const j=C.target,w=f().filter(v=>!v.ref.current?.disabled),A=w.findIndex(v=>v.ref.current===j),P=w.length;if(A===-1)return;C.preventDefault();let k=A;const R=0,I=P-1,T=()=>{k=A+1,k>I&&(k=R)},M=()=>{k=A-1,k<R&&(k=I)};switch(C.key){case"Home":k=R;break;case"End":k=I;break;case"ArrowRight":a==="horizontal"&&(x?T():M());break;case"ArrowDown":a==="vertical"&&T();break;case"ArrowLeft":a==="horizontal"&&(x?M():T());break;case"ArrowUp":a==="vertical"&&M();break}const L=k%P;w[L].ref.current?.focus()});return s.jsx(Xr,{scope:r,disabled:o,direction:n,orientation:a,children:s.jsx(Se.Slot,{scope:r,children:s.jsx(q.div,{...i,"data-orientation":a,ref:c,onKeyDown:o?void 0:N})})})}),ce="AccordionItem",[Jr,Ee]=fe(ce),ut=h.forwardRef((e,t)=>{const{__scopeAccordion:r,value:o,...n}=e,a=me(ce,r),i=Hr(ce,r),l=Me(r),c=tt(),f=o&&i.value.includes(o)||!1,p=a.disabled||e.disabled;return s.jsx(Jr,{scope:r,open:f,disabled:p,triggerId:c,children:s.jsx(Or,{"data-orientation":a.orientation,"data-state":ht(f),...l,...n,ref:t,disabled:p,open:f,onOpenChange:x=>{x?i.onItemOpen(o):i.onItemClose(o)}})})});ut.displayName=ce;var ft="AccordionHeader",mt=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(B,r),a=Ee(ft,r);return s.jsx(q.h3,{"data-orientation":n.orientation,"data-state":ht(a.open),"data-disabled":a.disabled?"":void 0,...o,ref:t})});mt.displayName=ft;var we="AccordionTrigger",pt=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(B,r),a=Ee(we,r),i=qr(we,r),l=Me(r);return s.jsx(Se.ItemSlot,{scope:r,children:s.jsx(Dr,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:a.triggerId,...l,...o,ref:t})})});pt.displayName=we;var gt="AccordionContent",bt=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(B,r),a=Ee(gt,r),i=Me(r);return s.jsx($r,{role:"region","aria-labelledby":a.triggerId,"data-orientation":n.orientation,...i,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});bt.displayName=gt;function ht(e){return e?"open":"closed"}var Yr=it,Qr=ut,eo=mt,to=pt,ro=bt;function vt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=vt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function oo(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=vt(e))&&(o&&(o+=" "),o+=t);return o}const Te="-",no=e=>{const t=so(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const l=i.split(Te);return l[0]===""&&l.length!==1&&l.shift(),xt(l,t)||ao(i)},getConflictingClassGroupIds:(i,l)=>{const c=r[i]||[];return l&&o[i]?[...c,...o[i]]:c}}},xt=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?xt(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Te);return t.validators.find(({validator:i})=>i(a))?.classGroupId},Ke=/^\[(.+)\]$/,ao=e=>{if(Ke.test(e)){const t=Ke.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},so=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const n in r)Ce(r[n],o,n,t);return o},Ce=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Ze(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(io(n)){Ce(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{Ce(i,Ze(t,a),r,o)})})},Ze=(e,t)=>{let r=e;return t.split(Te).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},io=e=>e.isThemeGetter,lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Ae="!",je=":",co=je.length,uo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const a=[];let i=0,l=0,c=0,f;for(let j=0;j<n.length;j++){let w=n[j];if(i===0&&l===0){if(w===je){a.push(n.slice(c,j)),c=j+co;continue}if(w==="/"){f=j;continue}}w==="["?i++:w==="]"?i--:w==="("?l++:w===")"&&l--}const p=a.length===0?n:n.substring(c),x=fo(p),N=x!==p,C=f&&f>c?f-c:void 0;return{modifiers:a,hasImportantModifier:N,baseClassName:x,maybePostfixModifierPosition:C}};if(t){const n=t+je,a=o;o=i=>i.startsWith(n)?a(i.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const n=o;o=a=>r({className:a,parseClassName:n})}return o},fo=e=>e.endsWith(Ae)?e.substring(0,e.length-1):e.startsWith(Ae)?e.substring(1):e,mo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const n=[];let a=[];return o.forEach(i=>{i[0]==="["||t[i]?(n.push(...a.sort(),i),a=[]):a.push(i)}),n.push(...a.sort()),n}},po=e=>({cache:lo(e.cacheSize),parseClassName:uo(e),sortModifiers:mo(e),...no(e)}),go=/\s+/,bo=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,i=[],l=e.trim().split(go);let c="";for(let f=l.length-1;f>=0;f-=1){const p=l[f],{isExternal:x,modifiers:N,hasImportantModifier:C,baseClassName:j,maybePostfixModifierPosition:w}=r(p);if(x){c=p+(c.length>0?" "+c:c);continue}let A=!!w,P=o(A?j.substring(0,w):j);if(!P){if(!A){c=p+(c.length>0?" "+c:c);continue}if(P=o(j),!P){c=p+(c.length>0?" "+c:c);continue}A=!1}const k=a(N).join(":"),R=C?k+Ae:k,I=R+P;if(i.includes(I))continue;i.push(I);const T=n(P,A);for(let M=0;M<T.length;++M){const L=T[M];i.push(R+L)}c=p+(c.length>0?" "+c:c)}return c};function ho(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=yt(t))&&(o&&(o+=" "),o+=r);return o}const yt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=yt(e[o]))&&(r&&(r+=" "),r+=t);return r};function vo(e,...t){let r,o,n,a=i;function i(c){const f=t.reduce((p,x)=>x(p),e());return r=po(f),o=r.cache.get,n=r.cache.set,a=l,l(c)}function l(c){const f=o(c);if(f)return f;const p=bo(c,r);return n(c,p),p}return function(){return a(ho.apply(null,arguments))}}const _=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},kt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xo=/^\d+\/\d+$/,yo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ko=/\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$/,wo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Co=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>xo.test(e),y=e=>!!e&&!Number.isNaN(Number(e)),V=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&y(e.slice(0,-1)),$=e=>yo.test(e),jo=()=>!0,No=e=>ko.test(e)&&!wo.test(e),Ct=()=>!1,Po=e=>Co.test(e),Ro=e=>Ao.test(e),_o=e=>!d(e)&&!u(e),Io=e=>K(e,Nt,Ct),d=e=>kt.test(e),G=e=>K(e,Pt,No),ye=e=>K(e,zo,y),Xe=e=>K(e,At,Ct),So=e=>K(e,jt,Ro),ie=e=>K(e,Rt,Po),u=e=>wt.test(e),X=e=>Z(e,Pt),Mo=e=>Z(e,Bo),Je=e=>Z(e,At),Eo=e=>Z(e,Nt),To=e=>Z(e,jt),le=e=>Z(e,Rt,!0),K=(e,t,r)=>{const o=kt.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},Z=(e,t,r=!1)=>{const o=wt.exec(e);return o?o[1]?t(o[1]):r:!1},At=e=>e==="position"||e==="percentage",jt=e=>e==="image"||e==="url",Nt=e=>e==="length"||e==="size"||e==="bg-size",Pt=e=>e==="length",zo=e=>e==="number",Bo=e=>e==="family-name",Rt=e=>e==="shadow",Lo=()=>{const e=_("color"),t=_("font"),r=_("text"),o=_("font-weight"),n=_("tracking"),a=_("leading"),i=_("breakpoint"),l=_("container"),c=_("spacing"),f=_("radius"),p=_("shadow"),x=_("inset-shadow"),N=_("text-shadow"),C=_("drop-shadow"),j=_("blur"),w=_("perspective"),A=_("aspect"),P=_("ease"),k=_("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...I(),u,d],M=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],v=()=>[u,d,c],O=()=>[H,"full","auto",...v()],De=()=>[V,"none","subgrid",u,d],$e=()=>["auto",{span:["full",V,u,d]},V,u,d],te=()=>[V,"auto",u,d],Ve=()=>["auto","min","max","fr",u,d],be=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...v()],F=()=>[H,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],b=()=>[e,u,d],Fe=()=>[...I(),Je,Xe,{position:[u,d]}],Ge=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ue=()=>["auto","cover","contain",Eo,Io,{size:[u,d]}],he=()=>[xe,X,G],E=()=>["","none","full",f,u,d],z=()=>["",y,X,G],re=()=>["solid","dashed","dotted","double"],We=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>[y,xe,Je,Xe],He=()=>["","none",j,u,d],oe=()=>["none",y,u,d],ne=()=>["none",y,u,d],ve=()=>[y,u,d],ae=()=>[H,"full",...v()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[jo],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[_o],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",y],text:[$],"text-shadow":[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",H,d,u,A]}],container:["container"],columns:[{columns:[y,d,u,l]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],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:T()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[V,"auto",u,d]}],basis:[{basis:[H,"full","auto",l,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,H,"auto","initial","none",d]}],grow:[{grow:["",y,u,d]}],shrink:[{shrink:["",y,u,d]}],order:[{order:[V,"first","last","none",u,d]}],"grid-cols":[{"grid-cols":De()}],"col-start-end":[{col:$e()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":De()}],"row-start-end":[{row:$e()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ve()}],"auto-rows":[{"auto-rows":Ve()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:[...be(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...be()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":be()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[l,"screen",...F()]}],"min-w":[{"min-w":[l,"screen","none",...F()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,X,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,u,ye]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,d]}],"font-family":[{font:[Mo,d,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:[n,u,d]}],"line-clamp":[{"line-clamp":[y,"none",u,ye]}],leading:[{leading:[a,...v()]}],"list-image":[{"list-image":["none",u,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:b()}],"text-color":[{text:b()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",u,G]}],"text-decoration-color":[{decoration:b()}],"underline-offset":[{"underline-offset":[y,"auto",u,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,d]}],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",u,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Fe()}],"bg-repeat":[{bg:Ge()}],"bg-size":[{bg:Ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},V,u,d],radial:["",u,d],conic:[V,u,d]},To,So]}],"bg-color":[{bg:b()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:b()}],"gradient-via":[{via:b()}],"gradient-to":[{to:b()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:b()}],"border-color-x":[{"border-x":b()}],"border-color-y":[{"border-y":b()}],"border-color-s":[{"border-s":b()}],"border-color-e":[{"border-e":b()}],"border-color-t":[{"border-t":b()}],"border-color-r":[{"border-r":b()}],"border-color-b":[{"border-b":b()}],"border-color-l":[{"border-l":b()}],"divide-color":[{divide:b()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,u,d]}],"outline-w":[{outline:["",y,X,G]}],"outline-color":[{outline:b()}],shadow:[{shadow:["","none",p,le,ie]}],"shadow-color":[{shadow:b()}],"inset-shadow":[{"inset-shadow":["none",x,le,ie]}],"inset-shadow-color":[{"inset-shadow":b()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:b()}],"ring-offset-w":[{"ring-offset":[y,G]}],"ring-offset-color":[{"ring-offset":b()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":b()}],"text-shadow":[{"text-shadow":["none",N,le,ie]}],"text-shadow-color":[{"text-shadow":b()}],opacity:[{opacity:[y,u,d]}],"mix-blend":[{"mix-blend":[...We(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":We()}],"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":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":S()}],"mask-image-linear-to-pos":[{"mask-linear-to":S()}],"mask-image-linear-from-color":[{"mask-linear-from":b()}],"mask-image-linear-to-color":[{"mask-linear-to":b()}],"mask-image-t-from-pos":[{"mask-t-from":S()}],"mask-image-t-to-pos":[{"mask-t-to":S()}],"mask-image-t-from-color":[{"mask-t-from":b()}],"mask-image-t-to-color":[{"mask-t-to":b()}],"mask-image-r-from-pos":[{"mask-r-from":S()}],"mask-image-r-to-pos":[{"mask-r-to":S()}],"mask-image-r-from-color":[{"mask-r-from":b()}],"mask-image-r-to-color":[{"mask-r-to":b()}],"mask-image-b-from-pos":[{"mask-b-from":S()}],"mask-image-b-to-pos":[{"mask-b-to":S()}],"mask-image-b-from-color":[{"mask-b-from":b()}],"mask-image-b-to-color":[{"mask-b-to":b()}],"mask-image-l-from-pos":[{"mask-l-from":S()}],"mask-image-l-to-pos":[{"mask-l-to":S()}],"mask-image-l-from-color":[{"mask-l-from":b()}],"mask-image-l-to-color":[{"mask-l-to":b()}],"mask-image-x-from-pos":[{"mask-x-from":S()}],"mask-image-x-to-pos":[{"mask-x-to":S()}],"mask-image-x-from-color":[{"mask-x-from":b()}],"mask-image-x-to-color":[{"mask-x-to":b()}],"mask-image-y-from-pos":[{"mask-y-from":S()}],"mask-image-y-to-pos":[{"mask-y-to":S()}],"mask-image-y-from-color":[{"mask-y-from":b()}],"mask-image-y-to-color":[{"mask-y-to":b()}],"mask-image-radial":[{"mask-radial":[u,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":S()}],"mask-image-radial-to-pos":[{"mask-radial-to":S()}],"mask-image-radial-from-color":[{"mask-radial-from":b()}],"mask-image-radial-to-color":[{"mask-radial-to":b()}],"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":I()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":S()}],"mask-image-conic-to-pos":[{"mask-conic-to":S()}],"mask-image-conic-from-color":[{"mask-conic-from":b()}],"mask-image-conic-to-color":[{"mask-conic-to":b()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Fe()}],"mask-repeat":[{mask:Ge()}],"mask-size":[{mask:Ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,d]}],filter:[{filter:["","none",u,d]}],blur:[{blur:He()}],brightness:[{brightness:[y,u,d]}],contrast:[{contrast:[y,u,d]}],"drop-shadow":[{"drop-shadow":["","none",C,le,ie]}],"drop-shadow-color":[{"drop-shadow":b()}],grayscale:[{grayscale:["",y,u,d]}],"hue-rotate":[{"hue-rotate":[y,u,d]}],invert:[{invert:["",y,u,d]}],saturate:[{saturate:[y,u,d]}],sepia:[{sepia:["",y,u,d]}],"backdrop-filter":[{"backdrop-filter":["","none",u,d]}],"backdrop-blur":[{"backdrop-blur":He()}],"backdrop-brightness":[{"backdrop-brightness":[y,u,d]}],"backdrop-contrast":[{"backdrop-contrast":[y,u,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,u,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,u,d]}],"backdrop-invert":[{"backdrop-invert":["",y,u,d]}],"backdrop-opacity":[{"backdrop-opacity":[y,u,d]}],"backdrop-saturate":[{"backdrop-saturate":[y,u,d]}],"backdrop-sepia":[{"backdrop-sepia":["",y,u,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",u,d]}],ease:[{ease:["linear","initial",P,u,d]}],delay:[{delay:[y,u,d]}],animate:[{animate:["none",k,u,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,u,d]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[u,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:b()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:b()}],"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",u,d]}],"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":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"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",u,d]}],fill:[{fill:["none",...b()]}],"stroke-w":[{stroke:[y,X,G,ye]}],stroke:[{stroke:["none",...b()]}],"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"]}},Oo=vo(Lo);function g(...e){return Oo(oo(e))}function _t({children:e,className:t,...r}){const{colorScheme:o}=pe(),{value:n}=ge();return s.jsx(Qr,{className:g("focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",{light:"ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",dark:"ring-offset-[var(--acordion-dark-offset,hsl(var(--foreground)))]"}[o],t),"data-slot":"accordion-item",value:n,...r,children:e})}function It({className:e,...t}){return s.jsx(Yr,{className:g(e),...t,"data-slot":"accordion-root"})}function St({className:e,...t}){const{colorScheme:r}=pe(),{content:o}=ge(),[n,a]=h.useState(!1);return h.useEffect(()=>{a(!0)},[]),s.jsx(ro,{className:g("overflow-hidden",n&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),...t,children:s.jsx("div",{className:g("py-3 text-base font-light leading-normal [font-family:var(--accordion-content-font-family,var(--font-family-body))]",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[r],e),"data-slot":"accordion-content",children:o})})}const Mt=h.createContext(void 0);function Et({children:e,colorScheme:t="light",items:r}){const o=h.useMemo(()=>({colorScheme:t,items:r}),[t,r]);return s.jsx(Mt.Provider,{value:o,children:e})}function pe(){const e=h.use(Mt);if(e===void 0)throw new Error("useAccordion must be used within an AccordionProvider");return e}const Tt=h.createContext(void 0);function zt({children:e,title:t,content:r,value:o}){const n=h.useMemo(()=>({title:t,content:r,value:o}),[t,r,o]);return s.jsx(Tt.Provider,{value:n,children:e})}function ge(){const e=h.use(Tt);if(e===void 0)throw new Error("useAccordionItem must be used within an AccordionItemProvider");return e}function Bt({className:e,...t}){const{colorScheme:r}=pe(),{title:o}=ge();return s.jsx(eo,{children:s.jsxs(to,{className:g("group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",e),"data-slot":"accordion-trigger",...t,children:[s.jsx("div",{className:g("flex-1 select-none text-sm font-normal uppercase transition-colors duration-300 ease-out [font-family:var(--accordion-title-font-family,var(--font-family-mono))]",{light:"text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"}[r]),children:o}),s.jsxs("svg",{className:g("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",{light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[r]),"data-slot":"accordion-chevron",viewBox:"0 0 10 10",width:16,children:[s.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),s.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})]})})}function Do({className:e,variant:t,message:r,description:o,action:n,dismiss:a}){return s.jsx($o,{action:n,description:o,dismiss:a,message:r,variant:t,children:s.jsxs(Lt,{className:e,children:[s.jsxs(Dt,{children:[s.jsx($t,{}),s.jsx(Vt,{})]}),s.jsxs(Ft,{children:[s.jsx(Ut,{}),s.jsx(Wt,{})]})]})})}function Lt({className:e,children:t,...r}){const{variant:o}=ee();return s.jsx("div",{className:g("flex max-w-[356px] items-center justify-between gap-2 rounded-xl border border-[var(--alert-border,color-mix(in_oklab,hsl(var(--foreground))_10%,transparent))] py-3 pe-3 ps-4 shadow",{success:"bg-[var(--alert-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",warning:"bg-[var(--alert-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--alert-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",info:"bg-[var(--alert-info-background,hsl(var(--background)))]"}[o],e),"data-slot":"alert-root",role:"alert",...r,children:t})}const Ot=h.createContext(void 0);function $o({children:e,message:t,description:r,action:o,dismiss:n,variant:a}){const i=h.useMemo(()=>({message:t,description:r,action:o,dismiss:n,variant:a}),[t,r,o,n,a]);return s.jsx(Ot.Provider,{value:i,children:e})}function ee(){const e=h.use(Ot);if(e===void 0)throw new Error("useAlert must be used within a AlertProvider");return e}function Dt({children:e,className:t,...r}){return s.jsx("div",{className:g("[font-family:var(--alert-font-family,var(--font-family-body))]",t),"data-slot":"alert-header",...r,children:e})}function $t({children:e,className:t,...r}){const{message:o}=ee();return s.jsx("h5",{className:g("text-sm font-normal text-[var(--alert-message-text,hsl(var(--foreground)))]",t),"data-slot":"alert-title",...r,children:o})}function Vt({className:e,...t}){const{description:r}=ee();return s.jsx("p",{className:g("text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",e),"data-slot":"alert-description",...t,children:r})}function Ft({children:e,className:t,...r}){return s.jsx("div",{className:g("flex items-center gap-1",t),"data-slot":"alert-actions",...r,children:e})}/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),p=require("react");require("react-dom");function Ir(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const g=Ir(p);function Mr({className:e,colorScheme:t="light",items:r,...o}){return s.jsx(zt,{colorScheme:t,items:r,children:s.jsx(Mt,{className:e,...o,children:r.map(n=>s.jsx(Bt,{content:n.content,title:n.title,value:n.value,children:s.jsxs(It,{children:[s.jsx(Et,{}),s.jsx(Lt,{})]})},n.value))})})}function Ne(e,t=[]){let r=[];function o(a,i){const l=g.createContext(i),c=r.length;r=[...r,i];const d=h=>{const{scope:R,children:j,...w}=h,k=R?.[e]?.[c]||l,A=g.useMemo(()=>w,Object.values(w));return s.jsx(k.Provider,{value:A,children:j})};d.displayName=a+"Provider";function m(h,R){const j=R?.[e]?.[c]||l,w=g.useContext(j);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[d,m]}const n=()=>{const a=r.map(i=>g.createContext(i));return function(l){const c=l?.[e]||a;return g.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return n.scopeName=e,[o,Lr(n,...t)]}function Lr(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const i=o.reduce((l,{useScope:c,scopeName:d})=>{const h=c(a)[`__scope${d}`];return{...l,...h}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ke(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tt(...e){return t=>{let r=!1;const o=e.map(n=>{const a=Ke(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<o.length;n++){const a=o[n];typeof a=="function"?a():Ke(e[n],null)}}}}function Y(...e){return g.useCallback(tt(...e),e)}function we(e){const t=Er(e),r=g.forwardRef((o,n)=>{const{children:a,...i}=o,l=g.Children.toArray(a),c=l.find(zr);if(c){const d=c.props.children,m=l.map(h=>h===c?g.Children.count(d)>1?g.Children.only(null):g.isValidElement(d)?d.props.children:null:h);return s.jsx(t,{...i,ref:n,children:g.isValidElement(d)?g.cloneElement(d,void 0,m):null})}return s.jsx(t,{...i,ref:n,children:a})});return r.displayName=`${e}.Slot`,r}function Er(e){const t=g.forwardRef((r,o)=>{const{children:n,...a}=r;if(g.isValidElement(n)){const i=Br(n),l=Or(a,n.props);return n.type!==g.Fragment&&(l.ref=o?tt(o,i):i),g.cloneElement(n,l)}return g.Children.count(n)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tr=Symbol("radix.slottable");function zr(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tr}function Or(e,t){const r={...t};for(const o in t){const n=e[o],a=t[o];/^on[A-Z]/.test(o)?n&&a?r[o]=(...l)=>{const c=a(...l);return n(...l),c}:n&&(r[o]=n):o==="style"?r[o]={...n,...a}:o==="className"&&(r[o]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}function Br(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Dr(e){const t=e+"CollectionProvider",[r,o]=Ne(t),[n,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=k=>{const{scope:A,children:N}=k,C=p.useRef(null),P=p.useRef(new Map).current;return s.jsx(n,{scope:A,itemMap:P,collectionRef:C,children:N})};i.displayName=t;const l=e+"CollectionSlot",c=we(l),d=p.forwardRef((k,A)=>{const{scope:N,children:C}=k,P=a(l,N),_=Y(A,P.collectionRef);return s.jsx(c,{ref:_,children:C})});d.displayName=l;const m=e+"CollectionItemSlot",h="data-radix-collection-item",R=we(m),j=p.forwardRef((k,A)=>{const{scope:N,children:C,...P}=k,_=p.useRef(null),E=Y(A,_),M=a(m,N);return p.useEffect(()=>(M.itemMap.set(_,{ref:_,...P}),()=>void M.itemMap.delete(_))),s.jsx(R,{[h]:"",ref:E,children:C})});j.displayName=m;function w(k){const A=a(e+"CollectionConsumer",k);return p.useCallback(()=>{const C=A.collectionRef.current;if(!C)return[];const P=Array.from(C.querySelectorAll(`[${h}]`));return Array.from(A.itemMap.values()).sort((M,O)=>P.indexOf(M.ref.current)-P.indexOf(O.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:i,Slot:d,ItemSlot:j},w,o]}function Pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var Q=globalThis?.document?g.useLayoutEffect:()=>{},Vr=g[" useInsertionEffect ".trim().toString()]||Q;function de({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[n,a,i]=$r({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:n;{const m=g.useRef(e!==void 0);g.useEffect(()=>{const h=m.current;h!==l&&console.warn(`${o} is changing from ${h?"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.`),m.current=l},[l,o])}const d=g.useCallback(m=>{if(l){const h=Fr(m)?m(e):m;h!==e&&i.current?.(h)}else a(m)},[l,e,a,i]);return[c,d]}function $r({defaultProp:e,onChange:t}){const[r,o]=g.useState(e),n=g.useRef(r),a=g.useRef(t);return Vr(()=>{a.current=t},[t]),g.useEffect(()=>{n.current!==r&&(a.current?.(r),n.current=r)},[r,n]),[r,o,a]}function Fr(e){return typeof e=="function"}var Gr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=Gr.reduce((e,t)=>{const r=we(`Primitive.${t}`),o=g.forwardRef((n,a)=>{const{asChild:i,...l}=n,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Wr(e,t){return g.useReducer((r,o)=>t[r][o]??r,e)}var rt=e=>{const{present:t,children:r}=e,o=Ur(t),n=typeof r=="function"?r({present:o.isPresent}):g.Children.only(r),a=Y(o.ref,Hr(n));return typeof r=="function"||o.isPresent?g.cloneElement(n,{ref:a}):null};rt.displayName="Presence";function Ur(e){const[t,r]=g.useState(),o=g.useRef(null),n=g.useRef(e),a=g.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Wr(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const d=ae(o.current);a.current=l==="mounted"?d:"none"},[l]),Q(()=>{const d=o.current,m=n.current;if(m!==e){const R=a.current,j=ae(d);e?c("MOUNT"):j==="none"||d?.display==="none"?c("UNMOUNT"):c(m&&R!==j?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,c]),Q(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,h=j=>{const k=ae(o.current).includes(CSS.escape(j.animationName));if(j.target===t&&k&&(c("ANIMATION_END"),!n.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},R=j=>{j.target===t&&(a.current=ae(o.current))};return t.addEventListener("animationstart",R),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",R),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(d=>{o.current=d?getComputedStyle(d):null,r(d)},[])}}function ae(e){return e?.animationName||"none"}function Hr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qr=g[" useId ".trim().toString()]||(()=>{}),Zr=0;function ot(e){const[t,r]=g.useState(qr());return Q(()=>{r(o=>o??String(Zr++))},[e]),t?`radix-${t}`:""}var ue="Collapsible",[Kr,nt]=Ne(ue),[Xr,Se]=Kr(ue),st=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:n,disabled:a,onOpenChange:i,...l}=e,[c,d]=de({prop:o,defaultProp:n??!1,onChange:i,caller:ue});return s.jsx(Xr,{scope:r,disabled:a,contentId:ot(),open:c,onOpenToggle:g.useCallback(()=>d(m=>!m),[d]),children:s.jsx(q.div,{"data-state":Ie(c),"data-disabled":a?"":void 0,...l,ref:t})})});st.displayName=ue;var at="CollapsibleTrigger",it=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,n=Se(at,r);return s.jsx(q.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":Ie(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:t,onClick:Pe(e.onClick,n.onOpenToggle)})});it.displayName=at;var _e="CollapsibleContent",lt=g.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Se(_e,e.__scopeCollapsible);return s.jsx(rt,{present:r||n.open,children:({present:a})=>s.jsx(Jr,{...o,ref:t,present:a})})});lt.displayName=_e;var Jr=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:n,...a}=e,i=Se(_e,r),[l,c]=g.useState(o),d=g.useRef(null),m=Y(t,d),h=g.useRef(0),R=h.current,j=g.useRef(0),w=j.current,k=i.open||l,A=g.useRef(k),N=g.useRef(void 0);return g.useEffect(()=>{const C=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(C)},[]),Q(()=>{const C=d.current;if(C){N.current=N.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const P=C.getBoundingClientRect();h.current=P.height,j.current=P.width,A.current||(C.style.transitionDuration=N.current.transitionDuration,C.style.animationName=N.current.animationName),c(o)}},[i.open,o]),s.jsx(q.div,{"data-state":Ie(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!k,...a,ref:m,style:{"--radix-collapsible-content-height":R?`${R}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:k&&n})});function Ie(e){return e?"open":"closed"}var Yr=st,Qr=it,eo=lt,to=g.createContext(void 0);function ro(e){const t=g.useContext(to);return e||t||"ltr"}var z="Accordion",oo=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Me,no,so]=Dr(z),[fe]=Ne(z,[so,nt]),Le=nt(),ct=p.forwardRef((e,t)=>{const{type:r,...o}=e,n=o,a=o;return s.jsx(Me.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?s.jsx(co,{...a,ref:t}):s.jsx(lo,{...n,ref:t})})});ct.displayName=z;var[dt,ao]=fe(z),[ut,io]=fe(z,{collapsible:!1}),lo=p.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},collapsible:a=!1,...i}=e,[l,c]=de({prop:r,defaultProp:o??"",onChange:n,caller:z});return s.jsx(dt,{scope:e.__scopeAccordion,value:p.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:p.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(ut,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(ft,{...i,ref:t})})})}),co=p.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:n=()=>{},...a}=e,[i,l]=de({prop:r,defaultProp:o??[],onChange:n,caller:z}),c=p.useCallback(m=>l((h=[])=>[...h,m]),[l]),d=p.useCallback(m=>l((h=[])=>h.filter(R=>R!==m)),[l]);return s.jsx(dt,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d,children:s.jsx(ut,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(ft,{...a,ref:t})})})}),[uo,me]=fe(z),ft=p.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:o,dir:n,orientation:a="vertical",...i}=e,l=p.useRef(null),c=Y(l,t),d=no(r),h=ro(n)==="ltr",R=Pe(e.onKeyDown,j=>{if(!oo.includes(j.key))return;const w=j.target,k=d().filter(v=>!v.ref.current?.disabled),A=k.findIndex(v=>v.ref.current===w),N=k.length;if(A===-1)return;j.preventDefault();let C=A;const P=0,_=N-1,E=()=>{C=A+1,C>_&&(C=P)},M=()=>{C=A-1,C<P&&(C=_)};switch(j.key){case"Home":C=P;break;case"End":C=_;break;case"ArrowRight":a==="horizontal"&&(h?E():M());break;case"ArrowDown":a==="vertical"&&E();break;case"ArrowLeft":a==="horizontal"&&(h?M():E());break;case"ArrowUp":a==="vertical"&&M();break}const O=C%N;k[O].ref.current?.focus()});return s.jsx(uo,{scope:r,disabled:o,direction:n,orientation:a,children:s.jsx(Me.Slot,{scope:r,children:s.jsx(q.div,{...i,"data-orientation":a,ref:c,onKeyDown:o?void 0:R})})})}),ce="AccordionItem",[fo,Ee]=fe(ce),mt=p.forwardRef((e,t)=>{const{__scopeAccordion:r,value:o,...n}=e,a=me(ce,r),i=ao(ce,r),l=Le(r),c=ot(),d=o&&i.value.includes(o)||!1,m=a.disabled||e.disabled;return s.jsx(fo,{scope:r,open:d,disabled:m,triggerId:c,children:s.jsx(Yr,{"data-orientation":a.orientation,"data-state":vt(d),...l,...n,ref:t,disabled:m,open:d,onOpenChange:h=>{h?i.onItemOpen(o):i.onItemClose(o)}})})});mt.displayName=ce;var pt="AccordionHeader",gt=p.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(z,r),a=Ee(pt,r);return s.jsx(q.h3,{"data-orientation":n.orientation,"data-state":vt(a.open),"data-disabled":a.disabled?"":void 0,...o,ref:t})});gt.displayName=pt;var Ce="AccordionTrigger",bt=p.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(z,r),a=Ee(Ce,r),i=io(Ce,r),l=Le(r);return s.jsx(Me.ItemSlot,{scope:r,children:s.jsx(Qr,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:a.triggerId,...l,...o,ref:t})})});bt.displayName=Ce;var ht="AccordionContent",xt=p.forwardRef((e,t)=>{const{__scopeAccordion:r,...o}=e,n=me(z,r),a=Ee(ht,r),i=Le(r);return s.jsx(eo,{role:"region","aria-labelledby":a.triggerId,"data-orientation":n.orientation,...i,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});xt.displayName=ht;function vt(e){return e?"open":"closed"}var mo=ct,po=mt,go=gt,bo=bt,ho=xt;function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=yt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function xo(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=yt(e))&&(o&&(o+=" "),o+=t);return o}const Te="-",vo=e=>{const t=ko(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const l=i.split(Te);return l[0]===""&&l.length!==1&&l.shift(),kt(l,t)||yo(i)},getConflictingClassGroupIds:(i,l)=>{const c=r[i]||[];return l&&o[i]?[...c,...o[i]]:c}}},kt=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?kt(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(Te);return t.validators.find(({validator:i})=>i(a))?.classGroupId},Xe=/^\[(.+)\]$/,yo=e=>{if(Xe.test(e)){const t=Xe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ko=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const n in r)je(r[n],o,n,t);return o},je=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Je(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(wo(n)){je(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{je(i,Je(t,a),r,o)})})},Je=(e,t)=>{let r=e;return t.split(Te).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},wo=e=>e.isThemeGetter,Co=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},Ae="!",Re=":",jo=Re.length,Ao=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const a=[];let i=0,l=0,c=0,d;for(let w=0;w<n.length;w++){let k=n[w];if(i===0&&l===0){if(k===Re){a.push(n.slice(c,w)),c=w+jo;continue}if(k==="/"){d=w;continue}}k==="["?i++:k==="]"?i--:k==="("?l++:k===")"&&l--}const m=a.length===0?n:n.substring(c),h=Ro(m),R=h!==m,j=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:R,baseClassName:h,maybePostfixModifierPosition:j}};if(t){const n=t+Re,a=o;o=i=>i.startsWith(n)?a(i.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const n=o;o=a=>r({className:a,parseClassName:n})}return o},Ro=e=>e.endsWith(Ae)?e.substring(0,e.length-1):e.startsWith(Ae)?e.substring(1):e,No=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const n=[];let a=[];return o.forEach(i=>{i[0]==="["||t[i]?(n.push(...a.sort(),i),a=[]):a.push(i)}),n.push(...a.sort()),n}},Po=e=>({cache:Co(e.cacheSize),parseClassName:Ao(e),sortModifiers:No(e),...vo(e)}),So=/\s+/,_o=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,i=[],l=e.trim().split(So);let c="";for(let d=l.length-1;d>=0;d-=1){const m=l[d],{isExternal:h,modifiers:R,hasImportantModifier:j,baseClassName:w,maybePostfixModifierPosition:k}=r(m);if(h){c=m+(c.length>0?" "+c:c);continue}let A=!!k,N=o(A?w.substring(0,k):w);if(!N){if(!A){c=m+(c.length>0?" "+c:c);continue}if(N=o(w),!N){c=m+(c.length>0?" "+c:c);continue}A=!1}const C=a(R).join(":"),P=j?C+Ae:C,_=P+N;if(i.includes(_))continue;i.push(_);const E=n(N,A);for(let M=0;M<E.length;++M){const O=E[M];i.push(P+O)}c=m+(c.length>0?" "+c:c)}return c};function Io(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=wt(t))&&(o&&(o+=" "),o+=r);return o}const wt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=wt(e[o]))&&(r&&(r+=" "),r+=t);return r};function Mo(e,...t){let r,o,n,a=i;function i(c){const d=t.reduce((m,h)=>h(m),e());return r=Po(d),o=r.cache.get,n=r.cache.set,a=l,l(c)}function l(c){const d=o(c);if(d)return d;const m=_o(c,r);return n(c,m),m}return function(){return a(Io.apply(null,arguments))}}const S=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ct=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lo=/^\d+\/\d+$/,Eo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,To=/\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$/,zo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Oo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>Lo.test(e),y=e=>!!e&&!Number.isNaN(Number(e)),$=e=>!!e&&Number.isInteger(Number(e)),ye=e=>e.endsWith("%")&&y(e.slice(0,-1)),V=e=>Eo.test(e),Do=()=>!0,Vo=e=>To.test(e)&&!zo.test(e),At=()=>!1,$o=e=>Oo.test(e),Fo=e=>Bo.test(e),Go=e=>!u(e)&&!f(e),Wo=e=>Z(e,Pt,At),u=e=>Ct.test(e),G=e=>Z(e,St,Vo),ke=e=>Z(e,Ko,y),Ye=e=>Z(e,Rt,At),Uo=e=>Z(e,Nt,Fo),ie=e=>Z(e,_t,$o),f=e=>jt.test(e),X=e=>K(e,St),Ho=e=>K(e,Xo),Qe=e=>K(e,Rt),qo=e=>K(e,Pt),Zo=e=>K(e,Nt),le=e=>K(e,_t,!0),Z=(e,t,r)=>{const o=Ct.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},K=(e,t,r=!1)=>{const o=jt.exec(e);return o?o[1]?t(o[1]):r:!1},Rt=e=>e==="position"||e==="percentage",Nt=e=>e==="image"||e==="url",Pt=e=>e==="length"||e==="size"||e==="bg-size",St=e=>e==="length",Ko=e=>e==="number",Xo=e=>e==="family-name",_t=e=>e==="shadow",Jo=()=>{const e=S("color"),t=S("font"),r=S("text"),o=S("font-weight"),n=S("tracking"),a=S("leading"),i=S("breakpoint"),l=S("container"),c=S("spacing"),d=S("radius"),m=S("shadow"),h=S("inset-shadow"),R=S("text-shadow"),j=S("drop-shadow"),w=S("blur"),k=S("perspective"),A=S("aspect"),N=S("ease"),C=S("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[..._(),f,u],M=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],v=()=>[f,u,c],B=()=>[H,"full","auto",...v()],$e=()=>[$,"none","subgrid",f,u],Fe=()=>["auto",{span:["full",$,f,u]},$,f,u],te=()=>[$,"auto",f,u],Ge=()=>["auto","min","max","fr",f,u],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...v()],F=()=>[H,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],x=()=>[e,f,u],We=()=>[..._(),Qe,Ye,{position:[f,u]}],Ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],He=()=>["auto","cover","contain",qo,Wo,{size:[f,u]}],xe=()=>[ye,X,G],L=()=>["","none","full",d,f,u],T=()=>["",y,X,G],re=()=>["solid","dashed","dotted","double"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[y,ye,Qe,Ye],Ze=()=>["","none",w,f,u],oe=()=>["none",y,f,u],ne=()=>["none",y,f,u],ve=()=>[y,f,u],se=()=>[H,"full",...v()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[V],breakpoint:[V],color:[Do],container:[V],"drop-shadow":[V],ease:["in","out","in-out"],font:[Go],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[V],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[V],shadow:[V],spacing:["px",y],text:[V],"text-shadow":[V],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",H,u,f,A]}],container:["container"],columns:[{columns:[y,u,f,l]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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:E()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[$,"auto",f,u]}],basis:[{basis:[H,"full","auto",l,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,H,"auto","initial","none",u]}],grow:[{grow:["",y,f,u]}],shrink:[{shrink:["",y,f,u]}],order:[{order:[$,"first","last","none",f,u]}],"grid-cols":[{"grid-cols":$e()}],"col-start-end":[{col:Fe()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":$e()}],"row-start-end":[{row:Fe()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ge()}],"auto-rows":[{"auto-rows":Ge()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[l,"screen",...F()]}],"min-w":[{"min-w":[l,"screen","none",...F()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,X,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,f,ke]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ye,u]}],"font-family":[{font:[Ho,u,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:[n,f,u]}],"line-clamp":[{"line-clamp":[y,"none",f,ke]}],leading:[{leading:[a,...v()]}],"list-image":[{"list-image":["none",f,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",f,G]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[y,"auto",f,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f,u]}],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",f,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:We()}],"bg-repeat":[{bg:Ue()}],"bg-size":[{bg:He()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$,f,u],radial:["",f,u],conic:[$,f,u]},Zo,Uo]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":T()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,f,u]}],"outline-w":[{outline:["",y,X,G]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",m,le,ie]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",h,le,ie]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[y,G]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",R,le,ie]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[y,f,u]}],"mix-blend":[{"mix-blend":[...qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qe()}],"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":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[f,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:We()}],"mask-repeat":[{mask:Ue()}],"mask-size":[{mask:He()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f,u]}],filter:[{filter:["","none",f,u]}],blur:[{blur:Ze()}],brightness:[{brightness:[y,f,u]}],contrast:[{contrast:[y,f,u]}],"drop-shadow":[{"drop-shadow":["","none",j,le,ie]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",y,f,u]}],"hue-rotate":[{"hue-rotate":[y,f,u]}],invert:[{invert:["",y,f,u]}],saturate:[{saturate:[y,f,u]}],sepia:[{sepia:["",y,f,u]}],"backdrop-filter":[{"backdrop-filter":["","none",f,u]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[y,f,u]}],"backdrop-contrast":[{"backdrop-contrast":[y,f,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,f,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,f,u]}],"backdrop-invert":[{"backdrop-invert":["",y,f,u]}],"backdrop-opacity":[{"backdrop-opacity":[y,f,u]}],"backdrop-saturate":[{"backdrop-saturate":[y,f,u]}],"backdrop-sepia":[{"backdrop-sepia":["",y,f,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",f,u]}],ease:[{ease:["linear","initial",N,f,u]}],delay:[{delay:[y,f,u]}],animate:[{animate:["none",C,f,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,f,u]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[f,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"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",f,u]}],"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":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"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",f,u]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[y,X,G,ke]}],stroke:[{stroke:["none",...x()]}],"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"]}},Yo=Mo(Jo);function b(...e){return Yo(xo(e))}function It({children:e,className:t,...r}){const{colorScheme:o}=pe(),{value:n}=ge();return s.jsx(po,{className:b("focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",{light:"ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",dark:"ring-offset-[var(--acordion-dark-offset,hsl(var(--foreground)))]"}[o],t),"data-slot":"accordion-item",value:n,...r,children:e})}function Mt({className:e,...t}){return s.jsx(mo,{className:b(e),...t,"data-slot":"accordion-root"})}function Lt({className:e,...t}){const{colorScheme:r}=pe(),{content:o}=ge(),[n,a]=p.useState(!1);return p.useEffect(()=>{a(!0)},[]),s.jsx(ho,{className:b("overflow-hidden",n&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),...t,children:s.jsx("div",{className:b("py-3 text-base font-light leading-normal [font-family:var(--accordion-content-font-family,var(--font-family-body))]",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[r],e),"data-slot":"accordion-content",children:o})})}function Et({className:e,...t}){const{colorScheme:r}=pe(),{title:o}=ge();return s.jsx(go,{children:s.jsxs(bo,{className:b("group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",e),"data-slot":"accordion-trigger",...t,children:[s.jsx("div",{className:b("flex-1 select-none text-sm font-normal uppercase transition-colors duration-300 ease-out [font-family:var(--accordion-title-font-family,var(--font-family-mono))]",{light:"text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"}[r]),children:o}),s.jsxs("svg",{className:b("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",{light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[r]),"data-slot":"accordion-chevron",viewBox:"0 0 10 10",width:16,children:[s.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),s.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})]})})}const Tt=p.createContext(void 0);function zt({children:e,colorScheme:t="light",items:r}){const o=p.useMemo(()=>({colorScheme:t,items:r}),[t,r]);return s.jsx(Tt.Provider,{value:o,children:e})}function pe(){const e=p.use(Tt);if(e===void 0)throw new Error("useAccordion must be used within an AccordionProvider");return e}const Ot=p.createContext(void 0);function Bt({children:e,title:t,content:r,value:o}){const n=p.useMemo(()=>({title:t,content:r,value:o}),[t,r,o]);return s.jsx(Ot.Provider,{value:n,children:e})}function ge(){const e=p.use(Ot);if(e===void 0)throw new Error("useAccordionItem must be used within an AccordionItemProvider");return e}function Qo({className:e,variant:t,message:r,description:o,action:n,dismiss:a}){return s.jsx(en,{action:n,description:o,dismiss:a,message:r,variant:t,children:s.jsxs(Dt,{className:e,children:[s.jsxs($t,{children:[s.jsx(Ft,{}),s.jsx(Gt,{})]}),s.jsxs(Wt,{children:[s.jsx(Ht,{}),s.jsx(qt,{})]})]})})}function Dt({className:e,children:t,...r}){const{variant:o}=ee();return s.jsx("div",{className:b("flex max-w-[356px] items-center justify-between gap-2 rounded-xl border border-[var(--alert-border,color-mix(in_oklab,hsl(var(--foreground))_10%,transparent))] py-3 pe-3 ps-4 shadow",{success:"bg-[var(--alert-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",warning:"bg-[var(--alert-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--alert-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",info:"bg-[var(--alert-info-background,hsl(var(--background)))]"}[o],e),"data-slot":"alert-root",role:"alert",...r,children:t})}const Vt=p.createContext(void 0);function en({children:e,message:t,description:r,action:o,dismiss:n,variant:a}){const i=p.useMemo(()=>({message:t,description:r,action:o,dismiss:n,variant:a}),[t,r,o,n,a]);return s.jsx(Vt.Provider,{value:i,children:e})}function ee(){const e=p.use(Vt);if(e===void 0)throw new Error("useAlert must be used within a AlertProvider");return e}function $t({children:e,className:t,...r}){return s.jsx("div",{className:b("[font-family:var(--alert-font-family,var(--font-family-body))]",t),"data-slot":"alert-header",...r,children:e})}function Ft({children:e,className:t,...r}){const{message:o}=ee();return s.jsx("h5",{className:b("text-sm font-normal text-[var(--alert-message-text,hsl(var(--foreground)))]",t),"data-slot":"alert-title",...r,children:o})}function Gt({className:e,...t}){const{description:r}=ee();return s.jsx("p",{className:b("text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",e),"data-slot":"alert-description",...t,children:r})}function Wt({children:e,className:t,...r}){return s.jsx("div",{className:b("flex items-center gap-1",t),"data-slot":"alert-actions",...r,children:e})}/**
2
2
  * @license lucide-react v0.545.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const Vo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase()),Ye=e=>{const t=Fo(e);return t.charAt(0).toUpperCase()+t.slice(1)},Gt=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim(),Go=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
6
+ */const tn=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rn=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase()),et=e=>{const t=rn(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ut=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim(),on=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
7
7
  * @license lucide-react v0.545.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */var Uo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
11
+ */var nn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
12
  * @license lucide-react v0.545.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const Wo=h.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:n="",children:a,iconNode:i,...l},c)=>h.createElement("svg",{ref:c,...Uo,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:Gt("lucide",n),...!a&&!Go(l)&&{"aria-hidden":"true"},...l},[...i.map(([f,p])=>h.createElement(f,p)),...Array.isArray(a)?a:[a]]));/**
16
+ */const sn=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:n="",children:a,iconNode:i,...l},c)=>p.createElement("svg",{ref:c,...nn,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:Ut("lucide",n),...!a&&!on(l)&&{"aria-hidden":"true"},...l},[...i.map(([d,m])=>p.createElement(d,m)),...Array.isArray(a)?a:[a]]));/**
17
17
  * @license lucide-react v0.545.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const ze=(e,t)=>{const r=h.forwardRef(({className:o,...n},a)=>h.createElement(Wo,{ref:a,iconNode:t,className:Gt(`lucide-${Vo(Ye(e))}`,`lucide-${e}`,o),...n}));return r.displayName=Ye(e),r};/**
21
+ */const ze=(e,t)=>{const r=p.forwardRef(({className:o,...n},a)=>p.createElement(sn,{ref:a,iconNode:t,className:Ut(`lucide-${tn(et(e))}`,`lucide-${e}`,o),...n}));return r.displayName=et(e),r};/**
22
22
  * @license lucide-react v0.545.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const Ho=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],qo=ze("circle-alert",Ho);/**
26
+ */const an=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ln=ze("circle-alert",an);/**
27
27
  * @license lucide-react v0.545.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const Ko=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Zo=ze("loader-circle",Ko);/**
31
+ */const cn=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],dn=ze("loader-circle",cn);/**
32
32
  * @license lucide-react v0.545.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const Xo=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Be=ze("x",Xo);function Le({variant:e="primary",size:t="large",shape:r="pill",loading:o=!1,type:n="button",disabled:a=!1,className:i,children:l,...c}){return s.jsxs("button",{"aria-busy":o,className:g("after:ease-[cubic-bezier(0,0.25,0,1)] relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition-[opacity,transform] after:duration-300 focus-visible:outline-2 focus-visible:outline-[var(--button-focus,hsl(var(--primary)))] disabled:pointer-events-none disabled:opacity-30",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))] focus-visible:outline-offset-2",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))] focus-visible:outline-offset-2",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))] focus-visible:outline-offset-2",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))] focus-visible:outline-offset-0",danger:"border-[var(--button-danger-border,color-mix(in_oklab,hsl(var(--error)),white_30%))] bg-[var(--button-danger-background,color-mix(in_oklab,hsl(var(--error)),white_30%))] text-[var(--button-danger-text,hsl(var(--foreground)))] after:bg-[var(--button-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] focus-visible:outline-offset-2"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],!o&&!a&&"hover:after:translate-x-0",o&&"pointer-events-none",i),"data-slot":"button",disabled:a,type:n,...c,children:[s.jsx("span",{className:g("inline-flex items-center justify-center transition-all duration-300 ease-in-out",o?"-translate-y-10 opacity-0":"translate-y-0 opacity-100",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:l}),s.jsx("span",{className:g("absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",o?"translate-y-0 opacity-100":"translate-y-10 opacity-0"),children:s.jsx(Zo,{className:g("animate-spin",e==="tertiary"&&"text-[var(--button-loader-icon,hsl(var(--foreground)))]")})})]})}function Ut({children:e,...t}){const{action:r}=ee();if(!r)return null;const{label:o,onClick:n}=r;return s.jsx(Le,{"data-slot":"alert-button",onClick:n,size:"x-small",variant:"ghost",...t,children:o})}function Wt({...e}){const{dismiss:t}=ee(),{label:r,onClick:o}=t;return s.jsx(Le,{"aria-label":r,"data-slot":"alert-close-button",onClick:o,shape:"circle",size:"x-small",variant:"ghost",...e,children:s.jsx(Be,{size:20,strokeWidth:1})})}function Jo({className:e,children:t,...r}){return s.jsx("span",{className:g("origin-left font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] [font-family:var(--animated-underline-font-family,var(--font-family-body))] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",e),...r,children:t})}function Yo({children:e,shape:t="rounded",className:r,variant:o="primary",...n}){return s.jsx("span",{className:g("px-2 py-0.5 text-xs uppercase tracking-tighter text-[var(--badge-text,hsl(var(--foreground)))] [font-family:var(--badge-font-family,var(--font-family-mono))]",{pill:"rounded-full",rounded:"rounded"}[t],{primary:"bg-[var(--badge-primary-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",warning:"bg-[var(--badge-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--badge-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",success:"bg-[var(--badge-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",info:"bg-[var(--badge-info-background,color-mix(in_oklab,hsl(var(--info)),white_75%))]"}[o],r),...n,children:e})}const Qo=({id:e,children:t,hideDismiss:r=!1,className:o,onDismiss:n})=>s.jsx(qt,{hideDismiss:r,id:e,onDismiss:n,children:s.jsx(Kt,{className:o,children:s.jsxs(Zt,{children:[s.jsx(Xt,{children:t}),s.jsx(Jt,{})]})})}),Ht=h.createContext(void 0);function qt({id:e,hideDismiss:t,onDismiss:r,children:o}){const[n,a]=h.useState(!1),[i,l]=h.useState(!1);h.useEffect(()=>{const p=localStorage.getItem(`${e}-hidden-banner`)==="true";a(p),l(!0)},[e]);const c=h.useCallback(()=>{a(!0),localStorage.setItem(`${e}-hidden-banner`,"true"),r?.()},[e,r]),f=h.useMemo(()=>({id:e,isInitialized:i,isDismissed:n,hideDismiss:t,handleDismiss:c}),[e,i,n,t,c]);return s.jsx(Ht.Provider,{value:f,children:i?o:null})}function Oe(){const e=h.use(Ht);if(e===void 0)throw new Error("useBanner must be used within a BannerProvider");return e}function Kt({children:e,className:t,...r}){const{id:o,isDismissed:n}=Oe();return s.jsx("div",{className:g("overflow-hidden bg-[var(--banner-background,hsl(var(--primary)))] transition-all duration-300 ease-in @container",n?"pointer-events-none max-h-0":"max-h-32",t),"data-slot":"banner-root",id:o,...r,children:e})}function Zt({className:e,children:t}){return s.jsx("div",{className:g("flex items-center justify-between gap-4 px-8 py-3",e),"data-slot":"banner-content",children:t})}function Xt({children:e,className:t,...r}){return s.jsx("div",{className:g("flex-1 text-sm text-[var(--banner-text,hsl(var(--foreground)))] [font-family:var(--banner-font-family,var(--font-family-body))] @xl:text-center @xl:text-base",t),"data-slot":"banner-text",...r,children:e})}function Jt({className:e,...t}){const{hideDismiss:r,handleDismiss:o}=Oe();return r?null:s.jsx("button",{"aria-label":"Dismiss banner",className:g("flex h-8 w-8 items-center justify-center rounded-full bg-[var(--banner-close-background,transparent)] text-[var(--banner-close-icon,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] transition-colors duration-300 hover:bg-[var(--banner-close-background-hover,color-mix(in_oklab,hsl(var(--background))_40%,transparent))] hover:text-[var(--banner-close-icon-hover,hsl(var(--foreground)))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--banner-focus,hsl(var(--foreground)))]",e),"data-slot":"banner-dismiss",onClick:n=>{n.preventDefault(),o()},...t,children:s.jsx(Be,{absoluteStrokeWidth:!0,size:20,strokeWidth:1.5})})}function en({author:e,content:t,date:r,link:o,image:n,title:a,className:i}){return s.jsx(Qt,{author:e,content:t,date:r,image:n,link:o,title:a,children:s.jsxs(er,{className:i,children:[s.jsx(tr,{}),s.jsx(or,{}),s.jsx(nr,{}),s.jsxs(ar,{children:[s.jsx(sr,{}),s.jsx(ir,{})]}),s.jsx(rr,{})]})})}const Yt=h.createContext(void 0);function Qt({children:e,title:t,author:r,content:o,date:n,image:a,link:i}){const l=h.useMemo(()=>({title:t,author:r,content:o,date:n,image:a,link:i}),[t,r,o,n,a,i]);return s.jsx(Yt.Provider,{value:l,children:e})}function U(){const e=h.use(Yt);if(e===void 0)throw new Error("useBlogPostCard must be used within a BlogPostCardProvider");return e}function er({as:e,className:t,children:r,...o}){const n=e??"article";return s.jsx(n,{className:g("group relative w-full max-w-md @container [font-family:var(--blog-post-card-font-family,var(--font-family-body))]",t),"data-slot":"blog-post-card-root",...o,children:r})}function tn({children:e,className:t,...r}){return s.jsx("div",{className:g("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",t),...r,children:e})}function tr({className:e,...t}){const{image:r,title:o}=U(),n="h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110",a=()=>{if(!r)return s.jsx("div",{className:g("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",e),...t,children:o});const{src:i,alt:l,render:c}=r;return c?c({src:i,alt:l,className:n}):s.jsx("img",{alt:l,className:n,src:i})};return s.jsx("div",{className:g("relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-[var(--blog-post-card-image-background,hsl(var(--contrast-100)))]",e),...t,children:a()})}function rr({className:e,...t}){const{link:{href:r,ariaLabel:o,render:n}}=U(),a=g("absolute inset-0 rounded-b-lg rounded-t-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--blog-post-card-focus,hsl(var(--primary)))] focus-visible:ring-offset-4",e);return n?n({href:r,ariaLabel:o,className:a,...t}):s.jsx("a",{className:a,href:r,...t,children:s.jsx("span",{className:"sr-only",children:o})})}function or({className:e,...t}){const{title:r}=U();return s.jsx("h5",{className:g("mt-4 text-lg font-medium leading-snug text-[var(--blog-post-card-title-text,hsl(var(--foreground)))]",e),"data-slot":"blog-post-card-title",...t,children:r})}function nr({className:e,...t}){const{content:r}=U();return s.jsx("p",{className:g("mt-1.5 line-clamp-3 text-sm font-normal text-[var(--blog-post-card-content-text,hsl(var(--contrast-400)))]",e),"data-slot":"blog-post-card-content",...t,children:r})}function ar({children:e,className:t,...r}){return s.jsx("div",{className:g("mt-3 text-sm text-[var(--blog-post-card-author-date-text,hsl(var(--foreground)))]",t),"data-slot":"blog-post-card-details",...r,children:e})}function sr({className:e,...t}){const{date:r}=U();return s.jsx("time",{dateTime:r,...t,"data-slot":"blog-post-card-date",children:new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})}function ir({className:e,...t}){const{author:r}=U();if(r!=null)return s.jsxs(s.Fragment,{children:[s.jsx("span",{className:g("after:mx-2 after:content-['•']",e),"data-slot":"blog-post-card-author",...t}),s.jsx("span",{children:r})]})}function lr({className:e,...t}){return s.jsx("div",{className:g("bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]",e),"data-slot":"skeleton-box",...t})}function J({characterCount:e=10,className:t,...r}){return s.jsx("div",{className:g("flex h-[1lh] items-center",t),"data-slot":"skeleton-text",...r,children:s.jsx("div",{className:g("h-[1ex] max-w-full rounded-[inherit] bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]"),style:{width:e==="full"?"100%":`${e}ch`}})})}function rn({className:e,aspectRatio:t="4:3",...r}){return s.jsxs("div",{className:g("w-full max-w-md @container",e),...r,children:[s.jsx(lr,{className:g("mb-4 w-full rounded-2xl",{"5:6":"aspect-[5/6]","3:4":"aspect-[3/4]","4:3":"aspect-[4/3]","1:1":"aspect-square"}[t])}),s.jsx(J,{characterCount:25,className:"mt-4 rounded text-lg"}),s.jsxs("div",{className:"mt-1.5",children:[s.jsx(J,{characterCount:"full",className:"rounded text-sm"}),s.jsx(J,{characterCount:"full",className:"rounded text-sm"}),s.jsx(J,{characterCount:15,className:"rounded text-sm"})]}),s.jsx(J,{characterCount:10,className:"mt-3 rounded text-sm"})]})}function on({variant:e="primary",size:t="large",shape:r="pill",className:o,children:n,render:a,...i}){const l=g("relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition after:duration-300 after:[animation-timing-function:cubic-bezier(0,0.25,0,1)] hover:after:translate-x-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--button-focus,hsl(var(--primary)))] focus-visible:ring-offset-2",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))]",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))]",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))]"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],o),c=s.jsx("span",{className:g("inline-flex items-center justify-center",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:n});function f(){return a?a({...i,className:l,children:c}):s.jsx("a",{...i,className:l,children:c})}return s.jsx(s.Fragment,{children:f()})}function nn({as:e,className:t,children:r,link:o,...n}){return s.jsxs(dr,{as:e,className:t,...n,children:[r,s.jsx(cr,{link:o})]})}function cr({link:e}){if(!e)return null;const{href:t,ariaLabel:r,render:o}=e,n=g("absolute inset-0 rounded-2xl","focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--card-focus,hsl(var(--primary)))]");return o?o({href:t,ariaLabel:r,className:n}):s.jsx("a",{className:n,"data-slot":"card-link",href:t,children:s.jsx("span",{className:"sr-only",children:r})})}function dr({as:e,className:t,children:r}){const o=e??"div";return s.jsx(o,{className:g("group/card relative w-full rounded-2xl border p-6 @container","border-[var(--card-border-color,hsl(var(--contrast-200)))] bg-[var(--card-background,hsl(var(--background)))] has-[a]:hover:bg-[var(--card-hover-background,color-mix(in_oklab,hsl(var(--contrast-100))_50%,transparent))]","transition-colors duration-300 ease-linear",t),"data-slot":"card-root",children:r})}function an({className:e,...t}){return s.jsx("div",{className:g("@container",e),...t,children:s.jsx(lr,{})})}function sn({className:e,children:t,removeLabel:r="Remove",...o}){return s.jsxs(ur,{className:e,children:[t,s.jsx(fr,{title:r,...o})]})}function ur({children:e,className:t,...r}){return s.jsx("span",{className:g("flex h-9 items-center gap-1.5 rounded-lg bg-[var(--chip-background,hsl(var(--contrast-100)))] py-2 pe-2 ps-3 text-sm font-semibold leading-5 text-[var(--chip-text,hsl(var(--foreground)))] [font-family:var(--chip-font-family,var(--font-family-body))]",t),...r,children:e})}function fr({className:e,...t}){return s.jsx("button",{className:g("flex h-5 w-5 items-center justify-center rounded-full hover:bg-[var(--chip-background-hover,hsl(var(--contrast-200)))] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--button-focus,hsl(var(--foreground)))]",e),...t,children:s.jsx(Be,{size:12})})}function ln({checked:e=!1,setChecked:t}){return s.jsx(gr,{onPressedChange:t,pressed:e,children:s.jsx(br,{filled:e})})}var mr="Toggle",pr=m.forwardRef((e,t)=>{const{pressed:r,defaultPressed:o,onPressedChange:n,...a}=e,[i,l]=de({prop:r,onChange:n,defaultProp:o??!1,caller:mr});return s.jsx(q.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:Pe(e.onClick,()=>{e.disabled||l(!i)})})});pr.displayName=mr;var cn=pr;function gr({children:e,className:t,...r}){return s.jsx(cn,{className:g("group relative flex h-[50px] w-[50px] shrink-0 cursor-pointer items-center justify-center rounded-full border border-[var(--favorite-border,hsl(var(--contrast-100)))] text-[var(--favorite-icon,hsl(var(--foreground)))] ring-[var(--favorite-focus,hsl(var(--primary)))] transition duration-300 focus-within:outline-none focus-within:ring-2 data-[state=on]:bg-[var(--favorite-on-background,hsl(var(--contrast-100)))] data-[state=off]:hover:border-[var(--favorite-off-border,hsl(var(--contrast-200)))]",t),...r,children:e})}function br({filled:e=!1,className:t,...r}){return s.jsxs("svg",{className:g("transform-gpu transition-transform duration-300 ease-out group-active:scale-75 group-active:animate-heart-pulse sm:group-hover:scale-110",t),fill:"none",height:"21",viewBox:"0 0 20 21",width:"20",xmlns:"http://www.w3.org/2000/svg",...r,children:[s.jsx("path",{className:g({"-translate-x-px -translate-y-px scale-110 opacity-0 transition delay-100":e}),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{className:g("origin-center transition-transform duration-300 ease-out",e?"scale-100 fill-current":"scale-0"),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z"})]})}function dn({className:e,children:t,...r}){return s.jsxs("div",{className:g("flex items-center gap-1 text-xs text-[var(--field-error,hsl(var(--error)))]",e),...r,children:[s.jsx(qo,{size:20,strokeWidth:1.5}),t]})}exports.Accordion=vr;exports.AccordionContent=St;exports.AccordionItem=_t;exports.AccordionItemProvider=zt;exports.AccordionProvider=Et;exports.AccordionRoot=It;exports.AccordionTrigger=Bt;exports.Alert=Do;exports.AlertActions=Ft;exports.AlertButton=Ut;exports.AlertCloseButton=Wt;exports.AlertDescription=Vt;exports.AlertHeader=Dt;exports.AlertRoot=Lt;exports.AlertTitle=$t;exports.AnimatedUnderline=Jo;exports.Badge=Yo;exports.Banner=Qo;exports.BannerContent=Zt;exports.BannerDismiss=Jt;exports.BannerProvider=qt;exports.BannerRoot=Kt;exports.BannerText=Xt;exports.BlogPostCard=en;exports.BlogPostCardAuthor=ir;exports.BlogPostCardContent=nr;exports.BlogPostCardDate=sr;exports.BlogPostCardDetails=ar;exports.BlogPostCardFallback=tn;exports.BlogPostCardImage=tr;exports.BlogPostCardLink=rr;exports.BlogPostCardProvider=Qt;exports.BlogPostCardRoot=er;exports.BlogPostCardSkeleton=rn;exports.BlogPostCardTitle=or;exports.Button=Le;exports.ButtonLink=on;exports.Card=nn;exports.CardLink=cr;exports.CardRoot=dr;exports.CardSkeleton=an;exports.Chip=sn;exports.ChipButton=fr;exports.ChipRoot=ur;exports.Favorite=ln;exports.FavoriteHeart=br;exports.FavoriteRoot=gr;exports.FieldError=dn;exports.useAccordion=pe;exports.useAccordionItem=ge;exports.useBanner=Oe;exports.useBlogPostCard=U;
36
+ */const un=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Oe=ze("x",un);function be({variant:e="primary",size:t="large",shape:r="pill",loading:o=!1,type:n="button",disabled:a=!1,className:i,children:l,...c}){return s.jsxs("button",{"aria-busy":o,className:b("after:ease-[cubic-bezier(0,0.25,0,1)] relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition-[opacity,transform] after:duration-300 focus-visible:outline-2 focus-visible:outline-[var(--button-focus,hsl(var(--primary)))] disabled:pointer-events-none disabled:opacity-30",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))] focus-visible:outline-offset-2",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))] focus-visible:outline-offset-2",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))] focus-visible:outline-offset-2",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))] focus-visible:outline-offset-0",danger:"border-[var(--button-danger-border,color-mix(in_oklab,hsl(var(--error)),white_30%))] bg-[var(--button-danger-background,color-mix(in_oklab,hsl(var(--error)),white_30%))] text-[var(--button-danger-text,hsl(var(--foreground)))] after:bg-[var(--button-danger-background-hover,color-mix(in_oklab,hsl(var(--error)),white_75%))] focus-visible:outline-offset-2"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],!o&&!a&&"hover:after:translate-x-0",o&&"pointer-events-none",i),"data-slot":"button",disabled:a,type:n,...c,children:[s.jsx("span",{className:b("inline-flex items-center justify-center transition-all duration-300 ease-in-out",o?"-translate-y-10 opacity-0":"translate-y-0 opacity-100",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:l}),s.jsx("span",{className:b("absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",o?"translate-y-0 opacity-100":"translate-y-10 opacity-0"),children:s.jsx(dn,{className:b("animate-spin",e==="tertiary"&&"text-[var(--button-loader-icon,hsl(var(--foreground)))]")})})]})}function Ht({children:e,...t}){const{action:r}=ee();if(!r)return null;const{label:o,onClick:n}=r;return s.jsx(be,{"data-slot":"alert-button",onClick:n,size:"x-small",variant:"ghost",...t,children:o})}function qt({...e}){const{dismiss:t}=ee(),{label:r,onClick:o}=t;return s.jsx(be,{"aria-label":r,"data-slot":"alert-close-button",onClick:o,shape:"circle",size:"x-small",variant:"ghost",...e,children:s.jsx(Oe,{size:20,strokeWidth:1})})}function Zt({className:e,children:t,...r}){return s.jsx("span",{className:b("origin-left font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] [font-family:var(--animated-underline-font-family,var(--font-family-body))] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",e),...r,children:t})}function fn({children:e,shape:t="rounded",className:r,variant:o="primary",...n}){return s.jsx("span",{className:b("px-2 py-0.5 text-xs uppercase tracking-tighter text-[var(--badge-text,hsl(var(--foreground)))] [font-family:var(--badge-font-family,var(--font-family-mono))]",{pill:"rounded-full",rounded:"rounded"}[t],{primary:"bg-[var(--badge-primary-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",warning:"bg-[var(--badge-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",error:"bg-[var(--badge-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",success:"bg-[var(--badge-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",info:"bg-[var(--badge-info-background,color-mix(in_oklab,hsl(var(--info)),white_75%))]"}[o],r),...n,children:e})}const mn=({id:e,children:t,hideDismiss:r=!1,className:o,onDismiss:n})=>s.jsx(Xt,{hideDismiss:r,id:e,onDismiss:n,children:s.jsx(Jt,{className:o,children:s.jsxs(Yt,{children:[s.jsx(Qt,{children:t}),s.jsx(er,{})]})})}),Kt=p.createContext(void 0);function Xt({id:e,hideDismiss:t,onDismiss:r,children:o}){const[n,a]=p.useState(!1),[i,l]=p.useState(!1);p.useEffect(()=>{const m=localStorage.getItem(`${e}-hidden-banner`)==="true";a(m),l(!0)},[e]);const c=p.useCallback(()=>{a(!0),localStorage.setItem(`${e}-hidden-banner`,"true"),r?.()},[e,r]),d=p.useMemo(()=>({id:e,isInitialized:i,isDismissed:n,hideDismiss:t,handleDismiss:c}),[e,i,n,t,c]);return s.jsx(Kt.Provider,{value:d,children:i?o:null})}function Be(){const e=p.use(Kt);if(e===void 0)throw new Error("useBanner must be used within a BannerProvider");return e}function Jt({children:e,className:t,...r}){const{id:o,isDismissed:n}=Be();return s.jsx("div",{className:b("overflow-hidden bg-[var(--banner-background,hsl(var(--primary)))] transition-all duration-300 ease-in @container",n?"pointer-events-none max-h-0":"max-h-32",t),"data-slot":"banner-root",id:o,...r,children:e})}function Yt({className:e,children:t}){return s.jsx("div",{className:b("flex items-center justify-between gap-4 px-8 py-3",e),"data-slot":"banner-content",children:t})}function Qt({children:e,className:t,...r}){return s.jsx("div",{className:b("flex-1 text-sm text-[var(--banner-text,hsl(var(--foreground)))] [font-family:var(--banner-font-family,var(--font-family-body))] @xl:text-center @xl:text-base",t),"data-slot":"banner-text",...r,children:e})}function er({className:e,...t}){const{hideDismiss:r,handleDismiss:o}=Be();return r?null:s.jsx("button",{"aria-label":"Dismiss banner",className:b("flex h-8 w-8 items-center justify-center rounded-full bg-[var(--banner-close-background,transparent)] text-[var(--banner-close-icon,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] transition-colors duration-300 hover:bg-[var(--banner-close-background-hover,color-mix(in_oklab,hsl(var(--background))_40%,transparent))] hover:text-[var(--banner-close-icon-hover,hsl(var(--foreground)))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--banner-focus,hsl(var(--foreground)))]",e),"data-slot":"banner-dismiss",onClick:n=>{n.preventDefault(),o()},...t,children:s.jsx(Oe,{absoluteStrokeWidth:!0,size:20,strokeWidth:1.5})})}function pn({author:e,content:t,date:r,link:o,image:n,title:a,className:i}){return s.jsx(rr,{author:e,content:t,date:r,image:n,link:o,title:a,children:s.jsxs(or,{className:i,children:[s.jsx(nr,{}),s.jsx(ar,{}),s.jsx(ir,{}),s.jsxs(lr,{children:[s.jsx(cr,{}),s.jsx(dr,{})]}),s.jsx(sr,{})]})})}const tr=p.createContext(void 0);function rr({children:e,title:t,author:r,content:o,date:n,image:a,link:i}){const l=p.useMemo(()=>({title:t,author:r,content:o,date:n,image:a,link:i}),[t,r,o,n,a,i]);return s.jsx(tr.Provider,{value:l,children:e})}function W(){const e=p.use(tr);if(e===void 0)throw new Error("useBlogPostCard must be used within a BlogPostCardProvider");return e}function or({as:e,className:t,children:r,...o}){const n=e??"article";return s.jsx(n,{className:b("group relative w-full max-w-md @container [font-family:var(--blog-post-card-font-family,var(--font-family-body))]",t),"data-slot":"blog-post-card-root",...o,children:r})}function gn({children:e,className:t,...r}){return s.jsx("div",{className:b("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",t),...r,children:e})}function nr({className:e,...t}){const{image:r,title:o}=W(),n="h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110",a=()=>{if(!r)return s.jsx("div",{className:b("p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",e),...t,children:o});const{src:i,alt:l,render:c}=r;return c?c({src:i,alt:l,className:n}):s.jsx("img",{alt:l,className:n,src:i})};return s.jsx("div",{className:b("relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-[var(--blog-post-card-image-background,hsl(var(--contrast-100)))]",e),...t,children:a()})}function sr({className:e,...t}){const{link:{href:r,ariaLabel:o,render:n}}=W(),a=b("absolute inset-0 rounded-b-lg rounded-t-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--blog-post-card-focus,hsl(var(--primary)))] focus-visible:ring-offset-4",e);return n?n({href:r,ariaLabel:o,className:a,...t}):s.jsx("a",{className:a,href:r,...t,children:s.jsx("span",{className:"sr-only",children:o})})}function ar({className:e,...t}){const{title:r}=W();return s.jsx("h5",{className:b("mt-4 text-lg font-medium leading-snug text-[var(--blog-post-card-title-text,hsl(var(--foreground)))]",e),"data-slot":"blog-post-card-title",...t,children:r})}function ir({className:e,...t}){const{content:r}=W();return s.jsx("p",{className:b("mt-1.5 line-clamp-3 text-sm font-normal text-[var(--blog-post-card-content-text,hsl(var(--contrast-400)))]",e),"data-slot":"blog-post-card-content",...t,children:r})}function lr({children:e,className:t,...r}){return s.jsx("div",{className:b("mt-3 text-sm text-[var(--blog-post-card-author-date-text,hsl(var(--foreground)))]",t),"data-slot":"blog-post-card-details",...r,children:e})}function cr({className:e,...t}){const{date:r}=W();return s.jsx("time",{dateTime:r,...t,"data-slot":"blog-post-card-date",children:new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})}function dr({className:e,...t}){const{author:r}=W();if(r!=null)return s.jsxs(s.Fragment,{children:[s.jsx("span",{className:b("after:mx-2 after:content-['•']",e),"data-slot":"blog-post-card-author",...t}),s.jsx("span",{children:r})]})}function ur({className:e,...t}){return s.jsx("div",{className:b("bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]",e),"data-slot":"skeleton-box",...t})}function J({characterCount:e=10,className:t,...r}){return s.jsx("div",{className:b("flex h-[1lh] items-center",t),"data-slot":"skeleton-text",...r,children:s.jsx("div",{className:b("h-[1ex] max-w-full rounded-[inherit] bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]"),style:{width:e==="full"?"100%":`${e}ch`}})})}function bn({className:e,aspectRatio:t="4:3",...r}){return s.jsxs("div",{className:b("w-full max-w-md @container",e),...r,children:[s.jsx(ur,{className:b("mb-4 w-full rounded-2xl",{"5:6":"aspect-[5/6]","3:4":"aspect-[3/4]","4:3":"aspect-[4/3]","1:1":"aspect-square"}[t])}),s.jsx(J,{characterCount:25,className:"mt-4 rounded text-lg"}),s.jsxs("div",{className:"mt-1.5",children:[s.jsx(J,{characterCount:"full",className:"rounded text-sm"}),s.jsx(J,{characterCount:"full",className:"rounded text-sm"}),s.jsx(J,{characterCount:15,className:"rounded text-sm"})]}),s.jsx(J,{characterCount:10,className:"mt-3 rounded text-sm"})]})}function hn({variant:e="primary",size:t="large",shape:r="pill",className:o,children:n,render:a,...i}){const l=b("relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition after:duration-300 after:[animation-timing-function:cubic-bezier(0,0.25,0,1)] hover:after:translate-x-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--button-focus,hsl(var(--primary)))] focus-visible:ring-offset-2",{primary:"border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",secondary:"border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))]",tertiary:"border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))]",ghost:"border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))]"}[e],{pill:"rounded-full after:rounded-full",rounded:"rounded-lg after:rounded-lg",square:"rounded-none after:rounded-none",circle:"rounded-full after:rounded-full"}[r],o),c=s.jsx("span",{className:b("inline-flex items-center justify-center",r==="circle"&&"aspect-square",{"x-small":"min-h-8 text-xs",small:"min-h-10 text-sm",medium:"min-h-12 text-base",large:"min-h-14 text-base"}[t],r!=="circle"&&{"x-small":"gap-x-2 px-3 py-1.5",small:"gap-x-2 px-4 py-2.5",medium:"gap-x-2.5 px-5 py-3",large:"gap-x-3 px-6 py-4"}[t],e==="secondary"&&"mix-blend-difference"),children:n});function d(){return a?a({...i,className:l,children:c}):s.jsx("a",{...i,className:l,children:c})}return s.jsx(s.Fragment,{children:d()})}function xn({as:e,className:t,children:r,link:o,...n}){return s.jsxs(mr,{as:e,className:t,...n,children:[r,s.jsx(fr,{link:o})]})}function fr({link:e}){if(!e)return null;const{href:t,ariaLabel:r,render:o}=e,n=b("absolute inset-0 rounded-2xl","focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--card-focus,hsl(var(--primary)))]");return o?o({href:t,ariaLabel:r,className:n}):s.jsx("a",{className:n,"data-slot":"card-link",href:t,children:s.jsx("span",{className:"sr-only",children:r})})}function mr({as:e,className:t,children:r}){const o=e??"div";return s.jsx(o,{className:b("group/card relative w-full rounded-2xl border p-6 @container","border-[var(--card-border-color,hsl(var(--contrast-200)))] bg-[var(--card-background,hsl(var(--background)))] has-[a]:hover:bg-[var(--card-hover-background,color-mix(in_oklab,hsl(var(--contrast-100))_50%,transparent))]","transition-colors duration-300 ease-linear",t),"data-slot":"card-root",children:r})}function vn({className:e,...t}){return s.jsx("div",{className:b("@container",e),...t,children:s.jsx(ur,{})})}function yn({className:e,children:t,removeLabel:r="Remove",...o}){return s.jsxs(pr,{className:e,children:[t,s.jsx(gr,{title:r,...o})]})}function pr({children:e,className:t,...r}){return s.jsx("span",{className:b("flex h-9 items-center gap-1.5 rounded-lg bg-[var(--chip-background,hsl(var(--contrast-100)))] py-2 pe-2 ps-3 text-sm font-semibold leading-5 text-[var(--chip-text,hsl(var(--foreground)))] [font-family:var(--chip-font-family,var(--font-family-body))]",t),...r,children:e})}function gr({className:e,...t}){return s.jsx("button",{className:b("flex h-5 w-5 items-center justify-center rounded-full hover:bg-[var(--chip-background-hover,hsl(var(--contrast-200)))] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--button-focus,hsl(var(--foreground)))]",e),...t,children:s.jsx(Oe,{size:12})})}function kn({checked:e=!1,setChecked:t}){return s.jsx(xr,{onPressedChange:t,pressed:e,children:s.jsx(vr,{filled:e})})}var br="Toggle",hr=g.forwardRef((e,t)=>{const{pressed:r,defaultPressed:o,onPressedChange:n,...a}=e,[i,l]=de({prop:r,onChange:n,defaultProp:o??!1,caller:br});return s.jsx(q.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:Pe(e.onClick,()=>{e.disabled||l(!i)})})});hr.displayName=br;var wn=hr;function xr({children:e,className:t,...r}){return s.jsx(wn,{className:b("group relative flex h-[50px] w-[50px] shrink-0 cursor-pointer items-center justify-center rounded-full border border-[var(--favorite-border,hsl(var(--contrast-100)))] text-[var(--favorite-icon,hsl(var(--foreground)))] ring-[var(--favorite-focus,hsl(var(--primary)))] transition duration-300 focus-within:outline-none focus-within:ring-2 data-[state=on]:bg-[var(--favorite-on-background,hsl(var(--contrast-100)))] data-[state=off]:hover:border-[var(--favorite-off-border,hsl(var(--contrast-200)))]",t),...r,children:e})}function vr({filled:e=!1,className:t,...r}){return s.jsxs("svg",{className:b("transform-gpu transition-transform duration-300 ease-out group-active:scale-75 group-active:animate-heart-pulse sm:group-hover:scale-110",t),fill:"none",height:"21",viewBox:"0 0 20 21",width:"20",xmlns:"http://www.w3.org/2000/svg",...r,children:[s.jsx("path",{className:b({"-translate-x-px -translate-y-px scale-110 opacity-0 transition delay-100":e}),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{className:b("origin-center transition-transform duration-300 ease-out",e?"scale-100 fill-current":"scale-0"),d:"M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z"})]})}function Cn({className:e,children:t,...r}){return s.jsxs("div",{className:b("flex items-center gap-1 text-xs text-[var(--field-error,hsl(var(--error)))]",e),...r,children:[s.jsx(ln,{size:20,strokeWidth:1.5}),t]})}function jn({showRating:e=!0,rating:t,className:r}){return s.jsx(kr,{rating:t,showRating:e,children:s.jsxs(wr,{className:r,children:[s.jsx(Cr,{}),s.jsx(jr,{})]})})}const yr=p.createContext(void 0);function kr({children:e,rating:t,showRating:r=!0}){const o=p.useRef(0),n=p.useCallback(()=>{const l=o.current;return o.current+=1,l},[]),a=p.useCallback(()=>{o.current=0},[]),i=p.useMemo(()=>{const l=Math.min(t,5),c=Array.from({length:5},(d,m)=>m<Math.floor(l)?"full":m<Math.ceil(l)?"half":"empty");return{rating:t,adjustedRating:l,stars:c,showRating:r,getNextStarIndex:n,resetStarIndex:a}},[t,r]);return s.jsx(yr.Provider,{value:i,children:e})}function De(){const e=p.use(yr);if(e===void 0)throw new Error("useRating must be used within a RatingProvider");return e}function wr({children:e,className:t,...r}){return s.jsx("div",{className:b("flex items-center",t),...r,children:e})}function An({className:e,...t}){const{stars:r,getNextStarIndex:o}=De(),n=o(),a=r[n]??"empty",i={empty:s.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"0.4"}),half:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M10.0003 1.6665V14.8082L4.85033 17.5165L5.83366 11.7832L1.66699 7.72484L7.42533 6.88317L10.0003 1.6665Z",fill:"currentColor"})]}),full:s.jsx("path",{d:"M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})};return s.jsx("svg",{className:b("inline-block text-[var(--rating-icon,hsl(var(--foreground)))]",e),fill:"none",height:20,viewBox:"0 0 20 20",width:20,...t,children:i[a]})}function Cr(){const{resetStarIndex:e}=De();return e(),s.jsx(s.Fragment,{children:[0,1,2,3,4].map(t=>s.jsx(An,{},t))})}function jr({className:e,...t}){const{adjustedRating:r,showRating:o}=De();return o?s.jsx("span",{className:b("ml-1.5 flex h-6 min-w-6 shrink-0 items-center justify-center rounded-full border border-[var(--rating-border,hsl(var(--contrast-100)))] px-1 text-xs font-medium text-[var(--rating-text,hsl(var(--contrast-400)))]",e),...t,children:r%1!==0?r.toFixed(1):r}):null}function Rn({className:e,variant:t="underline",showLabel:r="Show more",hideLabel:o="Show less",defaultOpen:n=!1,maxHeight:a="10rem",children:i}){return s.jsx(Nr,{variant:t,showLabel:r,hideLabel:o,defaultOpen:n,maxHeight:a,children:s.jsxs(Ar,{className:e,children:[s.jsx(Pr,{children:i}),s.jsx(Sr,{children:s.jsx(_r,{})})]})})}function Ar({children:e,className:t,...r}){return s.jsx("div",{className:b("relative",t),...r,children:e})}const Rr=p.createContext(void 0);function Nr({children:e,variant:t="underline",showLabel:r="Show more",hideLabel:o="Show less",defaultOpen:n=!1,maxHeight:a="10rem"}){const[i,l]=p.useState(n),[c,d]=p.useState(!0),m=p.useRef(null),h=p.useCallback(w=>{const k=parseFloat(w);return w.endsWith("rem")?k*16:(w.endsWith("px"),k)},[]);p.useEffect(()=>{function w(){if(m.current){const A=m.current.scrollHeight,N=h(a);d(A>N)}}w();const k=new ResizeObserver(w);return m.current&&k.observe(m.current),()=>{k.disconnect()}},[a,h]);const R=p.useCallback(()=>{l(w=>!w)},[]),j=p.useMemo(()=>({isOpen:i,hasOverflow:c,variant:t,showLabel:r,hideLabel:o,maxHeight:a,contentRef:m,toggleOpen:R}),[i,c,t,r,o,a,R]);return s.jsx(Rr.Provider,{value:j,children:e})}function Ve(){const e=p.use(Rr);if(e===void 0)throw new Error("useReveal must be used within a RevealProvider");return e}function Pr({children:e,className:t,...r}){const{hasOverflow:o,isOpen:n,maxHeight:a,contentRef:i}=Ve();return s.jsx("div",{className:b(o&&!n&&"[mask-image:linear-gradient(to_top,transparent,black_50px,black_calc(100%-50px))]","overflow-hidden",t),ref:i,style:{maxHeight:n?"none":a},...r,children:e})}function Sr({children:e,className:t,...r}){const{hasOverflow:o}=Ve();return o?s.jsx("div",{className:b("flex w-full items-end pt-4",t),...r,children:e}):null}function _r({children:e,className:t,...r}){const{variant:o,showLabel:n,hideLabel:a,isOpen:i,toggleOpen:l}=Ve();return s.jsxs(s.Fragment,{children:[o==="underline"&&s.jsx("button",{className:b("group/underline text-sm focus:outline-none",t),onClick:()=>l(),type:"button",...r,children:s.jsx(Zt,{children:i?a:n})}),o==="button"&&s.jsx(be,{className:t,onClick:()=>l(),size:"x-small",type:"button",variant:"tertiary",...r,children:i?a:n})]})}exports.Accordion=Mr;exports.AccordionContent=Lt;exports.AccordionItem=It;exports.AccordionItemProvider=Bt;exports.AccordionProvider=zt;exports.AccordionRoot=Mt;exports.AccordionTrigger=Et;exports.Alert=Qo;exports.AlertActions=Wt;exports.AlertButton=Ht;exports.AlertCloseButton=qt;exports.AlertDescription=Gt;exports.AlertHeader=$t;exports.AlertRoot=Dt;exports.AlertTitle=Ft;exports.AnimatedUnderline=Zt;exports.Badge=fn;exports.Banner=mn;exports.BannerContent=Yt;exports.BannerDismiss=er;exports.BannerProvider=Xt;exports.BannerRoot=Jt;exports.BannerText=Qt;exports.BlogPostCard=pn;exports.BlogPostCardAuthor=dr;exports.BlogPostCardContent=ir;exports.BlogPostCardDate=cr;exports.BlogPostCardDetails=lr;exports.BlogPostCardFallback=gn;exports.BlogPostCardImage=nr;exports.BlogPostCardLink=sr;exports.BlogPostCardProvider=rr;exports.BlogPostCardRoot=or;exports.BlogPostCardSkeleton=bn;exports.BlogPostCardTitle=ar;exports.Button=be;exports.ButtonLink=hn;exports.Card=xn;exports.CardLink=fr;exports.CardRoot=mr;exports.CardSkeleton=vn;exports.Chip=yn;exports.ChipButton=gr;exports.ChipRoot=pr;exports.Favorite=kn;exports.FavoriteHeart=vr;exports.FavoriteRoot=xr;exports.FieldError=Cn;exports.Rating=jn;exports.RatingProvider=kr;exports.RatingRoot=wr;exports.RatingStars=Cr;exports.RatingValue=jr;exports.Reveal=Rn;exports.RevealControls=Sr;exports.RevealProvider=Nr;exports.RevealRoot=Ar;exports.RevealTrigger=_r;exports.RevealViewport=Pr;exports.useAccordion=pe;exports.useAccordionItem=ge;exports.useBanner=Be;exports.useBlogPostCard=W;
37
37
  //# sourceMappingURL=index.cjs.map