@domphy/ui 0.21.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var jr=Object.defineProperty,Wr=Object.defineProperties;var Kr=Object.getOwnPropertyDescriptors;var rn=Object.getOwnPropertySymbols;var Yr=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable;var an=(a,o,n)=>o in a?jr(a,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[o]=n,L=(a,o)=>{for(var n in o||(o={}))Yr.call(o,n)&&an(a,n,o[n]);if(rn)for(var n of rn(o))qr.call(o,n)&&an(a,n,o[n]);return a},Y=(a,o)=>Wr(a,Kr(o));import{toState as ln}from"@domphy/core";import{themeColor as et,themeSize as Gr,themeSpacing as Ur}from"@domphy/theme";function hs(a={}){var e,l;let o=ln((e=a.color)!=null?e:"neutral","color"),n=ln((l=a.accentColor)!=null?l:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="abbr"&&console.warn('"abbreviation" primitive patch must use abbr tag')},style:{fontSize:t=>Gr(t),backgroundColor:t=>et(t),color:t=>et(t,"shift-10",o.get(t)),textDecorationLine:"underline",textDecorationStyle:"dotted",textDecorationColor:t=>et(t,"shift-7",o.get(t)),textUnderlineOffset:Ur(.72),cursor:"help","&:hover":{color:t=>et(t,"shift-11",n.get(t)),textDecorationColor:t=>et(t,"shift-9",n.get(t))}}}}import{toState as cn}from"@domphy/core";import{themeColor as oo,themeDensity as Xr,themeSpacing as Zr}from"@domphy/theme";import{themeColor as sn}from"@domphy/theme";function b(a,o="primary"){let n=sn(a,"surface"),e=sn(a,"shift-9",o);return`0 0 0 2px ${n}, 0 0 0 4px ${e}`}function vs(a={}){var l,t;let{type:o="single"}=a,n=cn((l=a.color)!=null?l:"neutral","color"),e=cn((t=a.accentColor)!=null?t:"primary","accentColor");return{_onMount:r=>{if(o!=="single")return;let s=r.domElement;if(!s)return;let m=h=>{let i=h.target.closest("summary");if(!i)return;let c=i.closest("details");!c||c.parentElement!==s||c.open||Array.from(s.querySelectorAll(":scope > details")).forEach(d=>{d!==c&&(d.open=!1)})};s.addEventListener("click",m),r.addHook("Remove",()=>s.removeEventListener("click",m))},style:{display:"flex",flexDirection:"column",borderRadius:r=>Zr(Xr(r)*1.5),outline:r=>`1px solid ${oo(r,"border-strong",n.get(r))}`,outlineOffset:"-1px",color:r=>oo(r,"text",n.get(r)),overflow:"hidden","& > details":{borderBottom:r=>`1px solid ${oo(r,"border-strong",n.get(r))}`},"& > details:last-child":{borderBottom:"none"},"& > details > summary:focus-visible":{boxShadow:r=>b(r,e.get(r))}}}}import{toState as Jr}from"@domphy/core";import{themeColor as no,themeDensity as ro,themeSize as Qr,themeSpacing as tt}from"@domphy/theme";function ws(a={}){var n;let o=Jr((n=a.color)!=null?n:"primary","color");return{role:"alert",dataTone:"shift-2",style:{display:"flex",alignItems:"flex-start",gap:tt(3),paddingBlock:e=>tt(ro(e)*2),paddingInline:e=>tt(ro(e)*4),borderRadius:e=>tt(ro(e)*1.5),boxShadow:e=>`inset ${tt(1)} 0 0 0 ${no(e,"shift-8",o.get(e))}`,backgroundColor:e=>no(e,"inherit",o.get(e)),color:e=>no(e,"shift-10",o.get(e)),fontSize:e=>Qr(e,"inherit")}}}import{toState as ea}from"@domphy/core";import{themeColor as ao,themeSize as ta,themeSpacing as mn}from"@domphy/theme";function Os(a={}){var n;let o=ea((n=a.color)!=null?n:"primary","color");return{dataTone:"shift-2",_doctorDisable:"inline-typography",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"50%",flexShrink:0,width:mn(9),height:mn(9),fontSize:e=>ta(e,"inherit"),fontWeight:"600",userSelect:"none",backgroundColor:e=>ao(e,"inherit",o.get(e)),color:e=>ao(e,"shift-11",o.get(e)),boxShadow:e=>`0 0 0 1px ${ao(e,"border",o.get(e))}`,"& img":{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}}}import{toState as un}from"@domphy/core";import{themeColor as io,themeSize as oa,themeSpacing as xt}from"@domphy/theme";function Vs(a={}){var l;let{label:o=999}=a,n=un(o),e=un((l=a.color)!=null?l:"danger","color");return{_doctorDisable:"inline-typography",style:{position:"relative","&::after":{content:t=>`"${n.get(t)}"`,position:"absolute",top:0,right:0,transform:"translate(50%,-50%)",paddingInline:xt(1.5),minWidth:xt(5),height:xt(5),display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:t=>oa(t,"decrease-2"),fontWeight:"600",lineHeight:1,borderRadius:xt(999),backgroundColor:t=>io(t,"shift-9",e.get(t)),color:t=>io(t,"shift-0",e.get(t)),boxShadow:t=>`0 0 0 1px ${io(t,"shift-0",e.get(t))}`}}}}import{toState as na}from"@domphy/core";import{themeColor as lo,themeDensity as dn,themeSize as ra,themeSpacing as so}from"@domphy/theme";function Ms(a={}){var n;let o=na((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="blockquote"&&console.warn('"blockquote" primitive patch must use blockquote tag')},dataTone:"shift-2",style:{fontSize:e=>ra(e,"inherit"),backgroundColor:e=>lo(e,"inherit",o.get(e)),color:e=>lo(e,"text",o.get(e)),boxShadow:e=>`inset ${so(1)} 0 0 0 ${lo(e,"shift-4",o.get(e))}`,border:"none",paddingBlock:e=>so(dn(e)*2),paddingInline:e=>so(dn(e)*4),margin:0}}}import{toState as aa}from"@domphy/core";import{themeColor as ot,themeSize as ia,themeSpacing as pn}from"@domphy/theme";function Hs(a={}){var e;let{separator:o="/"}=a,n=aa((e=a.color)!=null?e:"neutral","color");return{_onInsert:l=>{l.tagName!=="nav"&&console.warn('"breadcrumb" patch must use nav tag')},ariaLabel:"breadcrumb",style:{display:"flex",alignItems:"center",flexWrap:"wrap",fontSize:l=>ia(l,"inherit"),gap:pn(1),color:l=>ot(l,"text",n.get(l)),backgroundColor:l=>ot(l,"inherit",n.get(l)),"& > *":{display:"inline-flex",alignItems:"center",color:l=>ot(l,"muted",n.get(l))},"& > *:not(:last-child)::after":{content:`"${o}"`,color:l=>ot(l,"shift-4",n.get(l)),paddingInlineStart:pn(1)},"& > [aria-current=page]":{color:l=>ot(l,"shift-10",n.get(l)),pointerEvents:"none"}}}}import{toState as la}from"@domphy/core";import{themeColor as co,themeSize as sa,themeSpacing as hn}from"@domphy/theme";function Ys(a={}){var n;let o=la((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="button"&&console.warn('"breadcrumbEllipsis" patch must use button tag')},ariaLabel:"More breadcrumb items",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e=>sa(e,"inherit"),paddingInline:hn(1),border:"none",background:"none",cursor:"pointer",color:e=>co(e,"muted",o.get(e)),borderRadius:hn(1),transition:"color 140ms ease, background-color 140ms ease, box-shadow 140ms ease","&:hover":{color:e=>co(e,"shift-10",o.get(e)),backgroundColor:e=>co(e,"hover",o.get(e))},"&:focus-visible":{boxShadow:e=>b(e,o.get(e))}}}}import{toState as da}from"@domphy/core";import{themeColor as j,themeDensity as Et,themeSize as pa,themeSpacing as kt}from"@domphy/theme";var Be={small:"decrease-1",medium:"inherit",large:"increase-1"};import{toState as ca}from"@domphy/core";import{themeColor as Ae,themeDensity as vt,themeSize as ma,themeSpacing as Ct}from"@domphy/theme";var ua={small:.5,medium:1,large:1.5};function gn(a={}){var l,t,r;let o=ca((l=a.color)!=null?l:"neutral","color"),n=ua[(t=a.size)!=null?t:"medium"],e=Be[(r=a.size)!=null?r:"medium"];return{_onInsert:s=>{s.tagName!=="button"&&console.warn('"buttonGhost" primitive patch must use button tag')},style:{appearance:"none",fontSize:s=>ma(s,e),paddingBlock:s=>Ct(vt(s)*n),paddingInline:s=>Ct(vt(s)*n),borderRadius:s=>Ct(vt(s)*1.5),display:"inline-flex",justifyContent:"center",alignItems:"center",gap:s=>Ct(vt(s)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",background:"none",outline:"none",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease",color:s=>Ae(s,"shift-6",o.get(s)),"&:hover:not([disabled]):not([aria-busy=true])":{color:s=>Ae(s,"text",o.get(s)),backgroundColor:s=>Ae(s,"hover",o.get(s))},"&:active:not([disabled]):not([aria-busy=true])":{color:s=>Ae(s,"text",o.get(s)),backgroundColor:s=>Ae(s,"increase-2",o.get(s))},"&:focus-visible":{boxShadow:s=>b(s,o.get(s))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:s=>Ae(s,"border-strong","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}}}var ha={small:{block:.5,inline:2},medium:{block:1,inline:3},large:{block:1.5,inline:4}};function ac(a={}){var r,s,m,h;let o=(r=a.variant)!=null?r:"outline";if(o==="ghost")return gn({color:a.color,size:a.size});let n=da((s=a.color)!=null?s:"primary","color"),e=o==="solid",l=ha[(m=a.size)!=null?m:"medium"],t=Be[(h=a.size)!=null?h:"medium"];return Y(L({_onInsert:i=>{i.tagName!=="button"&&console.warn('"button" primitive patch must use button tag')}},e?{_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"]}:{}),{style:{appearance:"none",fontSize:i=>pa(i,t),paddingBlock:i=>kt(Et(i)*l.block),paddingInline:i=>kt(Et(i)*l.inline),borderRadius:i=>kt(Et(i)*1.5),width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",gap:i=>kt(Et(i)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:e?"none":i=>`1px solid ${j(i,"border-strong",n.get(i))}`,color:i=>e?j(i,"shift-0","neutral"):j(i,"shift-13",n.get(i)),backgroundColor:i=>e?j(i,"shift-13",n.get(i)):j(i,"inherit",n.get(i)),transition:"background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-busy=true])":{color:i=>e?j(i,"shift-0","neutral"):j(i,"shift-14",n.get(i)),backgroundColor:i=>e?j(i,"shift-14",n.get(i)):j(i,"hover",n.get(i))},"&:active:not([disabled]):not([aria-busy=true])":{backgroundColor:i=>e?j(i,"shift-15",n.get(i)):j(i,"increase-2",n.get(i))},"&:focus-visible":{boxShadow:i=>b(i,n.get(i))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:i=>j(i,"shift-2","neutral"),outline:i=>`1px solid ${j(i,"border-strong","neutral")}`,color:i=>j(i,"muted","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}})}import{toState as mo}from"@domphy/core";import{themeColor as we,themeSize as ga,themeSpacing as q}from"@domphy/theme";function uc(a={}){var t,r;let{checked:o=!1}=a,n=mo(o),e=mo((t=a.color)!=null?t:"neutral","color"),l=mo((r=a.accentColor)!=null?r:"primary","accentColor");return{_onSchedule:s=>{s.tagName!=="button"&&console.warn('"buttonSwitch" primitive patch must use button tag')},role:"switch",ariaChecked:s=>n.get(s),dataTone:"shift-2",onClick:()=>n.set(!n.get()),style:{position:"relative",display:"inline-flex",alignItems:"center",fontSize:s=>ga(s),border:"none",outlineWidth:"1px",outline:s=>`1px solid ${we(s,"border",e.get(s))}`,minWidth:q(12),minHeight:q(6),borderRadius:q(999),paddingLeft:q(7),paddingRight:q(2),cursor:"pointer",transition:"padding-left 0.3s, padding-right 0.3s, background-color 140ms ease, box-shadow 140ms ease",backgroundColor:s=>we(s,"inherit",e.get(s)),color:s=>we(s,"text",e.get(s)),"&:focus-visible":{boxShadow:s=>b(s,l.get(s))},"& > :first-child":{content:'""',position:"absolute",display:"inline-flex",alignItems:"center",left:q(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",width:q(5),height:q(5),borderRadius:q(999),color:s=>we(s,"text"),backgroundColor:s=>we(s,"decrease-2",e.get(s))},"&[aria-checked=true]":{backgroundColor:s=>we(s,"increase-3",l.get(s)),outline:"none",color:s=>we(s,"decrease-2"),paddingLeft:q(2),paddingRight:q(7)},"&[aria-checked=true] > :first-child":{left:`calc(100% - ${q(5.5)})`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as ya}from"@domphy/core";import{themeColor as Te,themeDensity as ne,themeSpacing as Z}from"@domphy/theme";var fa={low:"0 1px 2px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.10)",medium:"0 2px 4px rgba(0,0,0,0.10), 0 10px 24px rgba(0,0,0,0.14)",high:"0 6px 12px rgba(0,0,0,0.14), 0 24px 48px rgba(0,0,0,0.20)"};function O(a){return fa[a]}function yc(a={}){var n;let o=ya((n=a.color)!=null?n:"neutral","color");return{_doctorDisable:"inline-typography",style:{display:"grid",gridTemplateColumns:"1fr auto",gridTemplateAreas:'"image image" "title aside" "desc aside" "content content" "footer footer"',borderRadius:e=>Z(ne(e)*2),backgroundColor:e=>Te(e,"inherit",o.get(e)),color:e=>Te(e,"shift-10",o.get(e)),outline:e=>`1px solid ${Te(e,"border-strong",o.get(e))}`,outlineOffset:"-1px",boxShadow:O("low"),overflow:"hidden","& > img":{gridArea:"image",width:"100%",height:"auto",display:"block"},"& > :is(h1,h2,h3,h4,h5,h6)":{gridArea:"title",paddingBlock:e=>Z(ne(e)*2),paddingInline:e=>Z(ne(e)*4),fontWeight:"600",color:e=>Te(e,"shift-11",o.get(e)),margin:0},"& > p":{gridArea:"desc",paddingInline:e=>Z(ne(e)*4),paddingBottom:e=>Z(ne(e)*2),color:e=>Te(e,"text",o.get(e)),margin:0},"& > aside":{gridArea:"aside",alignSelf:"center",padding:e=>Z(ne(e)*2),height:"auto"},"& > div":{gridArea:"content",padding:e=>Z(ne(e)*4),color:e=>Te(e,"shift-10",o.get(e))},"& > footer":{gridArea:"footer",display:"flex",gap:Z(2),paddingBlock:e=>Z(ne(e)*2),paddingInline:e=>Z(ne(e)*4),borderTop:e=>`1px solid ${Te(e,"border",o.get(e))}`}}}}import{toState as ba}from"@domphy/core";import{themeColor as fn,themeSize as Sa,themeSpacing as uo}from"@domphy/theme";function vc(a={}){var n;let o=ba((n=a.color)!=null?n:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="code"&&console.warn('"code" primitive patch must use code tag')},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",fontSize:e=>Sa(e,"inherit"),color:e=>fn(e,"text",o.get(e)),backgroundColor:e=>fn(e,"inherit",o.get(e)),height:uo(6),paddingInline:uo(1.5),borderRadius:uo(1)}}}import{merge as po,toState as ho}from"@domphy/core";import{themeColor as De,themeDensity as Dt,themeSize as yn,themeSpacing as de}from"@domphy/theme";import{behavior as xa,merge as va,toState as Ca}from"@domphy/core";import{autoUpdate as Ea,computePosition as ka,flip as wa,offset as Ta,shift as Da}from"@domphy/floating";function He(a,o){return`domphy-${a}-${o.nodeId}`}function Pa(a,o){var V;let{openState:n,placement:e,content:l,keepOpenOnContentHover:t}=o,{kind:r}=o,s=null,m=null,h=null,i=null,c=!1,d=a.domElement,y=a.getRoot(),g=He(r,a),u={style:{position:"fixed",pointerEvents:"auto",visibility:P=>n.get(P)?"visible":"hidden"},onKeyDown:P=>{P.key==="Escape"&&w()},onMouseEnter:()=>t&&k(),onMouseLeave:()=>t&&w(),_onMount:P=>{var _;if(h=P.domElement,h.id||(h.id=g),d&&h&&!h.hasAttribute("data-theme")){let H=(_=d.closest("[data-theme]"))==null?void 0:_.getAttribute("data-theme");H&&h.setAttribute("data-theme",H)}},_portal:P=>{let _=P.domElement.querySelector("#domphy-floating");if(!_){let H={div:[],id:"domphy-floating",style:{position:"fixed",inset:0,zIndex:20,pointerEvents:"none"}};_=P.children.insert(H).domElement}return _}},p=P=>va(P,u);p(l);let v=()=>{c||(c=!0,i=y.children.insert(l))},E=()=>{v(),d&&h&&(m==null||m(),m=Ea(d,h,()=>{ka(d,h,{placement:e.get(),middleware:[Ta(12),wa(),Da()],strategy:"fixed"}).then(({x:P,y:_,placement:H})=>{h&&(Object.assign(h.style,{left:`${P}px`,top:`${_}px`}),e.set(H))})}),n.set(!0))},x=()=>{m==null||m(),m=null,i&&(i.remove(),i=null),h=null,c=!1,n.set(!1)},k=()=>{s&&clearTimeout(s),s=setTimeout(E,100)},w=()=>{s&&clearTimeout(s),s=setTimeout(x,100)},I=P=>{if(!n.get()||!d||!h)return;let _=P.target;!d.contains(_)&&!h.contains(_)&&w()};return(V=y.domElement)==null||V.addEventListener("click",I),{show:k,hide:w,update(P){n=P.openState,e=P.placement,l=P.content,t=P.keepOpenOnContentHover,p(l),i&&i.patch(l)},destroy(){var P;s&&clearTimeout(s),m==null||m(),i==null||i.remove(),(P=y.domElement)==null||P.removeEventListener("click",I)}}}function J(a){let{kind:o,open:n=!1,placement:e}=a,l=Ca(n),t=`floating:${o}`,r=h=>{var i;return(i=h==null?void 0:h.getBehavior(t))==null?void 0:i.show()},s=h=>{var i;return(i=h==null?void 0:h.getBehavior(t))==null?void 0:i.hide()},m=L({onKeyDown:(h,i)=>h.key==="Escape"&&s(i)},xa(t,Pa,{kind:o,openState:l,placement:e,content:a.content,keepOpenOnContentHover:!!a.keepOpenOnContentHover}));return{show:r,hide:s,anchorPartial:m}}import{rawHtml as Oa,toState as La}from"@domphy/core";import{themeColor as wt,themeSize as Ia,themeSpacing as re}from"@domphy/theme";var za='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6.707 5.293l5.293 5.292l5.293 -5.292a1 1 0 0 1 1.414 1.414l-5.292 5.293l5.292 5.293a1 1 0 0 1 -1.414 1.414l-5.293 -5.292l-5.293 5.292a1 1 0 1 1 -1.414 -1.414l5.292 -5.293l-5.292 -5.293a1 1 0 0 1 1.414 -1.414" /></svg>';function Tt(a={}){var e;let{removable:o=!1}=a,n=La((e=a.color)!=null?e:"neutral","color");return{dataTone:"shift-2",_onInit:l=>{let t={span:Oa(za),onClick:r=>{r.stopPropagation(),l.remove()},tabindex:0,role:"button",ariaLabel:"Remove",style:{display:"inline-flex",alignItems:"center",cursor:"pointer",borderRadius:re(1),width:re(4),height:re(4),flexShrink:0,transition:"background-color 140ms ease, box-shadow 140ms ease","&:hover":{backgroundColor:r=>wt(r,"shift-4",n.get(r))},"&:focus-visible":{boxShadow:r=>b(r,n.get(r))}}};o&&l.children.insert(t)},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",userSelect:"none",height:re(6),paddingBlock:0,borderRadius:re(999),paddingInlineStart:re(2.5),paddingInlineEnd:o?re(1):re(2.5),gap:re(1.5),fontSize:l=>Ia(l,"decrease-1"),backgroundColor:l=>wt(l,"inherit",n.get(l)),color:l=>wt(l,"text",n.get(l)),border:"none",outlineOffset:"-1px",outline:l=>`1px solid ${wt(l,"border-strong",n.get(l))}`}}}function Mc(a){let{options:o=[],placement:n="bottom",color:e="neutral",open:l=!1,multiple:t=!1}=a,r=ho(a.value),s=ho(l),{show:m,hide:h,anchorPartial:i}=J({kind:"combobox",open:s,placement:ho(n),content:a.content}),c={onClick:(p,v)=>!t&&h(v),dataTone:"shift-14",style:{backgroundColor:p=>De(p,"inherit"),borderRadius:p=>de(Dt(p)*2),outline:p=>`1px solid ${De(p,"border-strong")}`,outlineOffset:"-1px",boxShadow:O("medium")}};po(a.content,c);let d={border:"none",outline:"none",padding:0,margin:0,flex:1,height:de(6),marginInlineStart:de(2),fontSize:p=>yn(p,"inherit"),color:p=>De(p,"text",e),backgroundColor:p=>De(p,"inherit",e)},y;if(a.input){let p={onFocus:(v,E)=>m(E),style:d,_key:"combobox-input"};po(a.input,p),y=a.input}else y={input:null,ariaLabel:"Filter options",onFocus:(p,v)=>m(v),value:p=>(r.get(p),""),style:d,_key:"combobox-input"};let g={div:p=>{let v=r.get(p),E=Array.isArray(v)?v:[v],k=o.filter(w=>E.includes(w.value)).map(w=>({span:w.label,$:[Tt({color:e,removable:!0})],_key:w.value,_onRemove:I=>{let V=r.get(),_=(Array.isArray(V)?V:[V]).filter(H=>H!==w.value);t?r.set(_):r.set(_[0])}}));return k.push(y),k},style:{display:"flex",flexWrap:"wrap",gap:de(1)}},u={_onInsert:p=>{p.tagName!=="div"&&console.warn('"combobox" primitive patch must use div tag')},_onInit:p=>p.children.insert(g),style:{minWidth:de(32),outlineOffset:"-1px",outline:p=>`1px solid ${De(p,"border-strong","neutral")}`,paddingBlock:p=>de(Dt(p)*1),paddingInline:p=>de(Dt(p)*1),borderRadius:p=>de(Dt(p)*1.5),fontSize:p=>yn(p,"inherit"),color:p=>De(p,"text",e),backgroundColor:p=>De(p,"inherit",e),transition:"background-color 140ms ease, outline-color 140ms ease, box-shadow 140ms ease","&:focus-within":{boxShadow:p=>b(p,e)}}};return po(i,u),i}import{merge as Va,toState as Ra}from"@domphy/core";import{themeColor as ae,themeDensity as Pt,themeSize as bn,themeSpacing as Ot}from"@domphy/theme";function Fc(){return{role:"group",ariaLabel:"Commands",_onSchedule:(a,o)=>{Va(o,{_context:{command:{query:Ra("")}}})},style:{display:"flex",flexDirection:"column",overflow:"hidden"}}}function jc(a={}){let{color:o="neutral",accentColor:n="primary"}=a;return{_onInsert:e=>{e.tagName!=="input"&&console.warn('"commandSearch" patch must use input tag')},_onMount:e=>{let l=e.getContext("command");if(!l){console.warn('"commandSearch" patch must be used inside a "command"');return}let t=e.domElement,r=()=>l.query.set(t.value);t.addEventListener("input",r),e.addHook("Remove",()=>t.removeEventListener("input",r))},style:{fontFamily:"inherit",fontSize:e=>bn(e,"inherit"),paddingInline:e=>Ot(Pt(e)*3),paddingBlock:e=>Ot(Pt(e)*2),border:"none",borderBottom:e=>`1px solid ${ae(e,"border",o)}`,outline:"none",color:e=>ae(e,"shift-10",o),backgroundColor:e=>ae(e,"inherit",o),"&::placeholder":{color:e=>ae(e,"shift-7")},transition:"border-bottom-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{borderBottomColor:e=>ae(e,"shift-6",n),boxShadow:e=>b(e,n)}}}}function Wc(a={}){let{color:o="neutral",accentColor:n="primary"}=a;return{_onMount:e=>{var h,i;let l=e.getContext("command");if(!l){console.warn('"commandItem" patch must be used inside a "command"');return}let t=e.domElement,r=(i=(h=t.textContent)==null?void 0:h.toLowerCase())!=null?i:"",s=c=>{t.hidden=c.length>0&&!r.includes(c.toLowerCase())};s(l.query.get());let m=l.query.addListener(s);e.addHook("Remove",m)},style:{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",fontSize:e=>bn(e,"inherit"),height:e=>Ot(6+Pt(e)*2),paddingInline:e=>Ot(Pt(e)*3),border:"none",outline:"none",color:e=>ae(e,"shift-13",o),backgroundColor:e=>ae(e,"inherit",o),transition:"background-color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled])":{color:e=>ae(e,"shift-13",o),backgroundColor:e=>ae(e,"hover",o)},"&:focus-visible":{boxShadow:e=>b(e,n)}}}}import{merge as $a,toState as ie}from"@domphy/core";import{themeColor as B,themeDensity as _a,themeSize as Fe,themeSpacing as M}from"@domphy/theme";var N=a=>new Date(a.getFullYear(),a.getMonth(),a.getDate()),Pe=(a,o)=>new Date(a.getFullYear(),a.getMonth(),a.getDate()+o),go=(a,o)=>new Date(a.getFullYear(),a.getMonth()+o,a.getDate()),nt=(a,o)=>!!a&&!!o&&a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()&&a.getDate()===o.getDate(),fo=a=>`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`,yo=(a,o)=>Pe(a,-((a.getDay()-o+7)%7));function Ma(a){var o,n;try{let e=new Intl.Locale(a),l=(n=(o=e.getWeekInfo)==null?void 0:o.call(e))!=null?n:e.weekInfo;if(l!=null&&l.firstDay)return l.firstDay%7}catch(e){}return 0}function Zc(a={}){var en,tn,on,nn;let{mode:o="single",time:n=!1,min:e,max:l,disabledDate:t,locale:r=typeof navigator!="undefined"?navigator.language:"en-US",format:s,onChange:m}=a,h=(en=a.weekStartsOn)!=null?en:Ma(r),i=ie((tn=a.accentColor)!=null?tn:"primary","accentColor"),c=ie((on=a.placement)!=null?on:"bottom-start"),d=ie((nn=a.value)!=null?nn:o==="range"?[null,null]:null),y=m?d.addListener(f=>m(f)):null,g=(()=>{let f=d.get(),S=o==="range"?f==null?void 0:f[0]:f;return S instanceof Date?S:new Date})(),u=ie(g.getFullYear(),"viewYear"),p=ie(g.getMonth(),"viewMonth"),v=ie(N(g),"focused"),E=ie(null,"hovered"),x=ie(g.getHours(),"hour"),k=ie(g.getMinutes(),"minute"),w=null,I=new Intl.DateTimeFormat(r,L({dateStyle:"medium"},n?{timeStyle:"short"}:{})),V=new Intl.DateTimeFormat(r,{month:"long",year:"numeric"}),P=new Intl.DateTimeFormat(r,{weekday:"short"}),_=new Intl.DateTimeFormat(r,{dateStyle:"full"}),H=f=>f?I.format(f):"",yt=f=>{if(s)return s(f);if(o==="range"){let[S,C]=f!=null?f:[null,null];return S?`${H(S)} \u2013 ${H(C)}`:""}return H(f)},bt=Array.from({length:7},(f,S)=>P.format(new Date(2023,0,1+(S+h)%7))),Uo=f=>!!e&&N(f)<N(e)||!!l&&N(f)>N(l)||!!t&&t(f),ue=f=>{if(!n)return N(f);let S=N(f);return S.setHours(x.get(),k.get(),0,0),S},Xo=f=>{var T;if(Uo(f))return;if(o==="single"){d.set(ue(f)),n||eo();return}let[S,C]=(T=d.get())!=null?T:[null,null];!S||S&&C?d.set([ue(f),null]):N(f)<N(S)?(d.set([ue(f),ue(S)]),n||eo()):(d.set([S,ue(f)]),n||eo())},Or=()=>{var f;if(n)if(o==="single"){let S=d.get();S&&d.set(ue(S))}else{let[S,C]=(f=d.get())!=null?f:[null,null];d.set([S&&ue(S),C&&ue(C)])}},Lr=(f,S)=>{var Ne;if(o!=="range")return!1;let[C,T]=(Ne=d.get(S))!=null?Ne:[null,null],z=T!=null?T:E.get(S);if(!C||!z)return!1;let D=N(C)<=N(z)?C:z,K=N(C)<=N(z)?z:C,F=N(f);return F>=N(D)&&F<=N(K)},Ir=(f,S)=>{let C=d.get(S);if(o==="range"){let[T,z]=C!=null?C:[null,null];return nt(f,T)||nt(f,z)}return nt(f,C)},St=f=>{u.set(f.getFullYear()),p.set(f.getMonth())},Zo=f=>{let S=go(new Date(u.get(),p.get(),1),f);St(S)},Jo=f=>u.set(u.get()+f),Qt=()=>{setTimeout(()=>{var f;(f=w==null?void 0:w.querySelector(`[data-date="${fo(v.get())}"]`))==null||f.focus()},0)},zr=Mr(),{show:Vr,hide:Rr,anchorPartial:Qo}=J({kind:"datePicker",open:!1,placement:c,content:zr});function eo(){Rr()}let $r={type:"text",readonly:!0,value:f=>yt(d.get(f)),ariaHaspopup:"dialog",ariaLabel:"Choose date",style:{cursor:"pointer"},onClick:(f,S)=>{to(S)},onFocus:(f,S)=>{to(S)},onKeyDown:(f,S)=>{let C=f.key;(C==="ArrowDown"||C==="Enter")&&(f.preventDefault(),to(S))},_onMount:f=>y&&f.addHook("Remove",()=>{y()})};function to(f){var C;let S=(C=_r())!=null?C:new Date;v.set(N(S)),St(S),Vr(f),Qt()}function _r(){var S;let f=d.get();return o==="range"?(S=f==null?void 0:f[0])!=null?S:null:f!=null?f:null}return $a(Qo,$r),Qo;function Mr(){let f=(D,K,F)=>({button:D,type:"button",ariaLabel:K,onClick:F,style:Na()}),S={div:[f("\xAB","Previous year",()=>Jo(-1)),f("\u2039","Previous month",()=>Zo(-1)),{div:D=>V.format(new Date(u.get(D),p.get(D),1)),ariaLive:"polite",_doctorDisable:"inline-typography",style:{flex:"1",textAlign:"center",fontWeight:"bold",fontSize:D=>Fe(D)}},f("\u203A","Next month",()=>Zo(1)),f("\xBB","Next year",()=>Jo(1))],style:{display:"flex",alignItems:"center",gap:M(1),marginBottom:M(2)}},C={div:bt.map((D,K)=>({div:D,_doctorDisable:"inline-typography",style:{textAlign:"center",fontSize:F=>Fe(F,"decrease-1"),fontWeight:"bold",color:F=>B(F,"shift-7"),paddingBlock:M(1)},_key:K})),role:"row",style:Sn()},T={div:D=>Nr(D),role:"grid",ariaLabel:"Calendar",onKeyDown:Fr,onMouseLeave:()=>o==="range"&&E.set(null),style:{display:"flex",flexDirection:"column",gap:M(.5)}},z=[S,C,T];return n&&z.push(Ar()),z.push(Hr()),{div:z,role:"dialog",ariaModal:"false",_onMount:D=>{w=D.domElement},style:{minWidth:M(70),padding:M(3),borderRadius:D=>M(_a(D)*2),backgroundColor:D=>B(D,"base"),color:D=>B(D,"shift-10"),border:D=>`1px solid ${B(D,"border-strong")}`,boxShadow:O("medium")}}}function Nr(f){let S=new Date(u.get(f),p.get(f),1),C=p.get(f),T=yo(S,h),z=[];for(let D=0;D<6;D++){let K=[];for(let F=0;F<7;F++){let Ne=Pe(T,D*7+F);K.push(Br(Ne,C,f))}z.push({div:K,role:"row",style:Sn(),_key:D})}return z}function Br(f,S,C){let T=Uo(f),z=Ir(f,C),D=Lr(f,C),K=f.getMonth()!==S,F=nt(f,v.get(C)),Ne=nt(f,new Date);return{button:String(f.getDate()),type:"button",role:"gridcell",tabIndex:F?0:-1,ariaSelected:z,ariaDisabled:T,disabled:T,ariaLabel:_.format(f),dataDate:fo(f),onClick:()=>Xo(f),onMouseEnter:()=>o==="range"&&E.set(f),style:{appearance:"none",border:"none",cursor:T?"not-allowed":"pointer",aspectRatio:"1",borderRadius:M(1),fontSize:R=>Fe(R),fontFamily:"inherit",opacity:T?.35:K?.5:1,backgroundColor:R=>z?B(R,"shift-7",i.get(R)):D?B(R,"hover",i.get(R)):"transparent",color:R=>z?B(R,"shift-0",i.get(R)):B(R,"text"),outline:Ne?R=>`1px solid ${B(R,"shift-6",i.get(R))}`:"none",outlineOffset:"-2px","&:hover:not([disabled])":{backgroundColor:R=>z?B(R,"shift-7",i.get(R)):B(R,"shift-3",i.get(R))},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:R=>b(R,i.get(R))}},_key:fo(f)}}function Ar(){let f=(S,C,T)=>({select:Array.from({length:S},(z,D)=>({option:String(D).padStart(2,"0"),value:String(D),selected:K=>C.get(K)===D,_key:D})),ariaLabel:T,onChange:z=>{C.set(Number(z.target.value)),Or()},style:Ba()});return{div:[f(24,x,"Hour"),{span:":",_doctorDisable:"inline-typography",style:{fontWeight:"bold"}},f(60,k,"Minute")],style:{display:"flex",alignItems:"center",justifyContent:"center",gap:M(1),marginTop:M(3)}}}function Hr(){let f=(S,C)=>({button:S,type:"button",onClick:C,style:{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:T=>Fe(T,"decrease-1"),color:T=>B(T,"muted",i.get(T)),padding:M(1)}});return{div:[f("Today",()=>{let S=new Date;v.set(N(S)),St(S),Qt()}),f("Clear",()=>{d.set(o==="range"?[null,null]:null),E.set(null)})],style:{display:"flex",justifyContent:"space-between",marginTop:M(2),paddingTop:M(2),borderTop:S=>`1px solid ${B(S,"border")}`}}}function Fr(f){let S=f,C=v.get(),T=null;switch(S.key){case"ArrowLeft":T=Pe(C,-1);break;case"ArrowRight":T=Pe(C,1);break;case"ArrowUp":T=Pe(C,-7);break;case"ArrowDown":T=Pe(C,7);break;case"Home":T=yo(C,h);break;case"End":T=Pe(yo(C,h),6);break;case"PageUp":T=go(C,S.shiftKey?-12:-1);break;case"PageDown":T=go(C,S.shiftKey?12:1);break;case"Enter":case" ":S.preventDefault(),Xo(C);return;default:return}S.preventDefault(),v.set(T),St(T),Qt()}}function Sn(){return{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:M(.5)}}function Na(){return{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:a=>Fe(a),color:a=>B(a,"muted"),width:M(7),height:M(7),borderRadius:M(1),"&:hover":{backgroundColor:a=>B(a,"shift-3")}}}function Ba(){return{fontFamily:"inherit",fontSize:a=>Fe(a),padding:M(1),borderRadius:M(1),border:a=>`1px solid ${B(a,"border-strong")}`,backgroundColor:a=>B(a,"base"),color:a=>B(a,"text")}}import{toState as Aa}from"@domphy/core";import{themeColor as xn,themeSize as vn,themeSpacing as Cn}from"@domphy/theme";function om(a={}){var n;let o=Aa((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="dl"&&console.warn('"descriptionList" primitive patch must use dl tag')},_doctorDisable:"inline-typography",style:{display:"grid",gridTemplateColumns:`minmax(${Cn(24)}, max-content) 1fr`,columnGap:Cn(4),margin:0,"& dt":{margin:0,fontWeight:600,fontSize:e=>vn(e,"inherit"),color:e=>xn(e,"shift-10",o.get(e))},"& dd":{margin:0,fontSize:e=>vn(e,"inherit"),color:e=>xn(e,"text",o.get(e))}}}}import{toState as En}from"@domphy/core";import{themeColor as Oe,themeDensity as rt,themeSize as kn,themeSpacing as G}from"@domphy/theme";function lm(a={}){var l,t;let{duration:o=240}=a,n=En((l=a.color)!=null?l:"neutral","color"),e=En((t=a.accentColor)!=null?t:"primary","accentColor");return{_onInsert:r=>{r.tagName!=="details"&&console.warn('"details" primitive patch must use details tag')},_doctorDisable:"inline-typography",style:{fontSize:r=>kn(r,"inherit"),color:r=>Oe(r,"text",n.get(r)),backgroundColor:r=>Oe(r,"inherit",n.get(r)),overflow:"hidden","& > summary":{backgroundColor:r=>Oe(r,"shift-2",n.get(r)),color:r=>Oe(r,"shift-10",n.get(r)),fontSize:r=>kn(r,"inherit"),listStyle:"none",display:"flex",justifyContent:"space-between",alignItems:"center",gap:G(2),cursor:"pointer",userSelect:"none",fontWeight:500,paddingInline:r=>G(rt(r)*4),height:G(10)},"& > summary::-webkit-details-marker":{display:"none"},"& > summary::marker":{content:'""'},"& > summary::after":{content:'""',width:G(2),height:G(2),flexShrink:0,marginTop:G(-.5),borderInlineEnd:r=>`${G(.5)} solid ${Oe(r,"shift-9",n.get(r))}`,borderBottom:r=>`${G(.5)} solid ${Oe(r,"shift-9",n.get(r))}`,transform:"rotate(45deg)",transition:`transform ${o}ms ease`},"&[open] > summary::after":{transform:"rotate(-135deg)"},"& > summary:hover":{backgroundColor:r=>Oe(r,"shift-3",n.get(r))},"& > summary:focus-visible":{borderRadius:r=>G(rt(r)*2),boxShadow:r=>b(r,e.get(r))},"& > :not(summary)":{maxHeight:0,opacity:0,overflow:"hidden",paddingInline:r=>G(rt(r)*3),paddingTop:0,paddingBottom:0,transition:`max-height ${o}ms ease, opacity ${o}ms ease, padding ${o}ms ease`},"&[open] > :not(summary)":{maxHeight:"none",opacity:1,paddingTop:r=>G(rt(r)*1),paddingBottom:r=>G(rt(r)*3)}}}}import{behavior as Ha,toState as Fa}from"@domphy/core";import{themeColor as bo,themeDensity as wn,themeSize as ja,themeSpacing as Tn}from"@domphy/theme";var at=0;function Lt(){at++,at===1&&(document.body.style.overflow="hidden")}function je(){at=Math.max(0,at-1),at===0&&(document.body.style.overflow="")}var Dn='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), details, [tabindex]:not([tabindex="-1"])';function Wa(a,o){let{state:n}=o,e=null,l=!1,t=!1,r=null,s=a.domElement;s.setAttribute("aria-modal","true");let m=()=>{l=!1,typeof s.close=="function"&&s.close(),s.style.visibility="hidden",s.style.pointerEvents="none",t&&(je(),t=!1),e==null||e.focus(),e=null},h=y=>{if(y.key!=="Tab")return;let g=Array.from(s.querySelectorAll(Dn)).filter(v=>!v.closest("[aria-hidden='true']")&&v.offsetParent!==null);if(!g.length){y.preventDefault();return}let u=g[0],p=g[g.length-1];y.shiftKey?(document.activeElement===u||document.activeElement===s)&&(y.preventDefault(),p.focus()):document.activeElement===p&&(y.preventDefault(),u.focus())},i=y=>{y.preventDefault(),n.set(!1)};s.addEventListener("cancel",i);let c=y=>{y?(l=!1,r&&(clearTimeout(r),r=null),e=document.activeElement,s.style.visibility="visible",s.style.pointerEvents="auto",typeof s.showModal=="function"&&!s.open&&s.showModal(),t||(Lt(),t=!0),s.addEventListener("keydown",h),requestAnimationFrame(()=>{s.style.opacity="1";let g=s.querySelector(Dn);g==null||g.focus()})):(l=!0,s.style.opacity="0",s.removeEventListener("keydown",h),r=setTimeout(()=>{r=null,l&&m()},350))};c(n.get());let d=n.addListener(c);return{requestClose:()=>n.set(!1),onTransitionEnd:y=>{l&&y.target===s&&y.propertyName==="opacity"&&m()},update(y){y.state!==n&&(d(),n=y.state,d=n.addListener(c))},destroy(){r&&(clearTimeout(r),r=null),d(),s.removeEventListener("cancel",i),t&&(je(),t=!1),s.removeEventListener("keydown",h),e==null||e.focus(),e=null}}}function hm(a={}){let{color:o="neutral",open:n=!1}=a,e=Fa(n);return Y(L({_onInsert:l=>{l.tagName!=="dialog"&&console.warn('"dialog" primitive patch must use dialog tag')}},Ha("dialog",Wa,{state:e})),{onClick:(l,t)=>{var m;if(l.target!==t.domElement)return;let r=t.domElement.getBoundingClientRect();l.clientX>=r.left&&l.clientX<=r.right&&l.clientY>=r.top&&l.clientY<=r.bottom||(m=t.getBehavior("dialog"))==null||m.requestClose()},onTransitionEnd:(l,t)=>{var r;return(r=t.getBehavior("dialog"))==null?void 0:r.onTransitionEnd(l)},style:{opacity:"0",visibility:"hidden",pointerEvents:"none",transition:"opacity 200ms ease",fontSize:l=>ja(l,"inherit"),color:l=>bo(l,"shift-10",o),backgroundColor:l=>bo(l,"inherit",o),border:"none",borderRadius:l=>Tn(wn(l)*2),padding:l=>Tn(wn(l)*3),boxShadow:O("high"),"&::backdrop":{backgroundColor:l=>bo(l,"shift-2","neutral"),opacity:.75}}})}import{toState as Ka}from"@domphy/core";import{themeColor as It,themeSize as Ya,themeSpacing as qa}from"@domphy/theme";function Sm(a={}){var n;let o=Ka((n=a.color)!=null?n:"neutral","color");return{role:"separator",_onInsert:e=>{e.tagName!=="div"&&console.warn('"divider" patch should be used with <div>')},style:{display:"flex",justifyContent:"center",alignItems:"baseline",gap:qa(2),fontSize:e=>Ya(e,"inherit"),backgroundColor:e=>It(e),color:e=>It(e,"text",o.get(e)),minHeight:"1lh","&::before":{content:'""',flex:1,borderColor:e=>It(e,"border-strong",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"},"&::after":{content:'""',flex:1,borderColor:e=>It(e,"border-strong",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"}}}}import{toState as Ga}from"@domphy/core";import{themeColor as So,themeDensity as Ua,themeSize as Xa,themeSpacing as xo}from"@domphy/theme";var vo={left:"translateX(-100%)",right:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},Pn={left:"0 auto 0 0",right:"0 0 0 auto",top:"0 0 auto 0",bottom:"auto 0 0 0"},it=a=>a==="left"||a==="right";function On(a,o){return a==="start"?o?"right":"left":a==="end"?o?"left":"right":a}function wm(a={}){let{color:o="neutral",open:n=!1,placement:e="end",size:l}=a,t=Ga(n),r=e==="start"||e==="end",s=On(e,!1),m=it(s)?xo(80):xo(64),h=l!=null?l:m;return{_onInsert:i=>{i.tagName!=="dialog"&&console.warn('"drawer" patch must use dialog tag')},onClick:(i,c)=>{i.target===c.domElement&&t.set(!1)},_onMount:i=>{let c=i.domElement;c.setAttribute("aria-modal","true");let d=I=>{I.preventDefault(),t.set(!1)};c.addEventListener("cancel",d);let y=r&&(c.ownerDocument.documentElement.dir==="rtl"||c.ownerDocument.dir==="rtl"),g=On(e,y);r&&(c.style.transform=vo[g],c.style.margin=Pn[g],c.style.width=it(g)?h:"100dvw",c.style.height=it(g)?"100dvh":h);let u=!1,p=!1,v=null,E=()=>{v=null,u&&(u=!1,typeof c.close=="function"&&c.close(),c.style.visibility="hidden",c.style.pointerEvents="none",p&&(je(),p=!1))},x=I=>{I.target===c&&I.propertyName==="transform"&&E()};c.addEventListener("transitionend",x);let k=I=>{I?(u=!1,c.style.visibility="visible",c.style.pointerEvents="auto",typeof c.showModal=="function"&&c.showModal(),p||(Lt(),p=!0),requestAnimationFrame(()=>{c.style.transform="translate(0, 0)"})):(u=!0,c.style.transform=vo[g],v=setTimeout(E,350))};k(t.get());let w=t.addListener(k);i.addHook("Remove",()=>{v&&(clearTimeout(v),v=null),w(),c.removeEventListener("cancel",d),c.removeEventListener("transitionend",x),p&&(je(),p=!1)})},style:{transform:vo[s],visibility:"hidden",pointerEvents:"none",transition:"transform 0.25s ease",fontSize:i=>Xa(i,"inherit"),color:i=>So(i,"shift-10",o),backgroundColor:i=>So(i,"inherit",o),border:"none",padding:i=>xo(Ua(i)*3),margin:Pn[s],width:it(s)?h:"100dvw",height:it(s)?"100dvh":h,maxWidth:"100dvw",maxHeight:"100dvh",boxShadow:O("high"),"&::backdrop":{backgroundColor:i=>So(i,"shift-2","neutral"),opacity:.75}}}}import{toState as Za}from"@domphy/core";import{themeColor as Ja,themeSize as Qa}from"@domphy/theme";function Om(a={}){var n;let o=Za((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="em"&&console.warn('"emphasis" primitive patch must use em tag')},style:{fontSize:e=>Qa(e,"inherit"),fontStyle:"italic",color:e=>Ja(e,"shift-10",o.get(e))}}}import{toState as ei}from"@domphy/core";import{themeColor as Co,themeSpacing as Eo}from"@domphy/theme";function Vm(a={}){var n;let o=ei((n=a.color)!=null?n:"neutral","color");return{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:Eo(3),paddingBlock:Eo(12),paddingInline:Eo(6),textAlign:"center",color:e=>Co(e,"muted",o.get(e)),"& > :first-child":{color:e=>Co(e,"shift-5",o.get(e)),opacity:.9},"& > :nth-child(2)":{color:e=>Co(e,"text",o.get(e))}}}}function $m(a={}){return{_onError:(o,n,e)=>{var t,r;(t=a.onError)==null||t.call(a,n);let l=typeof a.fallback=="function"?a.fallback(n,e):(r=a.fallback)!=null?r:{div:"An error occurred."};o.children.update([l])}}}import{toState as ti}from"@domphy/core";import{themeColor as zt,themeSize as oi,themeSpacing as ni}from"@domphy/theme";var ri={small:8,medium:10,large:14};function Hm(a={}){var e,l;let o=ti((e=a.color)!=null?e:"primary","color"),n=ni(ri[(l=a.size)!=null?l:"medium"]);return{_onInsert:t=>{t.tagName!=="button"&&console.warn('"fab" patch must use button tag')},_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"],style:{appearance:"none",border:"none",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:n,height:n,borderRadius:"50%",fontSize:t=>oi(t,"inherit"),backgroundColor:t=>zt(t,"shift-13",o.get(t)),color:t=>zt(t,"shift-0","neutral"),boxShadow:O("low"),transition:"background-color 200ms ease, box-shadow 200ms ease","&:hover:not([disabled])":{backgroundColor:t=>zt(t,"shift-14",o.get(t)),boxShadow:O("medium")},"&:active:not([disabled])":{backgroundColor:t=>zt(t,"shift-15",o.get(t)),boxShadow:O("low")},"&:focus-visible":{boxShadow:t=>`${O("medium")}, ${b(t,o.get(t))}`},"&[disabled]":{opacity:.5,cursor:"not-allowed"}}}}import{toState as ai}from"@domphy/core";import{themeColor as Ln,themeSize as ii,themeSpacing as Vt}from"@domphy/theme";function Km(a={}){var n;let o=ai((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="figure"&&console.warn('"figure" primitive patch must use figure tag')},style:{display:"flex",flexDirection:"column",gap:Vt(2),marginInline:0,marginTop:Vt(3),marginBottom:Vt(3),color:e=>Ln(e,"text",o.get(e)),"& img, & svg, & video, & canvas":{display:"block",maxWidth:"100%",borderRadius:Vt(2)},"& figcaption":{fontSize:e=>ii(e,"decrease-1"),color:e=>Ln(e,"muted",o.get(e)),lineHeight:1.45}}}}import{toState as li}from"@domphy/core";import{themeColor as lt,themeDensity as We,themeSize as ko,themeSpacing as le}from"@domphy/theme";function Um(a={}){var l;let{layout:o="horizontal"}=a,n=li((l=a.color)!=null?l:"neutral","color"),e=o==="vertical";return{_onInsert:t=>{t.tagName!=="fieldset"&&console.warn('"formGroup" patch must use fieldset tag')},_doctorDisable:"inline-typography",style:{margin:0,paddingInline:t=>le(We(t)*3),paddingBlock:t=>le(We(t)*3),border:"none",borderRadius:t=>le(We(t)*2),fontSize:t=>ko(t,"inherit"),backgroundColor:t=>lt(t,"inherit",n.get(t)),color:t=>lt(t,"text",n.get(t)),display:"grid",gridTemplateColumns:e?"minmax(0, 1fr)":"max-content minmax(0, 1fr)",columnGap:le(4),rowGap:le(3),alignItems:"start","& > legend":{gridColumn:"1 / -1",margin:0,fontSize:t=>ko(t,"inherit"),fontWeight:600,paddingBlock:t=>le(We(t)*1),borderRadius:t=>le(We(t)*2),color:t=>lt(t,"text",n.get(t)),backgroundColor:t=>lt(t,"inherit",n.get(t))},"& > label":{gridColumn:"1",alignSelf:"start",margin:0,paddingBlock:t=>e?0:le(We(t)*1)},"& > label:has(+ :not(legend, label, p) + p)":{gridRow:e?"auto":"span 2"},"& > :not(legend, label, p)":{gridColumn:e?"1":"2",minWidth:0,width:"100%",boxSizing:"border-box"},"& > p":{gridColumn:e?"1":"2",minWidth:0,margin:0,marginBlockStart:`calc(${le(2)} * -1)`,fontSize:t=>ko(t,"decrease-1"),color:t=>lt(t,"text",n.get(t))}}}}import{themeDensity as si,themeSpacing as ci}from"@domphy/theme";function Jm(a={}){let{columns:o=1,gap:n=4,align:e}=a;return{style:L({display:"grid",gridTemplateColumns:typeof o=="number"?`repeat(${o}, minmax(0, 1fr))`:o,gap:l=>ci(si(l)*n)},e?{alignItems:e}:{})}}import{toState as mi}from"@domphy/core";import{themeColor as ui,themeSize as di,themeSpacing as pi}from"@domphy/theme";var hi={h6:"decrease-1",h5:"inherit",h4:"increase-1",h3:"increase-2",h2:"increase-3",h1:"increase-4"};function nu(a={}){var n;let o=mi((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{["h1","h2","h3","h4","h5","h6"].includes(e.tagName)||console.warn('"heading" primitive patch must use heading tags [h1...h6]')},style:{color:e=>ui(e,"shift-11",o.get(e)),marginTop:0,marginBottom:pi(2),fontSize:e=>{let l=hi[e.elementNode.tagName]||"inherit";return di(e,l)}}}}import{toState as gi}from"@domphy/core";import{themeColor as In,themeSpacing as zn}from"@domphy/theme";function lu(a={}){var n;let o=gi((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="hr"&&console.warn('"horizontalRule" primitive patch must use hr tag')},dataTone:"shift-3",style:{border:0,height:"1px",marginInline:0,marginTop:zn(3),marginBottom:zn(3),backgroundColor:e=>In(e,"inherit",o.get(e)),color:e=>In(e,"text",o.get(e))}}}import{toState as fi}from"@domphy/core";import{themeColor as yi,themeSize as bi,themeSpacing as Vn}from"@domphy/theme";function uu(a={}){var n;let o=fi((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="span"&&console.warn('"icon" primitive patch should use span tag')},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",alignSelf:"center",justifySelf:"center",verticalAlign:"middle",width:Vn(4),height:Vn(4),flexShrink:"0",fontSize:e=>bi(e),backgroundColor:"transparent",color:e=>yi(e,"text",o.get(e))}}}import{toState as Si}from"@domphy/core";import{themeColor as Rn,themeSpacing as xi}from"@domphy/theme";function gu(a={}){var n;let o=Si((n=a.color)!=null?n:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="img"&&console.warn('"image" primitive patch must use img tag')},style:{display:"block",width:"100%",maxWidth:"100%",height:"auto",objectFit:"cover",borderRadius:xi(2),backgroundColor:e=>Rn(e,"inherit",o.get(e)),color:e=>Rn(e,"text",o.get(e))}}}import{toState as $n}from"@domphy/core";import{themeColor as W,themeSize as vi,themeSpacing as Le}from"@domphy/theme";function xu(a={}){var e,l;let o=$n((e=a.color)!=null?e:"neutral","color"),n=$n((l=a.accentColor)!=null?l:"primary","accentColor");return{type:"checkbox",_onInsert:t=>{t.tagName!=="input"&&console.warn('"inputCheckbox" primitive patch must use input tag')},style:{appearance:"none",fontSize:t=>vi(t,"inherit"),color:t=>W(t,"text",o.get(t)),display:"inline-flex",position:"relative",width:Le(6),height:Le(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:Le(1),lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${W(t,"border-strong",o.get(t))}`,color:t=>W(t,"text",o.get(t)),width:Le(4),height:Le(4)},"&:hover::before":{backgroundColor:t=>W(t,"hover",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${W(t,"shift-6",n.get(t))}`,backgroundColor:t=>W(t,"shift-8",n.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>W(t,"shift-7",n.get(t))},"&:checked::after":{content:'""',display:"block",position:"absolute",top:"25%",insetInlineStart:"37%",width:"20%",height:"30%",border:t=>`${Le(.5)} solid ${W(t,"inherit",n.get(t))}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg)"},"&:indeterminate::before":{outline:t=>`1px solid ${W(t,"shift-6",n.get(t))}`,backgroundColor:t=>W(t,"shift-3",n.get(t))},"&:indeterminate::after":{content:'""',position:"absolute",inset:"30%",backgroundColor:t=>W(t,"shift-8",n.get(t))},"&:indeterminate:hover:not([disabled])::after":{backgroundColor:t=>W(t,"shift-7",n.get(t))},"&:focus-visible":{borderRadius:Le(1.5),boxShadow:t=>b(t,n.get(t))},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>W(t,"shift-4","neutral"),pointerEvents:"none"}}}}import{toState as Ci}from"@domphy/core";import{themeColor as wo,themeDensity as Ke,themeSize as Ei,themeSpacing as Ye}from"@domphy/theme";function wu(a={}){var n;let o=Ci((n=a.color)!=null?n:"neutral","color");return{type:"color",_onSchedule:(e,l)=>{e.tagName!=="input"&&console.warn('"inputColor" primitive patch must use input tag'),l.type="color"},style:{appearance:"none",border:"none",cursor:"pointer",fontSize:e=>Ei(e,"inherit"),color:e=>wo(e,"text",o.get(e)),paddingBlock:e=>Ye(Ke(e)*1),paddingInline:e=>Ye(Ke(e)*1),blockSize:e=>Ye(6+Ke(e)*2),inlineSize:e=>Ye(6+Ke(e)*2),backgroundColor:"transparent",transition:"box-shadow 140ms ease",borderRadius:e=>Ye(Ke(e)*1.5),"&:focus-visible":{boxShadow:e=>b(e,o.get(e))},"&::-webkit-color-swatch-wrapper":{margin:0,padding:0},"&::-webkit-color-swatch":{borderRadius:e=>Ye(Ke(e)*1.5)},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:e=>wo(e,"shift-2","neutral"),outline:e=>`1px solid ${wo(e,"border-strong","neutral")}`}}}}import{toState as _n}from"@domphy/core";import{themeColor as pe,themeDensity as To,themeSize as ki,themeSpacing as Rt}from"@domphy/theme";function Lu(a={}){var l,t;let{mode:o="datetime-local"}=a,n=_n((l=a.color)!=null?l:"neutral","color"),e=_n((t=a.accentColor)!=null?t:"primary","accentColor");return{type:o,_onSchedule:(r,s)=>{r.tagName!=="input"&&console.warn('"inputDateTime" primitive patch must use input tag'),s.type=o},style:{fontFamily:"inherit",fontSize:r=>ki(r,"inherit"),lineHeight:"inherit",color:r=>pe(r,"text",n.get(r)),backgroundColor:r=>pe(r,"inherit",n.get(r)),border:"none",outlineOffset:"-1px",outline:r=>`1px solid ${pe(r,"border-strong",n.get(r))}`,borderRadius:r=>Rt(To(r)*1.5),paddingInline:r=>Rt(To(r)*3),height:r=>Rt(6+To(r)*2),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-calendar-picker-indicator":{cursor:"pointer",opacity:.85},"&:hover:not([disabled]):not([aria-busy=true])":{outline:r=>`1px solid ${pe(r,"shift-5",e.get(r))}`},"&:focus-visible":{boxShadow:r=>b(r,e.get(r))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:r=>pe(r,"muted","neutral"),backgroundColor:r=>pe(r,"shift-2","neutral"),outline:r=>`1px solid ${pe(r,"border-strong","neutral")}`},"&:invalid":{outline:r=>`${Rt(.5)} solid ${pe(r,"shift-6","error")}`}}}}import{toState as Mn}from"@domphy/core";import{themeColor as X,themeDensity as $t,themeSize as wi,themeSpacing as Ie}from"@domphy/theme";function $u(a={}){var e,l;let o=Mn((e=a.color)!=null?e:"neutral","color"),n=Mn((l=a.accentColor)!=null?l:"primary","accentColor");return{type:"file",_onSchedule:(t,r)=>{t.tagName!=="input"&&console.warn('"inputFile" primitive patch must use input tag'),r.type="file"},style:{display:"inline-flex",alignItems:"center",fontFamily:"inherit",fontSize:t=>wi(t,"inherit"),lineHeight:"inherit",color:t=>X(t,"text",o.get(t)),backgroundColor:t=>X(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${X(t,"border-strong",o.get(t))}`,borderRadius:t=>Ie($t(t)*1.5),height:t=>Ie(6+$t(t)*2),paddingInline:t=>Ie($t(t)*1),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-file-upload-button":{marginTop:t=>Ie($t(t)),fontFamily:"inherit",fontSize:"inherit",border:"none",borderRadius:Ie(1),height:Ie(6),paddingInline:Ie(2),cursor:"pointer",color:t=>X(t,"shift-11",o.get(t)),backgroundColor:t=>X(t,"surface",o.get(t))},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${X(t,"shift-5",n.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.8,cursor:"not-allowed",color:t=>X(t,"muted","neutral"),outline:t=>`1px solid ${X(t,"border-strong","neutral")}`,backgroundColor:t=>X(t,"surface","neutral")},"&[disabled]::-webkit-file-upload-button":{cursor:"not-allowed",color:t=>X(t,"muted","neutral"),backgroundColor:t=>X(t,"shift-3","neutral")}}}}import{toState as Nn}from"@domphy/core";import{themeColor as ze,themeDensity as _t,themeSize as Ti,themeSpacing as st}from"@domphy/theme";function Au(a={}){var e,l;let o=Nn((e=a.color)!=null?e:"neutral","color"),n=Nn((l=a.accentColor)!=null?l:"primary","accentColor");return{type:"number",_onSchedule:(t,r)=>{t.tagName!=="input"&&console.warn('"inputNumber" primitive patch must use input tag'),r.type="number"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:st(10),paddingInlineStart:t=>st(_t(t)*3),paddingInlineEnd:t=>st(_t(t)*1.5),paddingBlock:t=>st(_t(t)*1),borderRadius:t=>st(_t(t)*1.5),fontSize:t=>Ti(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${ze(t,"border-strong",o.get(t))}`,color:t=>ze(t,"text",o.get(t)),backgroundColor:t=>ze(t,"inherit",o.get(t)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{opacity:1},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${ze(t,"shift-5",n.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>ze(t,"shift-2","neutral"),outline:t=>`1px solid ${ze(t,"border-strong","neutral")}`,color:t=>ze(t,"muted","neutral")}}}}import{themeSpacing as Bn}from"@domphy/theme";function ju(){return{role:"group",ariaLabel:"One-time password",style:{display:"flex",alignItems:"center",gap:Bn(2),"& > *":{minWidth:`${Bn(9)}!important`}},_onMount:a=>{let o=a.domElement,n=()=>Array.from(o.querySelectorAll("input")),e=r=>{let s=n(),m=r.target,h=s.indexOf(m);m.value&&h<s.length-1&&s[h+1].focus()},l=r=>{let s=n(),m=r.target,h=s.indexOf(m);r.key==="Backspace"&&!m.value&&h>0&&s[h-1].focus(),r.key==="ArrowLeft"&&h>0&&s[h-1].focus(),r.key==="ArrowRight"&&h<s.length-1&&s[h+1].focus()},t=r=>{var d,y,g;r.preventDefault();let s=(y=(d=r.clipboardData)==null?void 0:d.getData("text"))!=null?y:"",m=n(),h=m.indexOf(r.target),i=h===-1?0:h;[...s].forEach((u,p)=>{m[i+p]&&(m[i+p].value=u)});let c=Math.min(i+s.length-1,m.length-1);(g=m[c])==null||g.focus()};o.addEventListener("input",e),o.addEventListener("keydown",l),o.addEventListener("paste",t),a.addHook("Remove",()=>{o.removeEventListener("input",e),o.removeEventListener("keydown",l),o.removeEventListener("paste",t)})}}}import{rawHtml as Di,toState as Do}from"@domphy/core";import{themeColor as Mt,themeDensity as Nt,themeSize as Pi,themeSpacing as Bt}from"@domphy/theme";var Oi='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"/></svg>',Li='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828"/><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87"/><path d="M3 3l18 18"/></svg>';function Gu(a={}){var l,t;let o=Do((l=a.color)!=null?l:"neutral","color"),n=Do((t=a.accentColor)!=null?t:"primary","accentColor"),e=Do(!1);return{_onInsert:r=>{r.tagName!=="div"&&console.warn('"inputPassword" patch must use div tag')},_onInit:r=>{let s={input:null,type:h=>e.get(h)?"text":"password",ariaLabel:"Password",autocomplete:"current-password",style:{flex:1,minWidth:0,border:"none",outline:"none",backgroundColor:"transparent",padding:0,margin:0,font:"inherit",color:"inherit"}},m={button:h=>Di(e.get(h)?Li:Oi),type:"button",ariaLabel:h=>e.get(h)?"Hide password":"Show password",onClick:()=>e.set(!e.get()),style:{background:"none",border:"none",padding:0,margin:0,cursor:"pointer",color:"inherit",display:"flex",alignItems:"center",flexShrink:0,opacity:.6}};r.children.insert(s),r.children.insert(m)},style:{display:"flex",alignItems:"center",gap:r=>Bt(Nt(r)*1),paddingBlock:r=>Bt(Nt(r)*1),paddingInline:r=>Bt(Nt(r)*3),borderRadius:r=>Bt(Nt(r)*1.5),border:"none",outlineOffset:"-1px",outline:r=>`1px solid ${Mt(r,"border-strong",o.get(r))}`,color:r=>Mt(r,"text",o.get(r)),backgroundColor:r=>Mt(r,"inherit",o.get(r)),fontSize:r=>Pi(r,"inherit"),transition:"outline-color 140ms ease, box-shadow 140ms ease","&:hover:not(:has([disabled])):not(:focus-within)":{outline:r=>`1px solid ${Mt(r,"shift-5",n.get(r))}`},"&:focus-within":{boxShadow:r=>b(r,n.get(r))}}}}import{toState as An}from"@domphy/core";import{themeColor as he,themeSize as Ii,themeSpacing as At}from"@domphy/theme";function Qu(a={}){var e,l;let o=An((e=a.color)!=null?e:"neutral","color"),n=An((l=a.accentColor)!=null?l:"primary","accentColor");return{type:"radio",_onInsert:t=>{if(t.tagName!=="input"){console.warn('"inputRadio" primitive patch must use input tag and radio type');return}},style:{fontSize:t=>Ii(t,"inherit"),color:t=>he(t,"text",o.get(t)),appearance:"none",display:"inline-flex",position:"relative",width:At(6),height:At(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:"50%",lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${he(t,"border-strong",o.get(t))}`,color:t=>he(t,"text",o.get(t)),width:At(4),height:At(4)},"&:hover::before":{backgroundColor:t=>he(t,"hover",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${he(t,"shift-6",n.get(t))}`},"&:checked::after":{content:'""',position:"absolute",inset:"30%",borderRadius:"50%",backgroundColor:t=>he(t,"shift-8",n.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>he(t,"shift-7",n.get(t))},"&:focus-visible":{borderRadius:"50%",boxShadow:t=>b(t,n.get(t))},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>he(t,"shift-4","neutral"),pointerEvents:"none"}}}}import{toState as Hn}from"@domphy/core";import{themeColor as Po,themeSpacing as se}from"@domphy/theme";function rd(a={}){var e,l;let o=Hn((e=a.color)!=null?e:"neutral","color"),n=Hn((l=a.accentColor)!=null?l:"primary","accentColor");return{type:"range",_onInsert:t=>{t.tagName!=="input"&&console.warn('"inputRange" primitive patch must use input tag')},style:{appearance:"none",width:"100%",margin:0,padding:0,height:se(4),background:"transparent",cursor:"pointer","&::-webkit-slider-runnable-track":{height:se(1.5),borderRadius:se(999),backgroundColor:t=>Po(t,"shift-3",o.get(t))},"&::-webkit-slider-thumb":{appearance:"none",width:se(4),height:se(4),borderRadius:se(999),border:"none",marginTop:`calc((${se(1.5)} - ${se(4)}) / 2)`,backgroundColor:t=>Po(t,"shift-9",n.get(t))},"&:hover:not([disabled])::-webkit-slider-thumb":{backgroundColor:t=>Po(t,"shift-10",n.get(t))},borderRadius:se(2),transition:"box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as Fn}from"@domphy/core";import{themeColor as ge,themeDensity as Oo,themeSize as zi,themeSpacing as Ht}from"@domphy/theme";function cd(a={}){var e,l;let o=Fn((e=a.color)!=null?e:"neutral","color"),n=Fn((l=a.accentColor)!=null?l:"primary","accentColor");return{type:"search",_onSchedule:(t,r)=>{t.tagName!=="input"&&console.warn('"inputSearch" primitive patch must use input tag'),r.type="search"},style:{fontFamily:"inherit",fontSize:t=>zi(t,"inherit"),lineHeight:"inherit",color:t=>ge(t,"text",o.get(t)),backgroundColor:t=>ge(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${ge(t,"border-strong",o.get(t))}`,borderRadius:t=>Ht(Oo(t)*1.5),minWidth:Ht(32),paddingInline:t=>Ht(Oo(t)*3),paddingBlock:t=>Ht(Oo(t)*1),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:t=>ge(t,"shift-7",o.get(t))},"&::-webkit-search-decoration":{display:"none"},"&::-webkit-search-cancel-button":{cursor:"pointer"},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${ge(t,"shift-5",n.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>ge(t,"muted","neutral"),backgroundColor:t=>ge(t,"shift-2","neutral"),outline:t=>`1px solid ${ge(t,"border-strong","neutral")}`}}}}import{toState as Vi}from"@domphy/core";import{themeColor as ct,themeSize as jn,themeSpacing as Q}from"@domphy/theme";function hd(a={}){var n;let o=Vi((n=a.accentColor)!=null?n:"primary","accentColor");return{role:"switch",dataTone:"shift-2",type:"checkbox",_onSchedule:e=>{if(e.tagName!=="input"){console.warn('"inputSwitch" primitive patch must use input tag');return}},style:{fontSize:e=>jn(e,"inherit"),backgroundColor:e=>ct(e,"inherit"),color:e=>ct(e,"text"),appearance:"none",position:"relative",display:"inline-flex",width:Q(9),height:Q(6),cursor:"pointer",margin:"0",paddingBlock:Q(1),transition:"box-shadow 140ms ease",borderRadius:Q(999),"&:focus-visible":{boxShadow:e=>b(e,o.get(e))},"&:checked":{"&::before":{backgroundColor:e=>ct(e,"increase-3",o.get(e))},"&::after":{left:`calc(100% - ${Q(3.5)})`}},"&::after":{content:'""',aspectRatio:"1/1",position:"absolute",width:Q(3),height:Q(3),borderRadius:Q(999),left:Q(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",backgroundColor:e=>ct(e,"decrease-3")},"&::before":{content:'""',width:"100%",borderRadius:Q(999),display:"inline-block",fontSize:e=>jn(e,"inherit"),lineHeight:1,backgroundColor:e=>ct(e)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as Wn}from"@domphy/core";import{themeColor as U,themeDensity as Lo,themeSize as Ri,themeSpacing as Ve}from"@domphy/theme";function Sd(a={}){var l,t;let{type:o="text"}=a,n=Wn((l=a.color)!=null?l:"neutral","color"),e=Wn((t=a.accentColor)!=null?t:"primary","accentColor");return{type:o,_onInsert:r=>{r.tagName!=="input"&&console.warn('"inputText" primitive patch must use input tag and text type')},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:Ve(10),paddingInline:r=>Ve(Lo(r)*3),paddingBlock:r=>Ve(Lo(r)*1),borderRadius:r=>Ve(Lo(r)*1.5),fontSize:r=>Ri(r,"inherit"),border:"none",outlineOffset:"-1px",outline:r=>`1px solid ${U(r,"border-strong",n.get(r))}`,color:r=>U(r,"text",n.get(r)),backgroundColor:r=>U(r,"inherit",n.get(r)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:r=>U(r,"shift-7")},"&:not(:placeholder-shown)":{color:r=>U(r,"shift-10")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:r=>`1px solid ${U(r,"shift-5",e.get(r))}`},"&:focus-visible":{boxShadow:r=>b(r,e.get(r))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:r=>U(r,"shift-2","neutral"),outline:r=>`1px solid ${U(r,"border-strong","neutral")}`,color:r=>U(r,"muted","neutral")},"&:invalid:not(:placeholder-shown)":{outline:r=>`${Ve(.5)} solid ${U(r,"shift-6","error")}`},"&[data-status=error]":{outline:r=>`${Ve(.5)} solid ${U(r,"shift-6","error")}`},"&[data-status=warning]":{outline:r=>`${Ve(.5)} solid ${U(r,"shift-6","warning")}`}}}}import{toState as $i}from"@domphy/core";import{themeColor as Io,themeSize as _i,themeSpacing as zo}from"@domphy/theme";function Ed(a={}){var n;let o=$i((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="kbd"&&console.warn('"keyboard" primitive patch must use kbd tag')},style:{fontSize:e=>_i(e,"inherit"),color:e=>Io(e,"text",o.get(e)),backgroundColor:e=>Io(e,"inherit",o.get(e)),paddingBlock:zo(.5),paddingInline:zo(1.5),borderRadius:zo(1),outline:e=>`1px solid ${Io(e,"border-strong",o.get(e))}`}}}import{toState as Kn}from"@domphy/core";import{themeColor as Vo,themeSize as Mi,themeSpacing as Ni}from"@domphy/theme";function Dd(a={}){var e,l;let o=Kn((e=a.color)!=null?e:"neutral","color"),n=Kn((l=a.accentColor)!=null?l:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="label"&&console.warn('"label" primitive patch must use label tag')},style:{display:"inline-flex",alignItems:"center",gap:Ni(2),fontSize:t=>Mi(t,"inherit"),color:t=>Vo(t,"text",o.get(t)),cursor:"pointer","&:focus-within":{color:t=>Vo(t,"shift-10",n.get(t))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",color:t=>Vo(t,"muted","neutral")}}}}import{toState as Yn}from"@domphy/core";import{themeColor as mt,themeSize as Bi,themeSpacing as Ai}from"@domphy/theme";function zd(a={}){var e,l;let o=Yn((e=a.color)!=null?e:"primary","color"),n=Yn((l=a.accentColor)!=null?l:"secondary","accentColor");return{_onInsert:t=>{t.tagName!=="a"&&console.warn('"link" primitive patch must use a tag')},style:{fontSize:t=>Bi(t,"inherit"),backgroundColor:t=>mt(t),color:t=>mt(t,"shift-13",o.get(t)),textDecoration:"none","&:visited":{color:t=>mt(t,"shift-13",n.get(t))},"&:hover:not([disabled])":{color:t=>mt(t,"shift-14",o.get(t)),textDecoration:"underline"},borderRadius:Ai(1),outline:"none",transition:"color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>mt(t,"muted","neutral")}}}}import{toState as Hi}from"@domphy/core";import{themeColor as $,themeDensity as fe,themeSize as qn,themeSpacing as ye}from"@domphy/theme";var Fi={small:{block:.5,inline:2},medium:{block:1,inline:3},large:{block:1.5,inline:4}},ji={small:.5,medium:1,large:1.5};function Nd(a={}){var s,m,h;let o=(s=a.variant)!=null?s:"outline",n=Hi((m=a.color)!=null?m:o==="ghost"?"neutral":"primary","color"),e=(h=a.size)!=null?h:"medium",l=Be[e];if(o==="ghost"){let i=ji[e];return{_onInsert:c=>{c.tagName!=="a"&&console.warn('"linkButton" primitive patch must use a tag')},style:{fontSize:c=>qn(c,l),textDecoration:"none",paddingBlock:c=>ye(fe(c)*i),paddingInline:c=>ye(fe(c)*i),borderRadius:c=>ye(fe(c)*1.5),display:"inline-flex",justifyContent:"center",alignItems:"center",gap:c=>ye(fe(c)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",background:"none",outline:"none",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease",color:c=>$(c,"shift-6",n.get(c)),"&:hover:not([aria-disabled=true])":{color:c=>$(c,"text",n.get(c)),backgroundColor:c=>$(c,"hover",n.get(c)),textDecoration:"none"},"&:active:not([aria-disabled=true])":{color:c=>$(c,"text",n.get(c)),backgroundColor:c=>$(c,"increase-2",n.get(c))},"&:focus-visible":{boxShadow:c=>b(c,n.get(c))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",pointerEvents:"none",color:c=>$(c,"border-strong","neutral")}}}}let t=o==="solid",r=Fi[e];return Y(L({_onInsert:i=>{i.tagName!=="a"&&console.warn('"linkButton" primitive patch must use a tag')}},t?{_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"]}:{}),{style:{fontSize:i=>qn(i,l),textDecoration:"none",paddingBlock:i=>ye(fe(i)*r.block),paddingInline:i=>ye(fe(i)*r.inline),borderRadius:i=>ye(fe(i)*1.5),width:"fit-content",display:"inline-flex",justifyContent:"center",alignItems:"center",gap:i=>ye(fe(i)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:t?"none":i=>`1px solid ${$(i,"border-strong",n.get(i))}`,color:i=>t?$(i,"shift-0","neutral"):$(i,"shift-13",n.get(i)),backgroundColor:i=>t?$(i,"shift-13",n.get(i)):$(i,"inherit",n.get(i)),transition:"background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease","&:hover:not([aria-disabled=true])":{textDecoration:"none",color:i=>t?$(i,"shift-0","neutral"):$(i,"shift-14",n.get(i)),backgroundColor:i=>t?$(i,"shift-14",n.get(i)):$(i,"hover",n.get(i))},"&:active:not([aria-disabled=true])":{backgroundColor:i=>t?$(i,"shift-15",n.get(i)):$(i,"increase-2",n.get(i))},"&:focus-visible":{boxShadow:i=>b(i,n.get(i))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",pointerEvents:"none",backgroundColor:i=>$(i,"shift-2","neutral"),outline:i=>`1px solid ${$(i,"border-strong","neutral")}`,color:i=>$(i,"muted","neutral")}}})}import{toState as Wi}from"@domphy/core";import{themeColor as qe,themeDensity as Re,themeSize as Gn,themeSpacing as $e}from"@domphy/theme";function Wd(a={}){return{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column"}}}function Kd(a={}){let{dense:o=!1}=a;return{style:{display:"flex",alignItems:"center",gap:n=>$e(Re(n)*2),paddingBlock:n=>$e(o?1:Re(n)*2),paddingInline:n=>$e(Re(n)*3),fontSize:n=>Gn(n,"inherit"),color:n=>qe(n,"text")}}}function Yd(a={}){var l,t;let o=Wi((l=a.color)!=null?l:"neutral","color"),n=(t=a.accentColor)!=null?t:"primary",{dense:e=!1}=a;return{style:{cursor:"pointer",appearance:"none",border:"none",background:"transparent",textDecoration:"none",textAlign:"left",display:"flex",alignItems:"center",width:"100%",gap:r=>$e(Re(r)*2),paddingBlock:r=>$e(e?1:Re(r)*2),paddingInline:r=>$e(Re(r)*3),fontSize:r=>Gn(r,"inherit"),color:r=>qe(r,"text",o.get(r)),borderRadius:r=>$e(Re(r)*1.5),transition:"background-color 150ms ease, box-shadow 140ms ease","&:hover:not([disabled])":{backgroundColor:r=>qe(r,"hover",o.get(r))},"&:active:not([disabled])":{backgroundColor:r=>qe(r,"increase-2",o.get(r))},"&[aria-current=page], &[aria-selected=true]":{backgroundColor:r=>qe(r,"shift-3",n),color:r=>qe(r,"shift-12",n)},"&:focus-visible":{boxShadow:r=>b(r,n)},"&[disabled]":{opacity:.5,cursor:"not-allowed"}}}}import{toState as Ki}from"@domphy/core";import{themeColor as Un,themeSize as Yi,themeSpacing as Ro}from"@domphy/theme";function Xd(a={}){var n;let o=Ki((n=a.accentColor)!=null?n:"highlight","accentColor");return{_onInsert:e=>{e.tagName!=="mark"&&console.warn('"mark" primitive patch must use mark tag')},dataTone:"shift-2",style:{display:"inline-flex",alignItems:"center",fontSize:e=>Yi(e,"inherit"),color:e=>Un(e,"text",o.get(e)),backgroundColor:e=>Un(e,"inherit",o.get(e)),height:Ro(6),borderRadius:Ro(1),paddingInline:Ro(1.5)}}}import{toState as qi}from"@domphy/core";import{themeColor as be,themeDensity as ut,themeSize as Xn,themeSpacing as Ge}from"@domphy/theme";function op(a={items:[]}){var r;let{items:o=[],selectable:n=!0,color:e="neutral",accentColor:l="primary"}=a,t=qi((r=a.activeKey)!=null?r:null);return{role:"menu",dataTone:"shift-0",_onSchedule:(s,m)=>{if(o.length===0)return;let h=s.nodeId,i=o.map((c,d)=>{var g;let y=(g=c.key)!=null?g:d;return Y(L({button:typeof c.label=="string"?[{span:c.label}]:[c.label],_key:y,type:"button",id:`menuitem${h}${y}`,role:"menuitem"},n?{ariaCurrent:u=>t.get(u)===y||void 0}:{}),{onClick:()=>{var u;n&&t.set(y),(u=c.onClick)==null||u.call(c)},onKeyDown:u=>{var k;let p=u.key;if(p==="Enter"||p===" "){u.preventDefault(),u.target.click();return}if(!["ArrowDown","ArrowUp","Home","End"].includes(p))return;u.preventDefault();let v=o.map((w,I)=>{var V;return(V=w.key)!=null?V:I}),E=v.indexOf(y),x=E;p==="ArrowDown"?x=(E+1)%v.length:p==="ArrowUp"?x=(E-1+v.length)%v.length:p==="Home"?x=0:p==="End"&&(x=v.length-1),(k=document.getElementById(`menuitem${h}${v[x]}`))==null||k.focus()},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:Ge(2),width:"100%",fontSize:u=>Xn(u,"inherit"),height:u=>Ge(6+ut(u)*2),paddingInline:u=>Ge(ut(u)*3),border:"none",outline:"none",color:u=>be(u,"text",e),backgroundColor:u=>be(u,"inherit",e),transition:"background-color 140ms ease, box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled]):not([aria-current=true])":{backgroundColor:u=>be(u,"hover",e)},"&[aria-current=true]":{backgroundColor:u=>be(u,"shift-3",l),color:u=>be(u,"shift-13",l)},"&:focus-visible":{boxShadow:u=>b(u,l)}}})});m[s.tagName]=i},style:{display:"flex",flexDirection:"column",paddingBlock:s=>Ge(ut(s)*2),paddingInline:s=>Ge(ut(s)*2),fontSize:s=>Xn(s,"inherit"),backgroundColor:s=>be(s,"inherit",e),color:s=>be(s,"text",e),borderRadius:s=>Ge(ut(s)*2),outline:s=>`1px solid ${be(s,"border-strong",e)}`,outlineOffset:"-1px",boxShadow:O("medium")}}}var $o=a=>!!a&&typeof a.get=="function"&&a._isState===!0,ee=a=>{let o={},n=[];for(let e in a){let l=a[e];e==="x"?n.push(`translateX(${typeof l=="number"?`${l}px`:l})`):e==="y"?n.push(`translateY(${typeof l=="number"?`${l}px`:l})`):e==="scale"?n.push(`scale(${l})`):e==="rotate"?n.push(`rotate(${typeof l=="number"?`${l}deg`:l})`):o[e]=l}return n.length&&(o.transform=n.join(" ")),o};function Zn(){if(typeof matchMedia!="function")return!1;try{return matchMedia("(prefers-reduced-motion: reduce)").matches}catch(a){return!1}}function ap(a={}){var r,s,m,h;let{initial:o,animate:n,exit:e,transition:l={}}=a,t={duration:(r=l.duration)!=null?r:300,delay:(s=l.delay)!=null?s:0,easing:(m=l.easing)!=null?m:"ease",iterations:(h=l.iterations)!=null?h:1,fill:"both"};return{_onMount:i=>{let c=i.domElement;if(!c||typeof c.animate!="function")return;let d=$o(n)?n.get():n;if(Zn()){if(d?Object.assign(c.style,ee(d)):o&&Object.assign(c.style,ee(o)),$o(n)){let y=n.addListener(g=>{Object.assign(c.style,ee(g))});i.setMetadata("motionRelease",y)}return}if(d?c.animate(o?[ee(o),ee(d)]:[ee(d)],t):o&&Object.assign(c.style,ee(o)),$o(n)){let y=n.addListener(g=>{c.animate([ee(g)],t)});i.setMetadata("motionRelease",y)}},_onBeforeRemove:(i,c)=>{let d=i.domElement;if(!d||!e||typeof d.animate!="function")return c();if(Zn())return Object.assign(d.style,ee(e)),c();d.animate([ee(e)],t).finished.then(c,c)},_onRemove:i=>{let c=i.getMetadata("motionRelease");c==null||c()}}}import{toState as Gi}from"@domphy/core";import{themeColor as Jn,themeSize as Ui,themeSpacing as Xi}from"@domphy/theme";function cp(a={}){var n;let o=Gi((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="ol"&&console.warn('"orderedList" primitive patch must use ol tag')},style:{fontSize:e=>Ui(e,"inherit"),backgroundColor:e=>Jn(e),color:e=>Jn(e,"text",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:Xi(3),listStyleType:"decimal",listStylePosition:"outside"}}}import{toState as Zi}from"@domphy/core";import{themeColor as _e,themeDensity as dt,themeSize as Ji,themeSpacing as Ue}from"@domphy/theme";function Qi(a,o){if(o<=7)return Array.from({length:o},(t,r)=>r+1);let n=[1];a>3&&n.push("...");let e=Math.max(2,a-1),l=Math.min(o-1,a+1);for(let t=e;t<=l;t++)n.push(t);return a<o-2&&n.push("..."),n.push(o),n}function hp(a){var s;let{total:o,color:n="neutral",accentColor:e="primary"}=a,l=Zi((s=a.value)!=null?s:1),t={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:m=>Ue(6+dt(m)*2),height:m=>Ue(6+dt(m)*2),paddingInline:m=>Ue(dt(m)*2),borderRadius:m=>Ue(dt(m)*1.5),border:"none",cursor:"pointer",fontSize:m=>Ji(m,"inherit"),backgroundColor:"transparent",color:m=>_e(m,"shift-13",n),transition:"background-color 140ms ease, box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled])":{color:m=>_e(m,"shift-13",n),backgroundColor:m=>_e(m,"hover",n)},"&:focus-visible":{boxShadow:m=>b(m,e)},"&[disabled]":{opacity:.4,cursor:"not-allowed"}},r=Y(L({},t),{backgroundColor:m=>_e(m,"shift-13",e),color:m=>_e(m,"shift-0","neutral"),fontWeight:"bold",cursor:"default","&:hover:not([disabled])":{backgroundColor:m=>_e(m,"shift-13",e)}});return{role:"navigation",ariaLabel:"Pagination",_doctorDisable:"inline-typography",_onInsert:m=>{m.tagName!=="div"&&console.warn('"pagination" patch must use div tag')},_onInit:m=>{let h={div:i=>{let c=l.get(i),d=[];d.push({button:"\u2039",_key:"prev",type:"button",ariaLabel:"Previous page",disabled:c<=1,onClick:()=>c>1&&l.set(c-1),style:t});let y=0;for(let g of Qi(c,o))if(g==="...")d.push({span:"\u2026",_key:`ellipsis-${y++}`,ariaHidden:"true",style:{display:"inline-flex",alignItems:"center",paddingInline:u=>Ue(dt(u)*2),color:u=>_e(u,"shift-7",n)}});else{let u=g===c;d.push({button:String(g),_key:`page-${g}`,type:"button",ariaLabel:`Page ${g}`,ariaCurrent:u?"page":void 0,disabled:u,onClick:()=>l.set(g),style:u?r:t})}return d.push({button:"\u203A",_key:"next",type:"button",ariaLabel:"Next page",disabled:c>=o,onClick:()=>c<o&&l.set(c+1),style:t}),d},style:{display:"flex",alignItems:"center",gap:Ue(1)}};m.children.insert(h)},style:{display:"inline-flex"}}}import{toState as el}from"@domphy/core";import{themeColor as tl,themeDensity as ol,themeSpacing as nl}from"@domphy/theme";function Sp(a={}){var l;let{padding:o=4,divider:n=!1}=a,e=el((l=a.color)!=null?l:"neutral","color");return{style:L({padding:t=>nl(ol(t)*o)},n?{borderBottom:t=>`1px solid ${tl(t,"border",e.get(t))}`}:{})}}import{toState as rl}from"@domphy/core";import{themeColor as al,themeSize as il}from"@domphy/theme";function kp(a={}){var n;let o=rl((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="p"&&console.warn('"paragraph" primitive patch must use p tag')},style:{fontSize:e=>il(e,"inherit"),color:e=>al(e,"text",o.get(e)),lineHeight:1.5,marginTop:0,marginBottom:0}}}import{merge as ll,toState as Qn}from"@domphy/core";import{themeColor as er,themeDensity as sl,themeSpacing as cl}from"@domphy/theme";function Lp(a){var c;let{open:o=!1,placement:n="bottom",openOn:e="click"}=a,l=Qn(o),t=Qn(n),{show:r,hide:s,anchorPartial:m}=J({kind:"popover",open:l,placement:t,content:a.content,keepOpenOnContentHover:e==="hover"}),h={role:"dialog",dataTone:"shift-14",style:{backgroundColor:d=>er(d,"inherit"),borderRadius:d=>cl(sl(d)*2),outline:d=>`1px solid ${er(d,"border-strong")}`,outlineOffset:"-1px",boxShadow:O("medium")}};return(c=a.content).$||(c.$=[]),a.content.$.push(h),ll(m,{ariaHaspopup:"dialog",ariaExpanded:d=>l.get(d),ariaControls:d=>d!=null&&d.elementNode?He("popover",d.elementNode):void 0,onMouseEnter:(d,y)=>e==="hover"&&r(y),onMouseLeave:(d,y)=>e==="hover"&&s(y),onClick:(d,y)=>{e==="click"&&(l.get()?s(y):r(y))},onKeyDown:(d,y)=>{d.key==="Escape"&&l.get()&&s(y)},onFocus:(d,y)=>e==="hover"&&r(y),onBlur:(d,y)=>{let g=d.relatedTarget,p=y.getRoot().domElement.querySelector(`#${He("popover",y)}`);g&&(p!=null&&p.contains(g))||s(y)}}),m}import{toState as ml}from"@domphy/core";import{themeColor as Ft,themeSize as ul,themeSpacing as _o}from"@domphy/theme";function tr(a={}){let{placement:o="bottom-end",color:n="neutral",sideOffset:e=_o(6),bordered:l=!0}=a,t=ml(o),r={top:"bottom",bottom:"top",left:"right",right:"left","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},s=i=>{var c;return(c=r[t.get(i)])!=null?c:r["bottom-end"]},m=i=>i.includes("start")?e:i.includes("end")?"auto":"50%",h=i=>i.includes("end")?e:i.includes("start")?"auto":"50%";return{style:{fontSize:i=>ul(i),backgroundColor:i=>Ft(i),color:i=>Ft(i,"text",n),position:"relative","&::after":{content:'""',position:"absolute",width:_o(1.5),height:_o(1.5),backgroundColor:i=>Ft(i,"inherit",n),borderWidth:l?"1px":0,borderColor:i=>Ft(i,"border-strong",n),borderTopStyle:i=>{let c=s(i);return c.includes("top")||c.includes("right")?"solid":"none"},borderBottomStyle:i=>{let c=s(i);return c.includes("bottom")||c.includes("left")?"solid":"none"},borderLeftStyle:i=>{let c=s(i);return c.includes("top")||c.includes("left")?"solid":"none"},borderRightStyle:i=>{let c=s(i);return c.includes("bottom")||c.includes("right")?"solid":"none"},top:i=>{let c=s(i);return c.includes("top")?0:c.includes("bottom")?"auto":m(c)},right:i=>{let c=s(i);return c.includes("right")?0:c.includes("left")?"auto":h(c)},bottom:i=>{let c=s(i);return c.includes("bottom")?0:c.includes("top")?"auto":h(c)},left:i=>{let c=s(i);return c.includes("left")?0:c.includes("right")?"auto":m(c)},transform:i=>{let c=s(i),d=c.includes("right")||c.includes("end")&&!c.includes("left")?"50%":"-50%",y=c.includes("bottom")||c.includes("end")&&!c.includes("top")?"50%":"-50%";return`translate(${d},${y}) rotate(45deg)`}}}}}import{toState as dl}from"@domphy/core";import{themeColor as or,themeDensity as Mo,themeSize as pl,themeSpacing as No}from"@domphy/theme";function Mp(a={}){var n;let o=dl((n=a.color)!=null?n:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="pre"&&console.warn('"preformated" primitive patch must use pre tag')},style:{fontSize:e=>pl(e,"inherit"),color:e=>or(e,"text",o.get(e)),backgroundColor:e=>or(e,"inherit",o.get(e)),border:"none",paddingBlock:e=>No(Mo(e)*2),paddingInline:e=>No(Mo(e)*3),borderRadius:e=>No(Mo(e)*2)}}}import{toState as nr}from"@domphy/core";import{themeColor as jt,themeSpacing as Wt}from"@domphy/theme";function Hp(a={}){var e,l;let o=nr((e=a.color)!=null?e:"neutral","color"),n=nr((l=a.accentColor)!=null?l:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="progress"&&console.warn('"progress" primitive patch must use progress tag')},dataTone:"shift-3",style:{appearance:"none",width:"100%",height:Wt(2),border:0,borderRadius:Wt(999),overflow:"hidden",backgroundColor:t=>jt(t,"inherit",o.get(t)),color:t=>jt(t,"text",o.get(t)),"&::-webkit-progress-bar":{backgroundColor:t=>jt(t,"inherit",o.get(t)),borderRadius:Wt(999)},"&::-webkit-progress-value":{backgroundColor:t=>jt(t,"shift-9",n.get(t)),borderRadius:Wt(999),transition:"width 220ms ease"}}}}import{rawHtml as hl,toState as rr}from"@domphy/core";import{themeColor as gl,themeSize as fl,themeSpacing as ar}from"@domphy/theme";var yl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>',bl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/></svg>';function Yp(a={}){var m,h;let{max:o=5,readOnly:n=!1,onChange:e}=a,l=(m=a.color)!=null?m:"warning",t=rr((h=a.value)!=null?h:0),r=rr(0),s=i=>{let c=r.get(i);return c>0?c:t.get(i)};return{role:"group",ariaLabel:"Rating",style:{display:"inline-flex",gap:ar(.5),fontSize:i=>fl(i,"increase-1"),cursor:n?"default":"pointer",color:i=>gl(i,"muted",l)},_onInit:i=>{for(let c=1;c<=o;c++){let d=c,y=n?{}:{onClick:()=>{let u=d===t.get()?0:d;t.set(u),e==null||e(u),r.set(0)},onMouseEnter:()=>r.set(d),onMouseLeave:()=>r.set(0),onKeyDown:u=>{var x,k;let p=t.get(),v=p;if(u.key==="ArrowRight"||u.key==="ArrowUp")v=Math.min(o,p+1),u.preventDefault();else if(u.key==="ArrowLeft"||u.key==="ArrowDown")v=Math.max(0,p-1),u.preventDefault();else return;t.set(v),e==null||e(v);let E=v>0?v-1:0;(k=(x=i.domElement)==null?void 0:x.children[E])==null||k.focus()}},g=Y(L({button:u=>hl(d<=s(u)?yl:bl),_key:d,type:"button",ariaLabel:`${d} star${d>1?"s":""}`},y),{style:{background:"none",border:"none",outline:"none",borderRadius:ar(1),padding:0,cursor:"inherit",color:"inherit",fontSize:"inherit",display:"flex",alignItems:"center",transition:"box-shadow 140ms ease","&:focus-visible":{boxShadow:u=>b(u,l)}}});i.children.insert(g)}}}}import{toState as Bo}from"@domphy/core";import{themeColor as Ao,themeSpacing as ir}from"@domphy/theme";function Zp(a={}){var m,h,i;let{size:o=16,thickness:n=.25}=a,e=Bo((m=a.value)!=null?m:0,"value"),l=Bo((h=a.color)!=null?h:"primary","color"),t=Bo((i=a.trackColor)!=null?i:"neutral","trackColor"),r=Math.round((1-n)*100),s=`radial-gradient(circle closest-side, transparent ${r}%, black ${r}%)`;return{role:"progressbar",ariaValuenow:c=>String(Math.round(e.get(c))),ariaValuemin:"0",ariaValuemax:"100",_onInsert:c=>{c.tagName!=="div"&&console.warn('"ringProgress" patch must use div tag')},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:ir(o),height:ir(o),borderRadius:"50%",color:c=>Ao(c,"shift-9",l.get(c)),background:c=>`conic-gradient(from -90deg, ${Ao(c,"shift-9",l.get(c))} ${e.get(c)}%, ${Ao(c,"shift-3",t.get(c))} 0%)`,WebkitMask:s,mask:s}}}import{themeDensity as Sl,themeSpacing as xl}from"@domphy/theme";function lr(a={}){let{gap:o=4,align:n="center",justify:e,wrap:l=!1}=a;return{style:L(L({display:"flex",alignItems:n,gap:t=>xl(Sl(t)*o)},e?{justifyContent:e}:{}),l?{flexWrap:"wrap"}:{})}}import{toState as vl}from"@domphy/core";import{themeColor as Kt,themeSpacing as Yt}from"@domphy/theme";function rh(a={}){var n;let o=vl((n=a.color)!=null?n:"neutral","color");return{style:{overflow:"auto",color:e=>Kt(e,"text",o.get(e)),"&::-webkit-scrollbar":{width:Yt(2),height:Yt(2)},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e=>Kt(e,"shift-5",o.get(e)),borderRadius:Yt(999),border:`${Yt(.5)} solid transparent`,backgroundClip:"content-box"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:e=>Kt(e,"shift-7",o.get(e))},scrollbarWidth:"thin",scrollbarColor:e=>`${Kt(e,"shift-5",o.get(e))} transparent`}}}import{toState as Cl}from"@domphy/core";import{themeColor as Me,themeSize as El,themeSpacing as Se}from"@domphy/theme";function mh(a={items:[]}){var t,r,s;let{items:o=[],color:n="neutral",accentColor:e="primary"}=a,l=Cl((s=(r=a.value)!=null?r:(t=o[0])==null?void 0:t.key)!=null?s:"");return{role:"radiogroup",_context:{segmented:{value:l}},_onSchedule:(m,h)=>{let i=o.map((c,d)=>{var u;let y=(u=c.key)!=null?u:String(d);return{button:[typeof c.label=="string"?{span:c.label}:c.label],_key:y,type:"button",role:"radio",ariaChecked:p=>l.get(p)===y,onClick:()=>l.set(y),style:{cursor:"pointer",fontSize:p=>El(p,"inherit"),height:Se(6),paddingBlock:Se(1),paddingInline:Se(3),border:"none",borderRadius:Se(10),color:p=>Me(p,"text",n),backgroundColor:"transparent",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-checked=true])":{backgroundColor:p=>Me(p,"shift-3",n)},"&:active:not([disabled]):not([aria-checked=true])":{backgroundColor:p=>Me(p,"increase-2",n)},"&[aria-checked=true]":{backgroundColor:p=>Me(p,"shift-0",e),color:p=>Me(p,"shift-10",e),boxShadow:O("low")},"&:focus-visible":{boxShadow:p=>b(p,e)},"&[aria-checked=true]:focus-visible":{boxShadow:p=>`${O("low")}, ${b(p,e)}`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}});h[m.tagName]=i},dataTone:"shift-2",style:{display:"inline-flex",paddingBlock:Se(1),paddingInline:Se(1),gap:Se(.5),borderRadius:Se(10),backgroundColor:m=>Me(m,"inherit",n),color:m=>Me(m,"text",n)}}}import{themeColor as ce,themeColorToken as kl,themeDensity as pt,themeSize as wl,themeSpacing as xe}from"@domphy/theme";function hh(a={}){let{color:o="neutral",accentColor:n="primary"}=a;return{_onInsert:e=>{e.tagName!=="select"&&console.warn('"select" primitive patch must use select tag')},style:{appearance:"none",fontFamily:"inherit",fontSize:e=>wl(e,"inherit"),lineHeight:"inherit",color:e=>ce(e,"text",o),backgroundColor:e=>ce(e,"inherit",o),border:"none",outlineOffset:"-1px",outline:e=>`1px solid ${ce(e,"border-strong",o)}`,borderRadius:e=>xe(pt(e)*1.5),paddingBlock:e=>xe(pt(e)*1),paddingLeft:e=>xe(pt(e)*3),paddingRight:e=>xe(pt(e)*5),backgroundImage:e=>{let l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="${kl(e,"shift-7")}" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(l)}")`},backgroundRepeat:"no-repeat",backgroundPosition:`right ${xe(2)} center`,backgroundSize:`${xe(2.5)} ${xe(1.5)}`,transition:"outline-color 140ms ease, box-shadow 140ms ease","&:not([multiple])":{height:e=>xe(6+pt(e)*2)},"&:hover:not([disabled]):not([aria-busy=true])":{outline:e=>`1px solid ${ce(e,"shift-5",n)}`},"&:focus-visible":{boxShadow:e=>b(e,n)},"& optgroup":{color:e=>ce(e,"shift-11",o)},"& option[disabled]":{color:e=>ce(e,"shift-7","neutral")},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:e=>ce(e,"muted","neutral"),outline:e=>`1px solid ${ce(e,"border-strong","neutral")}`,backgroundColor:e=>ce(e,"shift-2","neutral")}}}}import{merge as sr,toState as Ho}from"@domphy/core";import{themeColor as ht,themeDensity as qt,themeSize as Tl,themeSpacing as Xe}from"@domphy/theme";function Ch(a){let{options:o=[],placement:n="bottom",color:e="neutral",open:l=!1,multiple:t=!1}=a,r=Ho(a.value),s=Ho(l),{show:m,hide:h,anchorPartial:i}=J({kind:"selectBox",open:s,placement:Ho(n),content:a.content}),c={onClick:(u,p)=>!t&&h(p),dataTone:"shift-14",style:{backgroundColor:u=>ht(u,"inherit"),borderRadius:u=>Xe(qt(u)*2),outline:u=>`1px solid ${ht(u,"border-strong")}`,outlineOffset:"-1px",boxShadow:O("medium")}};sr(a.content,c);let d={div:u=>{let p=r.get(u),v=Array.isArray(p)?p:[p];return o.filter(x=>v.includes(x.value)).map(x=>({span:x.label,$:[Tt({color:e,removable:t})],_key:x.value,_onRemove:k=>{let w=r.get(),V=(Array.isArray(w)?w:[w]).filter(P=>P!==x.value);t?r.set(V):r.set(V[0])}}))},style:{display:"flex",flexWrap:"wrap",gap:Xe(1),flex:1}},y=u=>s.get()?h(u):m(u),g={_onInsert:u=>{u.tagName!=="div"&&console.warn('"selectBox" patch must use div tag')},_onInit:u=>u.children.insert(d),onClick:(u,p)=>y(p),tabindex:0,role:"button",ariaExpanded:u=>s.get(u),ariaHaspopup:"listbox",onKeyDown:(u,p)=>{let v=u.key;if(v==="Escape"){h(p);return}if(v==="Enter"||v===" "){u.preventDefault(),y(p);return}v==="ArrowDown"&&!s.get()&&(u.preventDefault(),m(p))},style:{cursor:"pointer",display:"flex",alignItems:"center",minHeight:u=>Xe(6+qt(u)*2),minWidth:Xe(32),outlineOffset:"-1px",outline:u=>`1px solid ${ht(u,"border-strong","neutral")}`,paddingInline:u=>Xe(qt(u)*2),borderRadius:u=>Xe(qt(u)*1.5),fontSize:u=>Tl(u,"inherit"),color:u=>ht(u,"text",e),backgroundColor:u=>ht(u,"inherit",e),transition:"background-color 140ms ease, outline-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:u=>b(u,e)}}};return sr(i,g),i}import{themeColor as gt,themeDensity as cr,themeSize as Dl,themeSpacing as mr}from"@domphy/theme";function Th(a={}){let{accentColor:o="primary",color:n="neutral",value:e=null}=a;return{role:"option",ariaSelected:t=>{var m;let r=(m=t==null?void 0:t.elementNode)==null?void 0:m.getContext("select");if(!r)return;let s=r.value.get(t);return r.multiple?s.includes(e):s===e},onClick:(t,r)=>{let s=r.getContext("select");if(!s)return;let m=s.value,h=m.get();s.multiple?h.includes(e)?m.set(h.filter(i=>i!==e)):m.set(h.concat([e])):h!==e&&m.set(e)},_onInit:t=>{t.tagName!=="div"&&console.warn('"selectItem" patch must use div tag')},style:{cursor:"pointer",display:"flex",alignItems:"center",fontSize:t=>Dl(t,"inherit"),height:t=>mr(6+cr(t)*2),paddingInline:t=>mr(cr(t)*3),border:"none",outline:"none",color:t=>gt(t,"text",n),backgroundColor:t=>gt(t,"inherit",n),"&:hover:not([disabled]):not([aria-selected=true])":{backgroundColor:t=>gt(t,"hover",n)},"&[aria-selected=true]":{backgroundColor:t=>gt(t,"shift-6",o),color:t=>gt(t,"shift-11")},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,o)}}}}import{toState as Pl}from"@domphy/core";import{themeColor as ur,themeDensity as dr,themeSize as Ol,themeSpacing as pr}from"@domphy/theme";function Lh(a={}){var r;let{color:o="neutral",multiple:n=!1}=a,e=Pl((r=a.value)!=null?r:n?[]:null),l={div:s=>{let m=e.get(s);return(Array.isArray(m)?m:[m]).map(i=>({input:null,type:"hidden",name:a.name,value:i==null?"":String(i)}))},ariaHidden:"true",hidden:!0};return{dataTone:"shift-0",role:"listbox",ariaLabel:"Options",ariaMultiselectable:n?"true":void 0,_context:{select:{value:e,multiple:n}},_onInit:s=>{s.tagName!=="div"&&console.warn('"selectList" patch must use a div tag'),s.children.insert(l)},style:{display:"flex",flexDirection:"column",paddingBlock:s=>pr(dr(s)*2),paddingInline:s=>pr(dr(s)*2),fontSize:s=>Ol(s,"inherit"),backgroundColor:s=>ur(s,"inherit",o),color:s=>ur(s,"text",o)}}}import{hashString as Ll,toState as Il}from"@domphy/core";import{themeColor as ft,themeSize as zl,themeSpacing as hr}from"@domphy/theme";function Rh(a={}){var l;let o=Il((l=a.color)!=null?l:"neutral","color"),n={"0%":{backgroundPosition:"200% 0"},"100%":{backgroundPosition:"-200% 0"}},e=Ll(JSON.stringify(n));return{ariaHidden:"true",dataTone:"shift-1",style:{fontSize:t=>zl(t),color:t=>ft(t,"text",o.get(t)),height:hr(6),display:"block",borderRadius:hr(1),backgroundColor:t=>ft(t,"inherit",o.get(t)),backgroundImage:t=>`linear-gradient(90deg, ${ft(t,"inherit",o.get(t))} 0%, ${ft(t,"shift-2",o.get(t))} 50%, ${ft(t,"inherit",o.get(t))} 100%)`,backgroundSize:"200% 100%",animation:`${e} 1.6s ease-in-out infinite`,[`@keyframes ${e}`]:n}}}import{toState as Vl}from"@domphy/core";import{themeColor as Rl,themeSize as $l}from"@domphy/theme";function Nh(a={}){var n;let o=Vl((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="small"&&console.warn('"small" patch must use small tag')},dataSize:"decrease-1",style:{fontSize:e=>$l(e,"inherit"),color:e=>Rl(e,"shift-10",o.get(e))}}}import{hashString as _l,toState as Ml}from"@domphy/core";import{themeColor as Gt,themeSize as Nl,themeSpacing as Fo}from"@domphy/theme";var fr={to:{transform:"rotate(360deg)"}},gr=_l(JSON.stringify(fr));function Fh(a={}){var n;let o=Ml((n=a.color)!=null?n:"neutral","color");return{role:"status",ariaLabel:"loading",_onInsert:e=>{e.tagName!=="span"&&console.warn('"spinner" patch must use span tag')},style:{fontSize:e=>Nl(e),backgroundColor:e=>Gt(e),color:e=>Gt(e,"text",o.get(e)),display:"inline-block",margin:0,flexShrink:0,width:Fo(6),height:Fo(6),borderRadius:"50%",border:e=>`${Fo(.5)} solid ${Gt(e,"border-strong",o.get(e))}`,borderTopColor:e=>Gt(e,"shift-9",o.get(e)),boxSizing:"border-box",padding:0,animation:`${gr} 0.7s linear infinite`,[`@keyframes ${gr}`]:fr}}}import{merge as Bl,toState as Al}from"@domphy/core";import{themeColor as Ut,themeSpacing as jo}from"@domphy/theme";function qh(a={}){let{direction:o="horizontal",defaultSize:n=50,min:e=10,max:l=90}=a;return{_onSchedule:(t,r)=>{Bl(r,{_context:{splitter:{direction:o,size:Al(n),min:e,max:l,panelCount:0}}})},style:{display:"flex",flexDirection:o==="horizontal"?"row":"column",overflow:"hidden"}}}function Gh(){return{_onMount:a=>{let o=a.getContext("splitter");if(!o){console.warn('"splitterPanel" patch must be used inside a "splitter"');return}let n=a.domElement,e=o.direction==="horizontal"?"width":"height",l=o.panelCount++===0,t=s=>{n.style[e]=`${l?s:100-s}%`};t(o.size.get()),n.style.flexShrink="0",n.style.overflow="auto";let r=o.size.addListener(t);a.addHook("Remove",r)}}}function Uh(){return{role:"separator",tabindex:0,_onMount:a=>{let o=a.getContext("splitter");if(!o){console.warn('"splitterHandle" patch must be used inside a "splitter"');return}let n=a.domElement,e=o.direction==="horizontal";n.style.cursor=e?"col-resize":"row-resize",n.setAttribute("aria-orientation",e?"vertical":"horizontal"),n.setAttribute("aria-valuemin",String(o.min)),n.setAttribute("aria-valuemax",String(o.max)),n.setAttribute("aria-valuenow",String(Math.round(o.size.get())));let l=o.size.addListener(m=>{n.setAttribute("aria-valuenow",String(Math.round(m)))}),t=m=>{let h=m.shiftKey?10:1,i=null;e?m.key==="ArrowRight"?i=Math.min(o.size.get()+h,o.max):m.key==="ArrowLeft"&&(i=Math.max(o.size.get()-h,o.min)):m.key==="ArrowDown"?i=Math.min(o.size.get()+h,o.max):m.key==="ArrowUp"&&(i=Math.max(o.size.get()-h,o.min)),m.key==="Home"?i=o.min:m.key==="End"&&(i=o.max),i!==null&&(m.preventDefault(),o.size.set(i))},r=null,s=m=>{m.preventDefault();let h=n.parentElement,i=d=>{let y=h.getBoundingClientRect(),g=e?(d.clientX-y.left)/y.width*100:(d.clientY-y.top)/y.height*100;o.size.set(Math.min(Math.max(g,o.min),o.max))},c=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),r=null};r=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),r=null},document.addEventListener("mousemove",i),document.addEventListener("mouseup",c)};n.addEventListener("keydown",t),n.addEventListener("mousedown",s),a.addHook("Remove",()=>{r==null||r(),l(),n.removeEventListener("keydown",t),n.removeEventListener("mousedown",s)})},dataTone:"shift-2",style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:a=>Ut(a,"inherit"),color:a=>Ut(a,"text"),"&:hover":{backgroundColor:a=>Ut(a,"increase-1")},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:a=>b(a,"primary")},"&::after":{content:'""',width:jo(1),height:jo(1),borderRadius:jo(999),backgroundColor:a=>Ut(a,"shift-4")}}}}import{themeDensity as Hl,themeSpacing as Fl}from"@domphy/theme";function Jh(a={}){let{gap:o=3,align:n}=a;return{style:L({display:"flex",flexDirection:"column",gap:e=>Fl(Hl(e)*o)},n?{alignItems:n}:{})}}import{toState as jl}from"@domphy/core";import{themeColor as A,themeSize as yr,themeSpacing as ve}from"@domphy/theme";function ng(a={items:[]}){var r;let{items:o=[],direction:n="horizontal",color:e="neutral",accentColor:l="primary"}=a,t=jl((r=a.current)!=null?r:0);return{_doctorDisable:"inline-typography",_context:{steps:{current:t,direction:n,color:e,accentColor:l}},_onSchedule:(s,m)=>{let h=o.map((i,c)=>{var y;return{li:[typeof i.label=="string"?{span:i.label}:i.label],_key:(y=i.key)!=null?y:c,dataStep:String(c+1),dataStatus:g=>{let u=t.get(g);return c<u?"done":c===u?"active":"pending"},ariaCurrent:g=>t.get(g)===c?"step":void 0,style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:ve(1),flex:"1",fontSize:g=>yr(g,"decrease-1"),textAlign:"center","&::before":{content:"attr(data-step)",display:"flex",alignItems:"center",justifyContent:"center",width:ve(6),height:ve(6),borderRadius:ve(999),fontSize:g=>yr(g,"decrease-1"),fontWeight:"bold",flexShrink:"0",border:g=>`2px solid ${A(g,"border-strong",e)}`,backgroundColor:g=>A(g,"inherit"),color:g=>A(g,"muted"),transition:"background-color 200ms ease, color 200ms ease, border-color 200ms ease",zIndex:"1"},"&:not(:first-child)::after":{content:'""',position:"absolute",top:ve(3),right:`calc(50% + ${ve(3)})`,left:`calc(-50% + ${ve(3)})`,height:"2px",backgroundColor:g=>A(g,"shift-3",e),zIndex:"0"},"&[data-status=active]::before":{backgroundColor:g=>A(g,"shift-9",l),borderColor:g=>A(g,"shift-9",l),color:g=>A(g,"shift-0",l),boxShadow:g=>`0 0 0 3px ${A(g,"shift-3",l)}`},"&[data-status=done]::before":{content:'"\u2713"',backgroundColor:g=>A(g,"shift-9",l),borderColor:g=>A(g,"shift-9",l),color:g=>A(g,"shift-0",l)},"&[data-status=done]:not(:first-child)::after":{backgroundColor:g=>A(g,"shift-9",l)},"&[data-status=active]:not(:first-child)::after":{backgroundColor:g=>A(g,"shift-9",l)},"&[data-status=pending]":{color:g=>A(g,"muted")},"&[data-status=active]":{color:g=>A(g,"shift-11",l),fontWeight:"bold"},"&[data-status=done]":{color:g=>A(g,"text",e)}}}});m[s.tagName]=h},style:{display:"flex",flexDirection:n==="vertical"?"column":"row",alignItems:n==="vertical"?"flex-start":"center",gap:ve(2),listStyle:"none",margin:"0",padding:"0"}}}import{toState as Wl}from"@domphy/core";import{themeColor as br,themeSize as Kl}from"@domphy/theme";function lg(a={}){var n;let o=Wl((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="strong"&&console.warn('"strong" primitive patch must use strong tag')},style:{fontSize:e=>Kl(e,"inherit"),fontWeight:"bold",color:e=>br(e,"shift-11",o.get(e)),backgroundColor:e=>br(e)}}}import{toState as Yl}from"@domphy/core";import{themeColor as ql,themeSize as Gl}from"@domphy/theme";function ug(a={}){var n;let o=Yl((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="sub"&&console.warn('"subscript" primitive patch must use sub tag')},style:{fontSize:e=>Gl(e,"decrease-1"),verticalAlign:"sub",lineHeight:0,color:e=>ql(e,"text",o.get(e))}}}import{toState as Ul}from"@domphy/core";import{themeColor as Xl,themeSize as Zl}from"@domphy/theme";function gg(a={}){var n;let o=Ul((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="sup"&&console.warn('"superscript" primitive patch must use sup tag')},style:{fontSize:e=>Zl(e,"decrease-1"),verticalAlign:"super",lineHeight:0,color:e=>Xl(e,"text",o.get(e))}}}import{toState as Jl}from"@domphy/core";import{themeColor as te,themeDensity as Ze,themeSize as Sr,themeSpacing as Je}from"@domphy/theme";function Sg(a={}){var n;let o=Jl((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="table"&&console.warn('"table" primitive patch must use table tag')},_doctorDisable:"inline-typography",style:{fontSize:e=>Sr(e,"inherit"),color:e=>te(e,"text",o.get(e)),width:"100%",borderCollapse:"collapse","& caption":{captionSide:"bottom"},"& th, & thead td":{textAlign:"left",fontWeight:500,paddingInline:e=>Je(Ze(e)*3),paddingBlock:e=>Je(Ze(e)*1),color:e=>te(e,"shift-10",o.get(e)),backgroundColor:e=>te(e,"inherit")},"& td":{textAlign:"left",paddingInline:e=>Je(Ze(e)*3),paddingBlock:e=>Je(Ze(e)*1),color:e=>te(e,"text",o.get(e)),boxShadow:e=>`inset 0 1px 0 ${te(e,"shift-3",o.get(e))}`,fontSize:e=>Sr(e,"inherit")},"& tfoot th, & tfoot td":{textAlign:"left",fontWeight:500,paddingInline:e=>Je(Ze(e)*3),paddingBlock:e=>Je(Ze(e)*1),color:e=>te(e,"shift-10",o.get(e)),backgroundColor:e=>te(e,"inherit"),boxShadow:e=>`inset 0 -1px 0 ${te(e,"shift-4",o.get(e))}`},"& tr":{backgroundColor:e=>te(e,"inherit")},"& tbody tr:hover":{backgroundColor:e=>te(e,"hover")}}}}import{toState as Ql}from"@domphy/core";import{themeColor as Ce,themeDensity as Xt,themeSize as es,themeSpacing as Ee}from"@domphy/theme";function kg(a={items:[]}){var t,r,s;let{items:o=[],accentColor:n="primary",color:e="neutral"}=a,l=Ql((s=(r=a.activeKey)!=null?r:(t=o[0])==null?void 0:t.key)!=null?s:0);return{_onSchedule:(m,h)=>{let i=m.nodeId,d={div:o.map((g,u)=>{var E;let p=(E=g.key)!=null?E:u;return{button:[typeof g.label=="string"?{span:g.label}:g.label],_key:p,type:"button",role:"tab",id:`tab${i}${p}`,ariaControls:`panel${i}${p}`,ariaSelected:x=>l.get(x)===p,tabIndex:x=>l.get(x)===p?0:-1,onClick:()=>l.set(p),onKeyDown:x=>{var _;let k=x.key;if(!["ArrowLeft","ArrowRight","Home","End"].includes(k))return;x.preventDefault();let w=o.map((H,yt)=>{var bt;return(bt=H.key)!=null?bt:yt}),I=w.indexOf(p),V=I;k==="ArrowRight"?V=(I+1)%w.length:k==="ArrowLeft"?V=(I-1+w.length)%w.length:k==="Home"?V=0:k==="End"&&(V=w.length-1),l.set(w[V]);let P=x.target.closest("[role=tablist]");(_=P==null?void 0:P.querySelectorAll("[role=tab]")[V])==null||_.focus()},style:{cursor:"pointer",fontSize:x=>es(x,"inherit"),height:x=>Ee(6+Xt(x)*2),paddingInline:x=>Ee(Xt(x)*4),border:"none",outline:"none",color:x=>Ce(x,"shift-13"),backgroundColor:x=>Ce(x,"inherit"),boxShadow:x=>`inset 0 ${Ee(-.5)} 0 0 ${Ce(x,"shift-1",e)}`,transition:"box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled]):not([aria-selected=true])":{color:x=>Ce(x,"shift-13"),boxShadow:x=>`inset 0 ${Ee(-.5)} 0 0 ${Ce(x,"shift-2",e)}`},"&[aria-selected=true]:not([disabled])":{color:x=>Ce(x,"shift-13",n),boxShadow:x=>`inset 0 ${Ee(-.5)} 0 0 ${Ce(x,"shift-8",n)}`},"&:focus-visible":{boxShadow:x=>b(x,n)},"&[aria-selected=true]:focus-visible":{boxShadow:x=>`${b(x,n)}, inset 0 ${Ee(-.5)} 0 0 ${Ce(x,"shift-6",n)}`}}}}),role:"tablist",ariaOrientation:"horizontal",style:{display:"flex"}},y=o.map((g,u)=>{var v;let p=(v=g.key)!=null?v:u;return{div:[g.content],_key:p,role:"tabpanel",id:`panel${i}${p}`,ariaLabelledby:`tab${i}${p}`,hidden:E=>l.get(E)!==p,style:{paddingBlock:E=>Ee(Xt(E)*2),paddingInline:E=>Ee(Xt(E)*2)}}});h[m.tagName]=[d,...y]}}}import{toState as xr}from"@domphy/core";import{themeColor as me,themeDensity as Wo,themeSize as ts,themeSpacing as Zt}from"@domphy/theme";function Og(a={}){var l,t;let o=xr((l=a.color)!=null?l:"neutral","color"),n=xr((t=a.accentColor)!=null?t:"primary","accentColor"),{autoResize:e=!1}=a;return{_onInsert:r=>{r.tagName!=="textarea"&&console.warn('"textarea" primitive patch must use textarea tag')},_onMount:r=>{if(e){let s=r.domElement;s.style.overflow="hidden";let m=()=>{s.style.height="auto",s.style.height=`${s.scrollHeight}px`};s.addEventListener("input",m),m(),r.addHook("Remove",()=>s.removeEventListener("input",m))}},style:{fontFamily:"inherit",lineHeight:"inherit",resize:"vertical",paddingInline:r=>Zt(Wo(r)*2),paddingBlock:r=>Zt(Wo(r)*1.5),border:"none",borderRadius:r=>Zt(Wo(r)*1.5),fontSize:r=>ts(r,"inherit"),color:r=>me(r,"text",o.get(r)),outlineOffset:"-1px",outline:r=>`1px solid ${me(r,"border-strong",o.get(r))}`,backgroundColor:r=>me(r,"inherit",o.get(r)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:r=>me(r,"shift-7")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:r=>`1px solid ${me(r,"shift-5",n.get(r))}`},"&:focus-visible":{boxShadow:r=>b(r,n.get(r))},"&:invalid":{outline:r=>`${Zt(.5)} solid ${me(r,"shift-5","error")}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:r=>me(r,"muted","neutral"),outline:r=>`1px solid ${me(r,"border-strong","neutral")}`,backgroundColor:r=>me(r,"shift-2","neutral")}}}}import{toState as os}from"@domphy/core";import{themeColor as vr,themeDensity as Ko,themeSpacing as Jt}from"@domphy/theme";function Vg(){return{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column"}}}function Rg(a={}){var t,r,s;let{last:o=!1}=a,n=(t=a.color)!=null?t:"neutral",e=(r=a.accentColor)!=null?r:"primary",l=os((s=a.active)!=null?s:!1);return{style:L({display:"grid",gridTemplateColumns:"2rem 1fr",columnGap:m=>Jt(Ko(m)*2),paddingBottom:m=>o?"0":Jt(Ko(m)*4),position:"relative","&::before":{content:'""',display:"block",width:"0.75rem",height:"0.75rem",borderRadius:"50%",justifySelf:"center",marginTop:Jt(1),transition:"background-color 200ms ease, opacity 200ms ease",backgroundColor:m=>vr(m,"shift-8",l.get(m)?e:n),opacity:m=>l.get(m)?"1":"0.4"}},o?{}:{"&::after":{content:'""',position:"absolute",left:"calc(1rem - 1px)",top:"1.25rem",bottom:m=>Jt(Ko(m)*-4),width:"2px",backgroundColor:m=>vr(m,"shift-3",n)}})}}import{toState as ns}from"@domphy/core";import{themeColor as Cr,themeDensity as Yo,themeSize as rs,themeSpacing as Qe}from"@domphy/theme";function Ag(a={}){let{position:o="top-center",color:n="neutral"}=a,e=ns(!1),l=o.startsWith("top"),t=o.endsWith("center"),r=o.endsWith("right"),s={div:[],id:`domphy-toast-${o}`,style:{position:"fixed",display:"flex",flexDirection:l?"column":"column-reverse",alignItems:t?"center":r?"end":"start",inset:0,gap:Qe(4),zIndex:30,padding:Qe(6),pointerEvents:"none"}};return{_portal:m=>{let h=m.domElement.querySelector(`#domphy-toast-${o}`);return h||(h=m.children.insert(s).domElement),h},role:"status",ariaAtomic:"true",dataTone:"shift-17",style:{minWidth:Qe(32),pointerEvents:"auto",paddingBlock:m=>Qe(Yo(m)*2),paddingInline:m=>Qe(Yo(m)*4),borderRadius:m=>Qe(Yo(m)*2),fontSize:m=>rs(m,"inherit"),color:m=>Cr(m,"text",n),backgroundColor:m=>Cr(m,"inherit",n),boxShadow:O("medium"),opacity:m=>Number(e.get(m)),transform:m=>e.get(m)?"translateY(0)":l?"translateY(-100%)":"translateY(100%)",transition:"opacity 300ms ease, transform 300ms ease"},_onMount:()=>requestAnimationFrame(()=>e.set(!0)),_onBeforeRemove:(m,h)=>{var E,x;let i=!1,c=null,d=!1,y=m.getRoot(),g=(x=(E=m.domElement)==null?void 0:E.parentElement)!=null?x:null,u=()=>{var w;if(d||!g||g.id!==`domphy-toast-${o}`||g.childElementCount>0)return;d=!0;let k=(w=y.children)==null?void 0:w.items.find(I=>I.domElement===g);k?y.children.remove(k):g.remove()},p=()=>{i||(i=!0,c&&(clearTimeout(c),c=null),m.domElement.removeEventListener("transitionend",v),h(),u())},v=k=>{k.propertyName==="transform"&&p()};m.domElement.addEventListener("transitionend",v),c=setTimeout(p,350),m.addHook("Remove",()=>{var k;c&&(clearTimeout(c),c=null),(k=m.domElement)==null||k.removeEventListener("transitionend",v),u()}),e.set(!1)}}}import{toState as as}from"@domphy/core";import{themeColor as oe,themeSize as Er,themeSpacing as ke}from"@domphy/theme";function Kg(a={items:[]}){var r;let{items:o=[],multiple:n=!1,color:e="neutral",accentColor:l="primary"}=a,t=as((r=a.value)!=null?r:n?[]:"");return{role:"group",_context:{toggleGroup:{value:t,multiple:n}},_onSchedule:(s,m)=>{let h=o.map((i,c)=>{var g;let d=(g=i.key)!=null?g:String(c);return{button:[typeof i.label=="string"?{span:i.label}:i.label],_key:d,type:"button",role:"button",ariaPressed:u=>{let p=t.get(u);return Array.isArray(p)?p.includes(d):p===d},onClick:()=>{let u=t.get();if(n){let p=Array.isArray(u)?[...u]:[];t.set(p.includes(d)?p.filter(v=>v!==d):[...p,d])}else t.set(u===d?"":d)},style:{cursor:"pointer",fontSize:u=>Er(u,"inherit"),height:ke(6),paddingBlock:ke(1),paddingInline:ke(2),border:"none",borderRadius:ke(1.5),color:u=>oe(u,"shift-13",e),backgroundColor:u=>oe(u,"inherit",e),transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-pressed=true])":{color:u=>oe(u,"shift-13",e),backgroundColor:u=>oe(u,"hover",e)},"&:active:not([disabled])":{backgroundColor:u=>oe(u,"increase-2",e)},"&[aria-pressed=true]":{backgroundColor:u=>oe(u,"shift-3",l),color:u=>oe(u,"shift-13",l)},"&:focus-visible":{boxShadow:u=>b(u,l)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}});m[s.tagName]=h},style:{display:"flex",paddingBlock:ke(1),paddingInline:ke(1),gap:ke(1),borderRadius:ke(2),fontSize:s=>Er(s,"inherit"),backgroundColor:s=>oe(s,"inherit",e),color:s=>oe(s,"text",e),outline:s=>`1px solid ${oe(s,"border",e)}`,outlineOffset:"-1px"}}}function Gg(a={}){return lr({gap:a.gap})}function Ug(){return{div:null,style:{flex:"1 1 0"}}}import{merge as is,toState as kr}from"@domphy/core";import{themeColor as wr,themeDensity as qo,themeSize as ls,themeSpacing as Go}from"@domphy/theme";function of(a={}){let{open:o=!1,placement:n="top",content:e="Tooltip Content"}=a,l=kr(n),t=kr(e),r={span:d=>t.get(d)},{show:s,hide:m,anchorPartial:h}=J({kind:"tooltip",open:o,placement:l,content:r}),i={role:"tooltip",dataSize:"decrease-1",dataTone:"shift-17",style:{paddingBlock:d=>Go(qo(d)*1),paddingInline:d=>Go(qo(d)*3),borderRadius:d=>Go(qo(d)*1.5),color:d=>wr(d,"text"),backgroundColor:d=>wr(d),fontSize:d=>ls(d,"inherit"),boxShadow:O("low")},$:[tr({placement:l,bordered:!1})]};return r.$||(r.$=[]),r.$.push(i),is(h,{ariaDescribedby:d=>d!=null&&d.elementNode?He("tooltip",d.elementNode):void 0,onMouseEnter:(d,y)=>s(y),onMouseLeave:(d,y)=>m(y),onFocus:(d,y)=>s(y),onBlur:(d,y)=>m(y),onKeyDown:(d,y)=>d.key==="Escape"&&m(y)}),h}import{ElementNode as Tr}from"@domphy/core";function Dr(a,o){return a.key!==void 0&&a.key!==null?String(a.key):`index-${o}`}function af(a={}){let{duration:o=300,delay:n=0}=a,e=new Map,l=new Map,t=new Set,r=new Set;return{_onMount:s=>{s.addHook("Remove",()=>{for(let m of Array.from(l.values()))m();l.clear();for(let m of t)clearTimeout(m);t.clear();for(let m of r)cancelAnimationFrame(m);r.clear()})},_onBeforeUpdate:s=>{e=new Map,s.children.items.forEach((m,h)=>{if(!(m instanceof Tr))return;let i=m.domElement;i&&e.set(Dr(m,h),i.getBoundingClientRect())})},_onUpdate:s=>{s.children.items.forEach((m,h)=>{var w;if(!(m instanceof Tr))return;let i=m.domElement;if(!i)return;let c=Dr(m,h),d=e.get(c);if(!d)return;let y=i.getBoundingClientRect(),g=d.left-y.left,u=d.top-y.top;if(Math.abs(g)<.5&&Math.abs(u)<.5)return;(w=l.get(i))==null||w(),i.style.transition="none",i.style.transform=`translate(${g}px, ${u}px)`,i.getBoundingClientRect();let p=requestAnimationFrame(()=>{r.delete(p),i.style.transition=`transform ${o}ms ease ${n}ms`,i.style.transform="translate(0px, 0px)"});r.add(p);let v=!1,E=null,x=()=>{v||(v=!0,E&&(t.delete(E),E=null),l.delete(i),i.removeEventListener("transitionend",k),i.style.transition="",i.style.transform="")},k=I=>{I.propertyName==="transform"&&x()};l.set(i,()=>{v=!0,E&&(clearTimeout(E),t.delete(E),E=null),l.delete(i),i.removeEventListener("transitionend",k)}),i.addEventListener("transitionend",k),E=setTimeout(x,o+n+34),t.add(E)}),e.clear()}}}import{toState as ss}from"@domphy/core";import{themeColor as Pr,themeSize as cs,themeSpacing as ms}from"@domphy/theme";function mf(a={}){var n;let o=ss((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="ul"&&console.warn('"unorderedList" primitive patch must use ul tag')},style:{fontSize:e=>cs(e,"inherit"),backgroundColor:e=>Pr(e),color:e=>Pr(e,"text",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:ms(3),listStyleType:"disc",listStylePosition:"outside"}}}function df(){return{style:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}}}export{hs as abbreviation,vs as accordion,ws as alert,Os as avatar,Vs as badge,Ms as blockquote,Hs as breadcrumb,Ys as breadcrumbEllipsis,ac as button,gn as buttonGhost,uc as buttonSwitch,yc as card,vc as code,Mc as combobox,Fc as command,Wc as commandItem,jc as commandSearch,Zc as datePicker,om as descriptionList,lm as details,hm as dialog,Sm as divider,wm as drawer,O as elevation,Om as emphasis,Vm as empty,$m as errorBoundary,Hm as fab,Km as figure,b as focusRing,Um as formGroup,Jm as grid,nu as heading,lu as horizontalRule,uu as icon,gu as image,xu as inputCheckbox,wu as inputColor,Lu as inputDateTime,$u as inputFile,Au as inputNumber,ju as inputOTP,Gu as inputPassword,Qu as inputRadio,rd as inputRange,cd as inputSearch,hd as inputSwitch,Sd as inputText,Ed as keyboard,Dd as label,zd as link,Nd as linkButton,Wd as list,Kd as listItem,Yd as listItemButton,Xd as mark,op as menu,ap as motion,cp as orderedList,hp as pagination,Sp as panelSection,kp as paragraph,Lp as popover,tr as popoverArrow,Mp as preformated,Hp as progress,Yp as rating,Zp as ringProgress,lr as row,rh as scrollArea,mh as segmented,hh as select,Ch as selectBox,Th as selectItem,Lh as selectList,Rh as skeleton,Nh as small,Fh as spinner,qh as splitter,Uh as splitterHandle,Gh as splitterPanel,Jh as stack,ng as steps,lg as strong,ug as subscript,gg as superscript,Sg as table,kg as tabs,Tt as tag,Og as textarea,Vg as timeline,Rg as timelineItem,Ag as toast,Kg as toggleGroup,Gg as toolbar,Ug as toolbarSpacer,of as tooltip,af as transitionGroup,mf as unorderedList,df as visuallyHidden};
1
+ var jr=Object.defineProperty,Wr=Object.defineProperties;var Yr=Object.getOwnPropertyDescriptors;var sn=Object.getOwnPropertySymbols;var qr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable;var cn=(a,o,r)=>o in a?jr(a,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[o]=r,z=(a,o)=>{for(var r in o||(o={}))qr.call(o,r)&&cn(a,r,o[r]);if(sn)for(var r of sn(o))Gr.call(o,r)&&cn(a,r,o[r]);return a},U=(a,o)=>Wr(a,Yr(o));import{toState as mn}from"@domphy/core";import{themeColor as ct,themeSize as Ur,themeSpacing as Xr}from"@domphy/theme";function vs(a={}){var e,s;let o=mn((e=a.color)!=null?e:"neutral","color"),r=mn((s=a.accentColor)!=null?s:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="abbr"&&console.warn('"abbreviation" primitive patch must use abbr tag')},style:{fontSize:t=>Ur(t),backgroundColor:t=>ct(t),color:t=>ct(t,"shift-10",o.get(t)),textDecorationLine:"underline",textDecorationStyle:"dotted",textDecorationColor:t=>ct(t,"shift-7",o.get(t)),textUnderlineOffset:Xr(.72),cursor:"help","&:hover":{color:t=>ct(t,"shift-11",r.get(t)),textDecorationColor:t=>ct(t,"shift-9",r.get(t))}}}}import{toState as dn}from"@domphy/core";import{themeColor as lo,themeDensity as Zr,themeSpacing as Jr}from"@domphy/theme";import{themeColor as un}from"@domphy/theme";function b(a,o="primary"){let r=un(a,"surface"),e=un(a,"shift-9",o);return`0 0 0 2px ${r}, 0 0 0 4px ${e}`}function Ds(a={}){var s,t;let{type:o="single"}=a,r=dn((s=a.color)!=null?s:"neutral","color"),e=dn((t=a.accentColor)!=null?t:"primary","accentColor");return{_onMount:n=>{if(o!=="single")return;let l=n.domElement;if(!l)return;let m=p=>{let i=p.target.closest("summary");if(!i)return;let c=i.closest("details");!c||c.parentElement!==l||c.open||Array.from(l.querySelectorAll(":scope > details")).forEach(d=>{d!==c&&(d.open=!1)})};l.addEventListener("click",m),n.addHook("Remove",()=>l.removeEventListener("click",m))},style:{display:"flex",flexDirection:"column",borderRadius:n=>Jr(Zr(n)*1.5),outline:n=>`1px solid ${lo(n,"border-strong",r.get(n))}`,outlineOffset:"-1px",color:n=>lo(n,"text",r.get(n)),overflow:"hidden","& > details":{borderBottom:n=>`1px solid ${lo(n,"border-strong",r.get(n))}`},"& > details:last-child":{borderBottom:"none"},"& > details > summary:focus-visible":{boxShadow:n=>b(n,e.get(n))}}}}import{toState as Qr}from"@domphy/core";import{themeColor as so,themeDensity as co,themeSize as ea,themeSpacing as mt}from"@domphy/theme";function Is(a={}){var r;let o=Qr((r=a.color)!=null?r:"primary","color");return{role:"alert",dataTone:"shift-2",style:{display:"flex",alignItems:"flex-start",gap:mt(3),paddingBlock:e=>mt(co(e)*2),paddingInline:e=>mt(co(e)*4),borderRadius:e=>mt(co(e)*1.5),boxShadow:e=>`inset ${mt(1)} 0 0 0 ${so(e,"shift-8",o.get(e))}`,backgroundColor:e=>so(e,"inherit",o.get(e)),color:e=>so(e,"shift-10",o.get(e)),fontSize:e=>ea(e,"inherit")}}}import{toState as ta}from"@domphy/core";import{themeColor as mo,themeSize as oa,themeSpacing as pn}from"@domphy/theme";function $s(a={}){var r;let o=ta((r=a.color)!=null?r:"primary","color");return{dataTone:"shift-2",_doctorDisable:"inline-typography",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"50%",flexShrink:0,width:pn(9),height:pn(9),fontSize:e=>oa(e,"inherit"),fontWeight:"600",userSelect:"none",backgroundColor:e=>mo(e,"inherit",o.get(e)),color:e=>mo(e,"shift-11",o.get(e)),boxShadow:e=>`0 0 0 1px ${mo(e,"border",o.get(e))}`,"& img":{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}}}import{toState as hn}from"@domphy/core";import{themeColor as uo,themeSize as na,themeSpacing as wt}from"@domphy/theme";function Bs(a={}){var s;let{label:o=999}=a,r=hn(o),e=hn((s=a.color)!=null?s:"danger","color");return{_doctorDisable:"inline-typography",style:{position:"relative","&::after":{content:t=>`"${r.get(t)}"`,position:"absolute",top:0,right:0,transform:"translate(50%,-50%)",paddingInline:wt(1.5),minWidth:wt(5),height:wt(5),display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:t=>na(t,"decrease-2"),fontWeight:"600",lineHeight:1,borderRadius:wt(999),backgroundColor:t=>uo(t,"shift-9",e.get(t)),color:t=>uo(t,"shift-0",e.get(t)),boxShadow:t=>`0 0 0 1px ${uo(t,"shift-0",e.get(t))}`}}}}import{toState as ra}from"@domphy/core";import{themeColor as po,themeDensity as gn,themeSize as aa,themeSpacing as ho}from"@domphy/theme";function Ks(a={}){var r;let o=ra((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="blockquote"&&console.warn('"blockquote" primitive patch must use blockquote tag')},dataTone:"shift-2",style:{fontSize:e=>aa(e,"inherit"),backgroundColor:e=>po(e,"inherit",o.get(e)),color:e=>po(e,"text",o.get(e)),boxShadow:e=>`inset ${ho(1)} 0 0 0 ${po(e,"shift-4",o.get(e))}`,border:"none",paddingBlock:e=>ho(gn(e)*2),paddingInline:e=>ho(gn(e)*4),margin:0}}}import{toState as ia}from"@domphy/core";import{themeColor as ut,themeSize as la,themeSpacing as fn}from"@domphy/theme";function qs(a={}){var e;let{separator:o="/"}=a,r=ia((e=a.color)!=null?e:"neutral","color");return{_onInsert:s=>{s.tagName!=="nav"&&console.warn('"breadcrumb" patch must use nav tag')},ariaLabel:"breadcrumb",style:{display:"flex",alignItems:"center",flexWrap:"wrap",fontSize:s=>la(s,"inherit"),gap:fn(1),color:s=>ut(s,"text",r.get(s)),backgroundColor:s=>ut(s,"inherit",r.get(s)),"& > *":{display:"inline-flex",alignItems:"center",color:s=>ut(s,"muted",r.get(s))},"& > *:not(:last-child)::after":{content:`"${o}"`,color:s=>ut(s,"shift-4",r.get(s)),paddingInlineStart:fn(1)},"& > [aria-current=page]":{color:s=>ut(s,"shift-10",r.get(s)),pointerEvents:"none"}}}}import{toState as sa}from"@domphy/core";import{themeColor as go,themeSize as ca,themeSpacing as yn}from"@domphy/theme";function Js(a={}){var r;let o=sa((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="button"&&console.warn('"breadcrumbEllipsis" patch must use button tag')},ariaLabel:"More breadcrumb items",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e=>ca(e,"inherit"),paddingInline:yn(1),border:"none",background:"none",cursor:"pointer",color:e=>go(e,"muted",o.get(e)),borderRadius:yn(1),transition:"color 140ms ease, background-color 140ms ease, box-shadow 140ms ease","&:hover":{color:e=>go(e,"shift-10",o.get(e)),backgroundColor:e=>go(e,"hover",o.get(e))},"&:focus-visible":{boxShadow:e=>b(e,o.get(e))}}}}import{toState as pa}from"@domphy/core";import{themeColor as Y,themeDensity as Pt,themeSize as ha,themeSpacing as Ot}from"@domphy/theme";var Ye={small:"decrease-1",medium:"inherit",large:"increase-1"};import{toState as ma}from"@domphy/core";import{themeColor as qe,themeDensity as Tt,themeSize as ua,themeSpacing as Dt}from"@domphy/theme";var da={small:.5,medium:1,large:1.5};function bn(a={}){var s,t,n;let o=ma((s=a.color)!=null?s:"neutral","color"),r=da[(t=a.size)!=null?t:"medium"],e=Ye[(n=a.size)!=null?n:"medium"];return{_onInsert:l=>{l.tagName!=="button"&&console.warn('"buttonGhost" primitive patch must use button tag')},style:{appearance:"none",fontSize:l=>ua(l,e),paddingBlock:l=>Dt(Tt(l)*r),paddingInline:l=>Dt(Tt(l)*r),borderRadius:l=>Dt(Tt(l)*1.5),display:"inline-flex",justifyContent:"center",alignItems:"center",gap:l=>Dt(Tt(l)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",background:"none",outline:"none",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease",color:l=>qe(l,"text",o.get(l)),"&:hover:not([disabled]):not([aria-busy=true])":{color:l=>qe(l,"text",o.get(l)),backgroundColor:l=>qe(l,"hover",o.get(l))},"&:active:not([disabled]):not([aria-busy=true])":{color:l=>qe(l,"text",o.get(l)),backgroundColor:l=>qe(l,"increase-2",o.get(l))},"&:focus-visible":{boxShadow:l=>b(l,o.get(l))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:l=>qe(l,"border-strong","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}}}var ga={small:{block:.5,inline:2},medium:{block:1,inline:3},large:{block:1.5,inline:4}};function uc(a={}){var n,l,m,p;let o=(n=a.variant)!=null?n:"outline";if(o==="ghost")return bn({color:a.color,size:a.size});let r=pa((l=a.color)!=null?l:"primary","color"),e=o==="solid",s=ga[(m=a.size)!=null?m:"medium"],t=Ye[(p=a.size)!=null?p:"medium"];return U(z({_onInsert:i=>{i.tagName!=="button"&&console.warn('"button" primitive patch must use button tag')}},e?{_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"]}:{}),{style:{appearance:"none",fontSize:i=>ha(i,t),paddingBlock:i=>Ot(Pt(i)*s.block),paddingInline:i=>Ot(Pt(i)*s.inline),borderRadius:i=>Ot(Pt(i)*1.5),width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",gap:i=>Ot(Pt(i)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:e?"none":i=>`1px solid ${Y(i,"border-strong",r.get(i))}`,color:i=>e?Y(i,"shift-0","neutral"):Y(i,"shift-13",r.get(i)),backgroundColor:i=>e?Y(i,"shift-13",r.get(i)):Y(i,"inherit",r.get(i)),transition:"background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-busy=true])":{color:i=>e?Y(i,"shift-0","neutral"):Y(i,"shift-14",r.get(i)),backgroundColor:i=>e?Y(i,"shift-14",r.get(i)):Y(i,"hover",r.get(i))},"&:active:not([disabled]):not([aria-busy=true])":{backgroundColor:i=>e?Y(i,"shift-15",r.get(i)):Y(i,"increase-2",r.get(i))},"&:focus-visible":{boxShadow:i=>b(i,r.get(i))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:i=>Y(i,"shift-2","neutral"),outline:i=>`1px solid ${Y(i,"border-strong","neutral")}`,color:i=>Y(i,"muted","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}})}import{toState as fo}from"@domphy/core";import{themeColor as Ve,themeSize as fa,themeSpacing as X}from"@domphy/theme";function yc(a={}){var t,n;let{checked:o=!1}=a,r=fo(o),e=fo((t=a.color)!=null?t:"neutral","color"),s=fo((n=a.accentColor)!=null?n:"primary","accentColor");return{_onSchedule:l=>{l.tagName!=="button"&&console.warn('"buttonSwitch" primitive patch must use button tag')},role:"switch",ariaChecked:l=>r.get(l),dataTone:"shift-2",onClick:()=>r.set(!r.get()),style:{position:"relative",display:"inline-flex",alignItems:"center",fontSize:l=>fa(l),border:"none",outlineWidth:"1px",outline:l=>`1px solid ${Ve(l,"border",e.get(l))}`,minWidth:X(12),minHeight:X(6),borderRadius:X(999),paddingLeft:X(7),paddingRight:X(2),cursor:"pointer",transition:"padding-left 0.3s, padding-right 0.3s, background-color 140ms ease, box-shadow 140ms ease",backgroundColor:l=>Ve(l,"inherit",e.get(l)),color:l=>Ve(l,"text",e.get(l)),"&:focus-visible":{boxShadow:l=>b(l,s.get(l))},"& > :first-child":{content:'""',position:"absolute",display:"inline-flex",alignItems:"center",left:X(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",width:X(5),height:X(5),borderRadius:X(999),color:l=>Ve(l,"text"),backgroundColor:l=>Ve(l,"decrease-2",e.get(l))},"&[aria-checked=true]":{backgroundColor:l=>Ve(l,"increase-3",s.get(l)),outline:"none",color:l=>Ve(l,"decrease-2"),paddingLeft:X(2),paddingRight:X(7)},"&[aria-checked=true] > :first-child":{left:`calc(100% - ${X(5.5)})`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as ba}from"@domphy/core";import{themeColor as Re,themeDensity as ce,themeSpacing as oe}from"@domphy/theme";var ya={low:"0 1px 2px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.10)",medium:"0 2px 4px rgba(0,0,0,0.10), 0 10px 24px rgba(0,0,0,0.14)",high:"0 6px 12px rgba(0,0,0,0.14), 0 24px 48px rgba(0,0,0,0.20)"};function I(a){return ya[a]}function Ec(a={}){var r;let o=ba((r=a.color)!=null?r:"neutral","color");return{_doctorDisable:"inline-typography",style:{display:"grid",gridTemplateColumns:"1fr auto",gridTemplateAreas:'"image image" "title aside" "desc aside" "content content" "footer footer"',borderRadius:e=>oe(ce(e)*2),backgroundColor:e=>Re(e,"inherit",o.get(e)),color:e=>Re(e,"shift-10",o.get(e)),outline:e=>`1px solid ${Re(e,"border-strong",o.get(e))}`,outlineOffset:"-1px",boxShadow:I("low"),overflow:"hidden","& > img":{gridArea:"image",width:"100%",height:"auto",display:"block"},"& > :is(h1,h2,h3,h4,h5,h6)":{gridArea:"title",paddingBlock:e=>oe(ce(e)*2),paddingInline:e=>oe(ce(e)*4),fontWeight:"600",color:e=>Re(e,"shift-11",o.get(e)),margin:0},"& > p":{gridArea:"desc",paddingInline:e=>oe(ce(e)*4),paddingBottom:e=>oe(ce(e)*2),color:e=>Re(e,"text",o.get(e)),margin:0},"& > aside":{gridArea:"aside",alignSelf:"center",padding:e=>oe(ce(e)*2),height:"auto"},"& > div":{gridArea:"content",padding:e=>oe(ce(e)*4),color:e=>Re(e,"shift-10",o.get(e))},"& > footer":{gridArea:"footer",display:"flex",gap:oe(2),paddingBlock:e=>oe(ce(e)*2),paddingInline:e=>oe(ce(e)*4),borderTop:e=>`1px solid ${Re(e,"border",o.get(e))}`}}}}import{toState as Sa}from"@domphy/core";import{themeColor as Sn,themeSize as va,themeSpacing as yo}from"@domphy/theme";function Dc(a={}){var r;let o=Sa((r=a.color)!=null?r:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="code"&&console.warn('"code" primitive patch must use code tag')},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",fontSize:e=>va(e,"inherit"),color:e=>Sn(e,"text",o.get(e)),backgroundColor:e=>Sn(e,"inherit",o.get(e)),height:yo(6),paddingInline:yo(1.5),borderRadius:yo(1)}}}import{merge as bo,toState as So}from"@domphy/core";import{themeColor as be,themeDensity as zt,themeSize as vn,themeSpacing as Se}from"@domphy/theme";import{behavior as xa,merge as Ca,toState as Ea}from"@domphy/core";import{autoUpdate as ka,computePosition as wa,flip as Ta,offset as Da,shift as Pa}from"@domphy/floating";function ye(a,o){return`domphy-${a}-${o.nodeId}`}function Oa(a,o){var te,V,ze,se;let{openState:r,placement:e,content:s,keepOpenOnContentHover:t}=o,{kind:n}=o,l=`floating:${n}`,m=null,p=null,i=null,c=null,d=!1,f=a.domElement,h=a.getRoot(),g=ye(n,a),u={style:{position:"fixed",pointerEvents:"auto",visibility:L=>r.get(L)?"visible":"hidden"},onKeyDown:L=>{L.key==="Escape"&&O()},onMouseEnter:()=>t&&D(),onMouseLeave:()=>t&&O(),_onMount:L=>{var j;if(i=L.domElement,i.id||(i.id=g),f&&i&&!i.hasAttribute("data-theme")){let F=(j=f.closest("[data-theme]"))==null?void 0:j.getAttribute("data-theme");F&&i.setAttribute("data-theme",F)}},_portal:L=>{let j=L.domElement.querySelector("#domphy-floating");if(!j){let F={div:[],id:"domphy-floating",style:{position:"fixed",inset:0,zIndex:20,pointerEvents:"none"}};j=L.children.insert(F).domElement}return j}},S=L=>Ca(L,u);S(s);let C=()=>{d||(d=!0,c=h.children.insert(s),c._behaviorInstances.set(l,Q))},v=()=>{C(),f&&i&&(p==null||p(),p=ka(f,i,()=>{wa(f,i,{placement:e.get(),middleware:[Da(12),Ta(),Pa()],strategy:"fixed"}).then(({x:L,y:j,placement:F})=>{i&&(Object.assign(i.style,{left:`${L}px`,top:`${j}px`}),e.set(F))})}),r.set(!0))},w=()=>{p==null||p(),p=null,c&&(c.remove(),c=null),i=null,d=!1,r.set(!1)},D=()=>{m&&clearTimeout(m),m=setTimeout(v,100)},O=()=>{m&&clearTimeout(m),m=setTimeout(w,100)},$=L=>{if(!r.get()||!f||!i)return;let j=L.target;!f.contains(j)&&!i.contains(j)&&O()};(te=h.domElement)==null||te.addEventListener("click",$);let H=L=>{L.key==="Escape"&&r.get()&&O()},M=(se=(ze=(V=h.domElement)==null?void 0:V.ownerDocument)!=null?ze:h.domElement)!=null?se:null;M==null||M.addEventListener("keydown",H);let Q={show:D,hide:O,update(L){r=L.openState,e=L.placement,s=L.content,t=L.keepOpenOnContentHover,S(s),c&&c.patch(s)},destroy(){var L;m&&clearTimeout(m),p==null||p(),c==null||c.remove(),(L=h.domElement)==null||L.removeEventListener("click",$),M==null||M.removeEventListener("keydown",H)}};return Q}function ne(a){let{kind:o,open:r=!1,placement:e}=a,s=Ea(r),t=`floating:${o}`,n=p=>{var i;return(i=p==null?void 0:p.getBehavior(t))==null?void 0:i.show()},l=p=>{var i;return(i=p==null?void 0:p.getBehavior(t))==null?void 0:i.hide()},m=z({onKeyDown:(p,i)=>p.key==="Escape"&&l(i)},xa(t,Oa,{kind:o,openState:s,placement:e,content:a.content,keepOpenOnContentHover:!!a.keepOpenOnContentHover}));return{show:n,hide:l,anchorPartial:m}}import{rawHtml as La,toState as Ia}from"@domphy/core";import{themeColor as Lt,themeSize as za,themeSpacing as me}from"@domphy/theme";var Va='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6.707 5.293l5.293 5.292l5.293 -5.292a1 1 0 0 1 1.414 1.414l-5.292 5.293l5.292 5.293a1 1 0 0 1 -1.414 1.414l-5.293 -5.292l-5.293 5.292a1 1 0 1 1 -1.414 -1.414l5.292 -5.293l-5.292 -5.293a1 1 0 0 1 1.414 -1.414" /></svg>';function It(a={}){var e;let{removable:o=!1}=a,r=Ia((e=a.color)!=null?e:"neutral","color");return{dataTone:"shift-2",_onInit:s=>{let t={span:La(Va),onClick:n=>{n.stopPropagation(),s.remove()},tabindex:0,role:"button",ariaLabel:"Remove",style:{display:"inline-flex",alignItems:"center",cursor:"pointer",borderRadius:me(1),width:me(4),height:me(4),flexShrink:0,transition:"background-color 140ms ease, box-shadow 140ms ease","&:hover":{backgroundColor:n=>Lt(n,"shift-4",r.get(n))},"&:focus-visible":{boxShadow:n=>b(n,r.get(n))}}};o&&s.children.insert(t)},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",userSelect:"none",height:me(6),paddingBlock:0,borderRadius:me(999),paddingInlineStart:me(2.5),paddingInlineEnd:o?me(1):me(2.5),gap:me(1.5),fontSize:s=>za(s,"decrease-1"),backgroundColor:s=>Lt(s,"inherit",r.get(s)),color:s=>Lt(s,"text",r.get(s)),border:"none",outlineOffset:"-1px",outline:s=>`1px solid ${Lt(s,"border-strong",r.get(s))}`}}}function Kc(a){let{options:o=[],placement:r="bottom",color:e="neutral",open:s=!1,multiple:t=!1}=a,n=So(a.value),l=So(s),{show:m,hide:p,anchorPartial:i}=ne({kind:"combobox",open:l,placement:So(r),content:a.content}),c={onClick:(u,S)=>!t&&p(S),dataTone:"shift-14",style:{backgroundColor:u=>be(u,"inherit"),color:u=>be(u,"text"),borderRadius:u=>Se(zt(u)*2),outline:u=>`1px solid ${be(u,"border-strong")}`,outlineOffset:"-1px",boxShadow:I("medium")}};bo(a.content,c);let d={border:"none",outline:"none",padding:0,margin:0,flex:1,height:Se(6),marginInlineStart:Se(2),fontSize:u=>vn(u,"inherit"),color:u=>be(u,"text",e),backgroundColor:u=>be(u,"inherit",e)},f;if(a.input){let u={onFocus:(S,C)=>m(C),style:d,_key:"combobox-input"};bo(a.input,u),f=a.input}else f={input:null,ariaLabel:"Filter options",onFocus:(u,S)=>m(S),value:u=>(n.get(u),""),style:d,_key:"combobox-input"};let h={div:u=>{let S=n.get(u),C=Array.isArray(S)?S:[S],w=o.filter(D=>C.includes(D.value)).map(D=>({span:D.label,$:[It({color:e,removable:!0})],_key:D.value,_onRemove:O=>{let $=n.get(),M=(Array.isArray($)?$:[$]).filter(Q=>Q!==D.value);t?n.set(M):n.set(M[0])}}));return w.push(f),w},style:{display:"flex",flexWrap:"wrap",gap:Se(1)}},g={_onInsert:u=>{u.tagName!=="div"&&console.warn('"combobox" primitive patch must use div tag')},_onInit:u=>u.children.insert(h),style:{minWidth:Se(32),outlineOffset:"-1px",outline:u=>`1px solid ${be(u,"border-strong","neutral")}`,paddingBlock:u=>Se(zt(u)*1),paddingInline:u=>Se(zt(u)*1),borderRadius:u=>Se(zt(u)*1.5),fontSize:u=>vn(u,"inherit"),color:u=>be(u,"text",e),backgroundColor:u=>be(u,"inherit",e),transition:"background-color 140ms ease, outline-color 140ms ease, box-shadow 140ms ease","&:focus-within":{boxShadow:u=>b(u,e)}}};return bo(i,g),i}import{merge as Ra,toState as $a}from"@domphy/core";import{themeColor as ue,themeDensity as Vt,themeSize as xn,themeSpacing as Rt}from"@domphy/theme";function Gc(){return{role:"group",ariaLabel:"Commands",_onSchedule:(a,o)=>{Ra(o,{_context:{command:{query:$a("")}}})},style:{display:"flex",flexDirection:"column",overflow:"hidden"}}}function Uc(a={}){let{color:o="neutral",accentColor:r="primary"}=a;return{_onInsert:e=>{e.tagName!=="input"&&console.warn('"commandSearch" patch must use input tag')},_onMount:e=>{let s=e.getContext("command");if(!s){console.warn('"commandSearch" patch must be used inside a "command"');return}let t=e.domElement,n=()=>s.query.set(t.value);t.addEventListener("input",n),e.addHook("Remove",()=>t.removeEventListener("input",n))},style:{fontFamily:"inherit",fontSize:e=>xn(e,"inherit"),paddingInline:e=>Rt(Vt(e)*3),paddingBlock:e=>Rt(Vt(e)*2),border:"none",borderBottom:e=>`1px solid ${ue(e,"border",o)}`,outline:"none",color:e=>ue(e,"shift-10",o),backgroundColor:e=>ue(e,"inherit",o),"&::placeholder":{color:e=>ue(e,"shift-7")},transition:"border-bottom-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{borderBottomColor:e=>ue(e,"shift-6",r),boxShadow:e=>b(e,r)}}}}function Xc(a={}){let{color:o="neutral",accentColor:r="primary"}=a;return{_onMount:e=>{var p,i;let s=e.getContext("command");if(!s){console.warn('"commandItem" patch must be used inside a "command"');return}let t=e.domElement,n=(i=(p=t.textContent)==null?void 0:p.toLowerCase())!=null?i:"",l=c=>{t.hidden=c.length>0&&!n.includes(c.toLowerCase())};l(s.query.get());let m=s.query.addListener(l);e.addHook("Remove",m)},style:{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",fontSize:e=>xn(e,"inherit"),height:e=>Rt(6+Vt(e)*2),paddingInline:e=>Rt(Vt(e)*3),border:"none",outline:"none",color:e=>ue(e,"shift-13",o),backgroundColor:e=>ue(e,"inherit",o),transition:"background-color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled])":{color:e=>ue(e,"shift-13",o),backgroundColor:e=>ue(e,"hover",o)},"&:focus-visible":{boxShadow:e=>b(e,r)}}}}import{behavior as _a,merge as Ma,toState as de}from"@domphy/core";import{themeColor as A,themeDensity as Na,themeSize as Ge,themeSpacing as N}from"@domphy/theme";var B=a=>new Date(a.getFullYear(),a.getMonth(),a.getDate()),$e=(a,o)=>new Date(a.getFullYear(),a.getMonth(),a.getDate()+o),vo=(a,o)=>new Date(a.getFullYear(),a.getMonth()+o,a.getDate()),dt=(a,o)=>!!a&&!!o&&a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()&&a.getDate()===o.getDate(),xo=a=>`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`,Co=(a,o)=>$e(a,-((a.getDay()-o+7)%7));function Ba(a){var o,r;try{let e=new Intl.Locale(a),s=(r=(o=e.getWeekInfo)==null?void 0:o.call(e))!=null?r:e.weekInfo;if(s!=null&&s.firstDay)return s.firstDay%7}catch(e){}return 0}function Aa(a,o){let r=o,e=null,s=n=>{e==null||e(),e=n.onChange?n.selection.addListener(l=>n.onChange(l)):null},t=(n,l)=>{n!==l&&n.set(l.get())};return s(r),{update(n){t(n.selection,r.selection),t(n.viewYear,r.viewYear),t(n.viewMonth,r.viewMonth),t(n.focused,r.focused),t(n.hovered,r.hovered),t(n.hour,r.hour),t(n.minute,r.minute),(n.selection!==r.selection||n.onChange!==r.onChange)&&s(n),r=n},destroy(){e==null||e(),e=null}}}function nm(a={}){var nn,rn,an,ln;let{mode:o="single",time:r=!1,min:e,max:s,disabledDate:t,locale:n=typeof navigator!="undefined"?navigator.language:"en-US",format:l,onChange:m}=a,p=(nn=a.weekStartsOn)!=null?nn:Ba(n),i=de((rn=a.accentColor)!=null?rn:"primary","accentColor"),c=de((an=a.placement)!=null?an:"bottom-start"),d=de((ln=a.value)!=null?ln:o==="range"?[null,null]:null),f=(()=>{let y=d.get(),x=o==="range"?y==null?void 0:y[0]:y;return x instanceof Date?x:new Date})(),h=de(f.getFullYear(),"viewYear"),g=de(f.getMonth(),"viewMonth"),u=de(B(f),"focused"),S=de(null,"hovered"),C=de(f.getHours(),"hour"),v=de(f.getMinutes(),"minute"),w=new Intl.DateTimeFormat(n,z({dateStyle:"medium"},r?{timeStyle:"short"}:{})),D=new Intl.DateTimeFormat(n,{month:"long",year:"numeric"}),O=new Intl.DateTimeFormat(n,{weekday:"short"}),$=new Intl.DateTimeFormat(n,{dateStyle:"full"}),H=y=>y?w.format(y):"",M=y=>{if(l)return l(y);if(o==="range"){let[x,E]=y!=null?y:[null,null];return x?`${H(x)} \u2013 ${H(E)}`:""}return H(y)},Q=Array.from({length:7},(y,x)=>O.format(new Date(2023,0,1+(x+p)%7))),te=y=>!!e&&B(y)<B(e)||!!s&&B(y)>B(s)||!!t&&t(y),V=y=>{if(!r)return B(y);let x=B(y);return x.setHours(C.get(),v.get(),0,0),x},ze=(y,x)=>{var k;if(te(y))return;if(o==="single"){d.set(V(y)),r||ao(x);return}let[E,T]=(k=d.get())!=null?k:[null,null];!E||E&&T?d.set([V(y),null]):B(y)<B(E)?(d.set([V(y),V(E)]),r||ao(x)):(d.set([E,V(y)]),r||ao(x))},se=()=>{var y;if(r)if(o==="single"){let x=d.get();x&&d.set(V(x))}else{let[x,E]=(y=d.get())!=null?y:[null,null];d.set([x&&V(x),E&&V(E)])}},L=(y,x)=>{var We;if(o!=="range")return!1;let[E,T]=(We=d.get(x))!=null?We:[null,null],k=T!=null?T:S.get(x);if(!E||!k)return!1;let P=B(E)<=B(k)?E:k,G=B(E)<=B(k)?k:E,W=B(y);return W>=B(P)&&W<=B(G)},j=(y,x)=>{let E=d.get(x);if(o==="range"){let[T,k]=E!=null?E:[null,null];return dt(y,T)||dt(y,k)}return dt(y,E)},F=y=>{h.set(y.getFullYear()),g.set(y.getMonth())},lt=y=>{let x=vo(new Date(h.get(),g.get(),1),y);F(x)},st=y=>h.set(h.get()+y),ro=y=>{var E;let x=(E=y==null?void 0:y.getRoot())==null?void 0:E.domElement;setTimeout(()=>{var T;(T=x==null?void 0:x.querySelector(`[data-date="${xo(u.get())}"]`))==null||T.focus()},0)},Vr=Mr(),{show:Rr,hide:ao,anchorPartial:on}=ne({kind:"datePicker",open:!1,placement:c,content:Vr}),$r=z({type:"text",readonly:!0,value:y=>M(d.get(y)),ariaHaspopup:"dialog",ariaLabel:"Choose date",style:{cursor:"pointer"},onClick:(y,x)=>{io(x)},onFocus:(y,x)=>{io(x)},onKeyDown:(y,x)=>{let E=y.key;(E==="ArrowDown"||E==="Enter")&&(y.preventDefault(),io(x))}},_a("datePicker",Aa,{selection:d,viewYear:h,viewMonth:g,focused:u,hovered:S,hour:C,minute:v,onChange:m}));function io(y){var E;let x=(E=_r())!=null?E:new Date;u.set(B(x)),F(x),Rr(y),ro(y)}function _r(){var x;let y=d.get();return o==="range"?(x=y==null?void 0:y[0])!=null?x:null:y!=null?y:null}return Ma(on,$r),on;function Mr(){let y=(P,G,W)=>({button:P,type:"button",ariaLabel:G,onClick:W,style:Ha()}),x={div:[y("\xAB","Previous year",()=>st(-1)),y("\u2039","Previous month",()=>lt(-1)),{div:P=>D.format(new Date(h.get(P),g.get(P),1)),ariaLive:"polite",_doctorDisable:"inline-typography",style:{flex:"1",textAlign:"center",fontWeight:"bold",fontSize:P=>Ge(P)}},y("\u203A","Next month",()=>lt(1)),y("\xBB","Next year",()=>st(1))],style:{display:"flex",alignItems:"center",gap:N(1),marginBottom:N(2)}},E={div:Q.map((P,G)=>({div:P,_doctorDisable:"inline-typography",style:{textAlign:"center",fontSize:W=>Ge(W,"decrease-1"),fontWeight:"bold",color:W=>A(W,"shift-7"),paddingBlock:N(1)},_key:G})),role:"row",style:Cn()},T={div:P=>Nr(P),role:"grid",ariaLabel:"Calendar",onKeyDown:Fr,onMouseLeave:()=>o==="range"&&S.set(null),style:{display:"flex",flexDirection:"column",gap:N(.5)}},k=[x,E,T];return r&&k.push(Ar()),k.push(Hr()),{div:k,role:"dialog",ariaModal:"false",dataTone:"shift-14",style:{minWidth:N(70),padding:N(3),borderRadius:P=>N(Na(P)*2),backgroundColor:P=>A(P,"inherit"),color:P=>A(P,"text"),outline:P=>`1px solid ${A(P,"border-strong")}`,outlineOffset:"-1px",boxShadow:I("medium")}}}function Nr(y){let x=new Date(h.get(y),g.get(y),1),E=g.get(y),T=Co(x,p),k=[];for(let P=0;P<6;P++){let G=[];for(let W=0;W<7;W++){let We=$e(T,P*7+W);G.push(Br(We,E,y))}k.push({div:G,role:"row",style:Cn(),_key:P})}return k}function Br(y,x,E){let T=te(y),k=j(y,E),P=L(y,E),G=y.getMonth()!==x,W=dt(y,u.get(E)),We=dt(y,new Date);return{button:String(y.getDate()),type:"button",role:"gridcell",tabIndex:W?0:-1,ariaSelected:k,ariaDisabled:T,disabled:T,ariaLabel:$.format(y),dataDate:xo(y),onClick:(R,Kr)=>ze(y,Kr),onMouseEnter:()=>o==="range"&&S.set(y),style:{appearance:"none",border:"none",cursor:T?"not-allowed":"pointer",aspectRatio:"1",borderRadius:N(1),fontSize:R=>Ge(R),fontFamily:"inherit",opacity:T?.35:G?.5:1,backgroundColor:R=>k?A(R,"shift-7",i.get(R)):P?A(R,"hover",i.get(R)):"transparent",color:R=>k?A(R,"shift-0",i.get(R)):A(R,"text"),outline:We?R=>`1px solid ${A(R,"shift-6",i.get(R))}`:"none",outlineOffset:"-2px","&:hover:not([disabled])":{backgroundColor:R=>k?A(R,"shift-7",i.get(R)):A(R,"shift-3",i.get(R))},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:R=>b(R,i.get(R))}},_key:xo(y)}}function Ar(){let y=(x,E,T)=>({select:Array.from({length:x},(k,P)=>({option:String(P).padStart(2,"0"),value:String(P),selected:G=>E.get(G)===P,_key:P})),ariaLabel:T,onChange:k=>{E.set(Number(k.target.value)),se()},style:Fa()});return{div:[y(24,C,"Hour"),{span:":",_doctorDisable:"inline-typography",style:{fontWeight:"bold"}},y(60,v,"Minute")],style:{display:"flex",alignItems:"center",justifyContent:"center",gap:N(1),marginTop:N(3)}}}function Hr(){let y=(x,E)=>({button:x,type:"button",onClick:(T,k)=>E(k),style:{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:T=>Ge(T,"decrease-1"),color:T=>A(T,"muted",i.get(T)),padding:N(1)}});return{div:[y("Today",x=>{let E=new Date;u.set(B(E)),F(E),ro(x)}),y("Clear",()=>{d.set(o==="range"?[null,null]:null),S.set(null)})],style:{display:"flex",justifyContent:"space-between",marginTop:N(2),paddingTop:N(2),borderTop:x=>`1px solid ${A(x,"border")}`}}}function Fr(y,x){let E=y,T=u.get(),k=null;switch(E.key){case"ArrowLeft":k=$e(T,-1);break;case"ArrowRight":k=$e(T,1);break;case"ArrowUp":k=$e(T,-7);break;case"ArrowDown":k=$e(T,7);break;case"Home":k=Co(T,p);break;case"End":k=$e(Co(T,p),6);break;case"PageUp":k=vo(T,E.shiftKey?-12:-1);break;case"PageDown":k=vo(T,E.shiftKey?12:1);break;case"Enter":case" ":E.preventDefault(),ze(T,x);return;default:return}E.preventDefault(),u.set(k),F(k),ro(x)}}function Cn(){return{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:N(.5)}}function Ha(){return{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:a=>Ge(a),color:a=>A(a,"muted"),width:N(7),height:N(7),borderRadius:N(1),"&:hover":{backgroundColor:a=>A(a,"shift-3")}}}function Fa(){return{fontFamily:"inherit",fontSize:a=>Ge(a),padding:N(1),borderRadius:N(1),border:"none",outlineOffset:"-1px",outline:a=>`1px solid ${A(a,"border-strong")}`,backgroundColor:a=>A(a,"inherit"),color:a=>A(a,"text")}}import{toState as Ka}from"@domphy/core";import{themeColor as En,themeSize as kn,themeSpacing as wn}from"@domphy/theme";function sm(a={}){var r;let o=Ka((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="dl"&&console.warn('"descriptionList" primitive patch must use dl tag')},_doctorDisable:"inline-typography",style:{display:"grid",gridTemplateColumns:`minmax(${wn(24)}, max-content) 1fr`,columnGap:wn(4),margin:0,"& dt":{margin:0,fontWeight:600,fontSize:e=>kn(e,"inherit"),color:e=>En(e,"shift-10",o.get(e))},"& dd":{margin:0,fontSize:e=>kn(e,"inherit"),color:e=>En(e,"text",o.get(e))}}}}import{toState as Tn}from"@domphy/core";import{themeColor as _e,themeDensity as pt,themeSize as Dn,themeSpacing as Z}from"@domphy/theme";function pm(a={}){var s,t;let{duration:o=240}=a,r=Tn((s=a.color)!=null?s:"neutral","color"),e=Tn((t=a.accentColor)!=null?t:"primary","accentColor");return{_onInsert:n=>{n.tagName!=="details"&&console.warn('"details" primitive patch must use details tag')},_doctorDisable:"inline-typography",style:{fontSize:n=>Dn(n,"inherit"),color:n=>_e(n,"text",r.get(n)),backgroundColor:n=>_e(n,"inherit",r.get(n)),overflow:"hidden","& > summary":{backgroundColor:n=>_e(n,"shift-2",r.get(n)),color:n=>_e(n,"shift-10",r.get(n)),fontSize:n=>Dn(n,"inherit"),listStyle:"none",display:"flex",justifyContent:"space-between",alignItems:"center",gap:Z(2),cursor:"pointer",userSelect:"none",fontWeight:500,paddingInline:n=>Z(pt(n)*4),height:Z(10)},"& > summary::-webkit-details-marker":{display:"none"},"& > summary::marker":{content:'""'},"& > summary::after":{content:'""',width:Z(2),height:Z(2),flexShrink:0,marginTop:Z(-.5),borderInlineEnd:n=>`${Z(.5)} solid ${_e(n,"shift-9",r.get(n))}`,borderBottom:n=>`${Z(.5)} solid ${_e(n,"shift-9",r.get(n))}`,transform:"rotate(45deg)",transition:`transform ${o}ms ease`},"&[open] > summary::after":{transform:"rotate(-135deg)"},"& > summary:hover":{backgroundColor:n=>_e(n,"shift-3",r.get(n))},"& > summary:focus-visible":{borderRadius:n=>Z(pt(n)*2),boxShadow:n=>b(n,e.get(n))},"& > :not(summary)":{maxHeight:0,opacity:0,overflow:"hidden",paddingInline:n=>Z(pt(n)*3),paddingTop:0,paddingBottom:0,transition:`max-height ${o}ms ease, opacity ${o}ms ease, padding ${o}ms ease`},"&[open] > :not(summary)":{maxHeight:"none",opacity:1,paddingTop:n=>Z(pt(n)*1),paddingBottom:n=>Z(pt(n)*3)}}}}import{behavior as ja,toState as Wa}from"@domphy/core";import{themeColor as Eo,themeDensity as Pn,themeSize as Ya,themeSpacing as On}from"@domphy/theme";var ht=0;function $t(){ht++,ht===1&&(document.body.style.overflow="hidden")}function Ue(){ht=Math.max(0,ht-1),ht===0&&(document.body.style.overflow="")}var Ln='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), details, [tabindex]:not([tabindex="-1"])';function qa(a,o){let{state:r}=o,e=null,s=!1,t=!1,n=null,l=a.domElement;l.setAttribute("aria-modal","true");let m=()=>{s=!1,typeof l.close=="function"&&l.close(),l.style.visibility="hidden",l.style.pointerEvents="none",t&&(Ue(),t=!1),e==null||e.focus(),e=null},p=f=>{if(f.key!=="Tab")return;let h=Array.from(l.querySelectorAll(Ln)).filter(S=>!S.closest("[aria-hidden='true']")&&S.offsetParent!==null);if(!h.length){f.preventDefault();return}let g=h[0],u=h[h.length-1];f.shiftKey?(document.activeElement===g||document.activeElement===l)&&(f.preventDefault(),u.focus()):document.activeElement===u&&(f.preventDefault(),g.focus())},i=f=>{f.preventDefault(),r.set(!1)};l.addEventListener("cancel",i);let c=f=>{f?(s=!1,n&&(clearTimeout(n),n=null),e=document.activeElement,l.style.visibility="visible",l.style.pointerEvents="auto",typeof l.showModal=="function"&&!l.open&&l.showModal(),t||($t(),t=!0),l.addEventListener("keydown",p),requestAnimationFrame(()=>{l.style.opacity="1";let h=l.querySelector(Ln);h==null||h.focus()})):(s=!0,l.style.opacity="0",l.removeEventListener("keydown",p),n=setTimeout(()=>{n=null,s&&m()},350))};c(r.get());let d=r.addListener(c);return{requestClose:()=>r.set(!1),onTransitionEnd:f=>{s&&f.target===l&&f.propertyName==="opacity"&&m()},update(f){f.state!==r&&(d(),r=f.state,d=r.addListener(c))},destroy(){n&&(clearTimeout(n),n=null),d(),l.removeEventListener("cancel",i),t&&(Ue(),t=!1),l.removeEventListener("keydown",p),e==null||e.focus(),e=null}}}function vm(a={}){let{color:o="neutral",open:r=!1,labelledBy:e,describedBy:s}=a,t=Wa(r);return U(z({_onInsert:n=>{n.tagName!=="dialog"&&console.warn('"dialog" primitive patch must use dialog tag')}},ja("dialog",qa,{state:t})),{ariaLabelledby:e,ariaDescribedby:s,onClick:(n,l)=>{var i;if(n.target!==l.domElement)return;let m=l.domElement.getBoundingClientRect();n.clientX>=m.left&&n.clientX<=m.right&&n.clientY>=m.top&&n.clientY<=m.bottom||(i=l.getBehavior("dialog"))==null||i.requestClose()},onTransitionEnd:(n,l)=>{var m;return(m=l.getBehavior("dialog"))==null?void 0:m.onTransitionEnd(n)},style:{opacity:"0",visibility:"hidden",pointerEvents:"none",transition:"opacity 200ms ease",fontSize:n=>Ya(n,"inherit"),color:n=>Eo(n,"shift-10",o),backgroundColor:n=>Eo(n,"inherit",o),border:"none",borderRadius:n=>On(Pn(n)*2),padding:n=>On(Pn(n)*3),boxShadow:I("high"),"&::backdrop":{backgroundColor:n=>Eo(n,"shift-2","neutral"),opacity:.75}}})}import{toState as Ga}from"@domphy/core";import{themeColor as _t,themeSize as Ua,themeSpacing as Xa}from"@domphy/theme";function wm(a={}){var r;let o=Ga((r=a.color)!=null?r:"neutral","color");return{role:"separator",_onInsert:e=>{e.tagName!=="div"&&console.warn('"divider" patch should be used with <div>')},style:{display:"flex",justifyContent:"center",alignItems:"baseline",gap:Xa(2),fontSize:e=>Ua(e,"inherit"),backgroundColor:e=>_t(e),color:e=>_t(e,"text",o.get(e)),minHeight:"1lh","&::before":{content:'""',flex:1,borderColor:e=>_t(e,"border-strong",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"},"&::after":{content:'""',flex:1,borderColor:e=>_t(e,"border-strong",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"}}}}import{toState as Za}from"@domphy/core";import{themeColor as ko,themeDensity as Ja,themeSize as Qa,themeSpacing as wo}from"@domphy/theme";var To={left:"translateX(-100%)",right:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},In={left:"0 auto 0 0",right:"0 0 0 auto",top:"0 0 auto 0",bottom:"auto 0 0 0"},gt=a=>a==="left"||a==="right";function zn(a,o){return a==="start"?o?"right":"left":a==="end"?o?"left":"right":a}function Im(a={}){let{color:o="neutral",open:r=!1,placement:e="end",size:s}=a,t=Za(r),n=e==="start"||e==="end",l=zn(e,!1),m=gt(l)?wo(80):wo(64),p=s!=null?s:m;return{_onInsert:i=>{i.tagName!=="dialog"&&console.warn('"drawer" patch must use dialog tag')},onClick:(i,c)=>{i.target===c.domElement&&t.set(!1)},_onMount:i=>{let c=i.domElement;c.setAttribute("aria-modal","true");let d=O=>{O.preventDefault(),t.set(!1)};c.addEventListener("cancel",d);let f=n&&(c.ownerDocument.documentElement.dir==="rtl"||c.ownerDocument.dir==="rtl"),h=zn(e,f);n&&(c.style.transform=To[h],c.style.margin=In[h],c.style.width=gt(h)?p:"100dvw",c.style.height=gt(h)?"100dvh":p);let g=!1,u=!1,S=null,C=()=>{S=null,g&&(g=!1,typeof c.close=="function"&&c.close(),c.style.visibility="hidden",c.style.pointerEvents="none",u&&(Ue(),u=!1))},v=O=>{O.target===c&&O.propertyName==="transform"&&C()};c.addEventListener("transitionend",v);let w=O=>{O?(g=!1,c.style.visibility="visible",c.style.pointerEvents="auto",typeof c.showModal=="function"&&c.showModal(),u||($t(),u=!0),requestAnimationFrame(()=>{c.style.transform="translate(0, 0)"})):(g=!0,c.style.transform=To[h],S=setTimeout(C,350))};w(t.get());let D=t.addListener(w);i.addHook("Remove",()=>{S&&(clearTimeout(S),S=null),D(),c.removeEventListener("cancel",d),c.removeEventListener("transitionend",v),u&&(Ue(),u=!1)})},style:{transform:To[l],visibility:"hidden",pointerEvents:"none",transition:"transform 0.25s ease",fontSize:i=>Qa(i,"inherit"),color:i=>ko(i,"shift-10",o),backgroundColor:i=>ko(i,"inherit",o),border:"none",padding:i=>wo(Ja(i)*3),margin:In[l],width:gt(l)?p:"100dvw",height:gt(l)?"100dvh":p,maxWidth:"100dvw",maxHeight:"100dvh",boxShadow:I("high"),"&::backdrop":{backgroundColor:i=>ko(i,"shift-2","neutral"),opacity:.75}}}}import{toState as ei}from"@domphy/core";import{themeColor as ti,themeSize as oi}from"@domphy/theme";function $m(a={}){var r;let o=ei((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="em"&&console.warn('"emphasis" primitive patch must use em tag')},style:{fontSize:e=>oi(e,"inherit"),fontStyle:"italic",color:e=>ti(e,"shift-10",o.get(e))}}}import{toState as ni}from"@domphy/core";import{themeColor as Do,themeSpacing as Po}from"@domphy/theme";function Bm(a={}){var r;let o=ni((r=a.color)!=null?r:"neutral","color");return{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:Po(3),paddingBlock:Po(12),paddingInline:Po(6),textAlign:"center",color:e=>Do(e,"muted",o.get(e)),"& > :first-child":{color:e=>Do(e,"shift-5",o.get(e)),opacity:.9},"& > :nth-child(2)":{color:e=>Do(e,"text",o.get(e))}}}}function Hm(a={}){return{_onError:(o,r,e)=>{var t,n;(t=a.onError)==null||t.call(a,r);let s=typeof a.fallback=="function"?a.fallback(r,e):(n=a.fallback)!=null?n:{div:"An error occurred."};o.children.update([s])}}}import{toState as ri}from"@domphy/core";import{themeColor as Mt,themeSize as ai,themeSpacing as ii}from"@domphy/theme";var li={small:8,medium:10,large:14};function qm(a={}){var e,s;let o=ri((e=a.color)!=null?e:"primary","color"),r=ii(li[(s=a.size)!=null?s:"medium"]);return{_onInsert:t=>{t.tagName!=="button"&&console.warn('"fab" patch must use button tag')},_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"],style:{appearance:"none",border:"none",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:r,height:r,borderRadius:"50%",fontSize:t=>ai(t,"inherit"),backgroundColor:t=>Mt(t,"shift-13",o.get(t)),color:t=>Mt(t,"shift-0","neutral"),boxShadow:I("low"),transition:"background-color 200ms ease, box-shadow 200ms ease","&:hover:not([disabled])":{backgroundColor:t=>Mt(t,"shift-14",o.get(t)),boxShadow:I("medium")},"&:active:not([disabled])":{backgroundColor:t=>Mt(t,"shift-15",o.get(t)),boxShadow:I("low")},"&:focus-visible":{boxShadow:t=>`${I("medium")}, ${b(t,o.get(t))}`},"&[disabled]":{opacity:.5,cursor:"not-allowed"}}}}import{toState as si}from"@domphy/core";import{themeColor as Vn,themeSize as ci,themeSpacing as Nt}from"@domphy/theme";function Zm(a={}){var r;let o=si((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="figure"&&console.warn('"figure" primitive patch must use figure tag')},style:{display:"flex",flexDirection:"column",gap:Nt(2),marginInline:0,marginTop:Nt(3),marginBottom:Nt(3),color:e=>Vn(e,"text",o.get(e)),"& img, & svg, & video, & canvas":{display:"block",maxWidth:"100%",borderRadius:Nt(2)},"& figcaption":{fontSize:e=>ci(e,"decrease-1"),color:e=>Vn(e,"muted",o.get(e)),lineHeight:1.45}}}}import{toState as mi}from"@domphy/core";import{themeColor as ft,themeDensity as Xe,themeSize as Oo,themeSpacing as pe}from"@domphy/theme";function tu(a={}){var s;let{layout:o="horizontal"}=a,r=mi((s=a.color)!=null?s:"neutral","color"),e=o==="vertical";return{_onInsert:t=>{t.tagName!=="fieldset"&&console.warn('"formGroup" patch must use fieldset tag')},_doctorDisable:"inline-typography",style:{margin:0,paddingInline:t=>pe(Xe(t)*3),paddingBlock:t=>pe(Xe(t)*3),border:"none",borderRadius:t=>pe(Xe(t)*2),fontSize:t=>Oo(t,"inherit"),backgroundColor:t=>ft(t,"inherit",r.get(t)),color:t=>ft(t,"text",r.get(t)),display:"grid",gridTemplateColumns:e?"minmax(0, 1fr)":"max-content minmax(0, 1fr)",columnGap:pe(4),rowGap:pe(3),alignItems:"start","& > legend":{gridColumn:"1 / -1",margin:0,fontSize:t=>Oo(t,"inherit"),fontWeight:600,paddingBlock:t=>pe(Xe(t)*1),borderRadius:t=>pe(Xe(t)*2),color:t=>ft(t,"text",r.get(t)),backgroundColor:t=>ft(t,"inherit",r.get(t))},"& > label":{gridColumn:"1",alignSelf:"start",margin:0,paddingBlock:t=>e?0:pe(Xe(t)*1)},"& > label:has(+ :not(legend, label, p) + p)":{gridRow:e?"auto":"span 2"},"& > :not(legend, label, p)":{gridColumn:e?"1":"2",minWidth:0,width:"100%",boxSizing:"border-box"},"& > p":{gridColumn:e?"1":"2",minWidth:0,margin:0,marginBlockStart:`calc(${pe(2)} * -1)`,fontSize:t=>Oo(t,"decrease-1"),color:t=>ft(t,"text",r.get(t))}}}}import{themeDensity as ui,themeSpacing as di}from"@domphy/theme";function ru(a={}){let{columns:o=1,gap:r=4,align:e}=a;return{style:z({display:"grid",gridTemplateColumns:typeof o=="number"?`repeat(${o}, minmax(0, 1fr))`:o,gap:s=>di(ui(s)*r)},e?{alignItems:e}:{})}}import{toState as pi}from"@domphy/core";import{themeColor as hi,themeSize as gi,themeSpacing as fi}from"@domphy/theme";var yi={h6:"decrease-1",h5:"inherit",h4:"increase-1",h3:"increase-2",h2:"increase-3",h1:"increase-4"};function cu(a={}){var r;let o=pi((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{["h1","h2","h3","h4","h5","h6"].includes(e.tagName)||console.warn('"heading" primitive patch must use heading tags [h1...h6]')},style:{color:e=>hi(e,"shift-11",o.get(e)),marginTop:0,marginBottom:fi(2),fontSize:e=>{let s=yi[e.elementNode.tagName]||"inherit";return gi(e,s)}}}}import{toState as bi}from"@domphy/core";import{themeColor as Rn,themeSpacing as $n}from"@domphy/theme";function pu(a={}){var r;let o=bi((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="hr"&&console.warn('"horizontalRule" primitive patch must use hr tag')},dataTone:"shift-3",style:{border:0,height:"1px",marginInline:0,marginTop:$n(3),marginBottom:$n(3),backgroundColor:e=>Rn(e,"inherit",o.get(e)),color:e=>Rn(e,"text",o.get(e))}}}import{toState as Si}from"@domphy/core";import{themeColor as vi,themeSize as xi,themeSpacing as _n}from"@domphy/theme";function yu(a={}){var r;let o=Si((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="span"&&console.warn('"icon" primitive patch should use span tag')},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",alignSelf:"center",justifySelf:"center",verticalAlign:"middle",width:_n(4),height:_n(4),flexShrink:"0",fontSize:e=>xi(e),backgroundColor:"transparent",color:e=>vi(e,"text",o.get(e))}}}import{toState as Ci}from"@domphy/core";import{themeColor as Mn,themeSpacing as Ei}from"@domphy/theme";function xu(a={}){var r;let o=Ci((r=a.color)!=null?r:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="img"&&console.warn('"image" primitive patch must use img tag')},style:{display:"block",width:"100%",maxWidth:"100%",height:"auto",objectFit:"cover",borderRadius:Ei(2),backgroundColor:e=>Mn(e,"inherit",o.get(e)),color:e=>Mn(e,"text",o.get(e))}}}import{toState as Nn}from"@domphy/core";import{themeColor as q,themeSize as ki,themeSpacing as Me}from"@domphy/theme";function Tu(a={}){var e,s;let o=Nn((e=a.color)!=null?e:"neutral","color"),r=Nn((s=a.accentColor)!=null?s:"primary","accentColor");return{type:"checkbox",_onInsert:t=>{t.tagName!=="input"&&console.warn('"inputCheckbox" primitive patch must use input tag')},style:{appearance:"none",fontSize:t=>ki(t,"inherit"),color:t=>q(t,"text",o.get(t)),display:"inline-flex",position:"relative",width:Me(6),height:Me(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:Me(1),lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${q(t,"border-strong",o.get(t))}`,color:t=>q(t,"text",o.get(t)),width:Me(4),height:Me(4)},"&:hover::before":{backgroundColor:t=>q(t,"hover",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${q(t,"shift-6",r.get(t))}`,backgroundColor:t=>q(t,"shift-8",r.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>q(t,"shift-7",r.get(t))},"&:checked::after":{content:'""',display:"block",position:"absolute",top:"25%",insetInlineStart:"37%",width:"20%",height:"30%",border:t=>`${Me(.5)} solid ${q(t,"inherit",r.get(t))}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg)"},"&:indeterminate::before":{outline:t=>`1px solid ${q(t,"shift-6",r.get(t))}`,backgroundColor:t=>q(t,"shift-3",r.get(t))},"&:indeterminate::after":{content:'""',position:"absolute",inset:"30%",backgroundColor:t=>q(t,"shift-8",r.get(t))},"&:indeterminate:hover:not([disabled])::after":{backgroundColor:t=>q(t,"shift-7",r.get(t))},"&:focus-visible":{borderRadius:Me(1.5),boxShadow:t=>b(t,r.get(t))},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>q(t,"shift-4","neutral"),pointerEvents:"none"}}}}import{toState as wi}from"@domphy/core";import{themeColor as Lo,themeDensity as Ze,themeSize as Ti,themeSpacing as Je}from"@domphy/theme";function Iu(a={}){var r;let o=wi((r=a.color)!=null?r:"neutral","color");return{type:"color",_onSchedule:(e,s)=>{e.tagName!=="input"&&console.warn('"inputColor" primitive patch must use input tag'),s.type="color"},style:{appearance:"none",border:"none",cursor:"pointer",fontSize:e=>Ti(e,"inherit"),color:e=>Lo(e,"text",o.get(e)),paddingBlock:e=>Je(Ze(e)*1),paddingInline:e=>Je(Ze(e)*1),blockSize:e=>Je(6+Ze(e)*2),inlineSize:e=>Je(6+Ze(e)*2),backgroundColor:"transparent",transition:"box-shadow 140ms ease",borderRadius:e=>Je(Ze(e)*1.5),"&:focus-visible":{boxShadow:e=>b(e,o.get(e))},"&::-webkit-color-swatch-wrapper":{margin:0,padding:0},"&::-webkit-color-swatch":{borderRadius:e=>Je(Ze(e)*1.5)},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:e=>Lo(e,"shift-2","neutral"),outline:e=>`1px solid ${Lo(e,"border-strong","neutral")}`}}}}import{toState as Bn}from"@domphy/core";import{themeColor as ve,themeDensity as Io,themeSize as Di,themeSpacing as Bt}from"@domphy/theme";function _u(a={}){var s,t;let{mode:o="datetime-local"}=a,r=Bn((s=a.color)!=null?s:"neutral","color"),e=Bn((t=a.accentColor)!=null?t:"primary","accentColor");return{type:o,_onSchedule:(n,l)=>{n.tagName!=="input"&&console.warn('"inputDateTime" primitive patch must use input tag'),l.type=o},style:{fontFamily:"inherit",fontSize:n=>Di(n,"inherit"),lineHeight:"inherit",color:n=>ve(n,"text",r.get(n)),backgroundColor:n=>ve(n,"inherit",r.get(n)),border:"none",outlineOffset:"-1px",outline:n=>`1px solid ${ve(n,"border-strong",r.get(n))}`,borderRadius:n=>Bt(Io(n)*1.5),paddingInline:n=>Bt(Io(n)*3),height:n=>Bt(6+Io(n)*2),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-calendar-picker-indicator":{cursor:"pointer",opacity:.85},"&:hover:not([disabled]):not([aria-busy=true])":{outline:n=>`1px solid ${ve(n,"shift-5",e.get(n))}`},"&:focus-visible":{boxShadow:n=>b(n,e.get(n))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:n=>ve(n,"muted","neutral"),backgroundColor:n=>ve(n,"shift-2","neutral"),outline:n=>`1px solid ${ve(n,"border-strong","neutral")}`},"&:invalid":{outline:n=>`${Bt(.5)} solid ${ve(n,"shift-6","error")}`}}}}import{toState as An}from"@domphy/core";import{themeColor as ee,themeDensity as At,themeSize as Pi,themeSpacing as Ne}from"@domphy/theme";function Hu(a={}){var e,s;let o=An((e=a.color)!=null?e:"neutral","color"),r=An((s=a.accentColor)!=null?s:"primary","accentColor");return{type:"file",_onSchedule:(t,n)=>{t.tagName!=="input"&&console.warn('"inputFile" primitive patch must use input tag'),n.type="file"},style:{display:"inline-flex",alignItems:"center",fontFamily:"inherit",fontSize:t=>Pi(t,"inherit"),lineHeight:"inherit",color:t=>ee(t,"text",o.get(t)),backgroundColor:t=>ee(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${ee(t,"border-strong",o.get(t))}`,borderRadius:t=>Ne(At(t)*1.5),height:t=>Ne(6+At(t)*2),paddingInline:t=>Ne(At(t)*1),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-file-upload-button":{marginTop:t=>Ne(At(t)),fontFamily:"inherit",fontSize:"inherit",border:"none",borderRadius:Ne(1),height:Ne(6),paddingInline:Ne(2),cursor:"pointer",color:t=>ee(t,"shift-11",o.get(t)),backgroundColor:t=>ee(t,"surface",o.get(t))},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${ee(t,"shift-5",r.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,r.get(t))},"&[disabled]":{opacity:.8,cursor:"not-allowed",color:t=>ee(t,"muted","neutral"),outline:t=>`1px solid ${ee(t,"border-strong","neutral")}`,backgroundColor:t=>ee(t,"surface","neutral")},"&[disabled]::-webkit-file-upload-button":{cursor:"not-allowed",color:t=>ee(t,"muted","neutral"),backgroundColor:t=>ee(t,"shift-3","neutral")}}}}import{toState as Hn}from"@domphy/core";import{themeColor as Be,themeDensity as Ht,themeSize as Oi,themeSpacing as yt}from"@domphy/theme";function Yu(a={}){var e,s;let o=Hn((e=a.color)!=null?e:"neutral","color"),r=Hn((s=a.accentColor)!=null?s:"primary","accentColor");return{type:"number",_onSchedule:(t,n)=>{t.tagName!=="input"&&console.warn('"inputNumber" primitive patch must use input tag'),n.type="number"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:yt(10),paddingInlineStart:t=>yt(Ht(t)*3),paddingInlineEnd:t=>yt(Ht(t)*1.5),paddingBlock:t=>yt(Ht(t)*1),borderRadius:t=>yt(Ht(t)*1.5),fontSize:t=>Oi(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${Be(t,"border-strong",o.get(t))}`,color:t=>Be(t,"text",o.get(t)),backgroundColor:t=>Be(t,"inherit",o.get(t)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{opacity:1},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${Be(t,"shift-5",r.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,r.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>Be(t,"shift-2","neutral"),outline:t=>`1px solid ${Be(t,"border-strong","neutral")}`,color:t=>Be(t,"muted","neutral")}}}}import{themeSpacing as Fn}from"@domphy/theme";function Uu(){return{role:"group",ariaLabel:"One-time password",style:{display:"flex",alignItems:"center",gap:Fn(2),"& > *":{minWidth:`${Fn(9)}!important`}},_onMount:a=>{let o=a.domElement,r=()=>Array.from(o.querySelectorAll("input")),e=n=>{let l=r(),m=n.target,p=l.indexOf(m);m.value&&p<l.length-1&&l[p+1].focus()},s=n=>{let l=r(),m=n.target,p=l.indexOf(m);n.key==="Backspace"&&!m.value&&p>0&&l[p-1].focus(),n.key==="ArrowLeft"&&p>0&&l[p-1].focus(),n.key==="ArrowRight"&&p<l.length-1&&l[p+1].focus()},t=n=>{var d,f,h;n.preventDefault();let l=(f=(d=n.clipboardData)==null?void 0:d.getData("text"))!=null?f:"",m=r(),p=m.indexOf(n.target),i=p===-1?0:p;[...l].forEach((g,u)=>{m[i+u]&&(m[i+u].value=g)});let c=Math.min(i+l.length-1,m.length-1);(h=m[c])==null||h.focus()};o.addEventListener("input",e),o.addEventListener("keydown",s),o.addEventListener("paste",t),a.addHook("Remove",()=>{o.removeEventListener("input",e),o.removeEventListener("keydown",s),o.removeEventListener("paste",t)})}}}import{rawHtml as Li,toState as zo}from"@domphy/core";import{themeColor as Ft,themeDensity as Kt,themeSize as Ii,themeSpacing as jt}from"@domphy/theme";var zi='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"/></svg>',Vi='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828"/><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87"/><path d="M3 3l18 18"/></svg>';function ed(a={}){var s,t;let o=zo((s=a.color)!=null?s:"neutral","color"),r=zo((t=a.accentColor)!=null?t:"primary","accentColor"),e=zo(!1);return{_onInsert:n=>{n.tagName!=="div"&&console.warn('"inputPassword" patch must use div tag')},_onInit:n=>{let l={input:null,type:p=>e.get(p)?"text":"password",ariaLabel:"Password",autocomplete:"current-password",style:{flex:1,minWidth:0,border:"none",outline:"none",backgroundColor:"transparent",padding:0,margin:0,font:"inherit",color:"inherit"}},m={button:p=>Li(e.get(p)?Vi:zi),type:"button",ariaLabel:p=>e.get(p)?"Hide password":"Show password",onClick:()=>e.set(!e.get()),style:{background:"none",border:"none",padding:0,margin:0,cursor:"pointer",color:"inherit",display:"flex",alignItems:"center",flexShrink:0,opacity:.6}};n.children.insert(l),n.children.insert(m)},style:{display:"flex",alignItems:"center",gap:n=>jt(Kt(n)*1),paddingBlock:n=>jt(Kt(n)*1),paddingInline:n=>jt(Kt(n)*3),borderRadius:n=>jt(Kt(n)*1.5),border:"none",outlineOffset:"-1px",outline:n=>`1px solid ${Ft(n,"border-strong",o.get(n))}`,color:n=>Ft(n,"text",o.get(n)),backgroundColor:n=>Ft(n,"inherit",o.get(n)),fontSize:n=>Ii(n,"inherit"),transition:"outline-color 140ms ease, box-shadow 140ms ease","&:hover:not(:has([disabled])):not(:focus-within)":{outline:n=>`1px solid ${Ft(n,"shift-5",r.get(n))}`},"&:focus-within":{boxShadow:n=>b(n,r.get(n))}}}}import{toState as Kn}from"@domphy/core";import{themeColor as xe,themeSize as Ri,themeSpacing as Wt}from"@domphy/theme";function ad(a={}){var e,s;let o=Kn((e=a.color)!=null?e:"neutral","color"),r=Kn((s=a.accentColor)!=null?s:"primary","accentColor");return{type:"radio",_onInsert:t=>{if(t.tagName!=="input"){console.warn('"inputRadio" primitive patch must use input tag and radio type');return}},style:{fontSize:t=>Ri(t,"inherit"),color:t=>xe(t,"text",o.get(t)),appearance:"none",display:"inline-flex",position:"relative",width:Wt(6),height:Wt(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:"50%",lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${xe(t,"border-strong",o.get(t))}`,color:t=>xe(t,"text",o.get(t)),width:Wt(4),height:Wt(4)},"&:hover::before":{backgroundColor:t=>xe(t,"hover",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${xe(t,"shift-6",r.get(t))}`},"&:checked::after":{content:'""',position:"absolute",inset:"30%",borderRadius:"50%",backgroundColor:t=>xe(t,"shift-8",r.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>xe(t,"shift-7",r.get(t))},"&:focus-visible":{borderRadius:"50%",boxShadow:t=>b(t,r.get(t))},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>xe(t,"shift-4","neutral"),pointerEvents:"none"}}}}import{toState as jn}from"@domphy/core";import{themeColor as Vo,themeSpacing as he}from"@domphy/theme";function md(a={}){var e,s;let o=jn((e=a.color)!=null?e:"neutral","color"),r=jn((s=a.accentColor)!=null?s:"primary","accentColor");return{type:"range",_onInsert:t=>{t.tagName!=="input"&&console.warn('"inputRange" primitive patch must use input tag')},style:{appearance:"none",width:"100%",margin:0,padding:0,height:he(4),background:"transparent",cursor:"pointer","&::-webkit-slider-runnable-track":{height:he(1.5),borderRadius:he(999),backgroundColor:t=>Vo(t,"shift-3",o.get(t))},"&::-webkit-slider-thumb":{appearance:"none",width:he(4),height:he(4),borderRadius:he(999),border:"none",marginTop:`calc((${he(1.5)} - ${he(4)}) / 2)`,backgroundColor:t=>Vo(t,"shift-9",r.get(t))},"&:hover:not([disabled])::-webkit-slider-thumb":{backgroundColor:t=>Vo(t,"shift-10",r.get(t))},borderRadius:he(2),transition:"box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,r.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as Wn}from"@domphy/core";import{themeColor as Ce,themeDensity as Ro,themeSize as $i,themeSpacing as Yt}from"@domphy/theme";function gd(a={}){var e,s;let o=Wn((e=a.color)!=null?e:"neutral","color"),r=Wn((s=a.accentColor)!=null?s:"primary","accentColor");return{type:"search",_onSchedule:(t,n)=>{t.tagName!=="input"&&console.warn('"inputSearch" primitive patch must use input tag'),n.type="search"},style:{fontFamily:"inherit",fontSize:t=>$i(t,"inherit"),lineHeight:"inherit",color:t=>Ce(t,"text",o.get(t)),backgroundColor:t=>Ce(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${Ce(t,"border-strong",o.get(t))}`,borderRadius:t=>Yt(Ro(t)*1.5),minWidth:Yt(32),paddingInline:t=>Yt(Ro(t)*3),paddingBlock:t=>Yt(Ro(t)*1),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:t=>Ce(t,"shift-7",o.get(t))},"&::-webkit-search-decoration":{display:"none"},"&::-webkit-search-cancel-button":{cursor:"pointer"},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${Ce(t,"shift-5",r.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,r.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>Ce(t,"muted","neutral"),backgroundColor:t=>Ce(t,"shift-2","neutral"),outline:t=>`1px solid ${Ce(t,"border-strong","neutral")}`}}}}import{toState as _i}from"@domphy/core";import{themeColor as bt,themeSize as Yn,themeSpacing as re}from"@domphy/theme";function vd(a={}){var r;let o=_i((r=a.accentColor)!=null?r:"primary","accentColor");return{role:"switch",dataTone:"shift-2",type:"checkbox",_onSchedule:e=>{if(e.tagName!=="input"){console.warn('"inputSwitch" primitive patch must use input tag');return}},style:{fontSize:e=>Yn(e,"inherit"),backgroundColor:e=>bt(e,"inherit"),color:e=>bt(e,"text"),appearance:"none",position:"relative",display:"inline-flex",width:re(9),height:re(6),cursor:"pointer",margin:"0",paddingBlock:re(1),transition:"box-shadow 140ms ease",borderRadius:re(999),"&:focus-visible":{boxShadow:e=>b(e,o.get(e))},"&:checked":{"&::before":{backgroundColor:e=>bt(e,"increase-3",o.get(e))},"&::after":{left:`calc(100% - ${re(3.5)})`}},"&::after":{content:'""',aspectRatio:"1/1",position:"absolute",width:re(3),height:re(3),borderRadius:re(999),left:re(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",backgroundColor:e=>bt(e,"decrease-3")},"&::before":{content:'""',width:"100%",borderRadius:re(999),display:"inline-block",fontSize:e=>Yn(e,"inherit"),lineHeight:1,backgroundColor:e=>bt(e)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as qn}from"@domphy/core";import{themeColor as J,themeDensity as $o,themeSize as Mi,themeSpacing as Ae}from"@domphy/theme";function wd(a={}){var s,t;let{type:o="text"}=a,r=qn((s=a.color)!=null?s:"neutral","color"),e=qn((t=a.accentColor)!=null?t:"primary","accentColor");return{type:o,_onInsert:n=>{n.tagName!=="input"&&console.warn('"inputText" primitive patch must use input tag and text type')},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:Ae(10),paddingInline:n=>Ae($o(n)*3),paddingBlock:n=>Ae($o(n)*1),borderRadius:n=>Ae($o(n)*1.5),fontSize:n=>Mi(n,"inherit"),border:"none",outlineOffset:"-1px",outline:n=>`1px solid ${J(n,"border-strong",r.get(n))}`,color:n=>J(n,"text",r.get(n)),backgroundColor:n=>J(n,"inherit",r.get(n)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:n=>J(n,"shift-7")},"&:not(:placeholder-shown)":{color:n=>J(n,"shift-10")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:n=>`1px solid ${J(n,"shift-5",e.get(n))}`},"&:focus-visible":{boxShadow:n=>b(n,e.get(n))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:n=>J(n,"shift-2","neutral"),outline:n=>`1px solid ${J(n,"border-strong","neutral")}`,color:n=>J(n,"muted","neutral")},"&:invalid:not(:placeholder-shown)":{outline:n=>`${Ae(.5)} solid ${J(n,"shift-6","error")}`},"&[data-status=error]":{outline:n=>`${Ae(.5)} solid ${J(n,"shift-6","error")}`},"&[data-status=warning]":{outline:n=>`${Ae(.5)} solid ${J(n,"shift-6","warning")}`}}}}import{toState as Ni}from"@domphy/core";import{themeColor as _o,themeSize as Bi,themeSpacing as Mo}from"@domphy/theme";function Od(a={}){var r;let o=Ni((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="kbd"&&console.warn('"keyboard" primitive patch must use kbd tag')},style:{fontSize:e=>Bi(e,"inherit"),color:e=>_o(e,"text",o.get(e)),backgroundColor:e=>_o(e,"inherit",o.get(e)),paddingBlock:Mo(.5),paddingInline:Mo(1.5),borderRadius:Mo(1),outline:e=>`1px solid ${_o(e,"border-strong",o.get(e))}`}}}import{toState as Gn}from"@domphy/core";import{themeColor as No,themeSize as Ai,themeSpacing as Hi}from"@domphy/theme";function Vd(a={}){var e,s;let o=Gn((e=a.color)!=null?e:"neutral","color"),r=Gn((s=a.accentColor)!=null?s:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="label"&&console.warn('"label" primitive patch must use label tag')},style:{display:"inline-flex",alignItems:"center",gap:Hi(2),fontSize:t=>Ai(t,"inherit"),color:t=>No(t,"text",o.get(t)),cursor:"pointer","&:focus-within":{color:t=>No(t,"shift-10",r.get(t))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",color:t=>No(t,"muted","neutral")}}}}import{toState as Un}from"@domphy/core";import{themeColor as St,themeSize as Fi,themeSpacing as Ki}from"@domphy/theme";function Nd(a={}){var e,s;let o=Un((e=a.color)!=null?e:"primary","color"),r=Un((s=a.accentColor)!=null?s:"secondary","accentColor");return{_onInsert:t=>{t.tagName!=="a"&&console.warn('"link" primitive patch must use a tag')},style:{fontSize:t=>Fi(t,"inherit"),backgroundColor:t=>St(t),color:t=>St(t,"shift-13",o.get(t)),textDecoration:"none","&:visited":{color:t=>St(t,"shift-13",r.get(t))},"&:hover:not([disabled])":{color:t=>St(t,"shift-14",o.get(t)),textDecoration:"underline"},borderRadius:Ki(1),outline:"none",transition:"color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,r.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>St(t,"muted","neutral")}}}}import{toState as ji}from"@domphy/core";import{themeColor as _,themeDensity as Ee,themeSize as Xn,themeSpacing as ke}from"@domphy/theme";var Wi={small:{block:.5,inline:2},medium:{block:1,inline:3},large:{block:1.5,inline:4}},Yi={small:.5,medium:1,large:1.5};function jd(a={}){var l,m,p;let o=(l=a.variant)!=null?l:"outline",r=ji((m=a.color)!=null?m:o==="ghost"?"neutral":"primary","color"),e=(p=a.size)!=null?p:"medium",s=Ye[e];if(o==="ghost"){let i=Yi[e];return{_onInsert:c=>{c.tagName!=="a"&&console.warn('"linkButton" primitive patch must use a tag')},style:{fontSize:c=>Xn(c,s),textDecoration:"none",paddingBlock:c=>ke(Ee(c)*i),paddingInline:c=>ke(Ee(c)*i),borderRadius:c=>ke(Ee(c)*1.5),display:"inline-flex",justifyContent:"center",alignItems:"center",gap:c=>ke(Ee(c)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",background:"none",outline:"none",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease",color:c=>_(c,"text",r.get(c)),"&:hover:not([aria-disabled=true])":{color:c=>_(c,"text",r.get(c)),backgroundColor:c=>_(c,"hover",r.get(c)),textDecoration:"none"},"&:active:not([aria-disabled=true])":{color:c=>_(c,"text",r.get(c)),backgroundColor:c=>_(c,"increase-2",r.get(c))},"&:focus-visible":{boxShadow:c=>b(c,r.get(c))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",pointerEvents:"none",color:c=>_(c,"border-strong","neutral")}}}}let t=o==="solid",n=Wi[e];return U(z({_onInsert:i=>{i.tagName!=="a"&&console.warn('"linkButton" primitive patch must use a tag')}},t?{_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"]}:{}),{style:{fontSize:i=>Xn(i,s),textDecoration:"none",paddingBlock:i=>ke(Ee(i)*n.block),paddingInline:i=>ke(Ee(i)*n.inline),borderRadius:i=>ke(Ee(i)*1.5),width:"fit-content",display:"inline-flex",justifyContent:"center",alignItems:"center",gap:i=>ke(Ee(i)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:t?"none":i=>`1px solid ${_(i,"border-strong",r.get(i))}`,color:i=>t?_(i,"shift-0","neutral"):_(i,"shift-13",r.get(i)),backgroundColor:i=>t?_(i,"shift-13",r.get(i)):_(i,"inherit",r.get(i)),transition:"background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease","&:hover:not([aria-disabled=true])":{textDecoration:"none",color:i=>t?_(i,"shift-0","neutral"):_(i,"shift-14",r.get(i)),backgroundColor:i=>t?_(i,"shift-14",r.get(i)):_(i,"hover",r.get(i))},"&:active:not([aria-disabled=true])":{backgroundColor:i=>t?_(i,"shift-15",r.get(i)):_(i,"increase-2",r.get(i))},"&:focus-visible":{boxShadow:i=>b(i,r.get(i))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",pointerEvents:"none",backgroundColor:i=>_(i,"shift-2","neutral"),outline:i=>`1px solid ${_(i,"border-strong","neutral")}`,color:i=>_(i,"muted","neutral")}}})}import{toState as qi}from"@domphy/core";import{themeColor as Qe,themeDensity as He,themeSize as Zn,themeSpacing as Fe}from"@domphy/theme";function Xd(a={}){return{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column"}}}function Zd(a={}){let{dense:o=!1}=a;return{style:{display:"flex",alignItems:"center",gap:r=>Fe(He(r)*2),paddingBlock:r=>Fe(o?1:He(r)*2),paddingInline:r=>Fe(He(r)*3),fontSize:r=>Zn(r,"inherit"),color:r=>Qe(r,"text")}}}function Jd(a={}){var s,t;let o=qi((s=a.color)!=null?s:"neutral","color"),r=(t=a.accentColor)!=null?t:"primary",{dense:e=!1}=a;return{style:{cursor:"pointer",appearance:"none",border:"none",background:"transparent",textDecoration:"none",textAlign:"left",display:"flex",alignItems:"center",width:"100%",gap:n=>Fe(He(n)*2),paddingBlock:n=>Fe(e?1:He(n)*2),paddingInline:n=>Fe(He(n)*3),fontSize:n=>Zn(n,"inherit"),color:n=>Qe(n,"text",o.get(n)),borderRadius:n=>Fe(He(n)*1.5),transition:"background-color 150ms ease, box-shadow 140ms ease","&:hover:not([disabled])":{backgroundColor:n=>Qe(n,"hover",o.get(n))},"&:active:not([disabled])":{backgroundColor:n=>Qe(n,"increase-2",o.get(n))},"&[aria-current=page], &[aria-selected=true]":{backgroundColor:n=>Qe(n,"shift-3",r),color:n=>Qe(n,"shift-12",r)},"&:focus-visible":{boxShadow:n=>b(n,r)},"&[disabled]":{opacity:.5,cursor:"not-allowed"}}}}import{toState as Gi}from"@domphy/core";import{themeColor as Jn,themeSize as Ui,themeSpacing as Bo}from"@domphy/theme";function op(a={}){var r;let o=Gi((r=a.accentColor)!=null?r:"highlight","accentColor");return{_onInsert:e=>{e.tagName!=="mark"&&console.warn('"mark" primitive patch must use mark tag')},dataTone:"shift-2",style:{display:"inline-flex",alignItems:"center",fontSize:e=>Ui(e,"inherit"),color:e=>Jn(e,"text",o.get(e)),backgroundColor:e=>Jn(e,"inherit",o.get(e)),height:Bo(6),borderRadius:Bo(1),paddingInline:Bo(1.5)}}}import{toState as Xi}from"@domphy/core";import{themeColor as we,themeDensity as vt,themeSize as Qn,themeSpacing as et}from"@domphy/theme";function sp(a={items:[]}){var n;let{items:o=[],selectable:r=!0,color:e="neutral",accentColor:s="primary"}=a,t=Xi((n=a.activeKey)!=null?n:null);return{role:"menu",dataTone:"shift-0",_onSchedule:(l,m)=>{if(o.length===0)return;let p=l.nodeId,i=o.map((c,d)=>{var h;let f=(h=c.key)!=null?h:d;return U(z({button:typeof c.label=="string"?[{span:c.label}]:[c.label],_key:f,type:"button",id:`menuitem${p}${f}`,role:"menuitem"},r?{ariaCurrent:g=>t.get(g)===f||void 0}:{}),{onClick:()=>{var g;r&&t.set(f),(g=c.onClick)==null||g.call(c)},onKeyDown:g=>{var w;let u=g.key;if(u==="Enter"||u===" "){g.preventDefault(),g.target.click();return}if(!["ArrowDown","ArrowUp","Home","End"].includes(u))return;g.preventDefault();let S=o.map((D,O)=>{var $;return($=D.key)!=null?$:O}),C=S.indexOf(f),v=C;u==="ArrowDown"?v=(C+1)%S.length:u==="ArrowUp"?v=(C-1+S.length)%S.length:u==="Home"?v=0:u==="End"&&(v=S.length-1),(w=document.getElementById(`menuitem${p}${S[v]}`))==null||w.focus()},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:et(2),width:"100%",fontSize:g=>Qn(g,"inherit"),height:g=>et(6+vt(g)*2),paddingInline:g=>et(vt(g)*3),border:"none",outline:"none",color:g=>we(g,"text",e),backgroundColor:g=>we(g,"inherit",e),transition:"background-color 140ms ease, box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled]):not([aria-current=true])":{backgroundColor:g=>we(g,"hover",e)},"&[aria-current=true]":{backgroundColor:g=>we(g,"shift-3",s),color:g=>we(g,"shift-13",s)},"&:focus-visible":{boxShadow:g=>b(g,s)}}})});m[l.tagName]=i},style:{display:"flex",flexDirection:"column",paddingBlock:l=>et(vt(l)*2),paddingInline:l=>et(vt(l)*2),fontSize:l=>Qn(l,"inherit"),backgroundColor:l=>we(l,"inherit",e),color:l=>we(l,"text",e),borderRadius:l=>et(vt(l)*2),outline:l=>`1px solid ${we(l,"border-strong",e)}`,outlineOffset:"-1px",boxShadow:I("medium")}}}var Ao=a=>!!a&&typeof a.get=="function"&&a._isState===!0,ae=a=>{let o={},r=[];for(let e in a){let s=a[e];e==="x"?r.push(`translateX(${typeof s=="number"?`${s}px`:s})`):e==="y"?r.push(`translateY(${typeof s=="number"?`${s}px`:s})`):e==="scale"?r.push(`scale(${s})`):e==="rotate"?r.push(`rotate(${typeof s=="number"?`${s}deg`:s})`):o[e]=s}return r.length&&(o.transform=r.join(" ")),o};function er(){if(typeof matchMedia!="function")return!1;try{return matchMedia("(prefers-reduced-motion: reduce)").matches}catch(a){return!1}}function up(a={}){var n,l,m,p;let{initial:o,animate:r,exit:e,transition:s={}}=a,t={duration:(n=s.duration)!=null?n:300,delay:(l=s.delay)!=null?l:0,easing:(m=s.easing)!=null?m:"ease",iterations:(p=s.iterations)!=null?p:1,fill:"both"};return{_onMount:i=>{let c=i.domElement;if(!c||typeof c.animate!="function")return;let d=Ao(r)?r.get():r;if(er()){if(d?Object.assign(c.style,ae(d)):o&&Object.assign(c.style,ae(o)),Ao(r)){let f=r.addListener(h=>{Object.assign(c.style,ae(h))});i.setMetadata("motionRelease",f)}return}if(d?c.animate(o?[ae(o),ae(d)]:[ae(d)],t):o&&Object.assign(c.style,ae(o)),Ao(r)){let f=r.addListener(h=>{c.animate([ae(h)],t)});i.setMetadata("motionRelease",f)}},_onBeforeRemove:(i,c)=>{let d=i.domElement;if(!d||!e||typeof d.animate!="function")return c();if(er())return Object.assign(d.style,ae(e)),c();d.animate([ae(e)],t).finished.then(c,c)},_onRemove:i=>{let c=i.getMetadata("motionRelease");c==null||c()}}}import{toState as Zi}from"@domphy/core";import{themeColor as tr,themeSize as Ji,themeSpacing as Qi}from"@domphy/theme";function gp(a={}){var r;let o=Zi((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="ol"&&console.warn('"orderedList" primitive patch must use ol tag')},style:{fontSize:e=>Ji(e,"inherit"),backgroundColor:e=>tr(e),color:e=>tr(e,"text",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:Qi(3),listStyleType:"decimal",listStylePosition:"outside"}}}import{toState as el}from"@domphy/core";import{themeColor as Ke,themeDensity as xt,themeSize as tl,themeSpacing as tt}from"@domphy/theme";function ol(a,o){if(o<=7)return Array.from({length:o},(t,n)=>n+1);let r=[1];a>3&&r.push("...");let e=Math.max(2,a-1),s=Math.min(o-1,a+1);for(let t=e;t<=s;t++)r.push(t);return a<o-2&&r.push("..."),r.push(o),r}function vp(a){var l;let{total:o,color:r="neutral",accentColor:e="primary"}=a,s=el((l=a.value)!=null?l:1),t={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:m=>tt(6+xt(m)*2),height:m=>tt(6+xt(m)*2),paddingInline:m=>tt(xt(m)*2),borderRadius:m=>tt(xt(m)*1.5),border:"none",cursor:"pointer",fontSize:m=>tl(m,"inherit"),backgroundColor:"transparent",color:m=>Ke(m,"shift-13",r),transition:"background-color 140ms ease, box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled])":{color:m=>Ke(m,"shift-13",r),backgroundColor:m=>Ke(m,"hover",r)},"&:focus-visible":{boxShadow:m=>b(m,e)},"&[disabled]":{opacity:.4,cursor:"not-allowed"}},n=U(z({},t),{backgroundColor:m=>Ke(m,"shift-13",e),color:m=>Ke(m,"shift-0","neutral"),fontWeight:"bold",cursor:"default","&:hover:not([disabled])":{backgroundColor:m=>Ke(m,"shift-13",e)}});return{role:"navigation",ariaLabel:"Pagination",_doctorDisable:"inline-typography",_onInsert:m=>{m.tagName!=="div"&&console.warn('"pagination" patch must use div tag')},_onInit:m=>{let p={div:i=>{let c=s.get(i),d=[];d.push({button:"\u2039",_key:"prev",type:"button",ariaLabel:"Previous page",disabled:c<=1,onClick:()=>c>1&&s.set(c-1),style:t});let f=0;for(let h of ol(c,o))if(h==="...")d.push({span:"\u2026",_key:`ellipsis-${f++}`,ariaHidden:"true",style:{display:"inline-flex",alignItems:"center",paddingInline:g=>tt(xt(g)*2),color:g=>Ke(g,"shift-7",r)}});else{let g=h===c;d.push({button:String(h),_key:`page-${h}`,type:"button",ariaLabel:`Page ${h}`,ariaCurrent:g?"page":void 0,disabled:g,onClick:()=>s.set(h),style:g?n:t})}return d.push({button:"\u203A",_key:"next",type:"button",ariaLabel:"Next page",disabled:c>=o,onClick:()=>c<o&&s.set(c+1),style:t}),d},style:{display:"flex",alignItems:"center",gap:tt(1)}};m.children.insert(p)},style:{display:"inline-flex"}}}import{toState as nl}from"@domphy/core";import{themeColor as rl,themeDensity as al,themeSpacing as il}from"@domphy/theme";function wp(a={}){var s;let{padding:o=4,divider:r=!1}=a,e=nl((s=a.color)!=null?s:"neutral","color");return{style:z({padding:t=>il(al(t)*o)},r?{borderBottom:t=>`1px solid ${rl(t,"border",e.get(t))}`}:{})}}import{toState as ll}from"@domphy/core";import{themeColor as sl,themeSize as cl}from"@domphy/theme";function Lp(a={}){var r;let o=ll((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="p"&&console.warn('"paragraph" primitive patch must use p tag')},style:{fontSize:e=>cl(e,"inherit"),color:e=>sl(e,"text",o.get(e)),lineHeight:1.5,marginTop:0,marginBottom:0}}}import{merge as ml,toState as or}from"@domphy/core";import{themeColor as Ho,themeDensity as ul,themeSpacing as dl}from"@domphy/theme";function _p(a){var c;let{open:o=!1,placement:r="bottom",openOn:e="click"}=a,s=or(o),t=or(r),{show:n,hide:l,anchorPartial:m}=ne({kind:"popover",open:s,placement:t,content:a.content,keepOpenOnContentHover:e==="hover"}),p={role:"dialog",dataTone:"shift-14",style:{backgroundColor:d=>Ho(d,"inherit"),color:d=>Ho(d,"text"),borderRadius:d=>dl(ul(d)*2),outline:d=>`1px solid ${Ho(d,"border-strong")}`,outlineOffset:"-1px",boxShadow:I("medium")}};return(c=a.content).$||(c.$=[]),a.content.$.push(p),ml(m,{ariaHaspopup:"dialog",ariaExpanded:d=>s.get(d),ariaControls:d=>d!=null&&d.elementNode?ye("popover",d.elementNode):void 0,onMouseEnter:(d,f)=>e==="hover"&&n(f),onMouseLeave:(d,f)=>e==="hover"&&l(f),onClick:(d,f)=>{e==="click"&&(s.get()?l(f):n(f))},onKeyDown:(d,f)=>{d.key==="Escape"&&s.get()&&l(f)},onFocus:(d,f)=>e==="hover"&&n(f),onBlur:(d,f)=>{let h=d.relatedTarget,u=f.getRoot().domElement.querySelector(`#${ye("popover",f)}`);h&&(u!=null&&u.contains(h))||l(f)}}),m}import{toState as pl}from"@domphy/core";import{themeColor as qt,themeSize as hl,themeSpacing as Fo}from"@domphy/theme";function nr(a={}){let{placement:o="bottom-end",color:r="neutral",sideOffset:e=Fo(6),bordered:s=!0}=a,t=pl(o),n={top:"bottom",bottom:"top",left:"right",right:"left","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},l=i=>{var c;return(c=n[t.get(i)])!=null?c:n["bottom-end"]},m=i=>i.includes("start")?e:i.includes("end")?"auto":"50%",p=i=>i.includes("end")?e:i.includes("start")?"auto":"50%";return{style:{fontSize:i=>hl(i),backgroundColor:i=>qt(i),color:i=>qt(i,"text",r),position:"relative","&::after":{content:'""',position:"absolute",width:Fo(1.5),height:Fo(1.5),backgroundColor:i=>qt(i,"inherit",r),borderWidth:s?"1px":0,borderColor:i=>qt(i,"border-strong",r),borderTopStyle:i=>{let c=l(i);return c.includes("top")||c.includes("right")?"solid":"none"},borderBottomStyle:i=>{let c=l(i);return c.includes("bottom")||c.includes("left")?"solid":"none"},borderLeftStyle:i=>{let c=l(i);return c.includes("top")||c.includes("left")?"solid":"none"},borderRightStyle:i=>{let c=l(i);return c.includes("bottom")||c.includes("right")?"solid":"none"},top:i=>{let c=l(i);return c.includes("top")?0:c.includes("bottom")?"auto":m(c)},right:i=>{let c=l(i);return c.includes("right")?0:c.includes("left")?"auto":p(c)},bottom:i=>{let c=l(i);return c.includes("bottom")?0:c.includes("top")?"auto":p(c)},left:i=>{let c=l(i);return c.includes("left")?0:c.includes("right")?"auto":m(c)},transform:i=>{let c=l(i),d=c.includes("right")||c.includes("end")&&!c.includes("left")?"50%":"-50%",f=c.includes("bottom")||c.includes("end")&&!c.includes("top")?"50%":"-50%";return`translate(${d},${f}) rotate(45deg)`}}}}}import{toState as gl}from"@domphy/core";import{themeColor as rr,themeDensity as Ko,themeSize as fl,themeSpacing as jo}from"@domphy/theme";function Kp(a={}){var r;let o=gl((r=a.color)!=null?r:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="pre"&&console.warn('"preformated" primitive patch must use pre tag')},style:{fontSize:e=>fl(e,"inherit"),color:e=>rr(e,"text",o.get(e)),backgroundColor:e=>rr(e,"inherit",o.get(e)),border:"none",paddingBlock:e=>jo(Ko(e)*2),paddingInline:e=>jo(Ko(e)*3),borderRadius:e=>jo(Ko(e)*2)}}}import{toState as ar}from"@domphy/core";import{themeColor as Gt,themeSpacing as Ut}from"@domphy/theme";function qp(a={}){var e,s;let o=ar((e=a.color)!=null?e:"neutral","color"),r=ar((s=a.accentColor)!=null?s:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="progress"&&console.warn('"progress" primitive patch must use progress tag')},dataTone:"shift-3",style:{appearance:"none",width:"100%",height:Ut(2),border:0,borderRadius:Ut(999),overflow:"hidden",backgroundColor:t=>Gt(t,"inherit",o.get(t)),color:t=>Gt(t,"text",o.get(t)),"&::-webkit-progress-bar":{backgroundColor:t=>Gt(t,"inherit",o.get(t)),borderRadius:Ut(999)},"&::-webkit-progress-value":{backgroundColor:t=>Gt(t,"shift-9",r.get(t)),borderRadius:Ut(999),transition:"width 220ms ease"}}}}import{rawHtml as yl,toState as ir}from"@domphy/core";import{themeColor as bl,themeSize as Sl,themeSpacing as lr}from"@domphy/theme";var vl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>',xl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/></svg>';function Jp(a={}){var m,p;let{max:o=5,readOnly:r=!1,onChange:e}=a,s=(m=a.color)!=null?m:"warning",t=ir((p=a.value)!=null?p:0),n=ir(0),l=i=>{let c=n.get(i);return c>0?c:t.get(i)};return{role:"group",ariaLabel:"Rating",style:{display:"inline-flex",gap:lr(.5),fontSize:i=>Sl(i,"increase-1"),cursor:r?"default":"pointer",color:i=>bl(i,"muted",s)},_onInit:i=>{for(let c=1;c<=o;c++){let d=c,f=r?{}:{onClick:()=>{let g=d===t.get()?0:d;t.set(g),e==null||e(g),n.set(0)},onMouseEnter:()=>n.set(d),onMouseLeave:()=>n.set(0),onKeyDown:g=>{var v,w;let u=t.get(),S=u;if(g.key==="ArrowRight"||g.key==="ArrowUp")S=Math.min(o,u+1),g.preventDefault();else if(g.key==="ArrowLeft"||g.key==="ArrowDown")S=Math.max(0,u-1),g.preventDefault();else return;t.set(S),e==null||e(S);let C=S>0?S-1:0;(w=(v=i.domElement)==null?void 0:v.children[C])==null||w.focus()}},h=U(z({button:g=>yl(d<=l(g)?vl:xl),_key:d,type:"button",ariaLabel:`${d} star${d>1?"s":""}`},f),{style:{background:"none",border:"none",outline:"none",borderRadius:lr(1),padding:0,cursor:"inherit",color:"inherit",fontSize:"inherit",display:"flex",alignItems:"center",transition:"box-shadow 140ms ease","&:focus-visible":{boxShadow:g=>b(g,s)}}});i.children.insert(h)}}}}import{toState as Wo}from"@domphy/core";import{themeColor as Yo,themeSpacing as sr}from"@domphy/theme";function nh(a={}){var m,p,i;let{size:o=16,thickness:r=.25}=a,e=Wo((m=a.value)!=null?m:0,"value"),s=Wo((p=a.color)!=null?p:"primary","color"),t=Wo((i=a.trackColor)!=null?i:"neutral","trackColor"),n=Math.round((1-r)*100),l=`radial-gradient(circle closest-side, transparent ${n}%, black ${n}%)`;return{role:"progressbar",ariaValuenow:c=>String(Math.round(e.get(c))),ariaValuemin:"0",ariaValuemax:"100",_onInsert:c=>{c.tagName!=="div"&&console.warn('"ringProgress" patch must use div tag')},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:sr(o),height:sr(o),borderRadius:"50%",color:c=>Yo(c,"shift-9",s.get(c)),background:c=>`conic-gradient(from -90deg, ${Yo(c,"shift-9",s.get(c))} ${e.get(c)}%, ${Yo(c,"shift-3",t.get(c))} 0%)`,WebkitMask:l,mask:l}}}import{themeDensity as Cl,themeSpacing as El}from"@domphy/theme";function cr(a={}){let{gap:o=4,align:r="center",justify:e,wrap:s=!1}=a;return{style:z(z({display:"flex",alignItems:r,gap:t=>El(Cl(t)*o)},e?{justifyContent:e}:{}),s?{flexWrap:"wrap"}:{})}}import{toState as kl}from"@domphy/core";import{themeColor as Xt,themeSpacing as Zt}from"@domphy/theme";function mh(a={}){var r;let o=kl((r=a.color)!=null?r:"neutral","color");return{style:{overflow:"auto",color:e=>Xt(e,"text",o.get(e)),"&::-webkit-scrollbar":{width:Zt(2),height:Zt(2)},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e=>Xt(e,"shift-5",o.get(e)),borderRadius:Zt(999),border:`${Zt(.5)} solid transparent`,backgroundClip:"content-box"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:e=>Xt(e,"shift-7",o.get(e))},scrollbarWidth:"thin",scrollbarColor:e=>`${Xt(e,"shift-5",o.get(e))} transparent`}}}import{toState as wl}from"@domphy/core";import{themeColor as je,themeSize as Tl,themeSpacing as Te}from"@domphy/theme";function fh(a={items:[]}){var t,n,l;let{items:o=[],color:r="neutral",accentColor:e="primary"}=a,s=wl((l=(n=a.value)!=null?n:(t=o[0])==null?void 0:t.key)!=null?l:"");return{role:"radiogroup",_context:{segmented:{value:s}},_onSchedule:(m,p)=>{let i=o.map((c,d)=>{var g;let f=(g=c.key)!=null?g:String(d);return{button:[typeof c.label=="string"?{span:c.label}:c.label],_key:f,type:"button",role:"radio",ariaChecked:u=>s.get(u)===f,onClick:()=>s.set(f),style:{cursor:"pointer",fontSize:u=>Tl(u,"inherit"),height:Te(6),paddingBlock:Te(1),paddingInline:Te(3),border:"none",borderRadius:Te(10),color:u=>je(u,"text",r),backgroundColor:"transparent",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-checked=true])":{backgroundColor:u=>je(u,"shift-3",r)},"&:active:not([disabled]):not([aria-checked=true])":{backgroundColor:u=>je(u,"increase-2",r)},"&[aria-checked=true]":{backgroundColor:u=>je(u,"shift-0",e),color:u=>je(u,"shift-10",e),boxShadow:I("low")},"&:focus-visible":{boxShadow:u=>b(u,e)},"&[aria-checked=true]:focus-visible":{boxShadow:u=>`${I("low")}, ${b(u,e)}`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}});p[m.tagName]=i},dataTone:"shift-2",style:{display:"inline-flex",paddingBlock:Te(1),paddingInline:Te(1),gap:Te(.5),borderRadius:Te(10),backgroundColor:m=>je(m,"inherit",r),color:m=>je(m,"text",r)}}}import{themeColor as ge,themeColorToken as Dl,themeDensity as Ct,themeSize as Pl,themeSpacing as De}from"@domphy/theme";function vh(a={}){let{color:o="neutral",accentColor:r="primary"}=a;return{_onInsert:e=>{e.tagName!=="select"&&console.warn('"select" primitive patch must use select tag')},style:{appearance:"none",fontFamily:"inherit",fontSize:e=>Pl(e,"inherit"),lineHeight:"inherit",color:e=>ge(e,"text",o),backgroundColor:e=>ge(e,"inherit",o),border:"none",outlineOffset:"-1px",outline:e=>`1px solid ${ge(e,"border-strong",o)}`,borderRadius:e=>De(Ct(e)*1.5),paddingBlock:e=>De(Ct(e)*1),paddingLeft:e=>De(Ct(e)*3),paddingRight:e=>De(Ct(e)*5),backgroundImage:e=>{let s=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="${Dl(e,"shift-7")}" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(s)}")`},backgroundRepeat:"no-repeat",backgroundPosition:`right ${De(2)} center`,backgroundSize:`${De(2.5)} ${De(1.5)}`,transition:"outline-color 140ms ease, box-shadow 140ms ease","&:not([multiple])":{height:e=>De(6+Ct(e)*2)},"&:hover:not([disabled]):not([aria-busy=true])":{outline:e=>`1px solid ${ge(e,"shift-5",r)}`},"&:focus-visible":{boxShadow:e=>b(e,r)},"& optgroup":{color:e=>ge(e,"shift-11",o)},"& option[disabled]":{color:e=>ge(e,"shift-7","neutral")},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:e=>ge(e,"muted","neutral"),outline:e=>`1px solid ${ge(e,"border-strong","neutral")}`,backgroundColor:e=>ge(e,"shift-2","neutral")}}}}import{merge as mr,toState as qo}from"@domphy/core";import{themeColor as ot,themeDensity as Jt,themeSize as Ol,themeSpacing as nt}from"@domphy/theme";var Ll=1e3;function Il(a){let o=a.getMetadata("selectBoxTypeahead");return o||(o={buffer:"",timer:null},a.setMetadata("selectBoxTypeahead",o)),o}var ur=(a,o)=>a.trim().toLowerCase().startsWith(o);function zl(a){return a?Array.from(a.querySelectorAll("[role=option]")).filter(o=>o.getAttribute("aria-disabled")!=="true"&&!o.hasAttribute("disabled")):[]}function Ph(a){let{options:o=[],placement:r="bottom",color:e="neutral",open:s=!1,multiple:t=!1}=a,n=qo(a.value),l=qo(s),{show:m,hide:p,anchorPartial:i}=ne({kind:"selectBox",open:l,placement:qo(r),content:a.content}),c={onClick:(u,S)=>!t&&p(S),dataTone:"shift-14",style:{backgroundColor:u=>ot(u,"inherit"),color:u=>ot(u,"text"),borderRadius:u=>nt(Jt(u)*2),outline:u=>`1px solid ${ot(u,"border-strong")}`,outlineOffset:"-1px",boxShadow:I("medium")}};mr(a.content,c);let d={div:u=>{let S=n.get(u),C=Array.isArray(S)?S:[S];return o.filter(w=>C.includes(w.value)).map(w=>({span:w.label,$:[It({color:e,removable:t})],_key:w.value,_onRemove:D=>{let O=n.get(),H=(Array.isArray(O)?O:[O]).filter(M=>M!==w.value);t?n.set(H):n.set(H[0])}}))},style:{display:"flex",flexWrap:"wrap",gap:nt(1),flex:1}},f=u=>l.get()?p(u):m(u),h=(u,S)=>{var H,M,Q,te;let C=Il(S);C.timer&&clearTimeout(C.timer),C.buffer+=u.toLowerCase(),C.timer=setTimeout(()=>{C.buffer=""},Ll);let v=C.buffer.length>1&&new Set(C.buffer).size===1,w=v?C.buffer[0]:C.buffer;if(l.get()){let V=S.getRoot().domElement,ze=(H=V==null?void 0:V.querySelector(`#${ye("selectBox",S)}`))!=null?H:null,se=zl(ze).filter(lt=>{var st;return ur((st=lt.textContent)!=null?st:"",w)});if(!se.length)return;let L=(Q=(M=S.domElement)==null?void 0:M.ownerDocument)==null?void 0:Q.activeElement,j=v&&L?se.indexOf(L):-1,F=se[(j+1)%se.length];F.focus(),(te=F.scrollIntoView)==null||te.call(F,{block:"nearest"});return}if(t)return;let D=o.filter(V=>ur(V.label,w));if(!D.length)return;let O=v?D.findIndex(V=>V.value===n.get()):-1,$=D[(O+1)%D.length];n.set($.value)},g={_onInsert:u=>{u.tagName!=="div"&&console.warn('"selectBox" patch must use div tag')},_onInit:u=>u.children.insert(d),onClick:(u,S)=>f(S),tabindex:0,role:"button",ariaExpanded:u=>l.get(u),ariaHaspopup:"listbox",onKeyDown:(u,S)=>{let C=u.key;if(C==="Escape"){p(S);return}if(C==="Enter"||C===" "){u.preventDefault(),f(S);return}if(C==="ArrowDown"&&!l.get()){u.preventDefault(),m(S);return}let v=u;C.length===1&&!v.ctrlKey&&!v.metaKey&&!v.altKey&&h(C,S)},style:{cursor:"pointer",display:"flex",alignItems:"center",minHeight:u=>nt(6+Jt(u)*2),minWidth:nt(32),outlineOffset:"-1px",outline:u=>`1px solid ${ot(u,"border-strong","neutral")}`,paddingInline:u=>nt(Jt(u)*2),borderRadius:u=>nt(Jt(u)*1.5),fontSize:u=>Ol(u,"inherit"),color:u=>ot(u,"text",e),backgroundColor:u=>ot(u,"inherit",e),transition:"background-color 140ms ease, outline-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:u=>b(u,e)}}};return mr(i,g),i}import{themeColor as Et,themeDensity as dr,themeSize as Vl,themeSpacing as pr}from"@domphy/theme";function zh(a={}){let{accentColor:o="primary",color:r="neutral",value:e=null}=a;return{role:"option",tabindex:-1,ariaSelected:t=>{var m;let n=(m=t==null?void 0:t.elementNode)==null?void 0:m.getContext("select");if(!n)return;let l=n.value.get(t);return n.multiple?l.includes(e):l===e},onClick:(t,n)=>{let l=n.getContext("select");if(!l)return;let m=l.value,p=m.get();l.multiple?p.includes(e)?m.set(p.filter(i=>i!==e)):m.set(p.concat([e])):p!==e&&m.set(e)},_onInit:t=>{t.tagName!=="div"&&console.warn('"selectItem" patch must use div tag')},style:{cursor:"pointer",display:"flex",alignItems:"center",fontSize:t=>Vl(t,"inherit"),height:t=>pr(6+dr(t)*2),paddingInline:t=>pr(dr(t)*3),border:"none",outline:"none",color:t=>Et(t,"text",r),backgroundColor:t=>Et(t,"inherit",r),"&:hover:not([disabled]):not([aria-selected=true])":{backgroundColor:t=>Et(t,"hover",r)},"&[aria-selected=true]":{backgroundColor:t=>Et(t,"shift-6",o),color:t=>Et(t,"shift-11")},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,o)}}}}import{toState as Rl}from"@domphy/core";import{themeColor as hr,themeDensity as gr,themeSize as $l,themeSpacing as fr}from"@domphy/theme";function _h(a={}){var n;let{color:o="neutral",multiple:r=!1}=a,e=Rl((n=a.value)!=null?n:r?[]:null),s={div:l=>{let m=e.get(l);return(Array.isArray(m)?m:[m]).map(i=>({input:null,type:"hidden",name:a.name,value:i==null?"":String(i)}))},ariaHidden:"true",hidden:!0};return{dataTone:"shift-0",role:"listbox",ariaLabel:"Options",ariaMultiselectable:r?"true":void 0,_context:{select:{value:e,multiple:r}},_onInit:l=>{l.tagName!=="div"&&console.warn('"selectList" patch must use a div tag'),l.children.insert(s)},style:{display:"flex",flexDirection:"column",paddingBlock:l=>fr(gr(l)*2),paddingInline:l=>fr(gr(l)*2),fontSize:l=>$l(l,"inherit"),backgroundColor:l=>hr(l,"inherit",o),color:l=>hr(l,"text",o)}}}import{hashString as _l,toState as Ml}from"@domphy/core";import{themeColor as kt,themeSize as Nl,themeSpacing as yr}from"@domphy/theme";function Ah(a={}){var s;let o=Ml((s=a.color)!=null?s:"neutral","color"),r={"0%":{backgroundPosition:"200% 0"},"100%":{backgroundPosition:"-200% 0"}},e=_l(JSON.stringify(r));return{ariaHidden:"true",dataTone:"shift-1",style:{fontSize:t=>Nl(t),color:t=>kt(t,"text",o.get(t)),height:yr(6),display:"block",borderRadius:yr(1),backgroundColor:t=>kt(t,"inherit",o.get(t)),backgroundImage:t=>`linear-gradient(90deg, ${kt(t,"inherit",o.get(t))} 0%, ${kt(t,"shift-2",o.get(t))} 50%, ${kt(t,"inherit",o.get(t))} 100%)`,backgroundSize:"200% 100%",animation:`${e} 1.6s ease-in-out infinite`,[`@keyframes ${e}`]:r}}}import{toState as Bl}from"@domphy/core";import{themeColor as Al,themeSize as Hl}from"@domphy/theme";function jh(a={}){var r;let o=Bl((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="small"&&console.warn('"small" patch must use small tag')},dataSize:"decrease-1",style:{fontSize:e=>Hl(e,"inherit"),color:e=>Al(e,"shift-10",o.get(e))}}}import{hashString as Fl,toState as Kl}from"@domphy/core";import{themeColor as Qt,themeSize as jl,themeSpacing as Go}from"@domphy/theme";var Sr={to:{transform:"rotate(360deg)"}},br=Fl(JSON.stringify(Sr));function Gh(a={}){var r;let o=Kl((r=a.color)!=null?r:"neutral","color");return{role:"status",ariaLabel:"loading",_onInsert:e=>{e.tagName!=="span"&&console.warn('"spinner" patch must use span tag')},style:{fontSize:e=>jl(e),backgroundColor:e=>Qt(e),color:e=>Qt(e,"text",o.get(e)),display:"inline-block",margin:0,flexShrink:0,width:Go(6),height:Go(6),borderRadius:"50%",border:e=>`${Go(.5)} solid ${Qt(e,"border-strong",o.get(e))}`,borderTopColor:e=>Qt(e,"shift-9",o.get(e)),boxSizing:"border-box",padding:0,animation:`${br} 0.7s linear infinite`,[`@keyframes ${br}`]:Sr}}}import{merge as Wl,toState as Yl}from"@domphy/core";import{themeColor as eo,themeSpacing as Uo}from"@domphy/theme";function Qh(a={}){let{direction:o="horizontal",defaultSize:r=50,min:e=10,max:s=90}=a;return{_onSchedule:(t,n)=>{Wl(n,{_context:{splitter:{direction:o,size:Yl(r),min:e,max:s,panelCount:0}}})},style:{display:"flex",flexDirection:o==="horizontal"?"row":"column",overflow:"hidden"}}}function eg(){return{_onMount:a=>{let o=a.getContext("splitter");if(!o){console.warn('"splitterPanel" patch must be used inside a "splitter"');return}let r=a.domElement,e=o.direction==="horizontal"?"width":"height",s=o.panelCount++===0,t=l=>{r.style[e]=`${s?l:100-l}%`};t(o.size.get()),r.style.flexShrink="0",r.style.overflow="auto";let n=o.size.addListener(t);a.addHook("Remove",n)}}}function tg(){return{role:"separator",tabindex:0,_onMount:a=>{let o=a.getContext("splitter");if(!o){console.warn('"splitterHandle" patch must be used inside a "splitter"');return}let r=a.domElement,e=o.direction==="horizontal";r.style.cursor=e?"col-resize":"row-resize",r.setAttribute("aria-orientation",e?"vertical":"horizontal"),r.setAttribute("aria-valuemin",String(o.min)),r.setAttribute("aria-valuemax",String(o.max)),r.setAttribute("aria-valuenow",String(Math.round(o.size.get())));let s=o.size.addListener(m=>{r.setAttribute("aria-valuenow",String(Math.round(m)))}),t=m=>{let p=m.shiftKey?10:1,i=null;e?m.key==="ArrowRight"?i=Math.min(o.size.get()+p,o.max):m.key==="ArrowLeft"&&(i=Math.max(o.size.get()-p,o.min)):m.key==="ArrowDown"?i=Math.min(o.size.get()+p,o.max):m.key==="ArrowUp"&&(i=Math.max(o.size.get()-p,o.min)),m.key==="Home"?i=o.min:m.key==="End"&&(i=o.max),i!==null&&(m.preventDefault(),o.size.set(i))},n=null,l=m=>{m.preventDefault();let p=r.parentElement,i=d=>{let f=p.getBoundingClientRect(),h=e?(d.clientX-f.left)/f.width*100:(d.clientY-f.top)/f.height*100;o.size.set(Math.min(Math.max(h,o.min),o.max))},c=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),n=null};n=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c),n=null},document.addEventListener("mousemove",i),document.addEventListener("mouseup",c)};r.addEventListener("keydown",t),r.addEventListener("mousedown",l),a.addHook("Remove",()=>{n==null||n(),s(),r.removeEventListener("keydown",t),r.removeEventListener("mousedown",l)})},dataTone:"shift-2",style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:a=>eo(a,"inherit"),color:a=>eo(a,"text"),"&:hover":{backgroundColor:a=>eo(a,"increase-1")},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:a=>b(a,"primary")},"&::after":{content:'""',width:Uo(1),height:Uo(1),borderRadius:Uo(999),backgroundColor:a=>eo(a,"shift-4")}}}}import{themeDensity as ql,themeSpacing as Gl}from"@domphy/theme";function rg(a={}){let{gap:o=3,align:r}=a;return{style:z({display:"flex",flexDirection:"column",gap:e=>Gl(ql(e)*o)},r?{alignItems:r}:{})}}import{toState as Ul}from"@domphy/core";import{themeColor as K,themeSize as vr,themeSpacing as Pe}from"@domphy/theme";function cg(a={items:[]}){var n;let{items:o=[],direction:r="horizontal",color:e="neutral",accentColor:s="primary"}=a,t=Ul((n=a.current)!=null?n:0);return{_doctorDisable:"inline-typography",_context:{steps:{current:t,direction:r,color:e,accentColor:s}},_onSchedule:(l,m)=>{let p=o.map((i,c)=>{var f;return{li:[typeof i.label=="string"?{span:i.label}:i.label],_key:(f=i.key)!=null?f:c,dataStep:String(c+1),dataStatus:h=>{let g=t.get(h);return c<g?"done":c===g?"active":"pending"},ariaCurrent:h=>t.get(h)===c?"step":void 0,style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:Pe(1),flex:"1",fontSize:h=>vr(h,"decrease-1"),textAlign:"center","&::before":{content:"attr(data-step)",display:"flex",alignItems:"center",justifyContent:"center",width:Pe(6),height:Pe(6),borderRadius:Pe(999),fontSize:h=>vr(h,"decrease-1"),fontWeight:"bold",flexShrink:"0",border:h=>`2px solid ${K(h,"border-strong",e)}`,backgroundColor:h=>K(h,"inherit"),color:h=>K(h,"muted"),transition:"background-color 200ms ease, color 200ms ease, border-color 200ms ease",zIndex:"1"},"&:not(:first-child)::after":{content:'""',position:"absolute",top:Pe(3),right:`calc(50% + ${Pe(3)})`,left:`calc(-50% + ${Pe(3)})`,height:"2px",backgroundColor:h=>K(h,"shift-3",e),zIndex:"0"},"&[data-status=active]::before":{backgroundColor:h=>K(h,"shift-9",s),borderColor:h=>K(h,"shift-9",s),color:h=>K(h,"shift-0",s),boxShadow:h=>`0 0 0 3px ${K(h,"shift-3",s)}`},"&[data-status=done]::before":{content:'"\u2713"',backgroundColor:h=>K(h,"shift-9",s),borderColor:h=>K(h,"shift-9",s),color:h=>K(h,"shift-0",s)},"&[data-status=done]:not(:first-child)::after":{backgroundColor:h=>K(h,"shift-9",s)},"&[data-status=active]:not(:first-child)::after":{backgroundColor:h=>K(h,"shift-9",s)},"&[data-status=pending]":{color:h=>K(h,"muted")},"&[data-status=active]":{color:h=>K(h,"shift-11",s),fontWeight:"bold"},"&[data-status=done]":{color:h=>K(h,"text",e)}}}});m[l.tagName]=p},style:{display:"flex",flexDirection:r==="vertical"?"column":"row",alignItems:r==="vertical"?"flex-start":"center",gap:Pe(2),listStyle:"none",margin:"0",padding:"0"}}}import{toState as Xl}from"@domphy/core";import{themeColor as xr,themeSize as Zl}from"@domphy/theme";function pg(a={}){var r;let o=Xl((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="strong"&&console.warn('"strong" primitive patch must use strong tag')},style:{fontSize:e=>Zl(e,"inherit"),fontWeight:"bold",color:e=>xr(e,"shift-11",o.get(e)),backgroundColor:e=>xr(e)}}}import{toState as Jl}from"@domphy/core";import{themeColor as Ql,themeSize as es}from"@domphy/theme";function yg(a={}){var r;let o=Jl((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="sub"&&console.warn('"subscript" primitive patch must use sub tag')},style:{fontSize:e=>es(e,"decrease-1"),verticalAlign:"sub",lineHeight:0,color:e=>Ql(e,"text",o.get(e))}}}import{toState as ts}from"@domphy/core";import{themeColor as os,themeSize as ns}from"@domphy/theme";function xg(a={}){var r;let o=ts((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="sup"&&console.warn('"superscript" primitive patch must use sup tag')},style:{fontSize:e=>ns(e,"decrease-1"),verticalAlign:"super",lineHeight:0,color:e=>os(e,"text",o.get(e))}}}import{toState as rs}from"@domphy/core";import{themeColor as ie,themeDensity as rt,themeSize as Cr,themeSpacing as at}from"@domphy/theme";function wg(a={}){var r;let o=rs((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="table"&&console.warn('"table" primitive patch must use table tag')},_doctorDisable:"inline-typography",style:{fontSize:e=>Cr(e,"inherit"),color:e=>ie(e,"text",o.get(e)),width:"100%",borderCollapse:"collapse","& caption":{captionSide:"bottom"},"& th, & thead td":{textAlign:"left",fontWeight:500,paddingInline:e=>at(rt(e)*3),paddingBlock:e=>at(rt(e)*1),color:e=>ie(e,"shift-10",o.get(e)),backgroundColor:e=>ie(e,"inherit")},"& td":{textAlign:"left",paddingInline:e=>at(rt(e)*3),paddingBlock:e=>at(rt(e)*1),color:e=>ie(e,"text",o.get(e)),boxShadow:e=>`inset 0 1px 0 ${ie(e,"shift-3",o.get(e))}`,fontSize:e=>Cr(e,"inherit")},"& tfoot th, & tfoot td":{textAlign:"left",fontWeight:500,paddingInline:e=>at(rt(e)*3),paddingBlock:e=>at(rt(e)*1),color:e=>ie(e,"shift-10",o.get(e)),backgroundColor:e=>ie(e,"inherit"),boxShadow:e=>`inset 0 -1px 0 ${ie(e,"shift-4",o.get(e))}`},"& tr":{backgroundColor:e=>ie(e,"inherit")},"& tbody tr:hover":{backgroundColor:e=>ie(e,"hover")}}}}import{toState as as}from"@domphy/core";import{themeColor as Oe,themeDensity as to,themeSize as is,themeSpacing as Le}from"@domphy/theme";function Lg(a={items:[]}){var t,n,l;let{items:o=[],accentColor:r="primary",color:e="neutral"}=a,s=as((l=(n=a.activeKey)!=null?n:(t=o[0])==null?void 0:t.key)!=null?l:0);return{_onSchedule:(m,p)=>{let i=m.nodeId,d={div:o.map((h,g)=>{var C;let u=(C=h.key)!=null?C:g;return{button:[typeof h.label=="string"?{span:h.label}:h.label],_key:u,type:"button",role:"tab",id:`tab${i}${u}`,ariaControls:`panel${i}${u}`,ariaSelected:v=>s.get(v)===u,tabIndex:v=>s.get(v)===u?0:-1,onClick:()=>s.set(u),onKeyDown:v=>{var M;let w=v.key;if(!["ArrowLeft","ArrowRight","Home","End"].includes(w))return;v.preventDefault();let D=o.map((Q,te)=>{var V;return(V=Q.key)!=null?V:te}),O=D.indexOf(u),$=O;w==="ArrowRight"?$=(O+1)%D.length:w==="ArrowLeft"?$=(O-1+D.length)%D.length:w==="Home"?$=0:w==="End"&&($=D.length-1),s.set(D[$]);let H=v.target.closest("[role=tablist]");(M=H==null?void 0:H.querySelectorAll("[role=tab]")[$])==null||M.focus()},style:{cursor:"pointer",fontSize:v=>is(v,"inherit"),height:v=>Le(6+to(v)*2),paddingInline:v=>Le(to(v)*4),border:"none",outline:"none",color:v=>Oe(v,"shift-13"),backgroundColor:v=>Oe(v,"inherit"),boxShadow:v=>`inset 0 ${Le(-.5)} 0 0 ${Oe(v,"shift-1",e)}`,transition:"box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled]):not([aria-selected=true])":{color:v=>Oe(v,"shift-13"),boxShadow:v=>`inset 0 ${Le(-.5)} 0 0 ${Oe(v,"shift-2",e)}`},"&[aria-selected=true]:not([disabled])":{color:v=>Oe(v,"shift-13",r),boxShadow:v=>`inset 0 ${Le(-.5)} 0 0 ${Oe(v,"shift-8",r)}`},"&:focus-visible":{boxShadow:v=>b(v,r)},"&[aria-selected=true]:focus-visible":{boxShadow:v=>`${b(v,r)}, inset 0 ${Le(-.5)} 0 0 ${Oe(v,"shift-6",r)}`}}}}),role:"tablist",ariaOrientation:"horizontal",style:{display:"flex"}},f=o.map((h,g)=>{var S;let u=(S=h.key)!=null?S:g;return{div:[h.content],_key:u,role:"tabpanel",id:`panel${i}${u}`,ariaLabelledby:`tab${i}${u}`,hidden:C=>s.get(C)!==u,style:{paddingBlock:C=>Le(to(C)*2),paddingInline:C=>Le(to(C)*2)}}});p[m.tagName]=[d,...f]}}}import{toState as Er}from"@domphy/core";import{themeColor as fe,themeDensity as Xo,themeSize as ls,themeSpacing as oo}from"@domphy/theme";function $g(a={}){var s,t;let o=Er((s=a.color)!=null?s:"neutral","color"),r=Er((t=a.accentColor)!=null?t:"primary","accentColor"),{autoResize:e=!1}=a;return{_onInsert:n=>{n.tagName!=="textarea"&&console.warn('"textarea" primitive patch must use textarea tag')},_onMount:n=>{if(e){let l=n.domElement;l.style.overflow="hidden";let m=()=>{l.style.height="auto",l.style.height=`${l.scrollHeight}px`};l.addEventListener("input",m),m(),n.addHook("Remove",()=>l.removeEventListener("input",m))}},style:{fontFamily:"inherit",lineHeight:"inherit",resize:"vertical",paddingInline:n=>oo(Xo(n)*2),paddingBlock:n=>oo(Xo(n)*1.5),border:"none",borderRadius:n=>oo(Xo(n)*1.5),fontSize:n=>ls(n,"inherit"),color:n=>fe(n,"text",o.get(n)),outlineOffset:"-1px",outline:n=>`1px solid ${fe(n,"border-strong",o.get(n))}`,backgroundColor:n=>fe(n,"inherit",o.get(n)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:n=>fe(n,"shift-7")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:n=>`1px solid ${fe(n,"shift-5",r.get(n))}`},"&:focus-visible":{boxShadow:n=>b(n,r.get(n))},"&:invalid":{outline:n=>`${oo(.5)} solid ${fe(n,"shift-5","error")}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:n=>fe(n,"muted","neutral"),outline:n=>`1px solid ${fe(n,"border-strong","neutral")}`,backgroundColor:n=>fe(n,"shift-2","neutral")}}}}import{toState as ss}from"@domphy/core";import{themeColor as kr,themeDensity as Zo,themeSpacing as no}from"@domphy/theme";function Bg(){return{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column"}}}function Ag(a={}){var t,n,l;let{last:o=!1}=a,r=(t=a.color)!=null?t:"neutral",e=(n=a.accentColor)!=null?n:"primary",s=ss((l=a.active)!=null?l:!1);return{style:z({display:"grid",gridTemplateColumns:"2rem 1fr",columnGap:m=>no(Zo(m)*2),paddingBottom:m=>o?"0":no(Zo(m)*4),position:"relative","&::before":{content:'""',display:"block",width:"0.75rem",height:"0.75rem",borderRadius:"50%",justifySelf:"center",marginTop:no(1),transition:"background-color 200ms ease, opacity 200ms ease",backgroundColor:m=>kr(m,"shift-8",s.get(m)?e:r),opacity:m=>s.get(m)?"1":"0.4"}},o?{}:{"&::after":{content:'""',position:"absolute",left:"calc(1rem - 1px)",top:"1.25rem",bottom:m=>no(Zo(m)*-4),width:"2px",backgroundColor:m=>kr(m,"shift-3",r)}})}}import{toState as cs}from"@domphy/core";import{themeColor as wr,themeDensity as Jo,themeSize as ms,themeSpacing as it}from"@domphy/theme";function Qo(a){let o=a.getMetadata("toastOpen");return o||(o=cs(!1),a.setMetadata("toastOpen",o)),o}var Tr=a=>{let o=a==null?void 0:a.elementNode;return o?Qo(o).get(a):!1};function Yg(a={}){let{position:o="top-center",color:r="neutral"}=a,e=o.startsWith("top"),s=o.endsWith("center"),t=o.endsWith("right"),n={div:[],id:`domphy-toast-${o}`,style:{position:"fixed",display:"flex",flexDirection:e?"column":"column-reverse",alignItems:s?"center":t?"end":"start",inset:0,gap:it(4),zIndex:30,padding:it(6),pointerEvents:"none"}};return{_portal:l=>{let m=l.domElement.querySelector(`#domphy-toast-${o}`);return m||(m=l.children.insert(n).domElement),m},role:"status",ariaAtomic:"true",dataTone:"shift-17",style:{minWidth:it(32),pointerEvents:"auto",paddingBlock:l=>it(Jo(l)*2),paddingInline:l=>it(Jo(l)*4),borderRadius:l=>it(Jo(l)*2),fontSize:l=>ms(l,"inherit"),color:l=>wr(l,"text",r),backgroundColor:l=>wr(l,"inherit",r),boxShadow:I("medium"),opacity:l=>Number(Tr(l)),transform:l=>Tr(l)?"translateY(0)":e?"translateY(-100%)":"translateY(100%)",transition:"opacity 300ms ease, transform 300ms ease"},_onMount:l=>requestAnimationFrame(()=>Qo(l).set(!0)),_onBeforeRemove:(l,m)=>{var S,C;let p=!1,i=null,c=!1,d=l.getRoot(),f=(C=(S=l.domElement)==null?void 0:S.parentElement)!=null?C:null,h=()=>{var w;if(c||!f||f.id!==`domphy-toast-${o}`||f.childElementCount>0)return;c=!0;let v=(w=d.children)==null?void 0:w.items.find(D=>D.domElement===f);v?d.children.remove(v):f.remove()},g=()=>{p||(p=!0,i&&(clearTimeout(i),i=null),l.domElement.removeEventListener("transitionend",u),m(),h())},u=v=>{v.propertyName==="transform"&&g()};l.domElement.addEventListener("transitionend",u),i=setTimeout(g,350),l.addHook("Remove",()=>{var v;i&&(clearTimeout(i),i=null),(v=l.domElement)==null||v.removeEventListener("transitionend",u),h()}),Qo(l).set(!1)}}}import{toState as us}from"@domphy/core";import{themeColor as le,themeSize as Dr,themeSpacing as Ie}from"@domphy/theme";function Zg(a={items:[]}){var n;let{items:o=[],multiple:r=!1,color:e="neutral",accentColor:s="primary"}=a,t=us((n=a.value)!=null?n:r?[]:"");return{role:"group",_context:{toggleGroup:{value:t,multiple:r}},_onSchedule:(l,m)=>{let p=o.map((i,c)=>{var h;let d=(h=i.key)!=null?h:String(c);return{button:[typeof i.label=="string"?{span:i.label}:i.label],_key:d,type:"button",role:"button",ariaPressed:g=>{let u=t.get(g);return Array.isArray(u)?u.includes(d):u===d},onClick:()=>{let g=t.get();if(r){let u=Array.isArray(g)?[...g]:[];t.set(u.includes(d)?u.filter(S=>S!==d):[...u,d])}else t.set(g===d?"":d)},style:{cursor:"pointer",fontSize:g=>Dr(g,"inherit"),height:Ie(6),paddingBlock:Ie(1),paddingInline:Ie(2),border:"none",borderRadius:Ie(1.5),color:g=>le(g,"shift-13",e),backgroundColor:g=>le(g,"inherit",e),transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-pressed=true])":{color:g=>le(g,"shift-13",e),backgroundColor:g=>le(g,"hover",e)},"&:active:not([disabled])":{backgroundColor:g=>le(g,"increase-2",e)},"&[aria-pressed=true]":{backgroundColor:g=>le(g,"shift-3",s),color:g=>le(g,"shift-13",s)},"&:focus-visible":{boxShadow:g=>b(g,s)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}});m[l.tagName]=p},style:{display:"flex",paddingBlock:Ie(1),paddingInline:Ie(1),gap:Ie(1),borderRadius:Ie(2),fontSize:l=>Dr(l,"inherit"),backgroundColor:l=>le(l,"inherit",e),color:l=>le(l,"text",e),outline:l=>`1px solid ${le(l,"border",e)}`,outlineOffset:"-1px"}}}function ef(a={}){return cr({gap:a.gap})}function tf(){return{div:null,style:{flex:"1 1 0"}}}import{merge as ds,toState as Pr}from"@domphy/core";import{themeColor as Or,themeDensity as en,themeSize as ps,themeSpacing as tn}from"@domphy/theme";function cf(a={}){let{open:o=!1,placement:r="top",content:e="Tooltip Content"}=a,s=Pr(r),t=Pr(e),n={span:d=>t.get(d)},{show:l,hide:m,anchorPartial:p}=ne({kind:"tooltip",open:o,placement:s,content:n}),i={role:"tooltip",dataSize:"decrease-1",dataTone:"shift-17",style:{paddingBlock:d=>tn(en(d)*1),paddingInline:d=>tn(en(d)*3),borderRadius:d=>tn(en(d)*1.5),color:d=>Or(d,"text"),backgroundColor:d=>Or(d),fontSize:d=>ps(d,"inherit"),boxShadow:I("low")},$:[nr({placement:s,bordered:!1})]};return n.$||(n.$=[]),n.$.push(i),ds(p,{ariaDescribedby:d=>d!=null&&d.elementNode?ye("tooltip",d.elementNode):void 0,onMouseEnter:(d,f)=>l(f),onMouseLeave:(d,f)=>m(f),onFocus:(d,f)=>l(f),onBlur:(d,f)=>m(f),onKeyDown:(d,f)=>d.key==="Escape"&&m(f)}),p}import{ElementNode as Lr}from"@domphy/core";function Ir(a,o){return a.key!==void 0&&a.key!==null?String(a.key):`index-${o}`}function df(a={}){let{duration:o=300,delay:r=0}=a,e=new Map,s=new Map,t=new Set,n=new Set;return{_onMount:l=>{l.addHook("Remove",()=>{for(let m of Array.from(s.values()))m();s.clear();for(let m of t)clearTimeout(m);t.clear();for(let m of n)cancelAnimationFrame(m);n.clear()})},_onBeforeUpdate:l=>{e=new Map,l.children.items.forEach((m,p)=>{if(!(m instanceof Lr))return;let i=m.domElement;i&&e.set(Ir(m,p),i.getBoundingClientRect())})},_onUpdate:l=>{l.children.items.forEach((m,p)=>{var D;if(!(m instanceof Lr))return;let i=m.domElement;if(!i)return;let c=Ir(m,p),d=e.get(c);if(!d)return;let f=i.getBoundingClientRect(),h=d.left-f.left,g=d.top-f.top;if(Math.abs(h)<.5&&Math.abs(g)<.5)return;(D=s.get(i))==null||D(),i.style.transition="none",i.style.transform=`translate(${h}px, ${g}px)`,i.getBoundingClientRect();let u=requestAnimationFrame(()=>{n.delete(u),i.style.transition=`transform ${o}ms ease ${r}ms`,i.style.transform="translate(0px, 0px)"});n.add(u);let S=!1,C=null,v=()=>{S||(S=!0,C&&(t.delete(C),C=null),s.delete(i),i.removeEventListener("transitionend",w),i.style.transition="",i.style.transform="")},w=O=>{O.propertyName==="transform"&&v()};s.set(i,()=>{S=!0,C&&(clearTimeout(C),t.delete(C),C=null),s.delete(i),i.removeEventListener("transitionend",w)}),i.addEventListener("transitionend",w),C=setTimeout(v,o+r+34),t.add(C)}),e.clear()}}}import{toState as hs}from"@domphy/core";import{themeColor as zr,themeSize as gs,themeSpacing as fs}from"@domphy/theme";function ff(a={}){var r;let o=hs((r=a.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="ul"&&console.warn('"unorderedList" primitive patch must use ul tag')},style:{fontSize:e=>gs(e,"inherit"),backgroundColor:e=>zr(e),color:e=>zr(e,"text",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:fs(3),listStyleType:"disc",listStylePosition:"outside"}}}function bf(){return{style:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}}}export{vs as abbreviation,Ds as accordion,Is as alert,$s as avatar,Bs as badge,Ks as blockquote,qs as breadcrumb,Js as breadcrumbEllipsis,uc as button,bn as buttonGhost,yc as buttonSwitch,Ec as card,Dc as code,Kc as combobox,Gc as command,Xc as commandItem,Uc as commandSearch,nm as datePicker,sm as descriptionList,pm as details,vm as dialog,wm as divider,Im as drawer,I as elevation,$m as emphasis,Bm as empty,Hm as errorBoundary,qm as fab,Zm as figure,b as focusRing,tu as formGroup,ru as grid,cu as heading,pu as horizontalRule,yu as icon,xu as image,Tu as inputCheckbox,Iu as inputColor,_u as inputDateTime,Hu as inputFile,Yu as inputNumber,Uu as inputOTP,ed as inputPassword,ad as inputRadio,md as inputRange,gd as inputSearch,vd as inputSwitch,wd as inputText,Od as keyboard,Vd as label,Nd as link,jd as linkButton,Xd as list,Zd as listItem,Jd as listItemButton,op as mark,sp as menu,up as motion,gp as orderedList,vp as pagination,wp as panelSection,Lp as paragraph,_p as popover,nr as popoverArrow,Kp as preformated,qp as progress,Jp as rating,nh as ringProgress,cr as row,mh as scrollArea,fh as segmented,vh as select,Ph as selectBox,zh as selectItem,_h as selectList,Ah as skeleton,jh as small,Gh as spinner,Qh as splitter,tg as splitterHandle,eg as splitterPanel,rg as stack,cg as steps,pg as strong,yg as subscript,xg as superscript,wg as table,Lg as tabs,It as tag,$g as textarea,Bg as timeline,Ag as timelineItem,Yg as toast,Zg as toggleGroup,ef as toolbar,tf as toolbarSpacer,cf as tooltip,df as transitionGroup,ff as unorderedList,bf as visuallyHidden};
2
2
  //# sourceMappingURL=index.js.map