ui-mathilde-web 0.0.4 → 0.0.5

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.
@@ -60,7 +60,7 @@ declare interface InputFormProps extends default_2.InputHTMLAttributes<HTMLInput
60
60
  maxLength?: number;
61
61
  }
62
62
 
63
- export declare const layoutOutside: () => JSX_2.Element;
63
+ export declare const LayoutOutside: () => JSX_2.Element;
64
64
 
65
65
  export declare const Logout: default_2.FC;
66
66
 
@@ -21533,6 +21533,7 @@ export {
21533
21533
  GC as Checkbox,
21534
21534
  Fr as ImageFormat,
21535
21535
  lp as InputForm,
21536
+ o_ as LayoutOutside,
21536
21537
  qx as Logout,
21537
21538
  pr as ModalFormat,
21538
21539
  t_ as MyDoughnutChart,
@@ -21541,6 +21542,5 @@ export {
21541
21542
  Cp as SelectForm,
21542
21543
  n_ as SidebarMth,
21543
21544
  r_ as TableComponent,
21544
- i_ as TermsCheckbox,
21545
- o_ as layoutOutside
21545
+ i_ as TermsCheckbox
21546
21546
  };
@@ -495,4 +495,4 @@ Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}
495
495
  */(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(i=o(i,n(a)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var a in i)e.call(i,a)&&i[a]&&(s=o(s,a));return s}function o(i,s){return s?i?i+" "+s:i+s:i}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(hf);var Dk=hf.exports;const Ik=pu(Dk);var Xs={exports:{}};function gf(t,e=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(e<0)throw new RangeError("`wait` must not be negative.");const{immediate:n}=typeof r=="boolean"?{immediate:r}:r;let o,i,s,a,l;function c(){const u=Date.now()-a;if(u<e&&u>=0)s=setTimeout(c,e-u);else if(s=void 0,!n){const f=o,h=i;o=void 0,i=void 0,l=t.apply(f,h)}}const d=function(...u){if(o&&this!==o)throw new Error("Debounced method called with different contexts.");o=this,i=u,a=Date.now();const f=n&&!s;if(s||(s=setTimeout(c,e)),f){const h=o,g=i;o=void 0,i=void 0,l=t.apply(h,g)}return l};return d.clear=()=>{s&&(clearTimeout(s),s=void 0)},d.flush=()=>{if(!s)return;const u=o,f=i;o=void 0,i=void 0,l=t.apply(u,f),clearTimeout(s),s=void 0},d}Xs.exports.debounce=gf,Xs.exports=gf;var Lk=Xs.exports;const Fk=pu(Lk);var zk=Object.defineProperty,Bk=(t,e,r)=>e in t?zk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pe=(t,e,r)=>(Bk(t,typeof e!="symbol"?e+"":e,r),r);const $k=300,jk=0;class Wk extends k.PureComponent{constructor(e){super(e),Pe(this,"container"),Pe(this,"scrolling"),Pe(this,"started"),Pe(this,"pressed"),Pe(this,"isMobile",!1),Pe(this,"internal"),Pe(this,"scrollLeft"),Pe(this,"scrollTop"),Pe(this,"clientX"),Pe(this,"clientY"),Pe(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),Pe(this,"onScroll",()=>{const r=this.container.current;(r.scrollLeft!==this.scrollLeft||r.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),Pe(this,"onTouchStart",r=>{const{nativeMobileScroll:n}=this.props;if(this.isDraggable(r.target))if(this.internal=!0,n&&this.scrolling)this.pressed=!0;else{const o=r.touches[0];this.processClick(o.clientX,o.clientY),!n&&this.props.stopPropagation&&r.stopPropagation()}}),Pe(this,"onTouchEnd",()=>{const{nativeMobileScroll:r}=this.props;this.pressed&&(this.started&&(!this.scrolling||!r)?this.processEnd():this.pressed=!1,this.forceUpdate())}),Pe(this,"onTouchMove",r=>{const{nativeMobileScroll:n}=this.props;if(this.pressed&&(!n||!this.isMobile)){const o=r.touches[0];o&&this.processMove(o.clientX,o.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation()}}),Pe(this,"onMouseDown",r=>{var n,o;this.isDraggable(r.target)&&this.isScrollable()&&(this.internal=!0,((o=(n=this.props)==null?void 0:n.buttons)==null?void 0:o.indexOf(r.button))!==-1&&(this.processClick(r.clientX,r.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation()))}),Pe(this,"onMouseMove",r=>{this.pressed&&(this.processMove(r.clientX,r.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation())}),Pe(this,"onMouseUp",r=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(r)),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation())}),this.container=k.createRef(),this.onEndScroll=Fk(this.onEndScroll,$k),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,r=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),r.addEventListener("touchstart",this.onTouchStart,{passive:!1}),r.addEventListener("mousedown",this.onMouseDown,{passive:!1}),e&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())}componentWillUnmount(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)}getElement(){return this.container.current}isMobileDevice(){return typeof window.orientation<"u"||navigator.userAgent.indexOf("IEMobile")!==-1}isDraggable(e){const r=this.props.ignoreElements;if(r){const n=e.closest(r);return n===null||n.contains(this.getElement())}else return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,r){const n=this.container.current;this.scrollLeft=n==null?void 0:n.scrollLeft,this.scrollTop=n==null?void 0:n.scrollTop,this.clientX=e,this.clientY=r,this.pressed=!0}processStart(e=!0){const{onStartScroll:r}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),r&&r({external:!this.internal}),this.forceUpdate()}processScroll(){if(this.started){const{onScroll:e}=this.props;e&&e({external:!this.internal})}else this.processStart(!1)}processMove(e,r){const{horizontal:n,vertical:o,activationDistance:i,onScroll:s}=this.props,a=this.container.current;this.started?(n&&(a.scrollLeft-=e-this.clientX),o&&(a.scrollTop-=r-this.clientY),s&&s({external:!this.internal}),this.clientX=e,this.clientY=r,this.scrollLeft=a.scrollLeft,this.scrollTop=a.scrollTop):(n&&Math.abs(e-this.clientX)>i||o&&Math.abs(r-this.clientY)>i)&&(this.clientX=e,this.clientY=r,this.processStart())}processEnd(){const{onEndScroll:e}=this.props;this.container.current&&e&&e({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("cursor-grab"),this.forceUpdate()}getRef(e){[this.container,this.props.innerRef].forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)})}render(){const{children:e,draggingClassName:r,className:n,style:o,hideScrollbars:i}=this.props;return p.jsx("div",{className:Ik(n,this.pressed&&r,{"!scroll-auto [&>*]:pointer-events-none [&>*]:cursor-grab":this.pressed,"overflow-auto":this.isMobile,"overflow-hidden !overflow-x-hidden [overflow:-moz-scrollbars-none] [scrollbar-width:none]":i,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":i}),style:o,ref:this.getRef,onScroll:this.onScroll,children:e})}}Pe(Wk,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[jk]});const Hk=k.forwardRef(({className:t,color:e="default",theme:r={},...n},o)=>{const i=W(K().checkbox,r);return p.jsx("input",{ref:o,type:"checkbox",className:F(i.root.base,i.root.color[e],t),...n})});Hk.displayName="Checkbox";const Rn=({children:t,className:e,color:r="default",theme:n={},value:o,...i})=>{const s=W(K().helperText,n);return p.jsx("p",{className:F(s.root.base,s.root.colors[r],e),...i,children:o??t??""})};Rn.displayName="HelperText";const pf=k.forwardRef(({addon:t,className:e,color:r="gray",helperText:n,icon:o,rightIcon:i,shadow:s,sizing:a="md",theme:l={},type:c="text",...d},u)=>{const f=W(K().textInput,l);return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:F(f.base,e),children:[t&&p.jsx("span",{className:f.addon,children:t}),p.jsxs("div",{className:f.field.base,children:[o&&p.jsx("div",{className:f.field.icon.base,children:p.jsx(o,{className:f.field.icon.svg})}),i&&p.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:p.jsx(i,{className:f.field.rightIcon.svg})}),p.jsx("input",{className:F(f.field.input.base,f.field.input.colors[r],f.field.input.sizes[a],f.field.input.withIcon[o?"on":"off"],f.field.input.withRightIcon[i?"on":"off"],f.field.input.withAddon[t?"on":"off"],f.field.input.withShadow[s?"on":"off"]),type:c,...d,ref:u})]})]}),n&&p.jsx(Rn,{color:r,children:n})]})});pf.displayName="TextInput";const mf=k.createContext(void 0);function li(){const t=k.useContext(mf);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var ve=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(ve||{}),bf=(t=>(t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t))(bf||{});const Vn=(t,e,r)=>{const n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&r){const o=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n>=o&&n<=i}if(e){const o=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return n>=o}if(r){const o=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n<=o}return!0},ci=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),Rk=(t,e,r)=>(Vn(t,e,r)||(e&&t<e?t=e:r&&t>r&&(t=r)),t),Vk=(t,e)=>{const r=new Date(t.getFullYear(),t.getMonth(),1);let o=r.getDay()-e;return o<0&&(o+=7),Js(r,-o)},Yk=(t,e)=>{const r=[],n=new Date(0);n.setDate(n.getDate()-n.getDay()+e);const o=new Intl.DateTimeFormat(t,{weekday:"short"});for(let i=0;i<7;i++)r.push(o.format(Js(n,i)));return r},Js=(t,e)=>{const r=new Date(t);return r.setDate(r.getDate()+e),r},Uk=(t,e)=>{const r=new Date(t);return r.setMonth(r.getMonth()+e),r},Vr=(t,e)=>{const r=new Date(t);return r.setFullYear(r.getFullYear()+e),r},Yn=(t,e,r)=>{let n={day:"numeric",month:"long",year:"numeric"};return r&&(n=r),new Intl.DateTimeFormat(t,n).format(e)},Yr=(t,e)=>{const r=t.getFullYear();return Math.floor(r/e)*e},qk=(t,e)=>{const r=t.getFullYear(),n=e+9;return r>=e&&r<=n},Kk=({theme:t={}})=>{const{theme:e,weekStart:r,minDate:n,maxDate:o,viewDate:i,selectedDate:s,changeSelectedDate:a,language:l}=li(),c=W(e.views.days,t),d=Yk(l,r),u=Vk(i,r);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:c.header.base,children:d.map((f,h)=>p.jsx("span",{className:c.header.title,children:f},h))}),p.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const g=Js(u,h),m=Yn(l,g,{day:"numeric"}),b=ci(s,g),v=!Vn(g,n,o);return p.jsx("button",{disabled:v,type:"button",className:F(c.items.item.base,b&&c.items.item.selected,v&&c.items.item.disabled),onClick:()=>{v||a(g,!0)},children:m},h)})})]})},Gk=({theme:t={}})=>{const{theme:e,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=li(),s=W(e.views.decades,t);return p.jsx("div",{className:s.items.base,children:[...Array(12)].map((a,l)=>{const d=Yr(n,100)-10+l*10,u=new Date(d,0,1),f=Vr(u,9),h=qk(n,d),g=!Vn(n,u,f);return p.jsx("button",{disabled:g,type:"button",className:F(s.items.item.base,h&&s.items.item.selected,g&&s.items.item.disabled),onClick:()=>{g||(o(Vr(n,d-r.getFullYear())),i(ve.Years))},children:d},l)})})},Xk=({theme:t={}})=>{const{theme:e,minDate:r,maxDate:n,selectedDate:o,viewDate:i,language:s,setViewDate:a,setView:l}=li(),c=W(e.views.months,t);return p.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const f=new Date(i.getTime());f.setMonth(u);const h=Yn(s,f,{month:"short"}),g=ci(o,f),m=!Vn(f,r,n);return p.jsx("button",{disabled:m,type:"button",className:F(c.items.item.base,g&&c.items.item.selected,m&&c.items.item.disabled),onClick:()=>{m||(a(f),l(ve.Days))},children:h},u)})})},Jk=({theme:t={}})=>{const{theme:e,selectedDate:r,minDate:n,maxDate:o,viewDate:i,setViewDate:s,setView:a}=li(),l=W(e.views.years,t);return p.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=Yr(i,10)-1+d*1,h=new Date(i.getTime());h.setFullYear(f);const g=ci(r,h),m=!Vn(h,n,o);return p.jsx("button",{disabled:m,type:"button",className:F(l.items.item.base,g&&l.items.item.selected,m&&l.items.item.disabled),onClick:()=>{m||(s(h),a(ve.Months))},children:f},d)})})},Zk=({title:t,open:e,inline:r=!1,autoHide:n=!0,showClearButton:o=!0,labelClearButton:i="Clear",showTodayButton:s=!0,labelTodayButton:a="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:f=bf.Sunday,className:h,theme:g={},onSelectedDateChanged:m,...b},v)=>{const y=W(K().datepicker,g);l=Rk(l,c,d);const[_,x]=k.useState(e),[w,S]=k.useState(ve.Days),[T,N]=k.useState(l),[M,E]=k.useState(l),I=k.useRef(null),A=k.useRef(null),D=(j,$)=>{N(j),m&&m(j),n&&w===ve.Days&&$==!0&&!r&&x(!1)},O=()=>{D(l,!0),l&&E(l)};k.useImperativeHandle(v,()=>({focus(){var j;(j=I.current)==null||j.focus()},clear(){O()}}));const P=j=>{switch(j){case ve.Decades:return p.jsx(Gk,{theme:y.views.decades});case ve.Years:return p.jsx(Jk,{theme:y.views.years});case ve.Months:return p.jsx(Xk,{theme:y.views.months});case ve.Days:default:return p.jsx(Kk,{theme:y.views.days})}},L=()=>{switch(w){case ve.Days:return ve.Months;case ve.Months:return ve.Years;case ve.Years:return ve.Decades}return w},z=()=>{switch(w){case ve.Decades:return`${Yr(M,100)} - ${Yr(M,100)+90}`;case ve.Years:return`${Yr(M,10)} - ${Yr(M,10)+9}`;case ve.Months:return Yn(u,M,{year:"numeric"});case ve.Days:default:return Yn(u,M,{month:"long",year:"numeric"})}},B=(j,$,H)=>{switch(j){case ve.Days:return new Date(Uk($,H));case ve.Months:return new Date(Vr($,H));case ve.Years:return new Date(Vr($,H*10));case ve.Decades:return new Date(Vr($,H*100));default:return new Date(Vr($,H*10))}};return k.useEffect(()=>{const j=$=>{var Y,U;const H=(Y=A==null?void 0:A.current)==null?void 0:Y.contains($.target),R=(U=I==null?void 0:I.current)==null?void 0:U.contains($.target);!H&&!R&&x(!1)};return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[I,A,x]),p.jsx(mf.Provider,{value:{theme:y,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:_,setIsOpen:x,view:w,setView:S,viewDate:M,setViewDate:E,selectedDate:T,setSelectedDate:N,changeSelectedDate:D},children:p.jsxs("div",{className:F(y.root.base,h),children:[!r&&p.jsx(pf,{theme:y.root.input,icon:i1,ref:I,onFocus:()=>{ci(M,T)||E(T),x(!0)},value:T&&Yn(u,T),readOnly:!0,...b}),(_||r)&&p.jsx("div",{ref:A,className:F(y.popup.root.base,r&&y.popup.root.inline),children:p.jsxs("div",{className:y.popup.root.inner,children:[p.jsxs("div",{className:y.popup.header.base,children:[t&&p.jsx("div",{className:y.popup.header.title,children:t}),p.jsxs("div",{className:y.popup.header.selectors.base,children:[p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.prev),onClick:()=>E(B(w,M,-1)),children:p.jsx(n1,{})}),p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>S(L()),children:z()}),p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.next),onClick:()=>E(B(w,M,1)),children:p.jsx(o1,{})})]})]}),p.jsx("div",{className:y.popup.view.base,children:P(w)}),(o||s)&&p.jsxs("div",{className:y.popup.footer.base,children:[s&&p.jsx("button",{type:"button",className:F(y.popup.footer.button.base,y.popup.footer.button.today),onClick:()=>{const j=new Date;D(j,!0),E(j)},children:a}),o&&p.jsx("button",{type:"button",className:F(y.popup.footer.button.base,y.popup.footer.button.clear),onClick:()=>{D(l,!0),l&&E(l)},children:i})]})]})})]})})},Qk=k.forwardRef(Zk);Qk.displayName="Datepicker";function di(){return typeof window<"u"}function wr(t){return yf(t)?(t.nodeName||"").toLowerCase():"#document"}function et(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Et(t){var e;return(e=(yf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function yf(t){return di()?t instanceof Node||t instanceof et(t).Node:!1}function pe(t){return di()?t instanceof Element||t instanceof et(t).Element:!1}function je(t){return di()?t instanceof HTMLElement||t instanceof et(t).HTMLElement:!1}function Zs(t){return!di()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof et(t).ShadowRoot}function Un(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(o)}function e2(t){return["table","td","th"].includes(wr(t))}function ui(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Qs(t){const e=ea(),r=pe(t)?ft(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function t2(t){let e=Ht(t);for(;je(e)&&!er(e);){if(Qs(e))return e;if(ui(e))return null;e=Ht(e)}return null}function ea(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function er(t){return["html","body","#document"].includes(wr(t))}function ft(t){return et(t).getComputedStyle(t)}function fi(t){return pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ht(t){if(wr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Zs(t)&&t.host||Et(t);return Zs(e)?e.host:e}function vf(t){const e=Ht(t);return er(e)?t.ownerDocument?t.ownerDocument.body:t.body:je(e)&&Un(e)?e:vf(e)}function tr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=vf(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=et(o);if(i){const a=ta(s);return e.concat(s,s.visualViewport||[],Un(o)?o:[],a&&r?tr(a):[])}return e.concat(o,tr(o,[],r))}function ta(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ot(t){let e=t.activeElement;for(;((r=e)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;e=e.shadowRoot.activeElement}return e}function Ee(t,e){if(!t||!e)return!1;const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&Zs(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function ra(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function xf(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:r,version:n}=e;return r+"/"+n}).join(" "):navigator.userAgent}function wf(t){return t.mozInputSource===0&&t.isTrusted?!0:ia()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function na(t){return r2()?!1:!ia()&&t.width===0&&t.height===0||ia()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function oa(){return/apple/i.test(navigator.vendor)}function ia(){const t=/android/i;return t.test(ra())||t.test(xf())}function kf(){return ra().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function r2(){return xf().includes("jsdom/")}function hi(t,e){const r=["mouse","pen"];return e||r.push("",void 0),r.includes(t)}function n2(t){return"nativeEvent"in t}function o2(t){return t.matches("html,body")}function qe(t){return(t==null?void 0:t.ownerDocument)||document}function sa(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const r=t;return r.target!=null&&e.contains(r.target)}function rr(t){return"composedPath"in t?t.composedPath()[0]:t.target}const i2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function aa(t){return je(t)&&t.matches(i2)}function We(t){t.preventDefault(),t.stopPropagation()}function Cf(t){return t?t.getAttribute("role")==="combobox"&&aa(t):!1}const s2=["top","right","bottom","left"],_f=["start","end"],Sf=s2.reduce((t,e)=>t.concat(e,e+"-"+_f[0],e+"-"+_f[1]),[]),Ur=Math.min,kr=Math.max,gi=Math.round,qr=Math.floor,Tt=t=>({x:t,y:t}),a2={left:"right",right:"left",bottom:"top",top:"bottom"},l2={start:"end",end:"start"};function la(t,e,r){return kr(t,Ur(e,r))}function Kr(t,e){return typeof t=="function"?t(e):t}function Rt(t){return t.split("-")[0]}function Mt(t){return t.split("-")[1]}function Ef(t){return t==="x"?"y":"x"}function ca(t){return t==="y"?"height":"width"}function pi(t){return["top","bottom"].includes(Rt(t))?"y":"x"}function da(t){return Ef(pi(t))}function Of(t,e,r){r===void 0&&(r=!1);const n=Mt(t),o=da(t),i=ca(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=bi(s)),[s,bi(s)]}function c2(t){const e=bi(t);return[mi(t),e,mi(e)]}function mi(t){return t.replace(/start|end/g,e=>l2[e])}function d2(t,e,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?o:n:e?n:o;case"left":case"right":return e?i:s;default:return[]}}function u2(t,e,r,n){const o=Mt(t);let i=d2(Rt(t),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(mi)))),i}function bi(t){return t.replace(/left|right|bottom|top/g,e=>a2[e])}function f2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Tf(t){return typeof t!="number"?f2(t):{top:t,right:t,bottom:t,left:t}}function yi(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function Mf(t,e,r){let{reference:n,floating:o}=t;const i=pi(e),s=da(e),a=ca(s),l=Rt(e),c=i==="y",d=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,f=n[a]/2-o[a]/2;let h;switch(l){case"top":h={x:d,y:n.y-o.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:u};break;case"left":h={x:n.x-o.width,y:u};break;default:h={x:n.x,y:n.y}}switch(Mt(e)){case"start":h[s]-=f*(r&&c?-1:1);break;case"end":h[s]+=f*(r&&c?-1:1);break}return h}const h2=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Mf(c,n,l),f=n,h={},g=0;for(let m=0;m<a.length;m++){const{name:b,fn:v}=a[m],{x:y,y:_,data:x,reset:w}=await v({x:d,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:t,floating:e}});d=y??d,u=_??u,h={...h,[b]:{...h[b],...x}},w&&g<=50&&(g++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):w.rects),{x:d,y:u}=Mf(c,f,l)),m=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function ua(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=Kr(e,t),g=Tf(h),b=a[f?u==="floating"?"reference":"floating":u],v=yi(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),y=u==="floating"?{...s.floating,x:n,y:o}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},w=yi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-w.top+g.top)/x.y,bottom:(w.bottom-v.bottom+g.bottom)/x.y,left:(v.left-w.left+g.left)/x.x,right:(w.right-v.right+g.right)/x.x}}const g2=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:d=0}=Kr(t,e)||{};if(c==null)return{};const u=Tf(d),f={x:r,y:n},h=da(o),g=ca(h),m=await s.getDimensions(c),b=h==="y",v=b?"top":"left",y=b?"bottom":"right",_=b?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[h]-f[h]-i.floating[g],w=f[h]-i.reference[h],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let T=S?S[_]:0;(!T||!await(s.isElement==null?void 0:s.isElement(S)))&&(T=a.floating[_]||i.floating[g]);const N=x/2-w/2,M=T/2-m[g]/2-1,E=Ur(u[v],M),I=Ur(u[y],M),A=E,D=T-m[g]-I,O=T/2-m[g]/2+N,P=la(A,O,D),L=!l.arrow&&Mt(o)!=null&&O!==P&&i.reference[g]/2-(O<A?E:I)-m[g]/2<0,z=L?O<A?O-A:O-D:0;return{[h]:f[h]+z,data:{[h]:P,centerOffset:O-P-z,...L&&{alignmentOffset:z}},reset:L}}});function p2(t,e,r){return(t?[...r.filter(o=>Mt(o)===t),...r.filter(o=>Mt(o)!==t)]:r.filter(o=>Rt(o)===o)).filter(o=>t?Mt(o)===t||(e?mi(o)!==o:!1):!0)}const m2=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,o;const{rects:i,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:f=Sf,autoAlignment:h=!0,...g}=Kr(t,e),m=u!==void 0||f===Sf?p2(u||null,h,f):f,b=await ua(e,g),v=((r=s.autoPlacement)==null?void 0:r.index)||0,y=m[v];if(y==null)return{};const _=Of(y,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==y)return{reset:{placement:m[0]}};const x=[b[Rt(y)],b[_[0]],b[_[1]]],w=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:y,overflows:x}],S=m[v+1];if(S)return{data:{index:v+1,overflows:w},reset:{placement:S}};const T=w.map(E=>{const I=Mt(E.placement);return[E.placement,I&&d?E.overflows.slice(0,2).reduce((A,D)=>A+D,0):E.overflows[0],E.overflows]}).sort((E,I)=>E[1]-I[1]),M=((o=T.filter(E=>E[2].slice(0,Mt(E[0])?2:3).every(I=>I<=0))[0])==null?void 0:o[0])||T[0][0];return M!==a?{data:{index:v+1,overflows:w},reset:{placement:M}}:{}}}},b2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=Kr(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=Rt(o),y=Rt(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=f||(y||!m?[bi(a)]:c2(a));!f&&g!=="none"&&x.push(...u2(a,m,g,_));const w=[a,...x],S=await ua(e,b),T=[];let N=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&T.push(S[v]),u){const A=Of(o,s,_);T.push(S[A[0]],S[A[1]])}if(N=[...N,{placement:o,overflows:T}],!T.every(A=>A<=0)){var M,E;const A=(((M=i.flip)==null?void 0:M.index)||0)+1,D=w[A];if(D)return{data:{index:A,overflows:N},reset:{placement:D}};let O=(E=N.filter(P=>P.overflows[0]<=0).sort((P,L)=>P.overflows[1]-L.overflows[1])[0])==null?void 0:E.placement;if(!O)switch(h){case"bestFit":{var I;const P=(I=N.map(L=>[L.placement,L.overflows.filter(z=>z>0).reduce((z,B)=>z+B,0)]).sort((L,z)=>L[1]-z[1])[0])==null?void 0:I[0];P&&(O=P);break}case"initialPlacement":O=a;break}if(o!==O)return{reset:{placement:O}}}return{}}}};async function y2(t,e){const{placement:r,platform:n,elements:o}=t,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Rt(r),a=Mt(r),l=pi(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=Kr(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const v2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=e,l=await y2(e,t);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},x2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:v,y}=b;return{x:v,y}}},...l}=Kr(t,e),c={x:r,y:n},d=await ua(e,l),u=pi(Rt(o)),f=Ef(u);let h=c[f],g=c[u];if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=h+d[b],_=h-d[v];h=la(y,h,_)}if(s){const b=u==="y"?"top":"left",v=u==="y"?"bottom":"right",y=g+d[b],_=g-d[v];g=la(y,g,_)}const m=a.fn({...e,[f]:h,[u]:g});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function Nf(t){const e=ft(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=je(t),i=o?t.offsetWidth:r,s=o?t.offsetHeight:n,a=gi(r)!==i||gi(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function fa(t){return pe(t)?t:t.contextElement}function Gr(t){const e=fa(t);if(!je(e))return Tt(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=Nf(e);let s=(i?gi(r.width):r.width)/n,a=(i?gi(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const w2=Tt(0);function Pf(t){const e=et(t);return!ea()||!e.visualViewport?w2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function k2(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==et(t)?!1:e}function Cr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=fa(t);let s=Tt(1);e&&(n?pe(n)&&(s=Gr(n)):s=Gr(t));const a=k2(i,r,n)?Pf(i):Tt(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const f=et(i),h=n&&pe(n)?et(n):n;let g=f,m=ta(g);for(;m&&n&&h!==g;){const b=Gr(m),v=m.getBoundingClientRect(),y=ft(m),_=v.left+(m.clientLeft+parseFloat(y.paddingLeft))*b.x,x=v.top+(m.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=_,c+=x,g=et(m),m=ta(g)}}return yi({width:d,height:u,x:l,y:c})}function ha(t,e){const r=fi(t).scrollLeft;return e?e.left+r:Cr(Et(t)).left+r}function Af(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:ha(t,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function C2(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const i=o==="fixed",s=Et(n),a=e?ui(e.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Tt(1);const d=Tt(0),u=je(n);if((u||!u&&!i)&&((wr(n)!=="body"||Un(s))&&(l=fi(n)),je(n))){const h=Cr(n);c=Gr(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?Af(s,l,!0):Tt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:r.y*c.y-l.scrollTop*c.y+d.y+f.y}}function _2(t){return Array.from(t.getClientRects())}function S2(t){const e=Et(t),r=fi(t),n=t.ownerDocument.body,o=kr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=kr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ha(t);const a=-r.scrollTop;return ft(n).direction==="rtl"&&(s+=kr(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function E2(t,e){const r=et(t),n=Et(t),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=ea();(!c||c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function O2(t,e){const r=Cr(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=je(t)?Gr(t):Tt(1),s=t.clientWidth*i.x,a=t.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function Df(t,e,r){let n;if(e==="viewport")n=E2(t,r);else if(e==="document")n=S2(Et(t));else if(pe(e))n=O2(e,r);else{const o=Pf(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return yi(n)}function If(t,e){const r=Ht(t);return r===e||!pe(r)||er(r)?!1:ft(r).position==="fixed"||If(r,e)}function T2(t,e){const r=e.get(t);if(r)return r;let n=tr(t,[],!1).filter(a=>pe(a)&&wr(a)!=="body"),o=null;const i=ft(t).position==="fixed";let s=i?Ht(t):t;for(;pe(s)&&!er(s);){const a=ft(s),l=Qs(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Un(s)&&!l&&If(t,s))?n=n.filter(d=>d!==s):o=a,s=Ht(s)}return e.set(t,n),n}function M2(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const s=[...r==="clippingAncestors"?ui(e)?[]:T2(e,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const u=Df(e,d,o);return c.top=kr(u.top,c.top),c.right=Ur(u.right,c.right),c.bottom=Ur(u.bottom,c.bottom),c.left=kr(u.left,c.left),c},Df(e,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function N2(t){const{width:e,height:r}=Nf(t);return{width:e,height:r}}function P2(t,e,r){const n=je(e),o=Et(e),i=r==="fixed",s=Cr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=Tt(0);if(n||!n&&!i)if((wr(e)!=="body"||Un(o))&&(a=fi(e)),n){const f=Cr(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else o&&(l.x=ha(o));const c=o&&!n&&!i?Af(o,a):Tt(0),d=s.left+a.scrollLeft-l.x-c.x,u=s.top+a.scrollTop-l.y-c.y;return{x:d,y:u,width:s.width,height:s.height}}function ga(t){return ft(t).position==="static"}function Lf(t,e){if(!je(t)||ft(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Et(t)===r&&(r=r.ownerDocument.body),r}function Ff(t,e){const r=et(t);if(ui(t))return r;if(!je(t)){let o=Ht(t);for(;o&&!er(o);){if(pe(o)&&!ga(o))return o;o=Ht(o)}return r}let n=Lf(t,e);for(;n&&e2(n)&&ga(n);)n=Lf(n,e);return n&&er(n)&&ga(n)&&!Qs(n)?r:n||t2(t)||r}const A2=async function(t){const e=this.getOffsetParent||Ff,r=this.getDimensions,n=await r(t.floating);return{reference:P2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function D2(t){return ft(t).direction==="rtl"}const I2={convertOffsetParentRelativeRectToViewportRelativeRect:C2,getDocumentElement:Et,getClippingRect:M2,getOffsetParent:Ff,getElementRects:A2,getClientRects:_2,getDimensions:N2,getScale:Gr,isElement:pe,isRTL:D2};function zf(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function L2(t,e){let r=null,n;const o=Et(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=t.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(a||e(),!f||!h)return;const g=qr(u),m=qr(o.clientWidth-(d+f)),b=qr(o.clientHeight-(u+h)),v=qr(d),_={rootMargin:-g+"px "+-m+"px "+-b+"px "+-v+"px",threshold:kr(0,Ur(1,l))||1};let x=!0;function w(S){const T=S[0].intersectionRatio;if(T!==l){if(!x)return s();T?s(!1,T):n=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!zf(c,t.getBoundingClientRect())&&s(),x=!1}try{r=new IntersectionObserver(w,{..._,root:o.ownerDocument})}catch{r=new IntersectionObserver(w,_)}r.observe(t)}return s(!0),i}function Bf(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=fa(t),d=o||i?[...c?tr(c):[],...tr(e)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const u=c&&a?L2(c,r):null;let f=-1,h=null;s&&(h=new ResizeObserver(v=>{let[y]=v;y&&y.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(e)})),r()}),c&&!l&&h.observe(c),h.observe(e));let g,m=l?Cr(t):null;l&&b();function b(){const v=Cr(t);m&&!zf(m,v)&&r(),m=v,g=requestAnimationFrame(b)}return r(),()=>{var v;d.forEach(y=>{o&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),u==null||u(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const F2=v2,z2=m2,B2=x2,$2=b2,$f=g2,j2=(t,e,r)=>{const n=new Map,o={platform:I2,...r},i={...o.platform,_c:n};return h2(t,e,{...o,platform:i})};var vi=typeof document<"u"?k.useLayoutEffect:k.useEffect;function xi(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!xi(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&t.$$typeof)&&!xi(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function jf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Wf(t,e){const r=jf(t);return Math.round(e*r)/r}function pa(t){const e=C.useRef(t);return vi(()=>{e.current=t}),e}function W2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[d,u]=C.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=C.useState(n);xi(f,n)||h(n);const[g,m]=C.useState(null),[b,v]=C.useState(null),y=C.useCallback(B=>{B!==S.current&&(S.current=B,m(B))},[]),_=C.useCallback(B=>{B!==T.current&&(T.current=B,v(B))},[]),x=i||g,w=s||b,S=C.useRef(null),T=C.useRef(null),N=C.useRef(d),M=l!=null,E=pa(l),I=pa(o),A=pa(c),D=C.useCallback(()=>{if(!S.current||!T.current)return;const B={placement:e,strategy:r,middleware:f};I.current&&(B.platform=I.current),j2(S.current,T.current,B).then(j=>{const $={...j,isPositioned:A.current!==!1};O.current&&!xi(N.current,$)&&(N.current=$,jg.flushSync(()=>{u($)}))})},[f,e,r,I,A]);vi(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,u(B=>({...B,isPositioned:!1})))},[c]);const O=C.useRef(!1);vi(()=>(O.current=!0,()=>{O.current=!1}),[]),vi(()=>{if(x&&(S.current=x),w&&(T.current=w),x&&w){if(E.current)return E.current(x,w,D);D()}},[x,w,D,E,M]);const P=C.useMemo(()=>({reference:S,floating:T,setReference:y,setFloating:_}),[y,_]),L=C.useMemo(()=>({reference:x,floating:w}),[x,w]),z=C.useMemo(()=>{const B={position:r,left:0,top:0};if(!L.floating)return B;const j=Wf(L.floating,d.x),$=Wf(L.floating,d.y);return a?{...B,transform:"translate("+j+"px, "+$+"px)",...jf(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:j,top:$}},[r,a,L.floating,d.x,d.y]);return C.useMemo(()=>({...d,update:D,refs:P,elements:L,floatingStyles:z}),[d,D,P,L,z])}const H2=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?$f({element:n.current,padding:o}).fn(r):{}:n?$f({element:n,padding:o}).fn(r):{}}}},R2=(t,e)=>({...F2(t),options:[t,e]}),V2=(t,e)=>({...B2(t),options:[t,e]}),Y2=(t,e)=>({...$2(t),options:[t,e]}),U2=(t,e)=>({...z2(t),options:[t,e]}),q2=(t,e)=>({...H2(t),options:[t,e]});/*!
496
496
  * tabbable 6.2.0
497
497
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
498
- */var K2=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],wi=K2.join(","),Hf=typeof Element>"u",Xr=Hf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ki=!Hf&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Ci=function t(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=o===""||o==="true",s=i||r&&e&&t(e.parentNode);return s},G2=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},X2=function(e,r,n){if(Ci(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(wi));return r&&Xr.call(e,wi)&&o.unshift(e),o=o.filter(n),o},J2=function t(e,r,n){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Ci(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=t(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var d=Xr.call(s,wi);d&&n.filter(s)&&(r||!e.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!Ci(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(u&&f){var h=t(u===!0?s.children:u.children,!0,n);n.flatten?o.push.apply(o,h):o.push({scopeParent:s,candidates:h})}else i.unshift.apply(i,s.children)}}return o},Rf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Vf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||G2(e))&&!Rf(e)?0:e.tabIndex},Z2=function(e,r){var n=Vf(e);return n<0&&r&&!Rf(e)?0:n},Q2=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Yf=function(e){return e.tagName==="INPUT"},eC=function(e){return Yf(e)&&e.type==="hidden"},tC=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},rC=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},nC=function(e){if(!e.name)return!0;var r=e.form||ki(e),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(e.name));else try{o=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=rC(o,e.form);return!i||i===e},oC=function(e){return Yf(e)&&e.type==="radio"},iC=function(e){return oC(e)&&!nC(e)},sC=function(e){var r,n=e&&ki(e),o=(r=n)===null||r===void 0?void 0:r.host,i=!1;if(n&&n!==e){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&o;){var c,d,u;n=ki(o),o=(c=n)===null||c===void 0?void 0:c.host,i=!!((d=o)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return i},Uf=function(e){var r=e.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},aC=function(e,r){var n=r.displayCheck,o=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=Xr.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(Xr.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var l=e.parentElement,c=ki(e);if(l&&!l.shadowRoot&&o(l)===!0)return Uf(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(sC(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Uf(e);return!1},lC=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return Xr.call(r,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}r=r.parentElement}return!1},cC=function(e,r){return!(r.disabled||Ci(r)||eC(r)||aC(r,e)||tC(r)||lC(r))},ma=function(e,r){return!(iC(r)||Vf(r)<0||!cC(e,r))},dC=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},uC=function t(e){var r=[],n=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=Z2(a,s),c=s?t(o.candidates):a;l===0?s?r.push.apply(r,c):r.push(a):n.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:c})}),n.sort(Q2).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},_i=function(e,r){r=r||{};var n;return r.getShadowRoot?n=J2([e],r.includeContainer,{filter:ma.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:dC}):n=X2(e,r.includeContainer,ma.bind(null,r)),uC(n)},fC=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Xr.call(e,wi)===!1?!1:ma(r,e)};function qf(t){return C.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})},t)}const hC=C.useInsertionEffect||(t=>t());function Nt(t){const e=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return hC(()=>{e.current=t}),C.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}const ba="ArrowUp",qn="ArrowDown",Jr="ArrowLeft",Zr="ArrowRight";function Si(t,e,r){return Math.floor(t/e)!==r}function Kn(t,e){return e<0||e>=t.current.length}function ya(t,e){return Ue(t,{disabledIndices:e})}function Kf(t,e){return Ue(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function Ue(t,e){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=e===void 0?{}:e;const s=t.current,a=o?c=>o.includes(c):c=>{const d=s[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=r;do l+=n?-i:i;while(l>=0&&l<=s.length-1&&a(l));return l}function gC(t,e){let{event:r,orientation:n,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(r.key===ba){if(d&&We(r),c===-1)u=l;else if(u=Ue(t,{startingIndex:u,amount:i,decrement:!0,disabledIndices:s}),o&&(c-i<a||u<0)){const f=c%i,h=l%i,g=l-(h-f);h===f?u=l:u=h>f?g:g-i}Kn(t,u)&&(u=c)}if(r.key===qn&&(d&&We(r),c===-1?u=a:(u=Ue(t,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(u=Ue(t,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),Kn(t,u)&&(u=c)),n==="both"){const f=qr(c/i);r.key===Zr&&(d&&We(r),c%i!==i-1?(u=Ue(t,{startingIndex:c,disabledIndices:s}),o&&Si(u,i,f)&&(u=Ue(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Ue(t,{startingIndex:c-c%i-1,disabledIndices:s})),Si(u,i,f)&&(u=c)),r.key===Jr&&(d&&We(r),c%i!==0?(u=Ue(t,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&Si(u,i,f)&&(u=Ue(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(u=Ue(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),Si(u,i,f)&&(u=c));const h=qr(l/i)===f;Kn(t,u)&&(o&&h?u=r.key===Jr?l:Ue(t,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function pC(t,e,r){const n=[];let o=0;return t.forEach((i,s)=>{let{width:a,height:l}=i;if(a>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let c=!1;for(r&&(o=0);!c;){const d=[];for(let u=0;u<a;u++)for(let f=0;f<l;f++)d.push(o+u+f*e);o%e+a<=e&&d.every(u=>n[u]==null)?(d.forEach(u=>{n[u]=s}),c=!0):o++}}),[...n]}function mC(t,e,r,n,o){if(t===-1)return-1;const i=r.indexOf(t);switch(o){case"tl":return i;case"tr":return i+e[t].width-1;case"bl":return i+(e[t].height-1)*n;case"br":return r.lastIndexOf(t)}}function bC(t,e){return e.flatMap((r,n)=>t.includes(r)?[n]:[])}let Gf=0;function Vt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(Gf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():Gf=requestAnimationFrame(i)}var me=typeof document<"u"?k.useLayoutEffect:k.useEffect;function yC(t,e){const r=t.compareDocumentPosition(e);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function vC(t,e){if(t.size!==e.size)return!1;for(const[r,n]of t.entries())if(n!==e.get(r))return!1;return!0}const Xf=C.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function xC(t){let{children:e,elementsRef:r,labelsRef:n}=t;const[o,i]=C.useState(()=>new Map),s=C.useCallback(l=>{i(c=>new Map(c).set(l,null))},[]),a=C.useCallback(l=>{i(c=>{const d=new Map(c);return d.delete(l),d})},[]);return me(()=>{const l=new Map(o);Array.from(l.keys()).sort(yC).forEach((d,u)=>{l.set(d,u)}),vC(o,l)||i(l)},[o]),C.createElement(Xf.Provider,{value:C.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},e)}function wC(t){let{label:e}=t===void 0?{}:t;const[r,n]=C.useState(null),o=C.useRef(null),{register:i,unregister:s,map:a,elementsRef:l,labelsRef:c}=C.useContext(Xf),d=C.useCallback(u=>{if(o.current=u,r!==null&&(l.current[r]=u,c)){var f;const h=e!==void 0;c.current[r]=h?e:(f=u==null?void 0:u.textContent)!=null?f:null}},[r,l,c,e]);return me(()=>{const u=o.current;if(u)return i(u),()=>{s(u)}},[i,s]),me(()=>{const u=o.current?a.get(o.current):null;u!=null&&n(u)},[a]),C.useMemo(()=>({ref:d,index:r??-1}),[r,d])}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gn.apply(this,arguments)}let va=!1,kC=0;const Jf=()=>"floating-ui-"+kC++;function CC(){const[t,e]=C.useState(()=>va?Jf():void 0);return me(()=>{t==null&&e(Jf())},[]),C.useEffect(()=>{va||(va=!0)},[]),t}const Ei=C.useId||CC;function _C(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(o=>o(r))},on(e,r){t.set(e,[...t.get(e)||[],r])},off(e,r){var n;t.set(e,((n=t.get(e))==null?void 0:n.filter(o=>o!==r))||[])}}}const SC=C.createContext(null),EC=C.createContext(null),Oi=()=>{var t;return((t=C.useContext(SC))==null?void 0:t.id)||null},Xn=()=>C.useContext(EC);function _r(t){return"data-floating-ui-"+t}function Pt(t){const e=k.useRef(t);return me(()=>{e.current=t}),e}const Zf=_r("safe-polygon");function xa(t,e,r){return r&&!hi(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function OC(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,events:i,elements:{domReference:s,floating:a},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:g=!0}=e,m=Xn(),b=Oi(),v=Pt(u),y=Pt(d),_=C.useRef(),x=C.useRef(),w=C.useRef(),S=C.useRef(),T=C.useRef(!0),N=C.useRef(!1),M=C.useRef(()=>{}),E=C.useCallback(()=>{var O;const P=(O=o.current.openEvent)==null?void 0:O.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[o]);C.useEffect(()=>{if(!c)return;function O(P){let{open:L}=P;L||(clearTimeout(x.current),clearTimeout(S.current),T.current=!0)}return i.on("openchange",O),()=>{i.off("openchange",O)}},[c,i]),C.useEffect(()=>{if(!c||!v.current||!r)return;function O(L){E()&&n(!1,L,"hover")}const P=qe(a).documentElement;return P.addEventListener("mouseleave",O),()=>{P.removeEventListener("mouseleave",O)}},[a,r,n,c,v,E]);const I=C.useCallback(function(O,P,L){P===void 0&&(P=!0),L===void 0&&(L="hover");const z=xa(y.current,"close",_.current);z&&!w.current?(clearTimeout(x.current),x.current=setTimeout(()=>n(!1,O,L),z)):P&&(clearTimeout(x.current),n(!1,O,L))},[y,n]),A=C.useCallback(()=>{M.current(),w.current=void 0},[]),D=C.useCallback(()=>{if(N.current){const O=qe(l.floating.current).body;O.style.pointerEvents="",O.removeAttribute(Zf),N.current=!1}},[l]);return C.useEffect(()=>{if(!c)return;function O(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function P(B){if(clearTimeout(x.current),T.current=!1,f&&!hi(_.current)||h>0&&xa(y.current,"open")===0)return;const j=xa(y.current,"open",_.current);j?x.current=setTimeout(()=>{n(!0,B,"hover")},j):n(!0,B,"hover")}function L(B){if(O())return;M.current();const j=qe(a);if(clearTimeout(S.current),v.current){r||clearTimeout(x.current),w.current=v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B,!0,"safe-polygon")}});const H=w.current;j.addEventListener("mousemove",H),M.current=()=>{j.removeEventListener("mousemove",H)};return}(_.current==="touch"?!Ee(a,B.relatedTarget):!0)&&I(B)}function z(B){O()||v.current==null||v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B)}})(B)}if(pe(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),g&&B.addEventListener("mousemove",P,{once:!0}),B.addEventListener("mouseenter",P),B.addEventListener("mouseleave",L),()=>{r&&B.removeEventListener("mouseleave",z),a==null||a.removeEventListener("mouseleave",z),g&&B.removeEventListener("mousemove",P),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",L)}}},[s,a,c,t,f,h,g,I,A,D,n,r,m,y,v,o]),me(()=>{var O;if(c&&r&&(O=v.current)!=null&&O.__options.blockPointerEvents&&E()){const L=qe(a).body;if(L.setAttribute(Zf,""),L.style.pointerEvents="none",N.current=!0,pe(s)&&a){var P;const z=s,B=m==null||(P=m.nodesRef.current.find(j=>j.id===b))==null||(P=P.context)==null?void 0:P.elements.floating;return B&&(B.style.pointerEvents=""),z.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{z.style.pointerEvents="",a.style.pointerEvents=""}}}},[c,r,b,a,s,m,v,E]),me(()=>{r||(_.current=void 0,A(),D())},[r,A,D]),C.useEffect(()=>()=>{A(),clearTimeout(x.current),clearTimeout(S.current),D()},[c,s,A,D]),C.useMemo(()=>{if(!c)return{};function O(P){_.current=P.pointerType}return{reference:{onPointerDown:O,onPointerEnter:O,onMouseMove(P){r||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{T.current||n(!0,P.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(P){I(P.nativeEvent,!1)}}}},[c,h,r,n,I])}function TC(t,e){var r;let n=[],o=(r=t.find(i=>i.id===e))==null?void 0:r.parentId;for(;o;){const i=t.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Sr(t,e){let r=t.filter(o=>{var i;return o.parentId===e&&((i=o.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=t.filter(o=>{var i;return(i=n)==null?void 0:i.some(s=>{var a;return o.parentId===s.id&&((a=o.context)==null?void 0:a.open)})}),r=r.concat(n);return r}function MC(t,e){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),Sr(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===r)}let Qr=new WeakMap,Ti=new WeakSet,Mi={},wa=0;const NC=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Qf=t=>t&&(t.host||Qf(t.parentNode)),PC=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=Qf(r);return t.contains(n)?n:null}).filter(r=>r!=null);function AC(t,e,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=PC(e,t),a=new Set,l=new Set(s),c=[];Mi[o]||(Mi[o]=new WeakMap);const d=Mi[o];s.forEach(u),f(e),a.clear();function u(h){!h||a.has(h)||(a.add(h),h.parentNode&&u(h.parentNode))}function f(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,g=>{if(a.has(g))f(g);else{const m=i?g.getAttribute(i):null,b=m!==null&&m!=="false",v=(Qr.get(g)||0)+1,y=(d.get(g)||0)+1;Qr.set(g,v),d.set(g,y),c.push(g),v===1&&b&&Ti.add(g),y===1&&g.setAttribute(o,""),!b&&i&&g.setAttribute(i,"true")}})}return wa++,()=>{c.forEach(h=>{const g=(Qr.get(h)||0)-1,m=(d.get(h)||0)-1;Qr.set(h,g),d.set(h,m),g||(!Ti.has(h)&&i&&h.removeAttribute(i),Ti.delete(h)),m||h.removeAttribute(o)}),wa--,wa||(Qr=new WeakMap,Qr=new WeakMap,Ti=new WeakSet,Mi={})}}function eh(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=qe(t[0]).body;return AC(t.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,e,r)}const Jn=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function th(t,e){const r=_i(t,Jn());e==="prev"&&r.reverse();const n=r.indexOf(Ot(qe(t)));return r.slice(n+1)[0]}function rh(){return th(document.body,"next")}function nh(){return th(document.body,"prev")}function Zn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Ee(r,n)}function DC(t){_i(t,Jn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function IC(t){t.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const ka={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let LC;function oh(t){t.key==="Tab"&&(t.target,clearTimeout(LC))}const Ni=C.forwardRef(function(e,r){const[n,o]=C.useState();me(()=>(oa()&&o("button"),document.addEventListener("keydown",oh),()=>{document.removeEventListener("keydown",oh)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[_r("focus-guard")]:"",style:ka};return C.createElement("span",Gn({},e,i))}),ih=C.createContext(null),sh=_r("portal");function FC(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=C.useState(null),i=Ei(),s=ah(),a=C.useRef(null);return me(()=>()=>{n==null||n.remove(),queueMicrotask(()=>{a.current=null})},[n]),me(()=>{if(a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=i,c.setAttribute(sh,""),l.appendChild(c),a.current=c,o(c)},[e,i]),me(()=>{if(a.current)return;let l=r||(s==null?void 0:s.portalNode);l&&!pe(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=i,d.setAttribute(sh,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[e,r,i,s]),n}function zC(t){let{children:e,id:r,root:n=null,preserveTabOrder:o=!0}=t;const i=FC({id:r,root:n}),[s,a]=C.useState(null),l=C.useRef(null),c=C.useRef(null),d=C.useRef(null),u=C.useRef(null),f=!!s&&!s.modal&&s.open&&o&&!!(n||i);return C.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function h(g){i&&Zn(g)&&(g.type==="focusin"?IC:DC)(i)}return i.addEventListener("focusin",h,!0),i.addEventListener("focusout",h,!0),()=>{i.removeEventListener("focusin",h,!0),i.removeEventListener("focusout",h,!0)}},[i,o,s==null?void 0:s.modal]),C.createElement(ih.Provider,{value:C.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&C.createElement(Ni,{"data-type":"outside",ref:l,onFocus:h=>{if(Zn(h,i)){var g;(g=d.current)==null||g.focus()}else{const m=nh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),f&&i&&C.createElement("span",{"aria-owns":i.id,style:ka}),i&&$a.createPortal(e,i),f&&i&&C.createElement(Ni,{"data-type":"outside",ref:c,onFocus:h=>{if(Zn(h,i)){var g;(g=u.current)==null||g.focus()}else{const m=rh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const ah=()=>C.useContext(ih),BC=20;let Er=[];function Ca(t){Er=Er.filter(r=>r.isConnected);let e=t;if(!(!e||wr(e)==="body")){if(!fC(e,Jn())){const r=_i(e,Jn())[0];if(!r)return;e=r}Er.push(e),Er.length>BC&&(Er=Er.slice(-20))}}function lh(){return Er.slice().reverse().find(t=>t.isConnected)}const $C=C.forwardRef(function(e,r){return C.createElement("button",Gn({},e,{type:"button",ref:r,tabIndex:-1,style:ka}))});function ch(t){const{context:e,children:r,disabled:n=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:f,nodeId:h,onOpenChange:g,events:m,dataRef:b,elements:{domReference:v,floating:y}}=e,_=typeof s=="number"&&s<0,x=Cf(v)&&_,w=NC()?i:!0,S=Pt(o),T=Pt(s),N=Pt(a),M=Xn(),E=ah(),I=C.useRef(null),A=C.useRef(null),D=C.useRef(!1),O=C.useRef(!1),P=E!=null,L=C.useCallback(function($){return $===void 0&&($=y),$?_i($,Jn()):[]},[y]),z=C.useCallback($=>{const H=L($);return S.current.map(R=>v&&R==="reference"?v:y&&R==="floating"?y:H).filter(Boolean).flat()},[v,y,S,L]);C.useEffect(()=>{if(n||!l)return;function $(R){if(R.key==="Tab"){Ee(y,Ot(qe(y)))&&L().length===0&&!x&&We(R);const Y=z(),U=rr(R);S.current[0]==="reference"&&U===v&&(We(R),R.shiftKey?Vt(Y[Y.length-1]):Vt(Y[1])),S.current[1]==="floating"&&U===y&&R.shiftKey&&(We(R),Vt(Y[0]))}}const H=qe(y);return H.addEventListener("keydown",$),()=>{H.removeEventListener("keydown",$)}},[n,v,y,l,S,x,L,z]),C.useEffect(()=>{if(n||!d)return;function $(){O.current=!0,setTimeout(()=>{O.current=!1})}function H(R){const Y=R.relatedTarget;queueMicrotask(()=>{const U=!(Ee(v,Y)||Ee(y,Y)||Ee(Y,y)||Ee(E==null?void 0:E.portalNode,Y)||Y!=null&&Y.hasAttribute(_r("focus-guard"))||M&&(Sr(M.nodesRef.current,h).find(q=>{var G,de;return Ee((G=q.context)==null?void 0:G.elements.floating,Y)||Ee((de=q.context)==null?void 0:de.elements.domReference,Y)})||TC(M.nodesRef.current,h).find(q=>{var G,de;return((G=q.context)==null?void 0:G.elements.floating)===Y||((de=q.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!O.current&&Y!==lh()&&(D.current=!0,g(!1,R))})}if(y&&je(v))return v.addEventListener("focusout",H),v.addEventListener("pointerdown",$),!l&&y.addEventListener("focusout",H),()=>{v.removeEventListener("focusout",H),v.removeEventListener("pointerdown",$),!l&&y.removeEventListener("focusout",H)}},[n,v,y,l,h,M,E,g,d]),C.useEffect(()=>{var $;if(n)return;const H=Array.from((E==null||($=E.portalNode)==null?void 0:$.querySelectorAll("["+_r("portal")+"]"))||[]);if(y){const R=[y,...H,I.current,A.current,S.current.includes("reference")||x?v:null].filter(U=>U!=null),Y=l||x?eh(R,w,!w):eh(R);return()=>{Y()}}},[n,v,y,l,S,E,x,w]),me(()=>{if(n||!y)return;const $=qe(y),H=Ot($);queueMicrotask(()=>{const R=z(y),Y=T.current,U=(typeof Y=="number"?R[Y]:Y.current)||y,q=Ee(y,H);!_&&!q&&u&&Vt(U,{preventScroll:U===y})})},[n,u,y,_,z,T]),me(()=>{if(n||!y)return;let $=!1;const H=qe(y),R=Ot(H),Y=b.current;Ca(R);function U(q){let{reason:G,event:de,nested:X}=q;G==="escape-key"&&f.domReference.current&&Ca(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(D.current=!0),G==="outside-press"&&(X?(D.current=!1,$=!0):D.current=!(wf(de)||na(de)))}return m.on("openchange",U),()=>{m.off("openchange",U);const q=Ot(H),G=Ee(y,q)||M&&Sr(M.nodesRef.current,h).some(oe=>{var Le;return Ee((Le=oe.context)==null?void 0:Le.elements.floating,q)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Ca(f.domReference.current);const X=lh();N.current&&!D.current&&je(X)&&(!(X!==q&&q!==H.body)||G)&&Vt(X,{cancelPrevious:!1,preventScroll:$})}},[n,y,N,b,f,m,M,h]),me(()=>{if(!(n||!E))return E.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:g,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,g,f,d]),me(()=>{if(n||!y||typeof MutationObserver!="function"||_)return;const $=()=>{const R=y.getAttribute("tabindex");S.current.includes("floating")||Ot(qe(y))!==f.domReference.current&&L().length===0?R!=="0"&&y.setAttribute("tabindex","0"):R!=="-1"&&y.setAttribute("tabindex","-1")};$();const H=new MutationObserver($);return H.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{H.disconnect()}},[n,y,f,S,L,_]);function B($){return n||!c||!l?null:C.createElement($C,{ref:$==="start"?I:A,onClick:H=>g(!1,H.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(P||l);return C.createElement(C.Fragment,null,j&&C.createElement(Ni,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:$=>{if(l){const R=z();Vt(o[0]==="reference"?R[0]:R[R.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(D.current=!1,Zn($,E.portalNode)){const R=rh()||v;R==null||R.focus()}else{var H;(H=E.beforeOutsideRef.current)==null||H.focus()}}}),!x&&B("start"),r,B("end"),j&&C.createElement(Ni,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:$=>{if(l)Vt(z()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(D.current=!0),Zn($,E.portalNode)){const R=nh()||v;R==null||R.focus()}else{var H;(H=E.afterOutsideRef.current)==null||H.focus()}}}))}const _a=new Set,jC=C.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=Ei();return me(()=>{if(!n)return;_a.add(i);const s=/iP(hone|ad|od)|iOS/.test(ra()),a=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=a.left?parseFloat(a.left):window.pageXOffset,f=a.top?parseFloat(a.top):window.pageYOffset;if(a.overflow="hidden",d&&(a[c]=d+"px"),s){var h,g;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((g=window.visualViewport)==null?void 0:g.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{_a.delete(i),_a.size===0&&(Object.assign(a,{overflow:"",[c]:""}),s&&(Object.assign(a,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[i,n]),C.createElement("div",Gn({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function dh(t){return je(t.target)&&t.target.tagName==="BUTTON"}function uh(t){return aa(t)}function fh(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=t,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=C.useRef(),f=C.useRef(!1);return C.useMemo(()=>s?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(hi(u.current,!0)&&c||a!=="click"&&(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?n(!1,h.nativeEvent,"click"):(h.preventDefault(),n(!0,h.nativeEvent,"click"))))},onClick(h){if(a==="mousedown"&&u.current){u.current=void 0;return}hi(u.current,!0)&&c||(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="click")?n(!1,h.nativeEvent,"click"):n(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||dh(h))&&(h.key===" "&&!uh(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||dh(h)||uh(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const WC={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},HC={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},hh=t=>{var e,r;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(r=t==null?void 0:t.outsidePress)!=null?r:!0}};function gh(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,nodeId:o,elements:{reference:i,domReference:s,floating:a},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:m=!1,bubbles:b,capture:v}=e,y=Xn(),_=Nt(typeof u=="function"?u:()=>!1),x=typeof u=="function"?_:u,w=C.useRef(!1),S=C.useRef(!1),{escapeKey:T,outsidePress:N}=hh(b),{escapeKey:M,outsidePress:E}=hh(v),I=Nt(P=>{if(!r||!c||!d||P.key!=="Escape")return;const L=y?Sr(y.nodesRef.current,o):[];if(!T&&(P.stopPropagation(),L.length>0)){let z=!0;if(L.forEach(B=>{var j;if((j=B.context)!=null&&j.open&&!B.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}n(!1,n2(P)?P.nativeEvent:P,"escape-key")}),A=Nt(P=>{var L;const z=()=>{var B;I(P),(B=rr(P))==null||B.removeEventListener("keydown",z)};(L=rr(P))==null||L.addEventListener("keydown",z)}),D=Nt(P=>{const L=w.current;w.current=!1;const z=S.current;if(S.current=!1,f==="click"&&z||L||typeof x=="function"&&!x(P))return;const B=rr(P),j="["+_r("inert")+"]",$=qe(a).querySelectorAll(j);let H=pe(B)?B:null;for(;H&&!er(H);){const U=Ht(H);if(er(U)||!pe(U))break;H=U}if($.length&&pe(B)&&!o2(B)&&!Ee(B,a)&&Array.from($).every(U=>!Ee(H,U)))return;if(je(B)&&a){const U=B.clientWidth>0&&B.scrollWidth>B.clientWidth,q=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=q&&P.offsetX>B.clientWidth;if(q&&ft(B).direction==="rtl"&&(G=P.offsetX<=B.offsetWidth-B.clientWidth),G||U&&P.offsetY>B.clientHeight)return}const R=y&&Sr(y.nodesRef.current,o).some(U=>{var q;return sa(P,(q=U.context)==null?void 0:q.elements.floating)});if(sa(P,a)||sa(P,s)||R)return;const Y=y?Sr(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(q=>{var G;if((G=q.context)!=null&&G.open&&!q.context.dataRef.current.__outsidePressBubbles){U=!1;return}}),!U)return}n(!1,P,"outside-press")}),O=Nt(P=>{var L;const z=()=>{var B;D(P),(B=rr(P))==null||B.removeEventListener(f,z)};(L=rr(P))==null||L.addEventListener(f,z)});return C.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=N;function P(B){n(!1,B,"ancestor-scroll")}const L=qe(a);d&&L.addEventListener("keydown",M?A:I,M),x&&L.addEventListener(f,E?O:D,E);let z=[];return m&&(pe(s)&&(z=tr(s)),pe(a)&&(z=z.concat(tr(a))),!pe(i)&&i&&i.contextElement&&(z=z.concat(tr(i.contextElement)))),z=z.filter(B=>{var j;return B!==((j=L.defaultView)==null?void 0:j.visualViewport)}),z.forEach(B=>{B.addEventListener("scroll",P,{passive:!0})}),()=>{d&&L.removeEventListener("keydown",M?A:I,M),x&&L.removeEventListener(f,E?O:D,E),z.forEach(B=>{B.removeEventListener("scroll",P)})}},[l,a,s,i,d,x,f,r,n,m,c,T,N,I,M,A,D,E,O]),C.useEffect(()=>{w.current=!1},[x,f]),C.useMemo(()=>c?{reference:{onKeyDown:I,[WC[g]]:P=>{h&&n(!1,P.nativeEvent,"reference-press")}},floating:{onKeyDown:I,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[HC[f]]:()=>{w.current=!0}}}:{},[c,h,f,g,n,I])}let Sa;process.env.NODE_ENV!=="production"&&(Sa=new Set);function ph(t){var e;t===void 0&&(t={});const{open:r=!1,onOpenChange:n,nodeId:o}=t;if(process.env.NODE_ENV!=="production"){var i;const N="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((i=t.elements)!=null&&i.reference&&!pe(t.elements.reference)){var s;if(!((s=Sa)!=null&&s.has(N))){var a;(a=Sa)==null||a.add(N),console.error(N)}}}const[l,c]=C.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=W2(t),f=Xn(),h=Oi()!=null,g=Nt((N,M,E)=>{N&&(b.current.openEvent=M),v.emit("openchange",{open:N,event:M,reason:E,nested:h}),n==null||n(N,M,E)}),m=C.useRef(null),b=C.useRef({}),v=C.useState(()=>_C())[0],y=Ei(),_=C.useCallback(N=>{const M=pe(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),contextElement:N}:N;u.refs.setReference(M)},[u.refs]),x=C.useCallback(N=>{(pe(N)||N===null)&&(m.current=N,c(N)),(pe(u.refs.reference.current)||u.refs.reference.current===null||N!==null&&!pe(N))&&u.refs.setReference(N)},[u.refs]),w=C.useMemo(()=>({...u.refs,setReference:x,setPositionReference:_,domReference:m}),[u.refs,x,_]),S=C.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),T=C.useMemo(()=>({...u,refs:w,elements:S,dataRef:b,nodeId:o,floatingId:y,events:v,open:r,onOpenChange:g}),[u,o,y,v,r,g,w,S]);return me(()=>{const N=f==null?void 0:f.nodesRef.current.find(M=>M.id===o);N&&(N.context=T)}),C.useMemo(()=>({...u,context:T,refs:w,elements:S}),[u,w,S,T])}function RC(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,events:o,refs:i,elements:{domReference:s}}=t,{enabled:a=!0,visibleOnly:l=!0}=e,c=C.useRef(!1),d=C.useRef(),u=C.useRef(!0);return C.useEffect(()=>{if(!a)return;const f=et(s);function h(){!r&&je(s)&&s===Ot(qe(s))&&(c.current=!0)}function g(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",g,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",g,!0)}},[s,r,a]),C.useEffect(()=>{if(!a)return;function f(h){let{reason:g}=h;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,a]),C.useEffect(()=>()=>{clearTimeout(d.current)},[]),C.useMemo(()=>a?{reference:{onPointerDown(f){na(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=rr(f.nativeEvent);if(l&&pe(h))try{if(oa()&&kf())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!aa(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,g=pe(h)&&h.hasAttribute(_r("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const m=Ot(s?s.ownerDocument:document);!h&&m===s||Ee(i.floating.current,m)||Ee(s,m)||g||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const mh="active",bh="selected";function Ea(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[mh]:s,[bh]:a,...l}=t;i=l}return{...r==="floating"&&{tabIndex:-1},...i,...e.map(s=>{const a=s?s[r]:null;return typeof a=="function"?t?a(t):null:a}).concat(t).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(o&&[mh,bh].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var u;(u=n.get(c))==null||u.push(d),s[c]=function(){for(var f,h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];return(f=n.get(c))==null?void 0:f.map(b=>b(...g)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function yh(t){t===void 0&&(t=[]);const e=t,r=C.useCallback(i=>Ea(i,t,"reference"),e),n=C.useCallback(i=>Ea(i,t,"floating"),e),o=C.useCallback(i=>Ea(i,t,"item"),t.map(i=>i==null?void 0:i.item));return C.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])}let vh=!1;function Pi(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function xh(t,e){return Pi(e,t===ba||t===qn,t===Jr||t===Zr)}function Oa(t,e,r){return Pi(e,t===qn,r?t===Jr:t===Zr)||t==="Enter"||t===" "||t===""}function VC(t,e,r){return Pi(e,r?t===Jr:t===Zr,t===qn)}function wh(t,e,r){return Pi(e,r?t===Zr:t===Jr,t===ba)}function YC(t,e){const{open:r,onOpenChange:n,refs:o,elements:{domReference:i,floating:s}}=t,{listRef:a,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:f=!1,loop:h=!1,nested:g=!1,rtl:m=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:_=!0,disabledIndices:x=void 0,orientation:w="vertical",cols:S=1,scrollItemIntoView:T=!0,virtualItemRef:N,itemSizes:M,dense:E=!1}=e;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const I=Oi(),A=Xn(),D=Nt(c),O=C.useRef(v),P=C.useRef(u??-1),L=C.useRef(null),z=C.useRef(!0),B=C.useRef(D),j=C.useRef(!!s),$=C.useRef(!1),H=C.useRef(!1),R=Pt(x),Y=Pt(r),U=Pt(T),[q,G]=C.useState(),[de,X]=C.useState(),oe=Nt(function(Z,Oe,le){le===void 0&&(le=!1);const re=Z.current[Oe.current];re&&(b?(G(re.id),A==null||A.events.emit("virtualfocus",re),N&&(N.current=re)):Vt(re,{preventScroll:!0,sync:kf()&&oa()?vh||$.current:!1}),requestAnimationFrame(()=>{const ge=U.current;ge&&re&&(le||!z.current)&&(re.scrollIntoView==null||re.scrollIntoView(typeof ge=="boolean"?{block:"nearest",inline:"nearest"}:ge))}))});me(()=>{document.createElement("div").focus({get preventScroll(){return vh=!0,!1}})},[]),me(()=>{d&&(r&&s?O.current&&u!=null&&(H.current=!0,P.current=u,D(u)):j.current&&(P.current=-1,B.current(null)))},[d,r,s,u,D]),me(()=>{if(d&&r&&s)if(l==null){if($.current=!1,u!=null)return;if(j.current&&(P.current=-1,oe(a,P)),!j.current&&O.current&&(L.current!=null||O.current===!0&&L.current==null)){let Z=0;const Oe=()=>{a.current[0]==null?(Z<2&&(Z?requestAnimationFrame:queueMicrotask)(Oe),Z++):(P.current=L.current==null||Oa(L.current,w,m)||g?ya(a,R.current):Kf(a,R.current),L.current=null,D(P.current))};Oe()}}else Kn(a,l)||(P.current=l,oe(a,P,H.current),H.current=!1)},[d,r,s,l,u,g,a,w,m,D,oe,R]),me(()=>{var Z;if(!d||s||!A||b||!j.current)return;const Oe=A.nodesRef.current,le=(Z=Oe.find(Q=>Q.id===I))==null||(Z=Z.context)==null?void 0:Z.elements.floating,re=Ot(qe(s)),ge=Oe.some(Q=>Q.context&&Ee(Q.context.elements.floating,re));le&&!ge&&z.current&&le.focus({preventScroll:!0})},[d,s,A,I,b]),me(()=>{if(!d||!A||!b||I)return;function Z(Oe){X(Oe.id),N&&(N.current=Oe)}return A.events.on("virtualfocus",Z),()=>{A.events.off("virtualfocus",Z)}},[d,A,b,I,N]),me(()=>{B.current=D,j.current=!!s}),me(()=>{r||(L.current=null)},[r]);const Le=l!=null,He=C.useMemo(()=>{function Z(le){if(!r)return;const re=a.current.indexOf(le);re!==-1&&D(re)}return{onFocus(le){let{currentTarget:re}=le;Z(re)},onClick:le=>{let{currentTarget:re}=le;return re.focus({preventScroll:!0})},...y&&{onMouseMove(le){let{currentTarget:re}=le;Z(re)},onPointerLeave(le){let{pointerType:re}=le;!z.current||re==="touch"||(P.current=-1,oe(a,P),D(null),b||Vt(o.floating.current,{preventScroll:!0}))}}}},[r,o,oe,y,a,D,b]);return C.useMemo(()=>{if(!d)return{};const Z=R.current;function Oe(V){if(z.current=!1,$.current=!0,!Y.current&&V.currentTarget===o.floating.current)return;if(g&&wh(V.key,w,m)){We(V),n(!1,V.nativeEvent,"list-navigation"),je(i)&&!b&&i.focus();return}const Te=P.current,ie=ya(a,Z),Ce=Kf(a,Z);if(V.key==="Home"&&(We(V),P.current=ie,D(P.current)),V.key==="End"&&(We(V),P.current=Ce,D(P.current)),S>1){const Fe=M||Array.from({length:a.current.length},()=>({width:1,height:1})),Ae=pC(Fe,S,E),ht=Ae.findIndex(it=>it!=null&&!(Z!=null&&Z.includes(it))),vt=Ae.reduce((it,or,st)=>or!=null&&!(Z!=null&&Z.includes(or))?st:it,-1);if(P.current=Ae[gC({current:Ae.map(it=>it!=null?a.current[it]:null)},{event:V,orientation:w,loop:h,cols:S,disabledIndices:bC([...Z||[],void 0],Ae),minIndex:ht,maxIndex:vt,prevIndex:mC(P.current,Fe,Ae,S,V.key===qn?"bl":V.key===Zr?"tr":"tl"),stopEvent:!0})],D(P.current),w==="both")return}if(xh(V.key,w)){if(We(V),r&&!b&&Ot(V.currentTarget.ownerDocument)===V.currentTarget){P.current=Oa(V.key,w,m)?ie:Ce,D(P.current);return}Oa(V.key,w,m)?h?P.current=Te>=Ce?f&&Te!==a.current.length?-1:ie:Ue(a,{startingIndex:Te,disabledIndices:Z}):P.current=Math.min(Ce,Ue(a,{startingIndex:Te,disabledIndices:Z})):h?P.current=Te<=ie?f&&Te!==-1?a.current.length:Ce:Ue(a,{startingIndex:Te,decrement:!0,disabledIndices:Z}):P.current=Math.max(ie,Ue(a,{startingIndex:Te,decrement:!0,disabledIndices:Z})),Kn(a,P.current)?D(null):D(P.current)}}function le(V){v==="auto"&&wf(V.nativeEvent)&&(O.current=!0)}function re(V){O.current=v,v==="auto"&&na(V.nativeEvent)&&(O.current=!0)}const ge=b&&r&&Le&&{"aria-activedescendant":de||q},Q=a.current.find(V=>(V==null?void 0:V.id)===q);return{reference:{...ge,onKeyDown(V){z.current=!1;const Te=V.key.indexOf("Arrow")===0,ie=VC(V.key,w,m),Ce=wh(V.key,w,m),Fe=xh(V.key,w),Ae=(g?ie:Fe)||V.key==="Enter"||V.key.trim()==="";if(b&&r){const or=A==null?void 0:A.nodesRef.current.find(Ii=>Ii.parentId==null),st=A&&or?MC(A.nodesRef.current,or.id):null;if(Te&&st&&N){const Ii=new KeyboardEvent("keydown",{key:V.key,bubbles:!0});if(ie||Ce){var ht,vt;const x5=((ht=st.context)==null?void 0:ht.elements.domReference)===V.currentTarget,$g=Ce&&!x5?(vt=st.context)==null?void 0:vt.elements.domReference:ie?Q:null;$g&&(We(V),$g.dispatchEvent(Ii),X(void 0))}if(Fe&&st.context&&st.context.open&&st.parentId&&V.currentTarget!==st.context.elements.domReference){var it;We(V),(it=st.context.elements.domReference)==null||it.dispatchEvent(Ii);return}}return Oe(V)}if(!(!r&&!_&&Te)){if(Ae&&(L.current=g&&Fe?null:V.key),g){ie&&(We(V),r?(P.current=ya(a,Z),D(P.current)):n(!0,V.nativeEvent,"list-navigation"));return}Fe&&(u!=null&&(P.current=u),We(V),!r&&_?n(!0,V.nativeEvent,"list-navigation"):Oe(V),r&&D(P.current))}},onFocus(){r&&D(null)},onPointerDown:re,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Cf(i)&&ge,onKeyDown:Oe,onPointerMove(){z.current=!0}},item:He}},[i,o,q,de,R,Y,a,d,w,m,b,r,Le,g,u,_,f,S,h,v,D,n,He,A,N,M,E])}const UC=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function kh(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:o}=t,{enabled:i=!0,role:s="dialog"}=e,a=(r=UC.get(s))!=null?r:s,l=Ei(),d=Oi()!=null;return C.useMemo(()=>{if(!i)return{};const u={id:o,...a&&{role:a}};return a==="tooltip"||s==="label"?{reference:{["aria-"+(s==="label"?"labelledby":"describedby")]:n?o:void 0},floating:u}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":n?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&d&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...a==="menu"&&{"aria-labelledby":l}},item(f){let{active:h,selected:g}=f;const m={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...m,"aria-selected":h&&g};case"combobox":return{...m,...h&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,d])}function qC(t,e){var r;const{open:n,dataRef:o}=t,{listRef:i,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:f=[],selectedIndex:h=null}=e,g=C.useRef(),m=C.useRef(""),b=C.useRef((r=h??s)!=null?r:-1),v=C.useRef(null),y=Nt(a),_=Nt(l),x=Pt(d),w=Pt(f);return me(()=>{n&&(clearTimeout(g.current),v.current=null,m.current="")},[n]),me(()=>{if(n&&m.current===""){var S;b.current=(S=h??s)!=null?S:-1}},[n,h,s]),C.useMemo(()=>{if(!c)return{};function S(M){M?o.current.typing||(o.current.typing=M,_(M)):o.current.typing&&(o.current.typing=M,_(M))}function T(M,E,I){const A=x.current?x.current(E,I):E.find(D=>(D==null?void 0:D.toLocaleLowerCase().indexOf(I.toLocaleLowerCase()))===0);return A?M.indexOf(A):-1}function N(M){const E=i.current;if(m.current.length>0&&m.current[0]!==" "&&(T(E,E,m.current)===-1?S(!1):M.key===" "&&We(M)),E==null||w.current.includes(M.key)||M.key.length!==1||M.ctrlKey||M.metaKey||M.altKey)return;n&&M.key!==" "&&(We(M),S(!0)),E.every(O=>{var P,L;return O?((P=O[0])==null?void 0:P.toLocaleLowerCase())!==((L=O[1])==null?void 0:L.toLocaleLowerCase()):!0})&&m.current===M.key&&(m.current="",b.current=v.current),m.current+=M.key,clearTimeout(g.current),g.current=setTimeout(()=>{m.current="",b.current=v.current,S(!1)},u);const A=b.current,D=T(E,[...E.slice((A||0)+1),...E.slice(0,(A||0)+1)],m.current);D!==-1?(y(D),v.current=D):M.key!==" "&&(m.current="",S(!1))}return{reference:{onKeyDown:N},floating:{onKeyDown:N,onKeyUp(M){M.key===" "&&S(!1)}}}},[c,n,o,i,u,w,x,y,_])}function Ch(t,e){const[r,n]=t;let o=!1;const i=e.length;for(let s=0,a=i-1;s<i;a=s++){const[l,c]=e[s]||[0,0],[d,u]=e[a]||[0,0];c>=n!=u>=n&&r<=(d-l)*(n-c)/(u-c)+l&&(o=!o)}return o}function KC(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function GC(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=t;let o,i=!1,s=null,a=null,l=performance.now();function c(u,f){const h=performance.now(),g=h-l;if(s===null||a===null||g===0)return s=u,a=f,l=h,null;const m=u-s,b=f-a,y=Math.sqrt(m*m+b*b)/g;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:g,elements:m,onClose:b,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),b()}if(clearTimeout(o),!m.domReference||!m.floating||g==null||f==null||h==null)return;const{clientX:S,clientY:T}=x,N=[S,T],M=rr(x),E=x.type==="mouseleave",I=Ee(m.floating,M),A=Ee(m.domReference,M),D=m.domReference.getBoundingClientRect(),O=m.floating.getBoundingClientRect(),P=g.split("-")[0],L=f>O.right-O.width/2,z=h>O.bottom-O.height/2,B=KC(N,D),j=O.width>D.width,$=O.height>D.height,H=(j?D:O).left,R=(j?D:O).right,Y=($?D:O).top,U=($?D:O).bottom;if(I&&(i=!0,!E))return;if(A&&(i=!1),A&&!E){i=!0;return}if(E&&pe(x.relatedTarget)&&Ee(m.floating,x.relatedTarget)||y&&Sr(y.nodesRef.current,v).some(de=>{let{context:X}=de;return X==null?void 0:X.open}))return;if(P==="top"&&h>=D.bottom-1||P==="bottom"&&h<=D.top+1||P==="left"&&f>=D.right-1||P==="right"&&f<=D.left+1)return w();let q=[];switch(P){case"top":q=[[H,D.top+1],[H,O.bottom-1],[R,O.bottom-1],[R,D.top+1]];break;case"bottom":q=[[H,O.top+1],[H,D.bottom-1],[R,D.bottom-1],[R,O.top+1]];break;case"left":q=[[O.right-1,U],[O.right-1,Y],[D.left+1,Y],[D.left+1,U]];break;case"right":q=[[D.right-1,U],[D.right-1,Y],[O.left+1,Y],[O.left+1,U]];break}function G(de){let[X,oe]=de;switch(P){case"top":{const Le=[j?X+e/2:L?X+e*4:X-e*4,oe+e+1],He=[j?X-e/2:L?X+e*4:X-e*4,oe+e+1],Z=[[O.left,L||j?O.bottom-e:O.top],[O.right,L?j?O.bottom-e:O.top:O.bottom-e]];return[Le,He,...Z]}case"bottom":{const Le=[j?X+e/2:L?X+e*4:X-e*4,oe-e],He=[j?X-e/2:L?X+e*4:X-e*4,oe-e],Z=[[O.left,L||j?O.top+e:O.bottom],[O.right,L?j?O.top+e:O.bottom:O.top+e]];return[Le,He,...Z]}case"left":{const Le=[X+e+1,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X+e+1,$?oe-e/2:z?oe+e*4:oe-e*4];return[...[[z||$?O.right-e:O.left,O.top],[z?$?O.right-e:O.left:O.right-e,O.bottom]],Le,He]}case"right":{const Le=[X-e,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X-e,$?oe-e/2:z?oe+e*4:oe-e*4],Z=[[z||$?O.left+e:O.right,O.top],[z?$?O.left+e:O.right:O.left+e,O.bottom]];return[Le,He,...Z]}}}if(!Ch([S,T],q)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Ch([S,T],G([f,h]))?!i&&n&&(o=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:r},d}const XC=({arrowRef:t,placement:e})=>{const r=[];return r.push(R2(8)),r.push(e==="auto"?U2():Y2()),r.push(V2({padding:8})),t!=null&&t.current&&r.push(q2({element:t.current})),r},JC=({placement:t})=>t==="auto"?void 0:t,ZC=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],_h=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>ph({placement:JC({placement:r}),open:t,onOpenChange:n,whileElementsMounted:Bf,middleware:XC({placement:r,arrowRef:e})}),Sh=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>yh([fh(t,{enabled:e==="click"}),OC(t,{enabled:e==="hover",handleClose:GC()}),gh(t),kh(t,{role:r}),...n]),Eh=k.createContext(void 0);function Ta(){const t=k.useContext(Eh);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Ma=({className:t,theme:e={},...r})=>{const{theme:n}=Ta(),o=e.divider??n.floating.divider;return p.jsx("div",{className:F(o,t),...r})},Oh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Ta(),i=r.header??o.floating.header;return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(i,e),...n,children:t}),p.jsx(Ma,{})]})},Th=k.forwardRef(({children:t,className:e,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=wC({label:typeof t=="string"?t:void 0}),c=qf([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:g}=Ta(),m=u===l,b=W(d.floating.item,o),v=i;return p.jsx("li",{role:"menuitem",className:b.container,children:p.jsxs(Gs,{ref:c,className:F(b.base,e),...v,...h({onClick:()=>{n==null||n(),f&&g(null)}}),tabIndex:m?0:-1,children:[r&&p.jsx(r,{className:b.icon}),t]})})});Th.displayName="DropdownItem";const QC={top:u1,right:Bu,bottom:zu,left:d1},e5=({refs:t,children:e,inline:r,theme:n,disabled:o,setButtonWidth:i,getReferenceProps:s,renderTrigger:a,...l})=>{const c=t.reference,d=s();if(k.useEffect(()=>{c.current&&(i==null||i(c.current.clientWidth))},[c,i]),a){const u=a(n);return k.cloneElement(u,{ref:t.setReference,disabled:o,...d,...u.props})}return r?p.jsx("button",{type:"button",ref:t.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:e}):p.jsx(lf,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},Mh=({children:t,className:e,dismissOnClick:r=!0,theme:n={},renderTrigger:o,...i})=>{const[s,a]=k.useState(!1),[l,c]=k.useState(null),[d,u]=k.useState(null),[f,h]=k.useState(void 0),g=k.useRef([]),m=k.useRef([]),b=W(K().dropdown,n),v=i,y=i["data-testid"]||"flowbite-dropdown-target",{placement:_=i.inline?"bottom-start":"bottom",trigger:x="click",label:w,inline:S,arrowIcon:T=!0,...N}=v,M=k.useCallback($=>{u($),a(!1)},[]),E=k.useCallback($=>{s?c($):M($)},[s,M]),{context:I,floatingStyles:A,refs:D}=_h({open:s,setOpen:a,placement:_}),O=YC(I,{listRef:g,activeIndex:l,selectedIndex:d,onNavigate:c}),P=qC(I,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:z,getItemProps:B}=Sh({context:I,role:"menu",trigger:x,interactions:[O,P]}),j=k.useMemo(()=>{const[$]=_.split("-");return QC[$]??zu},[_]);return p.jsxs(Eh.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:M},children:[p.jsxs(e5,{...N,refs:D,inline:S,theme:b,"data-testid":y,className:F(b.floating.target,N.className),setButtonWidth:h,getReferenceProps:L,renderTrigger:o,children:[w,T&&p.jsx(j,{className:b.arrowIcon})]}),s&&p.jsx(ch,{context:I,modal:!1,children:p.jsx("div",{ref:D.setFloating,style:{...A,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":s,...z({className:F(b.floating.base,b.floating.animation,"duration-100",!s&&b.floating.hidden,b.floating.style.auto,e)}),children:p.jsx(xC,{elementsRef:g,labelsRef:m,children:p.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};Mh.displayName="Dropdown",Oh.displayName="Dropdown.Header",Ma.displayName="Dropdown.Divider",Object.assign(Mh,{Item:Th,Header:Oh,Divider:Ma});const t5=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=W(K().fileInput,o);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(a.root.base,t),children:p.jsx("div",{className:a.field.base,children:p.jsx("input",{className:F(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&p.jsx(Rn,{color:e,children:r})]})});t5.displayName="FileInput";const r5=k.forwardRef(({label:t,helperText:e,color:r="default",sizing:n="md",variant:o,disabled:i=!1,theme:s={},className:a,...l},c)=>{const d=k.useId(),u=W(K().floatingLabel,s);return p.jsxs("div",{children:[p.jsxs("div",{className:F("relative",o==="standard"?"z-0":""),children:[p.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:F(u.input[r][o][n],a),placeholder:" ","data-testid":"floating-label",disabled:i,...l,ref:c}),p.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:F(u.label[r][o][n],a),children:t})]}),p.jsx("p",{id:"outlined_helper_text"+d,className:F(u.helperText[r],a),children:e})]})});r5.displayName="FloatingLabel";const Nh=({alt:t,className:e,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=W(K().footer.brand,s);return p.jsx("div",{children:n?p.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:F(l.base,e),...a,children:[p.jsx("img",{alt:t,src:i,className:l.img}),p.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):p.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:i,className:F(l.img,e),...a})})},Ph=({by:t,className:e,href:r,theme:n={},year:o,...i})=>{const s=W(K().footer.copyright,n);return p.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:F(s.base,e),...i,children:["© ",o,r?p.jsx("a",{href:r,className:s.href,children:t}):p.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Ah=({className:t,theme:e={},...r})=>{const n=W(K().footer.divider,e);return p.jsx("hr",{"data-testid":"footer-divider",className:F(n.base,t),...r})},Dh=({ariaLabel:t,className:e,href:r,icon:n,theme:o={},...i})=>{const s=W(K().footer.icon,o);return p.jsx("div",{children:r?p.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:F(s.base,e),...i,children:p.jsx(n,{className:s.size})}):p.jsx(n,{"data-testid":"flowbite-footer-icon",className:s.size,...i})})},Ih=({as:t="a",children:e,className:r,href:n,theme:o={},...i})=>{const s=W(K().footer.groupLink.link,o);return p.jsx("li",{className:F(s.base,r),children:p.jsx(t,{href:n,className:s.href,...i,children:e})})},Lh=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=W(K().footer.groupLink,n);return p.jsx("ul",{"data-testid":"footer-groupLink",className:F(i.base,r&&i.col,e),...o,children:t})},Fh=({as:t="h2",className:e,theme:r={},title:n,...o})=>{const i=W(K().footer.title,r);return p.jsx(t,{"data-testid":"flowbite-footer-title",className:F(i.base,e),...o,children:n})},zh=({bgDark:t=!1,children:e,className:r,container:n=!1,theme:o={},...i})=>{const s=W(K().footer,o);return p.jsx("footer",{"data-testid":"flowbite-footer",className:F(s.root.base,t&&s.root.bgDark,n&&s.root.container,r),...i,children:e})};zh.displayName="Footer",Ph.displayName="Footer.Copyright",Ih.displayName="Footer.Link",Nh.displayName="Footer.Brand",Lh.displayName="Footer.LinkGroup",Dh.displayName="Footer.Icon",Fh.displayName="Footer.Title",Ah.displayName="Footer.Divider",Object.assign(zh,{Copyright:Ph,Link:Ih,LinkGroup:Lh,Brand:Nh,Icon:Dh,Title:Fh,Divider:Ah});const Bh=({children:t,className:e,icon:r,theme:n={},...o})=>{const i=W(K().list.item,n);return p.jsxs("li",{className:F(i.withIcon[r?"on":"off"],e),...o,children:[r&&p.jsx(r,{className:F(i.icon)}),t]})},$h=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=W(K().list,s),c=o?"ol":"ul";return p.jsx(c,{className:F(l.root.base,l.root.ordered[o?"on":"off"],r&&l.root.unstyled,n&&l.root.nested,i&&l.root.horizontal,e),...a,children:t})};$h.displayName="List",Bh.displayName="List.Item",Object.assign($h,{Item:Bh});const jh=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=W(K().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return p.jsx("li",{className:F(c.base,r),children:p.jsxs(u,{href:n,onClick:i,type:d?void 0:"button",disabled:a,className:F(c.link.active[t?"on":"off"],c.link.disabled[a?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[o&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Wh=({children:t,className:e,theme:r={},...n})=>{const o=W(K().listGroup,r);return p.jsx("ul",{className:F(o.root.base,e),...n,children:t})};Wh.displayName="ListGroup",jh.displayName="ListGroup.Item",Object.assign(Wh,{Item:jh});const Hh=k.createContext(void 0);function Na(){const t=k.useContext(Hh);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Rh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Na(),s=W(o.body,r);return p.jsx("div",{className:F(s.base,i&&[s.popup],e),...n,children:t})},Vh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Na(),s=W(o.footer,r);return p.jsx("div",{className:F(s.base,!i&&s.popup,e),...n,children:t})},Yh=({as:t="h3",children:e,className:r,theme:n={},id:o,...i})=>{const s=k.useId(),a=o||s,{theme:l,popup:c,onClose:d,setHeaderId:u}=Na(),f=W(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),p.jsxs("div",{className:F(f.base,c&&f.popup,r),...i,children:[p.jsx(t,{id:a,className:f.title,children:e}),p.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:p.jsx(f1,{"aria-hidden":!0,className:f.close.icon})})]})},Uh=k.forwardRef(({children:t,className:e,dismissible:r=!1,onClose:n,popup:o,position:i="center",root:s,show:a,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,g]=k.useState(void 0),m=W(K().modal,c),{context:b}=ph({open:a,onOpenChange:()=>n&&n()}),v=qf([b.refs.setFloating,f]),y=fh(b),_=gh(b,{outsidePressEvent:"mousedown",enabled:r}),x=kh(b),{getFloatingProps:w}=yh([y,_,x]);return a?p.jsx(Hh.Provider,{value:{theme:m,popup:o,onClose:n,setHeaderId:g},children:p.jsx(zC,{root:s,children:p.jsx(jC,{lockScroll:!0,"data-testid":"modal-overlay",className:F(m.root.base,m.root.positions[i],a?m.root.show.on:m.root.show.off,e),...u,children:p.jsx(ch,{context:b,initialFocus:d,children:p.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:F(m.content.base,m.root.sizes[l]),children:p.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Uh.displayName="Modal",Yh.displayName="Modal.Header",Rh.displayName="Modal.Body",Vh.displayName="Modal.Footer",Object.assign(Uh,{Header:Yh,Body:Rh,Footer:Vh});const qh=k.createContext(void 0);function Ai(){const t=k.useContext(qh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Kh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Ai(),s=W(i.brand,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},Gh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=Ai(),s=W(o.collapse,r);return p.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:F(s.base,s.hidden[i?"off":"on"],e),...n,children:p.jsx("ul",{className:s.list,children:t})})},Xh=({active:t,as:e="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=Ai(),d=W(l.link,i),u=f=>{c(!1),s==null||s(f)};return p.jsx("li",{children:p.jsx(e,{className:F(d.base,t&&d.active.on,!t&&!r&&d.active.off,d.disabled[r?"on":"off"],o),onClick:u,...a,children:n})})},Jh=({barIcon:t=Xg,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Ai(),a=W(o.toggle,r),l=()=>{s(!i)};return p.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:F(a.base,e),...n,children:[p.jsx("span",{className:"sr-only",children:"Open main menu"}),p.jsx(t,{"aria-hidden":!0,className:a.icon})]})},Zh=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=W(K().navbar,s);return p.jsx(qh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:p.jsx("nav",{className:F(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:p.jsx("div",{className:F(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};Zh.displayName="Navbar",Kh.displayName="Navbar.Brand",Gh.displayName="Navbar.Collapse",Xh.displayName="Navbar.Link",Jh.displayName="Navbar.Toggle",Object.assign(Zh,{Brand:Kh,Collapse:Gh,Link:Xh,Toggle:Jh});const n5=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),Pa=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=W(K().pagination,o);return p.jsx("button",{type:"button",className:F(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};Pa.displayName="Pagination.Button";const Aa=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=W(K().pagination,n);return p.jsx("button",{type:"button",className:F(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};Aa.displayName="Pagination.Navigation";const Qh=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>p.jsx(Pa,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=W(K().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),g=()=>{o(Math.min(e+1,c))},m=()=>{o(Math.max(e-1,1))};return p.jsxs("nav",{className:F(u.base,t),...d,children:[r==="table"&&p.jsxs("div",{className:u.layout.table.base,children:["Showing ",p.jsx("span",{className:u.layout.table.span,children:h})," to ",p.jsx("span",{className:u.layout.table.span,children:f})," of ",p.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),p.jsxs("ul",{className:u.pages.base,children:[p.jsx("li",{children:p.jsxs(Aa,{className:F(u.pages.previous.base,a&&u.pages.showIcon),onClick:m,disabled:e===1,children:[a&&p.jsx(s1,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&n5(h,f).map(b=>p.jsx("li",{"aria-current":b===e?"page":void 0,children:s({className:F(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>o(b),children:b})},b)),p.jsx("li",{children:p.jsxs(Aa,{className:F(u.pages.next.base,a&&u.pages.showIcon),onClick:g,disabled:e===c,children:[n,a&&p.jsx(a1,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};Qh.displayName="Pagination",Object.assign(Qh,{Button:Pa});const o5=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=W(K().radio,e);return p.jsx("input",{ref:n,type:"radio",className:F(o.root.base,t),...r})});o5.displayName="Radio";const i5=k.forwardRef(({className:t,sizing:e="md",theme:r={},...n},o)=>{const i=W(K().rangeSlider,r);return p.jsx(p.Fragment,{children:p.jsx("div",{"data-testid":"flowbite-range-slider",className:F(i.root.base,t),children:p.jsx("div",{className:i.field.base,children:p.jsx("input",{ref:o,type:"range",className:F(i.field.input.base,i.field.input.sizes[e]),...n})})})})});i5.displayName="RangeSlider";const eg=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=W(K().ratingAdvanced,n);return p.jsxs("div",{className:F(i.base,e),...o,children:[p.jsx("span",{className:i.label,children:t}),p.jsx("div",{className:i.progress.base,children:p.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),p.jsx("span",{className:i.progress.label,children:`${r}%`})]})},tg=k.createContext(void 0);function s5(){const t=k.useContext(tg);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const rg=({className:t,filled:e=!0,starIcon:r=l1,theme:n={},...o})=>{const{theme:i,size:s="sm"}=s5(),a=W(i.star,n);return p.jsx(r,{"data-testid":"flowbite-rating-star",className:F(a.sizes[s],a[e?"filled":"empty"],t),...o})},ng=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=W(K().rating,n);return p.jsx(tg.Provider,{value:{theme:i,size:r},children:p.jsx("div",{className:F(i.root.base,e),...o,children:t})})};ng.displayName="Rating",rg.displayName="Rating.Star",eg.displayName="Rating.Advanced",Object.assign(ng,{Star:rg,Advanced:eg});const a5=k.forwardRef(({addon:t,children:e,className:r,color:n="gray",helperText:o,icon:i,shadow:s,sizing:a="md",theme:l={},...c},d)=>{const u=W(K().select,l);return p.jsxs("div",{className:F(u.base,r),children:[t&&p.jsx("span",{className:u.addon,children:t}),p.jsxs("div",{className:u.field.base,children:[i&&p.jsx("div",{className:u.field.icon.base,children:p.jsx(i,{className:u.field.icon.svg})}),p.jsx("select",{className:F(u.field.select.base,u.field.select.colors[n],u.field.select.sizes[a],u.field.select.withIcon[i?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[s?"on":"off"]),...c,ref:d,children:e}),o&&p.jsx(Rn,{color:n,children:o})]})]})});a5.displayName="Select";const l5=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a,trigger:l="hover",minWidth:c,...d})=>{const u=k.useRef(null),[f,h]=k.useState(!1),g=_h({open:f,placement:i,arrowRef:u,setOpen:h}),{context:m,middlewareData:{arrow:{x:b,y:v}={}},refs:y,strategy:_,update:x,x:w,y:S}=g,T=RC(m),{getFloatingProps:N,getReferenceProps:M}=Sh({context:m,role:"tooltip",trigger:l,interactions:[T]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return Bf(y.reference.current,y.floating.current,x)},[f,y.floating,y.reference,x]),p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...M(),children:r}),p.jsxs("div",{ref:y.setFloating,"data-testid":"flowbite-tooltip",...N({className:F(a.base,t&&`${a.animation} ${t}`,!f&&a.hidden,a.style[s],n),style:{position:_,top:S??" ",left:w??" ",minWidth:c},...d}),children:[p.jsx("div",{className:a.content,children:o}),e&&p.jsx("div",{className:F(a.arrow.base,s==="dark"&&a.arrow.style.dark,s==="light"&&a.arrow.style.light,s==="auto"&&a.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:v??" ",left:b??" ",right:" ",bottom:" ",[ZC({placement:g.placement})]:a.arrow.placement},children:" "})]})]})},Da=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a={},trigger:l="hover",...c})=>{const d=W(K().tooltip,a);return p.jsx(l5,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};Da.displayName="Tooltip";const og=k.createContext(void 0);function en(){const t=k.useContext(og);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Ia=k.createContext(void 0);function c5(){const t=k.useContext(Ia);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const ig=({children:t,className:e,icon:r,label:n,chevronIcon:o=Fu,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=en(),g=W(f.collapse,a);k.useEffect(()=>u(s),[s]);const m=({children:b})=>p.jsx("li",{children:h&&!d?p.jsx(Da,{content:n,placement:"right",children:b}):b});return p.jsxs(m,{children:[p.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:F(g.button,e),...l,children:[r&&p.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:F(g.icon.base,g.icon.open[d?"on":"off"])}),h?p.jsx("span",{className:"sr-only",children:n}):p.jsxs(p.Fragment,{children:[p.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:g.label.base,children:n}),i?i(g,d):p.jsx(o,{"aria-hidden":!0,className:F(g.label.icon.base,g.label.icon.open[d?"on":"off"])})]})]}),p.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:g.list,children:p.jsx(Ia.Provider,{value:{isInsideCollapse:!0},children:t})})]})};ig.displayName="Sidebar.Collapse";const sg=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=en(),a=W(i.cta,n);return p.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:F(a.base,a.color[e],r),...o,children:t})};sg.displayName="Sidebar.CTA";const d5=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>p.jsx("li",{...i,children:r?p.jsx(Da,{content:p.jsx(ag,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),ag=({id:t,theme:e,children:r})=>p.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:F(e.content.base),children:r}),lg=k.forwardRef(({active:t,as:e="a",children:r,className:n,icon:o,label:i,labelColor:s="info",theme:a={},...l},c)=>{var m,b,v,y;const d=k.useId(),{theme:u,isCollapsed:f}=en(),{isInsideCollapse:h}=c5(),g=W(u.item,a);return p.jsx(d5,{theme:g,className:g.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:p.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:F(g.base,t&&g.active,!f&&h&&((m=g.collapsed)==null?void 0:m.insideCollapse),n),...l,children:[o&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:F((b=g.icon)==null?void 0:b.base,t&&((v=g.icon)==null?void 0:v.active))}),f&&!o&&p.jsx("span",{className:(y=g.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&p.jsx(ag,{id:d,theme:g,children:r}),!f&&i&&p.jsx(tf,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:g.label,children:i})]})})});lg.displayName="Sidebar.Item";const cg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=en(),i=W(o.itemGroup,r);return p.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:F(i.base,e),...n,children:p.jsx(Ia.Provider,{value:{isInsideCollapse:!1},children:t})})};cg.displayName="Sidebar.ItemGroup";const dg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=en(),i=W(o.items,r);return p.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};dg.displayName="Sidebar.Items";const ug=({children:t,className:e,href:r,img:n,imgAlt:o="",theme:i={},...s})=>{const a=k.useId(),{theme:l,isCollapsed:c}=en(),d=W(l.logo,i);return p.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:F(d.base,e),...s,children:[p.jsx("img",{alt:o,src:n,className:d.img}),p.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:t})]})};ug.displayName="Sidebar.Logo";const fg=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=W(K().sidebar,o);return p.jsx(og.Provider,{value:{theme:a,isCollapsed:n},children:p.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:F(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:p.jsx("div",{className:a.root.inner,children:t})})})};fg.displayName="Sidebar",Object.assign(fg,{Collapse:ig,CTA:sg,Item:lg,Items:dg,ItemGroup:cg,Logo:ug});const hg=k.createContext(void 0);function u5(){const t=k.useContext(hg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const gg=k.createContext(void 0);function La(){const t=k.useContext(gg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const pg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=La(),s=W(i.body,r);return p.jsx(hg.Provider,{value:{theme:s},children:p.jsx("tbody",{className:F(s.base,e),ref:o,...n,children:t})})});pg.displayName="Table.Body";const mg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=u5(),s=W(i.cell,r);return p.jsx("td",{className:F(s.base,e),ref:o,...n,children:t})});mg.displayName="Table.Cell";const bg=k.createContext(void 0);function f5(){const t=k.useContext(bg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const yg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=La(),s=W(i.head,r);return p.jsx(bg.Provider,{value:{theme:s},children:p.jsx("thead",{className:F(s.base,e),ref:o,...n,children:p.jsx("tr",{children:t})})})});yg.displayName="Table.Head";const vg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=f5(),s=W(i.cell,r);return p.jsx("th",{className:F(s.base,e),ref:o,...n,children:t})});vg.displayName="Table.HeadCell";const xg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=La(),l=W(i.row,r);return p.jsx("tr",{ref:o,"data-testid":"table-row-element",className:F(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});xg.displayName="Table.Row";const wg=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=W(K().table,o);return p.jsx("div",{"data-testid":"table-element",className:F(a.root.wrapper),children:p.jsxs(gg.Provider,{value:{theme:a,striped:r,hoverable:n},children:[p.jsx("div",{className:F(a.root.shadow,e)}),p.jsx("table",{className:F(a.root.base,e),...i,ref:s,children:t})]})})});wg.displayName="Table";const ee=Object.assign(wg,{Head:yg,Body:pg,Row:xg,Cell:mg,HeadCell:vg}),kg=({children:t,className:e})=>p.jsx("div",{className:e,children:t});kg.displayName="Tabs.Item";const Cg=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=W(K().tabs,o),l=k.useId(),c=k.useMemo(()=>k.Children.map(k.Children.toArray(t),({props:x})=>x),[t]),d=k.useRef([]),[u,f]=k.useState(Math.max(0,c.findIndex(x=>x.active))),[h,g]=k.useState(-1),m=x=>{f(x),r&&r(x)},b=({target:x})=>{m(x),g(x)},v=({event:x,target:w})=>{x.key==="ArrowLeft"&&g(Math.max(0,h-1)),x.key==="ArrowRight"&&g(Math.min(c.length-1,h+1)),x.key==="Enter"&&(m(w),g(w))},y=a.tablist.tabitem.styles[n],_=a.tabitemcontainer.styles[n];return k.useEffect(()=>{var x;(x=d.current[h])==null||x.focus()},[h]),k.useImperativeHandle(s,()=>({setActiveTab:m})),p.jsxs("div",{className:F(a.base,e),children:[p.jsx("div",{"aria-label":"Tabs",role:"tablist",className:F(a.tablist.base,a.tablist.styles[n],e),...i,children:c.map((x,w)=>p.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:F(a.tablist.tabitem.base,y.base,w===u&&y.active.on,w!==u&&!x.disabled&&y.active.off),disabled:x.disabled,id:`${l}-tab-${w}`,onClick:()=>b({target:w}),onKeyDown:S=>v({event:S,target:w}),ref:S=>d.current[w]=S,role:"tab",tabIndex:w===h?0:-1,style:{zIndex:w===h?2:1},children:[x.icon&&p.jsx(x.icon,{className:a.tablist.tabitem.icon}),x.title]},w))}),p.jsx("div",{className:F(a.tabitemcontainer.base,_),children:c.map((x,w)=>p.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:a.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:x.children},w))})]})});Cg.displayName="Tabs",Object.assign(Cg,{Item:kg});const h5=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=W(K().textarea,o);return p.jsxs(p.Fragment,{children:[p.jsx("textarea",{ref:s,className:F(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&p.jsx(Rn,{color:e,children:r})]})});h5.displayName="Textarea";const _g=k.createContext(void 0);function Fa(){const t=k.useContext(_g);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Sg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Fa(),i=W(o.body,r);return p.jsx("div",{className:F(i.base,e),...n,children:t})},Eg=k.createContext(void 0);function za(){const t=k.useContext(Eg);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Og=k.createContext(void 0);function Tg(){const t=k.useContext(Og);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Mg=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=za(),{theme:i}=Tg(),s=W(i.content,r);return p.jsx(_g.Provider,{value:{theme:s},children:p.jsx("div",{"data-testid":"timeline-content",className:F(o&&s.root.base,e),...n,children:t})})},Ng=({children:t,className:e,theme:r={},...n})=>{const{theme:o,horizontal:i}=za(),s=W(o.item,r);return p.jsx(Og.Provider,{value:{theme:s},children:p.jsx("li",{"data-testid":"timeline-item",className:F(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},Pg=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=za(),{theme:s}=Tg(),a=W(s.point,n);return p.jsxs("div",{"data-testid":"timeline-point",className:F(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?p.jsx("span",{className:F(a.marker.icon.wrapper),children:p.jsx(r,{"aria-hidden":!0,className:F(a.marker.icon.base)})}):p.jsx("div",{className:F(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&p.jsx("div",{className:F(a.line)})]})},Ag=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Fa(),i=W(o.time,r);return p.jsx("time",{className:F(i.base,e),...n,children:t})},Dg=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Fa(),s=W(i.title,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},Ig=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=W(K().timeline,n);return p.jsx(Eg.Provider,{value:{theme:i,horizontal:r},children:p.jsx("ol",{"data-testid":"timeline-component",className:F(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};Ig.displayName="Timeline",Ng.displayName="Timeline.Item",Pg.displayName="Timeline.Point",Mg.displayName="Timeline.Content",Ag.displayName="Timeline.Time",Dg.displayName="Timeline.Title",Sg.displayName="Timeline.Body",Object.assign(Ig,{Item:Ng,Point:Pg,Content:Mg,Time:Ag,Title:Dg,Body:Sg});const Lg=k.createContext(void 0);function g5(){const t=k.useContext(Lg);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const Fg=({className:t,onClick:e,theme:r={},xIcon:n=c1,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=g5(),f=W(s.toggle,r),h=g=>{if(e&&e(g),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return p.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:F(f.base,t),...i,children:p.jsx(n,{"aria-hidden":!0,className:f.icon})})},p5={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},zg=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=W(K().toast,n);return a?null:p.jsx(Lg.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:p.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:F(c.root.base,p5[r],i&&c.root.closed,e),...o,children:t})})};zg.displayName="Toast",Fg.displayName="Toast.Toggle",Object.assign(zg,{Toggle:Fg});const m5=k.forwardRef(({checked:t,className:e,color:r="blue",sizing:n="md",disabled:o,label:i,name:s,onChange:a,theme:l={},...c},d)=>{const u=k.useId(),f=W(K().toggleSwitch,l),h=()=>a(!t),g=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return p.jsxs(p.Fragment,{children:[s&&t?p.jsx("input",{ref:d,checked:t,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,p.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:g,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:F(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[p.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:F(f.toggle.base,f.toggle.checked[t?"on":"off"],t&&f.toggle.checked.color[r],f.toggle.sizes[n])}),i!=null&&i.length?p.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:i}):null]})]})});m5.displayName="ToggleSwitch";const b5=()=>p.jsx("div",{className:"w-full",children:p.jsx("div",{className:"overflow-x-auto",children:p.jsxs(ee,{striped:!0,children:[p.jsxs(ee.Head,{children:[p.jsx(ee.HeadCell,{children:"Product name"}),p.jsx(ee.HeadCell,{children:"Color"}),p.jsx(ee.HeadCell,{children:"Category"}),p.jsx(ee.HeadCell,{children:"Price"}),p.jsx(ee.HeadCell,{children:p.jsx("span",{className:"sr-only",children:"Edit"})})]}),p.jsxs(ee.Body,{className:"divide-y",children:[p.jsxs(ee.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[p.jsx(ee.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:'Apple MacBook Pro 17"'}),p.jsx(ee.Cell,{children:"Sliver"}),p.jsx(ee.Cell,{children:"Laptop"}),p.jsx(ee.Cell,{children:"$2999"}),p.jsx(ee.Cell,{children:p.jsx("a",{href:"#",className:"font-medium text-cyan-600 hover:underline dark:text-cyan-500",children:"Edit"})})]}),p.jsxs(ee.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[p.jsx(ee.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:"Microsoft Surface Pro"}),p.jsx(ee.Cell,{children:"White"}),p.jsx(ee.Cell,{children:"Laptop PC"}),p.jsx(ee.Cell,{children:"$1999"}),p.jsx(ee.Cell,{children:p.jsx("a",{href:"#",className:"font-medium text-cyan-600 hover:underline dark:text-cyan-500",children:"Edit"})})]}),p.jsxs(ee.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[p.jsx(ee.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:"Magic Mouse 2"}),p.jsx(ee.Cell,{children:"Black"}),p.jsx(ee.Cell,{children:"Accessories"}),p.jsx(ee.Cell,{children:"$99"}),p.jsx(ee.Cell,{children:p.jsx("a",{href:"#",className:"font-medium text-cyan-600 hover:underline dark:text-cyan-500",children:"Edit"})})]}),p.jsxs(ee.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[p.jsx(ee.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:"Google Pixel Phone"}),p.jsx(ee.Cell,{children:"Gray"}),p.jsx(ee.Cell,{children:"Phone"}),p.jsx(ee.Cell,{children:"$799"}),p.jsx(ee.Cell,{children:p.jsx("a",{href:"#",className:"font-medium text-cyan-600 hover:underline dark:text-cyan-500",children:"Edit"})})]}),p.jsxs(ee.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[p.jsx(ee.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:"Apple Watch 5"}),p.jsx(ee.Cell,{children:"Red"}),p.jsx(ee.Cell,{children:"Wearables"}),p.jsx(ee.Cell,{children:"$999"}),p.jsx(ee.Cell,{children:p.jsx("a",{href:"#",className:"font-medium text-cyan-600 hover:underline dark:text-cyan-500",children:"Edit"})})]})]})]})})}),Bg=(()=>{const{protocol:t,host:e}=window.location;return`${t}//${e}/`})(),y5=()=>p.jsxs("div",{children:[p.jsx(Or,{classIm:"mx-auto mt-32",src:`${Bg}/public/assets/images/mathilde.png`,alt:"Logo Mathilde ads",width:400,height:250}),p.jsx("div",{className:"m-image-container",children:p.jsx(Or,{classIm:"m-image",src:`${Bg}/public/assets/images/background-mathilde.png`,alt:"Logo Mathilde ads",width:400,height:300})})]}),v5=({onOpenModal:t,checked:e,onChange:r,label:n,...o})=>{const i=()=>{e||t(),r(!1)};return p.jsx("div",{className:"mb-5",children:p.jsxs("label",{className:eo["checkbox-container"],children:[p.jsx("input",{type:"checkbox",...o,checked:e,onChange:i,required:!0}),p.jsx("span",{className:eo.checkmark}),n&&p.jsx("span",{children:n})]})})};ue.ButtonFormat=Wg,ue.CardIndicator=op,ue.Checkbox=Hg,ue.ImageFormat=Or,ue.InputForm=Wa,ue.Logout=gu,ue.ModalFormat=Dr,ue.MyDoughnutChart=Tb,ue.PasswordInput=rp,ue.ProgressBar=qa,ue.SelectForm=Ka,ue.SidebarMth=r1,ue.TableComponent=b5,ue.TermsCheckbox=v5,ue.layoutOutside=y5,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
498
+ */var K2=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],wi=K2.join(","),Hf=typeof Element>"u",Xr=Hf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ki=!Hf&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Ci=function t(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=o===""||o==="true",s=i||r&&e&&t(e.parentNode);return s},G2=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},X2=function(e,r,n){if(Ci(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(wi));return r&&Xr.call(e,wi)&&o.unshift(e),o=o.filter(n),o},J2=function t(e,r,n){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Ci(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=t(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var d=Xr.call(s,wi);d&&n.filter(s)&&(r||!e.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!Ci(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(u&&f){var h=t(u===!0?s.children:u.children,!0,n);n.flatten?o.push.apply(o,h):o.push({scopeParent:s,candidates:h})}else i.unshift.apply(i,s.children)}}return o},Rf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Vf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||G2(e))&&!Rf(e)?0:e.tabIndex},Z2=function(e,r){var n=Vf(e);return n<0&&r&&!Rf(e)?0:n},Q2=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Yf=function(e){return e.tagName==="INPUT"},eC=function(e){return Yf(e)&&e.type==="hidden"},tC=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},rC=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},nC=function(e){if(!e.name)return!0;var r=e.form||ki(e),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(e.name));else try{o=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=rC(o,e.form);return!i||i===e},oC=function(e){return Yf(e)&&e.type==="radio"},iC=function(e){return oC(e)&&!nC(e)},sC=function(e){var r,n=e&&ki(e),o=(r=n)===null||r===void 0?void 0:r.host,i=!1;if(n&&n!==e){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&o;){var c,d,u;n=ki(o),o=(c=n)===null||c===void 0?void 0:c.host,i=!!((d=o)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return i},Uf=function(e){var r=e.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},aC=function(e,r){var n=r.displayCheck,o=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=Xr.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(Xr.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var l=e.parentElement,c=ki(e);if(l&&!l.shadowRoot&&o(l)===!0)return Uf(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(sC(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Uf(e);return!1},lC=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return Xr.call(r,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}r=r.parentElement}return!1},cC=function(e,r){return!(r.disabled||Ci(r)||eC(r)||aC(r,e)||tC(r)||lC(r))},ma=function(e,r){return!(iC(r)||Vf(r)<0||!cC(e,r))},dC=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},uC=function t(e){var r=[],n=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=Z2(a,s),c=s?t(o.candidates):a;l===0?s?r.push.apply(r,c):r.push(a):n.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:c})}),n.sort(Q2).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},_i=function(e,r){r=r||{};var n;return r.getShadowRoot?n=J2([e],r.includeContainer,{filter:ma.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:dC}):n=X2(e,r.includeContainer,ma.bind(null,r)),uC(n)},fC=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Xr.call(e,wi)===!1?!1:ma(r,e)};function qf(t){return C.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})},t)}const hC=C.useInsertionEffect||(t=>t());function Nt(t){const e=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return hC(()=>{e.current=t}),C.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}const ba="ArrowUp",qn="ArrowDown",Jr="ArrowLeft",Zr="ArrowRight";function Si(t,e,r){return Math.floor(t/e)!==r}function Kn(t,e){return e<0||e>=t.current.length}function ya(t,e){return Ue(t,{disabledIndices:e})}function Kf(t,e){return Ue(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function Ue(t,e){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=e===void 0?{}:e;const s=t.current,a=o?c=>o.includes(c):c=>{const d=s[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=r;do l+=n?-i:i;while(l>=0&&l<=s.length-1&&a(l));return l}function gC(t,e){let{event:r,orientation:n,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(r.key===ba){if(d&&We(r),c===-1)u=l;else if(u=Ue(t,{startingIndex:u,amount:i,decrement:!0,disabledIndices:s}),o&&(c-i<a||u<0)){const f=c%i,h=l%i,g=l-(h-f);h===f?u=l:u=h>f?g:g-i}Kn(t,u)&&(u=c)}if(r.key===qn&&(d&&We(r),c===-1?u=a:(u=Ue(t,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(u=Ue(t,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),Kn(t,u)&&(u=c)),n==="both"){const f=qr(c/i);r.key===Zr&&(d&&We(r),c%i!==i-1?(u=Ue(t,{startingIndex:c,disabledIndices:s}),o&&Si(u,i,f)&&(u=Ue(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Ue(t,{startingIndex:c-c%i-1,disabledIndices:s})),Si(u,i,f)&&(u=c)),r.key===Jr&&(d&&We(r),c%i!==0?(u=Ue(t,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&Si(u,i,f)&&(u=Ue(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(u=Ue(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),Si(u,i,f)&&(u=c));const h=qr(l/i)===f;Kn(t,u)&&(o&&h?u=r.key===Jr?l:Ue(t,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function pC(t,e,r){const n=[];let o=0;return t.forEach((i,s)=>{let{width:a,height:l}=i;if(a>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let c=!1;for(r&&(o=0);!c;){const d=[];for(let u=0;u<a;u++)for(let f=0;f<l;f++)d.push(o+u+f*e);o%e+a<=e&&d.every(u=>n[u]==null)?(d.forEach(u=>{n[u]=s}),c=!0):o++}}),[...n]}function mC(t,e,r,n,o){if(t===-1)return-1;const i=r.indexOf(t);switch(o){case"tl":return i;case"tr":return i+e[t].width-1;case"bl":return i+(e[t].height-1)*n;case"br":return r.lastIndexOf(t)}}function bC(t,e){return e.flatMap((r,n)=>t.includes(r)?[n]:[])}let Gf=0;function Vt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(Gf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():Gf=requestAnimationFrame(i)}var me=typeof document<"u"?k.useLayoutEffect:k.useEffect;function yC(t,e){const r=t.compareDocumentPosition(e);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function vC(t,e){if(t.size!==e.size)return!1;for(const[r,n]of t.entries())if(n!==e.get(r))return!1;return!0}const Xf=C.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function xC(t){let{children:e,elementsRef:r,labelsRef:n}=t;const[o,i]=C.useState(()=>new Map),s=C.useCallback(l=>{i(c=>new Map(c).set(l,null))},[]),a=C.useCallback(l=>{i(c=>{const d=new Map(c);return d.delete(l),d})},[]);return me(()=>{const l=new Map(o);Array.from(l.keys()).sort(yC).forEach((d,u)=>{l.set(d,u)}),vC(o,l)||i(l)},[o]),C.createElement(Xf.Provider,{value:C.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},e)}function wC(t){let{label:e}=t===void 0?{}:t;const[r,n]=C.useState(null),o=C.useRef(null),{register:i,unregister:s,map:a,elementsRef:l,labelsRef:c}=C.useContext(Xf),d=C.useCallback(u=>{if(o.current=u,r!==null&&(l.current[r]=u,c)){var f;const h=e!==void 0;c.current[r]=h?e:(f=u==null?void 0:u.textContent)!=null?f:null}},[r,l,c,e]);return me(()=>{const u=o.current;if(u)return i(u),()=>{s(u)}},[i,s]),me(()=>{const u=o.current?a.get(o.current):null;u!=null&&n(u)},[a]),C.useMemo(()=>({ref:d,index:r??-1}),[r,d])}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gn.apply(this,arguments)}let va=!1,kC=0;const Jf=()=>"floating-ui-"+kC++;function CC(){const[t,e]=C.useState(()=>va?Jf():void 0);return me(()=>{t==null&&e(Jf())},[]),C.useEffect(()=>{va||(va=!0)},[]),t}const Ei=C.useId||CC;function _C(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(o=>o(r))},on(e,r){t.set(e,[...t.get(e)||[],r])},off(e,r){var n;t.set(e,((n=t.get(e))==null?void 0:n.filter(o=>o!==r))||[])}}}const SC=C.createContext(null),EC=C.createContext(null),Oi=()=>{var t;return((t=C.useContext(SC))==null?void 0:t.id)||null},Xn=()=>C.useContext(EC);function _r(t){return"data-floating-ui-"+t}function Pt(t){const e=k.useRef(t);return me(()=>{e.current=t}),e}const Zf=_r("safe-polygon");function xa(t,e,r){return r&&!hi(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function OC(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,events:i,elements:{domReference:s,floating:a},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:g=!0}=e,m=Xn(),b=Oi(),v=Pt(u),y=Pt(d),_=C.useRef(),x=C.useRef(),w=C.useRef(),S=C.useRef(),T=C.useRef(!0),N=C.useRef(!1),M=C.useRef(()=>{}),E=C.useCallback(()=>{var O;const P=(O=o.current.openEvent)==null?void 0:O.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[o]);C.useEffect(()=>{if(!c)return;function O(P){let{open:L}=P;L||(clearTimeout(x.current),clearTimeout(S.current),T.current=!0)}return i.on("openchange",O),()=>{i.off("openchange",O)}},[c,i]),C.useEffect(()=>{if(!c||!v.current||!r)return;function O(L){E()&&n(!1,L,"hover")}const P=qe(a).documentElement;return P.addEventListener("mouseleave",O),()=>{P.removeEventListener("mouseleave",O)}},[a,r,n,c,v,E]);const I=C.useCallback(function(O,P,L){P===void 0&&(P=!0),L===void 0&&(L="hover");const z=xa(y.current,"close",_.current);z&&!w.current?(clearTimeout(x.current),x.current=setTimeout(()=>n(!1,O,L),z)):P&&(clearTimeout(x.current),n(!1,O,L))},[y,n]),A=C.useCallback(()=>{M.current(),w.current=void 0},[]),D=C.useCallback(()=>{if(N.current){const O=qe(l.floating.current).body;O.style.pointerEvents="",O.removeAttribute(Zf),N.current=!1}},[l]);return C.useEffect(()=>{if(!c)return;function O(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function P(B){if(clearTimeout(x.current),T.current=!1,f&&!hi(_.current)||h>0&&xa(y.current,"open")===0)return;const j=xa(y.current,"open",_.current);j?x.current=setTimeout(()=>{n(!0,B,"hover")},j):n(!0,B,"hover")}function L(B){if(O())return;M.current();const j=qe(a);if(clearTimeout(S.current),v.current){r||clearTimeout(x.current),w.current=v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B,!0,"safe-polygon")}});const H=w.current;j.addEventListener("mousemove",H),M.current=()=>{j.removeEventListener("mousemove",H)};return}(_.current==="touch"?!Ee(a,B.relatedTarget):!0)&&I(B)}function z(B){O()||v.current==null||v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B)}})(B)}if(pe(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),g&&B.addEventListener("mousemove",P,{once:!0}),B.addEventListener("mouseenter",P),B.addEventListener("mouseleave",L),()=>{r&&B.removeEventListener("mouseleave",z),a==null||a.removeEventListener("mouseleave",z),g&&B.removeEventListener("mousemove",P),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",L)}}},[s,a,c,t,f,h,g,I,A,D,n,r,m,y,v,o]),me(()=>{var O;if(c&&r&&(O=v.current)!=null&&O.__options.blockPointerEvents&&E()){const L=qe(a).body;if(L.setAttribute(Zf,""),L.style.pointerEvents="none",N.current=!0,pe(s)&&a){var P;const z=s,B=m==null||(P=m.nodesRef.current.find(j=>j.id===b))==null||(P=P.context)==null?void 0:P.elements.floating;return B&&(B.style.pointerEvents=""),z.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{z.style.pointerEvents="",a.style.pointerEvents=""}}}},[c,r,b,a,s,m,v,E]),me(()=>{r||(_.current=void 0,A(),D())},[r,A,D]),C.useEffect(()=>()=>{A(),clearTimeout(x.current),clearTimeout(S.current),D()},[c,s,A,D]),C.useMemo(()=>{if(!c)return{};function O(P){_.current=P.pointerType}return{reference:{onPointerDown:O,onPointerEnter:O,onMouseMove(P){r||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{T.current||n(!0,P.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(P){I(P.nativeEvent,!1)}}}},[c,h,r,n,I])}function TC(t,e){var r;let n=[],o=(r=t.find(i=>i.id===e))==null?void 0:r.parentId;for(;o;){const i=t.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Sr(t,e){let r=t.filter(o=>{var i;return o.parentId===e&&((i=o.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=t.filter(o=>{var i;return(i=n)==null?void 0:i.some(s=>{var a;return o.parentId===s.id&&((a=o.context)==null?void 0:a.open)})}),r=r.concat(n);return r}function MC(t,e){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),Sr(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===r)}let Qr=new WeakMap,Ti=new WeakSet,Mi={},wa=0;const NC=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Qf=t=>t&&(t.host||Qf(t.parentNode)),PC=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=Qf(r);return t.contains(n)?n:null}).filter(r=>r!=null);function AC(t,e,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=PC(e,t),a=new Set,l=new Set(s),c=[];Mi[o]||(Mi[o]=new WeakMap);const d=Mi[o];s.forEach(u),f(e),a.clear();function u(h){!h||a.has(h)||(a.add(h),h.parentNode&&u(h.parentNode))}function f(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,g=>{if(a.has(g))f(g);else{const m=i?g.getAttribute(i):null,b=m!==null&&m!=="false",v=(Qr.get(g)||0)+1,y=(d.get(g)||0)+1;Qr.set(g,v),d.set(g,y),c.push(g),v===1&&b&&Ti.add(g),y===1&&g.setAttribute(o,""),!b&&i&&g.setAttribute(i,"true")}})}return wa++,()=>{c.forEach(h=>{const g=(Qr.get(h)||0)-1,m=(d.get(h)||0)-1;Qr.set(h,g),d.set(h,m),g||(!Ti.has(h)&&i&&h.removeAttribute(i),Ti.delete(h)),m||h.removeAttribute(o)}),wa--,wa||(Qr=new WeakMap,Qr=new WeakMap,Ti=new WeakSet,Mi={})}}function eh(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=qe(t[0]).body;return AC(t.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,e,r)}const Jn=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function th(t,e){const r=_i(t,Jn());e==="prev"&&r.reverse();const n=r.indexOf(Ot(qe(t)));return r.slice(n+1)[0]}function rh(){return th(document.body,"next")}function nh(){return th(document.body,"prev")}function Zn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Ee(r,n)}function DC(t){_i(t,Jn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function IC(t){t.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const ka={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let LC;function oh(t){t.key==="Tab"&&(t.target,clearTimeout(LC))}const Ni=C.forwardRef(function(e,r){const[n,o]=C.useState();me(()=>(oa()&&o("button"),document.addEventListener("keydown",oh),()=>{document.removeEventListener("keydown",oh)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[_r("focus-guard")]:"",style:ka};return C.createElement("span",Gn({},e,i))}),ih=C.createContext(null),sh=_r("portal");function FC(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=C.useState(null),i=Ei(),s=ah(),a=C.useRef(null);return me(()=>()=>{n==null||n.remove(),queueMicrotask(()=>{a.current=null})},[n]),me(()=>{if(a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=i,c.setAttribute(sh,""),l.appendChild(c),a.current=c,o(c)},[e,i]),me(()=>{if(a.current)return;let l=r||(s==null?void 0:s.portalNode);l&&!pe(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=i,d.setAttribute(sh,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[e,r,i,s]),n}function zC(t){let{children:e,id:r,root:n=null,preserveTabOrder:o=!0}=t;const i=FC({id:r,root:n}),[s,a]=C.useState(null),l=C.useRef(null),c=C.useRef(null),d=C.useRef(null),u=C.useRef(null),f=!!s&&!s.modal&&s.open&&o&&!!(n||i);return C.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function h(g){i&&Zn(g)&&(g.type==="focusin"?IC:DC)(i)}return i.addEventListener("focusin",h,!0),i.addEventListener("focusout",h,!0),()=>{i.removeEventListener("focusin",h,!0),i.removeEventListener("focusout",h,!0)}},[i,o,s==null?void 0:s.modal]),C.createElement(ih.Provider,{value:C.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&C.createElement(Ni,{"data-type":"outside",ref:l,onFocus:h=>{if(Zn(h,i)){var g;(g=d.current)==null||g.focus()}else{const m=nh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),f&&i&&C.createElement("span",{"aria-owns":i.id,style:ka}),i&&$a.createPortal(e,i),f&&i&&C.createElement(Ni,{"data-type":"outside",ref:c,onFocus:h=>{if(Zn(h,i)){var g;(g=u.current)==null||g.focus()}else{const m=rh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const ah=()=>C.useContext(ih),BC=20;let Er=[];function Ca(t){Er=Er.filter(r=>r.isConnected);let e=t;if(!(!e||wr(e)==="body")){if(!fC(e,Jn())){const r=_i(e,Jn())[0];if(!r)return;e=r}Er.push(e),Er.length>BC&&(Er=Er.slice(-20))}}function lh(){return Er.slice().reverse().find(t=>t.isConnected)}const $C=C.forwardRef(function(e,r){return C.createElement("button",Gn({},e,{type:"button",ref:r,tabIndex:-1,style:ka}))});function ch(t){const{context:e,children:r,disabled:n=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:f,nodeId:h,onOpenChange:g,events:m,dataRef:b,elements:{domReference:v,floating:y}}=e,_=typeof s=="number"&&s<0,x=Cf(v)&&_,w=NC()?i:!0,S=Pt(o),T=Pt(s),N=Pt(a),M=Xn(),E=ah(),I=C.useRef(null),A=C.useRef(null),D=C.useRef(!1),O=C.useRef(!1),P=E!=null,L=C.useCallback(function($){return $===void 0&&($=y),$?_i($,Jn()):[]},[y]),z=C.useCallback($=>{const H=L($);return S.current.map(R=>v&&R==="reference"?v:y&&R==="floating"?y:H).filter(Boolean).flat()},[v,y,S,L]);C.useEffect(()=>{if(n||!l)return;function $(R){if(R.key==="Tab"){Ee(y,Ot(qe(y)))&&L().length===0&&!x&&We(R);const Y=z(),U=rr(R);S.current[0]==="reference"&&U===v&&(We(R),R.shiftKey?Vt(Y[Y.length-1]):Vt(Y[1])),S.current[1]==="floating"&&U===y&&R.shiftKey&&(We(R),Vt(Y[0]))}}const H=qe(y);return H.addEventListener("keydown",$),()=>{H.removeEventListener("keydown",$)}},[n,v,y,l,S,x,L,z]),C.useEffect(()=>{if(n||!d)return;function $(){O.current=!0,setTimeout(()=>{O.current=!1})}function H(R){const Y=R.relatedTarget;queueMicrotask(()=>{const U=!(Ee(v,Y)||Ee(y,Y)||Ee(Y,y)||Ee(E==null?void 0:E.portalNode,Y)||Y!=null&&Y.hasAttribute(_r("focus-guard"))||M&&(Sr(M.nodesRef.current,h).find(q=>{var G,de;return Ee((G=q.context)==null?void 0:G.elements.floating,Y)||Ee((de=q.context)==null?void 0:de.elements.domReference,Y)})||TC(M.nodesRef.current,h).find(q=>{var G,de;return((G=q.context)==null?void 0:G.elements.floating)===Y||((de=q.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!O.current&&Y!==lh()&&(D.current=!0,g(!1,R))})}if(y&&je(v))return v.addEventListener("focusout",H),v.addEventListener("pointerdown",$),!l&&y.addEventListener("focusout",H),()=>{v.removeEventListener("focusout",H),v.removeEventListener("pointerdown",$),!l&&y.removeEventListener("focusout",H)}},[n,v,y,l,h,M,E,g,d]),C.useEffect(()=>{var $;if(n)return;const H=Array.from((E==null||($=E.portalNode)==null?void 0:$.querySelectorAll("["+_r("portal")+"]"))||[]);if(y){const R=[y,...H,I.current,A.current,S.current.includes("reference")||x?v:null].filter(U=>U!=null),Y=l||x?eh(R,w,!w):eh(R);return()=>{Y()}}},[n,v,y,l,S,E,x,w]),me(()=>{if(n||!y)return;const $=qe(y),H=Ot($);queueMicrotask(()=>{const R=z(y),Y=T.current,U=(typeof Y=="number"?R[Y]:Y.current)||y,q=Ee(y,H);!_&&!q&&u&&Vt(U,{preventScroll:U===y})})},[n,u,y,_,z,T]),me(()=>{if(n||!y)return;let $=!1;const H=qe(y),R=Ot(H),Y=b.current;Ca(R);function U(q){let{reason:G,event:de,nested:X}=q;G==="escape-key"&&f.domReference.current&&Ca(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(D.current=!0),G==="outside-press"&&(X?(D.current=!1,$=!0):D.current=!(wf(de)||na(de)))}return m.on("openchange",U),()=>{m.off("openchange",U);const q=Ot(H),G=Ee(y,q)||M&&Sr(M.nodesRef.current,h).some(oe=>{var Le;return Ee((Le=oe.context)==null?void 0:Le.elements.floating,q)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Ca(f.domReference.current);const X=lh();N.current&&!D.current&&je(X)&&(!(X!==q&&q!==H.body)||G)&&Vt(X,{cancelPrevious:!1,preventScroll:$})}},[n,y,N,b,f,m,M,h]),me(()=>{if(!(n||!E))return E.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:g,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,g,f,d]),me(()=>{if(n||!y||typeof MutationObserver!="function"||_)return;const $=()=>{const R=y.getAttribute("tabindex");S.current.includes("floating")||Ot(qe(y))!==f.domReference.current&&L().length===0?R!=="0"&&y.setAttribute("tabindex","0"):R!=="-1"&&y.setAttribute("tabindex","-1")};$();const H=new MutationObserver($);return H.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{H.disconnect()}},[n,y,f,S,L,_]);function B($){return n||!c||!l?null:C.createElement($C,{ref:$==="start"?I:A,onClick:H=>g(!1,H.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(P||l);return C.createElement(C.Fragment,null,j&&C.createElement(Ni,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:$=>{if(l){const R=z();Vt(o[0]==="reference"?R[0]:R[R.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(D.current=!1,Zn($,E.portalNode)){const R=rh()||v;R==null||R.focus()}else{var H;(H=E.beforeOutsideRef.current)==null||H.focus()}}}),!x&&B("start"),r,B("end"),j&&C.createElement(Ni,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:$=>{if(l)Vt(z()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(D.current=!0),Zn($,E.portalNode)){const R=nh()||v;R==null||R.focus()}else{var H;(H=E.afterOutsideRef.current)==null||H.focus()}}}))}const _a=new Set,jC=C.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=Ei();return me(()=>{if(!n)return;_a.add(i);const s=/iP(hone|ad|od)|iOS/.test(ra()),a=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=a.left?parseFloat(a.left):window.pageXOffset,f=a.top?parseFloat(a.top):window.pageYOffset;if(a.overflow="hidden",d&&(a[c]=d+"px"),s){var h,g;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((g=window.visualViewport)==null?void 0:g.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{_a.delete(i),_a.size===0&&(Object.assign(a,{overflow:"",[c]:""}),s&&(Object.assign(a,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[i,n]),C.createElement("div",Gn({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function dh(t){return je(t.target)&&t.target.tagName==="BUTTON"}function uh(t){return aa(t)}function fh(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=t,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=C.useRef(),f=C.useRef(!1);return C.useMemo(()=>s?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(hi(u.current,!0)&&c||a!=="click"&&(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?n(!1,h.nativeEvent,"click"):(h.preventDefault(),n(!0,h.nativeEvent,"click"))))},onClick(h){if(a==="mousedown"&&u.current){u.current=void 0;return}hi(u.current,!0)&&c||(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="click")?n(!1,h.nativeEvent,"click"):n(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||dh(h))&&(h.key===" "&&!uh(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||dh(h)||uh(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const WC={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},HC={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},hh=t=>{var e,r;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(r=t==null?void 0:t.outsidePress)!=null?r:!0}};function gh(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,nodeId:o,elements:{reference:i,domReference:s,floating:a},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:m=!1,bubbles:b,capture:v}=e,y=Xn(),_=Nt(typeof u=="function"?u:()=>!1),x=typeof u=="function"?_:u,w=C.useRef(!1),S=C.useRef(!1),{escapeKey:T,outsidePress:N}=hh(b),{escapeKey:M,outsidePress:E}=hh(v),I=Nt(P=>{if(!r||!c||!d||P.key!=="Escape")return;const L=y?Sr(y.nodesRef.current,o):[];if(!T&&(P.stopPropagation(),L.length>0)){let z=!0;if(L.forEach(B=>{var j;if((j=B.context)!=null&&j.open&&!B.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}n(!1,n2(P)?P.nativeEvent:P,"escape-key")}),A=Nt(P=>{var L;const z=()=>{var B;I(P),(B=rr(P))==null||B.removeEventListener("keydown",z)};(L=rr(P))==null||L.addEventListener("keydown",z)}),D=Nt(P=>{const L=w.current;w.current=!1;const z=S.current;if(S.current=!1,f==="click"&&z||L||typeof x=="function"&&!x(P))return;const B=rr(P),j="["+_r("inert")+"]",$=qe(a).querySelectorAll(j);let H=pe(B)?B:null;for(;H&&!er(H);){const U=Ht(H);if(er(U)||!pe(U))break;H=U}if($.length&&pe(B)&&!o2(B)&&!Ee(B,a)&&Array.from($).every(U=>!Ee(H,U)))return;if(je(B)&&a){const U=B.clientWidth>0&&B.scrollWidth>B.clientWidth,q=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=q&&P.offsetX>B.clientWidth;if(q&&ft(B).direction==="rtl"&&(G=P.offsetX<=B.offsetWidth-B.clientWidth),G||U&&P.offsetY>B.clientHeight)return}const R=y&&Sr(y.nodesRef.current,o).some(U=>{var q;return sa(P,(q=U.context)==null?void 0:q.elements.floating)});if(sa(P,a)||sa(P,s)||R)return;const Y=y?Sr(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(q=>{var G;if((G=q.context)!=null&&G.open&&!q.context.dataRef.current.__outsidePressBubbles){U=!1;return}}),!U)return}n(!1,P,"outside-press")}),O=Nt(P=>{var L;const z=()=>{var B;D(P),(B=rr(P))==null||B.removeEventListener(f,z)};(L=rr(P))==null||L.addEventListener(f,z)});return C.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=N;function P(B){n(!1,B,"ancestor-scroll")}const L=qe(a);d&&L.addEventListener("keydown",M?A:I,M),x&&L.addEventListener(f,E?O:D,E);let z=[];return m&&(pe(s)&&(z=tr(s)),pe(a)&&(z=z.concat(tr(a))),!pe(i)&&i&&i.contextElement&&(z=z.concat(tr(i.contextElement)))),z=z.filter(B=>{var j;return B!==((j=L.defaultView)==null?void 0:j.visualViewport)}),z.forEach(B=>{B.addEventListener("scroll",P,{passive:!0})}),()=>{d&&L.removeEventListener("keydown",M?A:I,M),x&&L.removeEventListener(f,E?O:D,E),z.forEach(B=>{B.removeEventListener("scroll",P)})}},[l,a,s,i,d,x,f,r,n,m,c,T,N,I,M,A,D,E,O]),C.useEffect(()=>{w.current=!1},[x,f]),C.useMemo(()=>c?{reference:{onKeyDown:I,[WC[g]]:P=>{h&&n(!1,P.nativeEvent,"reference-press")}},floating:{onKeyDown:I,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[HC[f]]:()=>{w.current=!0}}}:{},[c,h,f,g,n,I])}let Sa;process.env.NODE_ENV!=="production"&&(Sa=new Set);function ph(t){var e;t===void 0&&(t={});const{open:r=!1,onOpenChange:n,nodeId:o}=t;if(process.env.NODE_ENV!=="production"){var i;const N="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((i=t.elements)!=null&&i.reference&&!pe(t.elements.reference)){var s;if(!((s=Sa)!=null&&s.has(N))){var a;(a=Sa)==null||a.add(N),console.error(N)}}}const[l,c]=C.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=W2(t),f=Xn(),h=Oi()!=null,g=Nt((N,M,E)=>{N&&(b.current.openEvent=M),v.emit("openchange",{open:N,event:M,reason:E,nested:h}),n==null||n(N,M,E)}),m=C.useRef(null),b=C.useRef({}),v=C.useState(()=>_C())[0],y=Ei(),_=C.useCallback(N=>{const M=pe(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),contextElement:N}:N;u.refs.setReference(M)},[u.refs]),x=C.useCallback(N=>{(pe(N)||N===null)&&(m.current=N,c(N)),(pe(u.refs.reference.current)||u.refs.reference.current===null||N!==null&&!pe(N))&&u.refs.setReference(N)},[u.refs]),w=C.useMemo(()=>({...u.refs,setReference:x,setPositionReference:_,domReference:m}),[u.refs,x,_]),S=C.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),T=C.useMemo(()=>({...u,refs:w,elements:S,dataRef:b,nodeId:o,floatingId:y,events:v,open:r,onOpenChange:g}),[u,o,y,v,r,g,w,S]);return me(()=>{const N=f==null?void 0:f.nodesRef.current.find(M=>M.id===o);N&&(N.context=T)}),C.useMemo(()=>({...u,context:T,refs:w,elements:S}),[u,w,S,T])}function RC(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,events:o,refs:i,elements:{domReference:s}}=t,{enabled:a=!0,visibleOnly:l=!0}=e,c=C.useRef(!1),d=C.useRef(),u=C.useRef(!0);return C.useEffect(()=>{if(!a)return;const f=et(s);function h(){!r&&je(s)&&s===Ot(qe(s))&&(c.current=!0)}function g(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",g,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",g,!0)}},[s,r,a]),C.useEffect(()=>{if(!a)return;function f(h){let{reason:g}=h;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,a]),C.useEffect(()=>()=>{clearTimeout(d.current)},[]),C.useMemo(()=>a?{reference:{onPointerDown(f){na(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=rr(f.nativeEvent);if(l&&pe(h))try{if(oa()&&kf())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!aa(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,g=pe(h)&&h.hasAttribute(_r("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const m=Ot(s?s.ownerDocument:document);!h&&m===s||Ee(i.floating.current,m)||Ee(s,m)||g||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const mh="active",bh="selected";function Ea(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[mh]:s,[bh]:a,...l}=t;i=l}return{...r==="floating"&&{tabIndex:-1},...i,...e.map(s=>{const a=s?s[r]:null;return typeof a=="function"?t?a(t):null:a}).concat(t).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(o&&[mh,bh].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var u;(u=n.get(c))==null||u.push(d),s[c]=function(){for(var f,h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];return(f=n.get(c))==null?void 0:f.map(b=>b(...g)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function yh(t){t===void 0&&(t=[]);const e=t,r=C.useCallback(i=>Ea(i,t,"reference"),e),n=C.useCallback(i=>Ea(i,t,"floating"),e),o=C.useCallback(i=>Ea(i,t,"item"),t.map(i=>i==null?void 0:i.item));return C.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])}let vh=!1;function Pi(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function xh(t,e){return Pi(e,t===ba||t===qn,t===Jr||t===Zr)}function Oa(t,e,r){return Pi(e,t===qn,r?t===Jr:t===Zr)||t==="Enter"||t===" "||t===""}function VC(t,e,r){return Pi(e,r?t===Jr:t===Zr,t===qn)}function wh(t,e,r){return Pi(e,r?t===Zr:t===Jr,t===ba)}function YC(t,e){const{open:r,onOpenChange:n,refs:o,elements:{domReference:i,floating:s}}=t,{listRef:a,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:f=!1,loop:h=!1,nested:g=!1,rtl:m=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:_=!0,disabledIndices:x=void 0,orientation:w="vertical",cols:S=1,scrollItemIntoView:T=!0,virtualItemRef:N,itemSizes:M,dense:E=!1}=e;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const I=Oi(),A=Xn(),D=Nt(c),O=C.useRef(v),P=C.useRef(u??-1),L=C.useRef(null),z=C.useRef(!0),B=C.useRef(D),j=C.useRef(!!s),$=C.useRef(!1),H=C.useRef(!1),R=Pt(x),Y=Pt(r),U=Pt(T),[q,G]=C.useState(),[de,X]=C.useState(),oe=Nt(function(Z,Oe,le){le===void 0&&(le=!1);const re=Z.current[Oe.current];re&&(b?(G(re.id),A==null||A.events.emit("virtualfocus",re),N&&(N.current=re)):Vt(re,{preventScroll:!0,sync:kf()&&oa()?vh||$.current:!1}),requestAnimationFrame(()=>{const ge=U.current;ge&&re&&(le||!z.current)&&(re.scrollIntoView==null||re.scrollIntoView(typeof ge=="boolean"?{block:"nearest",inline:"nearest"}:ge))}))});me(()=>{document.createElement("div").focus({get preventScroll(){return vh=!0,!1}})},[]),me(()=>{d&&(r&&s?O.current&&u!=null&&(H.current=!0,P.current=u,D(u)):j.current&&(P.current=-1,B.current(null)))},[d,r,s,u,D]),me(()=>{if(d&&r&&s)if(l==null){if($.current=!1,u!=null)return;if(j.current&&(P.current=-1,oe(a,P)),!j.current&&O.current&&(L.current!=null||O.current===!0&&L.current==null)){let Z=0;const Oe=()=>{a.current[0]==null?(Z<2&&(Z?requestAnimationFrame:queueMicrotask)(Oe),Z++):(P.current=L.current==null||Oa(L.current,w,m)||g?ya(a,R.current):Kf(a,R.current),L.current=null,D(P.current))};Oe()}}else Kn(a,l)||(P.current=l,oe(a,P,H.current),H.current=!1)},[d,r,s,l,u,g,a,w,m,D,oe,R]),me(()=>{var Z;if(!d||s||!A||b||!j.current)return;const Oe=A.nodesRef.current,le=(Z=Oe.find(Q=>Q.id===I))==null||(Z=Z.context)==null?void 0:Z.elements.floating,re=Ot(qe(s)),ge=Oe.some(Q=>Q.context&&Ee(Q.context.elements.floating,re));le&&!ge&&z.current&&le.focus({preventScroll:!0})},[d,s,A,I,b]),me(()=>{if(!d||!A||!b||I)return;function Z(Oe){X(Oe.id),N&&(N.current=Oe)}return A.events.on("virtualfocus",Z),()=>{A.events.off("virtualfocus",Z)}},[d,A,b,I,N]),me(()=>{B.current=D,j.current=!!s}),me(()=>{r||(L.current=null)},[r]);const Le=l!=null,He=C.useMemo(()=>{function Z(le){if(!r)return;const re=a.current.indexOf(le);re!==-1&&D(re)}return{onFocus(le){let{currentTarget:re}=le;Z(re)},onClick:le=>{let{currentTarget:re}=le;return re.focus({preventScroll:!0})},...y&&{onMouseMove(le){let{currentTarget:re}=le;Z(re)},onPointerLeave(le){let{pointerType:re}=le;!z.current||re==="touch"||(P.current=-1,oe(a,P),D(null),b||Vt(o.floating.current,{preventScroll:!0}))}}}},[r,o,oe,y,a,D,b]);return C.useMemo(()=>{if(!d)return{};const Z=R.current;function Oe(V){if(z.current=!1,$.current=!0,!Y.current&&V.currentTarget===o.floating.current)return;if(g&&wh(V.key,w,m)){We(V),n(!1,V.nativeEvent,"list-navigation"),je(i)&&!b&&i.focus();return}const Te=P.current,ie=ya(a,Z),Ce=Kf(a,Z);if(V.key==="Home"&&(We(V),P.current=ie,D(P.current)),V.key==="End"&&(We(V),P.current=Ce,D(P.current)),S>1){const Fe=M||Array.from({length:a.current.length},()=>({width:1,height:1})),Ae=pC(Fe,S,E),ht=Ae.findIndex(it=>it!=null&&!(Z!=null&&Z.includes(it))),vt=Ae.reduce((it,or,st)=>or!=null&&!(Z!=null&&Z.includes(or))?st:it,-1);if(P.current=Ae[gC({current:Ae.map(it=>it!=null?a.current[it]:null)},{event:V,orientation:w,loop:h,cols:S,disabledIndices:bC([...Z||[],void 0],Ae),minIndex:ht,maxIndex:vt,prevIndex:mC(P.current,Fe,Ae,S,V.key===qn?"bl":V.key===Zr?"tr":"tl"),stopEvent:!0})],D(P.current),w==="both")return}if(xh(V.key,w)){if(We(V),r&&!b&&Ot(V.currentTarget.ownerDocument)===V.currentTarget){P.current=Oa(V.key,w,m)?ie:Ce,D(P.current);return}Oa(V.key,w,m)?h?P.current=Te>=Ce?f&&Te!==a.current.length?-1:ie:Ue(a,{startingIndex:Te,disabledIndices:Z}):P.current=Math.min(Ce,Ue(a,{startingIndex:Te,disabledIndices:Z})):h?P.current=Te<=ie?f&&Te!==-1?a.current.length:Ce:Ue(a,{startingIndex:Te,decrement:!0,disabledIndices:Z}):P.current=Math.max(ie,Ue(a,{startingIndex:Te,decrement:!0,disabledIndices:Z})),Kn(a,P.current)?D(null):D(P.current)}}function le(V){v==="auto"&&wf(V.nativeEvent)&&(O.current=!0)}function re(V){O.current=v,v==="auto"&&na(V.nativeEvent)&&(O.current=!0)}const ge=b&&r&&Le&&{"aria-activedescendant":de||q},Q=a.current.find(V=>(V==null?void 0:V.id)===q);return{reference:{...ge,onKeyDown(V){z.current=!1;const Te=V.key.indexOf("Arrow")===0,ie=VC(V.key,w,m),Ce=wh(V.key,w,m),Fe=xh(V.key,w),Ae=(g?ie:Fe)||V.key==="Enter"||V.key.trim()==="";if(b&&r){const or=A==null?void 0:A.nodesRef.current.find(Ii=>Ii.parentId==null),st=A&&or?MC(A.nodesRef.current,or.id):null;if(Te&&st&&N){const Ii=new KeyboardEvent("keydown",{key:V.key,bubbles:!0});if(ie||Ce){var ht,vt;const x5=((ht=st.context)==null?void 0:ht.elements.domReference)===V.currentTarget,$g=Ce&&!x5?(vt=st.context)==null?void 0:vt.elements.domReference:ie?Q:null;$g&&(We(V),$g.dispatchEvent(Ii),X(void 0))}if(Fe&&st.context&&st.context.open&&st.parentId&&V.currentTarget!==st.context.elements.domReference){var it;We(V),(it=st.context.elements.domReference)==null||it.dispatchEvent(Ii);return}}return Oe(V)}if(!(!r&&!_&&Te)){if(Ae&&(L.current=g&&Fe?null:V.key),g){ie&&(We(V),r?(P.current=ya(a,Z),D(P.current)):n(!0,V.nativeEvent,"list-navigation"));return}Fe&&(u!=null&&(P.current=u),We(V),!r&&_?n(!0,V.nativeEvent,"list-navigation"):Oe(V),r&&D(P.current))}},onFocus(){r&&D(null)},onPointerDown:re,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Cf(i)&&ge,onKeyDown:Oe,onPointerMove(){z.current=!0}},item:He}},[i,o,q,de,R,Y,a,d,w,m,b,r,Le,g,u,_,f,S,h,v,D,n,He,A,N,M,E])}const UC=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function kh(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:o}=t,{enabled:i=!0,role:s="dialog"}=e,a=(r=UC.get(s))!=null?r:s,l=Ei(),d=Oi()!=null;return C.useMemo(()=>{if(!i)return{};const u={id:o,...a&&{role:a}};return a==="tooltip"||s==="label"?{reference:{["aria-"+(s==="label"?"labelledby":"describedby")]:n?o:void 0},floating:u}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":n?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&d&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...a==="menu"&&{"aria-labelledby":l}},item(f){let{active:h,selected:g}=f;const m={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...m,"aria-selected":h&&g};case"combobox":return{...m,...h&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,d])}function qC(t,e){var r;const{open:n,dataRef:o}=t,{listRef:i,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:f=[],selectedIndex:h=null}=e,g=C.useRef(),m=C.useRef(""),b=C.useRef((r=h??s)!=null?r:-1),v=C.useRef(null),y=Nt(a),_=Nt(l),x=Pt(d),w=Pt(f);return me(()=>{n&&(clearTimeout(g.current),v.current=null,m.current="")},[n]),me(()=>{if(n&&m.current===""){var S;b.current=(S=h??s)!=null?S:-1}},[n,h,s]),C.useMemo(()=>{if(!c)return{};function S(M){M?o.current.typing||(o.current.typing=M,_(M)):o.current.typing&&(o.current.typing=M,_(M))}function T(M,E,I){const A=x.current?x.current(E,I):E.find(D=>(D==null?void 0:D.toLocaleLowerCase().indexOf(I.toLocaleLowerCase()))===0);return A?M.indexOf(A):-1}function N(M){const E=i.current;if(m.current.length>0&&m.current[0]!==" "&&(T(E,E,m.current)===-1?S(!1):M.key===" "&&We(M)),E==null||w.current.includes(M.key)||M.key.length!==1||M.ctrlKey||M.metaKey||M.altKey)return;n&&M.key!==" "&&(We(M),S(!0)),E.every(O=>{var P,L;return O?((P=O[0])==null?void 0:P.toLocaleLowerCase())!==((L=O[1])==null?void 0:L.toLocaleLowerCase()):!0})&&m.current===M.key&&(m.current="",b.current=v.current),m.current+=M.key,clearTimeout(g.current),g.current=setTimeout(()=>{m.current="",b.current=v.current,S(!1)},u);const A=b.current,D=T(E,[...E.slice((A||0)+1),...E.slice(0,(A||0)+1)],m.current);D!==-1?(y(D),v.current=D):M.key!==" "&&(m.current="",S(!1))}return{reference:{onKeyDown:N},floating:{onKeyDown:N,onKeyUp(M){M.key===" "&&S(!1)}}}},[c,n,o,i,u,w,x,y,_])}function Ch(t,e){const[r,n]=t;let o=!1;const i=e.length;for(let s=0,a=i-1;s<i;a=s++){const[l,c]=e[s]||[0,0],[d,u]=e[a]||[0,0];c>=n!=u>=n&&r<=(d-l)*(n-c)/(u-c)+l&&(o=!o)}return o}function KC(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function GC(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=t;let o,i=!1,s=null,a=null,l=performance.now();function c(u,f){const h=performance.now(),g=h-l;if(s===null||a===null||g===0)return s=u,a=f,l=h,null;const m=u-s,b=f-a,y=Math.sqrt(m*m+b*b)/g;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:g,elements:m,onClose:b,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),b()}if(clearTimeout(o),!m.domReference||!m.floating||g==null||f==null||h==null)return;const{clientX:S,clientY:T}=x,N=[S,T],M=rr(x),E=x.type==="mouseleave",I=Ee(m.floating,M),A=Ee(m.domReference,M),D=m.domReference.getBoundingClientRect(),O=m.floating.getBoundingClientRect(),P=g.split("-")[0],L=f>O.right-O.width/2,z=h>O.bottom-O.height/2,B=KC(N,D),j=O.width>D.width,$=O.height>D.height,H=(j?D:O).left,R=(j?D:O).right,Y=($?D:O).top,U=($?D:O).bottom;if(I&&(i=!0,!E))return;if(A&&(i=!1),A&&!E){i=!0;return}if(E&&pe(x.relatedTarget)&&Ee(m.floating,x.relatedTarget)||y&&Sr(y.nodesRef.current,v).some(de=>{let{context:X}=de;return X==null?void 0:X.open}))return;if(P==="top"&&h>=D.bottom-1||P==="bottom"&&h<=D.top+1||P==="left"&&f>=D.right-1||P==="right"&&f<=D.left+1)return w();let q=[];switch(P){case"top":q=[[H,D.top+1],[H,O.bottom-1],[R,O.bottom-1],[R,D.top+1]];break;case"bottom":q=[[H,O.top+1],[H,D.bottom-1],[R,D.bottom-1],[R,O.top+1]];break;case"left":q=[[O.right-1,U],[O.right-1,Y],[D.left+1,Y],[D.left+1,U]];break;case"right":q=[[D.right-1,U],[D.right-1,Y],[O.left+1,Y],[O.left+1,U]];break}function G(de){let[X,oe]=de;switch(P){case"top":{const Le=[j?X+e/2:L?X+e*4:X-e*4,oe+e+1],He=[j?X-e/2:L?X+e*4:X-e*4,oe+e+1],Z=[[O.left,L||j?O.bottom-e:O.top],[O.right,L?j?O.bottom-e:O.top:O.bottom-e]];return[Le,He,...Z]}case"bottom":{const Le=[j?X+e/2:L?X+e*4:X-e*4,oe-e],He=[j?X-e/2:L?X+e*4:X-e*4,oe-e],Z=[[O.left,L||j?O.top+e:O.bottom],[O.right,L?j?O.top+e:O.bottom:O.top+e]];return[Le,He,...Z]}case"left":{const Le=[X+e+1,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X+e+1,$?oe-e/2:z?oe+e*4:oe-e*4];return[...[[z||$?O.right-e:O.left,O.top],[z?$?O.right-e:O.left:O.right-e,O.bottom]],Le,He]}case"right":{const Le=[X-e,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X-e,$?oe-e/2:z?oe+e*4:oe-e*4],Z=[[z||$?O.left+e:O.right,O.top],[z?$?O.left+e:O.right:O.left+e,O.bottom]];return[Le,He,...Z]}}}if(!Ch([S,T],q)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Ch([S,T],G([f,h]))?!i&&n&&(o=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:r},d}const XC=({arrowRef:t,placement:e})=>{const r=[];return r.push(R2(8)),r.push(e==="auto"?U2():Y2()),r.push(V2({padding:8})),t!=null&&t.current&&r.push(q2({element:t.current})),r},JC=({placement:t})=>t==="auto"?void 0:t,ZC=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],_h=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>ph({placement:JC({placement:r}),open:t,onOpenChange:n,whileElementsMounted:Bf,middleware:XC({placement:r,arrowRef:e})}),Sh=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>yh([fh(t,{enabled:e==="click"}),OC(t,{enabled:e==="hover",handleClose:GC()}),gh(t),kh(t,{role:r}),...n]),Eh=k.createContext(void 0);function Ta(){const t=k.useContext(Eh);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Ma=({className:t,theme:e={},...r})=>{const{theme:n}=Ta(),o=e.divider??n.floating.divider;return p.jsx("div",{className:F(o,t),...r})},Oh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Ta(),i=r.header??o.floating.header;return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(i,e),...n,children:t}),p.jsx(Ma,{})]})},Th=k.forwardRef(({children:t,className:e,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=wC({label:typeof t=="string"?t:void 0}),c=qf([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:g}=Ta(),m=u===l,b=W(d.floating.item,o),v=i;return p.jsx("li",{role:"menuitem",className:b.container,children:p.jsxs(Gs,{ref:c,className:F(b.base,e),...v,...h({onClick:()=>{n==null||n(),f&&g(null)}}),tabIndex:m?0:-1,children:[r&&p.jsx(r,{className:b.icon}),t]})})});Th.displayName="DropdownItem";const QC={top:u1,right:Bu,bottom:zu,left:d1},e5=({refs:t,children:e,inline:r,theme:n,disabled:o,setButtonWidth:i,getReferenceProps:s,renderTrigger:a,...l})=>{const c=t.reference,d=s();if(k.useEffect(()=>{c.current&&(i==null||i(c.current.clientWidth))},[c,i]),a){const u=a(n);return k.cloneElement(u,{ref:t.setReference,disabled:o,...d,...u.props})}return r?p.jsx("button",{type:"button",ref:t.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:e}):p.jsx(lf,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},Mh=({children:t,className:e,dismissOnClick:r=!0,theme:n={},renderTrigger:o,...i})=>{const[s,a]=k.useState(!1),[l,c]=k.useState(null),[d,u]=k.useState(null),[f,h]=k.useState(void 0),g=k.useRef([]),m=k.useRef([]),b=W(K().dropdown,n),v=i,y=i["data-testid"]||"flowbite-dropdown-target",{placement:_=i.inline?"bottom-start":"bottom",trigger:x="click",label:w,inline:S,arrowIcon:T=!0,...N}=v,M=k.useCallback($=>{u($),a(!1)},[]),E=k.useCallback($=>{s?c($):M($)},[s,M]),{context:I,floatingStyles:A,refs:D}=_h({open:s,setOpen:a,placement:_}),O=YC(I,{listRef:g,activeIndex:l,selectedIndex:d,onNavigate:c}),P=qC(I,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:z,getItemProps:B}=Sh({context:I,role:"menu",trigger:x,interactions:[O,P]}),j=k.useMemo(()=>{const[$]=_.split("-");return QC[$]??zu},[_]);return p.jsxs(Eh.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:M},children:[p.jsxs(e5,{...N,refs:D,inline:S,theme:b,"data-testid":y,className:F(b.floating.target,N.className),setButtonWidth:h,getReferenceProps:L,renderTrigger:o,children:[w,T&&p.jsx(j,{className:b.arrowIcon})]}),s&&p.jsx(ch,{context:I,modal:!1,children:p.jsx("div",{ref:D.setFloating,style:{...A,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":s,...z({className:F(b.floating.base,b.floating.animation,"duration-100",!s&&b.floating.hidden,b.floating.style.auto,e)}),children:p.jsx(xC,{elementsRef:g,labelsRef:m,children:p.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};Mh.displayName="Dropdown",Oh.displayName="Dropdown.Header",Ma.displayName="Dropdown.Divider",Object.assign(Mh,{Item:Th,Header:Oh,Divider:Ma});const t5=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=W(K().fileInput,o);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(a.root.base,t),children:p.jsx("div",{className:a.field.base,children:p.jsx("input",{className:F(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&p.jsx(Rn,{color:e,children:r})]})});t5.displayName="FileInput";const r5=k.forwardRef(({label:t,helperText:e,color:r="default",sizing:n="md",variant:o,disabled:i=!1,theme:s={},className:a,...l},c)=>{const d=k.useId(),u=W(K().floatingLabel,s);return p.jsxs("div",{children:[p.jsxs("div",{className:F("relative",o==="standard"?"z-0":""),children:[p.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:F(u.input[r][o][n],a),placeholder:" ","data-testid":"floating-label",disabled:i,...l,ref:c}),p.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:F(u.label[r][o][n],a),children:t})]}),p.jsx("p",{id:"outlined_helper_text"+d,className:F(u.helperText[r],a),children:e})]})});r5.displayName="FloatingLabel";const Nh=({alt:t,className:e,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=W(K().footer.brand,s);return p.jsx("div",{children:n?p.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:F(l.base,e),...a,children:[p.jsx("img",{alt:t,src:i,className:l.img}),p.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):p.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:i,className:F(l.img,e),...a})})},Ph=({by:t,className:e,href:r,theme:n={},year:o,...i})=>{const s=W(K().footer.copyright,n);return p.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:F(s.base,e),...i,children:["© ",o,r?p.jsx("a",{href:r,className:s.href,children:t}):p.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Ah=({className:t,theme:e={},...r})=>{const n=W(K().footer.divider,e);return p.jsx("hr",{"data-testid":"footer-divider",className:F(n.base,t),...r})},Dh=({ariaLabel:t,className:e,href:r,icon:n,theme:o={},...i})=>{const s=W(K().footer.icon,o);return p.jsx("div",{children:r?p.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:F(s.base,e),...i,children:p.jsx(n,{className:s.size})}):p.jsx(n,{"data-testid":"flowbite-footer-icon",className:s.size,...i})})},Ih=({as:t="a",children:e,className:r,href:n,theme:o={},...i})=>{const s=W(K().footer.groupLink.link,o);return p.jsx("li",{className:F(s.base,r),children:p.jsx(t,{href:n,className:s.href,...i,children:e})})},Lh=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=W(K().footer.groupLink,n);return p.jsx("ul",{"data-testid":"footer-groupLink",className:F(i.base,r&&i.col,e),...o,children:t})},Fh=({as:t="h2",className:e,theme:r={},title:n,...o})=>{const i=W(K().footer.title,r);return p.jsx(t,{"data-testid":"flowbite-footer-title",className:F(i.base,e),...o,children:n})},zh=({bgDark:t=!1,children:e,className:r,container:n=!1,theme:o={},...i})=>{const s=W(K().footer,o);return p.jsx("footer",{"data-testid":"flowbite-footer",className:F(s.root.base,t&&s.root.bgDark,n&&s.root.container,r),...i,children:e})};zh.displayName="Footer",Ph.displayName="Footer.Copyright",Ih.displayName="Footer.Link",Nh.displayName="Footer.Brand",Lh.displayName="Footer.LinkGroup",Dh.displayName="Footer.Icon",Fh.displayName="Footer.Title",Ah.displayName="Footer.Divider",Object.assign(zh,{Copyright:Ph,Link:Ih,LinkGroup:Lh,Brand:Nh,Icon:Dh,Title:Fh,Divider:Ah});const Bh=({children:t,className:e,icon:r,theme:n={},...o})=>{const i=W(K().list.item,n);return p.jsxs("li",{className:F(i.withIcon[r?"on":"off"],e),...o,children:[r&&p.jsx(r,{className:F(i.icon)}),t]})},$h=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=W(K().list,s),c=o?"ol":"ul";return p.jsx(c,{className:F(l.root.base,l.root.ordered[o?"on":"off"],r&&l.root.unstyled,n&&l.root.nested,i&&l.root.horizontal,e),...a,children:t})};$h.displayName="List",Bh.displayName="List.Item",Object.assign($h,{Item:Bh});const jh=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=W(K().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return p.jsx("li",{className:F(c.base,r),children:p.jsxs(u,{href:n,onClick:i,type:d?void 0:"button",disabled:a,className:F(c.link.active[t?"on":"off"],c.link.disabled[a?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[o&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Wh=({children:t,className:e,theme:r={},...n})=>{const o=W(K().listGroup,r);return p.jsx("ul",{className:F(o.root.base,e),...n,children:t})};Wh.displayName="ListGroup",jh.displayName="ListGroup.Item",Object.assign(Wh,{Item:jh});const Hh=k.createContext(void 0);function Na(){const t=k.useContext(Hh);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Rh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Na(),s=W(o.body,r);return p.jsx("div",{className:F(s.base,i&&[s.popup],e),...n,children:t})},Vh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Na(),s=W(o.footer,r);return p.jsx("div",{className:F(s.base,!i&&s.popup,e),...n,children:t})},Yh=({as:t="h3",children:e,className:r,theme:n={},id:o,...i})=>{const s=k.useId(),a=o||s,{theme:l,popup:c,onClose:d,setHeaderId:u}=Na(),f=W(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),p.jsxs("div",{className:F(f.base,c&&f.popup,r),...i,children:[p.jsx(t,{id:a,className:f.title,children:e}),p.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:p.jsx(f1,{"aria-hidden":!0,className:f.close.icon})})]})},Uh=k.forwardRef(({children:t,className:e,dismissible:r=!1,onClose:n,popup:o,position:i="center",root:s,show:a,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,g]=k.useState(void 0),m=W(K().modal,c),{context:b}=ph({open:a,onOpenChange:()=>n&&n()}),v=qf([b.refs.setFloating,f]),y=fh(b),_=gh(b,{outsidePressEvent:"mousedown",enabled:r}),x=kh(b),{getFloatingProps:w}=yh([y,_,x]);return a?p.jsx(Hh.Provider,{value:{theme:m,popup:o,onClose:n,setHeaderId:g},children:p.jsx(zC,{root:s,children:p.jsx(jC,{lockScroll:!0,"data-testid":"modal-overlay",className:F(m.root.base,m.root.positions[i],a?m.root.show.on:m.root.show.off,e),...u,children:p.jsx(ch,{context:b,initialFocus:d,children:p.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:F(m.content.base,m.root.sizes[l]),children:p.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Uh.displayName="Modal",Yh.displayName="Modal.Header",Rh.displayName="Modal.Body",Vh.displayName="Modal.Footer",Object.assign(Uh,{Header:Yh,Body:Rh,Footer:Vh});const qh=k.createContext(void 0);function Ai(){const t=k.useContext(qh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Kh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Ai(),s=W(i.brand,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},Gh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=Ai(),s=W(o.collapse,r);return p.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:F(s.base,s.hidden[i?"off":"on"],e),...n,children:p.jsx("ul",{className:s.list,children:t})})},Xh=({active:t,as:e="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=Ai(),d=W(l.link,i),u=f=>{c(!1),s==null||s(f)};return p.jsx("li",{children:p.jsx(e,{className:F(d.base,t&&d.active.on,!t&&!r&&d.active.off,d.disabled[r?"on":"off"],o),onClick:u,...a,children:n})})},Jh=({barIcon:t=Xg,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Ai(),a=W(o.toggle,r),l=()=>{s(!i)};return p.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:F(a.base,e),...n,children:[p.jsx("span",{className:"sr-only",children:"Open main menu"}),p.jsx(t,{"aria-hidden":!0,className:a.icon})]})},Zh=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=W(K().navbar,s);return p.jsx(qh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:p.jsx("nav",{className:F(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:p.jsx("div",{className:F(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};Zh.displayName="Navbar",Kh.displayName="Navbar.Brand",Gh.displayName="Navbar.Collapse",Xh.displayName="Navbar.Link",Jh.displayName="Navbar.Toggle",Object.assign(Zh,{Brand:Kh,Collapse:Gh,Link:Xh,Toggle:Jh});const n5=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),Pa=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=W(K().pagination,o);return p.jsx("button",{type:"button",className:F(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};Pa.displayName="Pagination.Button";const Aa=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=W(K().pagination,n);return p.jsx("button",{type:"button",className:F(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};Aa.displayName="Pagination.Navigation";const Qh=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>p.jsx(Pa,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=W(K().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),g=()=>{o(Math.min(e+1,c))},m=()=>{o(Math.max(e-1,1))};return p.jsxs("nav",{className:F(u.base,t),...d,children:[r==="table"&&p.jsxs("div",{className:u.layout.table.base,children:["Showing ",p.jsx("span",{className:u.layout.table.span,children:h})," to ",p.jsx("span",{className:u.layout.table.span,children:f})," of ",p.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),p.jsxs("ul",{className:u.pages.base,children:[p.jsx("li",{children:p.jsxs(Aa,{className:F(u.pages.previous.base,a&&u.pages.showIcon),onClick:m,disabled:e===1,children:[a&&p.jsx(s1,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&n5(h,f).map(b=>p.jsx("li",{"aria-current":b===e?"page":void 0,children:s({className:F(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>o(b),children:b})},b)),p.jsx("li",{children:p.jsxs(Aa,{className:F(u.pages.next.base,a&&u.pages.showIcon),onClick:g,disabled:e===c,children:[n,a&&p.jsx(a1,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};Qh.displayName="Pagination",Object.assign(Qh,{Button:Pa});const o5=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=W(K().radio,e);return p.jsx("input",{ref:n,type:"radio",className:F(o.root.base,t),...r})});o5.displayName="Radio";const i5=k.forwardRef(({className:t,sizing:e="md",theme:r={},...n},o)=>{const i=W(K().rangeSlider,r);return p.jsx(p.Fragment,{children:p.jsx("div",{"data-testid":"flowbite-range-slider",className:F(i.root.base,t),children:p.jsx("div",{className:i.field.base,children:p.jsx("input",{ref:o,type:"range",className:F(i.field.input.base,i.field.input.sizes[e]),...n})})})})});i5.displayName="RangeSlider";const eg=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=W(K().ratingAdvanced,n);return p.jsxs("div",{className:F(i.base,e),...o,children:[p.jsx("span",{className:i.label,children:t}),p.jsx("div",{className:i.progress.base,children:p.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),p.jsx("span",{className:i.progress.label,children:`${r}%`})]})},tg=k.createContext(void 0);function s5(){const t=k.useContext(tg);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const rg=({className:t,filled:e=!0,starIcon:r=l1,theme:n={},...o})=>{const{theme:i,size:s="sm"}=s5(),a=W(i.star,n);return p.jsx(r,{"data-testid":"flowbite-rating-star",className:F(a.sizes[s],a[e?"filled":"empty"],t),...o})},ng=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=W(K().rating,n);return p.jsx(tg.Provider,{value:{theme:i,size:r},children:p.jsx("div",{className:F(i.root.base,e),...o,children:t})})};ng.displayName="Rating",rg.displayName="Rating.Star",eg.displayName="Rating.Advanced",Object.assign(ng,{Star:rg,Advanced:eg});const a5=k.forwardRef(({addon:t,children:e,className:r,color:n="gray",helperText:o,icon:i,shadow:s,sizing:a="md",theme:l={},...c},d)=>{const u=W(K().select,l);return p.jsxs("div",{className:F(u.base,r),children:[t&&p.jsx("span",{className:u.addon,children:t}),p.jsxs("div",{className:u.field.base,children:[i&&p.jsx("div",{className:u.field.icon.base,children:p.jsx(i,{className:u.field.icon.svg})}),p.jsx("select",{className:F(u.field.select.base,u.field.select.colors[n],u.field.select.sizes[a],u.field.select.withIcon[i?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[s?"on":"off"]),...c,ref:d,children:e}),o&&p.jsx(Rn,{color:n,children:o})]})]})});a5.displayName="Select";const l5=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a,trigger:l="hover",minWidth:c,...d})=>{const u=k.useRef(null),[f,h]=k.useState(!1),g=_h({open:f,placement:i,arrowRef:u,setOpen:h}),{context:m,middlewareData:{arrow:{x:b,y:v}={}},refs:y,strategy:_,update:x,x:w,y:S}=g,T=RC(m),{getFloatingProps:N,getReferenceProps:M}=Sh({context:m,role:"tooltip",trigger:l,interactions:[T]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return Bf(y.reference.current,y.floating.current,x)},[f,y.floating,y.reference,x]),p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...M(),children:r}),p.jsxs("div",{ref:y.setFloating,"data-testid":"flowbite-tooltip",...N({className:F(a.base,t&&`${a.animation} ${t}`,!f&&a.hidden,a.style[s],n),style:{position:_,top:S??" ",left:w??" ",minWidth:c},...d}),children:[p.jsx("div",{className:a.content,children:o}),e&&p.jsx("div",{className:F(a.arrow.base,s==="dark"&&a.arrow.style.dark,s==="light"&&a.arrow.style.light,s==="auto"&&a.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:v??" ",left:b??" ",right:" ",bottom:" ",[ZC({placement:g.placement})]:a.arrow.placement},children:" "})]})]})},Da=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a={},trigger:l="hover",...c})=>{const d=W(K().tooltip,a);return p.jsx(l5,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};Da.displayName="Tooltip";const og=k.createContext(void 0);function en(){const t=k.useContext(og);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Ia=k.createContext(void 0);function c5(){const t=k.useContext(Ia);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const ig=({children:t,className:e,icon:r,label:n,chevronIcon:o=Fu,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=en(),g=W(f.collapse,a);k.useEffect(()=>u(s),[s]);const m=({children:b})=>p.jsx("li",{children:h&&!d?p.jsx(Da,{content:n,placement:"right",children:b}):b});return p.jsxs(m,{children:[p.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:F(g.button,e),...l,children:[r&&p.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:F(g.icon.base,g.icon.open[d?"on":"off"])}),h?p.jsx("span",{className:"sr-only",children:n}):p.jsxs(p.Fragment,{children:[p.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:g.label.base,children:n}),i?i(g,d):p.jsx(o,{"aria-hidden":!0,className:F(g.label.icon.base,g.label.icon.open[d?"on":"off"])})]})]}),p.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:g.list,children:p.jsx(Ia.Provider,{value:{isInsideCollapse:!0},children:t})})]})};ig.displayName="Sidebar.Collapse";const sg=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=en(),a=W(i.cta,n);return p.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:F(a.base,a.color[e],r),...o,children:t})};sg.displayName="Sidebar.CTA";const d5=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>p.jsx("li",{...i,children:r?p.jsx(Da,{content:p.jsx(ag,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),ag=({id:t,theme:e,children:r})=>p.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:F(e.content.base),children:r}),lg=k.forwardRef(({active:t,as:e="a",children:r,className:n,icon:o,label:i,labelColor:s="info",theme:a={},...l},c)=>{var m,b,v,y;const d=k.useId(),{theme:u,isCollapsed:f}=en(),{isInsideCollapse:h}=c5(),g=W(u.item,a);return p.jsx(d5,{theme:g,className:g.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:p.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:F(g.base,t&&g.active,!f&&h&&((m=g.collapsed)==null?void 0:m.insideCollapse),n),...l,children:[o&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:F((b=g.icon)==null?void 0:b.base,t&&((v=g.icon)==null?void 0:v.active))}),f&&!o&&p.jsx("span",{className:(y=g.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&p.jsx(ag,{id:d,theme:g,children:r}),!f&&i&&p.jsx(tf,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:g.label,children:i})]})})});lg.displayName="Sidebar.Item";const cg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=en(),i=W(o.itemGroup,r);return p.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:F(i.base,e),...n,children:p.jsx(Ia.Provider,{value:{isInsideCollapse:!1},children:t})})};cg.displayName="Sidebar.ItemGroup";const dg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=en(),i=W(o.items,r);return p.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};dg.displayName="Sidebar.Items";const ug=({children:t,className:e,href:r,img:n,imgAlt:o="",theme:i={},...s})=>{const a=k.useId(),{theme:l,isCollapsed:c}=en(),d=W(l.logo,i);return p.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:F(d.base,e),...s,children:[p.jsx("img",{alt:o,src:n,className:d.img}),p.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:t})]})};ug.displayName="Sidebar.Logo";const fg=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=W(K().sidebar,o);return p.jsx(og.Provider,{value:{theme:a,isCollapsed:n},children:p.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:F(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:p.jsx("div",{className:a.root.inner,children:t})})})};fg.displayName="Sidebar",Object.assign(fg,{Collapse:ig,CTA:sg,Item:lg,Items:dg,ItemGroup:cg,Logo:ug});const hg=k.createContext(void 0);function u5(){const t=k.useContext(hg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const gg=k.createContext(void 0);function La(){const t=k.useContext(gg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const pg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=La(),s=W(i.body,r);return p.jsx(hg.Provider,{value:{theme:s},children:p.jsx("tbody",{className:F(s.base,e),ref:o,...n,children:t})})});pg.displayName="Table.Body";const mg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=u5(),s=W(i.cell,r);return p.jsx("td",{className:F(s.base,e),ref:o,...n,children:t})});mg.displayName="Table.Cell";const bg=k.createContext(void 0);function f5(){const t=k.useContext(bg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const yg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=La(),s=W(i.head,r);return p.jsx(bg.Provider,{value:{theme:s},children:p.jsx("thead",{className:F(s.base,e),ref:o,...n,children:p.jsx("tr",{children:t})})})});yg.displayName="Table.Head";const vg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=f5(),s=W(i.cell,r);return p.jsx("th",{className:F(s.base,e),ref:o,...n,children:t})});vg.displayName="Table.HeadCell";const xg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=La(),l=W(i.row,r);return p.jsx("tr",{ref:o,"data-testid":"table-row-element",className:F(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});xg.displayName="Table.Row";const wg=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=W(K().table,o);return p.jsx("div",{"data-testid":"table-element",className:F(a.root.wrapper),children:p.jsxs(gg.Provider,{value:{theme:a,striped:r,hoverable:n},children:[p.jsx("div",{className:F(a.root.shadow,e)}),p.jsx("table",{className:F(a.root.base,e),...i,ref:s,children:t})]})})});wg.displayName="Table";const ee=Object.assign(wg,{Head:yg,Body:pg,Row:xg,Cell:mg,HeadCell:vg}),kg=({children:t,className:e})=>p.jsx("div",{className:e,children:t});kg.displayName="Tabs.Item";const Cg=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=W(K().tabs,o),l=k.useId(),c=k.useMemo(()=>k.Children.map(k.Children.toArray(t),({props:x})=>x),[t]),d=k.useRef([]),[u,f]=k.useState(Math.max(0,c.findIndex(x=>x.active))),[h,g]=k.useState(-1),m=x=>{f(x),r&&r(x)},b=({target:x})=>{m(x),g(x)},v=({event:x,target:w})=>{x.key==="ArrowLeft"&&g(Math.max(0,h-1)),x.key==="ArrowRight"&&g(Math.min(c.length-1,h+1)),x.key==="Enter"&&(m(w),g(w))},y=a.tablist.tabitem.styles[n],_=a.tabitemcontainer.styles[n];return k.useEffect(()=>{var x;(x=d.current[h])==null||x.focus()},[h]),k.useImperativeHandle(s,()=>({setActiveTab:m})),p.jsxs("div",{className:F(a.base,e),children:[p.jsx("div",{"aria-label":"Tabs",role:"tablist",className:F(a.tablist.base,a.tablist.styles[n],e),...i,children:c.map((x,w)=>p.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:F(a.tablist.tabitem.base,y.base,w===u&&y.active.on,w!==u&&!x.disabled&&y.active.off),disabled:x.disabled,id:`${l}-tab-${w}`,onClick:()=>b({target:w}),onKeyDown:S=>v({event:S,target:w}),ref:S=>d.current[w]=S,role:"tab",tabIndex:w===h?0:-1,style:{zIndex:w===h?2:1},children:[x.icon&&p.jsx(x.icon,{className:a.tablist.tabitem.icon}),x.title]},w))}),p.jsx("div",{className:F(a.tabitemcontainer.base,_),children:c.map((x,w)=>p.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:a.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:x.children},w))})]})});Cg.displayName="Tabs",Object.assign(Cg,{Item:kg});const h5=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=W(K().textarea,o);return p.jsxs(p.Fragment,{children:[p.jsx("textarea",{ref:s,className:F(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&p.jsx(Rn,{color:e,children:r})]})});h5.displayName="Textarea";const _g=k.createContext(void 0);function Fa(){const t=k.useContext(_g);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Sg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Fa(),i=W(o.body,r);return p.jsx("div",{className:F(i.base,e),...n,children:t})},Eg=k.createContext(void 0);function za(){const t=k.useContext(Eg);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Og=k.createContext(void 0);function Tg(){const t=k.useContext(Og);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Mg=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=za(),{theme:i}=Tg(),s=W(i.content,r);return p.jsx(_g.Provider,{value:{theme:s},children:p.jsx("div",{"data-testid":"timeline-content",className:F(o&&s.root.base,e),...n,children:t})})},Ng=({children:t,className:e,theme:r={},...n})=>{const{theme:o,horizontal:i}=za(),s=W(o.item,r);return p.jsx(Og.Provider,{value:{theme:s},children:p.jsx("li",{"data-testid":"timeline-item",className:F(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},Pg=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=za(),{theme:s}=Tg(),a=W(s.point,n);return p.jsxs("div",{"data-testid":"timeline-point",className:F(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?p.jsx("span",{className:F(a.marker.icon.wrapper),children:p.jsx(r,{"aria-hidden":!0,className:F(a.marker.icon.base)})}):p.jsx("div",{className:F(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&p.jsx("div",{className:F(a.line)})]})},Ag=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Fa(),i=W(o.time,r);return p.jsx("time",{className:F(i.base,e),...n,children:t})},Dg=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Fa(),s=W(i.title,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},Ig=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=W(K().timeline,n);return p.jsx(Eg.Provider,{value:{theme:i,horizontal:r},children:p.jsx("ol",{"data-testid":"timeline-component",className:F(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};Ig.displayName="Timeline",Ng.displayName="Timeline.Item",Pg.displayName="Timeline.Point",Mg.displayName="Timeline.Content",Ag.displayName="Timeline.Time",Dg.displayName="Timeline.Title",Sg.displayName="Timeline.Body",Object.assign(Ig,{Item:Ng,Point:Pg,Content:Mg,Time:Ag,Title:Dg,Body:Sg});const Lg=k.createContext(void 0);function g5(){const t=k.useContext(Lg);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const Fg=({className:t,onClick:e,theme:r={},xIcon:n=c1,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=g5(),f=W(s.toggle,r),h=g=>{if(e&&e(g),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return p.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:F(f.base,t),...i,children:p.jsx(n,{"aria-hidden":!0,className:f.icon})})},p5={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},zg=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=W(K().toast,n);return a?null:p.jsx(Lg.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:p.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:F(c.root.base,p5[r],i&&c.root.closed,e),...o,children:t})})};zg.displayName="Toast",Fg.displayName="Toast.Toggle",Object.assign(zg,{Toggle:Fg});const m5=k.forwardRef(({checked:t,className:e,color:r="blue",sizing:n="md",disabled:o,label:i,name:s,onChange:a,theme:l={},...c},d)=>{const u=k.useId(),f=W(K().toggleSwitch,l),h=()=>a(!t),g=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return p.jsxs(p.Fragment,{children:[s&&t?p.jsx("input",{ref:d,checked:t,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,p.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:g,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:F(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[p.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:F(f.toggle.base,f.toggle.checked[t?"on":"off"],t&&f.toggle.checked.color[r],f.toggle.sizes[n])}),i!=null&&i.length?p.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:i}):null]})]})});m5.displayName="ToggleSwitch";const b5=()=>p.jsx("div",{className:"w-full",children:p.jsx("div",{className:"overflow-x-auto",children:p.jsxs(ee,{striped:!0,children:[p.jsxs(ee.Head,{children:[p.jsx(ee.HeadCell,{children:"Product name"}),p.jsx(ee.HeadCell,{children:"Color"}),p.jsx(ee.HeadCell,{children:"Category"}),p.jsx(ee.HeadCell,{children:"Price"}),p.jsx(ee.HeadCell,{children:p.jsx("span",{className:"sr-only",children:"Edit"})})]}),p.jsxs(ee.Body,{className:"divide-y",children:[p.jsxs(ee.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[p.jsx(ee.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:'Apple MacBook Pro 17"'}),p.jsx(ee.Cell,{children:"Sliver"}),p.jsx(ee.Cell,{children:"Laptop"}),p.jsx(ee.Cell,{children:"$2999"}),p.jsx(ee.Cell,{children:p.jsx("a",{href:"#",className:"font-medium text-cyan-600 hover:underline dark:text-cyan-500",children:"Edit"})})]}),p.jsxs(ee.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[p.jsx(ee.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:"Microsoft Surface Pro"}),p.jsx(ee.Cell,{children:"White"}),p.jsx(ee.Cell,{children:"Laptop PC"}),p.jsx(ee.Cell,{children:"$1999"}),p.jsx(ee.Cell,{children:p.jsx("a",{href:"#",className:"font-medium text-cyan-600 hover:underline dark:text-cyan-500",children:"Edit"})})]}),p.jsxs(ee.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[p.jsx(ee.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:"Magic Mouse 2"}),p.jsx(ee.Cell,{children:"Black"}),p.jsx(ee.Cell,{children:"Accessories"}),p.jsx(ee.Cell,{children:"$99"}),p.jsx(ee.Cell,{children:p.jsx("a",{href:"#",className:"font-medium text-cyan-600 hover:underline dark:text-cyan-500",children:"Edit"})})]}),p.jsxs(ee.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[p.jsx(ee.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:"Google Pixel Phone"}),p.jsx(ee.Cell,{children:"Gray"}),p.jsx(ee.Cell,{children:"Phone"}),p.jsx(ee.Cell,{children:"$799"}),p.jsx(ee.Cell,{children:p.jsx("a",{href:"#",className:"font-medium text-cyan-600 hover:underline dark:text-cyan-500",children:"Edit"})})]}),p.jsxs(ee.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[p.jsx(ee.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:"Apple Watch 5"}),p.jsx(ee.Cell,{children:"Red"}),p.jsx(ee.Cell,{children:"Wearables"}),p.jsx(ee.Cell,{children:"$999"}),p.jsx(ee.Cell,{children:p.jsx("a",{href:"#",className:"font-medium text-cyan-600 hover:underline dark:text-cyan-500",children:"Edit"})})]})]})]})})}),Bg=(()=>{const{protocol:t,host:e}=window.location;return`${t}//${e}/`})(),y5=()=>p.jsxs("div",{children:[p.jsx(Or,{classIm:"mx-auto mt-32",src:`${Bg}/public/assets/images/mathilde.png`,alt:"Logo Mathilde ads",width:400,height:250}),p.jsx("div",{className:"m-image-container",children:p.jsx(Or,{classIm:"m-image",src:`${Bg}/public/assets/images/background-mathilde.png`,alt:"Logo Mathilde ads",width:400,height:300})})]}),v5=({onOpenModal:t,checked:e,onChange:r,label:n,...o})=>{const i=()=>{e||t(),r(!1)};return p.jsx("div",{className:"mb-5",children:p.jsxs("label",{className:eo["checkbox-container"],children:[p.jsx("input",{type:"checkbox",...o,checked:e,onChange:i,required:!0}),p.jsx("span",{className:eo.checkmark}),n&&p.jsx("span",{children:n})]})})};ue.ButtonFormat=Wg,ue.CardIndicator=op,ue.Checkbox=Hg,ue.ImageFormat=Or,ue.InputForm=Wa,ue.LayoutOutside=y5,ue.Logout=gu,ue.ModalFormat=Dr,ue.MyDoughnutChart=Tb,ue.PasswordInput=rp,ue.ProgressBar=qa,ue.SelectForm=Ka,ue.SidebarMth=r1,ue.TableComponent=b5,ue.TermsCheckbox=v5,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-mathilde-web",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"