@apollosproject/canvas-embeds 2.1.2207 → 2.1.2209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/widget/index.js +2 -2
package/package.json
CHANGED
package/widget/index.js
CHANGED
|
@@ -244,7 +244,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
244
244
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
|
|
245
245
|
`)].join(`
|
|
246
246
|
`))}else{let v=h.props,A=v?.className,Z=typeof A=="function"?(...S)=>IS(A(...S),c.className):IS(A,c.className),E=Z?{className:Z}:{},M=Ad0(h.props,e5(PS(c,["ref"])));for(let S in p)S in M&&delete p[S];return e.cloneElement(h,Object.assign({},M,p,m,{ref:l(HD0(h),m.ref)},E))}return e.createElement(i,Object.assign({},PS(c,["ref"]),!Pm(i)&&m,!Pm(i)&&p),h)}function AD0(){let a=e.useRef([]),t=e.useCallback(n=>{for(let r of a.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return a.current=n,t}}function ZD0(...a){return a.every(t=>t==null)?void 0:t=>{for(let n of a)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Ad0(...a){if(a.length===0)return{};if(a.length===1)return a[0];let t={},n={};for(let r of a)for(let l in r)l.startsWith("on")&&typeof r[l]=="function"?(n[l]!=null||(n[l]=[]),n[l].push(r[l])):t[l]=r[l];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[l=>{var i;return(i=l?.preventDefault)==null?void 0:i.call(l)}]);for(let r in n)Object.assign(t,{[r](l,...i){let o=n[r];for(let s of o){if((l instanceof Event||l?.nativeEvent instanceof Event)&&l.defaultPrevented)return;s(l,...i)}}});return t}function Im(...a){if(a.length===0)return{};if(a.length===1)return a[0];let t={},n={};for(let r of a)for(let l in r)l.startsWith("on")&&typeof r[l]=="function"?(n[l]!=null||(n[l]=[]),n[l].push(r[l])):t[l]=r[l];for(let r in n)Object.assign(t,{[r](...l){let i=n[r];for(let o of i)o?.(...l)}});return t}function Vt(a){var t;return Object.assign(e.forwardRef(a),{displayName:(t=a.displayName)!=null?t:a.name})}function e5(a){let t=Object.assign({},a);for(let n in t)t[n]===void 0&&delete t[n];return t}function PS(a,t=[]){let n=Object.assign({},a);for(let r of t)r in n&&delete n[r];return n}function HD0(a){return u1.version.split(".")[0]>="19"?a.props.ref:a.ref}function Pm(a){return a===e.Fragment||a===Symbol.for("react.fragment")}function ED0(a){return Pm(a.type)}let MD0="button";function yD0(a,t){var n;let r=pg(),{disabled:l=r||!1,autoFocus:i=!1,...o}=a,{isFocusVisible:s,focusProps:c}=mg({autoFocus:i}),{isHovered:m,hoverProps:h}=dg({isDisabled:l}),{pressed:p,pressProps:v}=TS({disabled:l}),A=Im({ref:t,type:(n=o.type)!=null?n:"button",disabled:l||void 0,autoFocus:i},c,h,v),Z=J6({disabled:l,hover:m,focus:s,active:p,autofocus:i});return Rt()({ourProps:A,theirProps:o,slot:Z,defaultTag:MD0,name:"Button"})}let VD0=Vt(yD0),kD0="span";var vg=(a=>(a[a.None=1]="None",a[a.Focusable=2]="Focusable",a[a.Hidden=4]="Hidden",a))(vg||{});function SD0(a,t){var n;let{features:r=1,...l}=a,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=l["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Rt()({ourProps:i,theirProps:l,slot:{},defaultTag:kD0,name:"Hidden"})}let xS=Vt(SD0),FD0=e.createContext(void 0);function Zd0(){return e.useContext(FD0)}function Hd0(a){return typeof a!="object"||a===null?!1:"nodeType"in a}function yl(a){return Hd0(a)&&"tagName"in a}function e4(a){return yl(a)&&"accessKey"in a}function pr(a){return yl(a)&&"tabIndex"in a}function LD0(a){return yl(a)&&"style"in a}function bD0(a){return e4(a)&&a.nodeName==="IFRAME"}function Ed0(a){return e4(a)&&a.nodeName==="INPUT"}function Md0(a){return e4(a)&&a.nodeName==="LABEL"}function _D0(a){return e4(a)&&a.nodeName==="FIELDSET"}function yd0(a){return e4(a)&&a.nodeName==="LEGEND"}function ND0(a){return yl(a)?a.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function Vd0(a){let t=a.parentElement,n=null;for(;t&&!_D0(t);)yd0(t)&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&wD0(n)?!1:r}function wD0(a){if(!a)return!1;let t=a.previousElementSibling;for(;t!==null;){if(yd0(t))return!1;t=t.previousElementSibling}return!0}let kd0=Symbol();function CD0(a,t=!0){return Object.assign(a,{[kd0]:t})}function s6(...a){let t=e.useRef(a);e.useEffect(()=>{t.current=a},[a]);let n=Fe(r=>{for(let l of t.current)l!=null&&(typeof l=="function"?l(r):l.current=r)});return a.every(r=>r==null||r?.[kd0])?void 0:n}let gg=e.createContext(null);gg.displayName="DescriptionContext";function Sd0(){let a=e.useContext(gg);if(a===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Sd0),t}return a}function TD0(){var a,t;return(t=(a=e.useContext(gg))==null?void 0:a.value)!=null?t:void 0}function Fd0(){let[a,t]=e.useState([]);return[a.length>0?a.join(" "):void 0,e.useMemo(()=>function(n){let r=Fe(i=>(t(o=>[...o,i]),()=>t(o=>{let s=o.slice(),c=s.indexOf(i);return c!==-1&&s.splice(c,1),s}))),l=e.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return u1.createElement(gg.Provider,{value:l},n.children)},[t])]}let ID0="p";function PD0(a,t){let n=e.useId(),r=pg(),{id:l=`headlessui-description-${n}`,...i}=a,o=Sd0(),s=s6(t);yt(()=>o.register(l),[l,o.register]);let c=J6({...o.slot,disabled:r||!1}),m={ref:s,...o.props,id:l};return Rt()({ourProps:m,theirProps:i,slot:c,defaultTag:ID0,name:o.name||"Description"})}let xD0=Vt(PD0),OD0=Object.assign(xD0,{});var Ja=(a=>(a.Space=" ",a.Enter="Enter",a.Escape="Escape",a.Backspace="Backspace",a.Delete="Delete",a.ArrowLeft="ArrowLeft",a.ArrowUp="ArrowUp",a.ArrowRight="ArrowRight",a.ArrowDown="ArrowDown",a.Home="Home",a.End="End",a.PageUp="PageUp",a.PageDown="PageDown",a.Tab="Tab",a))(Ja||{});let Ag=e.createContext(null);Ag.displayName="LabelContext";function OS(){let a=e.useContext(Ag);if(a===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,OS),t}return a}function Ld0(a){var t,n,r;let l=(n=(t=e.useContext(Ag))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[l,...a].filter(Boolean).join(" "):l}function bd0({inherit:a=!1}={}){let t=Ld0(),[n,r]=e.useState([]),l=a?[t,...n].filter(Boolean):n;return[l.length>0?l.join(" "):void 0,e.useMemo(()=>function(i){let o=Fe(c=>(r(m=>[...m,c]),()=>r(m=>{let h=m.slice(),p=h.indexOf(c);return p!==-1&&h.splice(p,1),h}))),s=e.useMemo(()=>({register:o,slot:i.slot,name:i.name,props:i.props,value:i.value}),[o,i.slot,i.name,i.props,i.value]);return u1.createElement(Ag.Provider,{value:s},i.children)},[r])]}let RD0="label";function $D0(a,t){var n;let r=e.useId(),l=OS(),i=Zd0(),o=pg(),{id:s=`headlessui-label-${r}`,htmlFor:c=i??((n=l.props)==null?void 0:n.htmlFor),passive:m=!1,...h}=a,p=s6(t);yt(()=>l.register(s),[s,l.register]);let v=Fe(E=>{let M=E.currentTarget;if(!(E.target!==E.currentTarget&&ND0(E.target))&&(Md0(M)&&E.preventDefault(),l.props&&"onClick"in l.props&&typeof l.props.onClick=="function"&&l.props.onClick(E),Md0(M))){let S=document.getElementById(M.htmlFor);if(S){let L=S.getAttribute("disabled");if(L==="true"||L==="")return;let _=S.getAttribute("aria-disabled");if(_==="true"||_==="")return;(Ed0(S)&&(S.type==="file"||S.type==="radio"||S.type==="checkbox")||S.role==="radio"||S.role==="checkbox"||S.role==="switch")&&S.click(),S.focus({preventScroll:!0})}}}),A=J6({...l.slot,disabled:o||!1}),Z={ref:p,...l.props,id:s,htmlFor:c,onClick:v};return m&&("onClick"in Z&&(delete Z.htmlFor,delete Z.onClick),"onClick"in h&&delete h.onClick),Rt()({ourProps:Z,theirProps:h,slot:A,defaultTag:c?RD0:"div",name:l.name||"Label"})}let DD0=Vt($D0),jD0=Object.assign(DD0,{}),BD0=e.createContext(()=>{});function UD0({value:a,children:t}){return u1.createElement(BD0.Provider,{value:a},t)}function _d0(a){if(a===null)return{width:0,height:0};let{width:t,height:n}=a.getBoundingClientRect();return{width:t,height:n}}function zD0(a,t,n=!1){let[r,l]=e.useState(()=>_d0(t));return yt(()=>{if(!t||!a)return;let i=w6();return i.requestAnimationFrame(function o(){i.requestAnimationFrame(o),l(s=>{let c=_d0(t);return c.width===s.width&&c.height===s.height?s:c})}),()=>{i.dispose()}},[t,a]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}var Nd0=(a=>(a[a.Left=0]="Left",a[a.Right=2]="Right",a))(Nd0||{});function qD0(a){let t=e.useRef(null),n=Fe(l=>{t.current=l.pointerType,!Vd0(l.currentTarget)&&l.pointerType==="mouse"&&l.button===Nd0.Left&&(l.preventDefault(),a(l))}),r=Fe(l=>{t.current!=="mouse"&&(Vd0(l.currentTarget)||a(l))});return{onPointerDown:n,onClick:r}}let wd0=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var GD0=Object.defineProperty,WD0=(a,t,n)=>t in a?GD0(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n,KD0=(a,t,n)=>(WD0(a,t+"",n),n),Cd0=(a,t,n)=>{if(!t.has(a))throw TypeError("Cannot "+n)},F4=(a,t,n)=>(Cd0(a,t,"read from private field"),n?n.call(a):t.get(a)),RS=(a,t,n)=>{if(t.has(a))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(a):t.set(a,n)},Td0=(a,t,n,r)=>(Cd0(a,t,"write to private field"),t.set(a,n),n),fr,xm,Om;let Id0=class{constructor(t){RS(this,fr,{}),RS(this,xm,new wd0(()=>new Set)),RS(this,Om,new Set),KD0(this,"disposables",w6()),Td0(this,fr,t),hr.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return F4(this,fr)}subscribe(t,n){if(hr.isServer)return()=>{};let r={selector:t,callback:n,current:t(F4(this,fr))};return F4(this,Om).add(r),this.disposables.add(()=>{F4(this,Om).delete(r)})}on(t,n){return hr.isServer?()=>{}:(F4(this,xm).get(t).add(n),this.disposables.add(()=>{F4(this,xm).get(t).delete(n)}))}send(t){let n=this.reduce(F4(this,fr),t);if(n!==F4(this,fr)){Td0(this,fr,n);for(let r of F4(this,Om)){let l=r.selector(F4(this,fr));Pd0(r.current,l)||(r.current=l,r.callback(l))}for(let r of F4(this,xm).get(t.type))r(F4(this,fr),t)}}};fr=new WeakMap,xm=new WeakMap,Om=new WeakMap;function Pd0(a,t){return Object.is(a,t)?!0:typeof a!="object"||a===null||typeof t!="object"||t===null?!1:Array.isArray(a)&&Array.isArray(t)?a.length!==t.length?!1:$S(a[Symbol.iterator](),t[Symbol.iterator]()):a instanceof Map&&t instanceof Map||a instanceof Set&&t instanceof Set?a.size!==t.size?!1:$S(a.entries(),t.entries()):xd0(a)&&xd0(t)?$S(Object.entries(a)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function $S(a,t){do{let n=a.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}while(!0)}function xd0(a){if(Object.prototype.toString.call(a)!=="[object Object]")return!1;let t=Object.getPrototypeOf(a);return t===null||Object.getPrototypeOf(t)===null}function Od0(a){let[t,n]=a(),r=w6();return(...l)=>{t(...l),r.dispose(),r.microTask(n)}}var YD0=Object.defineProperty,QD0=(a,t,n)=>t in a?YD0(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n,Rd0=(a,t,n)=>(QD0(a,typeof t!="symbol"?t+"":t,n),n),$d0=(a=>(a[a.Push=0]="Push",a[a.Pop=1]="Pop",a))($d0||{});let XD0={0(a,t){let n=t.id,r=a.stack,l=a.stack.indexOf(n);if(l!==-1){let i=a.stack.slice();return i.splice(l,1),i.push(n),r=i,{...a,stack:r}}return{...a,stack:[...a.stack,n]}},1(a,t){let n=t.id,r=a.stack.indexOf(n);if(r===-1)return a;let l=a.stack.slice();return l.splice(r,1),{...a,stack:l}}},JD0=class uS0 extends Id0{constructor(){super(...arguments),Rd0(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),Rd0(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new uS0({stack:[]})}reduce(t,n){return un(n.type,XD0,t,n)}};const Zg=new wd0(()=>JD0.new());var Hg={exports:{}},DS={};var Dd0;function ej0(){if(Dd0)return DS;Dd0=1;var a=y2();function t(c,m){return c===m&&(c!==0||1/c===1/m)||c!==c&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=a.useSyncExternalStore,l=a.useRef,i=a.useEffect,o=a.useMemo,s=a.useDebugValue;return DS.useSyncExternalStoreWithSelector=function(c,m,h,p,v){var A=l(null);if(A.current===null){var Z={hasValue:!1,value:null};A.current=Z}else Z=A.current;A=o(function(){function M(V){if(!S){if(S=!0,L=V,V=p(V),v!==void 0&&Z.hasValue){var C=Z.value;if(v(C,V))return _=C}return _=V}if(C=_,n(L,V))return C;var P=p(V);return v!==void 0&&v(C,P)?(L=V,C):(L=V,_=P)}var S=!1,L,_,N=h===void 0?null:h;return[function(){return M(m())},N===null?void 0:function(){return M(N())}]},[m,h,p,v]);var E=r(c,A[0],A[1]);return i(function(){Z.hasValue=!0,Z.value=E},[E]),s(E),E},DS}var jS={},jd0;function tj0(){if(jd0)return jS;jd0=1;var a={};return a.NODE_ENV!=="production"&&(function(){function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=y2(),r=typeof Object.is=="function"?Object.is:t,l=n.useSyncExternalStore,i=n.useRef,o=n.useEffect,s=n.useMemo,c=n.useDebugValue;jS.useSyncExternalStoreWithSelector=function(m,h,p,v,A){var Z=i(null);if(Z.current===null){var E={hasValue:!1,value:null};Z.current=E}else E=Z.current;Z=s(function(){function S(C){if(!L){if(L=!0,_=C,C=v(C),A!==void 0&&E.hasValue){var P=E.value;if(A(P,C))return N=P}return N=C}if(P=N,r(_,C))return P;var x=v(C);return A!==void 0&&A(P,x)?(_=C,P):(_=C,N=x)}var L=!1,_,N,V=p===void 0?null:p;return[function(){return S(h())},V===null?void 0:function(){return S(V())}]},[h,p,v,A]);var M=l(m,Z[0],Z[1]);return o(function(){E.hasValue=!0,E.value=M},[M]),c(M),M},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),jS}var Bd0;function aj0(){if(Bd0)return Hg.exports;Bd0=1;var a={};return a.NODE_ENV==="production"?Hg.exports=ej0():Hg.exports=tj0(),Hg.exports}var nj0=aj0();function L4(a,t,n=Pd0){return nj0.useSyncExternalStoreWithSelector(Fe(r=>a.subscribe(rj0,r)),Fe(()=>a.state),Fe(()=>a.state),Fe(t),n)}function rj0(a){return a}function Rm(a,t){let n=e.useId(),r=Zg.get(t),[l,i]=L4(r,e.useCallback(o=>[r.selectors.isTop(o,n),r.selectors.inStack(o,n)],[r,n]));return yt(()=>{if(a)return r.actions.push(n),()=>r.actions.pop(n)},[r,a,n]),a?i?l:!0:!1}let BS=new Map,$m=new Map;function Ud0(a){var t;let n=(t=$m.get(a))!=null?t:0;return $m.set(a,n+1),n!==0?()=>zd0(a):(BS.set(a,{"aria-hidden":a.getAttribute("aria-hidden"),inert:a.inert}),a.setAttribute("aria-hidden","true"),a.inert=!0,()=>zd0(a))}function zd0(a){var t;let n=(t=$m.get(a))!=null?t:1;if(n===1?$m.delete(a):$m.set(a,n-1),n!==1)return;let r=BS.get(a);r&&(r["aria-hidden"]===null?a.removeAttribute("aria-hidden"):a.setAttribute("aria-hidden",r["aria-hidden"]),a.inert=r.inert,BS.delete(a))}function qd0(a,{allowed:t,disallowed:n}={}){let r=Rm(a,"inert-others");yt(()=>{var l,i;if(!r)return;let o=w6();for(let c of(l=n?.())!=null?l:[])c&&o.add(Ud0(c));let s=(i=t?.())!=null?i:[];for(let c of s){if(!c)continue;let m=Qo(c);if(!m)continue;let h=c.parentElement;for(;h&&h!==m.body;){for(let p of h.children)s.some(v=>p.contains(v))||o.add(Ud0(p));h=h.parentElement}}return o.dispose},[r,t,n])}function Gd0(a,t,n){let r=Jo(l=>{let i=l.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});e.useEffect(()=>{if(!a)return;let l=t===null?null:e4(t)?t:t.current;if(!l)return;let i=w6();if(typeof ResizeObserver<"u"){let o=new ResizeObserver(()=>r.current(l));o.observe(l),i.add(()=>o.disconnect())}if(typeof IntersectionObserver<"u"){let o=new IntersectionObserver(()=>r.current(l));o.observe(l),i.add(()=>o.disconnect())}return()=>i.dispose()},[t,r,a])}let Eg=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(a=>`${a}:not([tabindex='-1'])`).join(","),lj0=["[data-autofocus]"].map(a=>`${a}:not([tabindex='-1'])`).join(",");var hn=(a=>(a[a.First=1]="First",a[a.Previous=2]="Previous",a[a.Next=4]="Next",a[a.Last=8]="Last",a[a.WrapAround=16]="WrapAround",a[a.NoScroll=32]="NoScroll",a[a.AutoFocus=64]="AutoFocus",a))(hn||{}),US=(a=>(a[a.Error=0]="Error",a[a.Overflow=1]="Overflow",a[a.Success=2]="Success",a[a.Underflow=3]="Underflow",a))(US||{}),ij0=(a=>(a[a.Previous=-1]="Previous",a[a.Next=1]="Next",a))(ij0||{});function Wd0(a=document.body){return a==null?[]:Array.from(a.querySelectorAll(Eg)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function oj0(a=document.body){return a==null?[]:Array.from(a.querySelectorAll(lj0)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var zS=(a=>(a[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a))(zS||{});function qS(a,t=0){var n;return a===((n=Qo(a))==null?void 0:n.body)?!1:un(t,{0(){return a.matches(Eg)},1(){let r=a;for(;r!==null;){if(r.matches(Eg))return!0;r=r.parentElement}return!1}})}function Kd0(a){w6().nextFrame(()=>{let t=CS(a);t&&pr(t)&&!qS(t,0)&&vr(a)})}var sj0=(a=>(a[a.Keyboard=0]="Keyboard",a[a.Mouse=1]="Mouse",a))(sj0||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",a=>{a.metaKey||a.altKey||a.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",a=>{a.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:a.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function vr(a){a?.focus({preventScroll:!0})}let cj0=["textarea","input"].join(",");function dj0(a){var t,n;return(n=(t=a?.matches)==null?void 0:t.call(a,cj0))!=null?n:!1}function Yd0(a,t=n=>n){return a.slice().sort((n,r)=>{let l=t(n),i=t(r);if(l===null||i===null)return 0;let o=l.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function mj0(a,t,n=a===null?document.body:ug(a)){return U7(Wd0(n),t,{relativeTo:a})}function U7(a,t,{sorted:n=!0,relativeTo:r=null,skipElements:l=[]}={}){let i=Array.isArray(a)?a.length>0?ug(a[0]):document:ug(a),o=Array.isArray(a)?n?Yd0(a):a:t&64?oj0(a):Wd0(a);l.length>0&&o.length>1&&(o=o.filter(A=>!l.some(Z=>Z!=null&&"current"in Z?Z?.current===A:Z===A))),r=r??i?.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,o.indexOf(r))-1;if(t&4)return Math.max(0,o.indexOf(r))+1;if(t&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),m=t&32?{preventScroll:!0}:{},h=0,p=o.length,v;do{if(h>=p||h+p<=0)return 0;let A=c+h;if(t&16)A=(A+p)%p;else{if(A<0)return 3;if(A>=p)return 1}v=o[A],v?.focus(m),h+=s}while(v!==CS(v));return t&6&&dj0(v)&&v.select(),2}function Qd0(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function uj0(){return/Android/gi.test(window.navigator.userAgent)}function Xd0(){return Qd0()||uj0()}function z7(a,t,n,r){let l=Jo(n);e.useEffect(()=>{if(!a)return;function i(o){l.current(o)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[a,t,r])}function Jd0(a,t,n,r){let l=Jo(n);e.useEffect(()=>{if(!a)return;function i(o){l.current(o)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[a,t,r])}const e90=30;function t90(a,t,n){let r=Jo(n),l=e.useCallback(function(s,c){if(s.defaultPrevented)return;let m=c(s);if(m===null||!m.getRootNode().contains(m)||!m.isConnected)return;let h=(function p(v){return typeof v=="function"?p(v()):Array.isArray(v)||v instanceof Set?v:[v]})(t);for(let p of h)if(p!==null&&(p.contains(m)||s.composed&&s.composedPath().includes(p)))return;return!qS(m,zS.Loose)&&m.tabIndex!==-1&&s.preventDefault(),r.current(s,m)},[r,t]),i=e.useRef(null);z7(a,"pointerdown",s=>{var c,m;Xd0()||(i.current=((m=(c=s.composedPath)==null?void 0:c.call(s))==null?void 0:m[0])||s.target)},!0),z7(a,"pointerup",s=>{if(Xd0()||!i.current)return;let c=i.current;return i.current=null,l(s,()=>c)},!0);let o=e.useRef({x:0,y:0});z7(a,"touchstart",s=>{o.current.x=s.touches[0].clientX,o.current.y=s.touches[0].clientY},!0),z7(a,"touchend",s=>{let c={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(c.x-o.current.x)>=e90||Math.abs(c.y-o.current.y)>=e90))return l(s,()=>pr(s.target)?s.target:null)},!0),Jd0(a,"blur",s=>l(s,()=>bD0(window.document.activeElement)?window.document.activeElement:null),!0)}function Dm(...a){return e.useMemo(()=>Qo(...a),[...a])}var hj0=(a=>(a[a.Ignore=0]="Ignore",a[a.Select=1]="Select",a[a.Close=2]="Close",a))(hj0||{});const Mg={Ignore:{kind:0},Select:a=>({kind:1,target:a}),Close:{kind:2}},pj0=200,a90=5;function fj0(a,{trigger:t,action:n,close:r,select:l}){let i=e.useRef(null),o=e.useRef(null),s=e.useRef(null);z7(a&&t!==null,"pointerdown",c=>{Hd0(c?.target)&&t!=null&&t.contains(c.target)&&(o.current=c.x,s.current=c.y,i.current=c.timeStamp)}),z7(a&&t!==null,"pointerup",c=>{var m,h;let p=i.current;if(p===null||(i.current=null,!pr(c.target))||Math.abs(c.x-((m=o.current)!=null?m:c.x))<a90&&Math.abs(c.y-((h=s.current)!=null?h:c.y))<a90)return;let v=n(c);switch(v.kind){case 0:return;case 1:{c.timeStamp-p>pj0&&(l(v.target),r());break}case 2:{r();break}}},{capture:!0})}function n90(a,t,n,r){let l=Jo(n);e.useEffect(()=>{a=a??window;function i(o){l.current(o)}return a.addEventListener(t,i,r),()=>a.removeEventListener(t,i,r)},[a,t,r])}function vj0(a,t){return e.useMemo(()=>{var n;if(a.type)return a.type;let r=(n=a.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||t?.tagName==="BUTTON"&&!t.hasAttribute("type"))return"button"},[a.type,a.as,t])}function gj0(a){return e.useSyncExternalStore(a.subscribe,a.getSnapshot,a.getSnapshot)}function Aj0(a,t){let n=a(),r=new Set;return{getSnapshot(){return n},subscribe(l){return r.add(l),()=>r.delete(l)},dispatch(l,...i){let o=t[l].call(n,...i);o&&(n=o,r.forEach(s=>s()))}}}function Zj0(){let a;return{before({doc:t}){var n;let r=t.documentElement,l=(n=t.defaultView)!=null?n:window;a=Math.max(0,l.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,l=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,a-l);n.style(r,"paddingRight",`${i}px`)}}}function Hj0(){return Qd0()?{before({doc:a,d:t,meta:n}){function r(l){for(let i of n().containers)for(let o of i())if(o.contains(l))return!0;return!1}t.microTask(()=>{var l;if(window.getComputedStyle(a.documentElement).scrollBehavior!=="auto"){let s=w6();s.style(a.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let i=(l=window.scrollY)!=null?l:window.pageYOffset,o=null;t.addEventListener(a,"click",s=>{if(pr(s.target))try{let c=s.target.closest("a");if(!c)return;let{hash:m}=new URL(c.href),h=a.querySelector(m);pr(h)&&!r(h)&&(o=h)}catch{}},!0),t.group(s=>{t.addEventListener(a,"touchstart",c=>{if(s.dispose(),pr(c.target)&&LD0(c.target))if(r(c.target)){let m=c.target;for(;m.parentElement&&r(m.parentElement);)m=m.parentElement;s.style(m,"overscrollBehavior","contain")}else s.style(c.target,"touchAction","none")})}),t.addEventListener(a,"touchmove",s=>{if(pr(s.target)){if(Ed0(s.target))return;if(r(s.target)){let c=s.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let c=(s=window.scrollY)!=null?s:window.pageYOffset;i!==c&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function Ej0(){return{before({doc:a,d:t}){t.style(a.documentElement,"overflow","hidden")}}}function r90(a){let t={};for(let n of a)Object.assign(t,n(t));return t}let t5=Aj0(()=>new Map,{PUSH(a,t){var n;let r=(n=this.get(a))!=null?n:{doc:a,count:0,d:w6(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=r90(r.meta),this.set(a,r),this},POP(a,t){let n=this.get(a);return n&&(n.count--,n.meta.delete(t),n.computedMeta=r90(n.meta)),this},SCROLL_PREVENT(a){let t={doc:a.doc,d:a.d,meta(){return a.computedMeta}},n=[Hj0(),Zj0(),Ej0()];n.forEach(({before:r})=>r?.(t)),n.forEach(({after:r})=>r?.(t))},SCROLL_ALLOW({d:a}){a.dispose()},TEARDOWN({doc:a}){this.delete(a)}});t5.subscribe(()=>{let a=t5.getSnapshot(),t=new Map;for(let[n]of a)t.set(n,n.documentElement.style.overflow);for(let n of a.values()){let r=t.get(n.doc)==="hidden",l=n.count!==0;(l&&!r||!l&&r)&&t5.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&t5.dispatch("TEARDOWN",n)}});function Mj0(a,t,n=()=>({containers:[]})){let r=gj0(t5),l=t?r.get(t):void 0,i=l?l.count>0:!1;return yt(()=>{if(!(!t||!a))return t5.dispatch("PUSH",t,n),()=>t5.dispatch("POP",t,n)},[a,t]),i}function l90(a,t,n=()=>[document.body]){let r=Rm(a,"scroll-lock");Mj0(r,t,l=>{var i;return{containers:[...(i=l.containers)!=null?i:[],n]}})}function i90(a){return[a.screenX,a.screenY]}function yj0(){let a=e.useRef([-1,-1]);return{wasMoved(t){let n=i90(t);return a.current[0]===n[0]&&a.current[1]===n[1]?!1:(a.current=n,!0)},update(t){a.current=i90(t)}}}function Vj0(a=0){let[t,n]=e.useState(a),r=e.useCallback(c=>n(c),[]),l=e.useCallback(c=>n(m=>m|c),[]),i=e.useCallback(c=>(t&c)===c,[t]),o=e.useCallback(c=>n(m=>m&~c),[]),s=e.useCallback(c=>n(m=>m^c),[]);return{flags:t,setFlag:r,addFlag:l,hasFlag:i,removeFlag:o,toggleFlag:s}}var kj0={},o90,s90;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((o90=process==null?void 0:kj0)==null?void 0:o90.NODE_ENV)==="test"&&typeof((s90=Element?.prototype)==null?void 0:s90.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
247
|
-
`)),[]});var Sj0=(a=>(a[a.None=0]="None",a[a.Closed=1]="Closed",a[a.Enter=2]="Enter",a[a.Leave=4]="Leave",a))(Sj0||{});function c90(a){let t={};for(let n in a)a[n]===!0&&(t[`data-${n}`]="");return t}function d90(a,t,n,r){let[l,i]=e.useState(n),{hasFlag:o,addFlag:s,removeFlag:c}=Vj0(a&&l?3:0),m=e.useRef(!1),h=e.useRef(!1),p=Xo();return yt(()=>{var v;if(a){if(n&&i(!0),!t){n&&s(3);return}return(v=r?.start)==null||v.call(r,n),Fj0(t,{inFlight:m,prepare(){h.current?h.current=!1:h.current=m.current,m.current=!0,!h.current&&(n?(s(3),c(4)):(s(4),c(2)))},run(){h.current?n?(c(3),s(4)):(c(4),s(3)):n?c(1):s(1)},done(){var A;h.current&&_j0(t)||(m.current=!1,c(7),n||i(!1),(A=r?.end)==null||A.call(r,n))}})}},[a,n,t,p]),a?[l,{closed:o(1),enter:o(2),leave:o(4),transition:o(2)||o(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Fj0(a,{prepare:t,run:n,done:r,inFlight:l}){let i=w6();return bj0(a,{prepare:t,inFlight:l}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(Lj0(a,r))})}),i.dispose}function Lj0(a,t){var n,r;let l=w6();if(!a)return l.dispose;let i=!1;l.add(()=>{i=!0});let o=(r=(n=a.getAnimations)==null?void 0:n.call(a).filter(s=>s instanceof CSSTransition))!=null?r:[];return o.length===0?(t(),l.dispose):(Promise.allSettled(o.map(s=>s.finished)).then(()=>{i||t()}),l.dispose)}function bj0(a,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=a.style.transition;a.style.transition="none",n(),a.offsetHeight,a.style.transition=r}function _j0(a){var t,n;return((n=(t=a.getAnimations)==null?void 0:t.call(a))!=null?n:[]).some(r=>r instanceof CSSTransition&&r.playState!=="finished")}function Nj0(a,{container:t,accept:n,walk:r}){let l=e.useRef(n),i=e.useRef(r);e.useEffect(()=>{l.current=n,i.current=r},[n,r]),yt(()=>{if(!t||!a)return;let o=Qo(t);if(!o)return;let s=l.current,c=i.current,m=Object.assign(p=>s(p),{acceptNode:s}),h=o.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,m,!1);for(;h.nextNode();)c(h.currentNode)},[t,a,l,i])}function GS(a,t){let n=e.useRef([]),r=Fe(a);e.useEffect(()=>{let l=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let s=r(t,l);return n.current=t,s}},[r,...t])}function wj0(a){var t;return(a==null||(t=a.ownerDocument)==null?void 0:t.defaultView)||window}function jm(a){return a instanceof Element||a instanceof wj0(a).Element}function Cj0(){const a=navigator.userAgentData;return a&&Array.isArray(a.brands)?a.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Tj0(a,t){return typeof a=="function"?a(t):a}const Qi=Math.min,t4=Math.max,yg=Math.round,Vg=Math.floor,Xi=a=>({x:a,y:a}),Ij0={left:"right",right:"left",bottom:"top",top:"bottom"},Pj0={start:"end",end:"start"};function m90(a,t,n){return t4(a,Qi(t,n))}function Bm(a,t){return typeof a=="function"?a(t):a}function Ji(a){return a.split("-")[0]}function Um(a){return a.split("-")[1]}function u90(a){return a==="x"?"y":"x"}function h90(a){return a==="y"?"height":"width"}function a5(a){return["top","bottom"].includes(Ji(a))?"y":"x"}function p90(a){return u90(a5(a))}function xj0(a,t,n){n===void 0&&(n=!1);const r=Um(a),l=p90(a),i=h90(l);let o=l==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=kg(o)),[o,kg(o)]}function Oj0(a){const t=kg(a);return[WS(a),t,WS(t)]}function WS(a){return a.replace(/start|end/g,t=>Pj0[t])}function Rj0(a,t,n){const r=["left","right"],l=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(a){case"top":case"bottom":return n?t?l:r:t?r:l;case"left":case"right":return t?i:o;default:return[]}}function $j0(a,t,n,r){const l=Um(a);let i=Rj0(Ji(a),n==="start",r);return l&&(i=i.map(o=>o+"-"+l),t&&(i=i.concat(i.map(WS)))),i}function kg(a){return a.replace(/left|right|bottom|top/g,t=>Ij0[t])}function Dj0(a){return{top:0,right:0,bottom:0,left:0,...a}}function jj0(a){return typeof a!="number"?Dj0(a):{top:a,right:a,bottom:a,left:a}}function Sg(a){const{x:t,y:n,width:r,height:l}=a;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function f90(a,t,n){let{reference:r,floating:l}=a;const i=a5(t),o=p90(t),s=h90(o),c=Ji(t),m=i==="y",h=r.x+r.width/2-l.width/2,p=r.y+r.height/2-l.height/2,v=r[s]/2-l[s]/2;let A;switch(c){case"top":A={x:h,y:r.y-l.height};break;case"bottom":A={x:h,y:r.y+r.height};break;case"right":A={x:r.x+r.width,y:p};break;case"left":A={x:r.x-l.width,y:p};break;default:A={x:r.x,y:r.y}}switch(Um(t)){case"start":A[o]-=v*(n&&m?-1:1);break;case"end":A[o]+=v*(n&&m?-1:1);break}return A}const Bj0=async(a,t,n)=>{const{placement:r="bottom",strategy:l="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let m=await o.getElementRects({reference:a,floating:t,strategy:l}),{x:h,y:p}=f90(m,r,c),v=r,A={},Z=0;for(let E=0;E<s.length;E++){const{name:M,fn:S}=s[E],{x:L,y:_,data:N,reset:V}=await S({x:h,y:p,initialPlacement:r,placement:v,strategy:l,middlewareData:A,rects:m,platform:o,elements:{reference:a,floating:t}});h=L??h,p=_??p,A={...A,[M]:{...A[M],...N}},V&&Z<=50&&(Z++,typeof V=="object"&&(V.placement&&(v=V.placement),V.rects&&(m=V.rects===!0?await o.getElementRects({reference:a,floating:t,strategy:l}):V.rects),{x:h,y:p}=f90(m,v,c)),E=-1)}return{x:h,y:p,placement:v,strategy:l,middlewareData:A}};async function Fg(a,t){var n;t===void 0&&(t={});const{x:r,y:l,platform:i,rects:o,elements:s,strategy:c}=a,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:v=!1,padding:A=0}=Bm(t,a),Z=jj0(A),M=s[v?p==="floating"?"reference":"floating":p],S=Sg(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(M)))==null||n?M:M.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:m,rootBoundary:h,strategy:c})),L=p==="floating"?{x:r,y:l,width:o.floating.width,height:o.floating.height}:o.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),N=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},V=Sg(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:L,offsetParent:_,strategy:c}):L);return{top:(S.top-V.top+Z.top)/N.y,bottom:(V.bottom-S.bottom+Z.bottom)/N.y,left:(S.left-V.left+Z.left)/N.x,right:(V.right-S.right+Z.right)/N.x}}const Uj0=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(t){var n,r;const{placement:l,middlewareData:i,rects:o,initialPlacement:s,platform:c,elements:m}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:E=!0,...M}=Bm(a,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const S=Ji(l),L=a5(s),_=Ji(s)===s,N=await(c.isRTL==null?void 0:c.isRTL(m.floating)),V=v||(_||!E?[kg(s)]:Oj0(s)),C=Z!=="none";!v&&C&&V.push(...$j0(s,E,Z,N));const P=[s,...V],x=await Fg(t,M),$=[];let D=((r=i.flip)==null?void 0:r.overflows)||[];if(h&&$.push(x[S]),p){const G=xj0(l,o,N);$.push(x[G[0]],x[G[1]])}if(D=[...D,{placement:l,overflows:$}],!$.every(G=>G<=0)){var z,Y;const G=(((z=i.flip)==null?void 0:z.index)||0)+1,W=P[G];if(W)return{data:{index:G,overflows:D},reset:{placement:W}};let o0=(Y=D.filter(v0=>v0.overflows[0]<=0).sort((v0,l0)=>v0.overflows[1]-l0.overflows[1])[0])==null?void 0:Y.placement;if(!o0)switch(A){case"bestFit":{var i0;const v0=(i0=D.filter(l0=>{if(C){const n0=a5(l0.placement);return n0===L||n0==="y"}return!0}).map(l0=>[l0.placement,l0.overflows.filter(n0=>n0>0).reduce((n0,J)=>n0+J,0)]).sort((l0,n0)=>l0[1]-n0[1])[0])==null?void 0:i0[0];v0&&(o0=v0);break}case"initialPlacement":o0=s;break}if(l!==o0)return{reset:{placement:o0}}}return{}}}};async function zj0(a,t){const{placement:n,platform:r,elements:l}=a,i=await(r.isRTL==null?void 0:r.isRTL(l.floating)),o=Ji(n),s=Um(n),c=a5(n)==="y",m=["left","top"].includes(o)?-1:1,h=i&&c?-1:1,p=Bm(t,a);let{mainAxis:v,crossAxis:A,alignmentAxis:Z}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return s&&typeof Z=="number"&&(A=s==="end"?Z*-1:Z),c?{x:A*h,y:v*m}:{x:v*m,y:A*h}}const qj0=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(t){var n,r;const{x:l,y:i,placement:o,middlewareData:s}=t,c=await zj0(t,a);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:l+c.x,y:i+c.y,data:{...c,placement:o}}}}},Gj0=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(t){const{x:n,y:r,placement:l}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:M=>{let{x:S,y:L}=M;return{x:S,y:L}}},...c}=Bm(a,t),m={x:n,y:r},h=await Fg(t,c),p=a5(Ji(l)),v=u90(p);let A=m[v],Z=m[p];if(i){const M=v==="y"?"top":"left",S=v==="y"?"bottom":"right",L=A+h[M],_=A-h[S];A=m90(L,A,_)}if(o){const M=p==="y"?"top":"left",S=p==="y"?"bottom":"right",L=Z+h[M],_=Z-h[S];Z=m90(L,Z,_)}const E=s.fn({...t,[v]:A,[p]:Z});return{...E,data:{x:E.x-n,y:E.y-r}}}}},Wj0=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(t){const{placement:n,rects:r,platform:l,elements:i}=t,{apply:o=()=>{},...s}=Bm(a,t),c=await Fg(t,s),m=Ji(n),h=Um(n),p=a5(n)==="y",{width:v,height:A}=r.floating;let Z,E;m==="top"||m==="bottom"?(Z=m,E=h===(await(l.isRTL==null?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(E=m,Z=h==="end"?"top":"bottom");const M=A-c.top-c.bottom,S=v-c.left-c.right,L=Qi(A-c[Z],M),_=Qi(v-c[E],S),N=!t.middlewareData.shift;let V=L,C=_;if(p?C=h||N?Qi(_,S):S:V=h||N?Qi(L,M):M,N&&!h){const x=t4(c.left,0),$=t4(c.right,0),D=t4(c.top,0),z=t4(c.bottom,0);p?C=v-2*(x!==0||$!==0?x+$:t4(c.left,c.right)):V=A-2*(D!==0||z!==0?D+z:t4(c.top,c.bottom))}await o({...t,availableWidth:C,availableHeight:V});const P=await l.getDimensions(i.floating);return v!==P.width||A!==P.height?{reset:{rects:!0}}:{}}}};function q7(a){return v90(a)?(a.nodeName||"").toLowerCase():"#document"}function a4(a){var t;return(a==null||(t=a.ownerDocument)==null?void 0:t.defaultView)||window}function Vl(a){var t;return(t=(v90(a)?a.ownerDocument:a.document)||window.document)==null?void 0:t.documentElement}function v90(a){return a instanceof Node||a instanceof a4(a).Node}function pn(a){return a instanceof Element||a instanceof a4(a).Element}function gr(a){return a instanceof HTMLElement||a instanceof a4(a).HTMLElement}function g90(a){return typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof a4(a).ShadowRoot}function zm(a){const{overflow:t,overflowX:n,overflowY:r,display:l}=fn(a);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(l)}function Kj0(a){return["table","td","th"].includes(q7(a))}function Lg(a){return[":popover-open",":modal"].some(t=>{try{return a.matches(t)}catch{return!1}})}function KS(a){const t=YS(),n=pn(a)?fn(a):a;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Yj0(a){let t=e3(a);for(;gr(t)&&!G7(t);){if(KS(t))return t;if(Lg(t))return null;t=e3(t)}return null}function YS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function G7(a){return["html","body","#document"].includes(q7(a))}function fn(a){return a4(a).getComputedStyle(a)}function bg(a){return pn(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function e3(a){if(q7(a)==="html")return a;const t=a.assignedSlot||a.parentNode||g90(a)&&a.host||Vl(a);return g90(t)?t.host:t}function A90(a){const t=e3(a);return G7(t)?a.ownerDocument?a.ownerDocument.body:a.body:gr(t)&&zm(t)?t:A90(t)}function qm(a,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=A90(a),i=l===((r=a.ownerDocument)==null?void 0:r.body),o=a4(l);return i?t.concat(o,o.visualViewport||[],zm(l)?l:[],o.frameElement&&n?qm(o.frameElement):[]):t.concat(l,qm(l,[],n))}function Z90(a){const t=fn(a);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const l=gr(a),i=l?a.offsetWidth:n,o=l?a.offsetHeight:r,s=yg(n)!==i||yg(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function QS(a){return pn(a)?a:a.contextElement}function W7(a){const t=QS(a);if(!gr(t))return Xi(1);const n=t.getBoundingClientRect(),{width:r,height:l,$:i}=Z90(t);let o=(i?yg(n.width):n.width)/r,s=(i?yg(n.height):n.height)/l;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Qj0=Xi(0);function H90(a){const t=a4(a);return!YS()||!t.visualViewport?Qj0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xj0(a,t,n){return t===void 0&&(t=!1),!n||t&&n!==a4(a)?!1:t}function n5(a,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=a.getBoundingClientRect(),i=QS(a);let o=Xi(1);t&&(r?pn(r)&&(o=W7(r)):o=W7(a));const s=Xj0(i,n,r)?H90(i):Xi(0);let c=(l.left+s.x)/o.x,m=(l.top+s.y)/o.y,h=l.width/o.x,p=l.height/o.y;if(i){const v=a4(i),A=r&&pn(r)?a4(r):r;let Z=v,E=Z.frameElement;for(;E&&r&&A!==Z;){const M=W7(E),S=E.getBoundingClientRect(),L=fn(E),_=S.left+(E.clientLeft+parseFloat(L.paddingLeft))*M.x,N=S.top+(E.clientTop+parseFloat(L.paddingTop))*M.y;c*=M.x,m*=M.y,h*=M.x,p*=M.y,c+=_,m+=N,Z=a4(E),E=Z.frameElement}}return Sg({width:h,height:p,x:c,y:m})}function Jj0(a){let{elements:t,rect:n,offsetParent:r,strategy:l}=a;const i=l==="fixed",o=Vl(r),s=t?Lg(t.floating):!1;if(r===o||s&&i)return n;let c={scrollLeft:0,scrollTop:0},m=Xi(1);const h=Xi(0),p=gr(r);if((p||!p&&!i)&&((q7(r)!=="body"||zm(o))&&(c=bg(r)),gr(r))){const v=n5(r);m=W7(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-c.scrollLeft*m.x+h.x,y:n.y*m.y-c.scrollTop*m.y+h.y}}function eB0(a){return Array.from(a.getClientRects())}function E90(a){return n5(Vl(a)).left+bg(a).scrollLeft}function tB0(a){const t=Vl(a),n=bg(a),r=a.ownerDocument.body,l=t4(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=t4(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+E90(a);const s=-n.scrollTop;return fn(r).direction==="rtl"&&(o+=t4(t.clientWidth,r.clientWidth)-l),{width:l,height:i,x:o,y:s}}function aB0(a,t){const n=a4(a),r=Vl(a),l=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,c=0;if(l){i=l.width,o=l.height;const m=YS();(!m||m&&t==="fixed")&&(s=l.offsetLeft,c=l.offsetTop)}return{width:i,height:o,x:s,y:c}}function nB0(a,t){const n=n5(a,!0,t==="fixed"),r=n.top+a.clientTop,l=n.left+a.clientLeft,i=gr(a)?W7(a):Xi(1),o=a.clientWidth*i.x,s=a.clientHeight*i.y,c=l*i.x,m=r*i.y;return{width:o,height:s,x:c,y:m}}function M90(a,t,n){let r;if(t==="viewport")r=aB0(a,n);else if(t==="document")r=tB0(Vl(a));else if(pn(t))r=nB0(t,n);else{const l=H90(a);r={...t,x:t.x-l.x,y:t.y-l.y}}return Sg(r)}function y90(a,t){const n=e3(a);return n===t||!pn(n)||G7(n)?!1:fn(n).position==="fixed"||y90(n,t)}function rB0(a,t){const n=t.get(a);if(n)return n;let r=qm(a,[],!1).filter(s=>pn(s)&&q7(s)!=="body"),l=null;const i=fn(a).position==="fixed";let o=i?e3(a):a;for(;pn(o)&&!G7(o);){const s=fn(o),c=KS(o);!c&&s.position==="fixed"&&(l=null),(i?!c&&!l:!c&&s.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||zm(o)&&!c&&y90(a,o))?r=r.filter(h=>h!==o):l=s,o=e3(o)}return t.set(a,r),r}function lB0(a){let{element:t,boundary:n,rootBoundary:r,strategy:l}=a;const o=[...n==="clippingAncestors"?Lg(t)?[]:rB0(t,this._c):[].concat(n),r],s=o[0],c=o.reduce((m,h)=>{const p=M90(t,h,l);return m.top=t4(p.top,m.top),m.right=Qi(p.right,m.right),m.bottom=Qi(p.bottom,m.bottom),m.left=t4(p.left,m.left),m},M90(t,s,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function iB0(a){const{width:t,height:n}=Z90(a);return{width:t,height:n}}function oB0(a,t,n){const r=gr(t),l=Vl(t),i=n==="fixed",o=n5(a,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Xi(0);if(r||!r&&!i)if((q7(t)!=="body"||zm(l))&&(s=bg(t)),r){const p=n5(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else l&&(c.x=E90(l));const m=o.left+s.scrollLeft-c.x,h=o.top+s.scrollTop-c.y;return{x:m,y:h,width:o.width,height:o.height}}function XS(a){return fn(a).position==="static"}function V90(a,t){return!gr(a)||fn(a).position==="fixed"?null:t?t(a):a.offsetParent}function k90(a,t){const n=a4(a);if(Lg(a))return n;if(!gr(a)){let l=e3(a);for(;l&&!G7(l);){if(pn(l)&&!XS(l))return l;l=e3(l)}return n}let r=V90(a,t);for(;r&&Kj0(r)&&XS(r);)r=V90(r,t);return r&&G7(r)&&XS(r)&&!KS(r)?n:r||Yj0(a)||n}const sB0=async function(a){const t=this.getOffsetParent||k90,n=this.getDimensions,r=await n(a.floating);return{reference:oB0(a.reference,await t(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cB0(a){return fn(a).direction==="rtl"}const dB0={convertOffsetParentRelativeRectToViewportRelativeRect:Jj0,getDocumentElement:Vl,getClippingRect:lB0,getOffsetParent:k90,getElementRects:sB0,getClientRects:eB0,getDimensions:iB0,getScale:W7,isElement:pn,isRTL:cB0};function mB0(a,t){let n=null,r;const l=Vl(a);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:m,top:h,width:p,height:v}=a.getBoundingClientRect();if(s||t(),!p||!v)return;const A=Vg(h),Z=Vg(l.clientWidth-(m+p)),E=Vg(l.clientHeight-(h+v)),M=Vg(m),L={rootMargin:-A+"px "+-Z+"px "+-E+"px "+-M+"px",threshold:t4(0,Qi(1,c))||1};let _=!0;function N(V){const C=V[0].intersectionRatio;if(C!==c){if(!_)return o();C?o(!1,C):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_=!1}try{n=new IntersectionObserver(N,{...L,root:l.ownerDocument})}catch{n=new IntersectionObserver(N,L)}n.observe(a)}return o(!0),i}function uB0(a,t,n,r){r===void 0&&(r={});const{ancestorScroll:l=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,m=QS(a),h=l||i?[...m?qm(m):[],...qm(t)]:[];h.forEach(S=>{l&&S.addEventListener("scroll",n,{passive:!0}),i&&S.addEventListener("resize",n)});const p=m&&s?mB0(m,n):null;let v=-1,A=null;o&&(A=new ResizeObserver(S=>{let[L]=S;L&&L.target===m&&A&&(A.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=A)==null||_.observe(t)})),n()}),m&&!c&&A.observe(m),A.observe(t));let Z,E=c?n5(a):null;c&&M();function M(){const S=n5(a);E&&(S.x!==E.x||S.y!==E.y||S.width!==E.width||S.height!==E.height)&&n(),E=S,Z=requestAnimationFrame(M)}return n(),()=>{var S;h.forEach(L=>{l&&L.removeEventListener("scroll",n),i&&L.removeEventListener("resize",n)}),p?.(),(S=A)==null||S.disconnect(),A=null,c&&cancelAnimationFrame(Z)}}const JS=Fg,hB0=qj0,pB0=Gj0,fB0=Uj0,vB0=Wj0,gB0=(a,t,n)=>{const r=new Map,l={platform:dB0,...n},i={...l.platform,_c:r};return Bj0(a,t,{...l,platform:i})};var _g=typeof document<"u"?e.useLayoutEffect:e.useEffect;function Ng(a,t){if(a===t)return!0;if(typeof a!=typeof t)return!1;if(typeof a=="function"&&a.toString()===t.toString())return!0;let n,r,l;if(a&&t&&typeof a=="object"){if(Array.isArray(a)){if(n=a.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ng(a[r],t[r]))return!1;return!0}if(l=Object.keys(a),n=l.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,l[r]))return!1;for(r=n;r--!==0;){const i=l[r];if(!(i==="_owner"&&a.$$typeof)&&!Ng(a[i],t[i]))return!1}return!0}return a!==a&&t!==t}function S90(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function F90(a,t){const n=S90(a);return Math.round(t*n)/n}function L90(a){const t=e.useRef(a);return _g(()=>{t.current=a}),t}function AB0(a){a===void 0&&(a={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:c,open:m}=a,[h,p]=e.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,A]=e.useState(r);Ng(v,r)||A(r);const[Z,E]=e.useState(null),[M,S]=e.useState(null),L=e.useCallback(v0=>{v0!==C.current&&(C.current=v0,E(v0))},[]),_=e.useCallback(v0=>{v0!==P.current&&(P.current=v0,S(v0))},[]),N=i||Z,V=o||M,C=e.useRef(null),P=e.useRef(null),x=e.useRef(h),$=c!=null,D=L90(c),z=L90(l),Y=e.useCallback(()=>{if(!C.current||!P.current)return;const v0={placement:t,strategy:n,middleware:v};z.current&&(v0.platform=z.current),gB0(C.current,P.current,v0).then(l0=>{const n0={...l0,isPositioned:!0};i0.current&&!Ng(x.current,n0)&&(x.current=n0,rn.flushSync(()=>{p(n0)}))})},[v,t,n,z]);_g(()=>{m===!1&&x.current.isPositioned&&(x.current.isPositioned=!1,p(v0=>({...v0,isPositioned:!1})))},[m]);const i0=e.useRef(!1);_g(()=>(i0.current=!0,()=>{i0.current=!1}),[]),_g(()=>{if(N&&(C.current=N),V&&(P.current=V),N&&V){if(D.current)return D.current(N,V,Y);Y()}},[N,V,Y,D,$]);const G=e.useMemo(()=>({reference:C,floating:P,setReference:L,setFloating:_}),[L,_]),W=e.useMemo(()=>({reference:N,floating:V}),[N,V]),o0=e.useMemo(()=>{const v0={position:n,left:0,top:0};if(!W.floating)return v0;const l0=F90(W.floating,h.x),n0=F90(W.floating,h.y);return s?{...v0,transform:"translate("+l0+"px, "+n0+"px)",...S90(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:l0,top:n0}},[n,s,W.floating,h.x,h.y]);return e.useMemo(()=>({...h,update:Y,refs:G,elements:W,floatingStyles:o0}),[h,Y,G,W,o0])}const b90=(a,t)=>({...hB0(a),options:[a,t]}),ZB0=(a,t)=>({...pB0(a),options:[a,t]}),HB0=(a,t)=>({...fB0(a),options:[a,t]}),EB0=(a,t)=>({...vB0(a),options:[a,t]});var wg={};const _90={...Bs},MB0=_90.useInsertionEffect||(a=>a());function N90(a){const t=e.useRef(()=>{if(wg.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return MB0(()=>{t.current=a}),e.useCallback(function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return t.current==null?void 0:t.current(...r)},[])}var eF=typeof document<"u"?e.useLayoutEffect:e.useEffect;let w90=!1,yB0=0;const C90=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+yB0++;function VB0(){const[a,t]=e.useState(()=>w90?C90():void 0);return eF(()=>{a==null&&t(C90())},[]),e.useEffect(()=>{w90=!0},[]),a}const kB0=_90.useId||VB0;let Gm;wg.NODE_ENV!=="production"&&(Gm=new Set);function SB0(){for(var a,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const l="Floating UI: "+n.join(" ");if(!((a=Gm)!=null&&a.has(l))){var i;(i=Gm)==null||i.add(l),console.warn(l)}}function FB0(){for(var a,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const l="Floating UI: "+n.join(" ");if(!((a=Gm)!=null&&a.has(l))){var i;(i=Gm)==null||i.add(l),console.error(l)}}function LB0(){const a=new Map;return{emit(t,n){var r;(r=a.get(t))==null||r.forEach(l=>l(n))},on(t,n){a.set(t,[...a.get(t)||[],n])},off(t,n){var r;a.set(t,((r=a.get(t))==null?void 0:r.filter(l=>l!==n))||[])}}}const bB0=e.createContext(null),_B0=e.createContext(null),NB0=()=>{var a;return((a=e.useContext(bB0))==null?void 0:a.id)||null},wB0=()=>e.useContext(_B0);function CB0(a){const{open:t=!1,onOpenChange:n,elements:r}=a,l=kB0(),i=e.useRef({}),[o]=e.useState(()=>LB0()),s=NB0()!=null;if(wg.NODE_ENV!=="production"){const A=r.reference;A&&!jm(A)&&FB0("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,m]=e.useState(r.reference),h=N90((A,Z,E)=>{i.current.openEvent=A?Z:void 0,o.emit("openchange",{open:A,event:Z,reason:E,nested:s}),n?.(A,Z,E)}),p=e.useMemo(()=>({setPositionReference:m}),[]),v=e.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return e.useMemo(()=>({dataRef:i,open:t,onOpenChange:h,elements:v,events:o,floatingId:l,refs:p}),[t,h,v,o,l,p])}function TB0(a){a===void 0&&(a={});const{nodeId:t}=a,n=CB0({...a,elements:{reference:null,floating:null,...a.elements}}),r=a.rootContext||n,l=r.elements,[i,o]=e.useState(null),[s,c]=e.useState(null),h=l?.reference||i,p=e.useRef(null),v=wB0();eF(()=>{h&&(p.current=h)},[h]);const A=AB0({...a,elements:{...l,...s&&{reference:s}}}),Z=e.useCallback(_=>{const N=jm(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),contextElement:_}:_;c(N),A.refs.setReference(N)},[A.refs]),E=e.useCallback(_=>{(jm(_)||_===null)&&(p.current=_,o(_)),(jm(A.refs.reference.current)||A.refs.reference.current===null||_!==null&&!jm(_))&&A.refs.setReference(_)},[A.refs]),M=e.useMemo(()=>({...A.refs,setReference:E,setPositionReference:Z,domReference:p}),[A.refs,E,Z]),S=e.useMemo(()=>({...A.elements,domReference:h}),[A.elements,h]),L=e.useMemo(()=>({...A,...r,refs:M,elements:S,nodeId:t}),[A,M,S,t,r]);return eF(()=>{r.dataRef.current.floatingContext=L;const _=v?.nodesRef.current.find(N=>N.id===t);_&&(_.context=L)}),e.useMemo(()=>({...A,context:L,refs:M,elements:S}),[A,M,S,L])}const T90="active",I90="selected";function tF(a,t,n){const r=new Map,l=n==="item";let i=a;if(l&&a){const{[T90]:o,[I90]:s,...c}=a;i=c}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?a?s(a):null:s}).concat(a).reduce((o,s)=>(s&&Object.entries(s).forEach(c=>{let[m,h]=c;if(!(l&&[T90,I90].includes(m)))if(m.indexOf("on")===0){if(r.has(m)||r.set(m,[]),typeof h=="function"){var p;(p=r.get(m))==null||p.push(h),o[m]=function(){for(var v,A=arguments.length,Z=new Array(A),E=0;E<A;E++)Z[E]=arguments[E];return(v=r.get(m))==null?void 0:v.map(M=>M(...Z)).find(M=>M!==void 0)}}}else o[m]=h}),o),{})}}function IB0(a){a===void 0&&(a=[]);const t=a.map(s=>s?.reference),n=a.map(s=>s?.floating),r=a.map(s=>s?.item),l=e.useCallback(s=>tF(s,a,"reference"),t),i=e.useCallback(s=>tF(s,a,"floating"),n),o=e.useCallback(s=>tF(s,a,"item"),r);return e.useMemo(()=>({getReferenceProps:l,getFloatingProps:i,getItemProps:o}),[l,i,o])}function P90(a,t){return{...a,rects:{...a.rects,floating:{...a.rects.floating,height:t}}}}const PB0=a=>({name:"inner",options:a,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:l,offset:i=0,index:o=0,minItemsVisible:s=4,referenceOverflowThreshold:c=0,scrollRef:m,...h}=Tj0(a,t),{rects:p,elements:{floating:v}}=t,A=n.current[o];if(wg.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||SB0('`placement` side must be "bottom" when using the `inner`',"middleware.")),!A)return{};const Z={...t,...await b90(-A.offsetTop-v.clientTop-p.reference.height/2-A.offsetHeight/2-i).fn(t)},E=m?.current||v,M=await JS(P90(Z,E.scrollHeight),h),S=await JS(Z,{...h,elementContext:"reference"}),L=Math.max(0,M.top),_=Z.y+L,N=Math.max(0,E.scrollHeight-L-Math.max(0,M.bottom));return E.style.maxHeight=N+"px",E.scrollTop=L,l&&(E.offsetHeight<A.offsetHeight*Math.min(s,n.current.length-1)-1||S.top>=-c||S.bottom>=-c?rn.flushSync(()=>l(!0)):rn.flushSync(()=>l(!1))),r&&(r.current=await JS(P90({...Z,y:_},E.offsetHeight),h)),{y:_}}});function xB0(a,t){const{open:n,elements:r}=a,{enabled:l=!0,overflowRef:i,scrollRef:o,onChange:s}=t,c=N90(s),m=e.useRef(!1),h=e.useRef(null),p=e.useRef(null);e.useEffect(()=>{if(!l)return;function A(E){if(E.ctrlKey||!Z||i.current==null)return;const M=E.deltaY,S=i.current.top>=-.5,L=i.current.bottom>=-.5,_=Z.scrollHeight-Z.clientHeight,N=M<0?-1:1,V=M<0?"max":"min";Z.scrollHeight<=Z.clientHeight||(!S&&M>0||!L&&M<0?(E.preventDefault(),rn.flushSync(()=>{c(C=>C+Math[V](M,_*N))})):/firefox/i.test(Cj0())&&(Z.scrollTop+=M))}const Z=o?.current||r.floating;if(n&&Z)return Z.addEventListener("wheel",A),requestAnimationFrame(()=>{h.current=Z.scrollTop,i.current!=null&&(p.current={...i.current})}),()=>{h.current=null,p.current=null,Z.removeEventListener("wheel",A)}},[l,n,r.floating,i,o,c]);const v=e.useMemo(()=>({onKeyDown(){m.current=!0},onWheel(){m.current=!1},onPointerMove(){m.current=!1},onScroll(){const A=o?.current||r.floating;if(!(!i.current||!A||!m.current)){if(h.current!==null){const Z=A.scrollTop-h.current;(i.current.bottom<-.5&&Z<-1||i.current.top<-.5&&Z>1)&&rn.flushSync(()=>c(E=>E+Z))}requestAnimationFrame(()=>{h.current=A.scrollTop})}}}),[r.floating,c,i,o]);return e.useMemo(()=>l?{floating:v}:{},[l,v])}let K7=e.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});K7.displayName="FloatingContext";let aF=e.createContext(null);aF.displayName="PlacementContext";function OB0(a){return e.useMemo(()=>a?typeof a=="string"?{to:a}:a:null,[a])}function RB0(){return e.useContext(K7).setReference}function $B0(){return e.useContext(K7).getReferenceProps}function DB0(){let{getFloatingProps:a,slot:t}=e.useContext(K7);return e.useCallback((...n)=>Object.assign({},a(...n),{"data-anchor":t.anchor}),[a,t])}function jB0(a=null){a===!1&&(a=null),typeof a=="string"&&(a={to:a});let t=e.useContext(aF),n=e.useMemo(()=>a,[JSON.stringify(a,(l,i)=>{var o;return(o=i?.outerHTML)!=null?o:i})]);yt(()=>{t?.(n??null)},[t,n]);let r=e.useContext(K7);return e.useMemo(()=>[r.setFloating,a?r.styles:{}],[r.setFloating,a,r.styles])}let x90=4;function BB0({children:a,enabled:t=!0}){let[n,r]=e.useState(null),[l,i]=e.useState(0),o=e.useRef(null),[s,c]=e.useState(null);UB0(s);let m=t&&n!==null&&s!==null,{to:h="bottom",gap:p=0,offset:v=0,padding:A=0,inner:Z}=zB0(n,s),[E,M="center"]=h.split(" ");yt(()=>{m&&i(0)},[m]);let{refs:S,floatingStyles:L,context:_}=TB0({open:m,placement:E==="selection"?M==="center"?"bottom":`bottom-${M}`:M==="center"?`${E}`:`${E}-${M}`,strategy:"absolute",transform:!1,middleware:[b90({mainAxis:E==="selection"?0:p,crossAxis:v}),ZB0({padding:A}),E!=="selection"&&HB0({padding:A}),E==="selection"&&Z?PB0({...Z,padding:A,overflowRef:o,offset:l,minItemsVisible:x90,referenceOverflowThreshold:A,onFallbackChange(z){var Y,i0;if(!z)return;let G=_.elements.floating;if(!G)return;let W=parseFloat(getComputedStyle(G).scrollPaddingBottom)||0,o0=Math.min(x90,G.childElementCount),v0=0,l0=0;for(let n0 of(i0=(Y=_.elements.floating)==null?void 0:Y.childNodes)!=null?i0:[])if(e4(n0)){let J=n0.offsetTop,U=J+n0.clientHeight+W,Q=G.scrollTop,r0=Q+G.clientHeight;if(J>=Q&&U<=r0)o0--;else{l0=Math.max(0,Math.min(U,r0)-Math.max(J,Q)),v0=n0.clientHeight;break}}o0>=1&&i(n0=>{let J=v0*o0-l0+W;return n0>=J?n0:J})}}):null,EB0({padding:A,apply({availableWidth:z,availableHeight:Y,elements:i0}){Object.assign(i0.floating.style,{overflow:"auto",maxWidth:`${z}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${Y}px)`})}})].filter(Boolean),whileElementsMounted:uB0}),[N=E,V=M]=_.placement.split("-");E==="selection"&&(N="selection");let C=e.useMemo(()=>({anchor:[N,V].filter(Boolean).join(" ")}),[N,V]),P=xB0(_,{overflowRef:o,onChange:i}),{getReferenceProps:x,getFloatingProps:$}=IB0([P]),D=Fe(z=>{c(z),S.setFloating(z)});return e.createElement(aF.Provider,{value:r},e.createElement(K7.Provider,{value:{setFloating:D,setReference:S.setReference,styles:L,getReferenceProps:x,getFloatingProps:$,slot:C}},a))}function UB0(a){yt(()=>{if(!a)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(a).maxHeight,r=parseFloat(n);if(isNaN(r))return;let l=parseInt(n);isNaN(l)||r!==l&&(a.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(a,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[a])}function zB0(a,t){var n,r,l;let i=nF((n=a?.gap)!=null?n:"var(--anchor-gap, 0)",t),o=nF((r=a?.offset)!=null?r:"var(--anchor-offset, 0)",t),s=nF((l=a?.padding)!=null?l:"var(--anchor-padding, 0)",t);return{...a,gap:i,offset:o,padding:s}}function nF(a,t,n=void 0){let r=Xo(),l=Fe((c,m)=>{if(c==null)return[n,null];if(typeof c=="number")return[c,null];if(typeof c=="string"){if(!m)return[n,null];let h=R90(c,m);return[h,p=>{let v=O90(c);{let A=v.map(Z=>window.getComputedStyle(m).getPropertyValue(Z));r.requestAnimationFrame(function Z(){r.nextFrame(Z);let E=!1;for(let[S,L]of v.entries()){let _=window.getComputedStyle(m).getPropertyValue(L);if(A[S]!==_){A[S]=_,E=!0;break}}if(!E)return;let M=R90(c,m);h!==M&&(p(M),h=M)})}return r.dispose}]}return[n,null]}),i=e.useMemo(()=>l(a,t)[0],[a,t]),[o=i,s]=e.useState();return yt(()=>{let[c,m]=l(a,t);if(s(c),!!m)return m(s)},[a,t]),o}function O90(a){let t=/var\((.*)\)/.exec(a);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),l=t[1].slice(n+1).trim();return l?[r,...O90(l)]:[r]}return[]}function R90(a,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",a,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let Cg=e.createContext(null);Cg.displayName="OpenClosedContext";var c6=(a=>(a[a.Open=1]="Open",a[a.Closed=2]="Closed",a[a.Closing=4]="Closing",a[a.Opening=8]="Opening",a))(c6||{});function Wm(){return e.useContext(Cg)}function $90({value:a,children:t}){return u1.createElement(Cg.Provider,{value:a},t)}function qB0({children:a}){return u1.createElement(Cg.Provider,{value:null},a)}function GB0(a){function t(){document.readyState!=="loading"&&(a(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let t3=[];GB0(()=>{function a(t){if(!pr(t.target)||t.target===document.body||t3[0]===t.target)return;let n=t.target;n=n.closest(Eg),t3.unshift(n??t.target),t3=t3.filter(r=>r!=null&&r.isConnected),t3.splice(10)}window.addEventListener("click",a,{capture:!0}),window.addEventListener("mousedown",a,{capture:!0}),window.addEventListener("focus",a,{capture:!0}),document.body.addEventListener("click",a,{capture:!0}),document.body.addEventListener("mousedown",a,{capture:!0}),document.body.addEventListener("focus",a,{capture:!0})});function WB0(a){throw new Error("Unexpected object: "+a)}var Za=(a=>(a[a.First=0]="First",a[a.Previous=1]="Previous",a[a.Next=2]="Next",a[a.Last=3]="Last",a[a.Specific=4]="Specific",a[a.Nothing=5]="Nothing",a))(Za||{});function Tg(a,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),l=r??-1;switch(a.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 1:{l===-1&&(l=n.length);for(let i=l-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=l+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 3:{for(let i=n.length-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===a.id)return i;return r}case 5:return null;default:WB0(a)}}function rF(a){let t=Fe(a),n=e.useRef(!1);e.useEffect(()=>(n.current=!1,()=>{n.current=!0,hg(()=>{n.current&&t()})}),[t])}let D90=e.createContext(!1);function KB0(){return e.useContext(D90)}function j90(a){return u1.createElement(D90.Provider,{value:a.force},a.children)}function YB0(a){let t=KB0(),n=e.useContext(U90),[r,l]=e.useState(()=>{var i;if(!t&&n!==null)return(i=n.current)!=null?i:null;if(hr.isServer)return null;let o=a?.getElementById("headlessui-portal-root");if(o)return o;if(a===null)return null;let s=a.createElement("div");return s.setAttribute("id","headlessui-portal-root"),a.body.appendChild(s)});return e.useEffect(()=>{r!==null&&(a!=null&&a.body.contains(r)||a==null||a.body.appendChild(r))},[r,a]),e.useEffect(()=>{t||n!==null&&l(n.current)},[n,l,t]),r}let B90=e.Fragment,QB0=Vt(function(a,t){let{ownerDocument:n=null,...r}=a,l=e.useRef(null),i=s6(CD0(v=>{l.current=v}),t),o=Dm(l.current),s=n??o,c=YB0(s),m=e.useContext(lF),h=Xo(),p=Rt();return rF(()=>{var v;c&&c.childNodes.length<=0&&((v=c.parentElement)==null||v.removeChild(c))}),c?rn.createPortal(u1.createElement("div",{"data-headlessui-portal":"",ref:v=>{h.dispose(),m&&v&&h.add(m.register(v))}},p({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:B90,name:"Portal"})),c):null});function XB0(a,t){let n=s6(t),{enabled:r=!0,ownerDocument:l,...i}=a,o=Rt();return r?u1.createElement(QB0,{...i,ownerDocument:l,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:B90,name:"Portal"})}let JB0=e.Fragment,U90=e.createContext(null);function eU0(a,t){let{target:n,...r}=a,l={ref:s6(t)},i=Rt();return u1.createElement(U90.Provider,{value:n},i({ourProps:l,theirProps:r,defaultTag:JB0,name:"Popover.Group"}))}let lF=e.createContext(null);function tU0(){let a=e.useContext(lF),t=e.useRef([]),n=Fe(i=>(t.current.push(i),a&&a.register(i),()=>r(i))),r=Fe(i=>{let o=t.current.indexOf(i);o!==-1&&t.current.splice(o,1),a&&a.unregister(i)}),l=e.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,e.useMemo(()=>function({children:i}){return u1.createElement(lF.Provider,{value:l},i)},[l])]}let aU0=Vt(XB0),z90=Vt(eU0),q90=Object.assign(aU0,{Group:z90});const Ig={Idle:{kind:"Idle"},Tracked:a=>({kind:"Tracked",position:a}),Moved:{kind:"Moved"}};function G90(a){let t=a.getBoundingClientRect();return`${t.x},${t.y}`}function nU0(a,t,n){let r=w6();if(t.kind==="Tracked"){let l=function(){i!==G90(a)&&(r.dispose(),n())},{position:i}=t,o=new ResizeObserver(l);o.observe(a),r.add(()=>o.disconnect()),r.addEventListener(window,"scroll",l,{passive:!0}),r.addEventListener(window,"resize",l)}return()=>r.dispose()}let rU0=e.Fragment;function lU0(a,t){let{...n}=a,r=!1,{isFocusVisible:l,focusProps:i}=mg(),{isHovered:o,hoverProps:s}=dg({isDisabled:r}),{pressed:c,pressProps:m}=TS({disabled:r}),h=Im({ref:t},i,s,m),p=J6({hover:o,focus:l,active:c});return Rt()({ourProps:h,theirProps:n,slot:p,defaultTag:rU0,name:"DataInteractive"})}let iU0=Vt(lU0);function oU0(a,t=typeof document<"u"?document.defaultView:null,n){let r=Rm(a,"escape");n90(t,"keydown",l=>{r&&(l.defaultPrevented||l.key===Ja.Escape&&n(l))})}function sU0(){var a;let[t]=e.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=e.useState((a=t?.matches)!=null?a:!1);return yt(()=>{if(!t)return;function l(i){r(i.matches)}return t.addEventListener("change",l),()=>t.removeEventListener("change",l)},[t]),n}function cU0({defaultContainers:a=[],portals:t,mainTreeNode:n}={}){let r=Fe(()=>{var l,i;let o=Qo(n),s=[];for(let c of a)c!==null&&(yl(c)?s.push(c):"current"in c&&yl(c.current)&&s.push(c.current));if(t!=null&&t.current)for(let c of t.current)s.push(c);for(let c of(l=o?.querySelectorAll("html > *, body > *"))!=null?l:[])c!==document.body&&c!==document.head&&yl(c)&&c.id!=="headlessui-portal-root"&&(n&&(c.contains(n)||c.contains((i=n?.getRootNode())==null?void 0:i.host))||s.some(m=>c.contains(m))||s.push(c));return s});return{resolveContainers:r,contains:Fe(l=>r().some(i=>i.contains(l)))}}let W90=e.createContext(null);function K90({children:a,node:t}){let[n,r]=e.useState(null),l=Y90(t??n);return u1.createElement(W90.Provider,{value:l},a,l===null&&u1.createElement(xS,{features:vg.Hidden,ref:i=>{var o,s;if(i){for(let c of(s=(o=Qo(i))==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?s:[])if(c!==document.body&&c!==document.head&&yl(c)&&c!=null&&c.contains(i)){r(c);break}}}}))}function Y90(a=null){var t;return(t=e.useContext(W90))!=null?t:a}function dU0(){let a=typeof document>"u";return"useSyncExternalStore"in Bs?(t=>t.useSyncExternalStore)(Bs)(()=>()=>{},()=>!1,()=>!a):!1}function Pg(){let a=dU0(),[t,n]=e.useState(hr.isHandoffComplete);return t&&hr.isHandoffComplete===!1&&n(!1),e.useEffect(()=>{t!==!0&&n(!0)},[t]),e.useEffect(()=>hr.handoff(),[]),a?!1:t}function iF(){let a=e.useRef(!1);return yt(()=>(a.current=!0,()=>{a.current=!1}),[]),a}var Km=(a=>(a[a.Forwards=0]="Forwards",a[a.Backwards=1]="Backwards",a))(Km||{});function mU0(){let a=e.useRef(0);return Jd0(!0,"keydown",t=>{t.key==="Tab"&&(a.current=t.shiftKey?1:0)},!0),a}function Q90(a){if(!a)return new Set;if(typeof a=="function")return new Set(a());let t=new Set;for(let n of a.current)yl(n.current)&&t.add(n.current);return t}let uU0="div";var r5=(a=>(a[a.None=0]="None",a[a.InitialFocus=1]="InitialFocus",a[a.TabLock=2]="TabLock",a[a.FocusLock=4]="FocusLock",a[a.RestoreFocus=8]="RestoreFocus",a[a.AutoFocus=16]="AutoFocus",a))(r5||{});function hU0(a,t){let n=e.useRef(null),r=s6(n,t),{initialFocus:l,initialFocusFallback:i,containers:o,features:s=15,...c}=a;Pg()||(s=0);let m=Dm(n.current);gU0(s,{ownerDocument:m});let h=AU0(s,{ownerDocument:m,container:n,initialFocus:l,initialFocusFallback:i});ZU0(s,{ownerDocument:m,container:n,containers:o,previousActiveElement:h});let p=mU0(),v=Fe(L=>{if(!e4(n.current))return;let _=n.current;(N=>N())(()=>{un(p.current,{[Km.Forwards]:()=>{U7(_,hn.First,{skipElements:[L.relatedTarget,i]})},[Km.Backwards]:()=>{U7(_,hn.Last,{skipElements:[L.relatedTarget,i]})}})})}),A=Rm(!!(s&2),"focus-trap#tab-lock"),Z=Xo(),E=e.useRef(!1),M={ref:r,onKeyDown(L){L.key=="Tab"&&(E.current=!0,Z.requestAnimationFrame(()=>{E.current=!1}))},onBlur(L){if(!(s&4))return;let _=Q90(o);e4(n.current)&&_.add(n.current);let N=L.relatedTarget;pr(N)&&N.dataset.headlessuiFocusGuard!=="true"&&(X90(_,N)||(E.current?U7(n.current,un(p.current,{[Km.Forwards]:()=>hn.Next,[Km.Backwards]:()=>hn.Previous})|hn.WrapAround,{relativeTo:L.target}):pr(L.target)&&vr(L.target)))}},S=Rt();return u1.createElement(u1.Fragment,null,A&&u1.createElement(xS,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:vg.Focusable}),S({ourProps:M,theirProps:c,defaultTag:uU0,name:"FocusTrap"}),A&&u1.createElement(xS,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:vg.Focusable}))}let pU0=Vt(hU0),fU0=Object.assign(pU0,{features:r5});function vU0(a=!0){let t=e.useRef(t3.slice());return GS(([n],[r])=>{r===!0&&n===!1&&hg(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=t3.slice())},[a,t3,t]),Fe(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function gU0(a,{ownerDocument:t}){let n=!!(a&8),r=vU0(n);GS(()=>{n||gd0(t?.body)&&vr(r())},[n]),rF(()=>{n&&vr(r())})}function AU0(a,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:l}){let i=e.useRef(null),o=Rm(!!(a&1),"focus-trap#initial-focus"),s=iF();return GS(()=>{if(a===0)return;if(!o){l!=null&&l.current&&vr(l.current);return}let c=n.current;c&&hg(()=>{if(!s.current)return;let m=t?.activeElement;if(r!=null&&r.current){if(r?.current===m){i.current=m;return}}else if(c.contains(m)){i.current=m;return}if(r!=null&&r.current)vr(r.current);else{if(a&16){if(U7(c,hn.First|hn.AutoFocus)!==US.Error)return}else if(U7(c,hn.First)!==US.Error)return;if(l!=null&&l.current&&(vr(l.current),t?.activeElement===l.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t?.activeElement})},[l,o,a]),i}function ZU0(a,{ownerDocument:t,container:n,containers:r,previousActiveElement:l}){let i=iF(),o=!!(a&4);n90(t?.defaultView,"focus",s=>{if(!o||!i.current)return;let c=Q90(r);e4(n.current)&&c.add(n.current);let m=l.current;if(!m)return;let h=s.target;e4(h)?X90(c,h)?(l.current=h,vr(h)):(s.preventDefault(),s.stopPropagation(),vr(m)):vr(l.current)},!0)}function X90(a,t){for(let n of a)if(n.contains(t))return!0;return!1}function J90(a){var t;return!!(a.enter||a.enterFrom||a.enterTo||a.leave||a.leaveFrom||a.leaveTo)||!Pm((t=a.as)!=null?t:tm0)||u1.Children.count(a.children)===1}let xg=e.createContext(null);xg.displayName="TransitionContext";var HU0=(a=>(a.Visible="visible",a.Hidden="hidden",a))(HU0||{});function EU0(){let a=e.useContext(xg);if(a===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return a}function MU0(){let a=e.useContext(Og);if(a===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return a}let Og=e.createContext(null);Og.displayName="NestingContext";function Rg(a){return"children"in a?Rg(a.children):a.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function em0(a,t){let n=Jo(a),r=e.useRef([]),l=iF(),i=Xo(),o=Fe((A,Z=Yi.Hidden)=>{let E=r.current.findIndex(({el:M})=>M===A);E!==-1&&(un(Z,{[Yi.Unmount](){r.current.splice(E,1)},[Yi.Hidden](){r.current[E].state="hidden"}}),i.microTask(()=>{var M;!Rg(r)&&l.current&&((M=n.current)==null||M.call(n))}))}),s=Fe(A=>{let Z=r.current.find(({el:E})=>E===A);return Z?Z.state!=="visible"&&(Z.state="visible"):r.current.push({el:A,state:"visible"}),()=>o(A,Yi.Unmount)}),c=e.useRef([]),m=e.useRef(Promise.resolve()),h=e.useRef({enter:[],leave:[]}),p=Fe((A,Z,E)=>{c.current.splice(0),t&&(t.chains.current[Z]=t.chains.current[Z].filter(([M])=>M!==A)),t?.chains.current[Z].push([A,new Promise(M=>{c.current.push(M)})]),t?.chains.current[Z].push([A,new Promise(M=>{Promise.all(h.current[Z].map(([S,L])=>L)).then(()=>M())})]),Z==="enter"?m.current=m.current.then(()=>t?.wait.current).then(()=>E(Z)):E(Z)}),v=Fe((A,Z,E)=>{Promise.all(h.current[Z].splice(0).map(([M,S])=>S)).then(()=>{var M;(M=c.current.shift())==null||M()}).then(()=>E(Z))});return e.useMemo(()=>({children:r,register:s,unregister:o,onStart:p,onStop:v,wait:m,chains:h}),[s,o,r,p,v,h,m])}let tm0=e.Fragment,am0=B7.RenderStrategy;function yU0(a,t){var n,r;let{transition:l=!0,beforeEnter:i,afterEnter:o,beforeLeave:s,afterLeave:c,enter:m,enterFrom:h,enterTo:p,entered:v,leave:A,leaveFrom:Z,leaveTo:E,...M}=a,[S,L]=e.useState(null),_=e.useRef(null),N=J90(a),V=s6(...N?[_,t,L]:t===null?[]:[t]),C=(n=M.unmount)==null||n?Yi.Unmount:Yi.Hidden,{show:P,appear:x,initial:$}=EU0(),[D,z]=e.useState(P?"visible":"hidden"),Y=MU0(),{register:i0,unregister:G}=Y;yt(()=>i0(_),[i0,_]),yt(()=>{if(C===Yi.Hidden&&_.current){if(P&&D!=="visible"){z("visible");return}return un(D,{hidden:()=>G(_),visible:()=>i0(_)})}},[D,_,i0,G,P,C]);let W=Pg();yt(()=>{if(N&&W&&D==="visible"&&_.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,D,W,N]);let o0=$&&!x,v0=x&&P&&$,l0=e.useRef(!1),n0=em0(()=>{l0.current||(z("hidden"),G(_))},Y),J=Fe(I0=>{l0.current=!0;let s0=I0?"enter":"leave";n0.onStart(_,s0,u0=>{u0==="enter"?i?.():u0==="leave"&&s?.()})}),U=Fe(I0=>{let s0=I0?"enter":"leave";l0.current=!1,n0.onStop(_,s0,u0=>{u0==="enter"?o?.():u0==="leave"&&c?.()}),s0==="leave"&&!Rg(n0)&&(z("hidden"),G(_))});e.useEffect(()=>{N&&l||(J(P),U(P))},[P,N,l]);let Q=!(!l||!N||!W||o0),[,r0]=d90(Q,S,P,{start:J,end:U}),g0=e5({ref:V,className:((r=IS(M.className,v0&&m,v0&&h,r0.enter&&m,r0.enter&&r0.closed&&h,r0.enter&&!r0.closed&&p,r0.leave&&A,r0.leave&&!r0.closed&&Z,r0.leave&&r0.closed&&E,!r0.transition&&P&&v))==null?void 0:r.trim())||void 0,...c90(r0)}),y0=0;D==="visible"&&(y0|=c6.Open),D==="hidden"&&(y0|=c6.Closed),P&&D==="hidden"&&(y0|=c6.Opening),!P&&D==="visible"&&(y0|=c6.Closing);let m0=Rt();return u1.createElement(Og.Provider,{value:n0},u1.createElement($90,{value:y0},m0({ourProps:g0,theirProps:M,defaultTag:tm0,features:am0,visible:D==="visible",name:"Transition.Child"})))}function VU0(a,t){let{show:n,appear:r=!1,unmount:l=!0,...i}=a,o=e.useRef(null),s=J90(a),c=s6(...s?[o,t]:t===null?[]:[t]);Pg();let m=Wm();if(n===void 0&&m!==null&&(n=(m&c6.Open)===c6.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,p]=e.useState(n?"visible":"hidden"),v=em0(()=>{n||p("hidden")}),[A,Z]=e.useState(!0),E=e.useRef([n]);yt(()=>{A!==!1&&E.current[E.current.length-1]!==n&&(E.current.push(n),Z(!1))},[E,n]);let M=e.useMemo(()=>({show:n,appear:r,initial:A}),[n,r,A]);yt(()=>{n?p("visible"):!Rg(v)&&o.current!==null&&p("hidden")},[n,v]);let S={unmount:l},L=Fe(()=>{var V;A&&Z(!1),(V=a.beforeEnter)==null||V.call(a)}),_=Fe(()=>{var V;A&&Z(!1),(V=a.beforeLeave)==null||V.call(a)}),N=Rt();return u1.createElement(Og.Provider,{value:v},u1.createElement(xg.Provider,{value:M},N({ourProps:{...S,as:e.Fragment,children:u1.createElement(nm0,{ref:c,...S,...i,beforeEnter:L,beforeLeave:_})},theirProps:{},defaultTag:e.Fragment,features:am0,visible:h==="visible",name:"Transition"})))}function kU0(a,t){let n=e.useContext(xg)!==null,r=Wm()!==null;return u1.createElement(u1.Fragment,null,!n&&r?u1.createElement(oF,{ref:t,...a}):u1.createElement(nm0,{ref:t,...a}))}let oF=Vt(VU0),nm0=Vt(yU0),Ym=Vt(kU0),Qm=Object.assign(oF,{Child:Ym,Root:oF});var SU0=(a=>(a[a.Open=0]="Open",a[a.Closed=1]="Closed",a))(SU0||{}),FU0=(a=>(a[a.SetTitleId=0]="SetTitleId",a))(FU0||{});let LU0={0(a,t){return a.titleId===t.id?a:{...a,titleId:t.id}}},sF=e.createContext(null);sF.displayName="DialogContext";function $g(a){let t=e.useContext(sF);if(t===null){let n=new Error(`<${a} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,$g),n}return t}function bU0(a,t){return un(t.type,LU0,a,t)}let rm0=Vt(function(a,t){let n=e.useId(),{id:r=`headlessui-dialog-${n}`,open:l,onClose:i,initialFocus:o,role:s="dialog",autoFocus:c=!0,__demoMode:m=!1,unmount:h=!1,...p}=a,v=e.useRef(!1);s=(function(){return s==="dialog"||s==="alertdialog"?s:(v.current||(v.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let A=Wm();l===void 0&&A!==null&&(l=(A&c6.Open)===c6.Open);let Z=e.useRef(null),E=s6(Z,t),M=Dm(Z.current),S=l?0:1,[L,_]=e.useReducer(bU0,{titleId:null,descriptionId:null,panelRef:e.createRef()}),N=Fe(()=>i(!1)),V=Fe(r0=>_({type:0,id:r0})),C=Pg()?S===0:!1,[P,x]=tU0(),$={get current(){var r0;return(r0=L.panelRef.current)!=null?r0:Z.current}},D=Y90(),{resolveContainers:z}=cU0({mainTreeNode:D,portals:P,defaultContainers:[$]}),Y=A!==null?(A&c6.Closing)===c6.Closing:!1;qd0(m||Y?!1:C,{allowed:Fe(()=>{var r0,g0;return[(g0=(r0=Z.current)==null?void 0:r0.closest("[data-headlessui-portal]"))!=null?g0:null]}),disallowed:Fe(()=>{var r0;return[(r0=D?.closest("body > *:not(#headlessui-portal-root)"))!=null?r0:null]})});let i0=Zg.get(null);yt(()=>{if(C)return i0.actions.push(r),()=>i0.actions.pop(r)},[i0,r,C]);let G=L4(i0,e.useCallback(r0=>i0.selectors.isTop(r0,r),[i0,r]));t90(G,z,r0=>{r0.preventDefault(),N()}),oU0(G,M?.defaultView,r0=>{r0.preventDefault(),r0.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),N()}),l90(m||Y?!1:C,M,z),Gd0(C,Z,N);let[W,o0]=Fd0(),v0=e.useMemo(()=>[{dialogState:S,close:N,setTitleId:V,unmount:h},L],[S,N,V,h,L]),l0=J6({open:S===0}),n0={ref:E,id:r,role:s,tabIndex:-1,"aria-modal":m?void 0:S===0?!0:void 0,"aria-labelledby":L.titleId,"aria-describedby":W,unmount:h},J=!sU0(),U=r5.None;C&&!m&&(U|=r5.RestoreFocus,U|=r5.TabLock,c&&(U|=r5.AutoFocus),J&&(U|=r5.InitialFocus));let Q=Rt();return u1.createElement(qB0,null,u1.createElement(j90,{force:!0},u1.createElement(q90,null,u1.createElement(sF.Provider,{value:v0},u1.createElement(z90,{target:Z},u1.createElement(j90,{force:!1},u1.createElement(o0,{slot:l0},u1.createElement(x,null,u1.createElement(fU0,{initialFocus:o,initialFocusFallback:Z,containers:z,features:U},u1.createElement(UD0,{value:N},Q({ourProps:n0,theirProps:p,slot:l0,defaultTag:_U0,features:NU0,visible:S===0,name:"Dialog"})))))))))))}),_U0="div",NU0=B7.RenderStrategy|B7.Static;function wU0(a,t){let{transition:n=!1,open:r,...l}=a,i=Wm(),o=a.hasOwnProperty("open")||i!==null,s=a.hasOwnProperty("onClose");if(!o&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!o)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&typeof a.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${a.open}`);if(typeof a.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${a.onClose}`);return(r!==void 0||n)&&!l.static?u1.createElement(K90,null,u1.createElement(Qm,{show:r,transition:n,unmount:l.unmount},u1.createElement(rm0,{ref:t,...l}))):u1.createElement(K90,null,u1.createElement(rm0,{ref:t,open:r,...l}))}let CU0="div";function TU0(a,t){let n=e.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:l=!1,...i}=a,[{dialogState:o,unmount:s},c]=$g("Dialog.Panel"),m=s6(t,c.panelRef),h=J6({open:o===0}),p=Fe(M=>{M.stopPropagation()}),v={ref:m,id:r,onClick:p},A=l?Ym:e.Fragment,Z=l?{unmount:s}:{},E=Rt();return u1.createElement(A,{...Z},E({ourProps:v,theirProps:i,slot:h,defaultTag:CU0,name:"Dialog.Panel"}))}let IU0="div";function PU0(a,t){let{transition:n=!1,...r}=a,[{dialogState:l,unmount:i}]=$g("Dialog.Backdrop"),o=J6({open:l===0}),s={ref:t,"aria-hidden":!0},c=n?Ym:e.Fragment,m=n?{unmount:i}:{},h=Rt();return u1.createElement(c,{...m},h({ourProps:s,theirProps:r,slot:o,defaultTag:IU0,name:"Dialog.Backdrop"}))}let xU0="h2";function OU0(a,t){let n=e.useId(),{id:r=`headlessui-dialog-title-${n}`,...l}=a,[{dialogState:i,setTitleId:o}]=$g("Dialog.Title"),s=s6(t);e.useEffect(()=>(o(r),()=>o(null)),[r,o]);let c=J6({open:i===0}),m={ref:s,id:r};return Rt()({ourProps:m,theirProps:l,slot:c,defaultTag:xU0,name:"Dialog.Title"})}let RU0=Vt(wU0),lm0=Vt(TU0);Vt(PU0);let im0=Vt(OU0),Dg=Object.assign(RU0,{Panel:lm0,Title:im0,Description:OD0}),$U0="input";function DU0(a,t){let n=e.useId(),r=Zd0(),l=pg(),{id:i=r||`headlessui-input-${n}`,disabled:o=l||!1,autoFocus:s=!1,invalid:c=!1,...m}=a,h=Ld0(),p=TD0(),{isFocused:v,focusProps:A}=mg({autoFocus:s}),{isHovered:Z,hoverProps:E}=dg({isDisabled:o}),M=Im({ref:t,id:i,"aria-labelledby":h,"aria-describedby":p,"aria-invalid":c?"true":void 0,disabled:o||void 0,autoFocus:s},A,E),S=J6({disabled:o,invalid:c,hover:Z,focus:v,autofocus:s});return Rt()({ourProps:M,theirProps:m,slot:S,defaultTag:$U0,name:"Input"})}let jU0=Vt(DU0),om0=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function sm0(a){var t,n;let r=(t=a.innerText)!=null?t:"",l=a.cloneNode(!0);if(!e4(l))return r;let i=!1;for(let s of l.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let o=i?(n=l.innerText)!=null?n:"":r;return om0.test(o)&&(o=o.replace(om0,"")),o}function BU0(a){let t=a.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=a.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(l=>{let i=document.getElementById(l);if(i){let o=i.getAttribute("aria-label");return typeof o=="string"?o.trim():sm0(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return sm0(a).trim()}function UU0(a){let t=e.useRef(""),n=e.useRef("");return Fe(()=>{let r=a.current;if(!r)return"";let l=r.innerText;if(t.current===l)return n.current;let i=BU0(r).trim().toLowerCase();return t.current=l,n.current=i,i})}var zU0=Object.defineProperty,qU0=(a,t,n)=>t in a?zU0(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n,cm0=(a,t,n)=>(qU0(a,typeof t!="symbol"?t+"":t,n),n),x8=(a=>(a[a.Open=0]="Open",a[a.Closed=1]="Closed",a))(x8||{}),jg=(a=>(a[a.Pointer=0]="Pointer",a[a.Other=1]="Other",a))(jg||{}),dt=(a=>(a[a.OpenMenu=0]="OpenMenu",a[a.CloseMenu=1]="CloseMenu",a[a.GoToItem=2]="GoToItem",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.RegisterItems=5]="RegisterItems",a[a.UnregisterItems=6]="UnregisterItems",a[a.SetButtonElement=7]="SetButtonElement",a[a.SetItemsElement=8]="SetItemsElement",a[a.SortItems=9]="SortItems",a[a.MarkButtonAsMoved=10]="MarkButtonAsMoved",a))(dt||{});function dm0(a,t=n=>n){let n=a.activeItemIndex!==null?a.items[a.activeItemIndex]:null,r=Yd0(t(a.items.slice()),i=>i.dataRef.current.domRef.current),l=n?r.indexOf(n):null;return l===-1&&(l=null),{items:r,activeItemIndex:l}}let GU0={1(a){if(a.menuState===1)return a;let t=a.buttonElement?Ig.Tracked(G90(a.buttonElement)):a.buttonPositionState;return{...a,activeItemIndex:null,pendingFocus:{focus:Za.Nothing},menuState:1,buttonPositionState:t}},0(a,t){return a.menuState===0?a:{...a,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:Ig.Idle}},2:(a,t)=>{var n,r,l,i,o;if(a.menuState===1)return a;let s={...a,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===Za.Nothing)return{...s,activeItemIndex:null};if(t.focus===Za.Specific)return{...s,activeItemIndex:a.items.findIndex(h=>h.id===t.id)};if(t.focus===Za.Previous){let h=a.activeItemIndex;if(h!==null){let p=a.items[h].dataRef.current.domRef,v=Tg(t,{resolveItems:()=>a.items,resolveActiveIndex:()=>a.activeItemIndex,resolveId:A=>A.id,resolveDisabled:A=>A.dataRef.current.disabled});if(v!==null){let A=a.items[v].dataRef.current.domRef;if(((r=p.current)==null?void 0:r.previousElementSibling)===A.current||((l=A.current)==null?void 0:l.previousElementSibling)===null)return{...s,activeItemIndex:v}}}}else if(t.focus===Za.Next){let h=a.activeItemIndex;if(h!==null){let p=a.items[h].dataRef.current.domRef,v=Tg(t,{resolveItems:()=>a.items,resolveActiveIndex:()=>a.activeItemIndex,resolveId:A=>A.id,resolveDisabled:A=>A.dataRef.current.disabled});if(v!==null){let A=a.items[v].dataRef.current.domRef;if(((i=p.current)==null?void 0:i.nextElementSibling)===A.current||((o=A.current)==null?void 0:o.nextElementSibling)===null)return{...s,activeItemIndex:v}}}}let c=dm0(a),m=Tg(t,{resolveItems:()=>c.items,resolveActiveIndex:()=>c.activeItemIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});return{...s,...c,activeItemIndex:m}},3:(a,t)=>{let n=a.searchQuery!==""?0:1,r=a.searchQuery+t.value.toLowerCase(),l=(a.activeItemIndex!==null?a.items.slice(a.activeItemIndex+n).concat(a.items.slice(0,a.activeItemIndex+n)):a.items).find(o=>{var s;return((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))&&!o.dataRef.current.disabled}),i=l?a.items.indexOf(l):-1;return i===-1||i===a.activeItemIndex?{...a,searchQuery:r}:{...a,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4(a){return a.searchQuery===""?a:{...a,searchQuery:"",searchActiveItemIndex:null}},5:(a,t)=>{let n=a.items.concat(t.items.map(l=>l)),r=a.activeItemIndex;return a.pendingFocus.focus!==Za.Nothing&&(r=Tg(a.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>a.activeItemIndex,resolveId:l=>l.id,resolveDisabled:l=>l.dataRef.current.disabled})),{...a,items:n,activeItemIndex:r,pendingFocus:{focus:Za.Nothing},pendingShouldSort:!0}},6:(a,t)=>{let n=a.items,r=[],l=new Set(t.items);for(let[i,o]of n.entries())if(l.has(o.id)&&(r.push(i),l.delete(o.id),l.size===0))break;if(r.length>0){n=n.slice();for(let i of r.reverse())n.splice(i,1)}return{...a,items:n,activationTrigger:1}},7:(a,t)=>a.buttonElement===t.element?a:{...a,buttonElement:t.element},8:(a,t)=>a.itemsElement===t.element?a:{...a,itemsElement:t.element},9:a=>a.pendingShouldSort?{...a,...dm0(a),pendingShouldSort:!1}:a,10(a){return a.buttonPositionState.kind!=="Tracked"?a:{...a,buttonPositionState:Ig.Moved}}},WU0=class hS0 extends Id0{constructor(t){super(t),cm0(this,"actions",{registerItem:Od0(()=>{let n=[],r=new Set;return[(l,i)=>{r.has(i)||(r.add(i),n.push({id:l,dataRef:i}))},()=>(r.clear(),this.send({type:5,items:n.splice(0)}))]}),unregisterItem:Od0(()=>{let n=[];return[r=>n.push(r),()=>this.send({type:6,items:n.splice(0)})]})}),cm0(this,"selectors",{activeDescendantId(n){var r;let l=n.activeItemIndex,i=n.items;return l===null||(r=i[l])==null?void 0:r.id},isActive(n,r){var l;let i=n.activeItemIndex,o=n.items;return i!==null?((l=o[i])==null?void 0:l.id)===r:!1},shouldScrollIntoView(n,r){return n.__demoMode||n.menuState!==0||n.activationTrigger===0?!1:this.isActive(n,r)},didButtonMove(n){return n.buttonPositionState.kind==="Moved"}}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let n=this.state.id,r=Zg.get(null);this.disposables.add(r.on($d0.Push,l=>{!r.selectors.isTop(l,n)&&this.state.menuState===0&&this.send({type:1})})),this.on(0,()=>r.actions.push(n)),this.on(1,()=>r.actions.pop(n))}this.disposables.group(n=>{this.on(1,r=>{r.buttonElement&&(n.dispose(),n.add(nU0(r.buttonElement,r.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:t,__demoMode:n=!1}){return new hS0({id:t,__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:Za.Nothing},buttonPositionState:Ig.Idle})}reduce(t,n){return un(n.type,GU0,t,n)}};const mm0=e.createContext(null);function cF(a){let t=e.useContext(mm0);if(t===null){let n=new Error(`<${a} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,um0),n}return t}function um0({id:a,__demoMode:t=!1}){let n=e.useMemo(()=>WU0.new({id:a,__demoMode:t}),[]);return rF(()=>n.dispose()),n}let KU0=e.Fragment;function YU0(a,t){let n=e.useId(),{__demoMode:r=!1,...l}=a,i=um0({id:n,__demoMode:r}),[o,s,c]=L4(i,M=>[M.menuState,M.itemsElement,M.buttonElement]),m=s6(t),h=Zg.get(null),p=L4(h,e.useCallback(M=>h.selectors.isTop(M,n),[h,n]));t90(p,[c,s],(M,S)=>{var L;i.send({type:dt.CloseMenu}),qS(S,zS.Loose)||(M.preventDefault(),(L=i.state.buttonElement)==null||L.focus())});let v=Fe(()=>{i.send({type:dt.CloseMenu})}),A=J6({open:o===x8.Open,close:v}),Z={ref:m},E=Rt();return u1.createElement(BB0,null,u1.createElement(mm0.Provider,{value:i},u1.createElement($90,{value:un(o,{[x8.Open]:c6.Open,[x8.Closed]:c6.Closed})},E({ourProps:Z,theirProps:l,slot:A,defaultTag:KU0,name:"Menu"}))))}let QU0="button";function XU0(a,t){let n=cF("Menu.Button"),r=e.useId(),{id:l=`headlessui-menu-button-${r}`,disabled:i=!1,autoFocus:o=!1,...s}=a,c=e.useRef(null),m=$B0(),h=s6(t,c,RB0(),Fe(D=>n.send({type:dt.SetButtonElement,element:D}))),p=Fe(D=>{switch(D.key){case Ja.Space:case Ja.Enter:case Ja.ArrowDown:D.preventDefault(),D.stopPropagation(),n.send({type:dt.OpenMenu,focus:{focus:Za.First}});break;case Ja.ArrowUp:D.preventDefault(),D.stopPropagation(),n.send({type:dt.OpenMenu,focus:{focus:Za.Last}});break}}),v=Fe(D=>{D.key===Ja.Space&&D.preventDefault()}),[A,Z,E]=L4(n,D=>[D.menuState,D.buttonElement,D.itemsElement]),M=A===x8.Open;fj0(M,{trigger:Z,action:e.useCallback(D=>{if(Z!=null&&Z.contains(D.target))return Mg.Ignore;let z=D.target.closest('[role="menuitem"]:not([data-disabled])');return e4(z)?Mg.Select(z):E!=null&&E.contains(D.target)?Mg.Ignore:Mg.Close},[Z,E]),close:e.useCallback(()=>n.send({type:dt.CloseMenu}),[]),select:e.useCallback(D=>D.click(),[])});let S=qD0(D=>{var z;i||(A===x8.Open?(rn.flushSync(()=>n.send({type:dt.CloseMenu})),(z=c.current)==null||z.focus({preventScroll:!0})):(D.preventDefault(),n.send({type:dt.OpenMenu,focus:{focus:Za.Nothing},trigger:jg.Pointer})))}),{isFocusVisible:L,focusProps:_}=mg({autoFocus:o}),{isHovered:N,hoverProps:V}=dg({isDisabled:i}),{pressed:C,pressProps:P}=TS({disabled:i}),x=J6({open:A===x8.Open,active:C||A===x8.Open,disabled:i,hover:N,focus:L,autofocus:o}),$=Im(m(),{ref:h,id:l,type:vj0(a,c.current),"aria-haspopup":"menu","aria-controls":E?.id,"aria-expanded":A===x8.Open,disabled:i||void 0,autoFocus:o,onKeyDown:p,onKeyUp:v},S,_,V,P);return Rt()({ourProps:$,theirProps:s,slot:x,defaultTag:QU0,name:"Menu.Button"})}let JU0="div",ez0=B7.RenderStrategy|B7.Static;function tz0(a,t){let n=e.useId(),{id:r=`headlessui-menu-items-${n}`,anchor:l,portal:i=!1,modal:o=!0,transition:s=!1,...c}=a,m=OB0(l),h=cF("Menu.Items"),[p,v]=jB0(m),A=DB0(),[Z,E]=e.useState(null),M=s6(t,m?p:null,Fe(l0=>h.send({type:dt.SetItemsElement,element:l0})),E),[S,L]=L4(h,l0=>[l0.menuState,l0.buttonElement]),_=Dm(L),N=Dm(Z);m&&(i=!0);let V=Wm(),[C,P]=d90(s,Z,V!==null?(V&c6.Open)===c6.Open:S===x8.Open);Gd0(C,L,()=>{h.send({type:dt.CloseMenu})});let x=L4(h,l0=>l0.__demoMode),$=x?!1:o&&S===x8.Open;l90($,N);let D=x?!1:o&&S===x8.Open;qd0(D,{allowed:e.useCallback(()=>[L,Z],[L,Z])});let z=L4(h,h.selectors.didButtonMove)?!1:C;e.useEffect(()=>{let l0=Z;l0&&S===x8.Open&&(gd0(l0)||l0.focus({preventScroll:!0}))},[S,Z]),Nj0(S===x8.Open,{container:Z,accept(l0){return l0.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:l0.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(l0){l0.setAttribute("role","none")}});let Y=Xo(),i0=Fe(l0=>{var n0,J,U;switch(Y.dispose(),l0.key){case Ja.Space:if(h.state.searchQuery!=="")return l0.preventDefault(),l0.stopPropagation(),h.send({type:dt.Search,value:l0.key});case Ja.Enter:if(l0.preventDefault(),l0.stopPropagation(),h.state.activeItemIndex!==null){let{dataRef:Q}=h.state.items[h.state.activeItemIndex];(J=(n0=Q.current)==null?void 0:n0.domRef.current)==null||J.click()}h.send({type:dt.CloseMenu}),Kd0(h.state.buttonElement);break;case Ja.ArrowDown:return l0.preventDefault(),l0.stopPropagation(),h.send({type:dt.GoToItem,focus:Za.Next});case Ja.ArrowUp:return l0.preventDefault(),l0.stopPropagation(),h.send({type:dt.GoToItem,focus:Za.Previous});case Ja.Home:case Ja.PageUp:return l0.preventDefault(),l0.stopPropagation(),h.send({type:dt.GoToItem,focus:Za.First});case Ja.End:case Ja.PageDown:return l0.preventDefault(),l0.stopPropagation(),h.send({type:dt.GoToItem,focus:Za.Last});case Ja.Escape:l0.preventDefault(),l0.stopPropagation(),rn.flushSync(()=>h.send({type:dt.CloseMenu})),(U=h.state.buttonElement)==null||U.focus({preventScroll:!0});break;case Ja.Tab:l0.preventDefault(),l0.stopPropagation(),rn.flushSync(()=>h.send({type:dt.CloseMenu})),mj0(h.state.buttonElement,l0.shiftKey?hn.Previous:hn.Next);break;default:l0.key.length===1&&(h.send({type:dt.Search,value:l0.key}),Y.setTimeout(()=>h.send({type:dt.ClearSearch}),350));break}}),G=Fe(l0=>{l0.key===Ja.Space&&l0.preventDefault()}),W=J6({open:S===x8.Open}),o0=Im(m?A():{},{"aria-activedescendant":L4(h,h.selectors.activeDescendantId),"aria-labelledby":L4(h,l0=>{var n0;return(n0=l0.buttonElement)==null?void 0:n0.id}),id:r,onKeyDown:i0,onKeyUp:G,role:"menu",tabIndex:S===x8.Open?0:void 0,ref:M,style:{...c.style,...v,"--button-width":zD0(C,L,!0).width},...c90(P)}),v0=Rt();return u1.createElement(q90,{enabled:i?a.static||C:!1,ownerDocument:_},v0({ourProps:o0,theirProps:c,slot:W,defaultTag:JU0,features:ez0,visible:z,name:"Menu.Items"}))}let az0=e.Fragment;function nz0(a,t){let n=e.useId(),{id:r=`headlessui-menu-item-${n}`,disabled:l=!1,...i}=a,o=cF("Menu.Item"),s=L4(o,z=>o.selectors.isActive(z,r)),c=e.useRef(null),m=s6(t,c),h=L4(o,z=>o.selectors.shouldScrollIntoView(z,r));yt(()=>{if(h)return w6().requestAnimationFrame(()=>{var z,Y;(Y=(z=c.current)==null?void 0:z.scrollIntoView)==null||Y.call(z,{block:"nearest"})})},[h,c]);let p=UU0(c),v=e.useRef({disabled:l,domRef:c,get textValue(){return p()}});yt(()=>{v.current.disabled=l},[v,l]),yt(()=>(o.actions.registerItem(r,v),()=>o.actions.unregisterItem(r)),[v,r]);let A=Fe(()=>{o.send({type:dt.CloseMenu})}),Z=Fe(z=>{if(l)return z.preventDefault();o.send({type:dt.CloseMenu}),Kd0(o.state.buttonElement)}),E=Fe(()=>{if(l)return o.send({type:dt.GoToItem,focus:Za.Nothing});o.send({type:dt.GoToItem,focus:Za.Specific,id:r})}),M=yj0(),S=Fe(z=>M.update(z)),L=Fe(z=>{M.wasMoved(z)&&(l||s||o.send({type:dt.GoToItem,focus:Za.Specific,id:r,trigger:jg.Pointer}))}),_=Fe(z=>{M.wasMoved(z)&&(l||s&&o.state.activationTrigger===jg.Pointer&&o.send({type:dt.GoToItem,focus:Za.Nothing}))}),[N,V]=bd0(),[C,P]=Fd0(),x=J6({active:s,focus:s,disabled:l,close:A}),$={id:r,ref:m,role:"menuitem",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-labelledby":N,"aria-describedby":C,disabled:void 0,onClick:Z,onFocus:E,onPointerEnter:S,onMouseEnter:S,onPointerMove:L,onMouseMove:L,onPointerLeave:_,onMouseLeave:_},D=Rt();return u1.createElement(V,null,u1.createElement(P,null,D({ourProps:$,theirProps:i,slot:x,defaultTag:az0,name:"Menu.Item"})))}let rz0="div";function lz0(a,t){let[n,r]=bd0(),l=a,i={ref:t,"aria-labelledby":n,role:"group"},o=Rt();return u1.createElement(r,null,o({ourProps:i,theirProps:l,slot:{},defaultTag:rz0,name:"Menu.Section"}))}let iz0="header";function oz0(a,t){let n=e.useId(),{id:r=`headlessui-menu-heading-${n}`,...l}=a,i=OS();yt(()=>i.register(r),[r,i.register]);let o={id:r,ref:t,role:"presentation",...i.props};return Rt()({ourProps:o,theirProps:l,slot:{},defaultTag:iz0,name:"Menu.Heading"})}let sz0="div";function cz0(a,t){let n=a,r={ref:t,role:"separator"};return Rt()({ourProps:r,theirProps:n,slot:{},defaultTag:sz0,name:"Menu.Separator"})}let dz0=Vt(YU0),hm0=Vt(XU0),pm0=Vt(tz0),fm0=Vt(nz0),mz0=Vt(lz0),uz0=Vt(oz0),vm0=Vt(cz0),hz0=Object.assign(dz0,{Button:hm0,Items:pm0,Item:fm0,Section:mz0,Heading:uz0,Separator:vm0});const kl=e.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),gm0=u1.createContext(e.forwardRef(function(t,n){return T.jsx("a",{...t,ref:n})})),dF=()=>u1.useContext(gm0),pz0=({linkComponent:a,children:t})=>T.jsx(gm0.Provider,{value:a,children:t}),Bg=function({to:t,href:n,...r}){const l=!!n||typeof t=="string"&&t?.startsWith("http://")||typeof t=="string"&&t?.startsWith("https://"),i=dF();return T.jsx(iU0,{children:T.jsx(i,{to:t,href:n,isExternal:l,...r})})},Y7={base:["relative isolate inline-flex items-center justify-center gap-x-2 rounded-xl border text-base font-semibold","px-4 py-2","focus:outline-none data-[focus]:outline data-[focus]:outline-2 data-[focus]:outline-offset-2 data-[focus]:outline-blue-500","data-[disabled]:opacity-50","transition-[color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,filter,backdrop-filter] duration-150 ease-in-out after:transition before:transition","whitespace-nowrap","lg:active:hover:scale-95 lg:active:hover:before:opacity-50"],modes:{solid:["border-transparent","dark:bg-[--btn-bg]","bg-[--btn-bg]","before:absolute before:inset-0 before:-z-10 before:rounded-[calc(theme(borderRadius.xl)-1px)]","dark:before:hidden","dark:border-white/5","after:absolute after:inset-0 after:-z-10 after:rounded-[calc(theme(borderRadius.xl)-1px)]","after:shadow-[shadow:inset_0_1px_theme(colors.white/15%)]","dark:after:shadow-none","after:data-[active]:bg-[--btn-hover-overlay] after:data-[hover]:bg-[--btn-hover-overlay]","dark:after:-inset-px dark:after:rounded-xl","before:data-[disabled]:shadow-none after:data-[disabled]:shadow-none"],ghost:["border-transparent","hover:dark:bg-[--btn-bg]","hover:bg-[--btn-bg]","before:absolute before:inset-0 before:-z-10 before:rounded-[calc(theme(borderRadius.xl)-1px)]","dark:before:hidden","hover:dark:border-white/5","after:absolute after:inset-0 after:-z-10 after:rounded-[calc(theme(borderRadius.xl)-1px)]","hover:after:shadow-[shadow:inset_0_1px_theme(colors.white/15%)]","after:data-[active]:bg-[--btn-hover-overlay] after:data-[hover]:bg-[--btn-hover-overlay]","dark:after:-inset-px dark:after:rounded-xl","before:data-[disabled]:shadow-none after:data-[disabled]:shadow-none","before:shadow-none"]},circular:["!rounded-full !aspect-square !p-2","before:!rounded-full after:!rounded-full dark:after:!rounded-full"],pill:["!rounded-full","before:!rounded-full after:!rounded-full dark:after:!rounded-full"],small:["!rounded-md !text-sm !px-1.5 !py-1","before:!rounded-md after:!rounded-md dark:after:!rounded-md"],surfaces:{system:["text-fg-primary dark:text-fg-primary-dark","[--btn-bg:theme(colors.system.regular)] [--btn-hover-overlay:theme(colors.white/20%)]","dark:[--btn-bg:theme(colors.system.regular-dark)] dark:[--btn-hover-overlay:theme(colors.white/10%)]","[--icon-color:theme(colors.fg.secondary)] dark:[--icon-color:theme(colors.fg.secondary-dark)]","backdrop-blur-lg","hover:before:shadow-lg"],material:["text-fg-primary dark:text-fg-primary-dark","[--btn-bg:theme(colors.material.regular)] [--btn-hover-overlay:theme(colors.white/20%)]","dark:[--btn-bg:theme(colors.material.regular-dark)] dark:[--btn-hover-overlay:theme(colors.white/10%)]","[--icon-color:theme(colors.fg.secondary)] dark:[--icon-color:theme(colors.fg.secondary-dark)]","backdrop-blur-lg","hover:before:shadow-lg"],chrome:["text-fg-primary dark:text-fg-primary-dark","[--btn-bg:theme(colors.system.chrome)]","dark:[--btn-bg:theme(colors.system.chrome-dark)] dark:[--btn-hover-overlay:theme(colors.white/5%)]","[--icon-color:theme(colors.fg.primary)] dark:[--icon-color:theme(colors.fg.primary-dark)]","before:shadow hover:before:shadow-lg"],solid:["text-fg-primary-dark [--btn-bg:theme(colors.action)] [--btn-hover-overlay:theme(colors.white/15%)]","dark:text-fg-primary-dark dark:[--btn-bg:theme(colors.action)] dark:[--btn-hover-overlay:theme(colors.white/15%)]","[--icon-color:theme(colors.fg.primary-dark)] dark:[--icon-color:theme(colors.fg.primary-dark)]","before:shadow hover:before:shadow-lg"],tinted:["text-action [--btn-bg:theme(colors.action/20%)] [--btn-hover-overlay:theme(colors.white/15%)]","dark:text-action dark:[--btn-bg:theme(colors.action/20%)] dark:[--btn-hover-overlay:theme(colors.white/10%)]","[--icon-color:theme(colors.action)] dark:[--icon-color:theme(colors.action)]","backdrop-blur-lg"],ghost:["text-fg-primary dark:text-fg-primary-dark","[--btn-bg:transparent]","dark:[--btn-bg:transparent]","[--icon-color:theme(colors.fg.primary)] dark:[--icon-color:theme(colors.fg.primary-dark)]","dark:border-none","!px-0"]}},fz0={color:"var(--icon-color)",weight:"bold",size:"1.25rem"},f2=e.forwardRef(function({surface:t="system",mode:n="solid",small:r=!1,circular:l=!1,pill:i=!1,children:o,className:s,iconProps:c={},...m},h){const p=me(s,Y7.base,Y7.modes[n],Y7.surfaces[t],r&&Y7.small,i&&Y7.pill,l&&Y7.circular),v={...fz0,...c},A="href"in m&&m.href!=null||"to"in m&&m.to!=null,Z=dF();return A?T.jsx(Z,{...m,className:p,ref:h,children:T.jsx(kl.Provider,{value:v,children:T.jsx(Am0,{children:o})})}):T.jsx(VD0,{...m,className:me(p,"cursor-pointer data-[disabled]:cursor-not-allowed"),ref:h,children:T.jsx(kl.Provider,{value:v,children:T.jsx(Am0,{children:o})})})});function Am0({children:a}){return T.jsxs(T.Fragment,{children:[a,T.jsx("span",{className:"absolute left-1/2 top-1/2 size-[max(100%,2.75rem)] -translate-x-1/2 -translate-y-1/2 [@media(pointer:fine)]:hidden","aria-hidden":"true"})]})}const Xm=({src:a=null,square:t=!1,initials:n,alt:r="",className:l,noBorder:i=!1,children:o,...s})=>{const m=n?(h=>{if(!h)return;let p=0;return h.split("").forEach(E=>{p=E.charCodeAt(0)+((p<<5)-p)}),`hsl(${p%360}, 40%, 60%)`})(n):void 0;return T.jsxs("span",{"data-slot":"avatar",...s,className:me(l,"inline-grid shrink-0 align-middle [--avatar-radius:20%] [--ring-opacity:20%] *:col-start-1 *:row-start-1",!i&&"bg-gray-100/50 dark:bg-material-thin-dark backdrop-blur-md border-2 border-system-chrome dark:border-system-chrome-dark",t?"rounded-[--avatar-radius] *:rounded-[--avatar-radius]":"rounded-full *:rounded-full"),children:[a?T.jsx("img",{src:a,alt:r,className:"object-cover object-center aspect-square"}):n?T.jsxs("svg",{className:"select-none fill-current w-full h-full font-medium uppercase",style:{backgroundColor:MS(m).alpha(.7).toString(),color:MS(m).darken(.6).toString(),fontSize:"400%"},viewBox:"0 0 100 100","aria-hidden":r?void 0:"true",children:[r?T.jsx("title",{children:r}):null,T.jsx("text",{x:"50%",y:"50%",alignmentBaseline:"middle",dominantBaseline:"middle",textAnchor:"middle",dy:".125em",children:n})]}):null,o]})},vz0={color:"var(--icon-color)",weight:"fill",size:"16px"},gz0=e.forwardRef(function({className:t,direction:n="cols",...r},l){return T.jsx(kl.Provider,{value:vz0,children:T.jsx("div",{ref:l,className:me(t,"[--anchor-gap:theme(spacing.2)] [--anchor-padding:theme(spacing.3)] data-[anchor~=end]:[--anchor-offset:4px] data-[anchor~=start]:[--anchor-offset:-4px]","origin-top-left isolate rounded-lg","outline outline-1 outline-transparent focus:outline-none","overflow-y-auto","bg-material-chrome backdrop-blur-xl dark:bg-material-regular-dark","shadow-lg ring-1 ring-system-thick dark:ring-inset dark:ring-system-thick-dark","supports-[grid-template-columns:subgrid]:grid",n==="cols"?"supports-[grid-template-columns:subgrid]:grid-cols-[auto_auto_auto]":"supports-[grid-template-columns:subgrid]:grid-rows-[auto_auto_auto]","transition-opacity data-[closed]:data-[leave]:opacity-0 data-[leave]:duration-100 data-[leave]:ease-in"),...r})})}),Az0=e.forwardRef(function({active:t,className:n,href:r,to:l,...i},o){const s=me(n,"group cursor-pointer inline-flex rounded-md px-3 py-2 focus:outline-none sm:px-3 sm:py-1.5","text-left text-base/6 text-fg-primary sm:text-sm/6 dark:text-fg-primary-dark forced-colors:text-[CanvasText]","data-[focus]:bg-system-thin dark:data-[focus]:bg-system-thin-dark","focus:bg-system-thin dark:focus:bg-system-thin-dark","hover:bg-system-thin dark:hover:bg-system-thin-dark","data-[disabled]:opacity-50","disabled:opacity-50","forced-color-adjust-none forced-colors:focus:bg-[Highlight] forced-colors:focus:text-[HighlightText] forced-colors:[&>[data-slot=icon]]:focus:text-[HighlightText]","forced-colors:data-[focus]:bg-[Highlight] forced-colors:data-[focus]:text-[HighlightText] forced-colors:[&>[data-slot=icon]]:data-[focus]:text-[HighlightText]","col-span-full grid grid-cols-[auto_auto_auto] items-center supports-[grid-template-columns:subgrid]:grid-cols-subgrid","[--icon-color:theme(colors.fg.secondary)] dark:[--icon-color:theme(colors.fg.secondary-dark)]","gap-x-1",t?"bg-system-thin dark:bg-system-thin-dark":null),c=dF();if(r||l){const m=i;return T.jsx(c,{...m,href:r,to:l,className:s,ref:o})}else{const m=i;return T.jsx("button",{...m,type:"button",className:s,ref:o})}}),Zz0={color:"var(--icon-color)",weight:"fill",size:"16px"};function Zm0(a){const{as:t="div",...n}=a;return T.jsx(hz0,{as:t,...n})}function Hm0(a){const{className:t,...n}=a;return T.jsx(hm0,{as:f2,...n,className:me("lg:active:hover:!scale-100",t)})}function Hz0(a,t){const n=a?.split(/\s+/).some(r=>/^!?w-/.test(r));return me(a,!n&&t)}function Em0({anchor:a="bottom",className:t,portal:n=!0,...r}){return T.jsx(pm0,{transition:!0,...r,anchor:n?a:void 0,as:gz0,className:l=>Hz0(typeof t=="function"?t(l):t,"w-max")})}function a3(a){return T.jsx(kl.Provider,{value:Zz0,children:T.jsx(fm0,{as:Az0,...a})})}function Ez0({className:a,...t}){return T.jsx(vm0,{...t,className:me(a,"col-span-full mx-3.5 my-1 h-px border-0 bg-zinc-950/5 sm:mx-3 dark:bg-white/10 forced-colors:bg-[CanvasText]")})}function n3({className:a,...t}){return T.jsx(jD0,{...t,"data-slot":"label",className:me(a,"col-start-2 row-start-1"),...t})}const Sl={card:["flex flex-col group","relative","rounded-xl","shadow-lg","dark:border-white/5 dark:border"],childRadius:["[&>:first-child]:rounded-t-xl [&>:last-child]:rounded-b-xl","[&>:first-child]:before:rounded-t-xl [&>:first-child]:after:rounded-t-xl","[&>:last-child]:before:rounded-b-xl [&>:last-child]:after:rounded-b-xl"],backgroundColor:["bg-system-chrome dark:bg-system-chrome-dark"],interactive:["transition-all","hover:-translate-y-0.5 active:hover:scale-[98%] hover:shadow-xl","group-hover:-translate-y-0.5 group-hover:shadow-xl group-active:hover:scale-[98%]"],cardNonResponsive:["[&>*]:min-w-full"],responsive:["md:flex-row"],responsiveChildRadius:["md:[&>:first-child]:rounded-none md:[&>:last-child]:rounded-none","md:[&>:first-child]:before:rounded-none md:[&>:first-child]:after:rounded-none","md:[&>:last-child]:before:rounded-none md:[&>:last-child]:after:rounded-none","md:[&>:first-child]:rounded-l-xl md:[&>:last-child]:rounded-r-xl","md:[&>:first-child]:before:rounded-l-xl md:[&>:first-child]:after:rounded-l-xl","md:[&>:last-child]:before:rounded-r-xl md:[&>:last-child]:after:rounded-r-xl"],cardContent:["p-4 relative z-0","content-center","before:z-[-1] before:bg-bottom before:bg-cover before:bg-no-repeat before:[background-image:var(--blurBackground)] before:absolute before","after:z-[-1] after:backdrop-blur-xl after:bg-material-screen dark:after:bg-material-regular-dark after:absolute after","after:transition-colors group-hover:after:bg-material-chrome dark:group-hover:after:bg-material-chrome-dark"],cardImage:["overflow-hidden w-full"]},O8=({as:a,interactive:t=!1,responsive:n=!1,backgroundColor:r="",childRadius:l=!0,className:i,...o})=>{const s=a||"div";return T.jsx(s,{...o,className:me(Sl.card,l&&Sl.childRadius,r||Sl.backgroundColor,t?Sl.interactive:null,n?Sl.responsive:Sl.cardNonResponsive,n&&l?Sl.responsiveChildRadius:null,i)})},Fl=({as:a,className:t,blurBackground:n,...r})=>{const l=a||"div";return T.jsx(l,{...r,style:n?{"--blurBackground":`url(${n})`}:r.style,className:me(t,Sl.cardContent,!n&&"after:hidden")})},Ug=({as:a,className:t,...n})=>{const r=a||"img";return T.jsx(r,{...n,className:me(t,Sl.cardImage)})},mF={inherited:["[&_a]:text-action [&_a]:underline [&_a]:decoration-action/50 [&_a:hover]:decoration-action/100"],as:{p:["text-base/relaxed"],h1:["text-4xl/normal font-bold font-heading leading-tight"],h2:["text-2xl/normal font-semibold font-heading"],h3:["text-xl/snug font-semibold font-heading"],h4:["text-lg/tight font-medium font-heading"],h5:["text-base/tight font-medium font-heading"],small:["text-xs/tight"]}},Mz0={section:["text-2xl min-[560px]:text-[2.75rem] xl:text-5xl font-bold font-heading leading-tight"],hero:["text-xl lg:text-5xl font-bold font-heading leading-tight"],card:["text-base min-[560px]:text-lg xl:text-xl font-semibold font-heading leading-snug"]},yz0="p";function ge({className:a,as:t,fg:n="primary",size:r,...l}){const i=t??yz0;let o;switch(n){case"secondary":o="text-fg-secondary dark:text-fg-secondary-dark";break;case"tertiary":o="text-fg-tertiary dark:text-fg-tertiary-dark";break;case"quaternary":o="text-fg-quaternary dark:text-fg-quaternary-dark";break;default:o="text-fg-primary dark:text-fg-primary-dark";break}return T.jsx(i,{...l,"data-slot":"text",className:me(a,r?Mz0[r]:mF.as[t]??mF.as.p,mF.inherited,o)})}const Vz0={xs:"sm:max-w-xs",sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl","4xl":"sm:max-w-4xl","5xl":"sm:max-w-5xl"};function kz0({open:a,onClose:t,size:n="lg",className:r,children:l,style:i,...o}){const s=e.useRef(null);return e.useEffect(()=>{a&&s.current&&(s.current.scrollTop=0)},[a]),T.jsx(Qm,{appear:!0,show:a,...o,children:T.jsxs(Dg,{onClose:t,children:[T.jsx(Ym,{enter:"ease-out duration-100",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:T.jsx("div",{className:"z-[10000] fixed inset-0 flex w-screen justify-center overflow-y-auto bg-material-regular px-2 py-2 focus:outline-0 sm:px-6 sm:py-8 lg:px-8 lg:py-16 dark:bg-material-regular-dark"})}),T.jsx("div",{ref:s,className:me("z-[10000] fixed inset-0 w-screen overflow-y-auto pt-6 sm:pt-0"),children:T.jsx("div",{className:"grid min-h-full grid-rows-[1fr_auto] justify-items-center sm:grid-rows-[1fr_auto_3fr] sm:p-4",children:T.jsx(Ym,{enter:"ease-out duration-100",enterFrom:"opacity-0 translate-y-12 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-100",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-12 sm:translate-y-0",children:T.jsx(lm0,{style:i,className:me(r,Vz0[n],"row-start-2 w-full min-w-0 rounded-t-3xl bg-system-chrome p-[--gutter] shadow-lg [--gutter:theme(spacing.8)] sm:mb-auto sm:rounded-2xl dark:bg-system-chrome-dark dark:ring-1 dark:ring-white/10 forced-colors:outline"),children:l})})})})]})})}function Sz0({className:a,...t}){return T.jsx(im0,{...t,className:me(a,"text-balance text-lg/6 font-semibold text-fg-primary sm:text-base/6 dark:text-fg-primary-dark")})}const k=e.forwardRef((a,t)=>{const{alt:n,color:r,size:l,weight:i,mirrored:o,children:s,weights:c,...m}=a,{color:h="currentColor",size:p,weight:v="regular",mirrored:A=!1,...Z}=e.useContext(kl);return e.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:l??p,height:l??p,fill:r??h,viewBox:"0 0 256 256",transform:o||A?"scale(-1, 1)":void 0,...Z,...m},!!n&&e.createElement("title",null,n),s,c.get(i??v))});k.displayName="IconBase";const Fz0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216.49,56.48,177,96h19a12,12,0,0,1,0,24H148a12,12,0,0,1-12-12V60a12,12,0,0,1,24,0V79l39.51-39.52a12,12,0,0,1,17,17ZM108,136H60a12,12,0,0,0,0,24H79L39.51,199.51a12,12,0,0,0,17,17L96,177v19a12,12,0,0,0,24,0V148A12,12,0,0,0,108,136Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z",opacity:"0.2"}),e.createElement("path",{d:"M213.66,53.66,163.31,104H192a8,8,0,0,1,0,16H144a8,8,0,0,1-8-8V64a8,8,0,0,1,16,0V92.69l50.34-50.35a8,8,0,0,1,11.32,11.32ZM112,136H64a8,8,0,0,0,0,16H92.69L42.34,202.34a8,8,0,0,0,11.32,11.32L104,163.31V192a8,8,0,0,0,16,0V144A8,8,0,0,0,112,136Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M120,144v48a8,8,0,0,1-13.66,5.66L88,179.31,53.66,213.66a8,8,0,0,1-11.32-11.32L76.69,168,58.34,149.66A8,8,0,0,1,64,136h48A8,8,0,0,1,120,144ZM213.66,42.34a8,8,0,0,0-11.32,0L168,76.69,149.66,58.34A8,8,0,0,0,136,64v48a8,8,0,0,0,8,8h48a8,8,0,0,0,5.66-13.66L179.31,88l34.35-34.34A8,8,0,0,0,213.66,42.34Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M212.24,52.24,158.48,106H192a6,6,0,0,1,0,12H144a6,6,0,0,1-6-6V64a6,6,0,0,1,12,0V97.52l53.76-53.76a6,6,0,0,1,8.48,8.48ZM112,138H64a6,6,0,0,0,0,12H97.52L43.76,203.76a6,6,0,1,0,8.48,8.48L106,158.48V192a6,6,0,0,0,12,0V144A6,6,0,0,0,112,138Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M213.66,53.66,163.31,104H192a8,8,0,0,1,0,16H144a8,8,0,0,1-8-8V64a8,8,0,0,1,16,0V92.69l50.34-50.35a8,8,0,0,1,11.32,11.32ZM112,136H64a8,8,0,0,0,0,16H92.69L42.34,202.34a8,8,0,0,0,11.32,11.32L104,163.31V192a8,8,0,0,0,16,0V144A8,8,0,0,0,112,136Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M210.83,50.83,153.66,108H192a4,4,0,0,1,0,8H144a4,4,0,0,1-4-4V64a4,4,0,0,1,8,0v38.34l57.17-57.17a4,4,0,1,1,5.66,5.66ZM112,140H64a4,4,0,0,0,0,8h38.34L45.17,205.17a4,4,0,0,0,5.66,5.66L108,153.66V192a4,4,0,0,0,8,0V144A4,4,0,0,0,112,140Z"}))]]),uF=e.forwardRef((a,t)=>e.createElement(k,{ref:t,...a,weights:Fz0}));uF.displayName="ArrowsInSimpleIcon";const hF=uF,Lz0=Object.freeze(Object.defineProperty({__proto__:null,ArrowsInSimple:hF,ArrowsInSimpleIcon:uF},Symbol.toStringTag,{value:"Module"})),bz0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M220,48V96a12,12,0,0,1-24,0V77l-39.51,39.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM99.51,139.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l39.52-39.51a12,12,0,0,0-17-17Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z",opacity:"0.2"}),e.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-50.34,50.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM106.34,138.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l50.35-50.34a8,8,0,0,0-11.32-11.32Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M117.66,138.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l34.34-34.35A8,8,0,0,1,117.66,138.34ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72l-34.35,34.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-50.34,50.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM106.34,138.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l50.35-50.34a8,8,0,0,0-11.32-11.32Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M212,48V96a4,4,0,0,1-8,0V57.66l-57.17,57.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM109.17,141.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l57.17-57.17a4,4,0,0,0-5.66-5.66Z"}))]]),pF=e.forwardRef((a,t)=>e.createElement(k,{ref:t,...a,weights:bz0}));pF.displayName="ArrowsOutSimpleIcon";const fF=pF,_z0=Object.freeze(Object.defineProperty({__proto__:null,ArrowsOutSimple:fF,ArrowsOutSimpleIcon:pF},Symbol.toStringTag,{value:"Module"})),l5={card:["group","z-0","mb-12","px-4 pt-14 pb-0","rounded-xl","relative","transition after:transition-all hover:transition-all","after:absolute after:-z-10 after:rounded-xl","dark:after:border-white/5"],contractedCard:["cursor-pointer","after:inset-0","active:hover:scale-95 active:hover:after:shadow-md","after:bg-material-thick dark:after:bg-material-thick-dark","hover:after:shadow-lg hover:after:-inset-4 hover:mb-12"],expandedCard:["is-expanded","cursor-auto","after:bg-material-chrome dark:after:bg-material-regular-dark","hover:after:shadow-xl after:shadow-xl dark:after:shadow-none dark:after:border dark:after:border-white/5","after:-inset-4","pb-8"],content:["max-h-56 min-h-24 overflow-hidden"],contentContracted:["pointer-events-none","after:absolute after:bottom-0 after:left-0 after:right-0 after:h-14 after:rounded-b-xl after:bg-gradient-to-b after:from-transparent after:to-material-thick after:dark:to-material-thick-dark","gradient-mask-b-0 group-hover:gradient-mask-b-[rgba(0,0,0,1.0)_50%,rgba(0,0,0,0)_100%]"],catchClicks:["absolute inset-0 z-[5]"],button:["transition absolute top-4 right-4 z-10 flex items-center gap-2","group-[.is-expanded]:translate-x-4 group-[.is-expanded]:-translate-y-4","group-hover:translate-x-4 group-hover:-translate-y-4"]},Nz0=({children:a,expandedOnMount:t=!1,className:n,actions:r})=>{const[l,i]=e.useState(t),[o,s]=e.useState(224),c=e.useRef(null);return e.useEffect(()=>{if(!c.current)return;const m=new ResizeObserver(()=>{c.current&&c.current.scrollHeight!==o&&s(c.current.scrollHeight)});return m.observe(c.current),function(){m.disconnect()}},[a,o]),T.jsxs("div",{className:me(l5.card,l?l5.expandedCard:l5.contractedCard,n),onClick:l?void 0:()=>i(!l),children:[T.jsx("div",{className:me(l5.content,!l&&l5.contentContracted),style:l?{maxHeight:o}:void 0,ref:c,children:a}),l?null:T.jsx("div",{"data-testid":"expandable-card-catch",className:me(l5.catchClicks),onClick:()=>i(!0)}),T.jsxs("div",{className:me(l5.button),children:[r,T.jsx(f2,{onClick:m=>{m.stopPropagation(),i(!l)},surface:"material",circular:!0,children:l?T.jsx(hF,{size:16}):T.jsx(fF,{size:16})})]})]})},wz0=["date","datetime-local","month","time","week"],Q7=e.forwardRef(function({className:t,...n},r){return T.jsx("span",{"data-slot":"control",className:me(["relative block w-full","before:absolute before:inset-px before:rounded-[calc(theme(borderRadius.lg)-1px)] before:bg-white before:shadow","dark:before:hidden","after:pointer-events-none after:absolute after:inset-0 after:rounded-lg after:ring-inset after:ring-transparent sm:after:focus-within:ring-2 sm:after:focus-within:ring-action","has-[[data-disabled]]:opacity-50 before:has-[[data-disabled]]:bg-system-regular dark:before:has-[[data-disabled]]:bg-system-regular-dark before:has-[[data-disabled]]:shadow-none","before:has-[[data-invalid]]:shadow-red-500/10"]),children:T.jsx(jU0,{ref:r,...n,className:me([t,n.type&&wz0.includes(n.type)&&["[&::-webkit-datetime-edit-fields-wrapper]:p-0","[&::-webkit-date-and-time-value]:min-h-[1.5em]","[&::-webkit-datetime-edit]:inline-flex","[&::-webkit-datetime-edit]:p-0","[&::-webkit-datetime-edit-year-field]:p-0","[&::-webkit-datetime-edit-month-field]:p-0","[&::-webkit-datetime-edit-day-field]:p-0","[&::-webkit-datetime-edit-hour-field]:p-0","[&::-webkit-datetime-edit-minute-field]:p-0","[&::-webkit-datetime-edit-second-field]:p-0","[&::-webkit-datetime-edit-millisecond-field]:p-0","[&::-webkit-datetime-edit-meridiem-field]:p-0"],"relative block w-full appearance-none rounded-lg px-[calc(theme(spacing[3.5])-1px)] py-[calc(theme(spacing[2.5])-1px)] sm:px-[calc(theme(spacing[3])-1px)] sm:py-[calc(theme(spacing[1.5])-1px)]","text-base/6 text-fg-primary placeholder:fg-secondary dark:placeholder:fg-secondary-dark sm:text-sm/6 dark:text-fg-primary-dark","border border-system-thin data-[hover]:border-system-thick dark:border-system-regular-dark dark:data-[hover]:border-system-thin-dark","bg-transparent dark:bg-white/5","focus:outline-none","data-[invalid]:border-red-500 data-[invalid]:data-[hover]:border-red-500 data-[invalid]:dark:border-red-500 data-[invalid]:data-[hover]:dark:border-red-500","data-[disabled]:border-system-thick dark:data-[hover]:data-[disabled]:border-system-thick-dark data-[disabled]:dark:border-system-regular-dark data-[disabled]:dark:bg-system-regular-dark","dark:[color-scheme:dark]",n.type&&n.type==="file"&&["file:bg-gray-50 file:border-0 file:me-4 file:py-3 file:px-4 dark:file:bg-neutral-700 dark:file:text-neutral-400","!p-0"]])})})});var Cz0=Object.defineProperty,Tz0=Object.defineProperties,Iz0=Object.getOwnPropertyDescriptors,zg=Object.getOwnPropertySymbols,Mm0=Object.prototype.hasOwnProperty,ym0=Object.prototype.propertyIsEnumerable,Vm0=(a,t,n)=>t in a?Cz0(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n,Pz0=(a,t)=>{for(var n in t||(t={}))Mm0.call(t,n)&&Vm0(a,n,t[n]);if(zg)for(var n of zg(t))ym0.call(t,n)&&Vm0(a,n,t[n]);return a},xz0=(a,t)=>Tz0(a,Iz0(t)),Oz0=(a,t)=>{var n={};for(var r in a)Mm0.call(a,r)&&t.indexOf(r)<0&&(n[r]=a[r]);if(a!=null&&zg)for(var r of zg(a))t.indexOf(r)<0&&ym0.call(a,r)&&(n[r]=a[r]);return n};function Rz0(a){let t=setTimeout(a,0),n=setTimeout(a,10),r=setTimeout(a,50);return[t,n,r]}function $z0(a){let t=e.useRef();return e.useEffect(()=>{t.current=a}),t.current}var Dz0=18,km0=40,jz0=`${km0}px`,Bz0=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Uz0({containerRef:a,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[l,i]=e.useState(!1),[o,s]=e.useState(!1),[c,m]=e.useState(!1),h=e.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&l&&o,[l,o,n]),p=e.useCallback(()=>{let v=a.current,A=t.current;if(!v||!A||c||n==="none")return;let Z=v,E=Z.getBoundingClientRect().left+Z.offsetWidth,M=Z.getBoundingClientRect().top+Z.offsetHeight/2,S=E-Dz0,L=M;document.querySelectorAll(Bz0).length===0&&document.elementFromPoint(S,L)===v||(i(!0),m(!0))},[a,t,c,n]);return e.useEffect(()=>{let v=a.current;if(!v||n==="none")return;function A(){let E=window.innerWidth-v.getBoundingClientRect().right;s(E>=km0)}A();let Z=setInterval(A,1e3);return()=>{clearInterval(Z)}},[a,n]),e.useEffect(()=>{let v=r||document.activeElement===t.current;if(n==="none"||!v)return;let A=setTimeout(p,0),Z=setTimeout(p,2e3),E=setTimeout(p,5e3),M=setTimeout(()=>{m(!0)},6e3);return()=>{clearTimeout(A),clearTimeout(Z),clearTimeout(E),clearTimeout(M)}},[t,r,n,p]),{hasPWMBadge:l,willPushPWMBadge:h,PWM_BADGE_SPACE_WIDTH:jz0}}var Sm0=e.createContext({}),Fm0=e.forwardRef((a,t)=>{var n=a,{value:r,onChange:l,maxLength:i,textAlign:o="left",pattern:s,placeholder:c,inputMode:m="numeric",onComplete:h,pushPasswordManagerStrategy:p="increase-width",pasteTransformer:v,containerClassName:A,noScriptCSSFallback:Z=zz0,render:E,children:M}=n,S=Oz0(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),L,_,N,V,C;let[P,x]=e.useState(typeof S.defaultValue=="string"?S.defaultValue:""),$=r??P,D=$z0($),z=e.useCallback(e0=>{l?.(e0),x(e0)},[l]),Y=e.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),i0=e.useRef(null),G=e.useRef(null),W=e.useRef({value:$,onChange:z,isIOS:typeof window<"u"&&((_=(L=window?.CSS)==null?void 0:L.supports)==null?void 0:_.call(L,"-webkit-touch-callout","none"))}),o0=e.useRef({prev:[(N=i0.current)==null?void 0:N.selectionStart,(V=i0.current)==null?void 0:V.selectionEnd,(C=i0.current)==null?void 0:C.selectionDirection]});e.useImperativeHandle(t,()=>i0.current,[]),e.useEffect(()=>{let e0=i0.current,d0=G.current;if(!e0||!d0)return;W.current.value!==e0.value&&W.current.onChange(e0.value),o0.current.prev=[e0.selectionStart,e0.selectionEnd,e0.selectionDirection];function V0(){if(document.activeElement!==e0){Q(null),g0(null);return}let E1=e0.selectionStart,M1=e0.selectionEnd,P1=e0.selectionDirection,c1=e0.maxLength,n1=e0.value,t1=o0.current.prev,m1=-1,x1=-1,$1;if(n1.length!==0&&E1!==null&&M1!==null){let f1=E1===M1,U1=E1===n1.length&&n1.length<c1;if(f1&&!U1){let ee=E1;if(ee===0)m1=0,x1=1,$1="forward";else if(ee===c1)m1=ee-1,x1=ee,$1="backward";else if(c1>1&&n1.length>1){let _e=0;if(t1[0]!==null&&t1[1]!==null){$1=ee<t1[1]?"backward":"forward";let Me=t1[0]===t1[1]&&t1[0]<c1;$1==="backward"&&!Me&&(_e=-1)}m1=_e+ee,x1=_e+ee+1}}m1!==-1&&x1!==-1&&m1!==x1&&i0.current.setSelectionRange(m1,x1,$1)}let G1=m1!==-1?m1:E1,je=x1!==-1?x1:M1,Ge=$1??P1;Q(G1),g0(je),o0.current.prev=[G1,je,Ge]}if(document.addEventListener("selectionchange",V0,{capture:!0}),V0(),document.activeElement===e0&&J(!0),!document.getElementById("input-otp-style")){let E1=document.createElement("style");if(E1.id="input-otp-style",document.head.appendChild(E1),E1.sheet){let M1="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Jm(E1.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Jm(E1.sheet,`[data-input-otp]:autofill { ${M1} }`),Jm(E1.sheet,`[data-input-otp]:-webkit-autofill { ${M1} }`),Jm(E1.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Jm(E1.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let w0=()=>{d0&&d0.style.setProperty("--root-height",`${e0.clientHeight}px`)};w0();let X0=new ResizeObserver(w0);return X0.observe(e0),()=>{document.removeEventListener("selectionchange",V0,{capture:!0}),X0.disconnect()}},[]);let[v0,l0]=e.useState(!1),[n0,J]=e.useState(!1),[U,Q]=e.useState(null),[r0,g0]=e.useState(null);e.useEffect(()=>{Rz0(()=>{var e0,d0,V0,w0;(e0=i0.current)==null||e0.dispatchEvent(new Event("input"));let X0=(d0=i0.current)==null?void 0:d0.selectionStart,E1=(V0=i0.current)==null?void 0:V0.selectionEnd,M1=(w0=i0.current)==null?void 0:w0.selectionDirection;X0!==null&&E1!==null&&(Q(X0),g0(E1),o0.current.prev=[X0,E1,M1])})},[$,n0]),e.useEffect(()=>{D!==void 0&&$!==D&&D.length<i&&$.length===i&&h?.($)},[i,h,D,$]);let y0=Uz0({containerRef:G,inputRef:i0,pushPasswordManagerStrategy:p,isFocused:n0}),m0=e.useCallback(e0=>{let d0=e0.currentTarget.value.slice(0,i);if(d0.length>0&&Y&&!Y.test(d0)){e0.preventDefault();return}typeof D=="string"&&d0.length<D.length&&document.dispatchEvent(new Event("selectionchange")),z(d0)},[i,z,D,Y]),I0=e.useCallback(()=>{var e0;if(i0.current){let d0=Math.min(i0.current.value.length,i-1),V0=i0.current.value.length;(e0=i0.current)==null||e0.setSelectionRange(d0,V0),Q(d0),g0(V0)}J(!0)},[i]),s0=e.useCallback(e0=>{var d0,V0;let w0=i0.current;if(!v&&(!W.current.isIOS||!e0.clipboardData||!w0))return;let X0=e0.clipboardData.getData("text/plain"),E1=v?v(X0):X0;e0.preventDefault();let M1=(d0=i0.current)==null?void 0:d0.selectionStart,P1=(V0=i0.current)==null?void 0:V0.selectionEnd,c1=(M1!==P1?$.slice(0,M1)+E1+$.slice(P1):$.slice(0,M1)+E1+$.slice(M1)).slice(0,i);if(c1.length>0&&Y&&!Y.test(c1))return;w0.value=c1,z(c1);let n1=Math.min(c1.length,i-1),t1=c1.length;w0.setSelectionRange(n1,t1),Q(n1),g0(t1)},[i,z,Y,$]),u0=e.useMemo(()=>({position:"relative",cursor:S.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[S.disabled]),A0=e.useMemo(()=>({position:"absolute",inset:0,width:y0.willPushPWMBadge?`calc(100% + ${y0.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:y0.willPushPWMBadge?`inset(0 ${y0.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:o,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[y0.PWM_BADGE_SPACE_WIDTH,y0.willPushPWMBadge,o]),M0=e.useMemo(()=>e.createElement("input",xz0(Pz0({autoComplete:S.autoComplete||"one-time-code"},S),{"data-input-otp":!0,"data-input-otp-placeholder-shown":$.length===0||void 0,"data-input-otp-mss":U,"data-input-otp-mse":r0,inputMode:m,pattern:Y?.source,"aria-placeholder":c,style:A0,maxLength:i,value:$,ref:i0,onPaste:e0=>{var d0;s0(e0),(d0=S.onPaste)==null||d0.call(S,e0)},onChange:m0,onMouseOver:e0=>{var d0;l0(!0),(d0=S.onMouseOver)==null||d0.call(S,e0)},onMouseLeave:e0=>{var d0;l0(!1),(d0=S.onMouseLeave)==null||d0.call(S,e0)},onFocus:e0=>{var d0;I0(),(d0=S.onFocus)==null||d0.call(S,e0)},onBlur:e0=>{var d0;J(!1),(d0=S.onBlur)==null||d0.call(S,e0)}})),[m0,I0,s0,m,A0,i,r0,U,S,Y?.source,$]),S0=e.useMemo(()=>({slots:Array.from({length:i}).map((e0,d0)=>{var V0;let w0=n0&&U!==null&&r0!==null&&(U===r0&&d0===U||d0>=U&&d0<r0),X0=$[d0]!==void 0?$[d0]:null,E1=$[0]!==void 0?null:(V0=c?.[d0])!=null?V0:null;return{char:X0,placeholderChar:E1,isActive:w0,hasFakeCaret:w0&&X0===null}}),isFocused:n0,isHovering:!S.disabled&&v0}),[n0,v0,i,r0,U,S.disabled,$]),q=e.useMemo(()=>E?E(S0):e.createElement(Sm0.Provider,{value:S0},M),[M,S0,E]);return e.createElement(e.Fragment,null,Z!==null&&e.createElement("noscript",null,e.createElement("style",null,Z)),e.createElement("div",{ref:G,"data-input-otp-container":!0,style:u0,className:A},q,e.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},M0)))});Fm0.displayName="Input";function Jm(a,t){try{a.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var zz0=`
|
|
247
|
+
`)),[]});var Sj0=(a=>(a[a.None=0]="None",a[a.Closed=1]="Closed",a[a.Enter=2]="Enter",a[a.Leave=4]="Leave",a))(Sj0||{});function c90(a){let t={};for(let n in a)a[n]===!0&&(t[`data-${n}`]="");return t}function d90(a,t,n,r){let[l,i]=e.useState(n),{hasFlag:o,addFlag:s,removeFlag:c}=Vj0(a&&l?3:0),m=e.useRef(!1),h=e.useRef(!1),p=Xo();return yt(()=>{var v;if(a){if(n&&i(!0),!t){n&&s(3);return}return(v=r?.start)==null||v.call(r,n),Fj0(t,{inFlight:m,prepare(){h.current?h.current=!1:h.current=m.current,m.current=!0,!h.current&&(n?(s(3),c(4)):(s(4),c(2)))},run(){h.current?n?(c(3),s(4)):(c(4),s(3)):n?c(1):s(1)},done(){var A;h.current&&_j0(t)||(m.current=!1,c(7),n||i(!1),(A=r?.end)==null||A.call(r,n))}})}},[a,n,t,p]),a?[l,{closed:o(1),enter:o(2),leave:o(4),transition:o(2)||o(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Fj0(a,{prepare:t,run:n,done:r,inFlight:l}){let i=w6();return bj0(a,{prepare:t,inFlight:l}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(Lj0(a,r))})}),i.dispose}function Lj0(a,t){var n,r;let l=w6();if(!a)return l.dispose;let i=!1;l.add(()=>{i=!0});let o=(r=(n=a.getAnimations)==null?void 0:n.call(a).filter(s=>s instanceof CSSTransition))!=null?r:[];return o.length===0?(t(),l.dispose):(Promise.allSettled(o.map(s=>s.finished)).then(()=>{i||t()}),l.dispose)}function bj0(a,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=a.style.transition;a.style.transition="none",n(),a.offsetHeight,a.style.transition=r}function _j0(a){var t,n;return((n=(t=a.getAnimations)==null?void 0:t.call(a))!=null?n:[]).some(r=>r instanceof CSSTransition&&r.playState!=="finished")}function Nj0(a,{container:t,accept:n,walk:r}){let l=e.useRef(n),i=e.useRef(r);e.useEffect(()=>{l.current=n,i.current=r},[n,r]),yt(()=>{if(!t||!a)return;let o=Qo(t);if(!o)return;let s=l.current,c=i.current,m=Object.assign(p=>s(p),{acceptNode:s}),h=o.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,m,!1);for(;h.nextNode();)c(h.currentNode)},[t,a,l,i])}function GS(a,t){let n=e.useRef([]),r=Fe(a);e.useEffect(()=>{let l=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let s=r(t,l);return n.current=t,s}},[r,...t])}function wj0(a){var t;return(a==null||(t=a.ownerDocument)==null?void 0:t.defaultView)||window}function jm(a){return a instanceof Element||a instanceof wj0(a).Element}function Cj0(){const a=navigator.userAgentData;return a&&Array.isArray(a.brands)?a.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Tj0(a,t){return typeof a=="function"?a(t):a}const Qi=Math.min,t4=Math.max,yg=Math.round,Vg=Math.floor,Xi=a=>({x:a,y:a}),Ij0={left:"right",right:"left",bottom:"top",top:"bottom"},Pj0={start:"end",end:"start"};function m90(a,t,n){return t4(a,Qi(t,n))}function Bm(a,t){return typeof a=="function"?a(t):a}function Ji(a){return a.split("-")[0]}function Um(a){return a.split("-")[1]}function u90(a){return a==="x"?"y":"x"}function h90(a){return a==="y"?"height":"width"}function a5(a){return["top","bottom"].includes(Ji(a))?"y":"x"}function p90(a){return u90(a5(a))}function xj0(a,t,n){n===void 0&&(n=!1);const r=Um(a),l=p90(a),i=h90(l);let o=l==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=kg(o)),[o,kg(o)]}function Oj0(a){const t=kg(a);return[WS(a),t,WS(t)]}function WS(a){return a.replace(/start|end/g,t=>Pj0[t])}function Rj0(a,t,n){const r=["left","right"],l=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(a){case"top":case"bottom":return n?t?l:r:t?r:l;case"left":case"right":return t?i:o;default:return[]}}function $j0(a,t,n,r){const l=Um(a);let i=Rj0(Ji(a),n==="start",r);return l&&(i=i.map(o=>o+"-"+l),t&&(i=i.concat(i.map(WS)))),i}function kg(a){return a.replace(/left|right|bottom|top/g,t=>Ij0[t])}function Dj0(a){return{top:0,right:0,bottom:0,left:0,...a}}function jj0(a){return typeof a!="number"?Dj0(a):{top:a,right:a,bottom:a,left:a}}function Sg(a){const{x:t,y:n,width:r,height:l}=a;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function f90(a,t,n){let{reference:r,floating:l}=a;const i=a5(t),o=p90(t),s=h90(o),c=Ji(t),m=i==="y",h=r.x+r.width/2-l.width/2,p=r.y+r.height/2-l.height/2,v=r[s]/2-l[s]/2;let A;switch(c){case"top":A={x:h,y:r.y-l.height};break;case"bottom":A={x:h,y:r.y+r.height};break;case"right":A={x:r.x+r.width,y:p};break;case"left":A={x:r.x-l.width,y:p};break;default:A={x:r.x,y:r.y}}switch(Um(t)){case"start":A[o]-=v*(n&&m?-1:1);break;case"end":A[o]+=v*(n&&m?-1:1);break}return A}const Bj0=async(a,t,n)=>{const{placement:r="bottom",strategy:l="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let m=await o.getElementRects({reference:a,floating:t,strategy:l}),{x:h,y:p}=f90(m,r,c),v=r,A={},Z=0;for(let E=0;E<s.length;E++){const{name:M,fn:S}=s[E],{x:L,y:_,data:N,reset:V}=await S({x:h,y:p,initialPlacement:r,placement:v,strategy:l,middlewareData:A,rects:m,platform:o,elements:{reference:a,floating:t}});h=L??h,p=_??p,A={...A,[M]:{...A[M],...N}},V&&Z<=50&&(Z++,typeof V=="object"&&(V.placement&&(v=V.placement),V.rects&&(m=V.rects===!0?await o.getElementRects({reference:a,floating:t,strategy:l}):V.rects),{x:h,y:p}=f90(m,v,c)),E=-1)}return{x:h,y:p,placement:v,strategy:l,middlewareData:A}};async function Fg(a,t){var n;t===void 0&&(t={});const{x:r,y:l,platform:i,rects:o,elements:s,strategy:c}=a,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:v=!1,padding:A=0}=Bm(t,a),Z=jj0(A),M=s[v?p==="floating"?"reference":"floating":p],S=Sg(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(M)))==null||n?M:M.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:m,rootBoundary:h,strategy:c})),L=p==="floating"?{x:r,y:l,width:o.floating.width,height:o.floating.height}:o.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),N=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},V=Sg(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:L,offsetParent:_,strategy:c}):L);return{top:(S.top-V.top+Z.top)/N.y,bottom:(V.bottom-S.bottom+Z.bottom)/N.y,left:(S.left-V.left+Z.left)/N.x,right:(V.right-S.right+Z.right)/N.x}}const Uj0=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(t){var n,r;const{placement:l,middlewareData:i,rects:o,initialPlacement:s,platform:c,elements:m}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:E=!0,...M}=Bm(a,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const S=Ji(l),L=a5(s),_=Ji(s)===s,N=await(c.isRTL==null?void 0:c.isRTL(m.floating)),V=v||(_||!E?[kg(s)]:Oj0(s)),C=Z!=="none";!v&&C&&V.push(...$j0(s,E,Z,N));const P=[s,...V],x=await Fg(t,M),$=[];let D=((r=i.flip)==null?void 0:r.overflows)||[];if(h&&$.push(x[S]),p){const G=xj0(l,o,N);$.push(x[G[0]],x[G[1]])}if(D=[...D,{placement:l,overflows:$}],!$.every(G=>G<=0)){var z,Y;const G=(((z=i.flip)==null?void 0:z.index)||0)+1,W=P[G];if(W)return{data:{index:G,overflows:D},reset:{placement:W}};let o0=(Y=D.filter(v0=>v0.overflows[0]<=0).sort((v0,l0)=>v0.overflows[1]-l0.overflows[1])[0])==null?void 0:Y.placement;if(!o0)switch(A){case"bestFit":{var i0;const v0=(i0=D.filter(l0=>{if(C){const n0=a5(l0.placement);return n0===L||n0==="y"}return!0}).map(l0=>[l0.placement,l0.overflows.filter(n0=>n0>0).reduce((n0,J)=>n0+J,0)]).sort((l0,n0)=>l0[1]-n0[1])[0])==null?void 0:i0[0];v0&&(o0=v0);break}case"initialPlacement":o0=s;break}if(l!==o0)return{reset:{placement:o0}}}return{}}}};async function zj0(a,t){const{placement:n,platform:r,elements:l}=a,i=await(r.isRTL==null?void 0:r.isRTL(l.floating)),o=Ji(n),s=Um(n),c=a5(n)==="y",m=["left","top"].includes(o)?-1:1,h=i&&c?-1:1,p=Bm(t,a);let{mainAxis:v,crossAxis:A,alignmentAxis:Z}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return s&&typeof Z=="number"&&(A=s==="end"?Z*-1:Z),c?{x:A*h,y:v*m}:{x:v*m,y:A*h}}const qj0=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(t){var n,r;const{x:l,y:i,placement:o,middlewareData:s}=t,c=await zj0(t,a);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:l+c.x,y:i+c.y,data:{...c,placement:o}}}}},Gj0=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(t){const{x:n,y:r,placement:l}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:M=>{let{x:S,y:L}=M;return{x:S,y:L}}},...c}=Bm(a,t),m={x:n,y:r},h=await Fg(t,c),p=a5(Ji(l)),v=u90(p);let A=m[v],Z=m[p];if(i){const M=v==="y"?"top":"left",S=v==="y"?"bottom":"right",L=A+h[M],_=A-h[S];A=m90(L,A,_)}if(o){const M=p==="y"?"top":"left",S=p==="y"?"bottom":"right",L=Z+h[M],_=Z-h[S];Z=m90(L,Z,_)}const E=s.fn({...t,[v]:A,[p]:Z});return{...E,data:{x:E.x-n,y:E.y-r}}}}},Wj0=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(t){const{placement:n,rects:r,platform:l,elements:i}=t,{apply:o=()=>{},...s}=Bm(a,t),c=await Fg(t,s),m=Ji(n),h=Um(n),p=a5(n)==="y",{width:v,height:A}=r.floating;let Z,E;m==="top"||m==="bottom"?(Z=m,E=h===(await(l.isRTL==null?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(E=m,Z=h==="end"?"top":"bottom");const M=A-c.top-c.bottom,S=v-c.left-c.right,L=Qi(A-c[Z],M),_=Qi(v-c[E],S),N=!t.middlewareData.shift;let V=L,C=_;if(p?C=h||N?Qi(_,S):S:V=h||N?Qi(L,M):M,N&&!h){const x=t4(c.left,0),$=t4(c.right,0),D=t4(c.top,0),z=t4(c.bottom,0);p?C=v-2*(x!==0||$!==0?x+$:t4(c.left,c.right)):V=A-2*(D!==0||z!==0?D+z:t4(c.top,c.bottom))}await o({...t,availableWidth:C,availableHeight:V});const P=await l.getDimensions(i.floating);return v!==P.width||A!==P.height?{reset:{rects:!0}}:{}}}};function q7(a){return v90(a)?(a.nodeName||"").toLowerCase():"#document"}function a4(a){var t;return(a==null||(t=a.ownerDocument)==null?void 0:t.defaultView)||window}function Vl(a){var t;return(t=(v90(a)?a.ownerDocument:a.document)||window.document)==null?void 0:t.documentElement}function v90(a){return a instanceof Node||a instanceof a4(a).Node}function pn(a){return a instanceof Element||a instanceof a4(a).Element}function gr(a){return a instanceof HTMLElement||a instanceof a4(a).HTMLElement}function g90(a){return typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof a4(a).ShadowRoot}function zm(a){const{overflow:t,overflowX:n,overflowY:r,display:l}=fn(a);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(l)}function Kj0(a){return["table","td","th"].includes(q7(a))}function Lg(a){return[":popover-open",":modal"].some(t=>{try{return a.matches(t)}catch{return!1}})}function KS(a){const t=YS(),n=pn(a)?fn(a):a;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Yj0(a){let t=e3(a);for(;gr(t)&&!G7(t);){if(KS(t))return t;if(Lg(t))return null;t=e3(t)}return null}function YS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function G7(a){return["html","body","#document"].includes(q7(a))}function fn(a){return a4(a).getComputedStyle(a)}function bg(a){return pn(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function e3(a){if(q7(a)==="html")return a;const t=a.assignedSlot||a.parentNode||g90(a)&&a.host||Vl(a);return g90(t)?t.host:t}function A90(a){const t=e3(a);return G7(t)?a.ownerDocument?a.ownerDocument.body:a.body:gr(t)&&zm(t)?t:A90(t)}function qm(a,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=A90(a),i=l===((r=a.ownerDocument)==null?void 0:r.body),o=a4(l);return i?t.concat(o,o.visualViewport||[],zm(l)?l:[],o.frameElement&&n?qm(o.frameElement):[]):t.concat(l,qm(l,[],n))}function Z90(a){const t=fn(a);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const l=gr(a),i=l?a.offsetWidth:n,o=l?a.offsetHeight:r,s=yg(n)!==i||yg(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function QS(a){return pn(a)?a:a.contextElement}function W7(a){const t=QS(a);if(!gr(t))return Xi(1);const n=t.getBoundingClientRect(),{width:r,height:l,$:i}=Z90(t);let o=(i?yg(n.width):n.width)/r,s=(i?yg(n.height):n.height)/l;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Qj0=Xi(0);function H90(a){const t=a4(a);return!YS()||!t.visualViewport?Qj0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xj0(a,t,n){return t===void 0&&(t=!1),!n||t&&n!==a4(a)?!1:t}function n5(a,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=a.getBoundingClientRect(),i=QS(a);let o=Xi(1);t&&(r?pn(r)&&(o=W7(r)):o=W7(a));const s=Xj0(i,n,r)?H90(i):Xi(0);let c=(l.left+s.x)/o.x,m=(l.top+s.y)/o.y,h=l.width/o.x,p=l.height/o.y;if(i){const v=a4(i),A=r&&pn(r)?a4(r):r;let Z=v,E=Z.frameElement;for(;E&&r&&A!==Z;){const M=W7(E),S=E.getBoundingClientRect(),L=fn(E),_=S.left+(E.clientLeft+parseFloat(L.paddingLeft))*M.x,N=S.top+(E.clientTop+parseFloat(L.paddingTop))*M.y;c*=M.x,m*=M.y,h*=M.x,p*=M.y,c+=_,m+=N,Z=a4(E),E=Z.frameElement}}return Sg({width:h,height:p,x:c,y:m})}function Jj0(a){let{elements:t,rect:n,offsetParent:r,strategy:l}=a;const i=l==="fixed",o=Vl(r),s=t?Lg(t.floating):!1;if(r===o||s&&i)return n;let c={scrollLeft:0,scrollTop:0},m=Xi(1);const h=Xi(0),p=gr(r);if((p||!p&&!i)&&((q7(r)!=="body"||zm(o))&&(c=bg(r)),gr(r))){const v=n5(r);m=W7(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-c.scrollLeft*m.x+h.x,y:n.y*m.y-c.scrollTop*m.y+h.y}}function eB0(a){return Array.from(a.getClientRects())}function E90(a){return n5(Vl(a)).left+bg(a).scrollLeft}function tB0(a){const t=Vl(a),n=bg(a),r=a.ownerDocument.body,l=t4(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=t4(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+E90(a);const s=-n.scrollTop;return fn(r).direction==="rtl"&&(o+=t4(t.clientWidth,r.clientWidth)-l),{width:l,height:i,x:o,y:s}}function aB0(a,t){const n=a4(a),r=Vl(a),l=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,c=0;if(l){i=l.width,o=l.height;const m=YS();(!m||m&&t==="fixed")&&(s=l.offsetLeft,c=l.offsetTop)}return{width:i,height:o,x:s,y:c}}function nB0(a,t){const n=n5(a,!0,t==="fixed"),r=n.top+a.clientTop,l=n.left+a.clientLeft,i=gr(a)?W7(a):Xi(1),o=a.clientWidth*i.x,s=a.clientHeight*i.y,c=l*i.x,m=r*i.y;return{width:o,height:s,x:c,y:m}}function M90(a,t,n){let r;if(t==="viewport")r=aB0(a,n);else if(t==="document")r=tB0(Vl(a));else if(pn(t))r=nB0(t,n);else{const l=H90(a);r={...t,x:t.x-l.x,y:t.y-l.y}}return Sg(r)}function y90(a,t){const n=e3(a);return n===t||!pn(n)||G7(n)?!1:fn(n).position==="fixed"||y90(n,t)}function rB0(a,t){const n=t.get(a);if(n)return n;let r=qm(a,[],!1).filter(s=>pn(s)&&q7(s)!=="body"),l=null;const i=fn(a).position==="fixed";let o=i?e3(a):a;for(;pn(o)&&!G7(o);){const s=fn(o),c=KS(o);!c&&s.position==="fixed"&&(l=null),(i?!c&&!l:!c&&s.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||zm(o)&&!c&&y90(a,o))?r=r.filter(h=>h!==o):l=s,o=e3(o)}return t.set(a,r),r}function lB0(a){let{element:t,boundary:n,rootBoundary:r,strategy:l}=a;const o=[...n==="clippingAncestors"?Lg(t)?[]:rB0(t,this._c):[].concat(n),r],s=o[0],c=o.reduce((m,h)=>{const p=M90(t,h,l);return m.top=t4(p.top,m.top),m.right=Qi(p.right,m.right),m.bottom=Qi(p.bottom,m.bottom),m.left=t4(p.left,m.left),m},M90(t,s,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function iB0(a){const{width:t,height:n}=Z90(a);return{width:t,height:n}}function oB0(a,t,n){const r=gr(t),l=Vl(t),i=n==="fixed",o=n5(a,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Xi(0);if(r||!r&&!i)if((q7(t)!=="body"||zm(l))&&(s=bg(t)),r){const p=n5(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else l&&(c.x=E90(l));const m=o.left+s.scrollLeft-c.x,h=o.top+s.scrollTop-c.y;return{x:m,y:h,width:o.width,height:o.height}}function XS(a){return fn(a).position==="static"}function V90(a,t){return!gr(a)||fn(a).position==="fixed"?null:t?t(a):a.offsetParent}function k90(a,t){const n=a4(a);if(Lg(a))return n;if(!gr(a)){let l=e3(a);for(;l&&!G7(l);){if(pn(l)&&!XS(l))return l;l=e3(l)}return n}let r=V90(a,t);for(;r&&Kj0(r)&&XS(r);)r=V90(r,t);return r&&G7(r)&&XS(r)&&!KS(r)?n:r||Yj0(a)||n}const sB0=async function(a){const t=this.getOffsetParent||k90,n=this.getDimensions,r=await n(a.floating);return{reference:oB0(a.reference,await t(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cB0(a){return fn(a).direction==="rtl"}const dB0={convertOffsetParentRelativeRectToViewportRelativeRect:Jj0,getDocumentElement:Vl,getClippingRect:lB0,getOffsetParent:k90,getElementRects:sB0,getClientRects:eB0,getDimensions:iB0,getScale:W7,isElement:pn,isRTL:cB0};function mB0(a,t){let n=null,r;const l=Vl(a);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:m,top:h,width:p,height:v}=a.getBoundingClientRect();if(s||t(),!p||!v)return;const A=Vg(h),Z=Vg(l.clientWidth-(m+p)),E=Vg(l.clientHeight-(h+v)),M=Vg(m),L={rootMargin:-A+"px "+-Z+"px "+-E+"px "+-M+"px",threshold:t4(0,Qi(1,c))||1};let _=!0;function N(V){const C=V[0].intersectionRatio;if(C!==c){if(!_)return o();C?o(!1,C):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_=!1}try{n=new IntersectionObserver(N,{...L,root:l.ownerDocument})}catch{n=new IntersectionObserver(N,L)}n.observe(a)}return o(!0),i}function uB0(a,t,n,r){r===void 0&&(r={});const{ancestorScroll:l=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,m=QS(a),h=l||i?[...m?qm(m):[],...qm(t)]:[];h.forEach(S=>{l&&S.addEventListener("scroll",n,{passive:!0}),i&&S.addEventListener("resize",n)});const p=m&&s?mB0(m,n):null;let v=-1,A=null;o&&(A=new ResizeObserver(S=>{let[L]=S;L&&L.target===m&&A&&(A.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=A)==null||_.observe(t)})),n()}),m&&!c&&A.observe(m),A.observe(t));let Z,E=c?n5(a):null;c&&M();function M(){const S=n5(a);E&&(S.x!==E.x||S.y!==E.y||S.width!==E.width||S.height!==E.height)&&n(),E=S,Z=requestAnimationFrame(M)}return n(),()=>{var S;h.forEach(L=>{l&&L.removeEventListener("scroll",n),i&&L.removeEventListener("resize",n)}),p?.(),(S=A)==null||S.disconnect(),A=null,c&&cancelAnimationFrame(Z)}}const JS=Fg,hB0=qj0,pB0=Gj0,fB0=Uj0,vB0=Wj0,gB0=(a,t,n)=>{const r=new Map,l={platform:dB0,...n},i={...l.platform,_c:r};return Bj0(a,t,{...l,platform:i})};var _g=typeof document<"u"?e.useLayoutEffect:e.useEffect;function Ng(a,t){if(a===t)return!0;if(typeof a!=typeof t)return!1;if(typeof a=="function"&&a.toString()===t.toString())return!0;let n,r,l;if(a&&t&&typeof a=="object"){if(Array.isArray(a)){if(n=a.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ng(a[r],t[r]))return!1;return!0}if(l=Object.keys(a),n=l.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,l[r]))return!1;for(r=n;r--!==0;){const i=l[r];if(!(i==="_owner"&&a.$$typeof)&&!Ng(a[i],t[i]))return!1}return!0}return a!==a&&t!==t}function S90(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function F90(a,t){const n=S90(a);return Math.round(t*n)/n}function L90(a){const t=e.useRef(a);return _g(()=>{t.current=a}),t}function AB0(a){a===void 0&&(a={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:c,open:m}=a,[h,p]=e.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,A]=e.useState(r);Ng(v,r)||A(r);const[Z,E]=e.useState(null),[M,S]=e.useState(null),L=e.useCallback(v0=>{v0!==C.current&&(C.current=v0,E(v0))},[]),_=e.useCallback(v0=>{v0!==P.current&&(P.current=v0,S(v0))},[]),N=i||Z,V=o||M,C=e.useRef(null),P=e.useRef(null),x=e.useRef(h),$=c!=null,D=L90(c),z=L90(l),Y=e.useCallback(()=>{if(!C.current||!P.current)return;const v0={placement:t,strategy:n,middleware:v};z.current&&(v0.platform=z.current),gB0(C.current,P.current,v0).then(l0=>{const n0={...l0,isPositioned:!0};i0.current&&!Ng(x.current,n0)&&(x.current=n0,rn.flushSync(()=>{p(n0)}))})},[v,t,n,z]);_g(()=>{m===!1&&x.current.isPositioned&&(x.current.isPositioned=!1,p(v0=>({...v0,isPositioned:!1})))},[m]);const i0=e.useRef(!1);_g(()=>(i0.current=!0,()=>{i0.current=!1}),[]),_g(()=>{if(N&&(C.current=N),V&&(P.current=V),N&&V){if(D.current)return D.current(N,V,Y);Y()}},[N,V,Y,D,$]);const G=e.useMemo(()=>({reference:C,floating:P,setReference:L,setFloating:_}),[L,_]),W=e.useMemo(()=>({reference:N,floating:V}),[N,V]),o0=e.useMemo(()=>{const v0={position:n,left:0,top:0};if(!W.floating)return v0;const l0=F90(W.floating,h.x),n0=F90(W.floating,h.y);return s?{...v0,transform:"translate("+l0+"px, "+n0+"px)",...S90(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:l0,top:n0}},[n,s,W.floating,h.x,h.y]);return e.useMemo(()=>({...h,update:Y,refs:G,elements:W,floatingStyles:o0}),[h,Y,G,W,o0])}const b90=(a,t)=>({...hB0(a),options:[a,t]}),ZB0=(a,t)=>({...pB0(a),options:[a,t]}),HB0=(a,t)=>({...fB0(a),options:[a,t]}),EB0=(a,t)=>({...vB0(a),options:[a,t]});var wg={};const _90={...Bs},MB0=_90.useInsertionEffect||(a=>a());function N90(a){const t=e.useRef(()=>{if(wg.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return MB0(()=>{t.current=a}),e.useCallback(function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return t.current==null?void 0:t.current(...r)},[])}var eF=typeof document<"u"?e.useLayoutEffect:e.useEffect;let w90=!1,yB0=0;const C90=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+yB0++;function VB0(){const[a,t]=e.useState(()=>w90?C90():void 0);return eF(()=>{a==null&&t(C90())},[]),e.useEffect(()=>{w90=!0},[]),a}const kB0=_90.useId||VB0;let Gm;wg.NODE_ENV!=="production"&&(Gm=new Set);function SB0(){for(var a,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const l="Floating UI: "+n.join(" ");if(!((a=Gm)!=null&&a.has(l))){var i;(i=Gm)==null||i.add(l),console.warn(l)}}function FB0(){for(var a,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const l="Floating UI: "+n.join(" ");if(!((a=Gm)!=null&&a.has(l))){var i;(i=Gm)==null||i.add(l),console.error(l)}}function LB0(){const a=new Map;return{emit(t,n){var r;(r=a.get(t))==null||r.forEach(l=>l(n))},on(t,n){a.set(t,[...a.get(t)||[],n])},off(t,n){var r;a.set(t,((r=a.get(t))==null?void 0:r.filter(l=>l!==n))||[])}}}const bB0=e.createContext(null),_B0=e.createContext(null),NB0=()=>{var a;return((a=e.useContext(bB0))==null?void 0:a.id)||null},wB0=()=>e.useContext(_B0);function CB0(a){const{open:t=!1,onOpenChange:n,elements:r}=a,l=kB0(),i=e.useRef({}),[o]=e.useState(()=>LB0()),s=NB0()!=null;if(wg.NODE_ENV!=="production"){const A=r.reference;A&&!jm(A)&&FB0("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,m]=e.useState(r.reference),h=N90((A,Z,E)=>{i.current.openEvent=A?Z:void 0,o.emit("openchange",{open:A,event:Z,reason:E,nested:s}),n?.(A,Z,E)}),p=e.useMemo(()=>({setPositionReference:m}),[]),v=e.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return e.useMemo(()=>({dataRef:i,open:t,onOpenChange:h,elements:v,events:o,floatingId:l,refs:p}),[t,h,v,o,l,p])}function TB0(a){a===void 0&&(a={});const{nodeId:t}=a,n=CB0({...a,elements:{reference:null,floating:null,...a.elements}}),r=a.rootContext||n,l=r.elements,[i,o]=e.useState(null),[s,c]=e.useState(null),h=l?.reference||i,p=e.useRef(null),v=wB0();eF(()=>{h&&(p.current=h)},[h]);const A=AB0({...a,elements:{...l,...s&&{reference:s}}}),Z=e.useCallback(_=>{const N=jm(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),contextElement:_}:_;c(N),A.refs.setReference(N)},[A.refs]),E=e.useCallback(_=>{(jm(_)||_===null)&&(p.current=_,o(_)),(jm(A.refs.reference.current)||A.refs.reference.current===null||_!==null&&!jm(_))&&A.refs.setReference(_)},[A.refs]),M=e.useMemo(()=>({...A.refs,setReference:E,setPositionReference:Z,domReference:p}),[A.refs,E,Z]),S=e.useMemo(()=>({...A.elements,domReference:h}),[A.elements,h]),L=e.useMemo(()=>({...A,...r,refs:M,elements:S,nodeId:t}),[A,M,S,t,r]);return eF(()=>{r.dataRef.current.floatingContext=L;const _=v?.nodesRef.current.find(N=>N.id===t);_&&(_.context=L)}),e.useMemo(()=>({...A,context:L,refs:M,elements:S}),[A,M,S,L])}const T90="active",I90="selected";function tF(a,t,n){const r=new Map,l=n==="item";let i=a;if(l&&a){const{[T90]:o,[I90]:s,...c}=a;i=c}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?a?s(a):null:s}).concat(a).reduce((o,s)=>(s&&Object.entries(s).forEach(c=>{let[m,h]=c;if(!(l&&[T90,I90].includes(m)))if(m.indexOf("on")===0){if(r.has(m)||r.set(m,[]),typeof h=="function"){var p;(p=r.get(m))==null||p.push(h),o[m]=function(){for(var v,A=arguments.length,Z=new Array(A),E=0;E<A;E++)Z[E]=arguments[E];return(v=r.get(m))==null?void 0:v.map(M=>M(...Z)).find(M=>M!==void 0)}}}else o[m]=h}),o),{})}}function IB0(a){a===void 0&&(a=[]);const t=a.map(s=>s?.reference),n=a.map(s=>s?.floating),r=a.map(s=>s?.item),l=e.useCallback(s=>tF(s,a,"reference"),t),i=e.useCallback(s=>tF(s,a,"floating"),n),o=e.useCallback(s=>tF(s,a,"item"),r);return e.useMemo(()=>({getReferenceProps:l,getFloatingProps:i,getItemProps:o}),[l,i,o])}function P90(a,t){return{...a,rects:{...a.rects,floating:{...a.rects.floating,height:t}}}}const PB0=a=>({name:"inner",options:a,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:l,offset:i=0,index:o=0,minItemsVisible:s=4,referenceOverflowThreshold:c=0,scrollRef:m,...h}=Tj0(a,t),{rects:p,elements:{floating:v}}=t,A=n.current[o];if(wg.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||SB0('`placement` side must be "bottom" when using the `inner`',"middleware.")),!A)return{};const Z={...t,...await b90(-A.offsetTop-v.clientTop-p.reference.height/2-A.offsetHeight/2-i).fn(t)},E=m?.current||v,M=await JS(P90(Z,E.scrollHeight),h),S=await JS(Z,{...h,elementContext:"reference"}),L=Math.max(0,M.top),_=Z.y+L,N=Math.max(0,E.scrollHeight-L-Math.max(0,M.bottom));return E.style.maxHeight=N+"px",E.scrollTop=L,l&&(E.offsetHeight<A.offsetHeight*Math.min(s,n.current.length-1)-1||S.top>=-c||S.bottom>=-c?rn.flushSync(()=>l(!0)):rn.flushSync(()=>l(!1))),r&&(r.current=await JS(P90({...Z,y:_},E.offsetHeight),h)),{y:_}}});function xB0(a,t){const{open:n,elements:r}=a,{enabled:l=!0,overflowRef:i,scrollRef:o,onChange:s}=t,c=N90(s),m=e.useRef(!1),h=e.useRef(null),p=e.useRef(null);e.useEffect(()=>{if(!l)return;function A(E){if(E.ctrlKey||!Z||i.current==null)return;const M=E.deltaY,S=i.current.top>=-.5,L=i.current.bottom>=-.5,_=Z.scrollHeight-Z.clientHeight,N=M<0?-1:1,V=M<0?"max":"min";Z.scrollHeight<=Z.clientHeight||(!S&&M>0||!L&&M<0?(E.preventDefault(),rn.flushSync(()=>{c(C=>C+Math[V](M,_*N))})):/firefox/i.test(Cj0())&&(Z.scrollTop+=M))}const Z=o?.current||r.floating;if(n&&Z)return Z.addEventListener("wheel",A),requestAnimationFrame(()=>{h.current=Z.scrollTop,i.current!=null&&(p.current={...i.current})}),()=>{h.current=null,p.current=null,Z.removeEventListener("wheel",A)}},[l,n,r.floating,i,o,c]);const v=e.useMemo(()=>({onKeyDown(){m.current=!0},onWheel(){m.current=!1},onPointerMove(){m.current=!1},onScroll(){const A=o?.current||r.floating;if(!(!i.current||!A||!m.current)){if(h.current!==null){const Z=A.scrollTop-h.current;(i.current.bottom<-.5&&Z<-1||i.current.top<-.5&&Z>1)&&rn.flushSync(()=>c(E=>E+Z))}requestAnimationFrame(()=>{h.current=A.scrollTop})}}}),[r.floating,c,i,o]);return e.useMemo(()=>l?{floating:v}:{},[l,v])}let K7=e.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});K7.displayName="FloatingContext";let aF=e.createContext(null);aF.displayName="PlacementContext";function OB0(a){return e.useMemo(()=>a?typeof a=="string"?{to:a}:a:null,[a])}function RB0(){return e.useContext(K7).setReference}function $B0(){return e.useContext(K7).getReferenceProps}function DB0(){let{getFloatingProps:a,slot:t}=e.useContext(K7);return e.useCallback((...n)=>Object.assign({},a(...n),{"data-anchor":t.anchor}),[a,t])}function jB0(a=null){a===!1&&(a=null),typeof a=="string"&&(a={to:a});let t=e.useContext(aF),n=e.useMemo(()=>a,[JSON.stringify(a,(l,i)=>{var o;return(o=i?.outerHTML)!=null?o:i})]);yt(()=>{t?.(n??null)},[t,n]);let r=e.useContext(K7);return e.useMemo(()=>[r.setFloating,a?r.styles:{}],[r.setFloating,a,r.styles])}let x90=4;function BB0({children:a,enabled:t=!0}){let[n,r]=e.useState(null),[l,i]=e.useState(0),o=e.useRef(null),[s,c]=e.useState(null);UB0(s);let m=t&&n!==null&&s!==null,{to:h="bottom",gap:p=0,offset:v=0,padding:A=0,inner:Z}=zB0(n,s),[E,M="center"]=h.split(" ");yt(()=>{m&&i(0)},[m]);let{refs:S,floatingStyles:L,context:_}=TB0({open:m,placement:E==="selection"?M==="center"?"bottom":`bottom-${M}`:M==="center"?`${E}`:`${E}-${M}`,strategy:"absolute",transform:!1,middleware:[b90({mainAxis:E==="selection"?0:p,crossAxis:v}),ZB0({padding:A}),E!=="selection"&&HB0({padding:A}),E==="selection"&&Z?PB0({...Z,padding:A,overflowRef:o,offset:l,minItemsVisible:x90,referenceOverflowThreshold:A,onFallbackChange(z){var Y,i0;if(!z)return;let G=_.elements.floating;if(!G)return;let W=parseFloat(getComputedStyle(G).scrollPaddingBottom)||0,o0=Math.min(x90,G.childElementCount),v0=0,l0=0;for(let n0 of(i0=(Y=_.elements.floating)==null?void 0:Y.childNodes)!=null?i0:[])if(e4(n0)){let J=n0.offsetTop,U=J+n0.clientHeight+W,Q=G.scrollTop,r0=Q+G.clientHeight;if(J>=Q&&U<=r0)o0--;else{l0=Math.max(0,Math.min(U,r0)-Math.max(J,Q)),v0=n0.clientHeight;break}}o0>=1&&i(n0=>{let J=v0*o0-l0+W;return n0>=J?n0:J})}}):null,EB0({padding:A,apply({availableWidth:z,availableHeight:Y,elements:i0}){Object.assign(i0.floating.style,{overflow:"auto",maxWidth:`${z}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${Y}px)`})}})].filter(Boolean),whileElementsMounted:uB0}),[N=E,V=M]=_.placement.split("-");E==="selection"&&(N="selection");let C=e.useMemo(()=>({anchor:[N,V].filter(Boolean).join(" ")}),[N,V]),P=xB0(_,{overflowRef:o,onChange:i}),{getReferenceProps:x,getFloatingProps:$}=IB0([P]),D=Fe(z=>{c(z),S.setFloating(z)});return e.createElement(aF.Provider,{value:r},e.createElement(K7.Provider,{value:{setFloating:D,setReference:S.setReference,styles:L,getReferenceProps:x,getFloatingProps:$,slot:C}},a))}function UB0(a){yt(()=>{if(!a)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(a).maxHeight,r=parseFloat(n);if(isNaN(r))return;let l=parseInt(n);isNaN(l)||r!==l&&(a.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(a,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[a])}function zB0(a,t){var n,r,l;let i=nF((n=a?.gap)!=null?n:"var(--anchor-gap, 0)",t),o=nF((r=a?.offset)!=null?r:"var(--anchor-offset, 0)",t),s=nF((l=a?.padding)!=null?l:"var(--anchor-padding, 0)",t);return{...a,gap:i,offset:o,padding:s}}function nF(a,t,n=void 0){let r=Xo(),l=Fe((c,m)=>{if(c==null)return[n,null];if(typeof c=="number")return[c,null];if(typeof c=="string"){if(!m)return[n,null];let h=R90(c,m);return[h,p=>{let v=O90(c);{let A=v.map(Z=>window.getComputedStyle(m).getPropertyValue(Z));r.requestAnimationFrame(function Z(){r.nextFrame(Z);let E=!1;for(let[S,L]of v.entries()){let _=window.getComputedStyle(m).getPropertyValue(L);if(A[S]!==_){A[S]=_,E=!0;break}}if(!E)return;let M=R90(c,m);h!==M&&(p(M),h=M)})}return r.dispose}]}return[n,null]}),i=e.useMemo(()=>l(a,t)[0],[a,t]),[o=i,s]=e.useState();return yt(()=>{let[c,m]=l(a,t);if(s(c),!!m)return m(s)},[a,t]),o}function O90(a){let t=/var\((.*)\)/.exec(a);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),l=t[1].slice(n+1).trim();return l?[r,...O90(l)]:[r]}return[]}function R90(a,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",a,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let Cg=e.createContext(null);Cg.displayName="OpenClosedContext";var c6=(a=>(a[a.Open=1]="Open",a[a.Closed=2]="Closed",a[a.Closing=4]="Closing",a[a.Opening=8]="Opening",a))(c6||{});function Wm(){return e.useContext(Cg)}function $90({value:a,children:t}){return u1.createElement(Cg.Provider,{value:a},t)}function qB0({children:a}){return u1.createElement(Cg.Provider,{value:null},a)}function GB0(a){function t(){document.readyState!=="loading"&&(a(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let t3=[];GB0(()=>{function a(t){if(!pr(t.target)||t.target===document.body||t3[0]===t.target)return;let n=t.target;n=n.closest(Eg),t3.unshift(n??t.target),t3=t3.filter(r=>r!=null&&r.isConnected),t3.splice(10)}window.addEventListener("click",a,{capture:!0}),window.addEventListener("mousedown",a,{capture:!0}),window.addEventListener("focus",a,{capture:!0}),document.body.addEventListener("click",a,{capture:!0}),document.body.addEventListener("mousedown",a,{capture:!0}),document.body.addEventListener("focus",a,{capture:!0})});function WB0(a){throw new Error("Unexpected object: "+a)}var Za=(a=>(a[a.First=0]="First",a[a.Previous=1]="Previous",a[a.Next=2]="Next",a[a.Last=3]="Last",a[a.Specific=4]="Specific",a[a.Nothing=5]="Nothing",a))(Za||{});function Tg(a,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),l=r??-1;switch(a.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 1:{l===-1&&(l=n.length);for(let i=l-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=l+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 3:{for(let i=n.length-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===a.id)return i;return r}case 5:return null;default:WB0(a)}}function rF(a){let t=Fe(a),n=e.useRef(!1);e.useEffect(()=>(n.current=!1,()=>{n.current=!0,hg(()=>{n.current&&t()})}),[t])}let D90=e.createContext(!1);function KB0(){return e.useContext(D90)}function j90(a){return u1.createElement(D90.Provider,{value:a.force},a.children)}function YB0(a){let t=KB0(),n=e.useContext(U90),[r,l]=e.useState(()=>{var i;if(!t&&n!==null)return(i=n.current)!=null?i:null;if(hr.isServer)return null;let o=a?.getElementById("headlessui-portal-root");if(o)return o;if(a===null)return null;let s=a.createElement("div");return s.setAttribute("id","headlessui-portal-root"),a.body.appendChild(s)});return e.useEffect(()=>{r!==null&&(a!=null&&a.body.contains(r)||a==null||a.body.appendChild(r))},[r,a]),e.useEffect(()=>{t||n!==null&&l(n.current)},[n,l,t]),r}let B90=e.Fragment,QB0=Vt(function(a,t){let{ownerDocument:n=null,...r}=a,l=e.useRef(null),i=s6(CD0(v=>{l.current=v}),t),o=Dm(l.current),s=n??o,c=YB0(s),m=e.useContext(lF),h=Xo(),p=Rt();return rF(()=>{var v;c&&c.childNodes.length<=0&&((v=c.parentElement)==null||v.removeChild(c))}),c?rn.createPortal(u1.createElement("div",{"data-headlessui-portal":"",ref:v=>{h.dispose(),m&&v&&h.add(m.register(v))}},p({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:B90,name:"Portal"})),c):null});function XB0(a,t){let n=s6(t),{enabled:r=!0,ownerDocument:l,...i}=a,o=Rt();return r?u1.createElement(QB0,{...i,ownerDocument:l,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:B90,name:"Portal"})}let JB0=e.Fragment,U90=e.createContext(null);function eU0(a,t){let{target:n,...r}=a,l={ref:s6(t)},i=Rt();return u1.createElement(U90.Provider,{value:n},i({ourProps:l,theirProps:r,defaultTag:JB0,name:"Popover.Group"}))}let lF=e.createContext(null);function tU0(){let a=e.useContext(lF),t=e.useRef([]),n=Fe(i=>(t.current.push(i),a&&a.register(i),()=>r(i))),r=Fe(i=>{let o=t.current.indexOf(i);o!==-1&&t.current.splice(o,1),a&&a.unregister(i)}),l=e.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,e.useMemo(()=>function({children:i}){return u1.createElement(lF.Provider,{value:l},i)},[l])]}let aU0=Vt(XB0),z90=Vt(eU0),q90=Object.assign(aU0,{Group:z90});const Ig={Idle:{kind:"Idle"},Tracked:a=>({kind:"Tracked",position:a}),Moved:{kind:"Moved"}};function G90(a){let t=a.getBoundingClientRect();return`${t.x},${t.y}`}function nU0(a,t,n){let r=w6();if(t.kind==="Tracked"){let l=function(){i!==G90(a)&&(r.dispose(),n())},{position:i}=t,o=new ResizeObserver(l);o.observe(a),r.add(()=>o.disconnect()),r.addEventListener(window,"scroll",l,{passive:!0}),r.addEventListener(window,"resize",l)}return()=>r.dispose()}let rU0=e.Fragment;function lU0(a,t){let{...n}=a,r=!1,{isFocusVisible:l,focusProps:i}=mg(),{isHovered:o,hoverProps:s}=dg({isDisabled:r}),{pressed:c,pressProps:m}=TS({disabled:r}),h=Im({ref:t},i,s,m),p=J6({hover:o,focus:l,active:c});return Rt()({ourProps:h,theirProps:n,slot:p,defaultTag:rU0,name:"DataInteractive"})}let iU0=Vt(lU0);function oU0(a,t=typeof document<"u"?document.defaultView:null,n){let r=Rm(a,"escape");n90(t,"keydown",l=>{r&&(l.defaultPrevented||l.key===Ja.Escape&&n(l))})}function sU0(){var a;let[t]=e.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=e.useState((a=t?.matches)!=null?a:!1);return yt(()=>{if(!t)return;function l(i){r(i.matches)}return t.addEventListener("change",l),()=>t.removeEventListener("change",l)},[t]),n}function cU0({defaultContainers:a=[],portals:t,mainTreeNode:n}={}){let r=Fe(()=>{var l,i;let o=Qo(n),s=[];for(let c of a)c!==null&&(yl(c)?s.push(c):"current"in c&&yl(c.current)&&s.push(c.current));if(t!=null&&t.current)for(let c of t.current)s.push(c);for(let c of(l=o?.querySelectorAll("html > *, body > *"))!=null?l:[])c!==document.body&&c!==document.head&&yl(c)&&c.id!=="headlessui-portal-root"&&(n&&(c.contains(n)||c.contains((i=n?.getRootNode())==null?void 0:i.host))||s.some(m=>c.contains(m))||s.push(c));return s});return{resolveContainers:r,contains:Fe(l=>r().some(i=>i.contains(l)))}}let W90=e.createContext(null);function K90({children:a,node:t}){let[n,r]=e.useState(null),l=Y90(t??n);return u1.createElement(W90.Provider,{value:l},a,l===null&&u1.createElement(xS,{features:vg.Hidden,ref:i=>{var o,s;if(i){for(let c of(s=(o=Qo(i))==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?s:[])if(c!==document.body&&c!==document.head&&yl(c)&&c!=null&&c.contains(i)){r(c);break}}}}))}function Y90(a=null){var t;return(t=e.useContext(W90))!=null?t:a}function dU0(){let a=typeof document>"u";return"useSyncExternalStore"in Bs?(t=>t.useSyncExternalStore)(Bs)(()=>()=>{},()=>!1,()=>!a):!1}function Pg(){let a=dU0(),[t,n]=e.useState(hr.isHandoffComplete);return t&&hr.isHandoffComplete===!1&&n(!1),e.useEffect(()=>{t!==!0&&n(!0)},[t]),e.useEffect(()=>hr.handoff(),[]),a?!1:t}function iF(){let a=e.useRef(!1);return yt(()=>(a.current=!0,()=>{a.current=!1}),[]),a}var Km=(a=>(a[a.Forwards=0]="Forwards",a[a.Backwards=1]="Backwards",a))(Km||{});function mU0(){let a=e.useRef(0);return Jd0(!0,"keydown",t=>{t.key==="Tab"&&(a.current=t.shiftKey?1:0)},!0),a}function Q90(a){if(!a)return new Set;if(typeof a=="function")return new Set(a());let t=new Set;for(let n of a.current)yl(n.current)&&t.add(n.current);return t}let uU0="div";var r5=(a=>(a[a.None=0]="None",a[a.InitialFocus=1]="InitialFocus",a[a.TabLock=2]="TabLock",a[a.FocusLock=4]="FocusLock",a[a.RestoreFocus=8]="RestoreFocus",a[a.AutoFocus=16]="AutoFocus",a))(r5||{});function hU0(a,t){let n=e.useRef(null),r=s6(n,t),{initialFocus:l,initialFocusFallback:i,containers:o,features:s=15,...c}=a;Pg()||(s=0);let m=Dm(n.current);gU0(s,{ownerDocument:m});let h=AU0(s,{ownerDocument:m,container:n,initialFocus:l,initialFocusFallback:i});ZU0(s,{ownerDocument:m,container:n,containers:o,previousActiveElement:h});let p=mU0(),v=Fe(L=>{if(!e4(n.current))return;let _=n.current;(N=>N())(()=>{un(p.current,{[Km.Forwards]:()=>{U7(_,hn.First,{skipElements:[L.relatedTarget,i]})},[Km.Backwards]:()=>{U7(_,hn.Last,{skipElements:[L.relatedTarget,i]})}})})}),A=Rm(!!(s&2),"focus-trap#tab-lock"),Z=Xo(),E=e.useRef(!1),M={ref:r,onKeyDown(L){L.key=="Tab"&&(E.current=!0,Z.requestAnimationFrame(()=>{E.current=!1}))},onBlur(L){if(!(s&4))return;let _=Q90(o);e4(n.current)&&_.add(n.current);let N=L.relatedTarget;pr(N)&&N.dataset.headlessuiFocusGuard!=="true"&&(X90(_,N)||(E.current?U7(n.current,un(p.current,{[Km.Forwards]:()=>hn.Next,[Km.Backwards]:()=>hn.Previous})|hn.WrapAround,{relativeTo:L.target}):pr(L.target)&&vr(L.target)))}},S=Rt();return u1.createElement(u1.Fragment,null,A&&u1.createElement(xS,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:vg.Focusable}),S({ourProps:M,theirProps:c,defaultTag:uU0,name:"FocusTrap"}),A&&u1.createElement(xS,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:vg.Focusable}))}let pU0=Vt(hU0),fU0=Object.assign(pU0,{features:r5});function vU0(a=!0){let t=e.useRef(t3.slice());return GS(([n],[r])=>{r===!0&&n===!1&&hg(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=t3.slice())},[a,t3,t]),Fe(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function gU0(a,{ownerDocument:t}){let n=!!(a&8),r=vU0(n);GS(()=>{n||gd0(t?.body)&&vr(r())},[n]),rF(()=>{n&&vr(r())})}function AU0(a,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:l}){let i=e.useRef(null),o=Rm(!!(a&1),"focus-trap#initial-focus"),s=iF();return GS(()=>{if(a===0)return;if(!o){l!=null&&l.current&&vr(l.current);return}let c=n.current;c&&hg(()=>{if(!s.current)return;let m=t?.activeElement;if(r!=null&&r.current){if(r?.current===m){i.current=m;return}}else if(c.contains(m)){i.current=m;return}if(r!=null&&r.current)vr(r.current);else{if(a&16){if(U7(c,hn.First|hn.AutoFocus)!==US.Error)return}else if(U7(c,hn.First)!==US.Error)return;if(l!=null&&l.current&&(vr(l.current),t?.activeElement===l.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t?.activeElement})},[l,o,a]),i}function ZU0(a,{ownerDocument:t,container:n,containers:r,previousActiveElement:l}){let i=iF(),o=!!(a&4);n90(t?.defaultView,"focus",s=>{if(!o||!i.current)return;let c=Q90(r);e4(n.current)&&c.add(n.current);let m=l.current;if(!m)return;let h=s.target;e4(h)?X90(c,h)?(l.current=h,vr(h)):(s.preventDefault(),s.stopPropagation(),vr(m)):vr(l.current)},!0)}function X90(a,t){for(let n of a)if(n.contains(t))return!0;return!1}function J90(a){var t;return!!(a.enter||a.enterFrom||a.enterTo||a.leave||a.leaveFrom||a.leaveTo)||!Pm((t=a.as)!=null?t:tm0)||u1.Children.count(a.children)===1}let xg=e.createContext(null);xg.displayName="TransitionContext";var HU0=(a=>(a.Visible="visible",a.Hidden="hidden",a))(HU0||{});function EU0(){let a=e.useContext(xg);if(a===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return a}function MU0(){let a=e.useContext(Og);if(a===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return a}let Og=e.createContext(null);Og.displayName="NestingContext";function Rg(a){return"children"in a?Rg(a.children):a.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function em0(a,t){let n=Jo(a),r=e.useRef([]),l=iF(),i=Xo(),o=Fe((A,Z=Yi.Hidden)=>{let E=r.current.findIndex(({el:M})=>M===A);E!==-1&&(un(Z,{[Yi.Unmount](){r.current.splice(E,1)},[Yi.Hidden](){r.current[E].state="hidden"}}),i.microTask(()=>{var M;!Rg(r)&&l.current&&((M=n.current)==null||M.call(n))}))}),s=Fe(A=>{let Z=r.current.find(({el:E})=>E===A);return Z?Z.state!=="visible"&&(Z.state="visible"):r.current.push({el:A,state:"visible"}),()=>o(A,Yi.Unmount)}),c=e.useRef([]),m=e.useRef(Promise.resolve()),h=e.useRef({enter:[],leave:[]}),p=Fe((A,Z,E)=>{c.current.splice(0),t&&(t.chains.current[Z]=t.chains.current[Z].filter(([M])=>M!==A)),t?.chains.current[Z].push([A,new Promise(M=>{c.current.push(M)})]),t?.chains.current[Z].push([A,new Promise(M=>{Promise.all(h.current[Z].map(([S,L])=>L)).then(()=>M())})]),Z==="enter"?m.current=m.current.then(()=>t?.wait.current).then(()=>E(Z)):E(Z)}),v=Fe((A,Z,E)=>{Promise.all(h.current[Z].splice(0).map(([M,S])=>S)).then(()=>{var M;(M=c.current.shift())==null||M()}).then(()=>E(Z))});return e.useMemo(()=>({children:r,register:s,unregister:o,onStart:p,onStop:v,wait:m,chains:h}),[s,o,r,p,v,h,m])}let tm0=e.Fragment,am0=B7.RenderStrategy;function yU0(a,t){var n,r;let{transition:l=!0,beforeEnter:i,afterEnter:o,beforeLeave:s,afterLeave:c,enter:m,enterFrom:h,enterTo:p,entered:v,leave:A,leaveFrom:Z,leaveTo:E,...M}=a,[S,L]=e.useState(null),_=e.useRef(null),N=J90(a),V=s6(...N?[_,t,L]:t===null?[]:[t]),C=(n=M.unmount)==null||n?Yi.Unmount:Yi.Hidden,{show:P,appear:x,initial:$}=EU0(),[D,z]=e.useState(P?"visible":"hidden"),Y=MU0(),{register:i0,unregister:G}=Y;yt(()=>i0(_),[i0,_]),yt(()=>{if(C===Yi.Hidden&&_.current){if(P&&D!=="visible"){z("visible");return}return un(D,{hidden:()=>G(_),visible:()=>i0(_)})}},[D,_,i0,G,P,C]);let W=Pg();yt(()=>{if(N&&W&&D==="visible"&&_.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,D,W,N]);let o0=$&&!x,v0=x&&P&&$,l0=e.useRef(!1),n0=em0(()=>{l0.current||(z("hidden"),G(_))},Y),J=Fe(I0=>{l0.current=!0;let s0=I0?"enter":"leave";n0.onStart(_,s0,u0=>{u0==="enter"?i?.():u0==="leave"&&s?.()})}),U=Fe(I0=>{let s0=I0?"enter":"leave";l0.current=!1,n0.onStop(_,s0,u0=>{u0==="enter"?o?.():u0==="leave"&&c?.()}),s0==="leave"&&!Rg(n0)&&(z("hidden"),G(_))});e.useEffect(()=>{N&&l||(J(P),U(P))},[P,N,l]);let Q=!(!l||!N||!W||o0),[,r0]=d90(Q,S,P,{start:J,end:U}),g0=e5({ref:V,className:((r=IS(M.className,v0&&m,v0&&h,r0.enter&&m,r0.enter&&r0.closed&&h,r0.enter&&!r0.closed&&p,r0.leave&&A,r0.leave&&!r0.closed&&Z,r0.leave&&r0.closed&&E,!r0.transition&&P&&v))==null?void 0:r.trim())||void 0,...c90(r0)}),y0=0;D==="visible"&&(y0|=c6.Open),D==="hidden"&&(y0|=c6.Closed),P&&D==="hidden"&&(y0|=c6.Opening),!P&&D==="visible"&&(y0|=c6.Closing);let m0=Rt();return u1.createElement(Og.Provider,{value:n0},u1.createElement($90,{value:y0},m0({ourProps:g0,theirProps:M,defaultTag:tm0,features:am0,visible:D==="visible",name:"Transition.Child"})))}function VU0(a,t){let{show:n,appear:r=!1,unmount:l=!0,...i}=a,o=e.useRef(null),s=J90(a),c=s6(...s?[o,t]:t===null?[]:[t]);Pg();let m=Wm();if(n===void 0&&m!==null&&(n=(m&c6.Open)===c6.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,p]=e.useState(n?"visible":"hidden"),v=em0(()=>{n||p("hidden")}),[A,Z]=e.useState(!0),E=e.useRef([n]);yt(()=>{A!==!1&&E.current[E.current.length-1]!==n&&(E.current.push(n),Z(!1))},[E,n]);let M=e.useMemo(()=>({show:n,appear:r,initial:A}),[n,r,A]);yt(()=>{n?p("visible"):!Rg(v)&&o.current!==null&&p("hidden")},[n,v]);let S={unmount:l},L=Fe(()=>{var V;A&&Z(!1),(V=a.beforeEnter)==null||V.call(a)}),_=Fe(()=>{var V;A&&Z(!1),(V=a.beforeLeave)==null||V.call(a)}),N=Rt();return u1.createElement(Og.Provider,{value:v},u1.createElement(xg.Provider,{value:M},N({ourProps:{...S,as:e.Fragment,children:u1.createElement(nm0,{ref:c,...S,...i,beforeEnter:L,beforeLeave:_})},theirProps:{},defaultTag:e.Fragment,features:am0,visible:h==="visible",name:"Transition"})))}function kU0(a,t){let n=e.useContext(xg)!==null,r=Wm()!==null;return u1.createElement(u1.Fragment,null,!n&&r?u1.createElement(oF,{ref:t,...a}):u1.createElement(nm0,{ref:t,...a}))}let oF=Vt(VU0),nm0=Vt(yU0),Ym=Vt(kU0),Qm=Object.assign(oF,{Child:Ym,Root:oF});var SU0=(a=>(a[a.Open=0]="Open",a[a.Closed=1]="Closed",a))(SU0||{}),FU0=(a=>(a[a.SetTitleId=0]="SetTitleId",a))(FU0||{});let LU0={0(a,t){return a.titleId===t.id?a:{...a,titleId:t.id}}},sF=e.createContext(null);sF.displayName="DialogContext";function $g(a){let t=e.useContext(sF);if(t===null){let n=new Error(`<${a} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,$g),n}return t}function bU0(a,t){return un(t.type,LU0,a,t)}let rm0=Vt(function(a,t){let n=e.useId(),{id:r=`headlessui-dialog-${n}`,open:l,onClose:i,initialFocus:o,role:s="dialog",autoFocus:c=!0,__demoMode:m=!1,unmount:h=!1,...p}=a,v=e.useRef(!1);s=(function(){return s==="dialog"||s==="alertdialog"?s:(v.current||(v.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let A=Wm();l===void 0&&A!==null&&(l=(A&c6.Open)===c6.Open);let Z=e.useRef(null),E=s6(Z,t),M=Dm(Z.current),S=l?0:1,[L,_]=e.useReducer(bU0,{titleId:null,descriptionId:null,panelRef:e.createRef()}),N=Fe(()=>i(!1)),V=Fe(r0=>_({type:0,id:r0})),C=Pg()?S===0:!1,[P,x]=tU0(),$={get current(){var r0;return(r0=L.panelRef.current)!=null?r0:Z.current}},D=Y90(),{resolveContainers:z}=cU0({mainTreeNode:D,portals:P,defaultContainers:[$]}),Y=A!==null?(A&c6.Closing)===c6.Closing:!1;qd0(m||Y?!1:C,{allowed:Fe(()=>{var r0,g0;return[(g0=(r0=Z.current)==null?void 0:r0.closest("[data-headlessui-portal]"))!=null?g0:null]}),disallowed:Fe(()=>{var r0;return[(r0=D?.closest("body > *:not(#headlessui-portal-root)"))!=null?r0:null]})});let i0=Zg.get(null);yt(()=>{if(C)return i0.actions.push(r),()=>i0.actions.pop(r)},[i0,r,C]);let G=L4(i0,e.useCallback(r0=>i0.selectors.isTop(r0,r),[i0,r]));t90(G,z,r0=>{r0.preventDefault(),N()}),oU0(G,M?.defaultView,r0=>{r0.preventDefault(),r0.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),N()}),l90(m||Y?!1:C,M,z),Gd0(C,Z,N);let[W,o0]=Fd0(),v0=e.useMemo(()=>[{dialogState:S,close:N,setTitleId:V,unmount:h},L],[S,N,V,h,L]),l0=J6({open:S===0}),n0={ref:E,id:r,role:s,tabIndex:-1,"aria-modal":m?void 0:S===0?!0:void 0,"aria-labelledby":L.titleId,"aria-describedby":W,unmount:h},J=!sU0(),U=r5.None;C&&!m&&(U|=r5.RestoreFocus,U|=r5.TabLock,c&&(U|=r5.AutoFocus),J&&(U|=r5.InitialFocus));let Q=Rt();return u1.createElement(qB0,null,u1.createElement(j90,{force:!0},u1.createElement(q90,null,u1.createElement(sF.Provider,{value:v0},u1.createElement(z90,{target:Z},u1.createElement(j90,{force:!1},u1.createElement(o0,{slot:l0},u1.createElement(x,null,u1.createElement(fU0,{initialFocus:o,initialFocusFallback:Z,containers:z,features:U},u1.createElement(UD0,{value:N},Q({ourProps:n0,theirProps:p,slot:l0,defaultTag:_U0,features:NU0,visible:S===0,name:"Dialog"})))))))))))}),_U0="div",NU0=B7.RenderStrategy|B7.Static;function wU0(a,t){let{transition:n=!1,open:r,...l}=a,i=Wm(),o=a.hasOwnProperty("open")||i!==null,s=a.hasOwnProperty("onClose");if(!o&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!o)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&typeof a.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${a.open}`);if(typeof a.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${a.onClose}`);return(r!==void 0||n)&&!l.static?u1.createElement(K90,null,u1.createElement(Qm,{show:r,transition:n,unmount:l.unmount},u1.createElement(rm0,{ref:t,...l}))):u1.createElement(K90,null,u1.createElement(rm0,{ref:t,open:r,...l}))}let CU0="div";function TU0(a,t){let n=e.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:l=!1,...i}=a,[{dialogState:o,unmount:s},c]=$g("Dialog.Panel"),m=s6(t,c.panelRef),h=J6({open:o===0}),p=Fe(M=>{M.stopPropagation()}),v={ref:m,id:r,onClick:p},A=l?Ym:e.Fragment,Z=l?{unmount:s}:{},E=Rt();return u1.createElement(A,{...Z},E({ourProps:v,theirProps:i,slot:h,defaultTag:CU0,name:"Dialog.Panel"}))}let IU0="div";function PU0(a,t){let{transition:n=!1,...r}=a,[{dialogState:l,unmount:i}]=$g("Dialog.Backdrop"),o=J6({open:l===0}),s={ref:t,"aria-hidden":!0},c=n?Ym:e.Fragment,m=n?{unmount:i}:{},h=Rt();return u1.createElement(c,{...m},h({ourProps:s,theirProps:r,slot:o,defaultTag:IU0,name:"Dialog.Backdrop"}))}let xU0="h2";function OU0(a,t){let n=e.useId(),{id:r=`headlessui-dialog-title-${n}`,...l}=a,[{dialogState:i,setTitleId:o}]=$g("Dialog.Title"),s=s6(t);e.useEffect(()=>(o(r),()=>o(null)),[r,o]);let c=J6({open:i===0}),m={ref:s,id:r};return Rt()({ourProps:m,theirProps:l,slot:c,defaultTag:xU0,name:"Dialog.Title"})}let RU0=Vt(wU0),lm0=Vt(TU0);Vt(PU0);let im0=Vt(OU0),Dg=Object.assign(RU0,{Panel:lm0,Title:im0,Description:OD0}),$U0="input";function DU0(a,t){let n=e.useId(),r=Zd0(),l=pg(),{id:i=r||`headlessui-input-${n}`,disabled:o=l||!1,autoFocus:s=!1,invalid:c=!1,...m}=a,h=Ld0(),p=TD0(),{isFocused:v,focusProps:A}=mg({autoFocus:s}),{isHovered:Z,hoverProps:E}=dg({isDisabled:o}),M=Im({ref:t,id:i,"aria-labelledby":h,"aria-describedby":p,"aria-invalid":c?"true":void 0,disabled:o||void 0,autoFocus:s},A,E),S=J6({disabled:o,invalid:c,hover:Z,focus:v,autofocus:s});return Rt()({ourProps:M,theirProps:m,slot:S,defaultTag:$U0,name:"Input"})}let jU0=Vt(DU0),om0=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function sm0(a){var t,n;let r=(t=a.innerText)!=null?t:"",l=a.cloneNode(!0);if(!e4(l))return r;let i=!1;for(let s of l.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let o=i?(n=l.innerText)!=null?n:"":r;return om0.test(o)&&(o=o.replace(om0,"")),o}function BU0(a){let t=a.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=a.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(l=>{let i=document.getElementById(l);if(i){let o=i.getAttribute("aria-label");return typeof o=="string"?o.trim():sm0(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return sm0(a).trim()}function UU0(a){let t=e.useRef(""),n=e.useRef("");return Fe(()=>{let r=a.current;if(!r)return"";let l=r.innerText;if(t.current===l)return n.current;let i=BU0(r).trim().toLowerCase();return t.current=l,n.current=i,i})}var zU0=Object.defineProperty,qU0=(a,t,n)=>t in a?zU0(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n,cm0=(a,t,n)=>(qU0(a,typeof t!="symbol"?t+"":t,n),n),x8=(a=>(a[a.Open=0]="Open",a[a.Closed=1]="Closed",a))(x8||{}),jg=(a=>(a[a.Pointer=0]="Pointer",a[a.Other=1]="Other",a))(jg||{}),dt=(a=>(a[a.OpenMenu=0]="OpenMenu",a[a.CloseMenu=1]="CloseMenu",a[a.GoToItem=2]="GoToItem",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.RegisterItems=5]="RegisterItems",a[a.UnregisterItems=6]="UnregisterItems",a[a.SetButtonElement=7]="SetButtonElement",a[a.SetItemsElement=8]="SetItemsElement",a[a.SortItems=9]="SortItems",a[a.MarkButtonAsMoved=10]="MarkButtonAsMoved",a))(dt||{});function dm0(a,t=n=>n){let n=a.activeItemIndex!==null?a.items[a.activeItemIndex]:null,r=Yd0(t(a.items.slice()),i=>i.dataRef.current.domRef.current),l=n?r.indexOf(n):null;return l===-1&&(l=null),{items:r,activeItemIndex:l}}let GU0={1(a){if(a.menuState===1)return a;let t=a.buttonElement?Ig.Tracked(G90(a.buttonElement)):a.buttonPositionState;return{...a,activeItemIndex:null,pendingFocus:{focus:Za.Nothing},menuState:1,buttonPositionState:t}},0(a,t){return a.menuState===0?a:{...a,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:Ig.Idle}},2:(a,t)=>{var n,r,l,i,o;if(a.menuState===1)return a;let s={...a,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===Za.Nothing)return{...s,activeItemIndex:null};if(t.focus===Za.Specific)return{...s,activeItemIndex:a.items.findIndex(h=>h.id===t.id)};if(t.focus===Za.Previous){let h=a.activeItemIndex;if(h!==null){let p=a.items[h].dataRef.current.domRef,v=Tg(t,{resolveItems:()=>a.items,resolveActiveIndex:()=>a.activeItemIndex,resolveId:A=>A.id,resolveDisabled:A=>A.dataRef.current.disabled});if(v!==null){let A=a.items[v].dataRef.current.domRef;if(((r=p.current)==null?void 0:r.previousElementSibling)===A.current||((l=A.current)==null?void 0:l.previousElementSibling)===null)return{...s,activeItemIndex:v}}}}else if(t.focus===Za.Next){let h=a.activeItemIndex;if(h!==null){let p=a.items[h].dataRef.current.domRef,v=Tg(t,{resolveItems:()=>a.items,resolveActiveIndex:()=>a.activeItemIndex,resolveId:A=>A.id,resolveDisabled:A=>A.dataRef.current.disabled});if(v!==null){let A=a.items[v].dataRef.current.domRef;if(((i=p.current)==null?void 0:i.nextElementSibling)===A.current||((o=A.current)==null?void 0:o.nextElementSibling)===null)return{...s,activeItemIndex:v}}}}let c=dm0(a),m=Tg(t,{resolveItems:()=>c.items,resolveActiveIndex:()=>c.activeItemIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});return{...s,...c,activeItemIndex:m}},3:(a,t)=>{let n=a.searchQuery!==""?0:1,r=a.searchQuery+t.value.toLowerCase(),l=(a.activeItemIndex!==null?a.items.slice(a.activeItemIndex+n).concat(a.items.slice(0,a.activeItemIndex+n)):a.items).find(o=>{var s;return((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))&&!o.dataRef.current.disabled}),i=l?a.items.indexOf(l):-1;return i===-1||i===a.activeItemIndex?{...a,searchQuery:r}:{...a,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4(a){return a.searchQuery===""?a:{...a,searchQuery:"",searchActiveItemIndex:null}},5:(a,t)=>{let n=a.items.concat(t.items.map(l=>l)),r=a.activeItemIndex;return a.pendingFocus.focus!==Za.Nothing&&(r=Tg(a.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>a.activeItemIndex,resolveId:l=>l.id,resolveDisabled:l=>l.dataRef.current.disabled})),{...a,items:n,activeItemIndex:r,pendingFocus:{focus:Za.Nothing},pendingShouldSort:!0}},6:(a,t)=>{let n=a.items,r=[],l=new Set(t.items);for(let[i,o]of n.entries())if(l.has(o.id)&&(r.push(i),l.delete(o.id),l.size===0))break;if(r.length>0){n=n.slice();for(let i of r.reverse())n.splice(i,1)}return{...a,items:n,activationTrigger:1}},7:(a,t)=>a.buttonElement===t.element?a:{...a,buttonElement:t.element},8:(a,t)=>a.itemsElement===t.element?a:{...a,itemsElement:t.element},9:a=>a.pendingShouldSort?{...a,...dm0(a),pendingShouldSort:!1}:a,10(a){return a.buttonPositionState.kind!=="Tracked"?a:{...a,buttonPositionState:Ig.Moved}}},WU0=class hS0 extends Id0{constructor(t){super(t),cm0(this,"actions",{registerItem:Od0(()=>{let n=[],r=new Set;return[(l,i)=>{r.has(i)||(r.add(i),n.push({id:l,dataRef:i}))},()=>(r.clear(),this.send({type:5,items:n.splice(0)}))]}),unregisterItem:Od0(()=>{let n=[];return[r=>n.push(r),()=>this.send({type:6,items:n.splice(0)})]})}),cm0(this,"selectors",{activeDescendantId(n){var r;let l=n.activeItemIndex,i=n.items;return l===null||(r=i[l])==null?void 0:r.id},isActive(n,r){var l;let i=n.activeItemIndex,o=n.items;return i!==null?((l=o[i])==null?void 0:l.id)===r:!1},shouldScrollIntoView(n,r){return n.__demoMode||n.menuState!==0||n.activationTrigger===0?!1:this.isActive(n,r)},didButtonMove(n){return n.buttonPositionState.kind==="Moved"}}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let n=this.state.id,r=Zg.get(null);this.disposables.add(r.on($d0.Push,l=>{!r.selectors.isTop(l,n)&&this.state.menuState===0&&this.send({type:1})})),this.on(0,()=>r.actions.push(n)),this.on(1,()=>r.actions.pop(n))}this.disposables.group(n=>{this.on(1,r=>{r.buttonElement&&(n.dispose(),n.add(nU0(r.buttonElement,r.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:t,__demoMode:n=!1}){return new hS0({id:t,__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:Za.Nothing},buttonPositionState:Ig.Idle})}reduce(t,n){return un(n.type,GU0,t,n)}};const mm0=e.createContext(null);function cF(a){let t=e.useContext(mm0);if(t===null){let n=new Error(`<${a} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,um0),n}return t}function um0({id:a,__demoMode:t=!1}){let n=e.useMemo(()=>WU0.new({id:a,__demoMode:t}),[]);return rF(()=>n.dispose()),n}let KU0=e.Fragment;function YU0(a,t){let n=e.useId(),{__demoMode:r=!1,...l}=a,i=um0({id:n,__demoMode:r}),[o,s,c]=L4(i,M=>[M.menuState,M.itemsElement,M.buttonElement]),m=s6(t),h=Zg.get(null),p=L4(h,e.useCallback(M=>h.selectors.isTop(M,n),[h,n]));t90(p,[c,s],(M,S)=>{var L;i.send({type:dt.CloseMenu}),qS(S,zS.Loose)||(M.preventDefault(),(L=i.state.buttonElement)==null||L.focus())});let v=Fe(()=>{i.send({type:dt.CloseMenu})}),A=J6({open:o===x8.Open,close:v}),Z={ref:m},E=Rt();return u1.createElement(BB0,null,u1.createElement(mm0.Provider,{value:i},u1.createElement($90,{value:un(o,{[x8.Open]:c6.Open,[x8.Closed]:c6.Closed})},E({ourProps:Z,theirProps:l,slot:A,defaultTag:KU0,name:"Menu"}))))}let QU0="button";function XU0(a,t){let n=cF("Menu.Button"),r=e.useId(),{id:l=`headlessui-menu-button-${r}`,disabled:i=!1,autoFocus:o=!1,...s}=a,c=e.useRef(null),m=$B0(),h=s6(t,c,RB0(),Fe(D=>n.send({type:dt.SetButtonElement,element:D}))),p=Fe(D=>{switch(D.key){case Ja.Space:case Ja.Enter:case Ja.ArrowDown:D.preventDefault(),D.stopPropagation(),n.send({type:dt.OpenMenu,focus:{focus:Za.First}});break;case Ja.ArrowUp:D.preventDefault(),D.stopPropagation(),n.send({type:dt.OpenMenu,focus:{focus:Za.Last}});break}}),v=Fe(D=>{D.key===Ja.Space&&D.preventDefault()}),[A,Z,E]=L4(n,D=>[D.menuState,D.buttonElement,D.itemsElement]),M=A===x8.Open;fj0(M,{trigger:Z,action:e.useCallback(D=>{if(Z!=null&&Z.contains(D.target))return Mg.Ignore;let z=D.target.closest('[role="menuitem"]:not([data-disabled])');return e4(z)?Mg.Select(z):E!=null&&E.contains(D.target)?Mg.Ignore:Mg.Close},[Z,E]),close:e.useCallback(()=>n.send({type:dt.CloseMenu}),[]),select:e.useCallback(D=>D.click(),[])});let S=qD0(D=>{var z;i||(A===x8.Open?(rn.flushSync(()=>n.send({type:dt.CloseMenu})),(z=c.current)==null||z.focus({preventScroll:!0})):(D.preventDefault(),n.send({type:dt.OpenMenu,focus:{focus:Za.Nothing},trigger:jg.Pointer})))}),{isFocusVisible:L,focusProps:_}=mg({autoFocus:o}),{isHovered:N,hoverProps:V}=dg({isDisabled:i}),{pressed:C,pressProps:P}=TS({disabled:i}),x=J6({open:A===x8.Open,active:C||A===x8.Open,disabled:i,hover:N,focus:L,autofocus:o}),$=Im(m(),{ref:h,id:l,type:vj0(a,c.current),"aria-haspopup":"menu","aria-controls":E?.id,"aria-expanded":A===x8.Open,disabled:i||void 0,autoFocus:o,onKeyDown:p,onKeyUp:v},S,_,V,P);return Rt()({ourProps:$,theirProps:s,slot:x,defaultTag:QU0,name:"Menu.Button"})}let JU0="div",ez0=B7.RenderStrategy|B7.Static;function tz0(a,t){let n=e.useId(),{id:r=`headlessui-menu-items-${n}`,anchor:l,portal:i=!1,modal:o=!0,transition:s=!1,...c}=a,m=OB0(l),h=cF("Menu.Items"),[p,v]=jB0(m),A=DB0(),[Z,E]=e.useState(null),M=s6(t,m?p:null,Fe(l0=>h.send({type:dt.SetItemsElement,element:l0})),E),[S,L]=L4(h,l0=>[l0.menuState,l0.buttonElement]),_=Dm(L),N=Dm(Z);m&&(i=!0);let V=Wm(),[C,P]=d90(s,Z,V!==null?(V&c6.Open)===c6.Open:S===x8.Open);Gd0(C,L,()=>{h.send({type:dt.CloseMenu})});let x=L4(h,l0=>l0.__demoMode),$=x?!1:o&&S===x8.Open;l90($,N);let D=x?!1:o&&S===x8.Open;qd0(D,{allowed:e.useCallback(()=>[L,Z],[L,Z])});let z=L4(h,h.selectors.didButtonMove)?!1:C;e.useEffect(()=>{let l0=Z;l0&&S===x8.Open&&(gd0(l0)||l0.focus({preventScroll:!0}))},[S,Z]),Nj0(S===x8.Open,{container:Z,accept(l0){return l0.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:l0.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(l0){l0.setAttribute("role","none")}});let Y=Xo(),i0=Fe(l0=>{var n0,J,U;switch(Y.dispose(),l0.key){case Ja.Space:if(h.state.searchQuery!=="")return l0.preventDefault(),l0.stopPropagation(),h.send({type:dt.Search,value:l0.key});case Ja.Enter:if(l0.preventDefault(),l0.stopPropagation(),h.state.activeItemIndex!==null){let{dataRef:Q}=h.state.items[h.state.activeItemIndex];(J=(n0=Q.current)==null?void 0:n0.domRef.current)==null||J.click()}h.send({type:dt.CloseMenu}),Kd0(h.state.buttonElement);break;case Ja.ArrowDown:return l0.preventDefault(),l0.stopPropagation(),h.send({type:dt.GoToItem,focus:Za.Next});case Ja.ArrowUp:return l0.preventDefault(),l0.stopPropagation(),h.send({type:dt.GoToItem,focus:Za.Previous});case Ja.Home:case Ja.PageUp:return l0.preventDefault(),l0.stopPropagation(),h.send({type:dt.GoToItem,focus:Za.First});case Ja.End:case Ja.PageDown:return l0.preventDefault(),l0.stopPropagation(),h.send({type:dt.GoToItem,focus:Za.Last});case Ja.Escape:l0.preventDefault(),l0.stopPropagation(),rn.flushSync(()=>h.send({type:dt.CloseMenu})),(U=h.state.buttonElement)==null||U.focus({preventScroll:!0});break;case Ja.Tab:l0.preventDefault(),l0.stopPropagation(),rn.flushSync(()=>h.send({type:dt.CloseMenu})),mj0(h.state.buttonElement,l0.shiftKey?hn.Previous:hn.Next);break;default:l0.key.length===1&&(h.send({type:dt.Search,value:l0.key}),Y.setTimeout(()=>h.send({type:dt.ClearSearch}),350));break}}),G=Fe(l0=>{l0.key===Ja.Space&&l0.preventDefault()}),W=J6({open:S===x8.Open}),o0=Im(m?A():{},{"aria-activedescendant":L4(h,h.selectors.activeDescendantId),"aria-labelledby":L4(h,l0=>{var n0;return(n0=l0.buttonElement)==null?void 0:n0.id}),id:r,onKeyDown:i0,onKeyUp:G,role:"menu",tabIndex:S===x8.Open?0:void 0,ref:M,style:{...c.style,...v,"--button-width":zD0(C,L,!0).width},...c90(P)}),v0=Rt();return u1.createElement(q90,{enabled:i?a.static||C:!1,ownerDocument:_},v0({ourProps:o0,theirProps:c,slot:W,defaultTag:JU0,features:ez0,visible:z,name:"Menu.Items"}))}let az0=e.Fragment;function nz0(a,t){let n=e.useId(),{id:r=`headlessui-menu-item-${n}`,disabled:l=!1,...i}=a,o=cF("Menu.Item"),s=L4(o,z=>o.selectors.isActive(z,r)),c=e.useRef(null),m=s6(t,c),h=L4(o,z=>o.selectors.shouldScrollIntoView(z,r));yt(()=>{if(h)return w6().requestAnimationFrame(()=>{var z,Y;(Y=(z=c.current)==null?void 0:z.scrollIntoView)==null||Y.call(z,{block:"nearest"})})},[h,c]);let p=UU0(c),v=e.useRef({disabled:l,domRef:c,get textValue(){return p()}});yt(()=>{v.current.disabled=l},[v,l]),yt(()=>(o.actions.registerItem(r,v),()=>o.actions.unregisterItem(r)),[v,r]);let A=Fe(()=>{o.send({type:dt.CloseMenu})}),Z=Fe(z=>{if(l)return z.preventDefault();o.send({type:dt.CloseMenu}),Kd0(o.state.buttonElement)}),E=Fe(()=>{if(l)return o.send({type:dt.GoToItem,focus:Za.Nothing});o.send({type:dt.GoToItem,focus:Za.Specific,id:r})}),M=yj0(),S=Fe(z=>M.update(z)),L=Fe(z=>{M.wasMoved(z)&&(l||s||o.send({type:dt.GoToItem,focus:Za.Specific,id:r,trigger:jg.Pointer}))}),_=Fe(z=>{M.wasMoved(z)&&(l||s&&o.state.activationTrigger===jg.Pointer&&o.send({type:dt.GoToItem,focus:Za.Nothing}))}),[N,V]=bd0(),[C,P]=Fd0(),x=J6({active:s,focus:s,disabled:l,close:A}),$={id:r,ref:m,role:"menuitem",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-labelledby":N,"aria-describedby":C,disabled:void 0,onClick:Z,onFocus:E,onPointerEnter:S,onMouseEnter:S,onPointerMove:L,onMouseMove:L,onPointerLeave:_,onMouseLeave:_},D=Rt();return u1.createElement(V,null,u1.createElement(P,null,D({ourProps:$,theirProps:i,slot:x,defaultTag:az0,name:"Menu.Item"})))}let rz0="div";function lz0(a,t){let[n,r]=bd0(),l=a,i={ref:t,"aria-labelledby":n,role:"group"},o=Rt();return u1.createElement(r,null,o({ourProps:i,theirProps:l,slot:{},defaultTag:rz0,name:"Menu.Section"}))}let iz0="header";function oz0(a,t){let n=e.useId(),{id:r=`headlessui-menu-heading-${n}`,...l}=a,i=OS();yt(()=>i.register(r),[r,i.register]);let o={id:r,ref:t,role:"presentation",...i.props};return Rt()({ourProps:o,theirProps:l,slot:{},defaultTag:iz0,name:"Menu.Heading"})}let sz0="div";function cz0(a,t){let n=a,r={ref:t,role:"separator"};return Rt()({ourProps:r,theirProps:n,slot:{},defaultTag:sz0,name:"Menu.Separator"})}let dz0=Vt(YU0),hm0=Vt(XU0),pm0=Vt(tz0),fm0=Vt(nz0),mz0=Vt(lz0),uz0=Vt(oz0),vm0=Vt(cz0),hz0=Object.assign(dz0,{Button:hm0,Items:pm0,Item:fm0,Section:mz0,Heading:uz0,Separator:vm0});const kl=e.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),gm0=u1.createContext(e.forwardRef(function(t,n){return T.jsx("a",{...t,ref:n})})),dF=()=>u1.useContext(gm0),pz0=({linkComponent:a,children:t})=>T.jsx(gm0.Provider,{value:a,children:t}),Bg=function({to:t,href:n,...r}){const l=!!n||typeof t=="string"&&t?.startsWith("http://")||typeof t=="string"&&t?.startsWith("https://"),i=dF();return T.jsx(iU0,{children:T.jsx(i,{to:t,href:n,isExternal:l,...r})})},Y7={base:["relative isolate inline-flex items-center justify-center gap-x-2 rounded-xl border text-base font-semibold","px-4 py-2","focus:outline-none data-[focus]:outline data-[focus]:outline-2 data-[focus]:outline-offset-2 data-[focus]:outline-blue-500","data-[disabled]:opacity-50","transition-[color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,filter,backdrop-filter] duration-150 ease-in-out after:transition before:transition","whitespace-nowrap","lg:active:hover:scale-95 lg:active:hover:before:opacity-50"],modes:{solid:["border-transparent","dark:bg-[--btn-bg]","bg-[--btn-bg]","before:absolute before:inset-0 before:-z-10 before:rounded-[calc(theme(borderRadius.xl)-1px)]","dark:before:hidden","dark:border-white/5","after:absolute after:inset-0 after:-z-10 after:rounded-[calc(theme(borderRadius.xl)-1px)]","after:shadow-[shadow:inset_0_1px_theme(colors.white/15%)]","dark:after:shadow-none","after:data-[active]:bg-[--btn-hover-overlay] after:data-[hover]:bg-[--btn-hover-overlay]","dark:after:-inset-px dark:after:rounded-xl","before:data-[disabled]:shadow-none after:data-[disabled]:shadow-none"],ghost:["border-transparent","hover:dark:bg-[--btn-bg]","hover:bg-[--btn-bg]","before:absolute before:inset-0 before:-z-10 before:rounded-[calc(theme(borderRadius.xl)-1px)]","dark:before:hidden","hover:dark:border-white/5","after:absolute after:inset-0 after:-z-10 after:rounded-[calc(theme(borderRadius.xl)-1px)]","hover:after:shadow-[shadow:inset_0_1px_theme(colors.white/15%)]","after:data-[active]:bg-[--btn-hover-overlay] after:data-[hover]:bg-[--btn-hover-overlay]","dark:after:-inset-px dark:after:rounded-xl","before:data-[disabled]:shadow-none after:data-[disabled]:shadow-none","before:shadow-none"]},circular:["!rounded-full !aspect-square !p-2","before:!rounded-full after:!rounded-full dark:after:!rounded-full"],pill:["!rounded-full","before:!rounded-full after:!rounded-full dark:after:!rounded-full"],small:["!rounded-md !text-sm !px-1.5 !py-1","before:!rounded-md after:!rounded-md dark:after:!rounded-md"],surfaces:{system:["text-fg-primary dark:text-fg-primary-dark","[--btn-bg:theme(colors.system.regular)] [--btn-hover-overlay:theme(colors.white/20%)]","dark:[--btn-bg:theme(colors.system.regular-dark)] dark:[--btn-hover-overlay:theme(colors.white/10%)]","[--icon-color:theme(colors.fg.secondary)] dark:[--icon-color:theme(colors.fg.secondary-dark)]","backdrop-blur-lg","hover:before:shadow-lg"],material:["text-fg-primary dark:text-fg-primary-dark","[--btn-bg:theme(colors.material.regular)] [--btn-hover-overlay:theme(colors.white/20%)]","dark:[--btn-bg:theme(colors.material.regular-dark)] dark:[--btn-hover-overlay:theme(colors.white/10%)]","[--icon-color:theme(colors.fg.secondary)] dark:[--icon-color:theme(colors.fg.secondary-dark)]","backdrop-blur-lg","hover:before:shadow-lg"],chrome:["text-fg-primary dark:text-fg-primary-dark","[--btn-bg:theme(colors.system.chrome)]","dark:[--btn-bg:theme(colors.system.chrome-dark)] dark:[--btn-hover-overlay:theme(colors.white/5%)]","[--icon-color:theme(colors.fg.primary)] dark:[--icon-color:theme(colors.fg.primary-dark)]","before:shadow hover:before:shadow-lg"],solid:["text-fg-primary-dark [--btn-bg:theme(colors.action)] [--btn-hover-overlay:theme(colors.white/15%)]","dark:text-fg-primary-dark dark:[--btn-bg:theme(colors.action)] dark:[--btn-hover-overlay:theme(colors.white/15%)]","[--icon-color:theme(colors.fg.primary-dark)] dark:[--icon-color:theme(colors.fg.primary-dark)]","before:shadow hover:before:shadow-lg"],tinted:["text-action [--btn-bg:theme(colors.action/20%)] [--btn-hover-overlay:theme(colors.white/15%)]","dark:text-action dark:[--btn-bg:theme(colors.action/20%)] dark:[--btn-hover-overlay:theme(colors.white/10%)]","[--icon-color:theme(colors.action)] dark:[--icon-color:theme(colors.action)]","backdrop-blur-lg"],ghost:["text-fg-primary dark:text-fg-primary-dark","[--btn-bg:transparent]","dark:[--btn-bg:transparent]","[--icon-color:theme(colors.fg.primary)] dark:[--icon-color:theme(colors.fg.primary-dark)]","dark:border-none","!px-0"]}},fz0={color:"var(--icon-color)",weight:"bold",size:"1.25rem"},f2=e.forwardRef(function({surface:t="system",mode:n="solid",small:r=!1,circular:l=!1,pill:i=!1,children:o,className:s,iconProps:c={},...m},h){const p=me(s,Y7.base,Y7.modes[n],Y7.surfaces[t],r&&Y7.small,i&&Y7.pill,l&&Y7.circular),v={...fz0,...c},A="href"in m&&m.href!=null||"to"in m&&m.to!=null,Z=dF();return A?T.jsx(Z,{...m,className:p,ref:h,children:T.jsx(kl.Provider,{value:v,children:T.jsx(Am0,{children:o})})}):T.jsx(VD0,{...m,className:me(p,"cursor-pointer data-[disabled]:cursor-not-allowed"),ref:h,children:T.jsx(kl.Provider,{value:v,children:T.jsx(Am0,{children:o})})})});function Am0({children:a}){return T.jsxs(T.Fragment,{children:[a,T.jsx("span",{className:"absolute left-1/2 top-1/2 size-[max(100%,2.75rem)] -translate-x-1/2 -translate-y-1/2 [@media(pointer:fine)]:hidden","aria-hidden":"true"})]})}const Xm=({src:a=null,square:t=!1,initials:n,alt:r="",className:l,noBorder:i=!1,children:o,...s})=>{const m=n?(h=>{if(!h)return;let p=0;return h.split("").forEach(E=>{p=E.charCodeAt(0)+((p<<5)-p)}),`hsl(${p%360}, 40%, 60%)`})(n):void 0;return T.jsxs("span",{"data-slot":"avatar",...s,className:me(l,"inline-grid shrink-0 align-middle [--avatar-radius:20%] [--ring-opacity:20%] *:col-start-1 *:row-start-1",!i&&"bg-gray-100/50 dark:bg-material-thin-dark backdrop-blur-md border-2 border-system-chrome dark:border-system-chrome-dark",t?"rounded-[--avatar-radius] *:rounded-[--avatar-radius]":"rounded-full *:rounded-full"),children:[a?T.jsx("img",{src:a,alt:r,className:"object-cover object-center aspect-square"}):n?T.jsxs("svg",{className:"select-none fill-current w-full h-full font-medium uppercase",style:{backgroundColor:MS(m).alpha(.7).toString(),color:MS(m).darken(.6).toString(),fontSize:"400%"},viewBox:"0 0 100 100","aria-hidden":r?void 0:"true",children:[r?T.jsx("title",{children:r}):null,T.jsx("text",{x:"50%",y:"50%",alignmentBaseline:"middle",dominantBaseline:"middle",textAnchor:"middle",dy:".125em",children:n})]}):null,o]})},vz0={color:"var(--icon-color)",weight:"fill",size:"16px"},gz0=e.forwardRef(function({className:t,direction:n="cols",...r},l){return T.jsx(kl.Provider,{value:vz0,children:T.jsx("div",{ref:l,className:me(t,"[--anchor-gap:theme(spacing.2)] [--anchor-padding:theme(spacing.3)] data-[anchor~=end]:[--anchor-offset:4px] data-[anchor~=start]:[--anchor-offset:-4px]","origin-top-left isolate rounded-lg","outline outline-1 outline-transparent focus:outline-none","overflow-y-auto","bg-material-chrome backdrop-blur-xl dark:bg-material-regular-dark","shadow-lg ring-1 ring-system-thick dark:ring-inset dark:ring-system-thick-dark","supports-[grid-template-columns:subgrid]:grid",n==="cols"?"supports-[grid-template-columns:subgrid]:grid-cols-[auto_auto_auto]":"supports-[grid-template-columns:subgrid]:grid-rows-[auto_auto_auto]","transition-opacity data-[closed]:data-[leave]:opacity-0 data-[leave]:duration-100 data-[leave]:ease-in"),...r})})}),Az0=e.forwardRef(function({active:t,className:n,href:r,to:l,...i},o){const s=me(n,"group cursor-pointer inline-flex rounded-md px-3 py-2 focus:outline-none sm:px-3 sm:py-1.5","text-left text-base/6 text-fg-primary sm:text-sm/6 dark:text-fg-primary-dark forced-colors:text-[CanvasText]","data-[focus]:bg-system-thin dark:data-[focus]:bg-system-thin-dark","focus:bg-system-thin dark:focus:bg-system-thin-dark","hover:bg-system-thin dark:hover:bg-system-thin-dark","data-[disabled]:opacity-50","disabled:opacity-50","forced-color-adjust-none forced-colors:focus:bg-[Highlight] forced-colors:focus:text-[HighlightText] forced-colors:[&>[data-slot=icon]]:focus:text-[HighlightText]","forced-colors:data-[focus]:bg-[Highlight] forced-colors:data-[focus]:text-[HighlightText] forced-colors:[&>[data-slot=icon]]:data-[focus]:text-[HighlightText]","col-span-full grid grid-cols-[auto_auto_auto] items-center supports-[grid-template-columns:subgrid]:grid-cols-subgrid","[--icon-color:theme(colors.fg.secondary)] dark:[--icon-color:theme(colors.fg.secondary-dark)]","gap-x-1",t?"bg-system-thin dark:bg-system-thin-dark":null),c=dF();if(r||l){const m=i;return T.jsx(c,{...m,href:r,to:l,className:s,ref:o})}else{const m=i;return T.jsx("button",{...m,type:"button",className:s,ref:o})}}),Zz0={color:"var(--icon-color)",weight:"fill",size:"16px"};function Zm0(a){const{as:t="div",...n}=a;return T.jsx(hz0,{as:t,...n})}function Hm0(a){const{className:t,...n}=a;return T.jsx(hm0,{as:f2,...n,className:me("lg:active:hover:!scale-100",t)})}function Hz0(a,t){const n=a?.split(/\s+/).some(r=>/^!?w-/.test(r));return me(a,!n&&t)}function Em0({anchor:a="bottom",className:t,portal:n=!0,...r}){return T.jsx(pm0,{transition:!0,...r,anchor:n?a:void 0,as:gz0,className:l=>Hz0(typeof t=="function"?t(l):t,"w-max")})}function a3(a){return T.jsx(kl.Provider,{value:Zz0,children:T.jsx(fm0,{as:Az0,...a})})}function Ez0({className:a,...t}){return T.jsx(vm0,{...t,className:me(a,"col-span-full mx-3.5 my-1 h-px border-0 bg-zinc-950/5 sm:mx-3 dark:bg-white/10 forced-colors:bg-[CanvasText]")})}function n3({className:a,...t}){return T.jsx(jD0,{...t,"data-slot":"label",className:me(a,"col-start-2 row-start-1"),...t})}const Sl={card:["flex flex-col group","relative","rounded-xl","shadow-lg","dark:border-white/5 dark:border"],childRadius:["[&>:first-child]:rounded-t-xl [&>:last-child]:rounded-b-xl","[&>:first-child]:before:rounded-t-xl [&>:first-child]:after:rounded-t-xl","[&>:last-child]:before:rounded-b-xl [&>:last-child]:after:rounded-b-xl"],backgroundColor:["bg-system-chrome dark:bg-system-chrome-dark"],interactive:["transition-all","hover:-translate-y-0.5 active:hover:scale-[98%] hover:shadow-xl","group-hover:-translate-y-0.5 group-hover:shadow-xl group-active:hover:scale-[98%]"],cardNonResponsive:["[&>*]:min-w-full"],responsive:["md:flex-row"],responsiveChildRadius:["md:[&>:first-child]:rounded-none md:[&>:last-child]:rounded-none","md:[&>:first-child]:before:rounded-none md:[&>:first-child]:after:rounded-none","md:[&>:last-child]:before:rounded-none md:[&>:last-child]:after:rounded-none","md:[&>:first-child]:rounded-l-xl md:[&>:last-child]:rounded-r-xl","md:[&>:first-child]:before:rounded-l-xl md:[&>:first-child]:after:rounded-l-xl","md:[&>:last-child]:before:rounded-r-xl md:[&>:last-child]:after:rounded-r-xl"],cardContent:["p-4 relative z-0","content-center","before:z-[-1] before:bg-bottom before:bg-cover before:bg-no-repeat before:[background-image:var(--blurBackground)] before:absolute before","after:z-[-1] after:backdrop-blur-xl after:bg-material-screen dark:after:bg-material-regular-dark after:absolute after","after:transition-colors group-hover:after:bg-material-chrome dark:group-hover:after:bg-material-chrome-dark"],cardImage:["overflow-hidden w-full object-cover"]},O8=({as:a,interactive:t=!1,responsive:n=!1,backgroundColor:r="",childRadius:l=!0,className:i,...o})=>{const s=a||"div";return T.jsx(s,{...o,className:me(Sl.card,l&&Sl.childRadius,r||Sl.backgroundColor,t?Sl.interactive:null,n?Sl.responsive:Sl.cardNonResponsive,n&&l?Sl.responsiveChildRadius:null,i)})},Fl=({as:a,className:t,blurBackground:n,...r})=>{const l=a||"div";return T.jsx(l,{...r,style:n?{"--blurBackground":`url(${n})`}:r.style,className:me(t,Sl.cardContent,!n&&"after:hidden")})},Ug=({as:a,className:t,...n})=>{const r=a||"img";return T.jsx(r,{...n,className:me(t,Sl.cardImage)})},mF={inherited:["[&_a]:text-action [&_a]:underline [&_a]:decoration-action/50 [&_a:hover]:decoration-action/100"],as:{p:["text-base/relaxed"],h1:["text-4xl/normal font-bold font-heading leading-tight"],h2:["text-2xl/normal font-semibold font-heading"],h3:["text-xl/snug font-semibold font-heading"],h4:["text-lg/tight font-medium font-heading"],h5:["text-base/tight font-medium font-heading"],small:["text-xs/tight"]}},Mz0={section:["text-2xl min-[560px]:text-[2.75rem] xl:text-5xl font-bold font-heading leading-tight"],hero:["text-xl lg:text-5xl font-bold font-heading leading-tight"],card:["text-base min-[560px]:text-lg xl:text-xl font-semibold font-heading leading-snug"]},yz0="p";function ge({className:a,as:t,fg:n="primary",size:r,...l}){const i=t??yz0;let o;switch(n){case"secondary":o="text-fg-secondary dark:text-fg-secondary-dark";break;case"tertiary":o="text-fg-tertiary dark:text-fg-tertiary-dark";break;case"quaternary":o="text-fg-quaternary dark:text-fg-quaternary-dark";break;default:o="text-fg-primary dark:text-fg-primary-dark";break}return T.jsx(i,{...l,"data-slot":"text",className:me(a,r?Mz0[r]:mF.as[t]??mF.as.p,mF.inherited,o)})}const Vz0={xs:"sm:max-w-xs",sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl","4xl":"sm:max-w-4xl","5xl":"sm:max-w-5xl"};function kz0({open:a,onClose:t,size:n="lg",className:r,children:l,style:i,...o}){const s=e.useRef(null);return e.useEffect(()=>{a&&s.current&&(s.current.scrollTop=0)},[a]),T.jsx(Qm,{appear:!0,show:a,...o,children:T.jsxs(Dg,{onClose:t,children:[T.jsx(Ym,{enter:"ease-out duration-100",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:T.jsx("div",{className:"z-[10000] fixed inset-0 flex w-screen justify-center overflow-y-auto bg-material-regular px-2 py-2 focus:outline-0 sm:px-6 sm:py-8 lg:px-8 lg:py-16 dark:bg-material-regular-dark"})}),T.jsx("div",{ref:s,className:me("z-[10000] fixed inset-0 w-screen overflow-y-auto pt-6 sm:pt-0"),children:T.jsx("div",{className:"grid min-h-full grid-rows-[1fr_auto] justify-items-center sm:grid-rows-[1fr_auto_3fr] sm:p-4",children:T.jsx(Ym,{enter:"ease-out duration-100",enterFrom:"opacity-0 translate-y-12 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-100",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-12 sm:translate-y-0",children:T.jsx(lm0,{style:i,className:me(r,Vz0[n],"row-start-2 w-full min-w-0 rounded-t-3xl bg-system-chrome p-[--gutter] shadow-lg [--gutter:theme(spacing.8)] sm:mb-auto sm:rounded-2xl dark:bg-system-chrome-dark dark:ring-1 dark:ring-white/10 forced-colors:outline"),children:l})})})})]})})}function Sz0({className:a,...t}){return T.jsx(im0,{...t,className:me(a,"text-balance text-lg/6 font-semibold text-fg-primary sm:text-base/6 dark:text-fg-primary-dark")})}const k=e.forwardRef((a,t)=>{const{alt:n,color:r,size:l,weight:i,mirrored:o,children:s,weights:c,...m}=a,{color:h="currentColor",size:p,weight:v="regular",mirrored:A=!1,...Z}=e.useContext(kl);return e.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:l??p,height:l??p,fill:r??h,viewBox:"0 0 256 256",transform:o||A?"scale(-1, 1)":void 0,...Z,...m},!!n&&e.createElement("title",null,n),s,c.get(i??v))});k.displayName="IconBase";const Fz0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216.49,56.48,177,96h19a12,12,0,0,1,0,24H148a12,12,0,0,1-12-12V60a12,12,0,0,1,24,0V79l39.51-39.52a12,12,0,0,1,17,17ZM108,136H60a12,12,0,0,0,0,24H79L39.51,199.51a12,12,0,0,0,17,17L96,177v19a12,12,0,0,0,24,0V148A12,12,0,0,0,108,136Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z",opacity:"0.2"}),e.createElement("path",{d:"M213.66,53.66,163.31,104H192a8,8,0,0,1,0,16H144a8,8,0,0,1-8-8V64a8,8,0,0,1,16,0V92.69l50.34-50.35a8,8,0,0,1,11.32,11.32ZM112,136H64a8,8,0,0,0,0,16H92.69L42.34,202.34a8,8,0,0,0,11.32,11.32L104,163.31V192a8,8,0,0,0,16,0V144A8,8,0,0,0,112,136Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M120,144v48a8,8,0,0,1-13.66,5.66L88,179.31,53.66,213.66a8,8,0,0,1-11.32-11.32L76.69,168,58.34,149.66A8,8,0,0,1,64,136h48A8,8,0,0,1,120,144ZM213.66,42.34a8,8,0,0,0-11.32,0L168,76.69,149.66,58.34A8,8,0,0,0,136,64v48a8,8,0,0,0,8,8h48a8,8,0,0,0,5.66-13.66L179.31,88l34.35-34.34A8,8,0,0,0,213.66,42.34Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M212.24,52.24,158.48,106H192a6,6,0,0,1,0,12H144a6,6,0,0,1-6-6V64a6,6,0,0,1,12,0V97.52l53.76-53.76a6,6,0,0,1,8.48,8.48ZM112,138H64a6,6,0,0,0,0,12H97.52L43.76,203.76a6,6,0,1,0,8.48,8.48L106,158.48V192a6,6,0,0,0,12,0V144A6,6,0,0,0,112,138Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M213.66,53.66,163.31,104H192a8,8,0,0,1,0,16H144a8,8,0,0,1-8-8V64a8,8,0,0,1,16,0V92.69l50.34-50.35a8,8,0,0,1,11.32,11.32ZM112,136H64a8,8,0,0,0,0,16H92.69L42.34,202.34a8,8,0,0,0,11.32,11.32L104,163.31V192a8,8,0,0,0,16,0V144A8,8,0,0,0,112,136Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M210.83,50.83,153.66,108H192a4,4,0,0,1,0,8H144a4,4,0,0,1-4-4V64a4,4,0,0,1,8,0v38.34l57.17-57.17a4,4,0,1,1,5.66,5.66ZM112,140H64a4,4,0,0,0,0,8h38.34L45.17,205.17a4,4,0,0,0,5.66,5.66L108,153.66V192a4,4,0,0,0,8,0V144A4,4,0,0,0,112,140Z"}))]]),uF=e.forwardRef((a,t)=>e.createElement(k,{ref:t,...a,weights:Fz0}));uF.displayName="ArrowsInSimpleIcon";const hF=uF,Lz0=Object.freeze(Object.defineProperty({__proto__:null,ArrowsInSimple:hF,ArrowsInSimpleIcon:uF},Symbol.toStringTag,{value:"Module"})),bz0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M220,48V96a12,12,0,0,1-24,0V77l-39.51,39.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM99.51,139.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l39.52-39.51a12,12,0,0,0-17-17Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z",opacity:"0.2"}),e.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-50.34,50.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM106.34,138.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l50.35-50.34a8,8,0,0,0-11.32-11.32Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M117.66,138.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l34.34-34.35A8,8,0,0,1,117.66,138.34ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72l-34.35,34.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-50.34,50.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM106.34,138.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l50.35-50.34a8,8,0,0,0-11.32-11.32Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M212,48V96a4,4,0,0,1-8,0V57.66l-57.17,57.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM109.17,141.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l57.17-57.17a4,4,0,0,0-5.66-5.66Z"}))]]),pF=e.forwardRef((a,t)=>e.createElement(k,{ref:t,...a,weights:bz0}));pF.displayName="ArrowsOutSimpleIcon";const fF=pF,_z0=Object.freeze(Object.defineProperty({__proto__:null,ArrowsOutSimple:fF,ArrowsOutSimpleIcon:pF},Symbol.toStringTag,{value:"Module"})),l5={card:["group","z-0","mb-12","px-4 pt-14 pb-0","rounded-xl","relative","transition after:transition-all hover:transition-all","after:absolute after:-z-10 after:rounded-xl","dark:after:border-white/5"],contractedCard:["cursor-pointer","after:inset-0","active:hover:scale-95 active:hover:after:shadow-md","after:bg-material-thick dark:after:bg-material-thick-dark","hover:after:shadow-lg hover:after:-inset-4 hover:mb-12"],expandedCard:["is-expanded","cursor-auto","after:bg-material-chrome dark:after:bg-material-regular-dark","hover:after:shadow-xl after:shadow-xl dark:after:shadow-none dark:after:border dark:after:border-white/5","after:-inset-4","pb-8"],content:["max-h-56 min-h-24 overflow-hidden"],contentContracted:["pointer-events-none","after:absolute after:bottom-0 after:left-0 after:right-0 after:h-14 after:rounded-b-xl after:bg-gradient-to-b after:from-transparent after:to-material-thick after:dark:to-material-thick-dark","gradient-mask-b-0 group-hover:gradient-mask-b-[rgba(0,0,0,1.0)_50%,rgba(0,0,0,0)_100%]"],catchClicks:["absolute inset-0 z-[5]"],button:["transition absolute top-4 right-4 z-10 flex items-center gap-2","group-[.is-expanded]:translate-x-4 group-[.is-expanded]:-translate-y-4","group-hover:translate-x-4 group-hover:-translate-y-4"]},Nz0=({children:a,expandedOnMount:t=!1,className:n,actions:r})=>{const[l,i]=e.useState(t),[o,s]=e.useState(224),c=e.useRef(null);return e.useEffect(()=>{if(!c.current)return;const m=new ResizeObserver(()=>{c.current&&c.current.scrollHeight!==o&&s(c.current.scrollHeight)});return m.observe(c.current),function(){m.disconnect()}},[a,o]),T.jsxs("div",{className:me(l5.card,l?l5.expandedCard:l5.contractedCard,n),onClick:l?void 0:()=>i(!l),children:[T.jsx("div",{className:me(l5.content,!l&&l5.contentContracted),style:l?{maxHeight:o}:void 0,ref:c,children:a}),l?null:T.jsx("div",{"data-testid":"expandable-card-catch",className:me(l5.catchClicks),onClick:()=>i(!0)}),T.jsxs("div",{className:me(l5.button),children:[r,T.jsx(f2,{onClick:m=>{m.stopPropagation(),i(!l)},surface:"material",circular:!0,children:l?T.jsx(hF,{size:16}):T.jsx(fF,{size:16})})]})]})},wz0=["date","datetime-local","month","time","week"],Q7=e.forwardRef(function({className:t,...n},r){return T.jsx("span",{"data-slot":"control",className:me(["relative block w-full","before:absolute before:inset-px before:rounded-[calc(theme(borderRadius.lg)-1px)] before:bg-white before:shadow","dark:before:hidden","after:pointer-events-none after:absolute after:inset-0 after:rounded-lg after:ring-inset after:ring-transparent sm:after:focus-within:ring-2 sm:after:focus-within:ring-action","has-[[data-disabled]]:opacity-50 before:has-[[data-disabled]]:bg-system-regular dark:before:has-[[data-disabled]]:bg-system-regular-dark before:has-[[data-disabled]]:shadow-none","before:has-[[data-invalid]]:shadow-red-500/10"]),children:T.jsx(jU0,{ref:r,...n,className:me([t,n.type&&wz0.includes(n.type)&&["[&::-webkit-datetime-edit-fields-wrapper]:p-0","[&::-webkit-date-and-time-value]:min-h-[1.5em]","[&::-webkit-datetime-edit]:inline-flex","[&::-webkit-datetime-edit]:p-0","[&::-webkit-datetime-edit-year-field]:p-0","[&::-webkit-datetime-edit-month-field]:p-0","[&::-webkit-datetime-edit-day-field]:p-0","[&::-webkit-datetime-edit-hour-field]:p-0","[&::-webkit-datetime-edit-minute-field]:p-0","[&::-webkit-datetime-edit-second-field]:p-0","[&::-webkit-datetime-edit-millisecond-field]:p-0","[&::-webkit-datetime-edit-meridiem-field]:p-0"],"relative block w-full appearance-none rounded-lg px-[calc(theme(spacing[3.5])-1px)] py-[calc(theme(spacing[2.5])-1px)] sm:px-[calc(theme(spacing[3])-1px)] sm:py-[calc(theme(spacing[1.5])-1px)]","text-base/6 text-fg-primary placeholder:fg-secondary dark:placeholder:fg-secondary-dark sm:text-sm/6 dark:text-fg-primary-dark","border border-system-thin data-[hover]:border-system-thick dark:border-system-regular-dark dark:data-[hover]:border-system-thin-dark","bg-transparent dark:bg-white/5","focus:outline-none","data-[invalid]:border-red-500 data-[invalid]:data-[hover]:border-red-500 data-[invalid]:dark:border-red-500 data-[invalid]:data-[hover]:dark:border-red-500","data-[disabled]:border-system-thick dark:data-[hover]:data-[disabled]:border-system-thick-dark data-[disabled]:dark:border-system-regular-dark data-[disabled]:dark:bg-system-regular-dark","dark:[color-scheme:dark]",n.type&&n.type==="file"&&["file:bg-gray-50 file:border-0 file:me-4 file:py-3 file:px-4 dark:file:bg-neutral-700 dark:file:text-neutral-400","!p-0"]])})})});var Cz0=Object.defineProperty,Tz0=Object.defineProperties,Iz0=Object.getOwnPropertyDescriptors,zg=Object.getOwnPropertySymbols,Mm0=Object.prototype.hasOwnProperty,ym0=Object.prototype.propertyIsEnumerable,Vm0=(a,t,n)=>t in a?Cz0(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n,Pz0=(a,t)=>{for(var n in t||(t={}))Mm0.call(t,n)&&Vm0(a,n,t[n]);if(zg)for(var n of zg(t))ym0.call(t,n)&&Vm0(a,n,t[n]);return a},xz0=(a,t)=>Tz0(a,Iz0(t)),Oz0=(a,t)=>{var n={};for(var r in a)Mm0.call(a,r)&&t.indexOf(r)<0&&(n[r]=a[r]);if(a!=null&&zg)for(var r of zg(a))t.indexOf(r)<0&&ym0.call(a,r)&&(n[r]=a[r]);return n};function Rz0(a){let t=setTimeout(a,0),n=setTimeout(a,10),r=setTimeout(a,50);return[t,n,r]}function $z0(a){let t=e.useRef();return e.useEffect(()=>{t.current=a}),t.current}var Dz0=18,km0=40,jz0=`${km0}px`,Bz0=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Uz0({containerRef:a,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[l,i]=e.useState(!1),[o,s]=e.useState(!1),[c,m]=e.useState(!1),h=e.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&l&&o,[l,o,n]),p=e.useCallback(()=>{let v=a.current,A=t.current;if(!v||!A||c||n==="none")return;let Z=v,E=Z.getBoundingClientRect().left+Z.offsetWidth,M=Z.getBoundingClientRect().top+Z.offsetHeight/2,S=E-Dz0,L=M;document.querySelectorAll(Bz0).length===0&&document.elementFromPoint(S,L)===v||(i(!0),m(!0))},[a,t,c,n]);return e.useEffect(()=>{let v=a.current;if(!v||n==="none")return;function A(){let E=window.innerWidth-v.getBoundingClientRect().right;s(E>=km0)}A();let Z=setInterval(A,1e3);return()=>{clearInterval(Z)}},[a,n]),e.useEffect(()=>{let v=r||document.activeElement===t.current;if(n==="none"||!v)return;let A=setTimeout(p,0),Z=setTimeout(p,2e3),E=setTimeout(p,5e3),M=setTimeout(()=>{m(!0)},6e3);return()=>{clearTimeout(A),clearTimeout(Z),clearTimeout(E),clearTimeout(M)}},[t,r,n,p]),{hasPWMBadge:l,willPushPWMBadge:h,PWM_BADGE_SPACE_WIDTH:jz0}}var Sm0=e.createContext({}),Fm0=e.forwardRef((a,t)=>{var n=a,{value:r,onChange:l,maxLength:i,textAlign:o="left",pattern:s,placeholder:c,inputMode:m="numeric",onComplete:h,pushPasswordManagerStrategy:p="increase-width",pasteTransformer:v,containerClassName:A,noScriptCSSFallback:Z=zz0,render:E,children:M}=n,S=Oz0(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),L,_,N,V,C;let[P,x]=e.useState(typeof S.defaultValue=="string"?S.defaultValue:""),$=r??P,D=$z0($),z=e.useCallback(e0=>{l?.(e0),x(e0)},[l]),Y=e.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),i0=e.useRef(null),G=e.useRef(null),W=e.useRef({value:$,onChange:z,isIOS:typeof window<"u"&&((_=(L=window?.CSS)==null?void 0:L.supports)==null?void 0:_.call(L,"-webkit-touch-callout","none"))}),o0=e.useRef({prev:[(N=i0.current)==null?void 0:N.selectionStart,(V=i0.current)==null?void 0:V.selectionEnd,(C=i0.current)==null?void 0:C.selectionDirection]});e.useImperativeHandle(t,()=>i0.current,[]),e.useEffect(()=>{let e0=i0.current,d0=G.current;if(!e0||!d0)return;W.current.value!==e0.value&&W.current.onChange(e0.value),o0.current.prev=[e0.selectionStart,e0.selectionEnd,e0.selectionDirection];function V0(){if(document.activeElement!==e0){Q(null),g0(null);return}let E1=e0.selectionStart,M1=e0.selectionEnd,P1=e0.selectionDirection,c1=e0.maxLength,n1=e0.value,t1=o0.current.prev,m1=-1,x1=-1,$1;if(n1.length!==0&&E1!==null&&M1!==null){let f1=E1===M1,U1=E1===n1.length&&n1.length<c1;if(f1&&!U1){let ee=E1;if(ee===0)m1=0,x1=1,$1="forward";else if(ee===c1)m1=ee-1,x1=ee,$1="backward";else if(c1>1&&n1.length>1){let _e=0;if(t1[0]!==null&&t1[1]!==null){$1=ee<t1[1]?"backward":"forward";let Me=t1[0]===t1[1]&&t1[0]<c1;$1==="backward"&&!Me&&(_e=-1)}m1=_e+ee,x1=_e+ee+1}}m1!==-1&&x1!==-1&&m1!==x1&&i0.current.setSelectionRange(m1,x1,$1)}let G1=m1!==-1?m1:E1,je=x1!==-1?x1:M1,Ge=$1??P1;Q(G1),g0(je),o0.current.prev=[G1,je,Ge]}if(document.addEventListener("selectionchange",V0,{capture:!0}),V0(),document.activeElement===e0&&J(!0),!document.getElementById("input-otp-style")){let E1=document.createElement("style");if(E1.id="input-otp-style",document.head.appendChild(E1),E1.sheet){let M1="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Jm(E1.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Jm(E1.sheet,`[data-input-otp]:autofill { ${M1} }`),Jm(E1.sheet,`[data-input-otp]:-webkit-autofill { ${M1} }`),Jm(E1.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Jm(E1.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let w0=()=>{d0&&d0.style.setProperty("--root-height",`${e0.clientHeight}px`)};w0();let X0=new ResizeObserver(w0);return X0.observe(e0),()=>{document.removeEventListener("selectionchange",V0,{capture:!0}),X0.disconnect()}},[]);let[v0,l0]=e.useState(!1),[n0,J]=e.useState(!1),[U,Q]=e.useState(null),[r0,g0]=e.useState(null);e.useEffect(()=>{Rz0(()=>{var e0,d0,V0,w0;(e0=i0.current)==null||e0.dispatchEvent(new Event("input"));let X0=(d0=i0.current)==null?void 0:d0.selectionStart,E1=(V0=i0.current)==null?void 0:V0.selectionEnd,M1=(w0=i0.current)==null?void 0:w0.selectionDirection;X0!==null&&E1!==null&&(Q(X0),g0(E1),o0.current.prev=[X0,E1,M1])})},[$,n0]),e.useEffect(()=>{D!==void 0&&$!==D&&D.length<i&&$.length===i&&h?.($)},[i,h,D,$]);let y0=Uz0({containerRef:G,inputRef:i0,pushPasswordManagerStrategy:p,isFocused:n0}),m0=e.useCallback(e0=>{let d0=e0.currentTarget.value.slice(0,i);if(d0.length>0&&Y&&!Y.test(d0)){e0.preventDefault();return}typeof D=="string"&&d0.length<D.length&&document.dispatchEvent(new Event("selectionchange")),z(d0)},[i,z,D,Y]),I0=e.useCallback(()=>{var e0;if(i0.current){let d0=Math.min(i0.current.value.length,i-1),V0=i0.current.value.length;(e0=i0.current)==null||e0.setSelectionRange(d0,V0),Q(d0),g0(V0)}J(!0)},[i]),s0=e.useCallback(e0=>{var d0,V0;let w0=i0.current;if(!v&&(!W.current.isIOS||!e0.clipboardData||!w0))return;let X0=e0.clipboardData.getData("text/plain"),E1=v?v(X0):X0;e0.preventDefault();let M1=(d0=i0.current)==null?void 0:d0.selectionStart,P1=(V0=i0.current)==null?void 0:V0.selectionEnd,c1=(M1!==P1?$.slice(0,M1)+E1+$.slice(P1):$.slice(0,M1)+E1+$.slice(M1)).slice(0,i);if(c1.length>0&&Y&&!Y.test(c1))return;w0.value=c1,z(c1);let n1=Math.min(c1.length,i-1),t1=c1.length;w0.setSelectionRange(n1,t1),Q(n1),g0(t1)},[i,z,Y,$]),u0=e.useMemo(()=>({position:"relative",cursor:S.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[S.disabled]),A0=e.useMemo(()=>({position:"absolute",inset:0,width:y0.willPushPWMBadge?`calc(100% + ${y0.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:y0.willPushPWMBadge?`inset(0 ${y0.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:o,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[y0.PWM_BADGE_SPACE_WIDTH,y0.willPushPWMBadge,o]),M0=e.useMemo(()=>e.createElement("input",xz0(Pz0({autoComplete:S.autoComplete||"one-time-code"},S),{"data-input-otp":!0,"data-input-otp-placeholder-shown":$.length===0||void 0,"data-input-otp-mss":U,"data-input-otp-mse":r0,inputMode:m,pattern:Y?.source,"aria-placeholder":c,style:A0,maxLength:i,value:$,ref:i0,onPaste:e0=>{var d0;s0(e0),(d0=S.onPaste)==null||d0.call(S,e0)},onChange:m0,onMouseOver:e0=>{var d0;l0(!0),(d0=S.onMouseOver)==null||d0.call(S,e0)},onMouseLeave:e0=>{var d0;l0(!1),(d0=S.onMouseLeave)==null||d0.call(S,e0)},onFocus:e0=>{var d0;I0(),(d0=S.onFocus)==null||d0.call(S,e0)},onBlur:e0=>{var d0;J(!1),(d0=S.onBlur)==null||d0.call(S,e0)}})),[m0,I0,s0,m,A0,i,r0,U,S,Y?.source,$]),S0=e.useMemo(()=>({slots:Array.from({length:i}).map((e0,d0)=>{var V0;let w0=n0&&U!==null&&r0!==null&&(U===r0&&d0===U||d0>=U&&d0<r0),X0=$[d0]!==void 0?$[d0]:null,E1=$[0]!==void 0?null:(V0=c?.[d0])!=null?V0:null;return{char:X0,placeholderChar:E1,isActive:w0,hasFakeCaret:w0&&X0===null}}),isFocused:n0,isHovering:!S.disabled&&v0}),[n0,v0,i,r0,U,S.disabled,$]),q=e.useMemo(()=>E?E(S0):e.createElement(Sm0.Provider,{value:S0},M),[M,S0,E]);return e.createElement(e.Fragment,null,Z!==null&&e.createElement("noscript",null,e.createElement("style",null,Z)),e.createElement("div",{ref:G,"data-input-otp-container":!0,style:u0,className:A},q,e.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},M0)))});Fm0.displayName="Input";function Jm(a,t){try{a.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var zz0=`
|
|
248
248
|
[data-input-otp] {
|
|
249
249
|
--nojs-bg: white !important;
|
|
250
250
|
--nojs-fg: black !important;
|
|
@@ -289,7 +289,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
289
289
|
uri
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
`);var pu0=typeof global=="object"&&global&&global.Object===Object&&global,oW0=typeof self=="object"&&self&&self.Object===Object&&self,r3=pu0||oW0||Function("return this")(),tA=r3.Symbol,fu0=Object.prototype,sW0=fu0.hasOwnProperty,cW0=fu0.toString,lu=tA?tA.toStringTag:void 0;function dW0(a){var t=sW0.call(a,lu),n=a[lu];try{a[lu]=void 0;var r=!0}catch{}var l=cW0.call(a);return r&&(t?a[lu]=n:delete a[lu]),l}var mW0=Object.prototype,uW0=mW0.toString;function hW0(a){return uW0.call(a)}var pW0="[object Null]",fW0="[object Undefined]",vu0=tA?tA.toStringTag:void 0;function iu(a){return a==null?a===void 0?fW0:pW0:vu0&&vu0 in Object(a)?dW0(a):hW0(a)}function TF(a){return a!=null&&typeof a=="object"}var vW0=Array.isArray;function gu0(a){var t=typeof a;return a!=null&&(t=="object"||t=="function")}var gW0="[object AsyncFunction]",AW0="[object Function]",ZW0="[object GeneratorFunction]",HW0="[object Proxy]";function Au0(a){if(!gu0(a))return!1;var t=iu(a);return t==AW0||t==ZW0||t==gW0||t==HW0}var IF=r3["__core-js_shared__"],Zu0=(function(){var a=/[^.]+$/.exec(IF&&IF.keys&&IF.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function EW0(a){return!!Zu0&&Zu0 in a}var MW0=Function.prototype,yW0=MW0.toString;function s5(a){if(a!=null){try{return yW0.call(a)}catch{}try{return a+""}catch{}}return""}var VW0=/[\\^$.*+?()[\]{}|]/g,kW0=/^\[object .+?Constructor\]$/,SW0=Function.prototype,FW0=Object.prototype,LW0=SW0.toString,bW0=FW0.hasOwnProperty,_W0=RegExp("^"+LW0.call(bW0).replace(VW0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function NW0(a){if(!gu0(a)||EW0(a))return!1;var t=Au0(a)?_W0:kW0;return t.test(s5(a))}function wW0(a,t){return a?.[t]}function ou(a,t){var n=wW0(a,t);return NW0(n)?n:void 0}var PF=ou(r3,"WeakMap");function aA(){}var CW0=9007199254740991;function Hu0(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=CW0}function TW0(a){return a!=null&&Hu0(a.length)&&!Au0(a)}var IW0=Object.prototype;function Eu0(a){var t=a&&a.constructor,n=typeof t=="function"&&t.prototype||IW0;return a===n}var PW0="[object Arguments]";function Mu0(a){return TF(a)&&iu(a)==PW0}var yu0=Object.prototype,xW0=yu0.hasOwnProperty,OW0=yu0.propertyIsEnumerable,RW0=Mu0((function(){return arguments})())?Mu0:function(a){return TF(a)&&xW0.call(a,"callee")&&!OW0.call(a,"callee")};function $W0(){return!1}var Vu0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ku0=Vu0&&typeof module=="object"&&module&&!module.nodeType&&module,DW0=ku0&&ku0.exports===Vu0,Su0=DW0?r3.Buffer:void 0,jW0=Su0?Su0.isBuffer:void 0,BW0=jW0||$W0,UW0="[object Arguments]",zW0="[object Array]",qW0="[object Boolean]",GW0="[object Date]",WW0="[object Error]",KW0="[object Function]",YW0="[object Map]",QW0="[object Number]",XW0="[object Object]",JW0="[object RegExp]",eK0="[object Set]",tK0="[object String]",aK0="[object WeakMap]",nK0="[object ArrayBuffer]",rK0="[object DataView]",lK0="[object Float32Array]",iK0="[object Float64Array]",oK0="[object Int8Array]",sK0="[object Int16Array]",cK0="[object Int32Array]",dK0="[object Uint8Array]",mK0="[object Uint8ClampedArray]",uK0="[object Uint16Array]",hK0="[object Uint32Array]",kt={};kt[lK0]=kt[iK0]=kt[oK0]=kt[sK0]=kt[cK0]=kt[dK0]=kt[mK0]=kt[uK0]=kt[hK0]=!0,kt[UW0]=kt[zW0]=kt[nK0]=kt[qW0]=kt[rK0]=kt[GW0]=kt[WW0]=kt[KW0]=kt[YW0]=kt[QW0]=kt[XW0]=kt[JW0]=kt[eK0]=kt[tK0]=kt[aK0]=!1;function pK0(a){return TF(a)&&Hu0(a.length)&&!!kt[iu(a)]}function fK0(a){return function(t){return a(t)}}var Fu0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,su=Fu0&&typeof module=="object"&&module&&!module.nodeType&&module,vK0=su&&su.exports===Fu0,xF=vK0&&pu0.process,Lu0=(function(){try{var a=su&&su.require&&su.require("util").types;return a||xF&&xF.binding&&xF.binding("util")}catch{}})(),bu0=Lu0&&Lu0.isTypedArray,gK0=bu0?fK0(bu0):pK0;function AK0(a,t){return function(n){return a(t(n))}}var ZK0=AK0(Object.keys,Object),HK0=Object.prototype,EK0=HK0.hasOwnProperty;function MK0(a){if(!Eu0(a))return ZK0(a);var t=[];for(var n in Object(a))EK0.call(a,n)&&n!="constructor"&&t.push(n);return t}var OF=ou(r3,"Map"),RF=ou(r3,"DataView"),$F=ou(r3,"Promise"),DF=ou(r3,"Set"),_u0="[object Map]",yK0="[object Object]",Nu0="[object Promise]",wu0="[object Set]",Cu0="[object WeakMap]",Tu0="[object DataView]",VK0=s5(RF),kK0=s5(OF),SK0=s5($F),FK0=s5(DF),LK0=s5(PF),c5=iu;(RF&&c5(new RF(new ArrayBuffer(1)))!=Tu0||OF&&c5(new OF)!=_u0||$F&&c5($F.resolve())!=Nu0||DF&&c5(new DF)!=wu0||PF&&c5(new PF)!=Cu0)&&(c5=function(a){var t=iu(a),n=t==yK0?a.constructor:void 0,r=n?s5(n):"";if(r)switch(r){case VK0:return Tu0;case kK0:return _u0;case SK0:return Nu0;case FK0:return wu0;case LK0:return Cu0}return t});var bK0="[object Map]",_K0="[object Set]",NK0=Object.prototype,wK0=NK0.hasOwnProperty;function _l(a){if(a==null)return!0;if(TW0(a)&&(vW0(a)||typeof a=="string"||typeof a.splice=="function"||BW0(a)||gK0(a)||RW0(a)))return!a.length;var t=c5(a);if(t==bK0||t==_K0)return!a.size;if(Eu0(a))return!MK0(a).length;for(var n in a)if(wK0.call(a,n))return!1;return!0}const Iu0=({children:a,hideCloseButton:t=!1,hideHeader:n=!1,isOpen:r=!1,setIsOpen:l=aA,title:i="",theme:o})=>T.jsx(Qm.Root,{show:r,as:e.Fragment,children:T.jsxs(Dg,{as:"div",className:"relative z-[100000]",onClose:l,children:[T.jsx(Qm.Child,{as:e.Fragment,enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:T.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 dark:bg-gray-900 dark:bg-opacity-75 transition-opacity"})}),T.jsx("div",{className:"flex justify-center overflow-scroll",children:T.jsx("div",{className:"pointer-events-none fixed bottom-0 left-0 right-0 md:inset-0 flex items-center justify-center",children:T.jsx(Qm.Child,{as:e.Fragment,enter:"transform transition ease-in-out duration-500 sm:duration-700",enterFrom:"translate-y-full opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transform transition ease-in-out duration-500 sm:duration-700",leaveFrom:"translate-y-0 opacity-100",leaveTo:"translate-y-full opacity-0",children:T.jsx(Dg.Panel,{className:"pointer-events-auto w-screen md:w-[50vw] md:max-w-xl",children:T.jsx($q0,{theme:o||{},children:T.jsxs("div",{className:"flex flex-col bg-white dark:bg-black shadow-xl rounded-t-xl md:rounded-xl",children:[n?null:T.jsx("div",{className:"rounded-t-xl top-0 z-40 pt-4 bg-white dark:bg-black mb-4",children:T.jsxs("div",{className:"pb-4 mx-4 flex items-center justify-between",children:[T.jsx("div",{className:"flex flex-row",children:_l(i)?null:T.jsx(Dg.Title,{className:"text-base font-semibold leading-6 flex flex-row items-center",children:i})}),t?null:T.jsx("div",{children:T.jsxs("button",{type:"button",className:"rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2",onClick:()=>l(!1),children:[T.jsx("span",{className:"sr-only",children:"Close panel"}),T.jsx(J7,{className:"h-6 w-6","aria-hidden":"true"})]})})]})}),T.jsx("div",{className:"mx-4 [@media(height<40rem)]:mt-4 py-4 pb-16",children:a})]})})})})})})]})});var nA={},tc={},$t={},jF={},Pu0;function BF(){return Pu0||(Pu0=1,(function(a){function t(o,s,c){var m=s.slidesToShow,h=s.currentSlide;return c.length>2*m?o+2*m:h>=c.length?c.length+o:o}function n(o,s){if(s.length>2*o){for(var c={},m=s.length-2*o,h=s.length-m,p=m,v=0;v<h;v++)c[v]=p,p++;var A=s.length+h,Z=A+s.slice(0,2*o).length,E=0;for(v=A;v<=Z;v++)c[v]=E,E++;var M=A,S=0;for(v=h;v<M;v++)c[v]=S,S++;return c}c={};var L=3*s.length,_=0;for(v=0;v<L;v++)c[v]=_,++_===s.length&&(_=0);return c}function r(o,s){return s.length<o?s:s.length>2*o?s.slice(s.length-2*o,s.length).concat(s,s.slice(0,2*o)):s.concat(s,s)}function l(o,s){return s.length>2*o?2*o:s.length}function i(o,s,c){var m,h=o.currentSlide,p=o.slidesToShow,v=o.itemWidth,A=o.totalItems,Z=0,E=0,M=h===0,S=s.length-(s.length-2*p);return s.length<p?(E=Z=0,M=m=!1):s.length>2*p?((m=h>=S+s.length)&&(E=-v*(Z=h-s.length)),M&&(E=-v*(Z=S+(s.length-2*p)))):((m=h>=2*s.length)&&(E=-v*(Z=h-s.length)),M&&(E=c.showDots?-v*(Z=s.length):-v*(Z=A/3))),{isReachingTheEnd:m,isReachingTheStart:M,nextSlide:Z,nextPosition:E}}Object.defineProperty(a,"__esModule",{value:!0}),a.getOriginalCounterPart=t,a.getOriginalIndexLookupTableByClones=n,a.getClones=r,a.getInitialSlideInInfiniteMode=l,a.checkClonesPosition=i})(jF)),jF}var ac={},xu0;function Ou0(){if(xu0)return ac;xu0=1;var a={};Object.defineProperty(ac,"__esModule",{value:!0});var t=!1;function n(i,o,s,c){var m=0,h=c||s;return o&&h&&(!t&&a.NODE_ENV!=="production"&&i[h].paritialVisibilityGutter&&(t=!0,console.warn("You appear to be using paritialVisibilityGutter instead of partialVisibilityGutter which will be moved to partialVisibilityGutter in the future completely")),m=i[h].partialVisibilityGutter||i[h].paritialVisibilityGutter),m}function r(i,o){var s;return o[i]&&(s=(100/o[i].items).toFixed(1)),s}function l(i,o,s){return Math.round(s/(o+(i.centerMode?1:0)))}return ac.getPartialVisibilityGutter=n,ac.getWidthFromDeviceType=r,ac.getItemClientSideWidth=l,ac}var n4={},Ru0;function d5(){if(Ru0)return n4;Ru0=1,Object.defineProperty(n4,"__esModule",{value:!0});var a=Ou0();function t(p){var v=p.slidesToShow;return p.totalItems<v}function n(p,v){var A,Z=p.domLoaded,E=p.slidesToShow,M=p.containerWidth,S=p.itemWidth,L=v.deviceType,_=v.responsive,N=v.ssr,V=v.partialVisbile,C=v.partialVisible,P=!!(Z&&E&&M&&S);N&&L&&!P&&(A=a.getWidthFromDeviceType(L,_));var x=!!(N&&L&&!P&&A);return{shouldRenderOnSSR:x,flexBisis:A,domFullyLoaded:P,partialVisibilityGutter:a.getPartialVisibilityGutter(_,V||C,L,p.deviceType),shouldRenderAtAll:x||P}}function r(p,v){var A=v.currentSlide,Z=v.slidesToShow;return A<=p&&p<A+Z}function l(p,v,A){var Z=A||p.transform;return!v.infinite&&p.currentSlide===0||t(p)?Z:Z+p.itemWidth/2}function i(p){return!(0<p.currentSlide)}function o(p){var v=p.currentSlide,A=p.totalItems;return!(v+p.slidesToShow<A)}function s(p,v,A,Z){v===void 0&&(v=0);var E=p.currentSlide,M=p.slidesToShow,S=o(p),L=!A.infinite&&S,_=Z||p.transform;if(t(p))return _;var N=_+E*v;return L?N+(p.containerWidth-(p.itemWidth-v)*M):N}function c(p,v){return p.rtl?-1*v:v}function m(p,v,A){var Z=v.partialVisbile,E=v.partialVisible,M=v.responsive,S=v.deviceType,L=v.centerMode,_=A||p.transform,N=a.getPartialVisibilityGutter(M,Z||E,S,p.deviceType);return c(v,E||Z?s(p,N,v,A):L?l(p,v,A):_)}function h(p,v){var A=p.domLoaded,Z=p.slidesToShow,E=p.containerWidth,M=p.itemWidth,S=v.deviceType,L=v.responsive,_=v.slidesToSlide||1,N=!!(A&&Z&&E&&M);return v.ssr&&v.deviceType&&!N&&Object.keys(L).forEach(function(V){var C=L[V].slidesToSlide;S===V&&C&&(_=C)}),N&&Object.keys(L).forEach(function(V){var C=L[V],P=C.breakpoint,x=C.slidesToSlide,$=P.max,D=P.min;x&&window.innerWidth>=D&&window.innerWidth<=$&&(_=x)}),_}return n4.notEnoughChildren=t,n4.getInitialState=n,n4.getIfSlideIsVisbile=r,n4.getTransformForCenterMode=l,n4.isInLeftEnd=i,n4.isInRightEnd=o,n4.getTransformForPartialVsibile=s,n4.parsePosition=c,n4.getTransform=m,n4.getSlidesToSlide=h,n4}var rA={},$u0;function CK0(){if($u0)return rA;$u0=1,Object.defineProperty(rA,"__esModule",{value:!0});var a=function(t,n,r){var l;return function(){var i=arguments;l||(t.apply(this,i),l=!0,typeof r=="function"&&r(!0),setTimeout(function(){l=!1,typeof r=="function"&&r(!1)},n))}};return rA.default=a,rA}var UF={},Du0;function TK0(){return Du0||(Du0=1,(function(a){function t(n,r){var l=r.partialVisbile,i=r.partialVisible,o=r.centerMode,s=r.ssr,c=r.responsive;if((l||i)&&o)throw new Error("center mode can not be used at the same time with partialVisible");if(!c)throw s?new Error("ssr mode need to be used in conjunction with responsive prop"):new Error("Responsive prop is needed for deciding the amount of items to show on the screen");if(c&&typeof c!="object")throw new Error("responsive prop must be an object")}Object.defineProperty(a,"__esModule",{value:!0}),a.default=t})(UF)),UF}var lA={},ju0;function IK0(){if(ju0)return lA;ju0=1,Object.defineProperty(lA,"__esModule",{value:!0});var a=d5();function t(n,r,l){l===void 0&&(l=0);var i,o,s=n.slidesToShow,c=n.currentSlide,m=n.itemWidth,h=n.totalItems,p=a.getSlidesToSlide(n,r),v=c+1+l+s+(0<l?0:p);return o=v<=h?-m*(i=c+l+(0<l?0:p)):h<v&&c!==h-s?-m*(i=h-s):i=void 0,{nextSlides:i,nextPosition:o}}return lA.populateNextSlides=t,lA}var iA={},Bu0;function PK0(){if(Bu0)return iA;Bu0=1,Object.defineProperty(iA,"__esModule",{value:!0});var a=y2(),t=d5(),n=d5();function r(l,i,o){o===void 0&&(o=0);var s,c,m=l.currentSlide,h=l.itemWidth,p=l.slidesToShow,v=i.children,A=i.showDots,Z=i.infinite,E=t.getSlidesToSlide(l,i),M=m-o-(0<o?0:E),S=(a.Children.toArray(v).length-p)%E;return c=0<=M?(s=M,A&&!Z&&0<S&&n.isInRightEnd(l)&&(s=m-S),-h*s):s=M<0&&m!==0?0:void 0,{nextSlides:s,nextPosition:c}}return iA.populatePreviousSlides=r,iA}var zF={},Uu0;function xK0(){return Uu0||(Uu0=1,(function(a){function t(n,r,l,i,o,s){var c,m,h=n.itemWidth,p=n.slidesToShow,v=n.totalItems,A=n.currentSlide,Z=r.infinite,E=!1,M=Math.round((l-i)/h),S=Math.round((i-l)/h),L=l<o;if(o<l&&M<=p){c="right";var _=Math.abs(-h*(v-p)),N=s-(i-o),V=A===v-p;(Math.abs(N)<=_||V&&Z)&&(m=N,E=!0)}return L&&S<=p&&(c="left",((N=s+(o-i))<=0||A===0&&Z)&&(E=!0,m=N)),{direction:c,nextPosition:m,canContinue:E}}Object.defineProperty(a,"__esModule",{value:!0}),a.populateSlidesOnMouseTouchMove=t})(zF)),zF}var zu0;function qu0(){if(zu0)return $t;zu0=1,Object.defineProperty($t,"__esModule",{value:!0});var a=BF();$t.getOriginalCounterPart=a.getOriginalCounterPart,$t.getClones=a.getClones,$t.checkClonesPosition=a.checkClonesPosition,$t.getInitialSlideInInfiniteMode=a.getInitialSlideInInfiniteMode;var t=Ou0();$t.getWidthFromDeviceType=t.getWidthFromDeviceType,$t.getPartialVisibilityGutter=t.getPartialVisibilityGutter,$t.getItemClientSideWidth=t.getItemClientSideWidth;var n=d5();$t.getInitialState=n.getInitialState,$t.getIfSlideIsVisbile=n.getIfSlideIsVisbile,$t.getTransformForCenterMode=n.getTransformForCenterMode,$t.getTransformForPartialVsibile=n.getTransformForPartialVsibile,$t.isInLeftEnd=n.isInLeftEnd,$t.isInRightEnd=n.isInRightEnd,$t.notEnoughChildren=n.notEnoughChildren,$t.getSlidesToSlide=n.getSlidesToSlide;var r=CK0();$t.throttle=r.default;var l=TK0();$t.throwError=l.default;var i=IK0();$t.populateNextSlides=i.populateNextSlides;var o=PK0();$t.populatePreviousSlides=o.populatePreviousSlides;var s=xK0();return $t.populateSlidesOnMouseTouchMove=s.populateSlidesOnMouseTouchMove,$t}var m5={},Gu0;function OK0(){if(Gu0)return m5;Gu0=1;var a=m5&&m5.__extends||(function(){var l=function(i,o){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var m in c)c.hasOwnProperty(m)&&(s[m]=c[m])})(i,o)};return function(i,o){function s(){this.constructor=i}l(i,o),i.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}})();Object.defineProperty(m5,"__esModule",{value:!0});var t=y2();function n(l){return"clientY"in l}m5.isMouseMoveEvent=n;var r=(function(l){function i(){return l!==null&&l.apply(this,arguments)||this}return a(i,l),i})(t.Component);return m5.default=r,m5}var oA={},sA={},Wu0;function RK0(){if(Wu0)return sA;Wu0=1,Object.defineProperty(sA,"__esModule",{value:!0});var a=BF(),t=d5();function n(r,l,i,o){var s={},c=t.getSlidesToSlide(l,i);return Array(r).fill(0).forEach(function(m,h){var p=a.getOriginalCounterPart(h,l,o);if(h===0)s[0]=p;else{var v=s[h-1]+c;s[h]=v}}),s}return sA.getLookupTableForNextSlides=n,sA}var Ku0;function $K0(){if(Ku0)return oA;Ku0=1,Object.defineProperty(oA,"__esModule",{value:!0});var a=y2(),t=BF(),n=RK0(),r=d5(),l=function(i){var o=i.props,s=i.state,c=i.goToSlide,m=i.getState,h=o.showDots,p=o.customDot,v=o.dotListClass,A=o.infinite,Z=o.children;if(!h||r.notEnoughChildren(s))return null;var E,M=s.currentSlide,S=s.slidesToShow,L=r.getSlidesToSlide(s,o),_=a.Children.toArray(Z);E=A?Math.ceil(_.length/L):Math.ceil((_.length-S)/L)+1;var N=n.getLookupTableForNextSlides(E,s,o,_),V=t.getOriginalIndexLookupTableByClones(S,_),C=V[M];return a.createElement("ul",{className:"react-multi-carousel-dot-list "+v},Array(E).fill(0).map(function(P,x){var $,D;if(A){D=N[x];var z=V[D];$=C===z||z<=C&&C<z+L}else{var Y=_.length-S,i0=x*L;$=(D=Y<i0?Y:i0)===M||D<M&&M<D+L&&M<_.length-S}return p?a.cloneElement(p,{index:x,active:$,key:x,onClick:function(){return c(D)},carouselState:m()}):a.createElement("li",{"data-index":x,key:x,className:"react-multi-carousel-dot "+($?"react-multi-carousel-dot--active":"")},a.createElement("button",{"aria-label":"Go to slide "+(x+1),onClick:function(){return c(D)}}))}))};return oA.default=l,oA}var cu={},Yu0;function DK0(){if(Yu0)return cu;Yu0=1,Object.defineProperty(cu,"__esModule",{value:!0});var a=y2(),t=function(r){var l=r.customLeftArrow,i=r.getState,o=r.previous,s=r.disabled,c=r.rtl;if(l)return a.cloneElement(l,{onClick:function(){return o()},carouselState:i(),disabled:s,rtl:c});var m=c?"rtl":"";return a.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+m,onClick:function(){return o()},type:"button",disabled:s})};cu.LeftArrow=t;var n=function(r){var l=r.customRightArrow,i=r.getState,o=r.next,s=r.disabled,c=r.rtl;if(l)return a.cloneElement(l,{onClick:function(){return o()},carouselState:i(),disabled:s,rtl:c});var m=c?"rtl":"";return a.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+m,onClick:function(){return o()},type:"button",disabled:s})};return cu.RightArrow=n,cu}var cA={},Qu0;function jK0(){if(Qu0)return cA;Qu0=1,Object.defineProperty(cA,"__esModule",{value:!0});var a=y2(),t=qu0(),n=function(r){var l=r.props,i=r.state,o=r.goToSlide,s=r.clones,c=r.notEnoughChildren,m=i.itemWidth,h=l.children,p=l.infinite,v=l.itemClass,A=l.itemAriaLabel,Z=l.partialVisbile,E=l.partialVisible,M=t.getInitialState(i,l),S=M.flexBisis,L=M.shouldRenderOnSSR,_=M.domFullyLoaded,N=M.partialVisibilityGutter;return M.shouldRenderAtAll?(Z&&console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),a.createElement(a.Fragment,null,(p?s:a.Children.toArray(h)).map(function(V,C){return a.createElement("li",{key:C,"data-index":C,onClick:function(){l.focusOnSelect&&o(C)},"aria-hidden":t.getIfSlideIsVisbile(C,i)?"false":"true","aria-label":A||(V.props.ariaLabel?V.props.ariaLabel:null),style:{flex:L?"1 0 "+S+"%":"auto",position:"relative",width:_?((Z||E)&&N&&!c?m-N:m)+"px":"auto"},className:"react-multi-carousel-item "+(t.getIfSlideIsVisbile(C,i)?"react-multi-carousel-item--active":"")+" "+v},V)}))):null};return cA.default=n,cA}var Xu0;function BK0(){if(Xu0)return tc;Xu0=1;var a={},t=tc&&tc.__extends||(function(){var v=function(A,Z){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var S in M)M.hasOwnProperty(S)&&(E[S]=M[S])})(A,Z)};return function(A,Z){function E(){this.constructor=A}v(A,Z),A.prototype=Z===null?Object.create(Z):(E.prototype=Z.prototype,new E)}})();Object.defineProperty(tc,"__esModule",{value:!0});var n=y2(),r=qu0(),l=OK0(),i=$K0(),o=DK0(),s=jK0(),c=d5(),m=400,h="transform 400ms ease-in-out",p=(function(v){function A(Z){var E=v.call(this,Z)||this;return E.containerRef=n.createRef(),E.listRef=n.createRef(),E.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:n.Children.count(Z.children),deviceType:"",domLoaded:!1,transform:0,containerWidth:0},E.onResize=E.onResize.bind(E),E.handleDown=E.handleDown.bind(E),E.handleMove=E.handleMove.bind(E),E.handleOut=E.handleOut.bind(E),E.onKeyUp=E.onKeyUp.bind(E),E.handleEnter=E.handleEnter.bind(E),E.setIsInThrottle=E.setIsInThrottle.bind(E),E.next=r.throttle(E.next.bind(E),Z.transitionDuration||m,E.setIsInThrottle),E.previous=r.throttle(E.previous.bind(E),Z.transitionDuration||m,E.setIsInThrottle),E.goToSlide=r.throttle(E.goToSlide.bind(E),Z.transitionDuration||m,E.setIsInThrottle),E.onMove=!1,E.initialX=0,E.lastX=0,E.isAnimationAllowed=!1,E.direction="",E.initialY=0,E.isInThrottle=!1,E.transformPlaceHolder=0,E}return t(A,v),A.prototype.resetTotalItems=function(){var Z=this,E=n.Children.count(this.props.children),M=r.notEnoughChildren(this.state)?0:Math.max(0,Math.min(this.state.currentSlide,E));this.setState({totalItems:E,currentSlide:M},function(){Z.setContainerAndItemWidth(Z.state.slidesToShow,!0)})},A.prototype.setIsInThrottle=function(Z){Z===void 0&&(Z=!1),this.isInThrottle=Z},A.prototype.setTransformDirectly=function(Z,E){var M=this.props.additionalTransfrom;this.transformPlaceHolder=Z;var S=c.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(E),this.listRef.current.style.transform="translate3d("+(S+M)+"px,0,0)")},A.prototype.setAnimationDirectly=function(Z){this.listRef&&this.listRef.current&&(this.listRef.current.style.transition=Z?this.props.customTransition||h:"none")},A.prototype.componentDidMount=function(){this.setState({domLoaded:!0}),this.setItemsToShow(),window.addEventListener("resize",this.onResize),this.onResize(!0),this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),this.props.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},A.prototype.setClones=function(Z,E,M,S){var L=this;S===void 0&&(S=!1),this.isAnimationAllowed=!1;var _=n.Children.toArray(this.props.children),N=r.getInitialSlideInInfiniteMode(Z||this.state.slidesToShow,_),V=r.getClones(this.state.slidesToShow,_),C=_.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:V.length,currentSlide:M&&!S?C:N},function(){L.correctItemsPosition(E||L.state.itemWidth)})},A.prototype.setItemsToShow=function(Z,E){var M=this,S=this.props.responsive;Object.keys(S).forEach(function(L){var _=S[L],N=_.breakpoint,V=_.items,C=N.max,P=N.min,x=[window.innerWidth];window.screen&&window.screen.width&&x.push(window.screen.width);var $=Math.min.apply(Math,x);P<=$&&$<=C&&(M.setState({slidesToShow:V,deviceType:L}),M.setContainerAndItemWidth(V,Z,E))})},A.prototype.setContainerAndItemWidth=function(Z,E,M){var S=this;if(this.containerRef&&this.containerRef.current){var L=this.containerRef.current.offsetWidth,_=r.getItemClientSideWidth(this.props,Z,L);this.setState({containerWidth:L,itemWidth:_},function(){S.props.infinite&&S.setClones(Z,_,E,M)}),E&&this.correctItemsPosition(_)}},A.prototype.correctItemsPosition=function(Z,E,M){E&&(this.isAnimationAllowed=!0),!E&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var S=this.state.totalItems<this.state.slidesToShow?0:-Z*this.state.currentSlide;M&&this.setTransformDirectly(S,!0),this.setState({transform:S})},A.prototype.onResize=function(Z){var E;E=!!this.props.infinite&&(typeof Z!="boolean"||!Z),this.setItemsToShow(E)},A.prototype.componentDidUpdate=function(Z,E){var M=this,S=Z.keyBoardControl,L=Z.autoPlay,_=Z.children,N=E.containerWidth,V=E.domLoaded,C=E.currentSlide;if(this.containerRef&&this.containerRef.current&&this.containerRef.current.offsetWidth!==N&&(this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),this.itemsToShowTimeout=setTimeout(function(){M.setItemsToShow(!0)},this.props.transitionDuration||m)),S&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!S&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),L&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),L||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),_.length!==this.props.children.length?A.clonesTimeout=setTimeout(function(){M.props.infinite?M.setClones(M.state.slidesToShow,M.state.itemWidth,!0,!0):M.resetTotalItems()},this.props.transitionDuration||m):this.props.infinite&&this.state.currentSlide!==C&&this.correctClonesPosition({domLoaded:V}),this.transformPlaceHolder!==this.state.transform&&(this.transformPlaceHolder=this.state.transform),this.props.autoPlay&&this.props.rewind&&!this.props.infinite&&r.isInRightEnd(this.state)){var P=this.props.transitionDuration||m;A.isInThrottleTimeout=setTimeout(function(){M.setIsInThrottle(!1),M.resetAutoplayInterval(),M.goToSlide(0,void 0,!!M.props.rewindWithAnimation)},P+this.props.autoPlaySpeed)}},A.prototype.correctClonesPosition=function(Z){var E=this,M=Z.domLoaded,S=n.Children.toArray(this.props.children),L=r.checkClonesPosition(this.state,S,this.props),_=L.isReachingTheEnd,N=L.isReachingTheStart,V=L.nextSlide,C=L.nextPosition;this.state.domLoaded&&M&&(_||N)&&(this.isAnimationAllowed=!1,A.transformTimeout=setTimeout(function(){E.setState({transform:C,currentSlide:V})},this.props.transitionDuration||m))},A.prototype.next=function(Z){var E=this;Z===void 0&&(Z=0);var M=this.props,S=M.afterChange,L=M.beforeChange;if(!r.notEnoughChildren(this.state)){var _=r.populateNextSlides(this.state,this.props,Z),N=_.nextSlides,V=_.nextPosition,C=this.state.currentSlide;N!==void 0&&V!==void 0&&(typeof L=="function"&&L(N,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:V,currentSlide:N},function(){typeof S=="function"&&(A.afterChangeTimeout=setTimeout(function(){S(C,E.getState())},E.props.transitionDuration||m))}))}},A.prototype.previous=function(Z){var E=this;Z===void 0&&(Z=0);var M=this.props,S=M.afterChange,L=M.beforeChange;if(!r.notEnoughChildren(this.state)){var _=r.populatePreviousSlides(this.state,this.props,Z),N=_.nextSlides,V=_.nextPosition;if(N!==void 0&&V!==void 0){var C=this.state.currentSlide;typeof L=="function"&&L(N,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:V,currentSlide:N},function(){typeof S=="function"&&(A.afterChangeTimeout2=setTimeout(function(){S(C,E.getState())},E.props.transitionDuration||m))})}}},A.prototype.resetAutoplayInterval=function(){this.props.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},A.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),A.clonesTimeout&&clearTimeout(A.clonesTimeout),A.isInThrottleTimeout&&clearTimeout(A.isInThrottleTimeout),A.transformTimeout&&clearTimeout(A.transformTimeout),A.afterChangeTimeout&&clearTimeout(A.afterChangeTimeout),A.afterChangeTimeout2&&clearTimeout(A.afterChangeTimeout2),A.afterChangeTimeout3&&clearTimeout(A.afterChangeTimeout3)},A.prototype.resetMoveStatus=function(){this.onMove=!1,this.initialX=0,this.lastX=0,this.direction="",this.initialY=0},A.prototype.getCords=function(Z){var E=Z.clientX,M=Z.clientY;return{clientX:c.parsePosition(this.props,E),clientY:c.parsePosition(this.props,M)}},A.prototype.handleDown=function(Z){if(!(!l.isMouseMoveEvent(Z)&&!this.props.swipeable||l.isMouseMoveEvent(Z)&&!this.props.draggable||this.isInThrottle)){var E=this.getCords(l.isMouseMoveEvent(Z)?Z:Z.touches[0]),M=E.clientX,S=E.clientY;this.onMove=!0,this.initialX=M,this.initialY=S,this.lastX=M,this.isAnimationAllowed=!1}},A.prototype.handleMove=function(Z){if(!(!l.isMouseMoveEvent(Z)&&!this.props.swipeable||l.isMouseMoveEvent(Z)&&!this.props.draggable||r.notEnoughChildren(this.state))){var E=this.getCords(l.isMouseMoveEvent(Z)?Z:Z.touches[0]),M=E.clientX,S=E.clientY,L=this.initialX-M,_=this.initialY-S;if(this.onMove){if(!(Math.abs(L)>Math.abs(_)))return;var N=r.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,M,this.transformPlaceHolder),V=N.direction,C=N.nextPosition,P=N.canContinue;V&&(this.direction=V,P&&C!==void 0&&this.setTransformDirectly(C)),this.lastX=M}}},A.prototype.handleOut=function(Z){this.props.autoPlay&&!this.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));var E=Z.type==="touchend"&&!this.props.swipeable,M=(Z.type==="mouseleave"||Z.type==="mouseup")&&!this.props.draggable;if(!E&&!M&&this.onMove){if(this.setAnimationDirectly(!0),this.direction==="right")if(this.initialX-this.lastX>=this.props.minimumTouchDrag){var S=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(S)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);this.direction==="left"&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(S=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(S)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},A.prototype.isInViewport=function(Z){var E=Z.getBoundingClientRect(),M=E.top,S=M===void 0?0:M,L=E.left,_=L===void 0?0:L,N=E.bottom,V=N===void 0?0:N,C=E.right,P=C===void 0?0:C;return 0<=S&&0<=_&&V<=(window.innerHeight||document.documentElement.clientHeight)&&P<=(window.innerWidth||document.documentElement.clientWidth)},A.prototype.isChildOfCarousel=function(Z){return!!(Z instanceof Element&&this.listRef&&this.listRef.current)&&this.listRef.current.contains(Z)},A.prototype.onKeyUp=function(Z){var E=Z.target;switch(Z.keyCode){case 37:if(this.isChildOfCarousel(E))return this.previous();break;case 39:if(this.isChildOfCarousel(E))return this.next();break;case 9:if(this.isChildOfCarousel(E)&&E instanceof HTMLInputElement&&this.isInViewport(E))return this.next()}},A.prototype.handleEnter=function(Z){l.isMouseMoveEvent(Z)&&this.autoPlay&&this.props.autoPlay&&this.props.pauseOnHover&&(clearInterval(this.autoPlay),this.autoPlay=void 0)},A.prototype.goToSlide=function(Z,E,M){var S=this;if(M===void 0&&(M=!0),!this.isInThrottle){var L=this.state.itemWidth,_=this.props,N=_.afterChange,V=_.beforeChange,C=this.state.currentSlide;typeof V!="function"||E&&(typeof E!="object"||E.skipBeforeChange)||V(Z,this.getState()),this.isAnimationAllowed=M,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:Z,transform:-L*Z},function(){S.props.infinite&&S.correctClonesPosition({domLoaded:!0}),typeof N!="function"||E&&(typeof E!="object"||E.skipAfterChange)||(A.afterChangeTimeout3=setTimeout(function(){N(C,S.getState())},S.props.transitionDuration||m))})}},A.prototype.getState=function(){return this.state},A.prototype.renderLeftArrow=function(Z){var E=this,M=this.props,S=M.customLeftArrow,L=M.rtl;return n.createElement(o.LeftArrow,{customLeftArrow:S,getState:function(){return E.getState()},previous:this.previous,disabled:Z,rtl:L})},A.prototype.renderRightArrow=function(Z){var E=this,M=this.props,S=M.customRightArrow,L=M.rtl;return n.createElement(o.RightArrow,{customRightArrow:S,getState:function(){return E.getState()},next:this.next,disabled:Z,rtl:L})},A.prototype.renderButtonGroups=function(){var Z=this,E=this.props.customButtonGroup;return E?n.cloneElement(E,{previous:function(){return Z.previous()},next:function(){return Z.next()},goToSlide:function(M,S){return Z.goToSlide(M,S)},carouselState:this.getState()}):null},A.prototype.renderDotsList=function(){var Z=this;return n.createElement(i.default,{state:this.state,props:this.props,goToSlide:this.goToSlide,getState:function(){return Z.getState()}})},A.prototype.renderCarouselItems=function(){var Z=[];if(this.props.infinite){var E=n.Children.toArray(this.props.children);Z=r.getClones(this.state.slidesToShow,E)}return n.createElement(s.default,{clones:Z,goToSlide:this.goToSlide,state:this.state,notEnoughChildren:r.notEnoughChildren(this.state),props:this.props})},A.prototype.render=function(){var Z=this.props,E=Z.deviceType,M=Z.arrows,S=Z.renderArrowsWhenDisabled,L=Z.removeArrowOnDeviceType,_=Z.infinite,N=Z.containerClass,V=Z.sliderClass,C=Z.customTransition,P=Z.additionalTransfrom,x=Z.renderDotsOutside,$=Z.renderButtonGroupOutside,D=Z.className,z=Z.rtl;a.NODE_ENV!=="production"&&r.throwError(this.state,this.props);var Y=r.getInitialState(this.state,this.props),i0=Y.shouldRenderOnSSR,G=Y.shouldRenderAtAll,W=r.isInLeftEnd(this.state),o0=r.isInRightEnd(this.state),v0=M&&!(L&&(E&&-1<L.indexOf(E)||this.state.deviceType&&-1<L.indexOf(this.state.deviceType)))&&!r.notEnoughChildren(this.state)&&G,l0=!_&&W,n0=!_&&o0,J=c.getTransform(this.state,this.props);return n.createElement(n.Fragment,null,n.createElement("div",{className:"react-multi-carousel-list "+N+" "+D,dir:z?"rtl":"ltr",ref:this.containerRef},n.createElement("ul",{ref:this.listRef,className:"react-multi-carousel-track "+V,style:{transition:this.isAnimationAllowed?C||h:"none",overflow:i0?"hidden":"unset",transform:"translate3d("+(J+P)+"px,0,0)"},onMouseMove:this.handleMove,onMouseDown:this.handleDown,onMouseUp:this.handleOut,onMouseEnter:this.handleEnter,onMouseLeave:this.handleOut,onTouchStart:this.handleDown,onTouchMove:this.handleMove,onTouchEnd:this.handleOut},this.renderCarouselItems()),v0&&(!l0||S)&&this.renderLeftArrow(l0),v0&&(!n0||S)&&this.renderRightArrow(n0),G&&!$&&this.renderButtonGroups(),G&&!x&&this.renderDotsList()),G&&x&&this.renderDotsList(),G&&$&&this.renderButtonGroups())},A.defaultProps={slidesToSlide:1,infinite:!1,draggable:!0,swipeable:!0,arrows:!0,renderArrowsWhenDisabled:!1,containerClass:"",sliderClass:"",itemClass:"",keyBoardControl:!0,autoPlaySpeed:3e3,showDots:!1,renderDotsOutside:!1,renderButtonGroupOutside:!1,minimumTouchDrag:80,className:"",dotListClass:"",focusOnSelect:!1,centerMode:!1,additionalTransfrom:0,pauseOnHover:!0,shouldResetAutoplay:!0,rewind:!1,rtl:!1,rewindWithAnimation:!1},A})(n.Component);return tc.default=p,tc}var Ju0;function UK0(){if(Ju0)return nA;Ju0=1,Object.defineProperty(nA,"__esModule",{value:!0});var a=BK0();return nA.default=a.default,nA}var qF,eh0;function zK0(){return eh0||(eh0=1,qF=UK0()),qF}var qK0=zK0();const GK0=g2(qK0),WK0=e.createContext({isInline:!1,requestNavigation:()=>{}}),du=()=>e.useContext(WK0),KK0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),e.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),GF=e.forwardRef((a,t)=>e.createElement(k,{ref:t,...a,weights:KK0}));GF.displayName="CaretLeftIcon";const dA=GF,YK0=Object.freeze(Object.defineProperty({__proto__:null,CaretLeft:dA,CaretLeftIcon:GF},Symbol.toStringTag,{value:"Module"})),QK0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),e.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),WF=e.forwardRef((a,t)=>e.createElement(k,{ref:t,...a,weights:QK0}));WF.displayName="CaretRightIcon";const vn=WF,XK0=Object.freeze(Object.defineProperty({__proto__:null,CaretRight:vn,CaretRightIcon:WF},Symbol.toStringTag,{value:"Module"})),JK0=({goToSlide:a,carouselState:t})=>{const{currentSlide:n,slidesToShow:r,totalItems:l}=t,i=!(n+r<l);return l<=r?T.jsx(T.Fragment,{}):T.jsxs("div",{className:"slide-button-group pt-2 flex flex-row justify-center gap-x-5",children:[T.jsx(f2,{circular:!0,disabled:n===0,onClick:()=>a(n-1),className:"slide-button-left",children:T.jsx(dA,{})}),T.jsx(f2,{circular:!0,disabled:i,onClick:()=>a(n+1),className:"slide-button-right",children:T.jsx(vn,{weight:"bold",size:20})})]})},eY0={goToSlide:()=>null,carouselState:{currentSlide:0,slidesToShow:3,totalItems:3}},tY0=a=>({lg:{breakpoint:{max:3e3,min:800},items:a?3:2},md:{breakpoint:{max:800,min:428},items:2},sm:{breakpoint:{max:428,min:0},items:1}}),aY0=a=>a?"grid grid-cols-1 min-[429px]:grid-cols-2 min-[801px]:grid-cols-3 gap-6 mt-4 pb-4":"grid grid-cols-1 min-[429px]:grid-cols-2 min-[801px]:grid-cols-2 gap-6 mt-4 pb-4",nY0=({children:a})=>{const{isInline:t}=du();return T.jsx("div",{className:aY0(t),children:a})},KF=({children:a,...t})=>{const{isInline:n}=du(),[r,l]=e.useState(!1);e.useEffect(()=>l(!0),[]);const i=r?GK0:nY0;return T.jsx(i,{responsive:tY0(n),itemClass:"pr-6",className:"-m-3 p-3 py-8",renderButtonGroupOutside:!0,renderArrowsWhenDisabled:!1,showDots:!1,arrows:!1,swipeable:!0,draggable:!0,customButtonGroup:T.jsx(JK0,{...eY0}),...t,children:a||[]})},rY0=({person:a})=>T.jsxs("div",{className:"flex flex-row items-center gap-x-2 pb-2",children:[T.jsx(Xm,{src:a?.photo?.uri,initials:(a?.firstName||"").charAt(0)+(a?.lastName||"").charAt(0),className:"size-8"}),T.jsxs(ge,{as:"h5",children:[a?.firstName," ",a?.lastName]})]});xe(`
|
|
292
|
+
`);var pu0=typeof global=="object"&&global&&global.Object===Object&&global,oW0=typeof self=="object"&&self&&self.Object===Object&&self,r3=pu0||oW0||Function("return this")(),tA=r3.Symbol,fu0=Object.prototype,sW0=fu0.hasOwnProperty,cW0=fu0.toString,lu=tA?tA.toStringTag:void 0;function dW0(a){var t=sW0.call(a,lu),n=a[lu];try{a[lu]=void 0;var r=!0}catch{}var l=cW0.call(a);return r&&(t?a[lu]=n:delete a[lu]),l}var mW0=Object.prototype,uW0=mW0.toString;function hW0(a){return uW0.call(a)}var pW0="[object Null]",fW0="[object Undefined]",vu0=tA?tA.toStringTag:void 0;function iu(a){return a==null?a===void 0?fW0:pW0:vu0&&vu0 in Object(a)?dW0(a):hW0(a)}function TF(a){return a!=null&&typeof a=="object"}var vW0=Array.isArray;function gu0(a){var t=typeof a;return a!=null&&(t=="object"||t=="function")}var gW0="[object AsyncFunction]",AW0="[object Function]",ZW0="[object GeneratorFunction]",HW0="[object Proxy]";function Au0(a){if(!gu0(a))return!1;var t=iu(a);return t==AW0||t==ZW0||t==gW0||t==HW0}var IF=r3["__core-js_shared__"],Zu0=(function(){var a=/[^.]+$/.exec(IF&&IF.keys&&IF.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function EW0(a){return!!Zu0&&Zu0 in a}var MW0=Function.prototype,yW0=MW0.toString;function s5(a){if(a!=null){try{return yW0.call(a)}catch{}try{return a+""}catch{}}return""}var VW0=/[\\^$.*+?()[\]{}|]/g,kW0=/^\[object .+?Constructor\]$/,SW0=Function.prototype,FW0=Object.prototype,LW0=SW0.toString,bW0=FW0.hasOwnProperty,_W0=RegExp("^"+LW0.call(bW0).replace(VW0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function NW0(a){if(!gu0(a)||EW0(a))return!1;var t=Au0(a)?_W0:kW0;return t.test(s5(a))}function wW0(a,t){return a?.[t]}function ou(a,t){var n=wW0(a,t);return NW0(n)?n:void 0}var PF=ou(r3,"WeakMap");function aA(){}var CW0=9007199254740991;function Hu0(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=CW0}function TW0(a){return a!=null&&Hu0(a.length)&&!Au0(a)}var IW0=Object.prototype;function Eu0(a){var t=a&&a.constructor,n=typeof t=="function"&&t.prototype||IW0;return a===n}var PW0="[object Arguments]";function Mu0(a){return TF(a)&&iu(a)==PW0}var yu0=Object.prototype,xW0=yu0.hasOwnProperty,OW0=yu0.propertyIsEnumerable,RW0=Mu0((function(){return arguments})())?Mu0:function(a){return TF(a)&&xW0.call(a,"callee")&&!OW0.call(a,"callee")};function $W0(){return!1}var Vu0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ku0=Vu0&&typeof module=="object"&&module&&!module.nodeType&&module,DW0=ku0&&ku0.exports===Vu0,Su0=DW0?r3.Buffer:void 0,jW0=Su0?Su0.isBuffer:void 0,BW0=jW0||$W0,UW0="[object Arguments]",zW0="[object Array]",qW0="[object Boolean]",GW0="[object Date]",WW0="[object Error]",KW0="[object Function]",YW0="[object Map]",QW0="[object Number]",XW0="[object Object]",JW0="[object RegExp]",eK0="[object Set]",tK0="[object String]",aK0="[object WeakMap]",nK0="[object ArrayBuffer]",rK0="[object DataView]",lK0="[object Float32Array]",iK0="[object Float64Array]",oK0="[object Int8Array]",sK0="[object Int16Array]",cK0="[object Int32Array]",dK0="[object Uint8Array]",mK0="[object Uint8ClampedArray]",uK0="[object Uint16Array]",hK0="[object Uint32Array]",kt={};kt[lK0]=kt[iK0]=kt[oK0]=kt[sK0]=kt[cK0]=kt[dK0]=kt[mK0]=kt[uK0]=kt[hK0]=!0,kt[UW0]=kt[zW0]=kt[nK0]=kt[qW0]=kt[rK0]=kt[GW0]=kt[WW0]=kt[KW0]=kt[YW0]=kt[QW0]=kt[XW0]=kt[JW0]=kt[eK0]=kt[tK0]=kt[aK0]=!1;function pK0(a){return TF(a)&&Hu0(a.length)&&!!kt[iu(a)]}function fK0(a){return function(t){return a(t)}}var Fu0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,su=Fu0&&typeof module=="object"&&module&&!module.nodeType&&module,vK0=su&&su.exports===Fu0,xF=vK0&&pu0.process,Lu0=(function(){try{var a=su&&su.require&&su.require("util").types;return a||xF&&xF.binding&&xF.binding("util")}catch{}})(),bu0=Lu0&&Lu0.isTypedArray,gK0=bu0?fK0(bu0):pK0;function AK0(a,t){return function(n){return a(t(n))}}var ZK0=AK0(Object.keys,Object),HK0=Object.prototype,EK0=HK0.hasOwnProperty;function MK0(a){if(!Eu0(a))return ZK0(a);var t=[];for(var n in Object(a))EK0.call(a,n)&&n!="constructor"&&t.push(n);return t}var OF=ou(r3,"Map"),RF=ou(r3,"DataView"),$F=ou(r3,"Promise"),DF=ou(r3,"Set"),_u0="[object Map]",yK0="[object Object]",Nu0="[object Promise]",wu0="[object Set]",Cu0="[object WeakMap]",Tu0="[object DataView]",VK0=s5(RF),kK0=s5(OF),SK0=s5($F),FK0=s5(DF),LK0=s5(PF),c5=iu;(RF&&c5(new RF(new ArrayBuffer(1)))!=Tu0||OF&&c5(new OF)!=_u0||$F&&c5($F.resolve())!=Nu0||DF&&c5(new DF)!=wu0||PF&&c5(new PF)!=Cu0)&&(c5=function(a){var t=iu(a),n=t==yK0?a.constructor:void 0,r=n?s5(n):"";if(r)switch(r){case VK0:return Tu0;case kK0:return _u0;case SK0:return Nu0;case FK0:return wu0;case LK0:return Cu0}return t});var bK0="[object Map]",_K0="[object Set]",NK0=Object.prototype,wK0=NK0.hasOwnProperty;function _l(a){if(a==null)return!0;if(TW0(a)&&(vW0(a)||typeof a=="string"||typeof a.splice=="function"||BW0(a)||gK0(a)||RW0(a)))return!a.length;var t=c5(a);if(t==bK0||t==_K0)return!a.size;if(Eu0(a))return!MK0(a).length;for(var n in a)if(wK0.call(a,n))return!1;return!0}const Iu0=({children:a,hideCloseButton:t=!1,hideHeader:n=!1,isOpen:r=!1,setIsOpen:l=aA,title:i="",theme:o})=>T.jsx(Qm.Root,{show:r,as:e.Fragment,children:T.jsxs(Dg,{as:"div",className:"relative z-[100000]",onClose:l,children:[T.jsx(Qm.Child,{as:e.Fragment,enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:T.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 dark:bg-gray-900 dark:bg-opacity-75 transition-opacity"})}),T.jsx("div",{className:"flex justify-center overflow-scroll",children:T.jsx("div",{className:"pointer-events-none fixed bottom-0 left-0 right-0 md:inset-0 flex items-center justify-center",children:T.jsx(Qm.Child,{as:e.Fragment,enter:"transform transition ease-in-out duration-500 sm:duration-700",enterFrom:"translate-y-full opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transform transition ease-in-out duration-500 sm:duration-700",leaveFrom:"translate-y-0 opacity-100",leaveTo:"translate-y-full opacity-0",children:T.jsx(Dg.Panel,{className:"pointer-events-auto w-screen md:w-[50vw] md:max-w-xl",children:T.jsx($q0,{theme:o||{},children:T.jsxs("div",{className:"flex flex-col bg-white dark:bg-black shadow-xl rounded-t-xl md:rounded-xl",children:[n?null:T.jsx("div",{className:"rounded-t-xl top-0 z-40 pt-4 bg-white dark:bg-black mb-4",children:T.jsxs("div",{className:"pb-4 mx-4 flex items-center justify-between",children:[T.jsx("div",{className:"flex flex-row",children:_l(i)?null:T.jsx(Dg.Title,{className:"text-base font-semibold leading-6 flex flex-row items-center",children:i})}),t?null:T.jsx("div",{children:T.jsxs("button",{type:"button",className:"rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2",onClick:()=>l(!1),children:[T.jsx("span",{className:"sr-only",children:"Close panel"}),T.jsx(J7,{className:"h-6 w-6","aria-hidden":"true"})]})})]})}),T.jsx("div",{className:"mx-4 [@media(height<40rem)]:mt-4 py-4 pb-16",children:a})]})})})})})})]})});var nA={},tc={},$t={},jF={},Pu0;function BF(){return Pu0||(Pu0=1,(function(a){function t(o,s,c){var m=s.slidesToShow,h=s.currentSlide;return c.length>2*m?o+2*m:h>=c.length?c.length+o:o}function n(o,s){if(s.length>2*o){for(var c={},m=s.length-2*o,h=s.length-m,p=m,v=0;v<h;v++)c[v]=p,p++;var A=s.length+h,Z=A+s.slice(0,2*o).length,E=0;for(v=A;v<=Z;v++)c[v]=E,E++;var M=A,S=0;for(v=h;v<M;v++)c[v]=S,S++;return c}c={};var L=3*s.length,_=0;for(v=0;v<L;v++)c[v]=_,++_===s.length&&(_=0);return c}function r(o,s){return s.length<o?s:s.length>2*o?s.slice(s.length-2*o,s.length).concat(s,s.slice(0,2*o)):s.concat(s,s)}function l(o,s){return s.length>2*o?2*o:s.length}function i(o,s,c){var m,h=o.currentSlide,p=o.slidesToShow,v=o.itemWidth,A=o.totalItems,Z=0,E=0,M=h===0,S=s.length-(s.length-2*p);return s.length<p?(E=Z=0,M=m=!1):s.length>2*p?((m=h>=S+s.length)&&(E=-v*(Z=h-s.length)),M&&(E=-v*(Z=S+(s.length-2*p)))):((m=h>=2*s.length)&&(E=-v*(Z=h-s.length)),M&&(E=c.showDots?-v*(Z=s.length):-v*(Z=A/3))),{isReachingTheEnd:m,isReachingTheStart:M,nextSlide:Z,nextPosition:E}}Object.defineProperty(a,"__esModule",{value:!0}),a.getOriginalCounterPart=t,a.getOriginalIndexLookupTableByClones=n,a.getClones=r,a.getInitialSlideInInfiniteMode=l,a.checkClonesPosition=i})(jF)),jF}var ac={},xu0;function Ou0(){if(xu0)return ac;xu0=1;var a={};Object.defineProperty(ac,"__esModule",{value:!0});var t=!1;function n(i,o,s,c){var m=0,h=c||s;return o&&h&&(!t&&a.NODE_ENV!=="production"&&i[h].paritialVisibilityGutter&&(t=!0,console.warn("You appear to be using paritialVisibilityGutter instead of partialVisibilityGutter which will be moved to partialVisibilityGutter in the future completely")),m=i[h].partialVisibilityGutter||i[h].paritialVisibilityGutter),m}function r(i,o){var s;return o[i]&&(s=(100/o[i].items).toFixed(1)),s}function l(i,o,s){return Math.round(s/(o+(i.centerMode?1:0)))}return ac.getPartialVisibilityGutter=n,ac.getWidthFromDeviceType=r,ac.getItemClientSideWidth=l,ac}var n4={},Ru0;function d5(){if(Ru0)return n4;Ru0=1,Object.defineProperty(n4,"__esModule",{value:!0});var a=Ou0();function t(p){var v=p.slidesToShow;return p.totalItems<v}function n(p,v){var A,Z=p.domLoaded,E=p.slidesToShow,M=p.containerWidth,S=p.itemWidth,L=v.deviceType,_=v.responsive,N=v.ssr,V=v.partialVisbile,C=v.partialVisible,P=!!(Z&&E&&M&&S);N&&L&&!P&&(A=a.getWidthFromDeviceType(L,_));var x=!!(N&&L&&!P&&A);return{shouldRenderOnSSR:x,flexBisis:A,domFullyLoaded:P,partialVisibilityGutter:a.getPartialVisibilityGutter(_,V||C,L,p.deviceType),shouldRenderAtAll:x||P}}function r(p,v){var A=v.currentSlide,Z=v.slidesToShow;return A<=p&&p<A+Z}function l(p,v,A){var Z=A||p.transform;return!v.infinite&&p.currentSlide===0||t(p)?Z:Z+p.itemWidth/2}function i(p){return!(0<p.currentSlide)}function o(p){var v=p.currentSlide,A=p.totalItems;return!(v+p.slidesToShow<A)}function s(p,v,A,Z){v===void 0&&(v=0);var E=p.currentSlide,M=p.slidesToShow,S=o(p),L=!A.infinite&&S,_=Z||p.transform;if(t(p))return _;var N=_+E*v;return L?N+(p.containerWidth-(p.itemWidth-v)*M):N}function c(p,v){return p.rtl?-1*v:v}function m(p,v,A){var Z=v.partialVisbile,E=v.partialVisible,M=v.responsive,S=v.deviceType,L=v.centerMode,_=A||p.transform,N=a.getPartialVisibilityGutter(M,Z||E,S,p.deviceType);return c(v,E||Z?s(p,N,v,A):L?l(p,v,A):_)}function h(p,v){var A=p.domLoaded,Z=p.slidesToShow,E=p.containerWidth,M=p.itemWidth,S=v.deviceType,L=v.responsive,_=v.slidesToSlide||1,N=!!(A&&Z&&E&&M);return v.ssr&&v.deviceType&&!N&&Object.keys(L).forEach(function(V){var C=L[V].slidesToSlide;S===V&&C&&(_=C)}),N&&Object.keys(L).forEach(function(V){var C=L[V],P=C.breakpoint,x=C.slidesToSlide,$=P.max,D=P.min;x&&window.innerWidth>=D&&window.innerWidth<=$&&(_=x)}),_}return n4.notEnoughChildren=t,n4.getInitialState=n,n4.getIfSlideIsVisbile=r,n4.getTransformForCenterMode=l,n4.isInLeftEnd=i,n4.isInRightEnd=o,n4.getTransformForPartialVsibile=s,n4.parsePosition=c,n4.getTransform=m,n4.getSlidesToSlide=h,n4}var rA={},$u0;function CK0(){if($u0)return rA;$u0=1,Object.defineProperty(rA,"__esModule",{value:!0});var a=function(t,n,r){var l;return function(){var i=arguments;l||(t.apply(this,i),l=!0,typeof r=="function"&&r(!0),setTimeout(function(){l=!1,typeof r=="function"&&r(!1)},n))}};return rA.default=a,rA}var UF={},Du0;function TK0(){return Du0||(Du0=1,(function(a){function t(n,r){var l=r.partialVisbile,i=r.partialVisible,o=r.centerMode,s=r.ssr,c=r.responsive;if((l||i)&&o)throw new Error("center mode can not be used at the same time with partialVisible");if(!c)throw s?new Error("ssr mode need to be used in conjunction with responsive prop"):new Error("Responsive prop is needed for deciding the amount of items to show on the screen");if(c&&typeof c!="object")throw new Error("responsive prop must be an object")}Object.defineProperty(a,"__esModule",{value:!0}),a.default=t})(UF)),UF}var lA={},ju0;function IK0(){if(ju0)return lA;ju0=1,Object.defineProperty(lA,"__esModule",{value:!0});var a=d5();function t(n,r,l){l===void 0&&(l=0);var i,o,s=n.slidesToShow,c=n.currentSlide,m=n.itemWidth,h=n.totalItems,p=a.getSlidesToSlide(n,r),v=c+1+l+s+(0<l?0:p);return o=v<=h?-m*(i=c+l+(0<l?0:p)):h<v&&c!==h-s?-m*(i=h-s):i=void 0,{nextSlides:i,nextPosition:o}}return lA.populateNextSlides=t,lA}var iA={},Bu0;function PK0(){if(Bu0)return iA;Bu0=1,Object.defineProperty(iA,"__esModule",{value:!0});var a=y2(),t=d5(),n=d5();function r(l,i,o){o===void 0&&(o=0);var s,c,m=l.currentSlide,h=l.itemWidth,p=l.slidesToShow,v=i.children,A=i.showDots,Z=i.infinite,E=t.getSlidesToSlide(l,i),M=m-o-(0<o?0:E),S=(a.Children.toArray(v).length-p)%E;return c=0<=M?(s=M,A&&!Z&&0<S&&n.isInRightEnd(l)&&(s=m-S),-h*s):s=M<0&&m!==0?0:void 0,{nextSlides:s,nextPosition:c}}return iA.populatePreviousSlides=r,iA}var zF={},Uu0;function xK0(){return Uu0||(Uu0=1,(function(a){function t(n,r,l,i,o,s){var c,m,h=n.itemWidth,p=n.slidesToShow,v=n.totalItems,A=n.currentSlide,Z=r.infinite,E=!1,M=Math.round((l-i)/h),S=Math.round((i-l)/h),L=l<o;if(o<l&&M<=p){c="right";var _=Math.abs(-h*(v-p)),N=s-(i-o),V=A===v-p;(Math.abs(N)<=_||V&&Z)&&(m=N,E=!0)}return L&&S<=p&&(c="left",((N=s+(o-i))<=0||A===0&&Z)&&(E=!0,m=N)),{direction:c,nextPosition:m,canContinue:E}}Object.defineProperty(a,"__esModule",{value:!0}),a.populateSlidesOnMouseTouchMove=t})(zF)),zF}var zu0;function qu0(){if(zu0)return $t;zu0=1,Object.defineProperty($t,"__esModule",{value:!0});var a=BF();$t.getOriginalCounterPart=a.getOriginalCounterPart,$t.getClones=a.getClones,$t.checkClonesPosition=a.checkClonesPosition,$t.getInitialSlideInInfiniteMode=a.getInitialSlideInInfiniteMode;var t=Ou0();$t.getWidthFromDeviceType=t.getWidthFromDeviceType,$t.getPartialVisibilityGutter=t.getPartialVisibilityGutter,$t.getItemClientSideWidth=t.getItemClientSideWidth;var n=d5();$t.getInitialState=n.getInitialState,$t.getIfSlideIsVisbile=n.getIfSlideIsVisbile,$t.getTransformForCenterMode=n.getTransformForCenterMode,$t.getTransformForPartialVsibile=n.getTransformForPartialVsibile,$t.isInLeftEnd=n.isInLeftEnd,$t.isInRightEnd=n.isInRightEnd,$t.notEnoughChildren=n.notEnoughChildren,$t.getSlidesToSlide=n.getSlidesToSlide;var r=CK0();$t.throttle=r.default;var l=TK0();$t.throwError=l.default;var i=IK0();$t.populateNextSlides=i.populateNextSlides;var o=PK0();$t.populatePreviousSlides=o.populatePreviousSlides;var s=xK0();return $t.populateSlidesOnMouseTouchMove=s.populateSlidesOnMouseTouchMove,$t}var m5={},Gu0;function OK0(){if(Gu0)return m5;Gu0=1;var a=m5&&m5.__extends||(function(){var l=function(i,o){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var m in c)c.hasOwnProperty(m)&&(s[m]=c[m])})(i,o)};return function(i,o){function s(){this.constructor=i}l(i,o),i.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}})();Object.defineProperty(m5,"__esModule",{value:!0});var t=y2();function n(l){return"clientY"in l}m5.isMouseMoveEvent=n;var r=(function(l){function i(){return l!==null&&l.apply(this,arguments)||this}return a(i,l),i})(t.Component);return m5.default=r,m5}var oA={},sA={},Wu0;function RK0(){if(Wu0)return sA;Wu0=1,Object.defineProperty(sA,"__esModule",{value:!0});var a=BF(),t=d5();function n(r,l,i,o){var s={},c=t.getSlidesToSlide(l,i);return Array(r).fill(0).forEach(function(m,h){var p=a.getOriginalCounterPart(h,l,o);if(h===0)s[0]=p;else{var v=s[h-1]+c;s[h]=v}}),s}return sA.getLookupTableForNextSlides=n,sA}var Ku0;function $K0(){if(Ku0)return oA;Ku0=1,Object.defineProperty(oA,"__esModule",{value:!0});var a=y2(),t=BF(),n=RK0(),r=d5(),l=function(i){var o=i.props,s=i.state,c=i.goToSlide,m=i.getState,h=o.showDots,p=o.customDot,v=o.dotListClass,A=o.infinite,Z=o.children;if(!h||r.notEnoughChildren(s))return null;var E,M=s.currentSlide,S=s.slidesToShow,L=r.getSlidesToSlide(s,o),_=a.Children.toArray(Z);E=A?Math.ceil(_.length/L):Math.ceil((_.length-S)/L)+1;var N=n.getLookupTableForNextSlides(E,s,o,_),V=t.getOriginalIndexLookupTableByClones(S,_),C=V[M];return a.createElement("ul",{className:"react-multi-carousel-dot-list "+v},Array(E).fill(0).map(function(P,x){var $,D;if(A){D=N[x];var z=V[D];$=C===z||z<=C&&C<z+L}else{var Y=_.length-S,i0=x*L;$=(D=Y<i0?Y:i0)===M||D<M&&M<D+L&&M<_.length-S}return p?a.cloneElement(p,{index:x,active:$,key:x,onClick:function(){return c(D)},carouselState:m()}):a.createElement("li",{"data-index":x,key:x,className:"react-multi-carousel-dot "+($?"react-multi-carousel-dot--active":"")},a.createElement("button",{"aria-label":"Go to slide "+(x+1),onClick:function(){return c(D)}}))}))};return oA.default=l,oA}var cu={},Yu0;function DK0(){if(Yu0)return cu;Yu0=1,Object.defineProperty(cu,"__esModule",{value:!0});var a=y2(),t=function(r){var l=r.customLeftArrow,i=r.getState,o=r.previous,s=r.disabled,c=r.rtl;if(l)return a.cloneElement(l,{onClick:function(){return o()},carouselState:i(),disabled:s,rtl:c});var m=c?"rtl":"";return a.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+m,onClick:function(){return o()},type:"button",disabled:s})};cu.LeftArrow=t;var n=function(r){var l=r.customRightArrow,i=r.getState,o=r.next,s=r.disabled,c=r.rtl;if(l)return a.cloneElement(l,{onClick:function(){return o()},carouselState:i(),disabled:s,rtl:c});var m=c?"rtl":"";return a.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+m,onClick:function(){return o()},type:"button",disabled:s})};return cu.RightArrow=n,cu}var cA={},Qu0;function jK0(){if(Qu0)return cA;Qu0=1,Object.defineProperty(cA,"__esModule",{value:!0});var a=y2(),t=qu0(),n=function(r){var l=r.props,i=r.state,o=r.goToSlide,s=r.clones,c=r.notEnoughChildren,m=i.itemWidth,h=l.children,p=l.infinite,v=l.itemClass,A=l.itemAriaLabel,Z=l.partialVisbile,E=l.partialVisible,M=t.getInitialState(i,l),S=M.flexBisis,L=M.shouldRenderOnSSR,_=M.domFullyLoaded,N=M.partialVisibilityGutter;return M.shouldRenderAtAll?(Z&&console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),a.createElement(a.Fragment,null,(p?s:a.Children.toArray(h)).map(function(V,C){return a.createElement("li",{key:C,"data-index":C,onClick:function(){l.focusOnSelect&&o(C)},"aria-hidden":t.getIfSlideIsVisbile(C,i)?"false":"true","aria-label":A||(V.props.ariaLabel?V.props.ariaLabel:null),style:{flex:L?"1 0 "+S+"%":"auto",position:"relative",width:_?((Z||E)&&N&&!c?m-N:m)+"px":"auto"},className:"react-multi-carousel-item "+(t.getIfSlideIsVisbile(C,i)?"react-multi-carousel-item--active":"")+" "+v},V)}))):null};return cA.default=n,cA}var Xu0;function BK0(){if(Xu0)return tc;Xu0=1;var a={},t=tc&&tc.__extends||(function(){var v=function(A,Z){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var S in M)M.hasOwnProperty(S)&&(E[S]=M[S])})(A,Z)};return function(A,Z){function E(){this.constructor=A}v(A,Z),A.prototype=Z===null?Object.create(Z):(E.prototype=Z.prototype,new E)}})();Object.defineProperty(tc,"__esModule",{value:!0});var n=y2(),r=qu0(),l=OK0(),i=$K0(),o=DK0(),s=jK0(),c=d5(),m=400,h="transform 400ms ease-in-out",p=(function(v){function A(Z){var E=v.call(this,Z)||this;return E.containerRef=n.createRef(),E.listRef=n.createRef(),E.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:n.Children.count(Z.children),deviceType:"",domLoaded:!1,transform:0,containerWidth:0},E.onResize=E.onResize.bind(E),E.handleDown=E.handleDown.bind(E),E.handleMove=E.handleMove.bind(E),E.handleOut=E.handleOut.bind(E),E.onKeyUp=E.onKeyUp.bind(E),E.handleEnter=E.handleEnter.bind(E),E.setIsInThrottle=E.setIsInThrottle.bind(E),E.next=r.throttle(E.next.bind(E),Z.transitionDuration||m,E.setIsInThrottle),E.previous=r.throttle(E.previous.bind(E),Z.transitionDuration||m,E.setIsInThrottle),E.goToSlide=r.throttle(E.goToSlide.bind(E),Z.transitionDuration||m,E.setIsInThrottle),E.onMove=!1,E.initialX=0,E.lastX=0,E.isAnimationAllowed=!1,E.direction="",E.initialY=0,E.isInThrottle=!1,E.transformPlaceHolder=0,E}return t(A,v),A.prototype.resetTotalItems=function(){var Z=this,E=n.Children.count(this.props.children),M=r.notEnoughChildren(this.state)?0:Math.max(0,Math.min(this.state.currentSlide,E));this.setState({totalItems:E,currentSlide:M},function(){Z.setContainerAndItemWidth(Z.state.slidesToShow,!0)})},A.prototype.setIsInThrottle=function(Z){Z===void 0&&(Z=!1),this.isInThrottle=Z},A.prototype.setTransformDirectly=function(Z,E){var M=this.props.additionalTransfrom;this.transformPlaceHolder=Z;var S=c.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(E),this.listRef.current.style.transform="translate3d("+(S+M)+"px,0,0)")},A.prototype.setAnimationDirectly=function(Z){this.listRef&&this.listRef.current&&(this.listRef.current.style.transition=Z?this.props.customTransition||h:"none")},A.prototype.componentDidMount=function(){this.setState({domLoaded:!0}),this.setItemsToShow(),window.addEventListener("resize",this.onResize),this.onResize(!0),this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),this.props.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},A.prototype.setClones=function(Z,E,M,S){var L=this;S===void 0&&(S=!1),this.isAnimationAllowed=!1;var _=n.Children.toArray(this.props.children),N=r.getInitialSlideInInfiniteMode(Z||this.state.slidesToShow,_),V=r.getClones(this.state.slidesToShow,_),C=_.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:V.length,currentSlide:M&&!S?C:N},function(){L.correctItemsPosition(E||L.state.itemWidth)})},A.prototype.setItemsToShow=function(Z,E){var M=this,S=this.props.responsive;Object.keys(S).forEach(function(L){var _=S[L],N=_.breakpoint,V=_.items,C=N.max,P=N.min,x=[window.innerWidth];window.screen&&window.screen.width&&x.push(window.screen.width);var $=Math.min.apply(Math,x);P<=$&&$<=C&&(M.setState({slidesToShow:V,deviceType:L}),M.setContainerAndItemWidth(V,Z,E))})},A.prototype.setContainerAndItemWidth=function(Z,E,M){var S=this;if(this.containerRef&&this.containerRef.current){var L=this.containerRef.current.offsetWidth,_=r.getItemClientSideWidth(this.props,Z,L);this.setState({containerWidth:L,itemWidth:_},function(){S.props.infinite&&S.setClones(Z,_,E,M)}),E&&this.correctItemsPosition(_)}},A.prototype.correctItemsPosition=function(Z,E,M){E&&(this.isAnimationAllowed=!0),!E&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var S=this.state.totalItems<this.state.slidesToShow?0:-Z*this.state.currentSlide;M&&this.setTransformDirectly(S,!0),this.setState({transform:S})},A.prototype.onResize=function(Z){var E;E=!!this.props.infinite&&(typeof Z!="boolean"||!Z),this.setItemsToShow(E)},A.prototype.componentDidUpdate=function(Z,E){var M=this,S=Z.keyBoardControl,L=Z.autoPlay,_=Z.children,N=E.containerWidth,V=E.domLoaded,C=E.currentSlide;if(this.containerRef&&this.containerRef.current&&this.containerRef.current.offsetWidth!==N&&(this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),this.itemsToShowTimeout=setTimeout(function(){M.setItemsToShow(!0)},this.props.transitionDuration||m)),S&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!S&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),L&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),L||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),_.length!==this.props.children.length?A.clonesTimeout=setTimeout(function(){M.props.infinite?M.setClones(M.state.slidesToShow,M.state.itemWidth,!0,!0):M.resetTotalItems()},this.props.transitionDuration||m):this.props.infinite&&this.state.currentSlide!==C&&this.correctClonesPosition({domLoaded:V}),this.transformPlaceHolder!==this.state.transform&&(this.transformPlaceHolder=this.state.transform),this.props.autoPlay&&this.props.rewind&&!this.props.infinite&&r.isInRightEnd(this.state)){var P=this.props.transitionDuration||m;A.isInThrottleTimeout=setTimeout(function(){M.setIsInThrottle(!1),M.resetAutoplayInterval(),M.goToSlide(0,void 0,!!M.props.rewindWithAnimation)},P+this.props.autoPlaySpeed)}},A.prototype.correctClonesPosition=function(Z){var E=this,M=Z.domLoaded,S=n.Children.toArray(this.props.children),L=r.checkClonesPosition(this.state,S,this.props),_=L.isReachingTheEnd,N=L.isReachingTheStart,V=L.nextSlide,C=L.nextPosition;this.state.domLoaded&&M&&(_||N)&&(this.isAnimationAllowed=!1,A.transformTimeout=setTimeout(function(){E.setState({transform:C,currentSlide:V})},this.props.transitionDuration||m))},A.prototype.next=function(Z){var E=this;Z===void 0&&(Z=0);var M=this.props,S=M.afterChange,L=M.beforeChange;if(!r.notEnoughChildren(this.state)){var _=r.populateNextSlides(this.state,this.props,Z),N=_.nextSlides,V=_.nextPosition,C=this.state.currentSlide;N!==void 0&&V!==void 0&&(typeof L=="function"&&L(N,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:V,currentSlide:N},function(){typeof S=="function"&&(A.afterChangeTimeout=setTimeout(function(){S(C,E.getState())},E.props.transitionDuration||m))}))}},A.prototype.previous=function(Z){var E=this;Z===void 0&&(Z=0);var M=this.props,S=M.afterChange,L=M.beforeChange;if(!r.notEnoughChildren(this.state)){var _=r.populatePreviousSlides(this.state,this.props,Z),N=_.nextSlides,V=_.nextPosition;if(N!==void 0&&V!==void 0){var C=this.state.currentSlide;typeof L=="function"&&L(N,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:V,currentSlide:N},function(){typeof S=="function"&&(A.afterChangeTimeout2=setTimeout(function(){S(C,E.getState())},E.props.transitionDuration||m))})}}},A.prototype.resetAutoplayInterval=function(){this.props.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},A.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),A.clonesTimeout&&clearTimeout(A.clonesTimeout),A.isInThrottleTimeout&&clearTimeout(A.isInThrottleTimeout),A.transformTimeout&&clearTimeout(A.transformTimeout),A.afterChangeTimeout&&clearTimeout(A.afterChangeTimeout),A.afterChangeTimeout2&&clearTimeout(A.afterChangeTimeout2),A.afterChangeTimeout3&&clearTimeout(A.afterChangeTimeout3)},A.prototype.resetMoveStatus=function(){this.onMove=!1,this.initialX=0,this.lastX=0,this.direction="",this.initialY=0},A.prototype.getCords=function(Z){var E=Z.clientX,M=Z.clientY;return{clientX:c.parsePosition(this.props,E),clientY:c.parsePosition(this.props,M)}},A.prototype.handleDown=function(Z){if(!(!l.isMouseMoveEvent(Z)&&!this.props.swipeable||l.isMouseMoveEvent(Z)&&!this.props.draggable||this.isInThrottle)){var E=this.getCords(l.isMouseMoveEvent(Z)?Z:Z.touches[0]),M=E.clientX,S=E.clientY;this.onMove=!0,this.initialX=M,this.initialY=S,this.lastX=M,this.isAnimationAllowed=!1}},A.prototype.handleMove=function(Z){if(!(!l.isMouseMoveEvent(Z)&&!this.props.swipeable||l.isMouseMoveEvent(Z)&&!this.props.draggable||r.notEnoughChildren(this.state))){var E=this.getCords(l.isMouseMoveEvent(Z)?Z:Z.touches[0]),M=E.clientX,S=E.clientY,L=this.initialX-M,_=this.initialY-S;if(this.onMove){if(!(Math.abs(L)>Math.abs(_)))return;var N=r.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,M,this.transformPlaceHolder),V=N.direction,C=N.nextPosition,P=N.canContinue;V&&(this.direction=V,P&&C!==void 0&&this.setTransformDirectly(C)),this.lastX=M}}},A.prototype.handleOut=function(Z){this.props.autoPlay&&!this.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));var E=Z.type==="touchend"&&!this.props.swipeable,M=(Z.type==="mouseleave"||Z.type==="mouseup")&&!this.props.draggable;if(!E&&!M&&this.onMove){if(this.setAnimationDirectly(!0),this.direction==="right")if(this.initialX-this.lastX>=this.props.minimumTouchDrag){var S=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(S)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);this.direction==="left"&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(S=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(S)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},A.prototype.isInViewport=function(Z){var E=Z.getBoundingClientRect(),M=E.top,S=M===void 0?0:M,L=E.left,_=L===void 0?0:L,N=E.bottom,V=N===void 0?0:N,C=E.right,P=C===void 0?0:C;return 0<=S&&0<=_&&V<=(window.innerHeight||document.documentElement.clientHeight)&&P<=(window.innerWidth||document.documentElement.clientWidth)},A.prototype.isChildOfCarousel=function(Z){return!!(Z instanceof Element&&this.listRef&&this.listRef.current)&&this.listRef.current.contains(Z)},A.prototype.onKeyUp=function(Z){var E=Z.target;switch(Z.keyCode){case 37:if(this.isChildOfCarousel(E))return this.previous();break;case 39:if(this.isChildOfCarousel(E))return this.next();break;case 9:if(this.isChildOfCarousel(E)&&E instanceof HTMLInputElement&&this.isInViewport(E))return this.next()}},A.prototype.handleEnter=function(Z){l.isMouseMoveEvent(Z)&&this.autoPlay&&this.props.autoPlay&&this.props.pauseOnHover&&(clearInterval(this.autoPlay),this.autoPlay=void 0)},A.prototype.goToSlide=function(Z,E,M){var S=this;if(M===void 0&&(M=!0),!this.isInThrottle){var L=this.state.itemWidth,_=this.props,N=_.afterChange,V=_.beforeChange,C=this.state.currentSlide;typeof V!="function"||E&&(typeof E!="object"||E.skipBeforeChange)||V(Z,this.getState()),this.isAnimationAllowed=M,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:Z,transform:-L*Z},function(){S.props.infinite&&S.correctClonesPosition({domLoaded:!0}),typeof N!="function"||E&&(typeof E!="object"||E.skipAfterChange)||(A.afterChangeTimeout3=setTimeout(function(){N(C,S.getState())},S.props.transitionDuration||m))})}},A.prototype.getState=function(){return this.state},A.prototype.renderLeftArrow=function(Z){var E=this,M=this.props,S=M.customLeftArrow,L=M.rtl;return n.createElement(o.LeftArrow,{customLeftArrow:S,getState:function(){return E.getState()},previous:this.previous,disabled:Z,rtl:L})},A.prototype.renderRightArrow=function(Z){var E=this,M=this.props,S=M.customRightArrow,L=M.rtl;return n.createElement(o.RightArrow,{customRightArrow:S,getState:function(){return E.getState()},next:this.next,disabled:Z,rtl:L})},A.prototype.renderButtonGroups=function(){var Z=this,E=this.props.customButtonGroup;return E?n.cloneElement(E,{previous:function(){return Z.previous()},next:function(){return Z.next()},goToSlide:function(M,S){return Z.goToSlide(M,S)},carouselState:this.getState()}):null},A.prototype.renderDotsList=function(){var Z=this;return n.createElement(i.default,{state:this.state,props:this.props,goToSlide:this.goToSlide,getState:function(){return Z.getState()}})},A.prototype.renderCarouselItems=function(){var Z=[];if(this.props.infinite){var E=n.Children.toArray(this.props.children);Z=r.getClones(this.state.slidesToShow,E)}return n.createElement(s.default,{clones:Z,goToSlide:this.goToSlide,state:this.state,notEnoughChildren:r.notEnoughChildren(this.state),props:this.props})},A.prototype.render=function(){var Z=this.props,E=Z.deviceType,M=Z.arrows,S=Z.renderArrowsWhenDisabled,L=Z.removeArrowOnDeviceType,_=Z.infinite,N=Z.containerClass,V=Z.sliderClass,C=Z.customTransition,P=Z.additionalTransfrom,x=Z.renderDotsOutside,$=Z.renderButtonGroupOutside,D=Z.className,z=Z.rtl;a.NODE_ENV!=="production"&&r.throwError(this.state,this.props);var Y=r.getInitialState(this.state,this.props),i0=Y.shouldRenderOnSSR,G=Y.shouldRenderAtAll,W=r.isInLeftEnd(this.state),o0=r.isInRightEnd(this.state),v0=M&&!(L&&(E&&-1<L.indexOf(E)||this.state.deviceType&&-1<L.indexOf(this.state.deviceType)))&&!r.notEnoughChildren(this.state)&&G,l0=!_&&W,n0=!_&&o0,J=c.getTransform(this.state,this.props);return n.createElement(n.Fragment,null,n.createElement("div",{className:"react-multi-carousel-list "+N+" "+D,dir:z?"rtl":"ltr",ref:this.containerRef},n.createElement("ul",{ref:this.listRef,className:"react-multi-carousel-track "+V,style:{transition:this.isAnimationAllowed?C||h:"none",overflow:i0?"hidden":"unset",transform:"translate3d("+(J+P)+"px,0,0)"},onMouseMove:this.handleMove,onMouseDown:this.handleDown,onMouseUp:this.handleOut,onMouseEnter:this.handleEnter,onMouseLeave:this.handleOut,onTouchStart:this.handleDown,onTouchMove:this.handleMove,onTouchEnd:this.handleOut},this.renderCarouselItems()),v0&&(!l0||S)&&this.renderLeftArrow(l0),v0&&(!n0||S)&&this.renderRightArrow(n0),G&&!$&&this.renderButtonGroups(),G&&!x&&this.renderDotsList()),G&&x&&this.renderDotsList(),G&&$&&this.renderButtonGroups())},A.defaultProps={slidesToSlide:1,infinite:!1,draggable:!0,swipeable:!0,arrows:!0,renderArrowsWhenDisabled:!1,containerClass:"",sliderClass:"",itemClass:"",keyBoardControl:!0,autoPlaySpeed:3e3,showDots:!1,renderDotsOutside:!1,renderButtonGroupOutside:!1,minimumTouchDrag:80,className:"",dotListClass:"",focusOnSelect:!1,centerMode:!1,additionalTransfrom:0,pauseOnHover:!0,shouldResetAutoplay:!0,rewind:!1,rtl:!1,rewindWithAnimation:!1},A})(n.Component);return tc.default=p,tc}var Ju0;function UK0(){if(Ju0)return nA;Ju0=1,Object.defineProperty(nA,"__esModule",{value:!0});var a=BK0();return nA.default=a.default,nA}var qF,eh0;function zK0(){return eh0||(eh0=1,qF=UK0()),qF}var qK0=zK0();const GK0=g2(qK0),WK0=e.createContext({isInline:!1,requestNavigation:()=>{}}),du=()=>e.useContext(WK0),KK0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),e.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),GF=e.forwardRef((a,t)=>e.createElement(k,{ref:t,...a,weights:KK0}));GF.displayName="CaretLeftIcon";const dA=GF,YK0=Object.freeze(Object.defineProperty({__proto__:null,CaretLeft:dA,CaretLeftIcon:GF},Symbol.toStringTag,{value:"Module"})),QK0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),e.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),WF=e.forwardRef((a,t)=>e.createElement(k,{ref:t,...a,weights:QK0}));WF.displayName="CaretRightIcon";const vn=WF,XK0=Object.freeze(Object.defineProperty({__proto__:null,CaretRight:vn,CaretRightIcon:WF},Symbol.toStringTag,{value:"Module"})),JK0=({goToSlide:a,carouselState:t})=>{const{currentSlide:n,slidesToShow:r,totalItems:l}=t,i=!(n+r<l);return l<=r?T.jsx(T.Fragment,{}):T.jsxs("div",{className:"slide-button-group pt-2 flex flex-row justify-center gap-x-5",children:[T.jsx(f2,{circular:!0,surface:"chrome",disabled:n===0,onClick:()=>a(n-1),className:"slide-button-left",children:T.jsx(dA,{})}),T.jsx(f2,{circular:!0,surface:"chrome",disabled:i,onClick:()=>a(n+1),className:"slide-button-right",children:T.jsx(vn,{weight:"bold",size:20})})]})},eY0={goToSlide:()=>null,carouselState:{currentSlide:0,slidesToShow:3,totalItems:3}},tY0=a=>({lg:{breakpoint:{max:3e3,min:800},items:a?3:2},md:{breakpoint:{max:800,min:428},items:2},sm:{breakpoint:{max:428,min:0},items:1}}),aY0=a=>a?"grid grid-cols-1 min-[429px]:grid-cols-2 min-[801px]:grid-cols-3 gap-6 mt-4 pb-4":"grid grid-cols-1 min-[429px]:grid-cols-2 min-[801px]:grid-cols-2 gap-6 mt-4 pb-4",nY0=({children:a})=>{const{isInline:t}=du();return T.jsx("div",{className:aY0(t),children:a})},KF=({children:a,...t})=>{const{isInline:n}=du(),[r,l]=e.useState(!1);e.useEffect(()=>l(!0),[]);const i=r?GK0:nY0;return T.jsx(i,{responsive:tY0(n),itemClass:"pr-6",className:"-m-3 p-3 py-8",renderButtonGroupOutside:!0,renderArrowsWhenDisabled:!1,showDots:!1,arrows:!1,swipeable:!0,draggable:!0,customButtonGroup:T.jsx(JK0,{...eY0}),...t,children:a||[]})},rY0=({person:a})=>T.jsxs("div",{className:"flex flex-row items-center gap-x-2 pb-2",children:[T.jsx(Xm,{src:a?.photo?.uri,initials:(a?.firstName||"").charAt(0)+(a?.lastName||"").charAt(0),className:"size-8"}),T.jsxs(ge,{as:"h5",children:[a?.firstName," ",a?.lastName]})]});xe(`
|
|
293
293
|
fragment ByLineFragment on Person {
|
|
294
294
|
id
|
|
295
295
|
firstName
|