@enonic/ui 1.1.0 → 1.1.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.
@@ -1,6 +1,6 @@
1
1
  import{Children as e,Fragment as t,cloneElement as r,createContext as n,createElement as a,createPortal as o,forwardRef as i,isValidElement as s,useCallback as l,useContext as c,useEffect as d,useLayoutEffect as u,useMemo as m,useRef as f,useState as p}from"react";import{Fragment as v,options as g}from"preact";import{createPortal as b}from"react-dom";import{Root as h,Slot as y}from"@radix-ui/react-slot";import{FocusTrap as w}from"focus-trap-react";function x(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=x(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function I(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=x(e))&&(n&&(n+=" "),n+=t);return n}var k=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,N=I,C=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return N(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(e=>{const t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;const i=k(t)||k(n);return a[e][i]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...s}[t]):{...o,...s}[t]===r})?[...e,r,n]:e},[]);return N(e,i,l,null==r?void 0:r.class,null==r?void 0:r.className)},D=0;Array.isArray;function S(e,t,r,n,a,o){t||(t={});var i,s,l=t;if("ref"in l)for(s in l={},t)"ref"==s?i=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--D,__i:-1,__u:0,__source:a,__self:o};if("function"==typeof e&&(i=e.defaultProps))for(s in i)void 0===l[s]&&(l[s]=i[s]);return g.vnode&&g.vnode(c),c}var M=n(void 0),R=({value:e,children:t})=>/* @__PURE__ */S(M.Provider,{value:e,children:t});R.displayName="AvatarProvider";var A=()=>{const e=c(M);if(!e)throw new Error("useAvatar must be used within an Avatar");return e},P=n(void 0),T=({value:e,children:t})=>/* @__PURE__ */S(P.Provider,{value:e,children:t});T.displayName="ComboboxProvider";var O=()=>{const e=c(P);if(!e)throw new Error("useCombobox must be used within a ComboboxProvider");return e},z=n(void 0),E=({value:e,children:t})=>/* @__PURE__ */S(z.Provider,{value:e,children:t}),L=()=>{const e=c(z);if(!e)throw new Error("useContextMenuContent must be used within a ContextMenu.Content or ContextMenu.SubContent");return e},V=n(void 0),$=({value:e,children:t})=>/* @__PURE__ */S(V.Provider,{value:e,children:t}),F=()=>{const e=c(V);if(!e)throw new Error("useContextMenu must be used within a ContextMenuProvider");return e},K=n(void 0),H=K.Provider,G=()=>{const e=c(K);if(!e)throw new Error("useContextMenuSub must be used within a ContextMenu.Sub");return e},B=()=>c(K),j=n(void 0),W=({value:e,children:t})=>/* @__PURE__ */S(j.Provider,{value:e,children:t});W.displayName="DatePickerProvider";var q=()=>{const e=c(j);if(!e)throw new Error("useDatePicker must be used within DatePickerProvider");return e},_=n(void 0),Y=({value:e,children:t})=>/* @__PURE__ */S(_.Provider,{value:e,children:t});Y.displayName="DialogProvider";var U=()=>{const e=c(_);if(!e)throw new Error("useDialog must be used within a DialogProvider");return e},Z=n(null),X=()=>c(Z),J=n(void 0),Q=({value:e,children:t})=>/* @__PURE__ */S(J.Provider,{value:e,children:t});Q.displayName="GridListProvider";var ee=()=>{const e=c(J);if(!e)throw new Error("useGridList must be used within a GridList");return e},te=n(void 0),re=({value:e,children:t})=>/* @__PURE__ */S(te.Provider,{value:e,children:t});re.displayName="GridListRowProvider";var ne=()=>{const e=c(te);if(!e)throw new Error("useGridListRow must be used within a GridList.Row");return e},ae=n(void 0),oe=({children:e,prefix:t})=>/* @__PURE__ */S(ae.Provider,{value:{prefix:t},children:e});oe.displayName="IdProvider";var ie=Math.random().toString(36).slice(2,8).padEnd(6,"0"),se=0,le=(e,t)=>{const[r]=p(()=>`id-${ie}-${++se}`),n=e??r;return[c(ae)?.prefix,t,n].filter(Boolean).join("-")},ce=n(void 0),de=({value:e,children:t})=>/* @__PURE__ */S(ce.Provider,{value:e,children:t});de.displayName="ListboxProvider";var ue=()=>{const e=c(ce);if(!e)throw new Error("useListbox must be used within a Listbox");return e},me=n(void 0),fe=({value:e,children:t})=>/* @__PURE__ */S(me.Provider,{value:e,children:t}),pe=()=>{const e=c(me);if(!e)throw new Error("useMenu must be used within a MenuProvider");return e},ve=n(void 0),ge=ve.Provider;function be(){const e=c(ve);if(!e)throw new Error("useMenubarMenu must be used within a Menubar.Menu component");return e}function he(){return c(ve)}var ye=n(void 0),we=({value:e,children:t})=>/* @__PURE__ */S(ye.Provider,{value:e,children:t});we.displayName="MenubarProvider";var xe=()=>{const e=c(ye);if(!e)throw new Error("useMenubar must be used within a MenubarProvider");return e},Ie=()=>c(ye),ke=n(void 0),Ne=({value:e,children:t})=>/* @__PURE__ */S(ke.Provider,{value:e,children:t});Ne.displayName="RadioGroupProvider";var Ce=()=>{const e=c(ke);if(!e)throw new Error("useRadioGroup must be used within a RadioGroupProvider");return e},De=n(void 0),Se=({value:e,children:t})=>/* @__PURE__ */S(De.Provider,{value:e,children:t});Se.displayName="SearchFieldProvider";var Me=()=>{const e=c(De);if(!e)throw new Error("useSearchField must be used within a SearchFieldProvider");return e},Re=n(void 0),Ae=({value:e,children:t})=>/* @__PURE__ */S(Re.Provider,{value:e,children:t});Ae.displayName="SelectorProvider";var Pe=()=>{const e=c(Re);if(!e)throw new Error("useSelector must be used within a SelectorProvider");return e},Te=n(void 0),Oe=({value:e,children:t})=>/* @__PURE__ */S(Te.Provider,{value:e,children:t});Oe.displayName="StepperProvider";var ze=()=>{const e=c(Te);if(!e)throw new Error("useStepper must be used within a StepperProvider");return e},Ee=n(void 0),Le=({value:e,children:t})=>/* @__PURE__ */S(Ee.Provider,{value:e,children:t});Le.displayName="TabProvider";var Ve=()=>{const e=c(Ee);if(!e)throw new Error("useTab must be used within a TabProvider");return e},$e=n(void 0),Fe=({value:e,children:t})=>/* @__PURE__ */S($e.Provider,{value:e,children:t});Fe.displayName="TimePickerProvider";var Ke=()=>{const e=c($e);if(!e)throw new Error("useTimePicker must be used within TimePickerProvider");return e},He=n(void 0),Ge=({value:e,children:t})=>/* @__PURE__ */S(He.Provider,{value:e,children:t});Ge.displayName="ToastProvider";var Be=()=>{const e=c(He);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},je=n(void 0),We=({value:e,children:t})=>/* @__PURE__ */S(je.Provider,{value:e,children:t}),qe=()=>{const e=c(je);if(!e)throw new Error("useToggleGroup must be used within a ToggleGroupProvider");return e},_e=n(void 0),Ye=({value:e,children:t})=>/* @__PURE__ */S(_e.Provider,{value:e,children:t}),Ue=()=>{const e=c(_e);if(!e)throw new Error("Toolbar components must be used within Toolbar.Root");return e},Ze=()=>c(_e),Xe=n(void 0),Je=({value:e,children:t})=>/* @__PURE__ */S(Xe.Provider,{value:e,children:t}),Qe=()=>{const e=c(Xe);if(!e)throw new Error("useTreeList must be used within a TreeListProvider");return e},et=n(void 0),tt=({value:e,children:t})=>/* @__PURE__ */S(et.Provider,{value:e,children:t}),rt=()=>{const e=c(et);if(!e)throw new Error("useVirtualizedTreeList must be used within a VirtualizedTreeListProvider");return e};function nt(e,t){return`${e}-${t}`}function at(e,t){return t.reduce((t,r)=>(t[r]=nt(e,r),t),{})}function ot(e,t,r){return`${e}-${t}-item-${r}`}function it(e,t,r){if(r)return ot(e,t,r)}var st=(e=/* @__PURE__ */new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),lt="-",ct=[],dt=e=>{const t=ft(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return mt(e);const r=e.split(lt),n=""===r[0]&&r.length>1?1:0;return ut(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],a=r[e];return t?a?((e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(a,t):t:a||ct}return r[e]||ct}}},ut=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],a=r.nextPart.get(n);if(a){const r=ut(e,t+1,a);if(r)return r}const o=r.validators;if(null===o)return;const i=0===t?e.join(lt):e.slice(t).join(lt),s=o.length;for(let l=0;l<s;l++){const e=o[l];if(e.validator(i))return e.classGroupId}},mt=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),ft=e=>{const{theme:t,classGroups:r}=e;return pt(r,t)},pt=(e,t)=>{const r=st();for(const n in e){const a=e[n];vt(a,r,n,t)}return r},vt=(e,t,r,n)=>{const a=e.length;for(let o=0;o<a;o++){const a=e[o];gt(a,t,r,n)}},gt=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?yt(e,t,r,n):ht(e,t,r,n):bt(e,t,r)},bt=(e,t,r)=>{(""===e?t:wt(t,e)).classGroupId=r},ht=(e,t,r,n)=>{xt(e)?vt(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},yt=(e,t,r,n)=>{const a=Object.entries(e),o=a.length;for(let i=0;i<o;i++){const[e,o]=a[i];vt(o,wt(t,e),r,n)}},wt=(e,t)=>{let r=e;const n=t.split(lt),a=n.length;for(let o=0;o<a;o++){const e=n[o];let t=r.nextPart.get(e);t||(t=st(),r.nextPart.set(e,t)),r=t}return r},xt=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,It=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const a=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(a(e,t),t):void 0},set(e,t){e in r?r[e]=t:a(e,t)}}},kt=[],Nt=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),Ct=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,a=0,o=0;const i=e.length;for(let d=0;d<i;d++){const i=e[d];if(0===n&&0===a){if(":"===i){t.push(e.slice(o,d)),o=d+1;continue}if("/"===i){r=d;continue}}"["===i?n++:"]"===i?n--:"("===i?a++:")"===i&&a--}const s=0===t.length?e:e.slice(o);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return Nt(t,c,l,r&&r>o?r-o:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):Nt(kt,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},Dt=e=>{const t=/* @__PURE__ */new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let a=0;a<e.length;a++){const o=e[a],i="["===o[0],s=t.has(o);i||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(o)):n.push(o)}return n.length>0&&(n.sort(),r.push(...n)),r}},St=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let n=0;n<r.length;n++)t[r[n]]=!0;return t},Mt=/\s+/,Rt=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Rt(e[n]))&&(r&&(r+=" "),r+=t);return r},At=(e,...t)=>{let r,n,a,o;const i=e=>{const t=n(e);if(t)return t;const o=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o,postfixLookupClassGroupIds:i}=t,s=[],l=e.trim().split(Mt);let c="";for(let d=l.length-1;d>=0;d-=1){const e=l[d],{isExternal:t,modifiers:u,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:p}=r(e);if(t){c=e+(c.length>0?" "+c:c);continue}let v,g=!!p;if(g){v=n(f.substring(0,p));const e=v&&i[v]?n(f):void 0;e&&e!==v&&(v=e,g=!1)}else v=n(f);if(!v){if(!g){c=e+(c.length>0?" "+c:c);continue}if(v=n(f),!v){c=e+(c.length>0?" "+c:c);continue}g=!1}const b=0===u.length?"":1===u.length?u[0]:o(u).join(":"),h=m?b+"!":b,y=h+v;if(s.indexOf(y)>-1)continue;s.push(y);const w=a(v,g);for(let r=0;r<w.length;++r){const e=w[r];s.push(h+e)}c=e+(c.length>0?" "+c:c)}return c})(e,r);return a(e,o),o};return o=s=>{const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:It(e.cacheSize),parseClassName:Ct(e),sortModifiers:Dt(e),postfixLookupClassGroupIds:St(e),...dt(e)}))(l),n=r.cache.get,a=r.cache.set,o=i,i(s)},(...e)=>o(((...e)=>{let t,r,n=0,a="";for(;n<e.length;)(t=e[n++])&&(r=Rt(t))&&(a&&(a+=" "),a+=r);return a})(...e))},Pt=[],Tt=e=>{const t=t=>t[e]||Pt;return t.isThemeGetter=!0,t},Ot=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Et=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Lt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ft=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Kt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ht=e=>Et.test(e),Gt=e=>!!e&&!Number.isNaN(Number(e)),Bt=e=>!!e&&Number.isInteger(Number(e)),jt=e=>e.endsWith("%")&&Gt(e.slice(0,-1)),Wt=e=>Lt.test(e),qt=()=>!0,_t=e=>Vt.test(e)&&!$t.test(e),Yt=()=>!1,Ut=e=>Ft.test(e),Zt=e=>Kt.test(e),Xt=e=>!er(e)&&!lr(e),Jt=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),Qt=e=>gr(e,wr,Yt),er=e=>Ot.test(e),tr=e=>gr(e,xr,_t),rr=e=>gr(e,Ir,Gt),nr=e=>gr(e,Nr,qt),ar=e=>gr(e,kr,Yt),or=e=>gr(e,hr,Yt),ir=e=>gr(e,yr,Zt),sr=e=>gr(e,Cr,Ut),lr=e=>zt.test(e),cr=e=>br(e,xr),dr=e=>br(e,kr),ur=e=>br(e,hr),mr=e=>br(e,wr),fr=e=>br(e,yr),pr=e=>br(e,Cr,!0),vr=e=>br(e,Nr,!0),gr=(e,t,r)=>{const n=Ot.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},br=(e,t,r=!1)=>{const n=zt.exec(e);return!!n&&(n[1]?t(n[1]):r)},hr=e=>"position"===e||"percentage"===e,yr=e=>"image"===e||"url"===e,wr=e=>"length"===e||"size"===e||"bg-size"===e,xr=e=>"length"===e,Ir=e=>"number"===e,kr=e=>"family-name"===e,Nr=e=>"number"===e||"weight"===e,Cr=e=>"shadow"===e,Dr=/*#__PURE__*/At(()=>{const e=Tt("color"),t=Tt("font"),r=Tt("text"),n=Tt("font-weight"),a=Tt("tracking"),o=Tt("leading"),i=Tt("breakpoint"),s=Tt("container"),l=Tt("spacing"),c=Tt("radius"),d=Tt("shadow"),u=Tt("inset-shadow"),m=Tt("text-shadow"),f=Tt("drop-shadow"),p=Tt("blur"),v=Tt("perspective"),g=Tt("aspect"),b=Tt("ease"),h=Tt("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",lr,er],w=()=>[lr,er,l],x=()=>[Ht,"full","auto",...w()],I=()=>[Bt,"none","subgrid",lr,er],k=()=>["auto",{span:["full",Bt,lr,er]},Bt,lr,er],N=()=>[Bt,"auto",lr,er],C=()=>["auto","min","max","fr",lr,er],D=()=>["auto",...w()],S=()=>[Ht,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],M=()=>[Ht,"screen","full","dvw","lvw","svw","min","max","fit",...w()],R=()=>[Ht,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],A=()=>[e,lr,er],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ur,or,{position:[lr,er]}],T=()=>["auto","cover","contain",mr,Qt,{size:[lr,er]}],O=()=>[jt,cr,tr],z=()=>["","none","full",c,lr,er],E=()=>["",Gt,cr,tr],L=()=>[Gt,jt,ur,or],V=()=>["","none",p,lr,er],$=()=>["none",Gt,lr,er],F=()=>["none",Gt,lr,er],K=()=>[Gt,lr,er],H=()=>[Ht,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wt],breakpoint:[Wt],color:[qt],container:[Wt],"drop-shadow":[Wt],ease:["in","out","in-out"],font:[Xt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wt],shadow:[Wt],spacing:["px",Gt],text:[Wt],"text-shadow":[Wt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ht,er,lr,g]}],container:["container"],"container-type":[{"@container":["","normal","size",lr,er]}],"container-named":[Jt],columns:[{columns:[Gt,er,lr,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{"inset-s":x(),start:x()}],end:[{"inset-e":x(),end:x()}],"inset-bs":[{"inset-bs":x()}],"inset-be":[{"inset-be":x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Bt,"auto",lr,er]}],basis:[{basis:[Ht,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Gt,Ht,"auto","initial","none",er]}],grow:[{grow:["",Gt,lr,er]}],shrink:[{shrink:["",Gt,lr,er]}],order:[{order:[Bt,"first","last","none",lr,er]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...R()]}],"min-block-size":[{"min-block":["auto",...R()]}],"max-block-size":[{"max-block":["none",...R()]}],w:[{w:[s,"screen",...S()]}],"min-w":[{"min-w":[s,"screen","none",...S()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",r,cr,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,vr,nr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jt,er]}],"font-family":[{font:[dr,ar,t]}],"font-features":[{"font-features":[er]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,lr,er]}],"line-clamp":[{"line-clamp":[Gt,"none",lr,rr]}],leading:[{leading:[o,...w()]}],"list-image":[{"list-image":["none",lr,er]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",lr,er]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Gt,"from-font","auto",lr,tr]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Gt,"auto",lr,er]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[Bt,lr,er]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lr,er]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lr,er]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Bt,lr,er],radial:["",lr,er],conic:[Bt,lr,er]},fr,ir]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-bs":[{"border-bs":E()}],"border-w-be":[{"border-be":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Gt,lr,er]}],"outline-w":[{outline:["",Gt,cr,tr]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",d,pr,sr]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",u,pr,sr]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Gt,tr]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",m,pr,sr]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Gt,lr,er]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Gt]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[lr,er]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Gt]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",lr,er]}],filter:[{filter:["","none",lr,er]}],blur:[{blur:V()}],brightness:[{brightness:[Gt,lr,er]}],contrast:[{contrast:[Gt,lr,er]}],"drop-shadow":[{"drop-shadow":["","none",f,pr,sr]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Gt,lr,er]}],"hue-rotate":[{"hue-rotate":[Gt,lr,er]}],invert:[{invert:["",Gt,lr,er]}],saturate:[{saturate:[Gt,lr,er]}],sepia:[{sepia:["",Gt,lr,er]}],"backdrop-filter":[{"backdrop-filter":["","none",lr,er]}],"backdrop-blur":[{"backdrop-blur":V()}],"backdrop-brightness":[{"backdrop-brightness":[Gt,lr,er]}],"backdrop-contrast":[{"backdrop-contrast":[Gt,lr,er]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Gt,lr,er]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Gt,lr,er]}],"backdrop-invert":[{"backdrop-invert":["",Gt,lr,er]}],"backdrop-opacity":[{"backdrop-opacity":[Gt,lr,er]}],"backdrop-saturate":[{"backdrop-saturate":[Gt,lr,er]}],"backdrop-sepia":[{"backdrop-sepia":["",Gt,lr,er]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",lr,er]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Gt,"initial",lr,er]}],ease:[{ease:["linear","initial",b,lr,er]}],delay:[{delay:[Gt,lr,er]}],animate:[{animate:["none",h,lr,er]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,lr,er]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:$()}],"rotate-x":[{"rotate-x":$()}],"rotate-y":[{"rotate-y":$()}],"rotate-z":[{"rotate-z":$()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[lr,er,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],zoom:[{zoom:[Bt,lr,er]}],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",lr,er]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",lr,er]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Gt,cr,tr,rr]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Sr(...e){return Dr(I(e))}var Mr=(e,t)=>(e.addEventListener("change",t),()=>e.removeEventListener("change",t)),Rr=()=>{if("undefined"==typeof window)return!1;const e=navigator;return"boolean"==typeof e.userAgentData?.mobile?e.userAgentData.mobile:window.matchMedia("(pointer: coarse)").matches||window.matchMedia("(max-width: 640px)").matches},Ar=e=>{if("undefined"==typeof window)return()=>{};const t=window.matchMedia("(pointer: coarse)"),r=window.matchMedia("(max-width: 640px)"),n=()=>{e(t.matches||r.matches)};n();const a=Mr(t,n),o=Mr(r,n);return()=>{a(),o()}};function Pr(e,t){if(e)if("function"==typeof e)e(t);else if(function(e){return null!==e&&"object"==typeof e&&"current"in e}(e))try{e.current=t}catch{}}function Tr(...e){return l(t=>{e.forEach(e=>{Pr(e,t)})},e)}var Or=(()=>{if("undefined"==typeof document)return!1;let e=!1;const t={};Object.defineProperty(t,"container",{get:()=>(e=!0,"nearest")});try{document.documentElement.scrollIntoView(t)}catch{}return e})();function zr(e){Or?e.scrollIntoView({block:"center",container:"nearest"}):e.scrollIntoView({block:"nearest"})}function Er(e){return function(e){return!!(e&&"object"==typeof e&&"value"in e&&"peek"in e&&"function"==typeof e.peek&&"subscribe"in e&&"function"==typeof e.subscribe)}(e)?e.value:e}var Lr=C("relative flex shrink-0 overflow-hidden",{variants:{size:{sm:"size-6 text-xs",md:"size-8 text-sm",lg:"size-12 text-base"},shape:{circle:"rounded-full",square:"rounded-md"}},defaultVariants:{size:"md",shape:"circle"}}),Vr=i(({children:e,className:t,size:r,shape:n,...a},o)=>{const[i,s]=p("idle"),c=l(e=>{s(e)},[]);/* @__PURE__ */
2
2
  return S(R,{value:m(()=>({imageLoadingStatus:i,onImageLoadingStatusChange:c}),[i,c]),children:/* @__PURE__ */S("span",{"data-component":"Avatar.Root",ref:o,className:Sr(Lr({size:r,shape:n}),t),...a,children:e})})});Vr.displayName="Avatar";var $r=i(({src:e,alt:t,className:r,onLoadingStatusChange:n,...a},o)=>{const{imageLoadingStatus:i,onImageLoadingStatusChange:s}=A(),[l,c]=p(!1);return d(()=>{if(c(!1),!e)return;s("loading"),n?.("loading");const t=new Image,r=()=>{s("loaded"),n?.("loaded")},a=()=>{c(!0),s("error"),n?.("error")};return t.addEventListener("load",r),t.addEventListener("error",a),t.src=e,()=>{t.removeEventListener("load",r),t.removeEventListener("error",a)}},[e,s,n]),!e||l||"error"===i?null:/* @__PURE__ */S("img",{"data-component":"Avatar.Image",ref:o,src:e,alt:t,className:Sr("aspect-square h-full w-full object-cover",r),...a})});$r.displayName="Avatar.Image";var Fr=i(({children:e,className:t,delayMs:r=0,...n},a)=>{const{imageLoadingStatus:o}=A(),[i,s]=p(0===r);return d(()=>{if(0===r)return;const e=setTimeout(()=>{s(!0)},r);return()=>{clearTimeout(e)}},[r]),!i||"idle"!==o&&"error"!==o?null:/* @__PURE__ */S("span",{"data-component":"Avatar.Fallback",ref:a,className:Sr("flex h-full w-full items-center justify-center","bg-avatar-fallback text-alt cursor-default font-medium uppercase",t),...n,children:e})});Fr.displayName="Avatar.Fallback";var Kr=Object.assign(Vr,{Root:Vr,Image:$r,Fallback:Fr}),Hr=C(["inline-flex items-center justify-center","text-main font-semibold","transition-highlight box-border rounded-sm","focus-visible:ring-ring focus-visible:ring-offset-ring-offset focus-visible:ring-3 focus-visible:ring-offset-3 focus-visible:outline-none","group-data-[tone=inverse]:[--color-ring-offset:var(--color-surface-selected)] group-data-[tone=inverse]:[--color-ring:var(--color-ring-alt)]","active:bg-btn-active active:text-alt data-[active=true]:bg-btn-active data-[active=true]:text-alt","disabled:pointer-events-none disabled:opacity-30 disabled:select-none","cursor-pointer overflow-hidden text-ellipsis whitespace-nowrap"],{variants:{variant:{text:"bg-btn-primary hover:bg-btn-primary-hover hover:text-main",filled:"bg-btn-secondary hover:bg-btn-secondary-hover hover:text-main",solid:"bg-btn-tertiary text-alt hover:bg-btn-tertiary-hover",outline:"border-bdr-strong bg-btn-primary hover:bg-btn-primary-hover border"},size:{sm:"h-9 gap-2 px-3.5 text-sm",md:"h-10 gap-2.5 px-3.5 text-base",lg:"h-11.5 gap-3 px-4 text-lg"}},defaultVariants:{variant:"text",size:"md"}}),Gr=i(({className:e,variant:t="text",size:r="md",iconSize:n,iconStrokeWidth:a=1.5,startIconClassName:o,endIconClassName:i,startIcon:s,label:l,endIcon:c,title:d,children:u,disabled:m,...f},p)=>{const v=s,g=c,b=(e=>{if("number"==typeof e)return e;switch(e){case"sm":return 14;case"md":return 20;case"lg":return 24}})(n??r??"md");/* @__PURE__ */
3
- return S("button",{"data-component":"Button",ref:p,type:"button",className:Sr(Hr({variant:t,size:r}),e),title:d,"aria-label":d??l,"aria-disabled":m,"data-disabled":m??void 0,disabled:m,...f,children:[v&&/* @__PURE__ */S(v,{className:o,size:b,strokeWidth:a}),u,l,g&&/* @__PURE__ */S(g,{className:i,size:b,strokeWidth:a})]})});Gr.displayName="Button";var Br=(...e)=>e.filter((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),jr=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Wr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},qr=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},_r=n({}),Yr=i(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...l},d)=>{const{size:u=24,strokeWidth:m=2,absoluteStrokeWidth:f=!1,color:p="currentColor",className:v=""}=c(_r)??{},g=n??f?24*Number(r??m)/Number(t??u):r??m;return a("svg",{ref:d,...Wr,width:t??u??Wr.width,height:t??u??Wr.height,stroke:e??p,strokeWidth:g,className:Br("lucide",v,o),...!i&&!qr(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>a(e,t)),...Array.isArray(i)?i:[i]])}),Ur=(e,t)=>{const r=i(({className:r,...n},o)=>{return a(Yr,{ref:o,iconNode:t,className:Br(`lucide-${i=jr(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...n});var i});return r.displayName=jr(e),r},Zr=Ur("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Xr=Ur("calendar",[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]),Jr=Ur("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Qr=Ur("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),en=Ur("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),tn=Ur("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),rn=Ur("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),nn=Ur("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),an=Ur("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]),on=Ur("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),sn=Ur("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ln=Ur("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]),cn=Ur("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),dn=Ur("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),un=Ur("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),mn=Ur("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]),fn=Ur("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),pn=Ur("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),vn=Ur("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function gn({ref:e,isActive:t,disabled:r,focusMode:n="roving-tabindex",checkFocusWithin:a,onProgrammaticFocus:o}){d(()=>{e?.current&&"activedescendant"!==n&&!r&&t&&document.activeElement!==e.current&&(a?.enabled&&!e.current.closest(`[role="${a.containerRole}"]`)?.contains(document.activeElement)||"function"==typeof e.current.focus&&(o?.(),e.current.focus({focusVisible:!0})))},[t,r,n,a?.enabled,a?.containerRole,e,o])}function bn({open:e,selection:t,setActive:r,getItems:n,isItemDisabled:a,containerRef:o,buildElementId:i,enabled:s=!0}){const l=f(!1),c=f(!1);u(()=>{if(!s||!e)return l.current=e,void(c.current=!1);const d=!l.current;if(l.current=!0,d&&(c.current=!1),c.current)return;const u=n();if(0===u.length)return;const m=u.find(e=>t.has(e)&&!a(e));if(m){r(m),c.current=!0;const e=o?.current;if(e){const t=i?i(m):m,r=e.querySelector(`#${CSS.escape(t)}`);r&&zr(r)}return}const f=u.find(e=>!a(e));f&&(r(f),c.current=!0)},[e,s,t,r,n,a,o,i])}var hn="input-blink-attention",yn=(e,t,{scrollIntoView:r=!0}={})=>{const[n,a]=p(!1);return d(()=>{if(!t)return;const n=e.current;if(null==n)return;r&&n.scrollIntoView({behavior:"smooth",block:"center"}),n.classList.remove(hn),n.offsetWidth,n.classList.add(hn),a(!0);const o=window.setTimeout(()=>{a(!1),e.current?.classList.remove(hn)},1200);return()=>{window.clearTimeout(o)}},[t,r,e]),n};function wn({enabled:e,contentRef:t,excludeRefs:r=[],onPointerDownOutside:n,onInteractOutside:a,closeOn:o="pointerdown",onClose:i}){const s=f(!1),c=f(t),u=f(r),m=f(n),p=f(a),v=f(i),g=f(o);c.current=t,u.current=r,m.current=n,p.current=a,v.current=i,g.current=o;const b=l(e=>{const t=e.composedPath(),r=t[0],n=c.current;if(!(r instanceof Node))return!1;if(n.current&&t.includes(n.current))return!1;for(const a of u.current){const e=a?.current;if(e&&t.includes(e))return!1}return!t.some(e=>e instanceof Element&&e.hasAttribute("data-click-outside-ignore"))},[]),h=l(e=>{s.current=!1;const t=g.current;b(e)&&(m.current?.(e),p.current?.(e),"pointerdown"!==t?e.defaultPrevented||(s.current=!0):e.defaultPrevented||v.current?.())},[b]),y=l(e=>{const t=s.current;s.current=!1,"click"===g.current&&t&&b(e)&&(e.defaultPrevented||v.current?.())},[b]);d(()=>{if(e)return document.addEventListener("pointerdown",h),"click"===o&&document.addEventListener("click",y),()=>{document.removeEventListener("pointerdown",h),document.removeEventListener("click",y)}},[o,e,y,h]),d(()=>{e&&"click"===o||(s.current=!1)},[e,o])}function xn(e,t,r,n=void 0!==e){const[a,o]=p(t),i=n?e:a,s=f(e),c=f(n);d(()=>{n&&e!==s.current&&void 0!==e&&o(e),c.current&&!n&&o(t),s.current=e,c.current=n},[n,e,t]);const u=f(i),m=f(n),v=f(r);return u.current=i,m.current=n,v.current=r,[i,l(e=>{const t=u.current,r=function(e){return"function"==typeof e}(e)?e(t):e;u.current=r,m.current||o(r),v.current?.(r)},[])]}function In(e,t,r){const n=void 0!==e,a=null===e?void 0:e,o=f(r);o.current=r;const[i,s]=xn(a,t,l(e=>{o.current?.(e??null)},[]),n);return[i,l(e=>{s("function"==typeof e?t=>e(t)??void 0:e??void 0)},[s])]}var kn=10;function Nn({enabled:e,anchorRef:t,contentRef:r,side:n="bottom",align:a="start"}){const[o,i]=p(null);return d(()=>{if(!e||!t?.current||!r?.current)return;const o=()=>{if(!t.current||!r.current)return;const e=t.current.getBoundingClientRect(),o=r.current.offsetWidth,s=r.current.offsetHeight,l=window.innerWidth,c=window.innerHeight;let d,u,m,f=n;if("top"===n||"bottom"===n){if("bottom"===n){if(d=e.bottom,d+s>c-kn){const t=e.top-s;t>=kn&&(d=t,f="top")}}else if(d=e.top-s,d<kn){const t=e.bottom;t+s<=c-kn&&(d=t,f="bottom")}"start"===a?(u=e.left,u+o>l-kn&&(u=void 0,m=l-e.right)):(m=l-e.right,e.right-o<kn&&(m=void 0,u=e.left))}else{if("right"===n){if(u=e.right,u+o>l-kn){const t=e.left-o;t>=kn&&(u=t,f="left")}}else{const t=e.left-o;if(t<kn){const r=e.right;r+o<=l-kn?(u=r,f="right"):u=t}else u=t}"start"===a?(d=e.top,d+s>c-kn&&(d=Math.max(kn,c-s-kn))):(d=e.bottom-s,d<kn&&(d=kn))}i({top:d,left:u,right:m,side:f})};o();const s=new ResizeObserver(o);return s.observe(r.current),s.observe(t.current),window.addEventListener("resize",o),window.addEventListener("scroll",o,!0),()=>{s.disconnect(),window.removeEventListener("resize",o),window.removeEventListener("scroll",o,!0)}},[e,n,a,t,r]),o}var Cn=()=>!0;function Dn(e){const{getRows:t,getCellCount:r,isRowDisabled:n,isCellDisabled:a,isCellInteractive:o=Cn,activeCell:i,setActiveCell:s,loop:c=!1,onActivate:d,onEscape:u}=e,m=f(0),p=l((e,t,r)=>{let a=e,o=0;const i=r.length;for(;o<i;){if(c)a<0?a=r.length-1:a>=r.length&&(a=0);else if(a<0||a>=r.length)return null;const e=r[a];if(e&&!n(e))return a;a+=t,o++}return null},[c,n]),v=l((e,t,r,n)=>{let i=t,s=0;for(;s<n;){if(c)i<0?i=n-1:i>=n&&(i=0);else if(i<0||i>=n)return null;if(!a(e,i)&&o(e,i))return i;i+=r,s++}return null},[c,a,o]),g=l(e=>{const n=t();if(!n.length)return;const a=i?n.indexOf(i.row):-1;let o;o=-1===a?e>0?0:n.length-1:a+e;const l=p(o,e,n);if(null===l)return;const c=n[l];if(!c)return;const d=r(c),u=Math.min(m.current,d-1),f=v(c,u,1,d);null!==f&&s({row:c,col:f})},[t,i,r,p,v,s]),b=l(e=>{if(!i){const e=t();if(!e.length)return;const n=p(0,1,e);if(null===n)return;const a=e[n];if(!a)return;const o=r(a),i=v(a,0,1,o);return void(null!==i&&(m.current=i,s({row:a,col:i})))}const n=r(i.row),a=i.col+e,o=v(i.row,a,e,n);null!==o&&(m.current=o,s({row:i.row,col:o}))},[i,t,r,p,v,s]);return{moveRow:g,moveCol:b,handleKeyDown:l(e=>{const o=t();if(o.length)switch(e.key){case"ArrowDown":e.preventDefault(),g(1);break;case"ArrowUp":e.preventDefault(),g(-1);break;case"ArrowRight":e.preventDefault(),b(1);break;case"ArrowLeft":e.preventDefault(),b(-1);break;case"Home":if(e.preventDefault(),e.ctrlKey||e.metaKey){const e=p(0,1,o);if(null!==e){const t=o[e];if(t){const e=r(t),n=v(t,0,1,e);null!==n&&(m.current=n,s({row:t,col:n}))}}}else if(i){const e=r(i.row),t=v(i.row,0,1,e);null!==t&&(m.current=t,s({row:i.row,col:t}))}break;case"End":if(e.preventDefault(),e.ctrlKey||e.metaKey){const e=p(o.length-1,-1,o);if(null!==e){const t=o[e];if(t){const e=r(t),n=v(t,e-1,-1,e);null!==n&&(m.current=n,s({row:t,col:n}))}}}else if(i){const e=r(i.row),t=v(i.row,e-1,-1,e);null!==t&&(m.current=t,s({row:i.row,col:t}))}break;case"Enter":case" ":e.preventDefault(),!i||n(i.row)||a(i.row,i.col)||d?.(i.row,i.col);break;case"Escape":e.preventDefault(),u?.()}},[t,i,g,b,r,p,v,s,n,a,d,u])}}function Sn(){const e=f(/* @__PURE__ */new Map),[t,r]=p(0),n=f(null),a=f(!1),o=l(()=>{a.current||(a.current=!0,queueMicrotask(()=>{a.current=!1,r(e=>e+1)}))},[]);return{registerItem:l((t,r=!1,n=null)=>{const a=e.current.get(t);a&&a.disabled===r&&a.element===n||(e.current.set(t,{disabled:r,element:n}),o())},[o]),unregisterItem:l(t=>{e.current.delete(t)&&o()},[o]),getItems:l(()=>{if(n.current?.version===t)return[...n.current.ids];const r=Array.from(e.current.entries()),a=/* @__PURE__ */new Map;for(const[e,t]of r)if(t.element)a.set(e,t.element);else{const t=document.querySelector(`[data-registry-id="${e}"]`)??document.getElementById(e);a.set(e,t)}const o=r.map(([e])=>e).sort((e,t)=>{const r=a.get(e),n=a.get(t);if(!r||!n)return 0;const o=r.compareDocumentPosition(n);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0});return n.current={version:t,ids:o},[...o]},[t]),isItemDisabled:l(t=>e.current.get(t)?.disabled??!1,[]),getItemElement:l(t=>e.current.get(t)?.element??null,[]),registryVersion:t}}function Mn(){const e=f(/* @__PURE__ */new Map);return{registerItemText:l((t,r)=>{e.current.set(t,r)},[]),unregisterItemText:l(t=>{e.current.delete(t)},[]),getItemText:l(t=>e.current.get(t),[])}}function Rn(e){const{getItems:t,isItemDisabled:r,isItemVisible:n=()=>!0,active:a,setActive:o,loop:i=!1,orientation:s="vertical",onSelect:c,onEscape:d}=e,u=l(e=>!r(e)&&n(e),[r,n]),m=l(e=>{const r=t();if(!r.length)return;const n=a?r.indexOf(a):-1;let s,l=0;const c=r.length;for(s=-1===n?e>0?0:r.length-1:n+e;l<c;){if(i)s<0?s=r.length-1:s>=r.length&&(s=0);else if(s<0||s>=r.length)return;const t=r[s];if(t&&u(t))return void o(t);s+=e,l++}},[t,a,o,i,u]);return{moveActive:m,handleKeyDown:l(e=>{const n=t();if(!n.length)return;const i="vertical"===s,l=i?"ArrowDown":"ArrowRight",f=i?"ArrowUp":"ArrowLeft";switch(e.key){case l:e.preventDefault(),m(1);break;case f:e.preventDefault(),m(-1);break;case"Home":e.preventDefault();{const e=n.find(u);e&&o(e)}break;case"End":e.preventDefault();{const e=[...n].reverse().find(u);e&&o(e)}break;case"Enter":case" ":e.preventDefault(),a&&!r(a)&&c?.(a);break;case"Escape":e.preventDefault(),d?.()}},[t,a,m,o,r,u,s,c,d])}}var An={canScrollLeft:!1,canScrollRight:!1,hasOverflow:!1};function Pn(e){const[t,r]=p(An),n=f(0),a=l(()=>{const t=e.current;if(!t)return void r(An);r({hasOverflow:t.scrollWidth-t.clientWidth>1,canScrollLeft:t.scrollLeft>1,canScrollRight:t.scrollLeft<t.scrollWidth-t.clientWidth-1})},[e]),o=l(()=>{cancelAnimationFrame(n.current),n.current=requestAnimationFrame(a)},[a]);d(()=>{const t=e.current;if(!t)return;a(),t.addEventListener("scroll",o,{passive:!0});const r=new ResizeObserver(o);r.observe(t);const i=()=>{for(const e of Array.from(t.children))r.observe(e)};i();const s=new MutationObserver(()=>{i(),o()});return s.observe(t,{childList:!0,subtree:!0}),()=>{t.removeEventListener("scroll",o),r.disconnect(),s.disconnect(),cancelAnimationFrame(n.current)}},[e,a,o]);return{...t,scrollBy:l(t=>{e.current?.scrollBy({left:t,behavior:"smooth"})},[e])}}var Tn=10;function On({enabled:e,mousePosition:t,contentRef:r}){const[n,a]=p(null);return d(()=>{if(!e||!t||!r?.current)return;const n=()=>{if(!r.current)return;const e=r.current.getBoundingClientRect(),n=window.innerWidth,o=window.innerHeight;let i=t.y,s=t.x;if(i+e.height>o-Tn){const r=t.y-e.height;i=r>=Tn?r:Math.max(Tn,o-e.height-Tn)}if(s+e.width>n-Tn){const r=t.x-e.width;s=r>=Tn?r:Math.max(Tn,n-e.width-Tn)}a({top:i,left:s})};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[e,t,r]),d(()=>{e||a(null)},[e]),n}var zn=(e,t)=>{const r=X();d(()=>{const n=e.current;if(n&&t&&r)return r.register(n),()=>r.unregister(n)},[e,t,r])};function En(e){const{baseId:t,getItems:r,getItemId:n,value:a,onValueChange:o,isItemDisabled:i,loop:s=!1,orientation:c="vertical"}=e,{handleKeyDown:d}=Rn({getItems:r,isItemDisabled:i,active:a,setActive:l(e=>{e&&(o(e),n&&requestAnimationFrame(()=>{document.getElementById(n(t,e))?.focus()}))},[t,o,n]),loop:s,orientation:c});return{handleKeyDown:d}}function Ln({id:e,active:t,disabled:r,getItems:n,isItemDisabled:a,focusMode:o="roving-tabindex"}){return m(()=>{if("activedescendant"===o)return{isFocusable:!1,tabIndex:-1};if(r)return{isFocusable:!1,tabIndex:-1};const i=n(),s=i.length>0?i[0]:void 0,l=((t&&i.includes(t)?t:void 0)??i.find(e=>!a(e))??s??e)===e;return{isFocusable:l,tabIndex:l?0:-1}},[e,t,r,n,a,o])}function Vn({containerRef:e,activeId:t,orientation:r="vertical",buildElementId:n}){u(()=>{if(!t||!e?.current)return;const a=n?n(t):t,o=e.current.querySelector(`#${CSS.escape(a)}`);o&&o.scrollIntoView({block:"nearest",inline:"horizontal"===r?"nearest":void 0,behavior:"auto"})},[t,e,r,n])}var $n=(e,t)=>{d(()=>{if(!e)return;const r=t??document.body,n=r.style.overflow;return r.style.overflow="hidden",()=>{r.style.overflow=n}},[e,t])};function Fn({open:e,selectedId:t,setActive:r,items:n,virtuosoRef:a}){const o=f(!1);u(()=>{if(!e)return void(o.current=!1);const i=!o.current;if(o.current=!0,!i)return;if(!t)return;const s=n.findIndex(e=>e.id===t);if(s<0)return;r(t);let l=0,c=0;const d=()=>{const e=a?.current;e?e.scrollToIndex({index:s,align:"center",behavior:"auto"}):l++>=8||(c=requestAnimationFrame(d))};return d(),()=>{c&&cancelAnimationFrame(c)}},[e,t,n,r,a])}function Kn(e){const{getItems:t,isItemDisabled:r,getItemText:n,active:a,setActive:o,onMatch:i,timeout:s=500}=e,c=f(""),d=f(null),u=l(()=>{c.current="",d.current&&(clearTimeout(d.current),d.current=null)},[]);return{handleTypeAhead:l(e=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{c.current="",d.current=null},s);const l=t();if(!l.length)return;const u=e.toLowerCase(),m=c.current+u;if(c.current=m,m.length>1&&m.split("").every(e=>e===u)){for(const a of l)if(!r(a)&&n(a)?.toLowerCase().startsWith(m))return o(a),void i?.(a);const e=l.filter(e=>!r(e)&&n(e)?.toLowerCase().startsWith(u));if(0===e.length)return;const t=e[((a?e.indexOf(a):-1)+1)%e.length];t&&(o(t),i?.(t))}else{const e=a?l.indexOf(a):-1,t=e>=0?[...l.slice(e+1),...l.slice(0,e+1)]:l;for(const a of t)if(!r(a)&&n(a)?.toLowerCase().startsWith(m))return o(a),void i?.(a);if(m.length>1)for(const a of l)if(!r(a)&&n(a)?.toLowerCase().startsWith(u))return c.current=u,o(a),void i?.(a)}},[t,r,n,a,o,i,s]),resetSearch:u}}function Hn(e){const{getItems:t,isItemDisabled:r,getItemText:n,active:a,setActive:o,value:i,open:s,setOpenInternal:c,closeWithFocus:d,disabled:u,onSelect:m}=e,{handleKeyDown:f}=Rn({getItems:t,isItemDisabled:r,active:a,setActive:o,loop:!1,orientation:"vertical",onSelect:m,onEscape:d}),{handleTypeAhead:p}=Kn({getItems:t,isItemDisabled:r,getItemText:n,active:a,setActive:o});return{keyHandler:l(e=>{if(!u){if(!s&&["ArrowDown","ArrowUp","Enter"," ","Home","End"].includes(e.key)){e.preventDefault(),c(!0);const n="End"===e.key,a=10;let s=0;const l=()=>{const e=t();if(e.length>0)if(n){const t=[...e].reverse().find(e=>!r(e));t&&o(t)}else{const t=(i&&e.includes(i)&&!r(i)?i:null)||e.find(e=>!r(e));t&&o(t)}else s<a&&(s++,requestAnimationFrame(l))};return void requestAnimationFrame(l)}if(s&&"Tab"===e.key)a?m(a):d();else{if(s&&("PageUp"===e.key||"PageDown"===e.key)){e.preventDefault();const n=t();if(0===n.length)return;const i=a?n.indexOf(a):-1,s="PageDown"===e.key?10:-10;let l=i+s;l<0&&(l=0),l>=n.length&&(l=n.length-1);const c=s>0?1:-1;let d=n[l];for(;l>=0&&l<n.length&&d&&r(d);)l+=c,d=n[l];return void(l>=0&&l<n.length&&d&&!r(d)&&o(d))}if(1!==e.key.length||" "===e.key||e.ctrlKey||e.metaKey||e.altKey)f(e);else if(e.preventDefault(),s)p(e.key);else{c(!0);const r=10;let n=0;const a=()=>{t().length>0?p(e.key):n<r&&(n++,requestAnimationFrame(a))};requestAnimationFrame(a)}}}},[u,s,a,i,t,r,c,d,o,m,p,f])}}function Gn(e){const{baseId:t,getItems:r,getNextFocusable:n,value:a,onValueChange:o,isItemDisabled:i,registryVersion:s}=e,c=m(()=>r(),[r,s]),d=l(e=>{o(e),n&&requestAnimationFrame(()=>{document.getElementById(n(t,e))?.focus()})},[t,o,n]),u=null!=a?c.indexOf(a):-1,f=0===u,p=u===c.length-1,v=m(()=>{if(-1===u||p)return!1;const e=c[u+1];return null!=e&&!i(e)},[u,p,c,i]),g=m(()=>{if(u<=0)return!1;const e=c[u-1];return null!=e&&!i(e)},[u,c,i]),b=l(e=>{-1!==c.indexOf(e)&&(i(e)||d(e))},[c,i,d]),h=l(()=>{if(-1===u||p)return;const e=c[u+1];null==e||i(e)||d(e)},[u,p,c,i,d]),y=l(()=>{if(u<=0)return;const e=c[u-1];null==e||i(e)||d(e)},[u,c,i,d]),w=l(()=>{const e=c.find(e=>!i(e));null!=e&&d(e)},[c,i,d]),x=l(()=>{const e=[...c].reverse().find(e=>!i(e));null!=e&&d(e)},[c,i,d]);return{goToNext:h,goToPrevious:y,goToFirst:w,goToLast:x,goTo:b,handleKeyDown:l(e=>{switch(e.key){case"ArrowLeft":e.preventDefault(),y();break;case"ArrowRight":e.preventDefault(),h();break;case"Home":e.preventDefault(),w();break;case"End":e.preventDefault(),x()}},[h,y,w,x]),isFirst:f,isLast:p,canGoNext:v,canGoPrevious:g,currentIndex:u,items:c}}function Bn({enabled:e,submenuRef:t,side:r,graceMs:n=300}){const a=f(null),o=f(0);return d(()=>{if(!e)return a.current=null,void(o.current=0);o.current=Date.now();const t=e=>{a.current={x:e.clientX,y:e.clientY},o.current=Date.now()};return document.addEventListener("pointermove",t,{passive:!0}),()=>{document.removeEventListener("pointermove",t)}},[e]),{isInSafeArea:l((i,s)=>{if(!e)return!1;const l=t.current?.getBoundingClientRect();if(!l)return!1;const c=a.current;if(!c)return Date.now()-o.current<n;const d="right"===r?l.left:l.right,u={x:d,y:l.top},m={x:d,y:l.bottom};return!("right"===r&&i>=d)&&(!("left"===r&&i<=d)&&function(e,t,r,n){const a=(e,t,r)=>(e.x-r.x)*(t.y-r.y)-(t.x-r.x)*(e.y-r.y),o=a(e,t,r),i=a(e,r,n),s=a(e,n,t);return!((o<0||i<0||s<0)&&(o>0||i>0||s>0))}({x:i,y:s},c,u,m))},[e,t,r,n])}}var jn=(e,t)=>{d(()=>{const r=Er(e);r&&t(r)},[e,t])};function Wn(e){const{items:t,activeIndex:r,setActiveIndex:n,scrollToIndex:a,onExpand:o,onCollapse:i,onSelect:s,onEscape:c,loop:d=!1,isItemDisabled:u=()=>!1,getPageSize:m}=e,f=l(e=>{if(!t.length)return;const o=r??-1;let i,s=0;const l=t.length;for(i=-1===o?e>0?0:t.length-1:o+e;s<l;){if(d)i<0?i=t.length-1:i>=t.length&&(i=0);else if(i<0||i>=t.length)return;const r=t[i];if(r&&!u(r))return n(i),void a(i);i+=e,s++}},[t,r,n,a,d,u]),p=l(e=>e.parentId?t.findIndex(t=>t.id===e.parentId):null,[t]),v=l((e,r)=>t[r+1]?.parentId===e?r+1:null,[t]);return{moveActive:f,handleKeyDown:l(e=>{if(!t.length)return;const l=null!==r?t[r]:null;switch(e.key){case"ArrowDown":e.preventDefault(),f(1);break;case"ArrowUp":e.preventDefault(),f(-1);break;case"ArrowRight":if(e.preventDefault(),l&&null!==r)if(l.hasChildren&&!l.isExpanded)o?.(l.id);else if(l.isExpanded){const e=v(l.id,r),o=null!==e?t[e]:void 0;null!==e&&o&&!u(o)&&(n(e),a(e))}break;case"ArrowLeft":if(e.preventDefault(),l)if(l.isExpanded)i?.(l.id);else{const e=p(l),r=null!==e?t[e]:void 0;null!==e&&r&&!u(r)&&(n(e),a(e))}break;case"Home":e.preventDefault();{const e=t.findIndex(e=>!u(e));-1!==e&&(n(e),a(e))}break;case"End":e.preventDefault();for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&!u(r)){n(e),a(e);break}}break;case"PageUp":e.preventDefault();{const e=m?.()??10;f(-e)}break;case"PageDown":e.preventDefault();{const e=m?.()??10;f(e)}break;case"Enter":case" ":e.preventDefault(),l&&null!==r&&!u(l)&&s?.(l.id,r);break;case"Escape":e.preventDefault(),c?.()}},[t,r,f,n,a,o,i,s,c,u,p,v,m])}}var qn=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Sr("lucide lucide-circle-disc",Er(t)),"aria-hidden":"true",...r,children:[/* @__PURE__ */S("circle",{cx:"12",cy:"12",r:"10"}),/* @__PURE__ */S("circle",{cx:"12",cy:"12",r:"5",fill:"currentColor"})]}));qn.displayName="CircleDisc";var _n=qn,Yn=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-circle-alert",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 6.46429C12.5917 6.46429 13.0714 6.94398 13.0714 7.53571V12.1786C13.0714 12.7703 12.5917 13.25 12 13.25C11.4083 13.25 10.9286 12.7703 10.9286 12.1786V7.53571C10.9286 6.94398 11.4083 6.46429 12 6.46429ZM13.4286 16.1071C13.4286 16.8962 12.7889 17.5357 12 17.5357C11.2111 17.5357 10.5714 16.8962 10.5714 16.1071C10.5714 15.3181 11.2111 14.6786 12 14.6786C12.7889 14.6786 13.4286 15.3181 13.4286 16.1071Z",fill:"currentColor"})}));Yn.displayName="FilledCircleAlert";var Un=Yn,Zn=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-circle-check",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM17.004 9.45502C17.3736 8.99296 17.2988 8.31872 16.8366 7.94907C16.3746 7.57942 15.7003 7.65433 15.3307 8.1164L10.2651 14.4483L8.23872 12.9286C7.76534 12.5735 7.09378 12.6695 6.73872 13.1428C6.3837 13.6162 6.47962 14.2878 6.95302 14.6428L9.81016 16.7857C10.2731 17.133 10.9282 17.0497 11.2897 16.5978L17.004 9.45502Z",fill:"currentColor"})}));Zn.displayName="FilledCircleCheck";var Xn=Zn,Jn=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-circle-info",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM9.85714 15.3929C9.36402 15.3929 8.96429 15.7926 8.96429 16.2857C8.96429 16.7788 9.36402 17.1786 9.85714 17.1786H14.1429C14.636 17.1786 15.0357 16.7788 15.0357 16.2857C15.0357 15.7926 14.636 15.3929 14.1429 15.3929H12.8929V11.2857C12.8929 10.7926 12.4931 10.3929 12 10.3929H10.5714C10.0783 10.3929 9.67857 10.7926 9.67857 11.2857C9.67857 11.7788 10.0783 12.1786 10.5714 12.1786H11.1071V15.3929H9.85714ZM13.4286 7.71429C13.4286 8.50325 12.7889 9.14286 12 9.14286C11.2111 9.14286 10.5714 8.50325 10.5714 7.71429C10.5714 6.92532 11.2111 6.28571 12 6.28571C12.7889 6.28571 13.4286 6.92532 13.4286 7.71429Z",fill:"currentColor"})}));Jn.displayName="FilledCircleInfo";var Qn=Jn,ea=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-circle-x",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM7.67101 7.67101C8.08942 7.2526 8.76782 7.2526 9.18624 7.67101L12 10.4848L14.8138 7.67101C15.2322 7.2526 15.9106 7.2526 16.329 7.67101C16.7474 8.08942 16.7474 8.76782 16.329 9.18624L13.5152 12L16.329 14.8138C16.7474 15.2322 16.7474 15.9106 16.329 16.329C15.9106 16.7474 15.2322 16.7474 14.8138 16.329L12 13.5152L9.18624 16.329C8.76782 16.7474 8.08942 16.7474 7.67101 16.329C7.2526 15.9106 7.2526 15.2322 7.67101 14.8138L10.4848 12L7.67101 9.18624C7.2526 8.76782 7.2526 8.08942 7.67101 7.67101Z",fill:"currentColor"})}));ea.displayName="FilledCircleX";var ta=ea,ra=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-octagon-alert",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2zM12 6.46429C12.5917 6.46429 13.0714 6.94398 13.0714 7.53571V12.1786C13.0714 12.7703 12.5917 13.25 12 13.25C11.4083 13.25 10.9286 12.7703 10.9286 12.1786V7.53571C10.9286 6.94398 11.4083 6.46429 12 6.46429ZM13.4286 16.1071C13.4286 16.8962 12.7889 17.5357 12 17.5357C11.2111 17.5357 10.5714 16.8962 10.5714 16.1071C10.5714 15.3181 11.2111 14.6786 12 14.6786C12.7889 14.6786 13.4286 15.3181 13.4286 16.1071Z",fill:"currentColor"})}));ra.displayName="FilledOctagonAlert";var na=ra,aa=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-square-check",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.3 2H19.7C20.9703 2 22 3.02974 22 4.3V19.7C22 20.9703 20.9703 22 19.7 22H4.3C3.02974 22 2 20.9703 2 19.7V4.3C2 3.02974 3.02974 2 4.3 2ZM17.3886 8.25926C17.7868 7.76164 17.7061 7.03555 17.2085 6.63746C16.711 6.23937 15.9848 6.32005 15.5867 6.81766L10.1315 13.6367L7.94921 12C7.43942 11.6176 6.71618 11.721 6.33383 12.2308C5.95148 12.7406 6.0548 13.4638 6.56459 13.8462L9.64152 16.1538C10.1401 16.5278 10.8455 16.4382 11.2348 15.9515L17.3886 8.25926Z",fill:"currentColor"})}));aa.displayName="FilledSquareCheck";var oa=aa,ia=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-square-minus",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 2h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2ZM7 10.75h10a1 1 0 0 1 1 1v0.5a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-0.5a1 1 0 0 1 1-1Z",fill:"currentColor"})}));ia.displayName="FilledSquareMinus";var sa=ia,la=C(["inline-flex shrink-0"],{variants:{labeled:{true:"",false:'relative z-0 after:pointer-events-auto after:absolute after:-inset-1 after:-z-10 after:rounded-sm after:content-[""]'}},defaultVariants:{labeled:!1}}),ca=i(({id:e,className:t,name:r,label:n,defaultChecked:a=!1,checked:o,align:i="left",error:s,disabled:l,readOnly:c,required:d,value:u="on",onCheckedChange:m,errorMessage:f,onClick:p,onClickCapture:v,onMouseDown:g,...b},h)=>{const y=le(Er(e)),w=s?"error":"default",x=!l&&!c,I=!!n,[k,N]=xn(o,a,m),C="indeterminate"===k,D=!0===k;/* @__PURE__ */
3
+ return S("button",{"data-component":"Button",ref:p,type:"button",className:Sr(Hr({variant:t,size:r}),e),title:d,"aria-label":d??l,"aria-disabled":m,"data-disabled":m??void 0,disabled:m,...f,children:[v&&/* @__PURE__ */S(v,{className:o,size:b,strokeWidth:a}),u,l,g&&/* @__PURE__ */S(g,{className:i,size:b,strokeWidth:a})]})});Gr.displayName="Button";var Br=(...e)=>e.filter((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),jr=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Wr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},qr=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},_r=n({}),Yr=i(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...l},d)=>{const{size:u=24,strokeWidth:m=2,absoluteStrokeWidth:f=!1,color:p="currentColor",className:v=""}=c(_r)??{},g=n??f?24*Number(r??m)/Number(t??u):r??m;return a("svg",{ref:d,...Wr,width:t??u??Wr.width,height:t??u??Wr.height,stroke:e??p,strokeWidth:g,className:Br("lucide",v,o),...!i&&!qr(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>a(e,t)),...Array.isArray(i)?i:[i]])}),Ur=(e,t)=>{const r=i(({className:r,...n},o)=>{return a(Yr,{ref:o,iconNode:t,className:Br(`lucide-${i=jr(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...n});var i});return r.displayName=jr(e),r},Zr=Ur("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Xr=Ur("calendar",[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]),Jr=Ur("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Qr=Ur("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),en=Ur("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),tn=Ur("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),rn=Ur("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),nn=Ur("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),an=Ur("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]),on=Ur("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),sn=Ur("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ln=Ur("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]),cn=Ur("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),dn=Ur("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),un=Ur("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),mn=Ur("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]),fn=Ur("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),pn=Ur("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),vn=Ur("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function gn({ref:e,isActive:t,disabled:r,focusMode:n="roving-tabindex",checkFocusWithin:a,onProgrammaticFocus:o}){d(()=>{e?.current&&"activedescendant"!==n&&!r&&t&&document.activeElement!==e.current&&(a?.enabled&&!e.current.closest(`[role="${a.containerRole}"]`)?.contains(document.activeElement)||"function"==typeof e.current.focus&&(o?.(),e.current.focus({focusVisible:!0})))},[t,r,n,a?.enabled,a?.containerRole,e,o])}function bn({open:e,selection:t,setActive:r,getItems:n,isItemDisabled:a,containerRef:o,buildElementId:i,enabled:s=!0}){const l=f(!1),c=f(!1);u(()=>{if(!s||!e)return l.current=e,void(c.current=!1);const d=!l.current;if(l.current=!0,d&&(c.current=!1),c.current)return;const u=n();if(0===u.length)return;const m=u.find(e=>t.has(e)&&!a(e));if(m){r(m),c.current=!0;const e=o?.current;if(e){const t=i?i(m):m,r=e.querySelector(`#${CSS.escape(t)}`);r&&zr(r)}return}const f=u.find(e=>!a(e));f&&(r(f),c.current=!0)},[e,s,t,r,n,a,o,i])}var hn="input-blink-attention",yn=(e,t,{scrollIntoView:r=!0}={})=>{const[n,a]=p(!1);return d(()=>{if(!t)return;const n=e.current;if(null==n)return;r&&n.scrollIntoView({behavior:"smooth",block:"center"}),n.classList.remove(hn),n.offsetWidth,n.classList.add(hn),a(!0);const o=window.setTimeout(()=>{a(!1),e.current?.classList.remove(hn)},1200);return()=>{window.clearTimeout(o)}},[t,r,e]),n};function wn({enabled:e,contentRef:t,excludeRefs:r=[],onPointerDownOutside:n,onInteractOutside:a,closeOn:o="pointerdown",onClose:i}){const s=f(!1),c=f(t),u=f(r),m=f(n),p=f(a),v=f(i),g=f(o);c.current=t,u.current=r,m.current=n,p.current=a,v.current=i,g.current=o;const b=l(e=>{const t=e.composedPath(),r=t[0],n=c.current;if(!(r instanceof Node))return!1;if(n.current&&t.includes(n.current))return!1;for(const a of u.current){const e=a?.current;if(e&&t.includes(e))return!1}return!t.some(e=>e instanceof Element&&e.hasAttribute("data-click-outside-ignore"))},[]),h=l(e=>{s.current=!1;const t=g.current;b(e)&&(m.current?.(e),p.current?.(e),"pointerdown"!==t?e.defaultPrevented||(s.current=!0):e.defaultPrevented||v.current?.())},[b]),y=l(e=>{const t=s.current;s.current=!1,"click"===g.current&&t&&b(e)&&(e.defaultPrevented||v.current?.())},[b]);d(()=>{if(e)return document.addEventListener("pointerdown",h),"click"===o&&document.addEventListener("click",y),()=>{document.removeEventListener("pointerdown",h),document.removeEventListener("click",y)}},[o,e,y,h]),d(()=>{e&&"click"===o||(s.current=!1)},[e,o])}function xn(e,t,r,n=void 0!==e){const[a,o]=p(t),i=n?e:a,s=f(e),c=f(n);d(()=>{n&&e!==s.current&&void 0!==e&&o(e),c.current&&!n&&o(t),s.current=e,c.current=n},[n,e,t]);const u=f(i),m=f(n),v=f(r);return u.current=i,m.current=n,v.current=r,[i,l(e=>{const t=u.current,r=function(e){return"function"==typeof e}(e)?e(t):e;u.current=r,m.current||o(r),v.current?.(r)},[])]}function In(e,t,r){const n=void 0!==e,a=null===e?void 0:e,o=f(r);o.current=r;const[i,s]=xn(a,t,l(e=>{o.current?.(e??null)},[]),n);return[i,l(e=>{s("function"==typeof e?t=>e(t)??void 0:e??void 0)},[s])]}var kn=10;function Nn({enabled:e,anchorRef:t,contentRef:r,side:n="bottom",align:a="start"}){const[o,i]=p(null);return d(()=>{if(!e||!t?.current||!r?.current)return;const o=()=>{if(!t.current||!r.current)return;const e=t.current.getBoundingClientRect(),o=r.current.offsetWidth,s=r.current.offsetHeight,l=window.innerWidth,c=window.innerHeight;let d,u,m,f=n;if("top"===n||"bottom"===n){if("bottom"===n){if(d=e.bottom,d+s>c-kn){const t=e.top-s;t>=kn&&(d=t,f="top")}}else if(d=e.top-s,d<kn){const t=e.bottom;t+s<=c-kn&&(d=t,f="bottom")}"start"===a?(u=e.left,u+o>l-kn&&(u=void 0,m=l-e.right)):(m=l-e.right,e.right-o<kn&&(m=void 0,u=e.left))}else{if("right"===n){if(u=e.right,u+o>l-kn){const t=e.left-o;t>=kn&&(u=t,f="left")}}else{const t=e.left-o;if(t<kn){const r=e.right;r+o<=l-kn?(u=r,f="right"):u=t}else u=t}"start"===a?(d=e.top,d+s>c-kn&&(d=Math.max(kn,c-s-kn))):(d=e.bottom-s,d<kn&&(d=kn))}i({top:d,left:u,right:m,side:f})};o();const s=new ResizeObserver(o);return s.observe(r.current),s.observe(t.current),window.addEventListener("resize",o),window.addEventListener("scroll",o,!0),()=>{s.disconnect(),window.removeEventListener("resize",o),window.removeEventListener("scroll",o,!0)}},[e,n,a,t,r]),o}var Cn=()=>!0;function Dn(e){const{getRows:t,getCellCount:r,isRowDisabled:n,isCellDisabled:a,isCellInteractive:o=Cn,activeCell:i,setActiveCell:s,loop:c=!1,onActivate:d,onEscape:u}=e,m=f(0),p=l((e,t,r)=>{let a=e,o=0;const i=r.length;for(;o<i;){if(c)a<0?a=r.length-1:a>=r.length&&(a=0);else if(a<0||a>=r.length)return null;const e=r[a];if(e&&!n(e))return a;a+=t,o++}return null},[c,n]),v=l((e,t,r,n)=>{let i=t,s=0;for(;s<n;){if(c)i<0?i=n-1:i>=n&&(i=0);else if(i<0||i>=n)return null;if(!a(e,i)&&o(e,i))return i;i+=r,s++}return null},[c,a,o]),g=l(e=>{const n=t();if(!n.length)return;const a=i?n.indexOf(i.row):-1;let o;o=-1===a?e>0?0:n.length-1:a+e;const l=p(o,e,n);if(null===l)return;const c=n[l];if(!c)return;const d=r(c),u=Math.min(m.current,d-1),f=v(c,u,1,d);null!==f&&s({row:c,col:f})},[t,i,r,p,v,s]),b=l(e=>{if(!i){const e=t();if(!e.length)return;const n=p(0,1,e);if(null===n)return;const a=e[n];if(!a)return;const o=r(a),i=v(a,0,1,o);return void(null!==i&&(m.current=i,s({row:a,col:i})))}const n=r(i.row),a=i.col+e,o=v(i.row,a,e,n);null!==o&&(m.current=o,s({row:i.row,col:o}))},[i,t,r,p,v,s]);return{moveRow:g,moveCol:b,handleKeyDown:l(e=>{const o=t();if(o.length)switch(e.key){case"ArrowDown":e.preventDefault(),g(1);break;case"ArrowUp":e.preventDefault(),g(-1);break;case"ArrowRight":e.preventDefault(),b(1);break;case"ArrowLeft":e.preventDefault(),b(-1);break;case"Home":if(e.preventDefault(),e.ctrlKey||e.metaKey){const e=p(0,1,o);if(null!==e){const t=o[e];if(t){const e=r(t),n=v(t,0,1,e);null!==n&&(m.current=n,s({row:t,col:n}))}}}else if(i){const e=r(i.row),t=v(i.row,0,1,e);null!==t&&(m.current=t,s({row:i.row,col:t}))}break;case"End":if(e.preventDefault(),e.ctrlKey||e.metaKey){const e=p(o.length-1,-1,o);if(null!==e){const t=o[e];if(t){const e=r(t),n=v(t,e-1,-1,e);null!==n&&(m.current=n,s({row:t,col:n}))}}}else if(i){const e=r(i.row),t=v(i.row,e-1,-1,e);null!==t&&(m.current=t,s({row:i.row,col:t}))}break;case"Enter":case" ":e.preventDefault(),!i||n(i.row)||a(i.row,i.col)||d?.(i.row,i.col);break;case"Escape":u&&(e.preventDefault(),u())}},[t,i,g,b,r,p,v,s,n,a,d,u])}}function Sn(){const e=f(/* @__PURE__ */new Map),[t,r]=p(0),n=f(null),a=f(!1),o=l(()=>{a.current||(a.current=!0,queueMicrotask(()=>{a.current=!1,r(e=>e+1)}))},[]);return{registerItem:l((t,r=!1,n=null)=>{const a=e.current.get(t);a&&a.disabled===r&&a.element===n||(e.current.set(t,{disabled:r,element:n}),o())},[o]),unregisterItem:l(t=>{e.current.delete(t)&&o()},[o]),getItems:l(()=>{if(n.current?.version===t)return[...n.current.ids];const r=Array.from(e.current.entries()),a=/* @__PURE__ */new Map;for(const[e,t]of r)if(t.element)a.set(e,t.element);else{const t=document.querySelector(`[data-registry-id="${e}"]`)??document.getElementById(e);a.set(e,t)}const o=r.map(([e])=>e).sort((e,t)=>{const r=a.get(e),n=a.get(t);if(!r||!n)return 0;const o=r.compareDocumentPosition(n);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0});return n.current={version:t,ids:o},[...o]},[t]),isItemDisabled:l(t=>e.current.get(t)?.disabled??!1,[]),getItemElement:l(t=>e.current.get(t)?.element??null,[]),registryVersion:t}}function Mn(){const e=f(/* @__PURE__ */new Map);return{registerItemText:l((t,r)=>{e.current.set(t,r)},[]),unregisterItemText:l(t=>{e.current.delete(t)},[]),getItemText:l(t=>e.current.get(t),[])}}function Rn(e){const{getItems:t,isItemDisabled:r,isItemVisible:n=()=>!0,active:a,setActive:o,loop:i=!1,orientation:s="vertical",onSelect:c,onEscape:d}=e,u=l(e=>!r(e)&&n(e),[r,n]),m=l(e=>{const r=t();if(!r.length)return;const n=a?r.indexOf(a):-1;let s,l=0;const c=r.length;for(s=-1===n?e>0?0:r.length-1:n+e;l<c;){if(i)s<0?s=r.length-1:s>=r.length&&(s=0);else if(s<0||s>=r.length)return;const t=r[s];if(t&&u(t))return void o(t);s+=e,l++}},[t,a,o,i,u]);return{moveActive:m,handleKeyDown:l(e=>{const n=t();if(!n.length)return;const i="vertical"===s,l=i?"ArrowDown":"ArrowRight",f=i?"ArrowUp":"ArrowLeft";switch(e.key){case l:e.preventDefault(),m(1);break;case f:e.preventDefault(),m(-1);break;case"Home":e.preventDefault();{const e=n.find(u);e&&o(e)}break;case"End":e.preventDefault();{const e=[...n].reverse().find(u);e&&o(e)}break;case"Enter":case" ":e.preventDefault(),a&&!r(a)&&c?.(a);break;case"Escape":d&&(e.preventDefault(),d())}},[t,a,m,o,r,u,s,c,d])}}var An={canScrollLeft:!1,canScrollRight:!1,hasOverflow:!1};function Pn(e){const[t,r]=p(An),n=f(0),a=l(()=>{const t=e.current;if(!t)return void r(An);r({hasOverflow:t.scrollWidth-t.clientWidth>1,canScrollLeft:t.scrollLeft>1,canScrollRight:t.scrollLeft<t.scrollWidth-t.clientWidth-1})},[e]),o=l(()=>{cancelAnimationFrame(n.current),n.current=requestAnimationFrame(a)},[a]);d(()=>{const t=e.current;if(!t)return;a(),t.addEventListener("scroll",o,{passive:!0});const r=new ResizeObserver(o);r.observe(t);const i=()=>{for(const e of Array.from(t.children))r.observe(e)};i();const s=new MutationObserver(()=>{i(),o()});return s.observe(t,{childList:!0,subtree:!0}),()=>{t.removeEventListener("scroll",o),r.disconnect(),s.disconnect(),cancelAnimationFrame(n.current)}},[e,a,o]);return{...t,scrollBy:l(t=>{e.current?.scrollBy({left:t,behavior:"smooth"})},[e])}}var Tn=10;function On({enabled:e,mousePosition:t,contentRef:r}){const[n,a]=p(null);return d(()=>{if(!e||!t||!r?.current)return;const n=()=>{if(!r.current)return;const e=r.current.getBoundingClientRect(),n=window.innerWidth,o=window.innerHeight;let i=t.y,s=t.x;if(i+e.height>o-Tn){const r=t.y-e.height;i=r>=Tn?r:Math.max(Tn,o-e.height-Tn)}if(s+e.width>n-Tn){const r=t.x-e.width;s=r>=Tn?r:Math.max(Tn,n-e.width-Tn)}a({top:i,left:s})};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[e,t,r]),d(()=>{e||a(null)},[e]),n}var zn=(e,t)=>{const r=X();d(()=>{const n=e.current;if(n&&t&&r)return r.register(n),()=>r.unregister(n)},[e,t,r])};function En(e){const{baseId:t,getItems:r,getItemId:n,value:a,onValueChange:o,isItemDisabled:i,loop:s=!1,orientation:c="vertical"}=e,{handleKeyDown:d}=Rn({getItems:r,isItemDisabled:i,active:a,setActive:l(e=>{e&&(o(e),n&&requestAnimationFrame(()=>{document.getElementById(n(t,e))?.focus()}))},[t,o,n]),loop:s,orientation:c});return{handleKeyDown:d}}function Ln({id:e,active:t,disabled:r,getItems:n,isItemDisabled:a,focusMode:o="roving-tabindex"}){return m(()=>{if("activedescendant"===o)return{isFocusable:!1,tabIndex:-1};if(r)return{isFocusable:!1,tabIndex:-1};const i=n(),s=i.length>0?i[0]:void 0,l=((t&&i.includes(t)?t:void 0)??i.find(e=>!a(e))??s??e)===e;return{isFocusable:l,tabIndex:l?0:-1}},[e,t,r,n,a,o])}function Vn({containerRef:e,activeId:t,orientation:r="vertical",buildElementId:n}){u(()=>{if(!t||!e?.current)return;const a=n?n(t):t,o=e.current.querySelector(`#${CSS.escape(a)}`);o&&o.scrollIntoView({block:"nearest",inline:"horizontal"===r?"nearest":void 0,behavior:"auto"})},[t,e,r,n])}var $n=(e,t)=>{d(()=>{if(!e)return;const r=t??document.body,n=r.style.overflow;return r.style.overflow="hidden",()=>{r.style.overflow=n}},[e,t])};function Fn({open:e,selectedId:t,setActive:r,items:n,virtuosoRef:a}){const o=f(!1);u(()=>{if(!e)return void(o.current=!1);const i=!o.current;if(o.current=!0,!i)return;if(!t)return;const s=n.findIndex(e=>e.id===t);if(s<0)return;r(t);let l=0,c=0;const d=()=>{const e=a?.current;e?e.scrollToIndex({index:s,align:"center",behavior:"auto"}):l++>=8||(c=requestAnimationFrame(d))};return d(),()=>{c&&cancelAnimationFrame(c)}},[e,t,n,r,a])}function Kn(e){const{getItems:t,isItemDisabled:r,getItemText:n,active:a,setActive:o,onMatch:i,timeout:s=500}=e,c=f(""),d=f(null),u=l(()=>{c.current="",d.current&&(clearTimeout(d.current),d.current=null)},[]);return{handleTypeAhead:l(e=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{c.current="",d.current=null},s);const l=t();if(!l.length)return;const u=e.toLowerCase(),m=c.current+u;if(c.current=m,m.length>1&&m.split("").every(e=>e===u)){for(const a of l)if(!r(a)&&n(a)?.toLowerCase().startsWith(m))return o(a),void i?.(a);const e=l.filter(e=>!r(e)&&n(e)?.toLowerCase().startsWith(u));if(0===e.length)return;const t=e[((a?e.indexOf(a):-1)+1)%e.length];t&&(o(t),i?.(t))}else{const e=a?l.indexOf(a):-1,t=e>=0?[...l.slice(e+1),...l.slice(0,e+1)]:l;for(const a of t)if(!r(a)&&n(a)?.toLowerCase().startsWith(m))return o(a),void i?.(a);if(m.length>1)for(const a of l)if(!r(a)&&n(a)?.toLowerCase().startsWith(u))return c.current=u,o(a),void i?.(a)}},[t,r,n,a,o,i,s]),resetSearch:u}}function Hn(e){const{getItems:t,isItemDisabled:r,getItemText:n,active:a,setActive:o,value:i,open:s,setOpenInternal:c,closeWithFocus:d,disabled:u,onSelect:m}=e,{handleKeyDown:f}=Rn({getItems:t,isItemDisabled:r,active:a,setActive:o,loop:!1,orientation:"vertical",onSelect:m,onEscape:d}),{handleTypeAhead:p}=Kn({getItems:t,isItemDisabled:r,getItemText:n,active:a,setActive:o});return{keyHandler:l(e=>{if(!u){if(!s&&["ArrowDown","ArrowUp","Enter"," ","Home","End"].includes(e.key)){e.preventDefault(),c(!0);const n="End"===e.key,a=10;let s=0;const l=()=>{const e=t();if(e.length>0)if(n){const t=[...e].reverse().find(e=>!r(e));t&&o(t)}else{const t=(i&&e.includes(i)&&!r(i)?i:null)||e.find(e=>!r(e));t&&o(t)}else s<a&&(s++,requestAnimationFrame(l))};return void requestAnimationFrame(l)}if(s&&"Tab"===e.key)a?m(a):d();else{if(s&&("PageUp"===e.key||"PageDown"===e.key)){e.preventDefault();const n=t();if(0===n.length)return;const i=a?n.indexOf(a):-1,s="PageDown"===e.key?10:-10;let l=i+s;l<0&&(l=0),l>=n.length&&(l=n.length-1);const c=s>0?1:-1;let d=n[l];for(;l>=0&&l<n.length&&d&&r(d);)l+=c,d=n[l];return void(l>=0&&l<n.length&&d&&!r(d)&&o(d))}if(1!==e.key.length||" "===e.key||e.ctrlKey||e.metaKey||e.altKey)f(e);else if(e.preventDefault(),s)p(e.key);else{c(!0);const r=10;let n=0;const a=()=>{t().length>0?p(e.key):n<r&&(n++,requestAnimationFrame(a))};requestAnimationFrame(a)}}}},[u,s,a,i,t,r,c,d,o,m,p,f])}}function Gn(e){const{baseId:t,getItems:r,getNextFocusable:n,value:a,onValueChange:o,isItemDisabled:i,registryVersion:s}=e,c=m(()=>r(),[r,s]),d=l(e=>{o(e),n&&requestAnimationFrame(()=>{document.getElementById(n(t,e))?.focus()})},[t,o,n]),u=null!=a?c.indexOf(a):-1,f=0===u,p=u===c.length-1,v=m(()=>{if(-1===u||p)return!1;const e=c[u+1];return null!=e&&!i(e)},[u,p,c,i]),g=m(()=>{if(u<=0)return!1;const e=c[u-1];return null!=e&&!i(e)},[u,c,i]),b=l(e=>{-1!==c.indexOf(e)&&(i(e)||d(e))},[c,i,d]),h=l(()=>{if(-1===u||p)return;const e=c[u+1];null==e||i(e)||d(e)},[u,p,c,i,d]),y=l(()=>{if(u<=0)return;const e=c[u-1];null==e||i(e)||d(e)},[u,c,i,d]),w=l(()=>{const e=c.find(e=>!i(e));null!=e&&d(e)},[c,i,d]),x=l(()=>{const e=[...c].reverse().find(e=>!i(e));null!=e&&d(e)},[c,i,d]);return{goToNext:h,goToPrevious:y,goToFirst:w,goToLast:x,goTo:b,handleKeyDown:l(e=>{switch(e.key){case"ArrowLeft":e.preventDefault(),y();break;case"ArrowRight":e.preventDefault(),h();break;case"Home":e.preventDefault(),w();break;case"End":e.preventDefault(),x()}},[h,y,w,x]),isFirst:f,isLast:p,canGoNext:v,canGoPrevious:g,currentIndex:u,items:c}}function Bn({enabled:e,submenuRef:t,side:r,graceMs:n=300}){const a=f(null),o=f(0);return d(()=>{if(!e)return a.current=null,void(o.current=0);o.current=Date.now();const t=e=>{a.current={x:e.clientX,y:e.clientY},o.current=Date.now()};return document.addEventListener("pointermove",t,{passive:!0}),()=>{document.removeEventListener("pointermove",t)}},[e]),{isInSafeArea:l((i,s)=>{if(!e)return!1;const l=t.current?.getBoundingClientRect();if(!l)return!1;const c=a.current;if(!c)return Date.now()-o.current<n;const d="right"===r?l.left:l.right,u={x:d,y:l.top},m={x:d,y:l.bottom};return!("right"===r&&i>=d)&&(!("left"===r&&i<=d)&&function(e,t,r,n){const a=(e,t,r)=>(e.x-r.x)*(t.y-r.y)-(t.x-r.x)*(e.y-r.y),o=a(e,t,r),i=a(e,r,n),s=a(e,n,t);return!((o<0||i<0||s<0)&&(o>0||i>0||s>0))}({x:i,y:s},c,u,m))},[e,t,r,n])}}var jn=(e,t)=>{d(()=>{const r=Er(e);r&&t(r)},[e,t])};function Wn(e){const{items:t,activeIndex:r,setActiveIndex:n,scrollToIndex:a,onExpand:o,onCollapse:i,onSelect:s,onEscape:c,loop:d=!1,isItemDisabled:u=()=>!1,getPageSize:m}=e,f=l(e=>{if(!t.length)return;const o=r??-1;let i,s=0;const l=t.length;for(i=-1===o?e>0?0:t.length-1:o+e;s<l;){if(d)i<0?i=t.length-1:i>=t.length&&(i=0);else if(i<0||i>=t.length)return;const r=t[i];if(r&&!u(r))return n(i),void a(i);i+=e,s++}},[t,r,n,a,d,u]),p=l(e=>e.parentId?t.findIndex(t=>t.id===e.parentId):null,[t]),v=l((e,r)=>t[r+1]?.parentId===e?r+1:null,[t]);return{moveActive:f,handleKeyDown:l(e=>{if(!t.length)return;const l=null!==r?t[r]:null;switch(e.key){case"ArrowDown":e.preventDefault(),f(1);break;case"ArrowUp":e.preventDefault(),f(-1);break;case"ArrowRight":if(e.preventDefault(),l&&null!==r)if(l.hasChildren&&!l.isExpanded)o?.(l.id);else if(l.isExpanded){const e=v(l.id,r),o=null!==e?t[e]:void 0;null!==e&&o&&!u(o)&&(n(e),a(e))}break;case"ArrowLeft":if(e.preventDefault(),l)if(l.isExpanded)i?.(l.id);else{const e=p(l),r=null!==e?t[e]:void 0;null!==e&&r&&!u(r)&&(n(e),a(e))}break;case"Home":e.preventDefault();{const e=t.findIndex(e=>!u(e));-1!==e&&(n(e),a(e))}break;case"End":e.preventDefault();for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&!u(r)){n(e),a(e);break}}break;case"PageUp":e.preventDefault();{const e=m?.()??10;f(-e)}break;case"PageDown":e.preventDefault();{const e=m?.()??10;f(e)}break;case"Enter":case" ":e.preventDefault(),l&&null!==r&&!u(l)&&s?.(l.id,r);break;case"Escape":c&&(e.preventDefault(),c())}},[t,r,f,n,a,o,i,s,c,u,p,v,m])}}var qn=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Sr("lucide lucide-circle-disc",Er(t)),"aria-hidden":"true",...r,children:[/* @__PURE__ */S("circle",{cx:"12",cy:"12",r:"10"}),/* @__PURE__ */S("circle",{cx:"12",cy:"12",r:"5",fill:"currentColor"})]}));qn.displayName="CircleDisc";var _n=qn,Yn=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-circle-alert",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 6.46429C12.5917 6.46429 13.0714 6.94398 13.0714 7.53571V12.1786C13.0714 12.7703 12.5917 13.25 12 13.25C11.4083 13.25 10.9286 12.7703 10.9286 12.1786V7.53571C10.9286 6.94398 11.4083 6.46429 12 6.46429ZM13.4286 16.1071C13.4286 16.8962 12.7889 17.5357 12 17.5357C11.2111 17.5357 10.5714 16.8962 10.5714 16.1071C10.5714 15.3181 11.2111 14.6786 12 14.6786C12.7889 14.6786 13.4286 15.3181 13.4286 16.1071Z",fill:"currentColor"})}));Yn.displayName="FilledCircleAlert";var Un=Yn,Zn=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-circle-check",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM17.004 9.45502C17.3736 8.99296 17.2988 8.31872 16.8366 7.94907C16.3746 7.57942 15.7003 7.65433 15.3307 8.1164L10.2651 14.4483L8.23872 12.9286C7.76534 12.5735 7.09378 12.6695 6.73872 13.1428C6.3837 13.6162 6.47962 14.2878 6.95302 14.6428L9.81016 16.7857C10.2731 17.133 10.9282 17.0497 11.2897 16.5978L17.004 9.45502Z",fill:"currentColor"})}));Zn.displayName="FilledCircleCheck";var Xn=Zn,Jn=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-circle-info",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM9.85714 15.3929C9.36402 15.3929 8.96429 15.7926 8.96429 16.2857C8.96429 16.7788 9.36402 17.1786 9.85714 17.1786H14.1429C14.636 17.1786 15.0357 16.7788 15.0357 16.2857C15.0357 15.7926 14.636 15.3929 14.1429 15.3929H12.8929V11.2857C12.8929 10.7926 12.4931 10.3929 12 10.3929H10.5714C10.0783 10.3929 9.67857 10.7926 9.67857 11.2857C9.67857 11.7788 10.0783 12.1786 10.5714 12.1786H11.1071V15.3929H9.85714ZM13.4286 7.71429C13.4286 8.50325 12.7889 9.14286 12 9.14286C11.2111 9.14286 10.5714 8.50325 10.5714 7.71429C10.5714 6.92532 11.2111 6.28571 12 6.28571C12.7889 6.28571 13.4286 6.92532 13.4286 7.71429Z",fill:"currentColor"})}));Jn.displayName="FilledCircleInfo";var Qn=Jn,ea=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-circle-x",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM7.67101 7.67101C8.08942 7.2526 8.76782 7.2526 9.18624 7.67101L12 10.4848L14.8138 7.67101C15.2322 7.2526 15.9106 7.2526 16.329 7.67101C16.7474 8.08942 16.7474 8.76782 16.329 9.18624L13.5152 12L16.329 14.8138C16.7474 15.2322 16.7474 15.9106 16.329 16.329C15.9106 16.7474 15.2322 16.7474 14.8138 16.329L12 13.5152L9.18624 16.329C8.76782 16.7474 8.08942 16.7474 7.67101 16.329C7.2526 15.9106 7.2526 15.2322 7.67101 14.8138L10.4848 12L7.67101 9.18624C7.2526 8.76782 7.2526 8.08942 7.67101 7.67101Z",fill:"currentColor"})}));ea.displayName="FilledCircleX";var ta=ea,ra=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-octagon-alert",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2zM12 6.46429C12.5917 6.46429 13.0714 6.94398 13.0714 7.53571V12.1786C13.0714 12.7703 12.5917 13.25 12 13.25C11.4083 13.25 10.9286 12.7703 10.9286 12.1786V7.53571C10.9286 6.94398 11.4083 6.46429 12 6.46429ZM13.4286 16.1071C13.4286 16.8962 12.7889 17.5357 12 17.5357C11.2111 17.5357 10.5714 16.8962 10.5714 16.1071C10.5714 15.3181 11.2111 14.6786 12 14.6786C12.7889 14.6786 13.4286 15.3181 13.4286 16.1071Z",fill:"currentColor"})}));ra.displayName="FilledOctagonAlert";var na=ra,aa=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-square-check",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.3 2H19.7C20.9703 2 22 3.02974 22 4.3V19.7C22 20.9703 20.9703 22 19.7 22H4.3C3.02974 22 2 20.9703 2 19.7V4.3C2 3.02974 3.02974 2 4.3 2ZM17.3886 8.25926C17.7868 7.76164 17.7061 7.03555 17.2085 6.63746C16.711 6.23937 15.9848 6.32005 15.5867 6.81766L10.1315 13.6367L7.94921 12C7.43942 11.6176 6.71618 11.721 6.33383 12.2308C5.95148 12.7406 6.0548 13.4638 6.56459 13.8462L9.64152 16.1538C10.1401 16.5278 10.8455 16.4382 11.2348 15.9515L17.3886 8.25926Z",fill:"currentColor"})}));aa.displayName="FilledSquareCheck";var oa=aa,ia=i(({size:e=24,className:t,...r},n)=>/* @__PURE__ */S("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",className:Sr("lucide lucide-filled-square-minus",Er(t)),"aria-hidden":"true",...r,children:/* @__PURE__ */S("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 2h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2ZM7 10.75h10a1 1 0 0 1 1 1v0.5a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-0.5a1 1 0 0 1 1-1Z",fill:"currentColor"})}));ia.displayName="FilledSquareMinus";var sa=ia,la=C(["inline-flex shrink-0"],{variants:{labeled:{true:"",false:'relative z-0 after:pointer-events-auto after:absolute after:-inset-1 after:-z-10 after:rounded-sm after:content-[""]'}},defaultVariants:{labeled:!1}}),ca=i(({id:e,className:t,name:r,label:n,defaultChecked:a=!1,checked:o,align:i="left",error:s,disabled:l,readOnly:c,required:d,value:u="on",onCheckedChange:m,errorMessage:f,onClick:p,onClickCapture:v,onMouseDown:g,...b},h)=>{const y=le(Er(e)),w=s?"error":"default",x=!l&&!c,I=!!n,[k,N]=xn(o,a,m),C="indeterminate"===k,D=!0===k;/* @__PURE__ */
4
4
  return S("div",{"data-component":"Checkbox",className:"flex w-fit flex-col gap-1",children:[/* @__PURE__ */S("label",{htmlFor:y,onClick:p,onClickCapture:v,onMouseDown:g,className:Sr("transition-highlight relative flex items-center gap-2 rounded-xs leading-4 select-none","right"===i&&"flex-row-reverse justify-end",I&&"my-0.75",x&&["cursor-pointer","hover:[&_[data-slot=checkbox-indicator]]:outline-2 hover:[&_[data-slot=checkbox-indicator]]:-outline-offset-2","error"===w?"hover:[&_[data-slot=checkbox-indicator]]:outline-error":"hover:[&_[data-slot=checkbox-indicator]]:outline-bdr-alt","focus-within:ring-ring focus-within:ring-offset-ring-offset focus-within:ring-3 focus-within:ring-offset-3 focus-within:outline-none","group-data-[tone=inverse]:[--color-ring-offset:var(--color-surface-selected)] group-data-[tone=inverse]:[--color-ring:var(--color-ring-alt)]"],s&&x&&"focus-within:ring-error",t),children:[
5
5
  /* @__PURE__ */S("input",{ref:e=>{"function"==typeof h?h(e):h&&(h.current=e),e&&(e.indeterminate=C)},...b,id:y,type:"checkbox",className:"peer sr-only",checked:D,disabled:c??l,required:d,name:r,value:u,"aria-checked":C?"mixed":D,"aria-disabled":l,"aria-invalid":s,"aria-readonly":c,"data-state":C?"indeterminate":D?"checked":"unchecked","data-disabled":l??void 0,onChange:e=>{if(!x)return;let t;t=!C&&e.currentTarget.checked,N(t)}}),
6
6
  /* @__PURE__ */S("span",{className:la({labeled:I}),"aria-hidden":"true",children:C?/* @__PURE__ */S(ia,{className:Sr("transition-highlight size-4 rounded-sm",!x&&"opacity-30","error"===w?"text-error":"text-main group-data-[tone=inverse]:text-alt"),"data-slot":"checkbox-indicator"}):D?/* @__PURE__ */S(aa,{className:Sr("transition-highlight size-4 rounded-sm",!x&&"opacity-30","error"===w?"text-error":"text-main group-data-[tone=inverse]:text-alt"),"data-slot":"checkbox-indicator"}):/* @__PURE__ */S(pn,{className:Sr("transition-highlight size-4 rounded-sm focus:outline-none",!x&&"opacity-30","error"===w?"text-error":"text-main group-data-[tone=inverse]:text-alt"),"data-slot":"checkbox-indicator"})}),n&&/* @__PURE__ */S("span",{className:Sr("text-main group-data-[tone=inverse]:text-alt",l&&"opacity-30"),children:n})]}),"error"===w&&f&&/* @__PURE__ */S("div",{className:Sr("text-error flex items-center gap-2 leading-5",l&&"opacity-30"),children:[/* @__PURE__ */S(ra,{size:14}),f]})]})});ca.displayName="Checkbox";var da=C(["p-0"],{variants:{size:{sm:"size-9",md:"size-10",lg:"h-11.5 w-11.5"},shape:{square:"rounded-sm",round:"rounded-full"}},defaultVariants:{size:"md",shape:"square"}}),ua=i(({className:e,variant:t="text",size:r="md",shape:n="square",icon:a,iconClassName:o,...i},s)=>/* @__PURE__ */S(Gr,{"data-component":"IconButton",ref:s,className:Sr(da({size:r,shape:n}),e),variant:t,size:r,startIcon:a,startIconClassName:o,label:"",...i}));ua.displayName="IconButton";var ma=[],fa=({baseId:e,selection:t,defaultSelection:r=ma,onSelectionChange:n,active:a,defaultActive:o,setActive:i,selectionMode:s="single",focusMode:c="roving-tabindex",disabled:d,children:u,keyHandler:f,registerItem:v,unregisterItem:g,getItems:b,isItemDisabled:h,autoActiveOnOpen:y=!0})=>{const w=le(),x=e??w,[I,k]=p(()=>new Set(r)),N=void 0!==t,C=m(()=>N?new Set(t):I,[N,t,I]),[D,M]=In(a,o,i),R=Sn(),A=v??R.registerItem,P=g??R.unregisterItem,T=b??R.getItems,O=h??R.isItemDisabled,z=l(e=>{const t=C.has(e),r=new Set(C);"single"===s?(r.clear(),t||r.add(e)):t?r.delete(e):r.add(e),N||k(r),n?.(Array.from(r)),M(e)},[C,s,N,n,M]);/* @__PURE__ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic/ui",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Enonic UI Component Library",
5
5
  "author": "Enonic",
6
6
  "license": "Apache-2.0",