news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4747],{689:(e,t,r)=>{"use strict";r.d(t,{MenuHeading:()=>l});var n=r(95155),a=r(92031),i=r(72107),o=r(48451);let l=e=>{let{children:t,className:r,truncate:l=!1,typographyVariant:s="caption2",...u}=e;return(0,n.jsx)(a.JU,{asChild:!0,className:(0,o.y)({className:r}),...u,"data-ids":"MenuHeading",children:(0,n.jsx)(i.o5,{disableColorScheme:!0,maxLines:l?1:void 0,variant:s,children:t})})};l.displayName="MenuHeading"},1335:(e,t,r)=>{"use strict";r.d(t,{u:()=>a});var n=r(9064);let a={test:(0,r(55920).$)("#"),parse:function(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}},transform:n.B.transform}},1773:(e,t,r)=>{e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,(function(t){return e[t]}).bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t){e.exports=r(38637)},function(e,t){e.exports=r(12115)},function(e,t,r){"use strict";r.r(t);var n=r(1),a=r(0),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},l=0,s=n.forwardRef(function(e,t){var r=e.title,a=void 0===r?null:r,s=e.description,u=void 0===s?null:s,c=e.size,d=void 0===c?null:c,f=e.color,h=void 0===f?"currentColor":f,p=e.horizontal,m=void 0===p?null:p,v=e.vertical,g=void 0===v?null:v,y=e.rotate,x=void 0===y?null:y,b=e.spin,w=void 0===b?null:b,k=e.style,S=void 0===k?{}:k,C=e.children,E=o(e,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);l++;var j,T=null!==w&&w,A=n.Children.map(C,function(e){!0!==T&&(T=!0===(null===w?e.props.spin:w));var t=e.props.size;"number"==typeof d&&"number"==typeof e.props.size&&(t=e.props.size/d);var r={size:t,color:null===h?e.props.color:h,horizontal:null===m?e.props.horizontal:m,vertical:null===g?e.props.vertical:g,rotate:null===x?e.props.rotate:x,spin:null===w?e.props.spin:w,inStack:!0};return n.cloneElement(e,r)});null!==d&&(S.width="string"==typeof d?d:1.5*d+"rem");var R,P="stack_labelledby_"+l,N="stack_describedby_"+l;if(a)j=u?P+" "+N:P;else if(R="presentation",u)throw Error("title attribute required when description is set");return n.createElement("svg",i({ref:t,viewBox:"0 0 24 24",style:S,role:R,"aria-labelledby":j},E),a&&n.createElement("title",{id:P},a),u&&n.createElement("desc",{id:N},u),T&&n.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }","@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"),A)});s.displayName="Stack",s.propTypes={size:a.oneOfType([a.number,a.string]),color:a.string,horizontal:a.bool,vertical:a.bool,rotate:a.number,spin:a.oneOfType([a.bool,a.number]),children:a.oneOfType([a.arrayOf(a.node),a.node]).isRequired,className:a.string,style:a.object},s.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null},r.d(t,"Icon",function(){return f}),r.d(t,"Stack",function(){return s});var u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},d=0,f=n.forwardRef(function(e,t){var r=e.path,a=e.id,i=void 0===a?++d:a,o=e.title,l=void 0===o?null:o,s=e.description,f=void 0===s?null:s,h=e.size,p=void 0===h?null:h,m=e.color,v=void 0===m?"currentColor":m,g=e.horizontal,y=void 0!==g&&g,x=e.vertical,b=void 0!==x&&x,w=e.rotate,k=void 0===w?0:w,S=e.spin,C=void 0!==S&&S,E=e.style,j=void 0===E?{}:E,T=e.inStack,A=void 0!==T&&T,R=c(e,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),P={},N=[];null!==p&&(A?N.push("scale("+p+")"):(j.width="string"==typeof p?p:1.5*p+"rem",j.height=j.width)),y&&N.push("scaleX(-1)"),b&&N.push("scaleY(-1)"),0!==k&&N.push("rotate("+k+"deg)"),null!==v&&(P.fill=v);var M=n.createElement("path",u({d:r,style:P},A?R:{})),O=M;N.length>0&&(j.transform=N.join(" "),j.transformOrigin="center",A&&(O=n.createElement("g",{style:j},M,n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var D,L=O,I=!0===C||"number"!=typeof C?2:C,V=!A&&(y||b);if(I<0&&(V=!V),C&&(L=n.createElement("g",{style:{animation:"spin"+(V?"-inverse":"")+" linear "+Math.abs(I)+"s infinite",transformOrigin:"center"}},O,!(y||b||0!==k)&&n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),A)return L;var F,_="icon_labelledby_"+i,z="icon_describedby_"+i;if(l)D=f?_+" "+z:_;else if(F="presentation",f)throw Error("title attribute required when description is set");return n.createElement("svg",u({ref:t,viewBox:"0 0 24 24",style:j,role:F,"aria-labelledby":D},R),l&&n.createElement("title",{id:_},l),f&&n.createElement("desc",{id:z},f),!A&&C&&(V?n.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):n.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),L)});f.displayName="Icon",f.propTypes={path:a.string.isRequired,size:a.oneOfType([a.number,a.string]),color:a.string,horizontal:a.bool,vertical:a.bool,rotate:a.number,spin:a.oneOfType([a.bool,a.number]),style:a.object,inStack:a.bool,className:a.string},f.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=f}])},2279:(e,t,r)=>{"use strict";r.d(t,{h:()=>s,s:()=>l});var n=r(12115),a=r(47650),i=r(77280),o=r(95155),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.T)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:a,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(a?r:t,{...i,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function s(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}},2668:(e,t,r)=>{"use strict";r.d(t,{JU:()=>eO,LM:()=>eN,PP:()=>eI,UC:()=>eP,WT:()=>eA,YJ:()=>eM,ZL:()=>eR,bL:()=>ej,l9:()=>eT,p4:()=>eL,q7:()=>eD,wn:()=>eV});var n=r(12115),a=r(47650),i=r(12269),o=r(65749),l=r(66896),s=r(73595),u=r(66801),c=r(98303),d=r(68991),f=r(6507),h=r(25003),p=r(74539),m=r(28635),v=r(52090),g=r(2279),y=r(77280),x=r(62067),b=r(46135),w=r(64730),k=r(21629),S=r(50190),C=r(29385),E=r(7156),j=r(95155),T=[" ","Enter","ArrowUp","ArrowDown"],A=[" ","Enter"],R="Select",[P,N,M]=(0,l.N)(R),[O]=(0,u.A)(R,[M,m.Bk]),D=(0,m.Bk)(),[L,I]=O(R),[V,F]=O(R),_=e=>{let{__scopeSelect:t,children:r,open:a,defaultOpen:i,onOpenChange:o,value:l,defaultValue:s,onValueChange:u,dir:d,name:f,autoComplete:h,disabled:v,required:g,form:y}=e,x=D(t),[w,k]=n.useState(null),[S,C]=n.useState(null),[E,T]=n.useState(!1),A=(0,c.j)(d),[N,M]=(0,b.i)({prop:a,defaultProp:null!=i&&i,onChange:o,caller:R}),[O,I]=(0,b.i)({prop:l,defaultProp:s,onChange:u,caller:R}),F=n.useRef(null),_=!w||y||!!w.closest("form"),[z,B]=n.useState(new Set),H=Array.from(z).map(e=>e.props.value).join(";");return(0,j.jsx)(m.bL,{...x,children:(0,j.jsxs)(L,{required:g,scope:t,trigger:w,onTriggerChange:k,valueNode:S,onValueNodeChange:C,valueNodeHasChildren:E,onValueNodeHasChildrenChange:T,contentId:(0,p.B)(),value:O,onValueChange:I,open:N,onOpenChange:M,dir:A,triggerPointerDownPosRef:F,disabled:v,children:[(0,j.jsx)(P.Provider,{scope:t,children:(0,j.jsx)(V,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{B(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{B(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),_?(0,j.jsxs)(ek,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:h,value:O,onChange:e=>I(e.target.value),disabled:v,form:y,children:[void 0===O?(0,j.jsx)("option",{value:""}):null,Array.from(z)]},H):null]})})};_.displayName=R;var z="SelectTrigger",B=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:a=!1,...i}=e,l=D(r),u=I(z,r),c=u.disabled||a,d=(0,s.s)(t,u.onTriggerChange),f=N(r),h=n.useRef("touch"),[p,v,y]=eC(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eE(t,e,r);void 0!==n&&u.onValueChange(n.value)}),x=e=>{c||(u.onOpenChange(!0),y()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,j.jsx)(m.Mz,{asChild:!0,...l,children:(0,j.jsx)(g.s.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eS(u.value)?"":void 0,...i,ref:d,onClick:(0,o.m)(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==h.current&&x(e)}),onPointerDown:(0,o.m)(i.onPointerDown,e=>{h.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,o.m)(i.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&T.includes(e.key)&&(x(),e.preventDefault())})})})});B.displayName=z;var H="SelectValue",U=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,children:i,placeholder:o="",...l}=e,u=I(H,r),{onValueNodeHasChildrenChange:c}=u,d=void 0!==i,f=(0,s.s)(t,u.onValueNodeChange);return(0,w.N)(()=>{c(d)},[c,d]),(0,j.jsx)(g.s.span,{...l,ref:f,style:{pointerEvents:"none"},children:eS(u.value)?(0,j.jsx)(j.Fragment,{children:o}):i})});U.displayName=H,n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...a}=e;return(0,j.jsx)(g.s.span,{"aria-hidden":!0,...a,ref:t,children:n||"▼"})}).displayName="SelectIcon";var W=e=>(0,j.jsx)(v.Z,{asChild:!0,...e});W.displayName="SelectPortal";var K="SelectContent",q=n.forwardRef((e,t)=>{let r=I(K,e.__scopeSelect),[i,o]=n.useState();return((0,w.N)(()=>{o(new DocumentFragment)},[]),r.open)?(0,j.jsx)(X,{...e,ref:t}):i?a.createPortal((0,j.jsx)($,{scope:e.__scopeSelect,children:(0,j.jsx)(P.Slot,{scope:e.__scopeSelect,children:(0,j.jsx)("div",{children:e.children})})}),i):null});q.displayName=K;var[$,G]=O(K),Y=(0,y.T)("SelectContent.RemoveScroll"),X=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:u,side:c,sideOffset:p,align:m,alignOffset:v,arrowPadding:g,collisionBoundary:y,collisionPadding:x,sticky:b,hideWhenDetached:w,avoidCollisions:k,...S}=e,T=I(K,r),[A,R]=n.useState(null),[P,M]=n.useState(null),O=(0,s.s)(t,e=>R(e)),[D,L]=n.useState(null),[V,F]=n.useState(null),_=N(r),[z,B]=n.useState(!1),H=n.useRef(!1);n.useEffect(()=>{if(A)return(0,C.E)(A)},[A]),(0,f.O)();let U=n.useCallback(e=>{let[t,...r]=_().map(e=>e.ref.current),[n]=r.slice(-1),a=document.activeElement;for(let r of e)if(r===a||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&P&&(P.scrollTop=0),r===n&&P&&(P.scrollTop=P.scrollHeight),null==r||r.focus(),document.activeElement!==a))return},[_,P]),W=n.useCallback(()=>U([D,A]),[U,D,A]);n.useEffect(()=>{z&&W()},[z,W]);let{onOpenChange:q,triggerPointerDownPosRef:G}=T;n.useEffect(()=>{if(A){let e={x:0,y:0},t=t=>{var r,n,a,i;e={x:Math.abs(Math.round(t.pageX)-(null!=(a=null==(r=G.current)?void 0:r.x)?a:0)),y:Math.abs(Math.round(t.pageY)-(null!=(i=null==(n=G.current)?void 0:n.y)?i:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():A.contains(r.target)||q(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[A,q,G]),n.useEffect(()=>{let e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[X,J]=eC(e=>{let t=_().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eE(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==T.value&&T.value===t||n)&&(L(e),n&&(H.current=!0))},[T.value]),et=n.useCallback(()=>null==A?void 0:A.focus(),[A]),er=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==T.value&&T.value===t||n)&&F(e)},[T.value]),en="popper"===a?Q:Z,ea=en===Q?{side:c,sideOffset:p,align:m,alignOffset:v,arrowPadding:g,collisionBoundary:y,collisionPadding:x,sticky:b,hideWhenDetached:w,avoidCollisions:k}:{};return(0,j.jsx)($,{scope:r,content:A,viewport:P,onViewportChange:M,itemRefCallback:ee,selectedItem:D,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:W,selectedItemText:V,position:a,isPositioned:z,searchRef:X,children:(0,j.jsx)(E.A,{as:Y,allowPinchZoom:!0,children:(0,j.jsx)(h.n,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,o.m)(i,e=>{var t;null==(t=T.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,j.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,j.jsx)(en,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault(),...S,...ea,onPlaced:()=>B(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:(0,o.m)(S.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=_().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})});X.displayName="SelectContentImpl";var Z=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:a,...o}=e,l=I(K,r),u=G(K,r),[c,d]=n.useState(null),[f,h]=n.useState(null),p=(0,s.s)(t,e=>h(e)),m=N(r),v=n.useRef(!1),y=n.useRef(!0),{viewport:x,selectedItem:b,selectedItemText:k,focusSelectedItem:S}=u,C=n.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&f&&x&&b&&k){let e=l.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=l.valueNode.getBoundingClientRect(),n=k.getBoundingClientRect();if("rtl"!==l.dir){let a=n.left-t.left,o=r.left-a,l=e.left-o,s=e.width+l,u=Math.max(s,t.width),d=window.innerWidth-10,f=(0,i.q)(o,[10,Math.max(10,d-u)]);c.style.minWidth=s+"px",c.style.left=f+"px"}else{let a=t.right-n.right,o=window.innerWidth-r.right-a,l=window.innerWidth-e.right-o,s=e.width+l,u=Math.max(s,t.width),d=window.innerWidth-10,f=(0,i.q)(o,[10,Math.max(10,d-u)]);c.style.minWidth=s+"px",c.style.right=f+"px"}let o=m(),s=window.innerHeight-20,u=x.scrollHeight,d=window.getComputedStyle(f),h=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),y=h+p+u+parseInt(d.paddingBottom,10)+g,w=Math.min(5*b.offsetHeight,y),S=window.getComputedStyle(x),C=parseInt(S.paddingTop,10),E=parseInt(S.paddingBottom,10),j=e.top+e.height/2-10,T=b.offsetHeight/2,A=h+p+(b.offsetTop+T);if(A<=j){let e=o.length>0&&b===o[o.length-1].ref.current;c.style.bottom="0px";let t=Math.max(s-j,T+(e?E:0)+(f.clientHeight-x.offsetTop-x.offsetHeight)+g);c.style.height=A+t+"px"}else{let e=o.length>0&&b===o[0].ref.current;c.style.top="0px";let t=Math.max(j,h+x.offsetTop+(e?C:0)+T);c.style.height=t+(y-A)+"px",x.scrollTop=A-j+x.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=w+"px",c.style.maxHeight=s+"px",null==a||a(),requestAnimationFrame(()=>v.current=!0)}},[m,l.trigger,l.valueNode,c,f,x,b,k,l.dir,a]);(0,w.N)(()=>C(),[C]);let[E,T]=n.useState();(0,w.N)(()=>{f&&T(window.getComputedStyle(f).zIndex)},[f]);let A=n.useCallback(e=>{e&&!0===y.current&&(C(),null==S||S(),y.current=!1)},[C,S]);return(0,j.jsx)(J,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:A,children:(0,j.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,j.jsx)(g.s.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Z.displayName="SelectItemAlignedPosition";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:a=10,...i}=e,o=D(r);return(0,j.jsx)(m.UC,{...o,...i,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[J,ee]=O(K,{}),et="SelectViewport",er=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:a,...i}=e,l=G(et,r),u=ee(et,r),c=(0,s.s)(t,l.onViewportChange),d=n.useRef(0);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,j.jsx)(P.Slot,{scope:r,children:(0,j.jsx)(g.s.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,o.m)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,a=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(a0?l:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});er.displayName=et;var en="SelectGroup",[ea,ei]=O(en),eo=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=(0,p.B)();return(0,j.jsx)(ea,{scope:r,id:a,children:(0,j.jsx)(g.s.div,{role:"group","aria-labelledby":a,...n,ref:t})})});eo.displayName=en;var el="SelectLabel",es=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=ei(el,r);return(0,j.jsx)(g.s.div,{id:a.id,...n,ref:t})});es.displayName=el;var eu="SelectItem",[ec,ed]=O(eu),ef=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:a,disabled:i=!1,textValue:l,...u}=e,c=I(eu,r),d=G(eu,r),f=c.value===a,[h,m]=n.useState(null!=l?l:""),[v,y]=n.useState(!1),x=(0,s.s)(t,e=>{var t;return null==(t=d.itemRefCallback)?void 0:t.call(d,e,a,i)}),b=(0,p.B)(),w=n.useRef("touch"),k=()=>{i||(c.onValueChange(a),c.onOpenChange(!1))};if(""===a)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,j.jsx)(ec,{scope:r,value:a,disabled:i,textId:b,isSelected:f,onItemTextChange:n.useCallback(e=>{m(t=>{var r;return t||(null!=(r=null==e?void 0:e.textContent)?r:"").trim()})},[]),children:(0,j.jsx)(P.ItemSlot,{scope:r,value:a,disabled:i,textValue:h,children:(0,j.jsx)(g.s.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:x,onFocus:(0,o.m)(u.onFocus,()=>y(!0)),onBlur:(0,o.m)(u.onBlur,()=>y(!1)),onClick:(0,o.m)(u.onClick,()=>{"mouse"!==w.current&&k()}),onPointerUp:(0,o.m)(u.onPointerUp,()=>{"mouse"===w.current&&k()}),onPointerDown:(0,o.m)(u.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:(0,o.m)(u.onPointerMove,e=>{if(w.current=e.pointerType,i){var t;null==(t=d.onItemLeave)||t.call(d)}else"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,o.m)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=d.onItemLeave)||t.call(d)}}),onKeyDown:(0,o.m)(u.onKeyDown,e=>{var t;((null==(t=d.searchRef)?void 0:t.current)===""||" "!==e.key)&&(A.includes(e.key)&&k()," "===e.key&&e.preventDefault())})})})})});ef.displayName=eu;var eh="SelectItemText",ep=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:i,style:o,...l}=e,u=I(eh,r),c=G(eh,r),d=ed(eh,r),f=F(eh,r),[h,p]=n.useState(null),m=(0,s.s)(t,e=>p(e),d.onItemTextChange,e=>{var t;return null==(t=c.itemTextRefCallback)?void 0:t.call(c,e,d.value,d.disabled)}),v=null==h?void 0:h.textContent,y=n.useMemo(()=>(0,j.jsx)("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:x,onNativeOptionRemove:b}=f;return(0,w.N)(()=>(x(y),()=>b(y)),[x,b,y]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(g.s.span,{id:d.textId,...l,ref:m}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?a.createPortal(l.children,u.valueNode):null]})});ep.displayName=eh;var em="SelectItemIndicator";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ed(em,r).isSelected?(0,j.jsx)(g.s.span,{"aria-hidden":!0,...n,ref:t}):null}).displayName=em;var ev="SelectScrollUpButton",eg=n.forwardRef((e,t)=>{let r=G(ev,e.__scopeSelect),a=ee(ev,e.__scopeSelect),[i,o]=n.useState(!1),l=(0,s.s)(t,a.onScrollButtonChange);return(0,w.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){o(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),i?(0,j.jsx)(eb,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eg.displayName=ev;var ey="SelectScrollDownButton",ex=n.forwardRef((e,t)=>{let r=G(ey,e.__scopeSelect),a=ee(ey,e.__scopeSelect),[i,o]=n.useState(!1),l=(0,s.s)(t,a.onScrollButtonChange);return(0,w.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),i?(0,j.jsx)(eb,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=ey;var eb=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:a,...i}=e,l=G("SelectScrollButton",r),s=n.useRef(null),u=N(r),c=n.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,w.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,j.jsx)(g.s.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,o.m)(i.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(a,50))}),onPointerMove:(0,o.m)(i.onPointerMove,()=>{var e;null==(e=l.onItemLeave)||e.call(l),null===s.current&&(s.current=window.setInterval(a,50))}),onPointerLeave:(0,o.m)(i.onPointerLeave,()=>{c()})})});n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,j.jsx)(g.s.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var ew="SelectArrow";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=D(r),i=I(ew,r),o=G(ew,r);return i.open&&"popper"===o.position?(0,j.jsx)(m.i3,{...a,...n,ref:t}):null}).displayName=ew;var ek=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:a,...i}=e,o=n.useRef(null),l=(0,s.s)(t,o),u=(0,k.Z)(a);return n.useEffect(()=>{let e=o.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==a&&t){let r=new Event("change",{bubbles:!0});t.call(e,a),e.dispatchEvent(r)}},[u,a]),(0,j.jsx)(g.s.select,{...i,style:{...S.Qg,...i.style},ref:l,defaultValue:a})});function eS(e){return""===e||void 0===e}function eC(e){let t=(0,x.c)(e),r=n.useRef(""),a=n.useRef(0),i=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(a.current),""!==t&&(a.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),o=n.useCallback(()=>{r.current="",window.clearTimeout(a.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(a.current),[]),[r,i,o]}function eE(e,t,r){var n,a;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,l=(n=e,a=Math.max(o,0),n.map((e,t)=>n[(a+t)%n.length]));1===i.length&&(l=l.filter(e=>e!==r));let s=l.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==r?s:void 0}ek.displayName="SelectBubbleInput";var ej=_,eT=B,eA=U,eR=W,eP=q,eN=er,eM=eo,eO=es,eD=ef,eL=ep,eI=eg,eV=ex},4272:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var n=r(1335),a=r(18476),i=r(9064);let o={test:e=>i.B.test(e)||n.u.test(e)||a.V.test(e),parse:e=>i.B.test(e)?i.B.parse(e):a.V.test(e)?a.V.parse(e):n.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?i.B.transform(e):a.V.transform(e),getAnimatableNone:e=>{let t=o.parse(e);return t.alpha=0,o.transform(t)}}},6168:(e,t,r)=>{"use strict";r.d(t,{K:()=>o});var n=r(95155),a=r(12115);let i=(0,r(74466).F)(["aspect-square","duration-200","ease-in-out","focus-visible:dark:ring-offset-neutral-1","focus-visible:dark:ring-secondary-3","focus-visible:outline-hidden","focus-visible:ring-2","focus-visible:ring-offset-2","focus-visible:ring-offset-neutral-8","focus-visible:ring-secondary-2","inline-flex","items-center","justify-center","m-0","motion-reduce:transition-none","transition-colors"],{compoundVariants:[{class:["bg-primary-2","dark:aria-disabled:text-neutral-8/75","aria-disabled:bg-primary-1/50","aria-disabled:text-neutral-8","hover:bg-primary-1","text-neutral-8","visited:text-neutral-8"],colorScheme:"primary-2",variant:"contained"},{class:["border-primary-2","aria-disabled:border-primary-2/50","aria-disabled:text-primary-2/50","hover:bg-primary-3/20","text-primary-2","visited:text-primary-2"],colorScheme:"primary-2",variant:"outlined"},{class:["bg-secondary-1","dark:aria-disabled:text-neutral-8/75","aria-disabled:bg-secondary-1/50","aria-disabled:text-neutral-8","hover:bg-secondary-1/90","text-neutral-8","visited:text-neutral-8"],colorScheme:"secondary-1",variant:"contained"},{class:["border-secondary-1","aria-disabled:border-secondary-1/50","aria-disabled:text-secondary-1/50","hover:bg-secondary-3/20","text-secondary-1","visited:text-secondary-1"],colorScheme:"secondary-1",variant:"outlined"},{class:["bg-neutral-2","dark:bg-neutral-6","dark:aria-disabled:bg-neutral-6/50","dark:aria-disabled:text-neutral-2/90","dark:hover:bg-neutral-8","dark:text-neutral-2","dark:visited:text-neutral-2","aria-disabled:bg-neutral-2/50","aria-disabled:text-neutral-6","hover:bg-neutral-3","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-2",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-2","aria-disabled:bg-neutral-2/50","aria-disabled:text-neutral-6","hover:bg-neutral-3","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-2",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-2","dark:border-neutral-6","dark:aria-disabled:border-neutral-6/50","dark:aria-disabled:text-neutral-6/50","dark:hover:bg-neutral-6/20","dark:text-neutral-6","dark:visited:text-neutral-6","aria-disabled:border-neutral-2/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-6","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-2",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-2","aria-disabled:border-neutral-2/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-6","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-2",ignoreTheme:!0,variant:"outlined"},{class:["bg-neutral-3","dark:bg-neutral-8","dark:aria-disabled:bg-neutral-8/50","dark:aria-disabled:text-neutral-3/90","dark:hover:bg-neutral-6","dark:text-neutral-3","dark:visited:text-neutral-3","aria-disabled:bg-neutral-3/50","aria-disabled:text-neutral-8","hover:bg-neutral-2","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-3",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-3","aria-disabled:bg-neutral-3/50","aria-disabled:text-neutral-8","hover:bg-neutral-2","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-3",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-3","dark:border-neutral-8","dark:aria-disabled:border-neutral-8/50","dark:aria-disabled:text-neutral-8/50","dark:hover:bg-neutral-8/20","dark:text-neutral-8","dark:visited:text-neutral-8","aria-disabled:border-neutral-3/50","aria-disabled:text-neutral-3/50","hover:bg-neutral-6","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-3",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-3","aria-disabled:border-neutral-3/50","aria-disabled:text-neutral-3/50","hover:bg-neutral-6","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-3",ignoreTheme:!0,variant:"outlined"},{class:["bg-neutral-6","dark:bg-neutral-2","dark:aria-disabled:bg-neutral-2/50","dark:aria-disabled:text-neutral-6/50","dark:hover:bg-neutral-3","dark:text-neutral-6","dark:visited:text-neutral-6","aria-disabled:bg-neutral-6/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-5","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-6",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-6","aria-disabled:bg-neutral-6/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-5","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-6",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-6","dark:border-neutral-2","dark:aria-disabled:border-neutral-2/50","dark:aria-disabled:text-neutral-2/50","dark:hover:bg-neutral-3","dark:text-neutral-2","dark:visited:text-neutral-2","aria-disabled:border-neutral-6/50","aria-disabled:text-neutral-6/50","hover:bg-neutral-8","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-6",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-6","aria-disabled:border-neutral-6/50","aria-disabled:text-neutral-6/50","hover:bg-neutral-8","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-6",ignoreTheme:!0,variant:"outlined"},{class:["bg-neutral-8","dark:bg-neutral-3","dark:aria-disabled:bg-neutral-3/50","dark:aria-disabled:text-neutral-8/70","dark:hover:bg-neutral-4","dark:outline-0","dark:shadow-none","dark:text-neutral-8","dark:visited:text-neutral-8","aria-disabled:bg-neutral-8/50","aria-disabled:outline-neutral-6/70","aria-disabled:shadow-[0px_4px_20px_0px_rgba(0,0,0,0.03)]","aria-disabled:text-neutral-3/70","hover:bg-neutral-6","outline-1","outline-neutral-6","shadow-[0px_4px_20px_0px_rgba(0,0,0,0.06)]","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-8",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-8","aria-disabled:bg-neutral-8/50","aria-disabled:outline-neutral-6/70","aria-disabled:shadow-[0_4px_20px_0_rgba(0,0,0,0.03)]","aria-disabled:text-neutral-3/70","hover:bg-neutral-6","outline-1","outline-neutral-6","shadow-[0_4px_20px_0_rgba(0,0,0,0.06)]","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-8",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-8","dark:border-neutral-3","dark:aria-disabled:border-neutral-3/50","dark:aria-disabled:text-neutral-3/50","dark:hover:bg-neutral-8/20","dark:text-neutral-3","dark:visited:text-neutral-3","aria-disabled:border-neutral-8/50","aria-disabled:text-neutral-8/50","hover:bg-neutral-7","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-8",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-8","aria-disabled:border-neutral-8/50","aria-disabled:text-neutral-8/50","hover:bg-neutral-7","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-8",ignoreTheme:!0,variant:"outlined"},{class:["!from-neutral-3","dark:!from-neutral-8"],ripple:!0,variant:"outlined"},{class:["!from-neutral-3","dark:!from-neutral-8"],colorScheme:["neutral-6","neutral-8","transparent"],ripple:!0},{class:"p-[.2rem]",compact:!0,size:"small"},{class:"p-1.5",compact:!1,size:"small"},{class:"p-1.5",compact:!0,size:"medium"},{class:"p-2",compact:!1,size:"medium"},{class:"p-1.5",compact:!0,size:"large"},{class:"p-3",compact:!1,size:"large"}],defaultVariants:{colorScheme:"primary-2",disabled:!1,ripple:!0,rounded:!1,size:"medium",variant:"contained"},variants:{colorScheme:{"neutral-2":[],"neutral-3":[],"neutral-6":[],"neutral-8":[],"primary-2":[],"secondary-1":[],transparent:["bg-transparent","aria-disabled:opacity-50","dark:aria-disabled:opacity-50","hover:bg-neutral-1/25","dark:hover:bg-neutral-8/25"]},compact:{false:[],true:[]},disabled:{false:"cursor-pointer",true:"pointer-events-none"},ignoreTheme:{false:[],true:[]},ripple:{true:"ripple"},rounded:{false:"rounded-lg",true:"rounded-full"},size:{large:["max-h-12","max-w-12","min-h-12","min-w-12"],medium:["max-h-10","max-w-10","min-h-10","min-w-10"],small:["max-h-8","max-w-8","min-h-8","min-w-8"]},variant:{contained:["border-solid","border","border-transparent"],outlined:["bg-transparent","border-solid","border","aria-disabled:bg-transparent","aria-disabled:dark:bg-transparent","aria-disabled:hover:bg-transparent"]}}}),o=(0,a.forwardRef)(({as:e="button",children:t,className:r,colorScheme:a="primary-2",compact:o=!1,disabled:l=!1,ignoreTheme:s=!1,opacity:u=100,ripple:c=!0,rounded:d=!1,size:f="medium",variant:h="contained",...p},m)=>{let v=p.style||{};return u<100&&(v.opacity=.01*u),(0,n.jsx)(e,{"aria-disabled":l,className:i({className:r,colorScheme:a,compact:o,disabled:l,ignoreTheme:s,ripple:c,rounded:d,size:f,variant:h}),disabled:l,...p,"data-ids":"IconButton",ref:m,style:v,children:t})});o.displayName="IconButton"},6369:(e,t,r)=>{"use strict";r.d(t,{P:()=>aT});var n=r(12115);let a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(a),o=e=>180*e/Math.PI,l=e=>u(o(Math.atan2(e[1],e[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:l,rotateZ:l,skewX:e=>o(Math.atan(e[1])),skewY:e=>o(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},u=e=>((e%=360)<0&&(e+=360),e),c=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),d=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),f={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:c,scaleY:d,scale:e=>(c(e)+d(e))/2,rotateX:e=>u(o(Math.atan2(e[6],e[5]))),rotateY:e=>u(o(Math.atan2(-e[2],e[0]))),rotateZ:l,rotate:l,skewX:e=>o(Math.atan(e[4])),skewY:e=>o(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function h(e){return+!!e.includes("scale")}function p(e,t){let r,n;if(!e||"none"===e)return h(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(a)r=f,n=a;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=s,n=t}if(!n)return h(t);let i=r[t],o=n[1].split(",").map(m);return"function"==typeof i?i(o):o[i]}function m(e){return parseFloat(e.trim())}var v=r(78606);function g({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}var y=r(33210);function x(e){return void 0===e||1===e}function b({scale:e,scaleX:t,scaleY:r}){return!x(e)||!x(t)||!x(r)}function w(e){return b(e)||k(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function k(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function S(e,t,r,n,a){return void 0!==a&&(e=n+a*(e-n)),n+r*(e-n)+t}function C(e,t=0,r=1,n,a){e.min=S(e.min,t,r,n,a),e.max=S(e.max,t,r,n,a)}function E(e,{x:t,y:r}){C(e.x,t.translate,t.scale,t.originPoint),C(e.y,r.translate,r.scale,r.originPoint)}function j(e,t){e.min=e.min+t,e.max=e.max+t}function T(e,t,r,n,a=.5){let i=(0,y.k)(e.min,e.max,a);C(e,t,r,i,n)}function A(e,t){T(e.x,t.x,t.scaleX,t.scale,t.originX),T(e.y,t.y,t.scaleY,t.scale,t.originY)}function R(e,t){return g(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let P=new Set(["width","height","top","left","right","bottom",...a]);var N=r(57887),M=r(34158);let O=e=>t=>t.test(e),D=[N.ai,M.px,M.KN,M.uj,M.vw,M.vh,{test:e=>"auto"===e,parse:e=>e}],L=e=>D.find(O(e));var I=r(54542);let V=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),F=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,_=e=>e===N.ai||e===M.px,z=new Set(["x","y","z"]),B=a.filter(e=>!z.has(e)),H={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>p(t,"x"),y:(e,{transform:t})=>p(t,"y")};H.translateX=H.x,H.translateY=H.y;var U=r(69515);let W=new Set,K=!1,q=!1,$=!1;function G(){if(q){let e=Array.from(W).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return B.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}q=!1,K=!1,W.forEach(e=>e.complete($)),W.clear()}function Y(){W.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(q=!0)})}class X{constructor(e,t,r,n,a,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=a,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(W.add(this),K||(K=!0,U.Gt.read(Y),U.Gt.resolveKeyframes(G))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){let a=n?.get(),i=e[e.length-1];if(void 0!==a)e[0]=a;else if(r&&t){let n=r.readValue(t,i);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=i),n&&void 0===a&&n.set(e[0])}for(let t=1;t/^0[^.\s]+$/u.test(e);var Q=r(60010),J=r(30614);let ee=new Set(["brightness","contrast","saturate","opacity"]);function et(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(J.S)||[];if(!n)return e;let a=r.replace(n,""),i=+!!ee.has(t);return n!==r&&(i*=100),t+"("+i+a+")"}let er=/\b([a-z-]*)\(.*?\)/gu,en={...Q.f,getAnimatableNone:e=>{let t=e.match(er);return t?t.map(et).join(" "):e}};var ea=r(4272);let ei={...N.ai,transform:Math.round},eo={rotate:M.uj,rotateX:M.uj,rotateY:M.uj,rotateZ:M.uj,scale:N.hs,scaleX:N.hs,scaleY:N.hs,scaleZ:N.hs,skew:M.uj,skewX:M.uj,skewY:M.uj,distance:M.px,translateX:M.px,translateY:M.px,translateZ:M.px,x:M.px,y:M.px,z:M.px,perspective:M.px,transformPerspective:M.px,opacity:N.X4,originX:M.gQ,originY:M.gQ,originZ:M.px},el={borderWidth:M.px,borderTopWidth:M.px,borderRightWidth:M.px,borderBottomWidth:M.px,borderLeftWidth:M.px,borderRadius:M.px,radius:M.px,borderTopLeftRadius:M.px,borderTopRightRadius:M.px,borderBottomRightRadius:M.px,borderBottomLeftRadius:M.px,width:M.px,maxWidth:M.px,height:M.px,maxHeight:M.px,top:M.px,right:M.px,bottom:M.px,left:M.px,padding:M.px,paddingTop:M.px,paddingRight:M.px,paddingBottom:M.px,paddingLeft:M.px,margin:M.px,marginTop:M.px,marginRight:M.px,marginBottom:M.px,marginLeft:M.px,backgroundPositionX:M.px,backgroundPositionY:M.px,...eo,zIndex:ei,fillOpacity:N.X4,strokeOpacity:N.X4,numOctaves:ei},es={...el,color:ea.y,backgroundColor:ea.y,outlineColor:ea.y,fill:ea.y,stroke:ea.y,borderColor:ea.y,borderTopColor:ea.y,borderRightColor:ea.y,borderBottomColor:ea.y,borderLeftColor:ea.y,filter:en,WebkitFilter:en},eu=e=>es[e];function ec(e,t){let r=eu(e);return r!==en&&(r=Q.f),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let ed=new Set(["auto","none","0"]);class ef extends X{constructor(e,t,r,n,a){super(e,t,r,n,a,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let eh=e=>!!(e&&e.getVelocity);var ep=r(74261),em=r(60098);let ev=[...D,ea.y,Q.f],{schedule:eg}=(0,r(58437).I)(queueMicrotask,!1);var ey=r(75626);let ex={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},eb={};for(let e in ex)eb[e]={isEnabled:t=>ex[e].some(e=>!!t[e])};let ew=()=>({translate:0,scale:1,origin:0,originPoint:0}),ek=()=>({x:ew(),y:ew()}),eS=()=>({min:0,max:0}),eC=()=>({x:eS(),y:eS()});var eE=r(68972);let ej={current:null},eT={current:!1},eA=new WeakMap;function eR(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function eP(e){return"string"==typeof e||Array.isArray(e)}let eN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eM=["initial",...eN];function eO(e){return eR(e.animate)||eM.some(t=>eP(e[t]))}function eD(e){return!!(eO(e)||e.variants)}function eL(e){let t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function eI(e,t,r,n){if("function"==typeof t){let[a,i]=eL(n);t=t(void 0!==r?r:e.custom,a,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,i]=eL(n);t=t(void 0!==r?r:e.custom,a,i)}return t}let eV=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eF{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:a,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=X,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ep.k.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),eT.current||function(){if(eT.current=!0,eE.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ej.current=e.matches;e.addEventListener("change",t),t()}else ej.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ej.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,U.WG)(this.notifyUpdate),(0,U.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=i.has(e);n&&this.onBindTransform&&this.onBindTransform();let a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&U.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in eb){let t=eb[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):eC()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,em.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){if("string"==typeof r&&(V(r)||Z(r)))r=parseFloat(r);else{let n;n=r,!ev.find(O(n))&&Q.f.test(t)&&(r=ec(e,t))}this.setBaseTarget(e,eh(r)?r.get():r)}return eh(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=eI(this.props,r,this.presenceContext?.custom);n&&(t=n[e])}if(r&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||eh(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new ey.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){eg.render(this.render)}}class e_ extends eF{constructor(){super(...arguments),this.KeyframeResolver=ef}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eh(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let ez=(e,t)=>t&&"number"==typeof e?t.transform(e):e,eB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eH=a.length;function eU(e,t,r){let{style:n,vars:o,transformOrigin:l}=e,s=!1,u=!1;for(let e in t){let r=t[e];if(i.has(e)){s=!0;continue}if((0,v.j)(e)){o[e]=r;continue}{let t=ez(r,el[e]);e.startsWith("origin")?(u=!0,l[e]=t):n[e]=t}}if(!t.transform&&(s||r?n.transform=function(e,t,r){let n="",i=!0;for(let o=0;o{let{transform:r="none"}=getComputedStyle(e);return p(r,t)})(e,t);{let r=window.getComputedStyle(e),n=((0,v.j)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return R(e,t)}build(e,t,r){eU(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return e$(e,t,r)}}let eY=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eX={offset:"stroke-dashoffset",array:"stroke-dasharray"},eZ={offset:"strokeDashoffset",array:"strokeDasharray"};function eQ(e,{attrX:t,attrY:r,attrScale:n,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...l},s,u,c){if(eU(e,l,u),s){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==a&&function(e,t,r=1,n=0,a=!0){e.pathLength=1;let i=a?eX:eZ;e[i.offset]=M.px.transform(-n);let o=M.px.transform(t),l=M.px.transform(r);e[i.array]=`${o} ${l}`}(d,a,i,o,!1)}let eJ=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),e0=e=>"string"==typeof e&&"svg"===e.toLowerCase();function e1(e,t,r){let n=e$(e,t,r);for(let r in e)(eh(e[r])||eh(t[r]))&&(n[-1!==a.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}class e2 extends e_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eC}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(i.has(t)){let e=eu(t);return e&&e.default||0}return t=eJ.has(t)?t:eY(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return e1(e,t,r)}build(e,t,r){eQ(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){for(let r in eW(e,t,void 0,n),t.attrs)e.setAttribute(eJ.has(r)?r:eY(r),t.attrs[r])}mount(e){this.isSVGTag=e0(e.tagName),super.mount(e)}}let e5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function e3(e){if("string"!=typeof e||e.includes("-"));else if(e5.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var e6=r(95155),e4=r(90869);let e7=(0,n.createContext)({strict:!1});var e8=r(51508);let e9=(0,n.createContext)({});function te(e){return Array.isArray(e)?e.join(" "):e}let tt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tr(e,t,r){for(let n in t)eh(t[n])||eq(n,r)||(e[n]=t[n])}let tn=()=>({...tt(),attrs:{}}),ta=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ti(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ta.has(e)}let to=e=>!ti(e);try{!function(e){"function"==typeof e&&(to=t=>t.startsWith("on")?!ti(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}var tl=r(80845),ts=r(82885);function tu(e){return eh(e)?e.get():e}let tc=e=>(t,r)=>{let a=(0,n.useContext)(e9),i=(0,n.useContext)(tl.t),o=()=>(function(e,t,r,n){let{scrapeMotionValuesFromProps:a,createRenderState:i}=e;return{latestValues:function(e,t,r,n){let a={},i=n(e,{});for(let e in i)a[e]=tu(i[e]);let{initial:o,animate:l}=e,s=eO(e),u=eD(e);t&&u&&!s&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===l&&(l=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===o)?l:o;if(d&&"boolean"!=typeof d&&!eR(d)){let t=Array.isArray(d)?d:[d];for(let r=0;r1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;i&&function(e){for(let t in e)eb[t]={...eb[t],...e[t]}}(i);let l=e3(e)?tf:td;function s(t,r){var i;let s,u={...(0,n.useContext)(e8.Q),...t,layoutId:function(e){let{layoutId:t}=e,r=(0,n.useContext)(e4.L).id;return r&&void 0!==t?r+"-"+t:t}(t)},{isStatic:c}=u,d=function(e){let{initial:t,animate:r}=function(e,t){if(eO(e)){let{initial:t,animate:r}=e;return{initial:!1===t||eP(t)?t:void 0,animate:eP(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,n.useContext)(e9));return(0,n.useMemo)(()=>({initial:t,animate:r}),[te(t),te(r)])}(t),f=l(t,c);if(!c&&eE.B){(0,n.useContext)(e7).strict;let t=function(e){let{drag:t,layout:r}=eb;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);s=t.MeasureLayout,d.visualElement=function(e,t,r,a,i){var o,l,s,u;let{visualElement:c}=(0,n.useContext)(e9),d=(0,n.useContext)(e7),f=(0,n.useContext)(tl.t),h=(0,n.useContext)(e8.Q).reducedMotion,p=(0,n.useRef)(null);a=a||d.renderer,!p.current&&a&&(p.current=a(e,{visualState:t,parent:c,props:r,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:h}));let m=p.current,v=(0,n.useContext)(tv);m&&!m.projection&&i&&("html"===m.type||"svg"===m.type)&&function(e,t,r,n){let{layoutId:a,layout:i,drag:o,dragConstraints:l,layoutScroll:s,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||l&&tp(l),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:s,layoutRoot:u})}(p.current,r,i,v);let g=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{m&&g.current&&m.update(r,f)});let y=r[tm],x=(0,n.useRef)(!!y&&!(null==(o=(l=window).MotionHandoffIsComplete)?void 0:o.call(l,y))&&(null==(s=(u=window).MotionHasOptimisedAnimation)?void 0:s.call(u,y)));return(0,tg.E)(()=>{m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),(0,n.useEffect)(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var e,t;null==(e=(t=window).MotionHandoffMarkAsComplete)||e.call(t,y)}),x.current=!1),m.enteringChildren=void 0)}),m}(e,f,u,o,t.ProjectionNode)}return(0,e6.jsxs)(e9.Provider,{value:d,children:[s&&d.visualElement?(0,e6.jsx)(s,{visualElement:d.visualElement,...u}):null,function(e,t,r,a,i){let{latestValues:o}=a,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=(e3(e)?function(e,t,r,a){let i=(0,n.useMemo)(()=>{let r=tn();return eQ(r,t,e0(a),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};tr(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r={},a=function(e,t){let r=e.style||{},a={};return tr(a,r,e),Object.assign(a,function(e,t){let{transformTemplate:r}=e;return(0,n.useMemo)(()=>{let e=tt();return eU(e,t,r),Object.assign({},e.vars,e.style)},[t])}(e,t)),a}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r})(t,o,i,e),u=function(e,t,r){let n={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&(to(a)||!0===r&&ti(a)||!t&&!ti(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}(t,"string"==typeof e,l),c=e!==n.Fragment?{...u,...s,ref:r}:{},{children:d}=t,f=(0,n.useMemo)(()=>eh(d)?d.get():d,[d]);return(0,n.createElement)(e,{...c,children:f})}(e,t,(i=d.visualElement,(0,n.useCallback)(e=>{e&&f.onMount&&f.onMount(e),i&&(e?i.mount(e):i.unmount()),r&&("function"==typeof r?r(e):tp(r)&&(r.current=e))},[i])),f,c,a)]})}s.displayName="motion.".concat("string"==typeof e?e:"create(".concat(null!=(r=null!=(t=e.displayName)?t:e.name)?r:"",")"));let u=(0,n.forwardRef)(s);return u[th]=e,u}function tx(e,t,r){let n=e.getProps();return eI(n,t,void 0!==r?r:n.custom,e)}function tb(e,t){return e?.[t]??e?.default??e}let tw=e=>Array.isArray(e);var tk=r(23387);function tS(e,t){let r=e.getValue("willChange");if(eh(r)&&r.add)return r.add(t);if(!r&&tk.W.WillChange){let r=new tk.W.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function tC(e){e.duration=0,e.type="keyframes"}var tE=r(53191),tj=r(53678);let tT=e=>1e3*e,tA={layout:0,mainThread:0,waapi:0};var tR=r(26087);let tP=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>U.Gt.update(t,e),stop:()=>(0,U.WG)(t),now:()=>U.uv.isProcessing?U.uv.timestamp:ep.k.now()}},tN=(e,t,r=10)=>{let n="",a=Math.max(Math.round(t/r),2);for(let t=0;t=2e4?1/0:t}var tO=r(62923);function tD(e,t,r){let n=Math.max(t-5,0);return(0,tO.f)(r-e(n),t-n)}let tL={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tI(e,t){return e*Math.sqrt(1-t*t)}let tV=["duration","bounce"],tF=["stiffness","damping","mass"];function t_(e,t){return t.some(t=>void 0!==e[t])}function tz(e=tL.visualDuration,t=tL.bounce){let r,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:i}=n,o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],s={done:!1,value:o},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=function(e){let t={velocity:tL.velocity,stiffness:tL.stiffness,damping:tL.damping,mass:tL.mass,isResolvedFromDuration:!1,...e};if(!t_(e,tF)&&t_(e,tV))if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,a=2*(0,tj.q)(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:tL.mass,stiffness:n,damping:a}}else{let r=function({duration:e=tL.duration,bounce:t=tL.bounce,velocity:r=tL.velocity,mass:n=tL.mass}){let a,i;(0,I.$)(e<=tT(tL.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=(0,tj.q)(tL.minDamping,tL.maxDamping,o),e=(0,tj.q)(tL.minDuration,tL.maxDuration,e/1e3),o<1?(a=t=>{let n=t*o,a=n*e;return .001-(n-r)/tI(t,o)*Math.exp(-a)},i=t=>{let n=t*o*e,i=Math.pow(o,2)*Math.pow(t,2)*e,l=Math.exp(-n),s=tI(Math.pow(t,2),o);return(n*r+r-i)*l*(-a(t)+.001>0?-1:1)/s}):(a=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),i=t=>e*e*(r-t)*Math.exp(-t*e));let l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(a,i,5/e);if(e=tT(e),isNaN(l))return{stiffness:tL.stiffness,damping:tL.damping,duration:e};{let t=Math.pow(l,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:tL.mass}).isResolvedFromDuration=!0}return t}({...n,velocity:-((n.velocity||0)/1e3)}),m=h||0,v=c/(2*Math.sqrt(u*d)),g=l-o,y=Math.sqrt(u/d)/1e3,x=5>Math.abs(g);if(a||(a=x?tL.restSpeed.granular:tL.restSpeed.default),i||(i=x?tL.restDelta.granular:tL.restDelta.default),v<1){let e=tI(y,v);r=t=>l-Math.exp(-v*y*t)*((m+v*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===v)r=e=>l-Math.exp(-y*e)*(g+(m+y*g)*e);else{let e=y*Math.sqrt(v*v-1);r=t=>{let r=Math.exp(-v*y*t),n=Math.min(e*t,300);return l-r*((m+v*y*g)*Math.sinh(n)+e*g*Math.cosh(n))/e}}let b={calculatedDuration:p&&f||null,next:e=>{let t=r(e);if(p)s.done=e>=f;else{let n=0===e?m:0;v<1&&(n=0===e?tT(m):tD(r,e,t));let o=Math.abs(l-t)<=i;s.done=Math.abs(n)<=a&&o}return s.value=s.done?l:t,s},toString:()=>{let e=Math.min(tM(b),2e4),t=tN(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function tB({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:s,restDelta:u=.5,restSpeed:c}){let d,f,h=e[0],p={done:!1,value:h},m=r*t,v=h+m,g=void 0===o?v:o(v);g!==v&&(m=g-h);let y=e=>-m*Math.exp(-e/n),x=e=>g+y(e),b=e=>{let t=y(e),r=x(e);p.done=Math.abs(t)<=u,p.value=p.done?g:r},w=e=>{let t;if(t=p.value,void 0!==l&&ts){var r;d=e,f=tz({keyframes:[p.value,(r=p.value,void 0===l?s:void 0===s||Math.abs(l-r){let t=!1;return(f||void 0!==d||(t=!0,b(e),w(e)),void 0!==d&&e>=d)?f.next(e-d):(t||b(e),p)}}}tz.applyToOptions=e=>{let t=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),a=Math.min(tM(n),2e4);return{type:"keyframes",ease:e=>n.next(a*e).value/t,duration:a/1e3}}(e,100,tz);return e.ease=t.ease,e.duration=tT(t.duration),e.type="keyframes",e};var tH=r(19827);let tU=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function tW(e,t,r,n){return e===t&&r===n?tH.l:a=>0===a||1===a?a:tU(function(e,t,r,n,a){let i,o,l=0;do(i=tU(o=t+(r-t)/2,n,a)-e)>0?r=o:t=o;while(Math.abs(i)>1e-7&&++l<12);return o}(a,0,1,e,r),t,n)}let tK=tW(.42,0,1,1),tq=tW(0,0,.58,1),t$=tW(.42,0,.58,1),tG=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tY=e=>t=>1-e(1-t),tX=tW(.33,1.53,.69,.99),tZ=tY(tX),tQ=tG(tZ),tJ=e=>(e*=2)<1?.5*tZ(e):.5*(2-Math.pow(2,-10*(e-1))),t0=e=>1-Math.sin(Math.acos(e)),t1=tY(t0),t2=tG(t0),t5=e=>Array.isArray(e)&&"number"==typeof e[0],t3={linear:tH.l,easeIn:tK,easeInOut:t$,easeOut:tq,circIn:t0,circInOut:t2,circOut:t1,backIn:tZ,backInOut:tQ,backOut:tX,anticipate:tJ},t6=e=>{if(t5(e)){(0,I.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,a]=e;return tW(t,r,n,a)}return"string"==typeof e?((0,I.V)(void 0!==t3[e],`Invalid easing type '${e}'`,"invalid-easing-type"),t3[e]):e};var t4=r(6775),t7=r(45818);function t8({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var a;let i=Array.isArray(n)&&"number"!=typeof n[0]?n.map(t6):t6(n),o={done:!1,value:t[0]},l=(a=r&&r.length===t.length?r:function(e){let t=[0];return!function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let a=(0,t7.q)(0,t,n);e.push((0,y.k)(r,1,a))}}(t,e.length-1),t}(t),a.map(t=>t*e)),s=(0,t4.G)(l,t,{ease:Array.isArray(i)?i:t.map(()=>i||t$).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}let t9=e=>null!==e;function re(e,{repeat:t,repeatType:r="loop"},n,a=1){let i=e.filter(t9),o=a<0||t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}let rt={decay:tB,inertia:tB,tween:t8,keyframes:t8,spring:tz};function rr(e){"string"==typeof e.type&&(e.type=rt[e.type])}class rn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let ra=e=>e/100;class ri extends rn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==ep.k.now()&&this.tick(ep.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},tA.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rr(e);let{type:t=t8,repeat:r=0,repeatDelay:n=0,repeatType:a,velocity:i=0}=e,{keyframes:o}=e,l=t||t8;l!==t8&&"number"!=typeof o[0]&&(this.mixKeyframes=(0,tE.F)(ra,(0,tR.j)(o[0],o[1])),o=[0,100]);let s=l({...e,keyframes:o});"mirror"===a&&(this.mirroredGenerator=l({...e,keyframes:[...o].reverse(),velocity:-i})),null===s.calculatedDuration&&(s.calculatedDuration=tM(s));let{calculatedDuration:u}=s;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=s}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:r,totalDuration:n,mixKeyframes:a,mirroredGenerator:i,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:s=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:f,type:h,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-s*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,x=r;if(c){let e=Math.min(this.currentTime,n)/o,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(r=1-r,f&&(r-=f/o)):"mirror"===d&&(x=i)),y=(0,tj.q)(0,1,r)*o}let b=g?{done:!1,value:u[0]}:x.next(y);a&&(b.value=a(b.value));let{done:w}=b;g||null===l||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&h!==tB&&(b.value=re(u,this.options,m,this.speed)),p&&p(b.value),k&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=tT(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(ep.k.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=tP,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ep.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,tA.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function ro(e){let t;return()=>(void 0===t&&(t=e()),t)}let rl=ro(()=>void 0!==window.ScrollTimeline);var rs=r(24744);let ru={},rc=function(e,t){let r=ro(e);return()=>ru[t]??r()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),rd=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rd([0,.65,.55,1]),circOut:rd([.55,0,1,.45]),backIn:rd([.31,.01,.66,-.59]),backOut:rd([.33,1.53,.69,.99])};function rh(e){return"function"==typeof e&&"applyToOptions"in e}class rp extends rn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:r,keyframes:n,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:o,onComplete:l}=e;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=e,(0,I.V)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let s=function({type:e,...t}){return rh(e)&&rc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:n=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:s}={},u){let c={[t]:r};s&&(c.offset=s);let d=function e(t,r){if(t)return"function"==typeof t?rc()?tN(t,r):"ease-out":t5(t)?rd(t):Array.isArray(t)?t.map(t=>e(t,r)||rf.easeOut):rf[t]}(l,a);Array.isArray(d)&&(c.easing=d),rs.Q.value&&tA.waapi++;let f={delay:n,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===o?"alternate":"normal"};u&&(f.pseudoElement=u);let h=e.animate(c,f);return rs.Q.value&&h.finished.finally(()=>{tA.waapi--}),h}(t,r,n,s,a),!1===s.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let e=re(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}(t,r,e),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=tT(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&rl())?(this.animation.timeline=e,tH.l):t(this)}}let rm={anticipate:tJ,backInOut:tQ,circInOut:t2};class rv extends rp{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rm&&(e.ease=rm[e.ease])}(e),rr(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:n,element:a,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new ri({...i,autoplay:!1}),l=tT(this.finishedTime??this.time);t.setWithVelocity(o.sample(l-10).value,o.sample(l).value,10),o.stop()}}let rg=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(Q.f.test(e)||"0"===e)&&!e.startsWith("url(")),ry=new Set(["opacity","clipPath","filter","transform"]),rx=ro(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rb extends rn{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:i="loop",keyframes:o,name:l,motionValue:s,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ep.k.now();let d={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:a,repeatType:i,name:l,motionValue:s,element:u,...c},f=u?.KeyframeResolver||X;this.keyframeResolver=new f(o,(e,t,r)=>this.onKeyframesResolved(e,t,d,!r),l,s,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){this.keyframeResolver=void 0;let{name:a,type:i,velocity:o,delay:l,isHandoff:s,onUpdate:u}=r;this.resolvedAt=ep.k.now(),!function(e,t,r,n){let a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;let i=e[e.length-1],o=rg(a,t),l=rg(i,t);return(0,I.$)(o===l,`You are trying to animate ${t} from "${a}" to "${i}". "${o?i:a}" is not an animatable value.`,"value-not-animatable"),!!o&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},d=!s&&function(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:a,damping:i,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:s}=t.owner.getProps();return rx()&&r&&ry.has(r)&&("transform"!==r||!s)&&!l&&!n&&"mirror"!==a&&0!==i&&"inertia"!==o}(c)?new rv({...c,element:c.motionValue.owner.current}):new ri(c);d.finished.then(()=>this.notifyFinished()).catch(tH.l),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),$=!0,Y(),G(),$=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rw=e=>null!==e,rk={type:"spring",stiffness:500,damping:25,restSpeed:10},rS={type:"keyframes",duration:.8},rC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rE=(e,t,r,n={},a,o)=>l=>{let s=tb(n,e)||{},u=s.delay||n.delay||0,{elapsed:c=0}=n;c-=tT(u);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{l(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:a};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:l,from:s,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?rS:i.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rk:rC)(e,d)),d.duration&&(d.duration=tT(d.duration)),d.repeatDelay&&(d.repeatDelay=tT(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let f=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(tC(d),0===d.delay&&(f=!0)),(tk.W.instantAnimations||tk.W.skipAnimations)&&(f=!0,tC(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,f&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:r="loop"},n){let a=e.filter(rw),i=t&&"loop"!==r&&t%2==1?0:a.length-1;return a[i]}(d.keyframes,s);if(void 0!==e)return void U.Gt.update(()=>{d.onUpdate(e),d.onComplete()})}return s.isSync?new ri(d):new rb(d)};function rj(e,t,{delay:r=0,transitionOverride:n,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...l}=t;n&&(i=n);let s=[],u=a&&e.animationState&&e.animationState.getState()[a];for(let t in l){let n=e.getValue(t,e.latestValues[t]??null),a=l[t];if(void 0===a||u&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(u,t))continue;let o={delay:r,...tb(i||{},t)},c=n.get();if(void 0!==c&&!n.isAnimating&&!Array.isArray(a)&&a===c&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let r=e.props[tm];if(r){let e=window.MotionHandoffAnimation(r,t,U.Gt);null!==e&&(o.startTime=e,d=!0)}}tS(e,t),n.start(rE(t,n,a,e.shouldReduceMotion&&P.has(t)?{type:!1}:o,e,d));let f=n.animation;f&&s.push(f)}return o&&Promise.all(s).then(()=>{U.Gt.update(()=>{o&&function(e,t){let{transitionEnd:r={},transition:n={},...a}=tx(e,t)||{};for(let t in a={...a,...r}){var i;let r=tw(i=a[t])?i[i.length-1]||0:i;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,em.OQ)(r))}}(e,o)})}),s}function rT(e,t,r,n=0,a=1){let i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,l=(o-1)*n;return"function"==typeof r?r(i,o):1===a?i*n:l-i*n}function rA(e,t,r={}){let n=tx(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);let i=n?()=>Promise.all(rj(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:l}=a;return function(e,t,r=0,n=0,a=0,i=1,o){let l=[];for(let s of e.variantChildren)s.notify("AnimationStart",t),l.push(rA(s,t,{...o,delay:r+("function"==typeof n?0:n)+rT(e.variantChildren,s,n,a,i)}).then(()=>s.notify("AnimationComplete",t)));return Promise.all(l)}(e,t,n,i,o,l,r)}:()=>Promise.resolve(),{when:l}=a;if(!l)return Promise.all([i(),o(r.delay)]);{let[e,t]="beforeChildren"===l?[i,o]:[o,i];return e().then(()=>t())}}function rR(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;nPromise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>rA(e,t,r)));else if("string"==typeof t)n=rA(e,t,r);else{let a="function"==typeof t?tx(e,t,r.custom):t;n=Promise.all(rj(e,a,r))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=rD(),n=!0,a=t=>(r,n)=>{let a=tx(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(a){let{transition:e,transitionEnd:t,...n}=a;r={...r,...n,...t}}return r};function i(i){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;ed&&g,k=!1,S=Array.isArray(v)?v:[v],C=S.reduce(a(p),{});!1===y&&(C={});let{prevResolvedValues:E={}}=m,j={...E,...C},T=t=>{w=!0,u.has(t)&&(k=!0,u.delete(t)),m.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in j){let t=C[e],r=E[e];if(!c.hasOwnProperty(e))(tw(t)&&tw(r)?rR(t,r):t===r)?void 0!==t&&u.has(e)?T(e):m.protectedKeys[e]=!0:null!=t?T(e):u.add(e)}m.prevProp=v,m.prevResolvedValues=C,m.isActive&&(c={...c,...C}),n&&e.blockInitialAnimation&&(w=!1);let A=x&&b,R=!A||k;w&&R&&s.push(...S.map(t=>{let r={type:p};if("string"==typeof t&&n&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,a=tx(n,t);if(n.enteringChildren&&a){let{delayChildren:t}=a.transition||{};r.delay=rT(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(u.size){let t={};if("boolean"!=typeof o.initial){let r=tx(e,Array.isArray(o.initial)?o.initial[0]:o.initial);r&&r.transition&&(t.transition=r.transition)}u.forEach(r=>{let n=e.getBaseTarget(r),a=e.getValue(r);a&&(a.liveStyle=!0),t[r]=n??null}),s.push({animation:t})}let p=!!s.length;return n&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(s):Promise.resolve()}return{animateChanges:i,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;let a=i(t);for(let e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=rD(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();eR(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rV=0;class rF extends rL{constructor(){super(...arguments),this.id=rV++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let r_={x:!1,y:!1};function rz(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let rB=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rH(e){return{point:{x:e.pageX,y:e.pageY}}}function rU(e,t,r,n){return rz(e,t,e=>rB(e)&&r(e,rH(e)),n)}function rW(e){return e.max-e.min}function rK(e,t,r,n=.5){e.origin=n,e.originPoint=(0,y.k)(t.min,t.max,e.origin),e.scale=rW(r)/rW(t),e.translate=(0,y.k)(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rq(e,t,r,n){rK(e.x,t.x,r.x,n?n.originX:void 0),rK(e.y,t.y,r.y,n?n.originY:void 0)}function r$(e,t,r){e.min=r.min+t.min,e.max=e.min+rW(t)}function rG(e,t,r){e.min=t.min-r.min,e.max=e.min+rW(t)}function rY(e,t,r){rG(e.x,t.x,r.x),rG(e.y,t.y,r.y)}function rX(e){return[e("x"),e("y")]}let rZ=({current:e})=>e?e.ownerDocument.defaultView:null,rQ=(e,t)=>Math.abs(e-t);class rJ{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:a=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=r2(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return Math.sqrt(rQ(e.x,t.x)**2+rQ(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!r)return;let{point:n}=e,{timestamp:a}=U.uv;this.history.push({...n,timestamp:a});let{onStart:i,onMove:o}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=r0(t,this.transformPagePoint),U.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:a}=this.handlers;if(this.dragSnapToOrigin&&a&&a(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=r2("pointercancel"===e.type?this.lastMoveEventInfo:r0(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!rB(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=n||window;let o=r0(rH(e),this.transformPagePoint),{point:l}=o,{timestamp:s}=U.uv;this.history=[{...l,timestamp:s}];let{onSessionStart:u}=t;u&&u(e,r2(o,this.history)),this.removeListeners=(0,tE.F)(rU(this.contextWindow,"pointermove",this.handlePointerMove),rU(this.contextWindow,"pointerup",this.handlePointerUp),rU(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,U.WG)(this.updatePoint)}}function r0(e,t){return t?{point:t(e.point)}:e}function r1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r2({point:e},t){return{point:e,delta:r1(e,r5(t)),offset:r1(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,a=r5(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>tT(.1)));)r--;if(!n)return{x:0,y:0};let i=(a.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};let o={x:(a.x-n.x)/i,y:(a.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,.1)}}function r5(e){return e[e.length-1]}function r3(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function r6(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rH(e).point)},i=(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:a}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(r_[e])return null;else return r_[e]=!0,()=>{r_[e]=!1};return r_.x||r_.y?null:(r_.x=r_.y=!0,()=>{r_.x=r_.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rX(e=>{let t=this.getAxisMotionValue(e).get()||0;if(M.KN.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=rW(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),a&&U.Gt.postRender(()=>a(e,t)),tS(this.visualElement,"transform");let{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:a,onDrag:i}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:o}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(o),null!==this.currentDirection&&a&&a(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),i&&i(e,t)},l=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>rX(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new rJ(e,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:rZ(this.visualElement)})}stop(e,t){let r=e||this.latestPointerEvent,n=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!n||!r)return;let{velocity:i}=n;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o&&U.Gt.postRender(()=>o(r,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!ne(e,n,this.currentDirection))return;let a=this.getAxisMotionValue(e),i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?(0,y.k)(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),a.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&tp(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:a}){return{x:r3(e.x,r,a),y:r3(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:r4(e,"left","right"),y:r4(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&rX(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!tp(t))return!1;let n=t.current;(0,I.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:a}=this.visualElement;if(!a||!a.layout)return!1;let i=function(e,t,r){let n=R(e,r),{scroll:a}=t;return a&&(j(n.x,a.offset.x),j(n.y,a.offset.y)),n}(n,a.root,this.visualElement.getTransformPagePoint()),o=(e=a.layout.layoutBox,{x:r6(e.x,i.x),y:r6(e.y,i.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=g(e))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{};return Promise.all(rX(o=>{if(!ne(o,t,this.currentDirection))return;let s=l&&l[o]||{};i&&(s={min:0,max:0});let u={type:"inertia",velocity:r?e[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a,...s};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return tS(this.visualElement,e),r.start(rE(e,r,0,t,this.visualElement,!1))}stopAnimation(){rX(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rX(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){rX(t=>{let{drag:r}=this.getProps();if(!ne(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,a=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:i}=n.layout.layoutBox[t];a.set(e[t]-(0,y.k)(r,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!tp(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rX(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=rW(e),a=rW(t);return a>n?r=(0,t7.q)(t.min,t.max-n,e.min):n>a&&(r=(0,t7.q)(e.min,e.max-a,t.min)),(0,tj.q)(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rX(t=>{if(!ne(t,e,null))return;let r=this.getAxisMotionValue(t),{min:a,max:i}=this.constraints[t];r.set((0,y.k)(a,i,n[t]))})}addListeners(){if(!this.visualElement.current)return;r8.set(this.visualElement,this);let e=rU(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();tp(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),U.Gt.read(t);let a=rz(window,"resize",()=>this.scalePositionWithinConstraints()),i=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rX(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),e(),n(),i&&i()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:a=!1,dragElastic:i=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:a,dragElastic:i,dragMomentum:o}}}function ne(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class nt extends rL{constructor(e){super(e),this.removeGroupControls=tH.l,this.removeListeners=tH.l,this.controls=new r9(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tH.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let nr=e=>(t,r)=>{e&&U.Gt.postRender(()=>e(t,r))};class nn extends rL{constructor(){super(...arguments),this.removePointerDownListener=tH.l}onPointerDown(e){this.session=new rJ(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rZ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nr(e),onStart:nr(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&U.Gt.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=rU(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var na=r(32082);let ni={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function no(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nl={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!M.px.test(e))return e;else e=parseFloat(e);let r=no(e,t.target.x),n=no(e,t.target.y);return`${r}% ${n}%`}},ns=!1;class nu extends n.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:a}=e;for(let e in nd)eK[e]=nd[e],(0,v.j)(e)&&(eK[e].isCSSVariable=!0);a&&(t.group&&t.group.add(a),r&&r.register&&n&&r.register(a),ns&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),ni.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:a}=this.props,{projection:i}=r;return i&&(i.isPresent=a,ns=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==a?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||U.Gt.postRender(()=>{let e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),eg.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;ns=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nc(e){let[t,r]=(0,na.xQ)(),a=(0,n.useContext)(e4.L);return(0,e6.jsx)(nu,{...e,layoutGroup:a,switchLayoutGroup:(0,n.useContext)(tv),isPresent:t,safeToRemove:r})}let nd={borderRadius:{...nl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nl,borderTopRightRadius:nl,borderBottomLeftRadius:nl,borderBottomRightRadius:nl,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=Q.f.parse(e);if(n.length>5)return e;let a=Q.f.createTransformer(e),i=+("number"!=typeof n[0]),o=r.x.scale*t.x,l=r.y.scale*t.y;n[0+i]/=o,n[1+i]/=l;let s=(0,y.k)(o,l,.5);return"number"==typeof n[2+i]&&(n[2+i]/=s),"number"==typeof n[3+i]&&(n[3+i]/=s),a(n)}}};var nf=r(6983);function nh(e){return(0,nf.G)(e)&&"ownerSVGElement"in e}var np=r(56668);let nm=(e,t)=>e.depth-t.depth;class nv{constructor(){this.children=[],this.isDirty=!1}add(e){(0,np.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,np.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nm),this.isDirty=!1,this.children.forEach(e)}}let ng=["TopLeft","TopRight","BottomLeft","BottomRight"],ny=ng.length,nx=e=>"string"==typeof e?parseFloat(e):e,nb=e=>"number"==typeof e||M.px.test(e);function nw(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nk=nC(0,.5,t1),nS=nC(.5,.95,tH.l);function nC(e,t,r){return n=>nt?1:r((0,t7.q)(e,t,n))}function nE(e,t){e.min=t.min,e.max=t.max}function nj(e,t){nE(e.x,t.x),nE(e.y,t.y)}function nT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nA(e,t,r,n,a){return e-=t,e=n+1/r*(e-n),void 0!==a&&(e=n+1/a*(e-n)),e}function nR(e,t,[r,n,a],i,o){!function(e,t=0,r=1,n=.5,a,i=e,o=e){if(M.KN.test(t)&&(t=parseFloat(t),t=(0,y.k)(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let l=(0,y.k)(i.min,i.max,n);e===i&&(l-=t),e.min=nA(e.min,t,r,l,a),e.max=nA(e.max,t,r,l,a)}(e,t[r],t[n],t[a],t.scale,i,o)}let nP=["x","scaleX","originX"],nN=["y","scaleY","originY"];function nM(e,t,r,n){nR(e.x,t,nP,r?r.x:void 0,n?n.x:void 0),nR(e.y,t,nN,r?r.y:void 0,n?n.y:void 0)}function nO(e){return 0===e.translate&&1===e.scale}function nD(e){return nO(e.x)&&nO(e.y)}function nL(e,t){return e.min===t.min&&e.max===t.max}function nI(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nV(e,t){return nI(e.x,t.x)&&nI(e.y,t.y)}function nF(e){return rW(e.x)/rW(e.y)}function n_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nz{constructor(){this.members=[]}add(e){(0,np.Kq)(this.members,e),e.scheduleRender()}remove(e){if((0,np.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nB={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nH=["","X","Y","Z"],nU=0;function nW(e,t,r,n){let{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),n&&(n[e]=0))}function nK({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(e={},r=t?.()){this.id=nU++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rs.Q.value&&(nB.nodes=nB.calculatedTargetDeltas=nB.calculatedProjections=0),this.nodes.forEach(nG),this.nodes.forEach(n1),this.nodes.forEach(n2),this.nodes.forEach(nY),rs.Q.addProjectionMetrics&&rs.Q.addProjectionMetrics(nB)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;U.Gt.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==n&&(n=e,this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=ep.k.now(),n=({timestamp:t})=>{let a=t-r;a>=250&&((0,U.WG)(n),e(a-250))};return U.Gt.setup(n,!0),()=>(0,U.WG)(n)}(a,250),ni.hasAnimatedSinceResize&&(ni.hasAnimatedSinceResize=!1,this.nodes.forEach(n0)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&a&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||a.getDefaultTransition()||n8,{onLayoutAnimationStart:o,onLayoutAnimationComplete:l}=a.getProps(),s=!this.targetLayout||!nV(this.targetLayout,n),u=!t&&r;if(this.options.layoutRoot||this.resumeFrom||u||t&&(s||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...tb(i,"layout"),onPlay:o,onComplete:l};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||n0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,U.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n5),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=r.props[tm];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",U.Gt,!(e||r))}let{parent:a}=t;a&&!a.hasCheckedOptimisedAppear&&e(a)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rW(this.snapshot.measuredBox.x)||rW(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=eC());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nT(this.prevProjectionDelta.x,this.projectionDelta.x),nT(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rq(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===i&&this.treeScale.y===o&&n_(this.projectionDelta.x,this.prevProjectionDelta.x)&&n_(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rs.Q.value&&nB.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ek(),this.projectionDelta=ek(),this.projectionDeltaWithTransform=ek()}setAnimationOrigin(e,t=!1){let r,n=this.snapshot,a=n?n.latestValues:{},i={...this.latestValues},o=ek();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=eC(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(s&&!c&&!0===this.options.crossfade&&!this.path.some(n7));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(n6(o.x,e.x,n),n6(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,h,p,m,v;rY(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,m=l,v=n,n4(h.x,p.x,m.x,v),n4(h.y,p.y,m.y,v),r&&(u=this.relativeTarget,f=r,nL(u.x,f.x)&&nL(u.y,f.y))&&(this.isProjectionDirty=!1),r||(r=eC()),nj(r,this.relativeTarget)}s&&(this.animationValues=i,function(e,t,r,n,a,i){a?(e.opacity=(0,y.k)(0,r.opacity??1,nk(n)),e.opacityExit=(0,y.k)(t.opacity??1,0,nS(n))):i&&(e.opacity=(0,y.k)(t.opacity??1,r.opacity??1,n));for(let a=0;a{ni.hasAnimatedSinceResize=!0,tA.layout++,this.motionValue||(this.motionValue=(0,em.OQ)(0)),this.currentAnimation=function(e,t,r){let n=eh(e)?e:(0,em.OQ)(e);return n.start(rE("",n,t,r)),n.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{tA.layout--},onComplete:()=>{tA.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:a}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ar(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||eC();let t=rW(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rW(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}nj(t,r),A(t,a),rq(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nz),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&nW("z",e,n,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(nZ),this.root.sharedNodes.clear()}}}function nq(e){e.updateLayout()}function n$(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=e.layout,{animationType:a}=e.options,i=t.source!==e.layout.source;"size"===a?rX(e=>{let n=i?t.measuredBox[e]:t.layoutBox[e],a=rW(n);n.min=r[e].min,n.max=n.min+a}):ar(a,t.layoutBox,r)&&rX(n=>{let a=i?t.measuredBox[n]:t.layoutBox[n],o=rW(r[n]);a.max=a.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)});let o=ek();rq(o,r,t.layoutBox);let l=ek();i?rq(l,e.applyTransform(n,!0),t.measuredBox):rq(l,r,t.layoutBox);let s=!nD(o),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:a,layout:i}=n;if(a&&i){let o=eC();rY(o,t.layoutBox,a.layoutBox);let l=eC();rY(l,r,i.layoutBox),nV(o,l)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:o,hasLayoutChanged:s,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nG(e){rs.Q.value&&nB.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nY(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nX(e){e.clearSnapshot()}function nZ(e){e.clearMeasurements()}function nQ(e){e.isLayoutDirty=!1}function nJ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n1(e){e.resolveTargetDelta()}function n2(e){e.calcProjection()}function n5(e){e.resetSkewAndRotation()}function n3(e){e.removeLeadSnapshot()}function n6(e,t,r){e.translate=(0,y.k)(t.translate,0,r),e.scale=(0,y.k)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function n4(e,t,r,n){e.min=(0,y.k)(t.min,r.min,n),e.max=(0,y.k)(t.max,r.max,n)}function n7(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let n8={duration:.45,ease:[.4,0,.1,1]},n9=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ae=n9("applewebkit/")&&!n9("chrome/")?Math.round:tH.l;function at(e){e.min=ae(e.min),e.max=ae(e.max)}function ar(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nF(t)-nF(r)))}function an(e){return e!==e.root&&e.scroll?.wasRoot}let aa=nK({attachResizeListener:(e,t)=>rz(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ai={current:void 0},ao=nK({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ai.current){let e=new aa({});e.mount(window),e.setOptions({layoutScroll:!0}),ai.current=e}return ai.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function al(e,t){let r=function(e,t,r){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,r=(void 0)??t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function as(e){return!("touch"===e.pointerType||r_.x||r_.y)}function au(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let a=n["onHover"+r];a&&U.Gt.postRender(()=>a(t,rH(t)))}class ac extends rL{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,a,i]=al(e,r),o=e=>{if(!as(e))return;let{target:r}=e,n=t(r,e);if("function"!=typeof n||!r)return;let i=e=>{as(e)&&(n(e),r.removeEventListener("pointerleave",i))};r.addEventListener("pointerleave",i,a)};return n.forEach(e=>{e.addEventListener("pointerenter",o,a)}),i}(e,(e,t)=>(au(this.node,t,"Start"),e=>au(this.node,e,"End"))))}unmount(){}}class ad extends rL{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tE.F)(rz(this.node.current,"focus",()=>this.onFocus()),rz(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var af=r(27351);let ah=(e,t)=>!!t&&(e===t||ah(e,t.parentElement)),ap=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),am=new WeakSet;function av(e){return t=>{"Enter"===t.key&&e(t)}}function ag(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function ay(e){return rB(e)&&!(r_.x||r_.y)}function ax(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let a=n["onTap"+("End"===r?"":r)];a&&U.Gt.postRender(()=>a(t,rH(t)))}class ab extends rL{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,a,i]=al(e,r),o=e=>{let n=e.currentTarget;if(!ay(e))return;am.add(n);let i=t(n,e),o=(e,t)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",s),am.has(n)&&am.delete(n),ay(e)&&"function"==typeof i&&i(e,{success:t})},l=e=>{o(e,n===window||n===document||r.useGlobalTarget||ah(n,e.target))},s=e=>{o(e,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",s,a)};return n.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",o,a),(0,af.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let n=av(()=>{if(am.has(r))return;ag(r,"down");let e=av(()=>{ag(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>ag(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,a)),ap.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}(e,(e,t)=>(ax(this.node,t,"Start"),(e,{success:t})=>ax(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let aw=new WeakMap,ak=new WeakMap,aS=e=>{let t=aw.get(e.target);t&&t(e)},aC=e=>{e.forEach(aS)},aE={some:0,all:1};class aj extends rL{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:a}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:aE[n]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)};var l=this.node.current;let s=function({root:e,...t}){let r=e||document;ak.has(r)||ak.set(r,{});let n=ak.get(r),a=JSON.stringify(t);return n[a]||(n[a]=new IntersectionObserver(aC,{root:e,...t})),n[a]}(i);return aw.set(l,o),s.observe(l),()=>{aw.delete(l),s.unobserve(l)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}let aT=function(e,t){if("undefined"==typeof Proxy)return ty;let r=new Map,n=(r,n)=>ty(r,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(a,i)=>"create"===i?n:(r.has(i)||r.set(i,ty(i,void 0,e,t)),r.get(i))})}({animation:{Feature:rI},exit:{Feature:rF},inView:{Feature:aj},tap:{Feature:ab},focus:{Feature:ad},hover:{Feature:ac},pan:{Feature:nn},drag:{Feature:nt,ProjectionNode:ao,MeasureLayout:nc},layout:{ProjectionNode:ao,MeasureLayout:nc}},(e,t)=>e3(e)?new e2(t):new eG(t,{allowProjection:e!==n.Fragment}))},6401:(e,t,r)=>{"use strict";r.d(t,{q:()=>l});var n=r(95155),a=r(36946),i=r(72107);let o=(0,r(74466).F)([],{compoundVariants:[],defaultVariants:{},variants:{}}),l=({className:e,"data-parent":t,href:r,linkElement:l="a",onClick:s,...u})=>(0,n.jsxs)("div",{className:o({className:e}),...u,"data-ids":"JoinNewsletter",children:[(0,n.jsx)(i.o5,{as:"p",className:"text-neutral-1 dark:text-neutral-8 pb-2",disableColorScheme:!0,variant:"subtitle1",children:"Join Newsletter"}),(0,n.jsx)(i.o5,{className:"text-neutral-3 dark:text-neutral-5 py-2",disableColorScheme:!0,variant:"caption1",children:"Subscribe to our newsletters to get the latest in car news and have editor curated stories sent directly to your inbox."}),(0,n.jsx)(a.$,{as:l,className:"mt-2","data-id":"join-newsletter","data-parent":t,href:r,onClick:s,children:"Explore Offerings"})]});l.displayName="JoinNewsletter"},6507:(e,t,r)=>{"use strict";r.d(t,{O:()=>i});var n=r(12115),a=0;function i(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:o()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:o()),a++,()=>{1===a&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),a--}},[])}function o(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},6775:(e,t,r)=>{"use strict";r.d(t,{G:()=>c});var n=r(23387),a=r(19827),i=r(53191),o=r(54542),l=r(45818),s=r(53678),u=r(26087);function c(e,t,{clamp:r=!0,ease:d,mixer:f}={}){let h=e.length;if((0,o.V)(h===t.length,"Both input and output ranges must be the same length","range-length"),1===h)return()=>t[0];if(2===h&&t[0]===t[1])return()=>t[1];let p=e[0]===e[1];e[0]>e[h-1]&&(e=[...e].reverse(),t=[...t].reverse());let m=function(e,t,r){let o=[],l=r||n.W.mix||u.j,s=e.length-1;for(let r=0;r{if(p&&r1)for(;ng((0,s.q)(e[0],e[h-1],t)):g}},6983:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e}r.d(t,{G:()=>n})},7156:(e,t,r)=>{"use strict";r.d(t,{A:()=>W});var n,a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}"function"==typeof SuppressedError&&SuppressedError;var o=r(12115),l="right-scroll-bar-position",s="width-before-scroll-bar";function u(e){return e}var c=function(e){void 0===e&&(e={});var t,r,n,i=(void 0===t&&(t=u),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var a=t(e,n);return r.push(a),function(){r=r.filter(function(e){return e!==a})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(i)};o(),r={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),r}}}});return i.options=a({async:!0,ssr:!1},e),i}();function d(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var f="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,h=new WeakMap,p=function(){},m=o.forwardRef(function(e,t){var r,n,l,s,u=o.useRef(null),m=o.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),v=m[0],g=m[1],y=e.forwardProps,x=e.children,b=e.className,w=e.removeScrollBar,k=e.enabled,S=e.shards,C=e.sideCar,E=e.noRelative,j=e.noIsolation,T=e.inert,A=e.allowPinchZoom,R=e.as,P=e.gapMode,N=i(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(r=[u,t],n=function(e){return r.forEach(function(t){return d(t,e)})},(l=(0,o.useState)(function(){return{value:null,callback:n,facade:{get current(){return l.value},set current(value){var e=l.value;e!==value&&(l.value=value,l.callback(value,e))}}}})[0]).callback=n,s=l.facade,f(function(){var e=h.get(s);if(e){var t=new Set(e),n=new Set(r),a=s.current;t.forEach(function(e){n.has(e)||d(e,null)}),n.forEach(function(e){t.has(e)||d(e,a)})}h.set(s,r)},[r]),s),O=a(a({},N),v);return o.createElement(o.Fragment,null,k&&o.createElement(C,{sideCar:c,removeScrollBar:w,shards:S,noRelative:E,noIsolation:j,inert:T,setCallbacks:g,allowPinchZoom:!!A,lockRef:u,gapMode:P}),y?o.cloneElement(o.Children.only(x),a(a({},O),{ref:M})):o.createElement(void 0===R?"div":R,a({},O,{className:b,ref:M}),x))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:s,zeroRight:l};var v=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r.nc;return t&&e.setAttribute("nonce",t),e}())){var a,i;(a=t).styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},g=function(){var e=v();return function(t,r){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},y=function(){var e=g();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},b=function(e){return parseInt(e||"",10)||0},w=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[b(r),b(n),b(a)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=w(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},S=y(),C="data-scroll-locked",E=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,u=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(u,"px ").concat(n,";\n }\n body[").concat(C,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(s," {\n margin-right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(n,";\n }\n \n .").concat(s," .").concat(s," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(C,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},j=function(){var e=parseInt(document.body.getAttribute(C)||"0",10);return isFinite(e)?e:0},T=function(){o.useEffect(function(){return document.body.setAttribute(C,(j()+1).toString()),function(){var e=j()-1;e<=0?document.body.removeAttribute(C):document.body.setAttribute(C,e.toString())}},[])},A=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;T();var i=o.useMemo(function(){return k(a)},[a]);return o.createElement(S,{styles:E(i,!t,a,r?"":"!important")})},R=!1;if("undefined"!=typeof window)try{var P=Object.defineProperty({},"passive",{get:function(){return R=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch(e){R=!1}var N=!!R&&{passive:!1},M=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},O=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),D(e,n)){var a=L(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},D=function(e,t){return"v"===e?M(t,"overflowY"):M(t,"overflowX")},L=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},I=function(e,t,r,n,a){var i,o=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=r.target,s=t.contains(l),u=!1,c=o*n>0,d=0,f=0;do{if(!l)break;var h=L(e,l),p=h[0],m=h[1]-h[2]-o*p;(p||m)&&D(e,l)&&(d+=m,f+=p);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return c&&1>Math.abs(d)?u=!0:!c&&1>Math.abs(f)&&(u=!0),u},V=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},_=function(e){return e&&"current"in e?e.current:e},z=0,B=[],H=function(e){var t=e.sideCar,r=i(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return o.createElement(n,a({},r))};H.isSideCarExport=!0;var U=(n=function(e){var t=o.useRef([]),r=o.useRef([0,0]),n=o.useRef(),a=o.useState(z++)[0],i=o.useState(y)[0],l=o.useRef(e);o.useEffect(function(){l.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,a=0,i=t.length;aMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=O(d,c);if(!f)return!0;if(f?a=d:(a="v"===d?"h":"v",f=O(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(s||u)&&(n.current=a),!a)return!0;var h=n.current||a;return I(h,t,e,"h"===h?s:u)},[]),u=o.useCallback(function(e){if(B.length&&B[B.length-1]===i){var r="deltaY"in e?F(e):V(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(l.current.shards||[]).map(_).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?s(e,a[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,r,n,a){var i={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=o.useCallback(function(e){r.current=V(e),n.current=void 0},[]),f=o.useCallback(function(t){c(t.type,F(t),t.target,s(t,e.lockRef.current))},[]),h=o.useCallback(function(t){c(t.type,V(t),t.target,s(t,e.lockRef.current))},[]);o.useEffect(function(){return B.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,N),document.addEventListener("touchmove",u,N),document.addEventListener("touchstart",d,N),function(){B=B.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,N),document.removeEventListener("touchmove",u,N),document.removeEventListener("touchstart",d,N)}},[]);var p=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(i,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,p?o.createElement(A,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},c.useMedium(n),H),W=o.forwardRef(function(e,t){return o.createElement(m,a({},e,{ref:t,sideCar:U}))});W.classNames=m.classNames},7225:(e,t,r)=>{"use strict";r.d(t,{Menu:()=>i});var n=r(95155),a=r(92031);let i=e=>{let{modal:t=!0,...r}=e;return(0,n.jsx)(a.bL,{modal:t,...r,"data-ids":"Menu"})};i.displayName="Menu"},8310:(e,t,r)=>{"use strict";r.d(t,{vC:()=>x});var n=r(12115);r(95155);let a=["shift","alt","meta","mod","ctrl","control"],i={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function o(e){return(i[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function l(e){return a.includes(e)}function s(e,t=","){return e.toLowerCase().split(t)}function u(e,t="+",r=">",n=!1,i){let l=[],s=!1;e.includes(r)?(s=!0,l=e.toLocaleLowerCase().split(r).map(e=>o(e))):l=e.toLocaleLowerCase().split(t).map(e=>o(e));let c={alt:l.includes("alt"),ctrl:l.includes("ctrl")||l.includes("control"),shift:l.includes("shift"),meta:l.includes("meta"),mod:l.includes("mod"),useKey:n},d=l.filter(e=>!a.includes(e));return{...c,keys:d,description:i,isSequence:s}}"u">typeof document&&(document.addEventListener("keydown",e=>{void 0!==e.code&&f([o(e.code)])}),document.addEventListener("keyup",e=>{void 0!==e.code&&h([o(e.code)])})),"u">typeof window&&(window.addEventListener("blur",()=>{c.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{c.clear()},0)}));let c=new Set;function d(e){return Array.isArray(e)}function f(e){let t=Array.isArray(e)?e:[e];c.has("meta")&&c.forEach(e=>!l(e)&&c.delete(e.toLowerCase())),t.forEach(e=>c.add(e.toLowerCase()))}function h(e){let t=Array.isArray(e)?e:[e];"meta"===e?c.clear():t.forEach(e=>c.delete(e.toLowerCase()))}function p(e,t=!1){var r;let n,{target:a,composed:i}=e;return n=(r=a).tagName&&!r.tagName.startsWith("-")&&r.tagName.includes("-")&&i?e.composedPath()[0]&&e.composedPath()[0].tagName:a&&a.tagName,d(t)?!!(n&&t&&t.some(e=>e.toLowerCase()===n.toLowerCase())):!!(n&&t&&t)}let m=(0,n.createContext)(void 0),v=(0,n.createContext)({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),g=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},y="u">typeof window?n.useLayoutEffect:n.useEffect;function x(e,t,r,a){let i=(0,n.useRef)(null),x=(0,n.useRef)(!1),b=r instanceof Array?a instanceof Array?void 0:a:r,w=d(e)?e.join(null==b?void 0:b.delimiter):e,k=r instanceof Array?r:a instanceof Array?a:void 0,S=(0,n.useCallback)(t,k??[]),C=(0,n.useRef)(S);k?C.current=S:C.current=t;let E=function(e){let t=(0,n.useRef)(void 0);return function e(t,r){return t&&r&&"object"==typeof t&&"object"==typeof r?Object.keys(t).length===Object.keys(r).length&&Object.keys(t).reduce((n,a)=>n&&e(t[a],r[a]),!0):t===r}(t.current,e)||(t.current=e),t.current}(b),{activeScopes:j}=(0,n.useContext)(v),T=(0,n.useContext)(m);return y(()=>{var e;if((null==E?void 0:E.enabled)===!1||(e=null==E?void 0:E.scopes,0===j.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a '),!1):!(!e||j.some(t=>e.includes(t))||j.includes("*"))))return;let t=[],r,n=(e,n=!1)=>{var a;if(!(p(e,["input","textarea","select"])&&!p(e,null==E?void 0:E.enableOnFormTags))){if(null!==i.current){let t=i.current.getRootNode();if((t instanceof Document||t instanceof ShadowRoot)&&t.activeElement!==i.current&&!i.current.contains(t.activeElement))return void g(e)}null!=(a=e.target)&&a.isContentEditable&&!(null!=E&&E.enableOnContentEditable)||s(w,null==E?void 0:E.delimiter).forEach(a=>{var i,s,f,h,p,m;if(a.includes((null==E?void 0:E.splitKey)??"+")&&a.includes((null==E?void 0:E.sequenceSplitKey)??">"))return void console.warn(`Hotkey ${a} contains both ${(null==E?void 0:E.splitKey)??"+"} and ${(null==E?void 0:E.sequenceSplitKey)??">"} which is not supported.`);let v=u(a,null==E?void 0:E.splitKey,null==E?void 0:E.sequenceSplitKey,null==E?void 0:E.useKey,null==E?void 0:E.description);if(v.isSequence){r=setTimeout(()=>{t=[]},(null==E?void 0:E.sequenceTimeoutMs)??1e3);let n=v.useKey?e.key:o(e.code);if(l(n.toLowerCase()))return;if(t.push(n),n!==(null==(i=v.keys)?void 0:i[t.length-1])){t=[],r&&clearTimeout(r);return}t.length===(null==(s=v.keys)?void 0:s.length)&&(C.current(e,v),r&&clearTimeout(r),t=[])}else if(((e,t,r=!1)=>{let{alt:n,meta:a,mod:i,shift:l,ctrl:s,keys:u,useKey:f}=t,{code:h,key:p,ctrlKey:m,metaKey:v,shiftKey:g,altKey:y}=e,x=o(h);if(f&&(null==u?void 0:u.length)===1&&u.includes(p))return!0;if(!(null!=u&&u.includes(x))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(x))return!1;if(!r){if(n!==y&&"alt"!==x||l!==g&&"shift"!==x)return!1;if(i){if(!v&&!m)return!1}else if(a!==v&&"meta"!==x&&"os"!==x||s!==m&&"ctrl"!==x&&"control"!==x)return!1}return!!(u&&1===u.length&&u.includes(x))||(u?function(e,t=","){return(d(e)?e:e.split(t)).every(e=>c.has(e.trim().toLowerCase()))}(u):!u)})(e,v,null==E?void 0:E.ignoreModifiers)||null!=(f=v.keys)&&f.includes("*")){if(null!=(h=null==E?void 0:E.ignoreEventWhen)&&h.call(E,e)||n&&x.current)return;if(("function"==typeof(p=null==E?void 0:E.preventDefault)&&p(e,v)||!0===p)&&e.preventDefault(),"function"==typeof(m=null==E?void 0:E.enabled)?!m(e,v):!0!==m&&void 0!==m)return void g(e);C.current(e,v),n||(x.current=!0)}})}},a=e=>{void 0!==e.code&&(f(o(e.code)),((null==E?void 0:E.keydown)===void 0&&(null==E?void 0:E.keyup)!==!0||null!=E&&E.keydown)&&n(e))},m=e=>{void 0!==e.code&&(h(o(e.code)),x.current=!1,null!=E&&E.keyup&&n(e,!0))},v=i.current||(null==b?void 0:b.document)||document;return v.addEventListener("keyup",m,null==b?void 0:b.eventListenerOptions),v.addEventListener("keydown",a,null==b?void 0:b.eventListenerOptions),T&&s(w,null==E?void 0:E.delimiter).forEach(e=>T.addHotkey(u(e,null==E?void 0:E.splitKey,null==E?void 0:E.sequenceSplitKey,null==E?void 0:E.useKey,null==E?void 0:E.description))),()=>{v.removeEventListener("keyup",m,null==b?void 0:b.eventListenerOptions),v.removeEventListener("keydown",a,null==b?void 0:b.eventListenerOptions),T&&s(w,null==E?void 0:E.delimiter).forEach(e=>T.removeHotkey(u(e,null==E?void 0:E.splitKey,null==E?void 0:E.sequenceSplitKey,null==E?void 0:E.useKey,null==E?void 0:E.description))),t=[],r&&clearTimeout(r)}},[w,E,j]),i}},8928:(e,t,r)=>{"use strict";r.d(t,{CarouselContent:()=>o});var n=r(95155),a=r(34466);let i=(0,r(74466).F)(["flex","gap-2","@md/carousel:gap-4"],{compoundVariants:[{className:"pr-32",scrollOverflow:"large",variant:"filmstrip"},{className:["pr-32","@md/carousel:pr-0"],scrollOverflow:"medium",variant:"filmstrip"},{className:["pr-32","@sm/carousel:pr-0"],scrollOverflow:"small",variant:"filmstrip"}],defaultVariants:{scrollOverflow:"none",variant:"filmstrip"},variants:{scrollOverflow:{large:[],medium:[],none:[],small:[]},variant:{filmstrip:[],slideshow:[]}}}),o=e=>{let{children:t,className:r,...o}=e,{carouselRef:l,variant:s}=(0,a.g)(),u=Array.isArray(t)?t.length:1;return(0,n.jsx)("div",{className:"w-full overflow-hidden","data-ids":"CarouselContent",ref:l,children:(0,n.jsx)("div",{className:i({className:r,scrollOverflow:u>4?"large":u>3?"medium":u>2?"small":"none",variant:s}),...o,children:t})})};o.displayName="CarouselContent"},9064:(e,t,r)=>{"use strict";r.d(t,{B:()=>s});var n=r(53678),a=r(57887),i=r(11557),o=r(55920);let l={...a.ai,transform:e=>Math.round((0,n.q)(0,255,e))},s={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+l.transform(e)+", "+l.transform(t)+", "+l.transform(r)+", "+(0,i.a)(a.X4.transform(n))+")"}},10491:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(95155);let a=(0,r(74466).F)(["block","bg-neutral-5/40","dark:bg-neutral-4","[&:not(:empty)_>_*]:invisible"],{compoundVariants:[],defaultVariants:{animation:"pulse",noHeight:!1,noWidth:!1,variant:"text"},variants:{animation:{false:[],pulse:["animate-pulse","[animation-iteration-count:var(--iteration-count)]"],wave:["after:absolute","after:animate-wave","after:bg-gradient-to-r",'after:content-[""]',"after:from-transparent","after:inset-0","after:to-transparent","after:-translate-x-full","after:via-neutral-5/50","after:dark:via-neutral-2/40","after:[animation-iteration-count:var(--iteration-count)]","overflow-hidden","relative"]},noHeight:{true:"[&:not(:empty)]:h-auto"},noWidth:{true:"[&:not(:empty)]:max-w-fit"},variant:{circular:"rounded-full",rectangular:[],rounded:"rounded-md",text:["my-0","h-auto","origin-[0_55%]","rounded-md","scale-[1,0.60]",String.raw`empty:before:[content:'\00a0']`]}}}),i=({animation:e="pulse",children:t,className:r,height:i,repeat:o="infinite",style:l={},variant:s="text",width:u,...c})=>(0,n.jsx)("span",{className:a({animation:e,className:r,noHeight:!i,noWidth:!u,variant:s}),...c,"data-ids":"Skeleton",style:{"--iteration-count":o,height:i,width:u,...l},children:t});i.displayName="Skeleton"},11557:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});let n=e=>Math.round(1e5*e)/1e5},12141:(e,t,r)=>{"use strict";r.d(t,{GlobalHeaderActions:()=>p});var n=r(95155),a=r(12115),i=r(5036),o=r(1773),l=r.n(o),s=r(74466),u=r(8310),c=r(6168),d=r(75109),f=r(68833);let h=(0,s.F)(["[&>div]:focus-within:!ring-0","[&>div]:focus-within:!ring-offset-0","[&>div]:max-lg:!max-h-8","[&>div]:max-lg:!min-h-8","[&>div]:max-lg:!px-3","[&>div]:max-lg:!py-[3px]","[&>div]:max-lg:!rounded-sm","dark:[&>div]:border-transparent","dark:[&>div]:border","overflow-hidden","sm:duration-500","sm:ease-in-out","sm:relative","sm:transition-[max-width]","static","transition-none"],{compoundVariants:[{brand:"motortrend",className:["dark:[&>div]:hover:border-neutral-4"],searchExpanded:!1},{brand:"motortrend",className:["dark:[&>div]:!border-neutral-4"],searchExpanded:!0},{brand:"hotrod",className:["dark:[&>div]:hover:border-neutral-6"],searchExpanded:!1},{brand:"hotrod",className:["dark:[&>div]:!border-neutral-8"],searchExpanded:!0}],defaultVariants:{brand:"motortrend",searchExpanded:!1},variants:{brand:{caranddriver:["dark:[&>div]:bg-neutral-3"],hotrod:["dark:[&_[data-ids=IconButton]]:bg-neutral-8","dark:[&_[data-ids=IconButton]]:hover:bg-neutral-6","dark:[&_[data-ids=IconButton]]:text-neutral-4","dark:[&>div]:!text-neutral-4","dark:[&>div]:bg-neutral-8"],motortrend:["dark:[&>div]:bg-neutral-3"]},searchExpanded:{false:["[&>div]:border-0","[&>div]:cursor-pointer","lg:max-w-10","lg:min-w-10","max-w-8","min-w-8","transition-colors"],true:["left-0","pl-28","pr-4","sm:left-auto","sm:max-w-64","sm:pl-0","sm:pr-0","w-full"]}}}),p=e=>{let{actionElement:t,brand:r="motortrend",className:o,searchAction:p,searchCallback:m,searchName:v="search",...g}=e,[y,x]=(0,a.useState)(!1),[b,w]=(0,a.useState)(""),k=""!==b,S=(0,a.useRef)(null),C=(0,a.useRef)(null),E=(0,a.useRef)(null),j=(0,f.default)("sm"),T=p||m;(0,u.vC)("ctrl+k, meta+k",()=>{var e;return null==(e=S.current)?void 0:e.focus()});let A=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(!k||t)&&(t&&w(""),x(!1),null==(e=S.current)||e.blur())},R=e=>{j&&E.current&&(y&&"transitionstart"===e.type&&(E.current.style.display="none"),y||"transitionend"!==e.type||(E.current.style.display="flex"))};return(0,a.useEffect)(()=>{if(C.current)return C.current.addEventListener("transitionstart",R),C.current.addEventListener("transitionend",R),()=>{var e,t;null==(e=C.current)||e.removeEventListener("transitionstart",R),null==(t=C.current)||t.removeEventListener("transitionend",R)}},[y]),(0,n.jsxs)("div",{className:(0,s.cx)("flex items-center gap-4",o),...g,"data-ids":"GlobalHeaderActions",children:[!!t&&(0,n.jsx)("div",{className:"flex h-full shrink-0 items-center",ref:E,children:t}),T&&(0,n.jsx)("form",{action:p,className:(0,s.cx)({"absolute left-0 z-10 flex h-full w-full items-center sm:relative sm:w-auto":y}),onSubmit:e=>{m&&(p||e.preventDefault(),m(b))},children:(0,n.jsx)(d.TextField,{"aria-keyshortcuts":"Ctrl+K Meta+K","aria-label":"Search",autoComplete:"off",className:h({brand:r,searchExpanded:y}),"data-expanded":y,"data-testid":"header-search",endAdornment:(0,n.jsx)(c.K,{"aria-label":"Clear Search Box",className:(0,s.cx)("-mr-2",{hidden:!y,"sm:hidden":!k}),colorScheme:"neutral-8",compact:!0,"data-id":"global-search","data-parent":"global-header","data-testid":"header-search-close",onClick:e=>{e.preventDefault(),e.stopPropagation(),A(!0)},rounded:!0,size:"small",type:"button",children:(0,n.jsx)(l(),{path:i.hyP,size:.9})}),name:v,onBlur:()=>{j&&A()},onChange:e=>{w(e.target.value)},onFocus:()=>{var e;x(!0),null==(e=S.current)||e.focus()},onKeyDown:e=>{"Escape"===e.key&&A(!0)},parentRef:C,placeholder:"Search",ref:S,startAdornment:(0,n.jsx)(l(),{className:"-ml-1",path:i.U4M,size:1}),value:b})})]})};p.displayName="GlobalHeaderActions"},12269:(e,t,r)=>{"use strict";function n(e,[t,r]){return Math.min(r,Math.max(t,e))}r.d(t,{q:()=>n})},12445:(e,t,r)=>{"use strict";r.d(t,{Autosuggest:()=>al});var n=r(95155),a=r(12115),i=r.t(a,2),o=Object.defineProperty,l=Object.defineProperties,s=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&f(e,r,t[r]);if(u)for(var r of u(t))d.call(t,r)&&f(e,r,t[r]);return e},p=(e,t)=>l(e,s(t)),m=(e,t)=>{var r={};for(var n in e)c.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&u)for(var n of u(e))0>t.indexOf(n)&&d.call(e,n)&&(r[n]=e[n]);return r},v=Object.defineProperty,g=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,k=(e,t,r)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))b.call(t,r)&&k(e,r,t[r]);if(x)for(var r of x(t))w.call(t,r)&&k(e,r,t[r]);return e},C=(e,t)=>g(e,y(t)),E=(e,t)=>{var r={};for(var n in e)b.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&x)for(var n of x(e))0>t.indexOf(n)&&w.call(e,n)&&(r[n]=e[n]);return r};function j(){for(var e=arguments.length,t=Array(e),r=0;r1?t-1:0),n=1;n1&&void 0!==arguments[1]&&arguments[1],{activeElement:r}=V(e);if(!(null==r?void 0:r.nodeName))return null;if(B(r)&&r.contentDocument)return _(r.contentDocument.body,t);if(t){let e=r.getAttribute("aria-activedescendant");if(e){let t=V(r).getElementById(e);if(t)return t}}return r}function z(e,t){return e===t||e.contains(t)}function B(e){return"IFRAME"===e.tagName}function H(e){let t=e.tagName.toLowerCase();return"button"===t||"input"===t&&!!e.type&&-1!==U.indexOf(e.type)}var U=["button","color","file","image","reset","submit"];function W(e){return"function"==typeof e.checkVisibility?e.checkVisibility():e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function K(e){try{let t=e instanceof HTMLInputElement&&null!==e.selectionStart,r="TEXTAREA"===e.tagName;return t||r||!1}catch(e){return!1}}function q(e){return e.isContentEditable||K(e)}function $(e){let t=0,r=0;if(K(e))t=e.selectionStart||0,r=e.selectionEnd||0;else if(e.isContentEditable){let n=V(e).getSelection();if((null==n?void 0:n.rangeCount)&&n.anchorNode&&z(e,n.anchorNode)&&n.focusNode&&z(e,n.focusNode)){let a=n.getRangeAt(0),i=a.cloneRange();i.selectNodeContents(e),i.setEnd(a.startContainer,a.startOffset),t=i.toString().length,i.setEnd(a.endContainer,a.endOffset),r=i.toString().length}}return{start:t,end:r}}function G(e){if(!e)return null;let t=e=>"auto"===e||"scroll"===e;if(e.clientHeight&&e.scrollHeight>e.clientHeight){let{overflowY:r}=getComputedStyle(e);if(t(r))return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){let{overflowX:r}=getComputedStyle(e);if(t(r))return e}return G(e.parentElement)||document.scrollingElement||document.body}function Y(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{if(n){let t=setTimeout(e,n);return()=>clearTimeout(t)}let t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)})(()=>{e.removeEventListener(t,i,!0),r()}),i=()=>{a(),r()};return e.addEventListener(t,i,{once:!0,capture:!0}),a}function ei(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window,a=[];try{for(let i of(n.document.addEventListener(e,t,r),Array.from(n.frames)))a.push(ei(e,t,r,i))}catch(e){}return()=>{try{n.document.removeEventListener(e,t,r)}catch(e){}for(let e of a)e()}}var eo=h({},i),el=eo.useId;eo.useDeferredValue;var es=eo.useInsertionEffect,eu=I?a.useLayoutEffect:a.useEffect;function ec(e){let t=(0,a.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")});return es?es(()=>{t.current=e}):t.current=e,(0,a.useCallback)(function(){for(var e,r=arguments.length,n=Array(r),a=0;a{if(t.some(Boolean))return e=>{for(let r of t)L(r,e)}},t)}function ef(e){if(el){let t=el();return e||t}let[t,r]=(0,a.useState)(e);return eu(()=>{if(e||t)return;let n=Math.random().toString(36).slice(2,8);r("id-".concat(n))},[e,t]),e||t}function eh(e,t){let r=e=>{if("string"==typeof e)return e},[n,i]=(0,a.useState)(()=>r(t));return eu(()=>{let n=e&&"current"in e?e.current:e;i((null==n?void 0:n.tagName.toLowerCase())||r(t))},[e,t]),n}function ep(e,t){let r=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(r.current)return e();r.current=!0},t),(0,a.useEffect)(()=>()=>{r.current=!1},[])}function em(){return(0,a.useReducer)(()=>[],[])}function ev(e){return ec("function"==typeof e?e:()=>e)}function eg(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=(0,a.useCallback)(r=>(e.wrapElement&&(r=e.wrapElement(r)),t(r)),[...r,e.wrapElement]);return p(h({},e),{wrapElement:n})}function ey(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,[r,n]=(0,a.useState)(null);return{portalRef:ed(n,t),portalNode:r,domReady:!e||r}}var ex=!1,eb=!1,ew=0,ek=0;function eS(e){(function(e){let t=e.movementX||e.screenX-ew,r=e.movementY||e.screenY-ek;return ew=e.screenX,ek=e.screenY,t||r||!1})(e)&&(eb=!0)}function eC(){eb=!1}function eE(e){let t=a.forwardRef((t,r)=>e(p(h({},t),{ref:r})));return t.displayName=e.displayName||e.name,t}function ej(e,t){return a.memo(e,t)}function eT(e,t){let r,{wrapElement:i,render:o}=t,l=m(t,["wrapElement","render"]),s=ed(t.ref,o&&(0,a.isValidElement)(o)&&("ref"in o.props||"ref"in o)?h({},o.props).ref||o.ref:null);if(a.isValidElement(o)){let e=p(h({},o.props),{ref:s});r=a.cloneElement(o,function(e,t){let r=h({},e);for(let n in t){if(!T(t,n))continue;if("className"===n){let n="className";r[n]=e[n]?"".concat(e[n]," ").concat(t[n]):t[n];continue}if("style"===n){let n="style";r[n]=e[n]?h(h({},e[n]),t[n]):t[n];continue}let a=t[n];if("function"==typeof a&&n.startsWith("on")){let t=e[n];if("function"==typeof t){r[n]=function(){for(var e=arguments.length,r=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return e(t)};return t.displayName=e.name,t}function eR(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=a.createContext(void 0),i=a.createContext(void 0),o=()=>a.useContext(r),l=t=>e.reduceRight((e,r)=>(0,n.jsx)(r,p(h({},t),{children:e})),(0,n.jsx)(r.Provider,h({},t)));return{context:r,scopedContext:i,useContext:o,useScopedContext:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=a.useContext(i),r=o();return e?t:t||r},useProviderContext:()=>{let e=a.useContext(i),t=o();if(!e||e!==t)return t},ContextProvider:l,ScopedContextProvider:e=>(0,n.jsx)(l,p(h({},e),{children:t.reduceRight((t,r)=>(0,n.jsx)(r,p(h({},e),{children:t})),(0,n.jsx)(i.Provider,h({},e)))}))}}var eP=eR(),eN=eP.useContext;eP.useScopedContext,eP.useProviderContext;var eM=eR([eP.ContextProvider],[eP.ScopedContextProvider]),eO=eM.useContext;eM.useScopedContext;var eD=eM.useProviderContext,eL=eM.ContextProvider,eI=eM.ScopedContextProvider,eV=(0,a.createContext)(void 0),eF=(0,a.createContext)(void 0),e_=eR([eL],[eI]),ez=e_.useContext;function eB(e,t){let r=e.__unstableInternals;return P(r,"Invalid store"),r[t]}function eH(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n2&&void 0!==arguments[2]?arguments[2]:d;return r.add(t),p.set(t,e),()=>{var e;null==(e=h.get(t))||e(),h.delete(t),p.delete(t),r.delete(t)}},v=function(e,t){var n,l;let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!T(a,e))return;let c=(l=a[e],"function"==typeof t?t("function"==typeof l?l():l):t);if(c===a[e])return;if(!s)for(let t of r)null==(n=null==t?void 0:t.setState)||n.call(t,e,c);let m=a;a=C(S({},a),{[e]:c});let v=Symbol();o=v,u.add(e);let g=(t,r,n)=>{var i;let o=p.get(t);(!o||o.some(t=>n?n.has(t):t===e))&&(null==(i=h.get(t))||i(),h.set(t,t(a,r)))};for(let e of d)g(e,m);queueMicrotask(()=>{if(o!==v)return;let e=a;for(let e of f)g(e,i,u);i=e,u.clear()})},g={getState:()=>a,setState:v,__unstableInternals:{setup:e=>(c.add(e),()=>c.delete(e)),init:()=>{let e=s.size,t=Symbol();s.add(t);let n=()=>{s.delete(t),s.size||l()};if(e)return n;let i=Object.keys(a).map(e=>A(...r.map(t=>{var r;let n=null==(r=null==t?void 0:t.getState)?void 0:r.call(t);if(n&&T(n,e))return eq(t,[e],t=>{v(e,t[e],!0)})}))),o=[];for(let e of c)o.push(e());return l=A(...i,...o,...r.map(eW)),n},subscribe:(e,t)=>m(e,t),sync:(e,t)=>(h.set(t,t(a,a)),m(e,t)),batch:(e,t)=>(h.set(t,t(a,i)),m(e,t,f)),pick:e=>eH(function(e,t){let r={};for(let n of t)T(e,n)&&(r[n]=e[n]);return r}(a,e),g),omit:e=>eH(function(e,t){let r=S({},e);for(let e of t)T(r,e)&&delete r[e];return r}(a,e),g)}};return g}function eU(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n()=>{};function eQ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R,r=a.useCallback(t=>e?eK(e,null,t):eZ(),[e]),n=()=>{let r="string"==typeof t?t:null,n="function"==typeof t?t:null,a=null==e?void 0:e.getState();return n?n(a):a&&r&&T(a,r)?a[r]:void 0};return eX(r,n,n)}function eJ(e,t){let r=a.useRef({}),n=a.useCallback(t=>e?eK(e,null,t):eZ(),[e]),i=()=>{let n=null==e?void 0:e.getState(),a=!1,i=r.current;for(let e in t){let r=t[e];if("function"==typeof r){let t=r(n);t!==i[e]&&(i[e]=t,a=!0)}if("string"==typeof r){if(!n||!T(n,r))continue;let t=n[r];t!==i[e]&&(i[e]=t,a=!0)}}return a&&(r.current=h({},i)),r.current};return eX(n,i,i)}function e0(e,t,r,n){let i=T(t,r)?t[r]:void 0,o=function(e){let t=(0,a.useRef)(e);return eu(()=>{t.current=e}),t}({value:i,setValue:n?t[n]:void 0});eu(()=>eq(e,[r],(e,t)=>{let{value:n,setValue:a}=o.current;a&&e[r]!==t[r]&&e[r]!==n&&a(e[r])}),[e,r]),eu(()=>{if(void 0!==i)return e.setState(r,i),e$(e,[r],()=>{void 0!==i&&e.setState(r,i)})})}function e1(e,t){let[r,n]=a.useState(()=>e(t));eu(()=>eW(r),[r]);let i=a.useCallback(e=>eQ(r,e),[r]);return[a.useMemo(()=>p(h({},r),{useState:i}),[r,i]),ec(()=>{n(r=>e(h(h({},t),r.getState())))})]}function e2(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=eY(e.store,eG(e.disclosure,["contentElement","disclosureElement"])),r=null==t?void 0:t.getState(),n=D(e.open,null==r?void 0:r.open,e.defaultOpen,!1),a=D(e.animated,null==r?void 0:r.animated,!1),i=eH({open:n,animated:a,animating:!!a&&n,mounted:n,contentElement:D(null==r?void 0:r.contentElement,null),disclosureElement:D(null==r?void 0:r.disclosureElement,null)},t);return eU(i,()=>eq(i,["animated","animating"],e=>{e.animated||i.setState("animating",!1)})),eU(i,()=>eK(i,["open"],()=>{i.getState().animated&&i.setState("animating",!0)})),eU(i,()=>eq(i,["open","animating"],e=>{i.setState("mounted",e.open||e.animating)})),C(S({},i),{disclosure:e.disclosure,setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",e=>!e),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function e5(e,t,r){return ep(t,[r.store,r.disclosure]),e0(e,r,"open","setOpen"),e0(e,r,"mounted","setMounted"),e0(e,r,"animated"),Object.assign(e,{disclosure:r.disclosure})}function e3(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e2(e)}function e6(e){let t=[];for(let r of e)t.push(...r);return t}function e4(e){return e.slice().reverse()}var e7={id:null};function e8(e,t){return e.find(e=>t?!e.disabled&&e.id!==t:!e.disabled)}function e9(e,t){return e.filter(e=>e.rowId===t)}function te(e){let t=[];for(let r of e){let e=t.find(e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===r.rowId});e?e.push(r):t.push([r])}return t}function tt(e){let t=0;for(let{length:r}of e)r>t&&(t=r);return t}var tr=Q()&&X();function tn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var{tag:t}=e,r=E(e,["tag"]);let n=eY(r.store,function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},r=null==(e=t.store)?void 0:e.getState(),n=function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.store;let n=null==(e=r.store)?void 0:e.getState(),a=D(r.items,null==n?void 0:n.items,r.defaultItems,[]),i=new Map(a.map(e=>[e.id,e])),o={items:a,renderedItems:D(null==n?void 0:n.renderedItems,[])},l=null==(t=r.store)?void 0:t.__unstablePrivateStore,s=eH({items:a,renderedItems:o.renderedItems},l),u=eH(o,r.store),c=e=>{let t=function(e,t){let r=e.map((e,t)=>[t,e]),n=!1;return(r.sort((e,r)=>{var a;let[i,o]=e,[l,s]=r,u=t(o),c=t(s);return u!==c&&u&&c?(a=u,c.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING)?(i>l&&(n=!0),-1):(i{let[t,r]=e;return r}):e}(e,e=>e.element);s.setState("renderedItems",t),u.setState("renderedItems",t)};eU(u,()=>eW(s)),eU(s,()=>e$(s,["items"],e=>{u.setState("items",e.items)})),eU(s,()=>e$(s,["renderedItems"],e=>{let t=!0,r=requestAnimationFrame(()=>{let{renderedItems:t}=u.getState();e.renderedItems!==t&&c(e.renderedItems)});if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(r);let n=new IntersectionObserver(()=>{if(t){t=!1;return}cancelAnimationFrame(r),r=requestAnimationFrame(()=>c(e.renderedItems))},{root:function(e){var t;let r=e.find(e=>!!e.element),n=[...e].reverse().find(e=>!!e.element),a=null==(t=null==r?void 0:r.element)?void 0:t.parentElement;for(;a&&(null==n?void 0:n.element);){let e=a;if(n&&e.contains(n.element))return a;a=a.parentElement}return V(a).body}(e.renderedItems)});for(let t of e.renderedItems)t.element&&n.observe(t.element);return()=>{cancelAnimationFrame(r),n.disconnect()}}));let d=function(e,t){let r,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t(t=>{let n=t.findIndex(t=>{let{id:r}=t;return r===e.id}),a=t.slice();if(-1!==n){let o=S(S({},r=t[n]),e);a[n]=o,i.set(e.id,o)}else a.push(e),i.set(e.id,e);return a}),()=>{t(t=>{if(!r)return n&&i.delete(e.id),t.filter(t=>{let{id:r}=t;return r!==e.id});let a=t.findIndex(t=>{let{id:r}=t;return r===e.id});if(-1===a)return t;let o=t.slice();return o[a]=r,i.set(e.id,r),o})}},f=e=>d(e,e=>s.setState("items",e),!0);return C(S({},u),{registerItem:f,renderItem:e=>A(f(e),d(e,e=>s.setState("renderedItems",e))),item:e=>{if(!e)return null;let t=i.get(e);if(!t){let{items:r}=s.getState();(t=r.find(t=>t.id===e))&&i.set(e,t)}return t||null},__unstablePrivateStore:s})}(t),a=D(t.activeId,null==r?void 0:r.activeId,t.defaultActiveId),i=eH(C(S({},n.getState()),{id:D(t.id,null==r?void 0:r.id,"id-".concat(Math.random().toString(36).slice(2,8))),activeId:a,baseElement:D(null==r?void 0:r.baseElement,null),includesBaseElement:D(t.includesBaseElement,null==r?void 0:r.includesBaseElement,null===a),moves:D(null==r?void 0:r.moves,0),orientation:D(t.orientation,null==r?void 0:r.orientation,"both"),rtl:D(t.rtl,null==r?void 0:r.rtl,!1),virtualFocus:D(t.virtualFocus,null==r?void 0:r.virtualFocus,!1),focusLoop:D(t.focusLoop,null==r?void 0:r.focusLoop,!1),focusWrap:D(t.focusWrap,null==r?void 0:r.focusWrap,!1),focusShift:D(t.focusShift,null==r?void 0:r.focusShift,!1)}),n,t.store);eU(i,()=>eq(i,["renderedItems","activeId"],e=>{i.setState("activeId",t=>{var r;return void 0!==t?t:null==(r=e8(e.renderedItems))?void 0:r.id})}));let o=function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"next",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.getState(),{skip:o=0,activeId:l=a.activeId,focusShift:s=a.focusShift,focusLoop:u=a.focusLoop,focusWrap:c=a.focusWrap,includesBaseElement:d=a.includesBaseElement,renderedItems:f=a.renderedItems,rtl:h=a.rtl}=n,p="up"===r||"down"===r,m="next"===r||"down"===r,v=p?e6(function(e,t,r){let n=tt(e);for(let a of e)for(let e=0;ee.id===l);if(!g)return null==(t=e8(v))?void 0:t.id;let y=v.some(e=>e.rowId),x=v.indexOf(g),b=v.slice(x+1),w=e9(b,g.rowId);if(o){let e=w.filter(e=>l?!e.disabled&&e.id!==l:!e.disabled),t=e.slice(o)[0]||e[e.length-1];return null==t?void 0:t.id}let k=u&&(p?"horizontal"!==u:"vertical"!==u),E=y&&c&&(p?"horizontal"!==c:"vertical"!==c),j=m?(!y||p)&&k&&d:!!p&&d;if(k){let e=e8(function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.findIndex(e=>e.id===t);return[...e.slice(n+1),...r?[e7]:[],...e.slice(0,n)]}(E&&!j?v:e9(v,g.rowId),l,j),l);return null==e?void 0:e.id}if(E){let e=e8(j?w:b,l);return j?(null==e?void 0:e.id)||null:null==e?void 0:e.id}let T=e8(w,l);return!T&&j?null:null==T?void 0:T.id};return C(S(S({},n),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",e=>e+1))},first:()=>{var e;return null==(e=e8(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=e8(e4(i.getState().renderedItems)))?void 0:e.id},next:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),o("next",e)),previous:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),o("previous",e)),down:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),o("down",e)),up:e=>(void 0!==e&&"number"==typeof e&&(e={skip:e}),o("up",e))})}(C(S({},r),{activeId:o,includesBaseElement:D(r.includesBaseElement,null==i?void 0:i.includesBaseElement,!0),orientation:D(r.orientation,null==i?void 0:i.orientation,"vertical"),focusLoop:D(r.focusLoop,null==i?void 0:i.focusLoop,!0),focusWrap:D(r.focusWrap,null==i?void 0:i.focusWrap,!0),virtualFocus:D(r.virtualFocus,null==i?void 0:i.virtualFocus,!0)})),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var{popover:t}=e,r=E(e,["popover"]);let n=eY(r.store,eG(t,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),a=null==n?void 0:n.getState(),i=e3(C(S({},r),{store:n})),o=D(r.placement,null==a?void 0:a.placement,"bottom"),l=eH(C(S({},i.getState()),{placement:o,currentPlacement:o,anchorElement:D(null==a?void 0:a.anchorElement,null),popoverElement:D(null==a?void 0:a.popoverElement,null),arrowElement:D(null==a?void 0:a.arrowElement,null),rendered:Symbol("rendered")}),i,n);return C(S(S({},i),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}(C(S({},r),{placement:D(r.placement,null==i?void 0:i.placement,"bottom-start")})),u=D(r.value,null==i?void 0:i.value,r.defaultValue,""),c=D(r.selectedValue,null==i?void 0:i.selectedValue,null==a?void 0:a.values,r.defaultSelectedValue,""),d=Array.isArray(c),f=C(S(S({},l.getState()),s.getState()),{value:u,selectedValue:c,resetValueOnSelect:D(r.resetValueOnSelect,null==i?void 0:i.resetValueOnSelect,d),resetValueOnHide:D(r.resetValueOnHide,null==i?void 0:i.resetValueOnHide,d&&!t),activeValue:null==i?void 0:i.activeValue}),h=eH(f,l,s,n);return tr&&eU(h,()=>eq(h,["virtualFocus"],()=>{h.setState("virtualFocus",!1)})),eU(h,()=>{if(t)return A(eq(h,["selectedValue"],e=>{Array.isArray(e.selectedValue)&&t.setValues(e.selectedValue)}),eq(t,["values"],e=>{h.setState("selectedValue",e.values)}))}),eU(h,()=>eq(h,["resetValueOnHide","mounted"],e=>{e.resetValueOnHide&&(e.mounted||h.setState("value",u))})),eU(h,()=>eq(h,["open"],e=>{e.open||(h.setState("activeId",o),h.setState("moves",0))})),eU(h,()=>eq(h,["moves","activeId"],(e,t)=>{e.moves===t.moves&&h.setState("activeValue",void 0)})),eU(h,()=>e$(h,["moves","renderedItems"],(e,t)=>{if(e.moves===t.moves)return;let{activeId:r}=h.getState(),n=l.item(r);h.setState("activeValue",null==n?void 0:n.value)})),C(S(S(S({},s),l),h),{tag:t,setValue:e=>h.setState("value",e),resetValue:()=>h.setState("value",f.value),setSelectedValue:e=>h.setState("selectedValue",e)})}function ta(){var e,t,r,n,a,i;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[l,s]=e1(tn,o=function(e){var t;let r=ez();return e=p(h({},e),{tag:void 0!==e.tag?e.tag:r}),h({id:ef((t=e).id)},t)}(o));return ep(s,[(e=o).tag]),e0(l,e,"value","setValue"),e0(l,e,"selectedValue","setSelectedValue"),e0(l,e,"resetValueOnHide"),e0(l,e,"resetValueOnSelect"),Object.assign((n=l,ep(a=s,[(i=e).popover]),e0(n,i,"placement"),t=e5(n,a,i),r=t,ep(s,[e.store]),e0(r,e,"items","setItems"),e0(t=r,e,"activeId","setActiveId"),e0(t,e,"includesBaseElement"),e0(t,e,"virtualFocus"),e0(t,e,"orientation"),e0(t,e,"rtl"),e0(t,e,"focusLoop"),e0(t,e,"focusWrap"),e0(t,e,"focusShift"),t),{tag:e.tag})}var ti="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function to(e){return!(!e.matches(ti)||!W(e)||e.closest("[inert]"))}function tl(e){if(!to(e)||0>Number.parseInt(e.getAttribute("tabindex")||"0",10))return!1;if(!("form"in e)||!e.form||e.checked||"radio"!==e.type)return!0;let t=e.form.elements.namedItem(e.name);if(!t||!("length"in t))return!0;let r=_(e);return!r||r===e||!("form"in r)||r.form!==e.form||r.name!==e.name}function ts(e,t){let r=Array.from(e.querySelectorAll(ti));t&&r.unshift(e);let n=r.filter(to);return n.forEach((e,t)=>{if(B(e)&&e.contentDocument){let r=e.contentDocument.body;n.splice(t,1,...ts(r))}}),n}function tu(e,t,r){let n=Array.from(e.querySelectorAll(ti)),a=n.filter(tl);return(t&&tl(e)&&a.unshift(e),a.forEach((e,t)=>{if(B(e)&&e.contentDocument){let n=tu(e.contentDocument.body,!1,r);a.splice(t,1,...n)}}),!a.length&&r)?n:a}function tc(e,t){return function(e,t,r,n){let a=_(e),i=ts(e,t),o=i.indexOf(a),l=i.slice(o+1);return l.find(tl)||(r?i.find(tl):null)||(n?l[0]:null)||null}(document.body,!1,e,t)}function td(e,t){return function(e,t,r,n){let a=_(e),i=ts(e,t).reverse(),o=i.indexOf(a),l=i.slice(o+1);return l.find(tl)||(r?i.find(tl):null)||(n?l[0]:null)||null}(document.body,!1,e,t)}function tf(e){let t=_(e);if(!t)return!1;if(t===e)return!0;let r=t.getAttribute("aria-activedescendant");return!!r&&r===e.id}function th(e){let t=_(e);if(!t)return!1;if(z(e,t))return!0;let r=t.getAttribute("aria-activedescendant");return!!r&&"id"in e&&(r===e.id||!!e.querySelector("#".concat(CSS.escape(r))))}function tp(e){!th(e)&&to(e)&&e.focus()}function tm(e){let t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var tv=Symbol("composite-hover"),tg=eA(function(e){var{store:t,focusOnHover:r=!0,blurOnHoverEnd:n=!!r}=e,i=m(e,["store","focusOnHover","blurOnHoverEnd"]);let o=eO();P(t=t||o,!1);let l=((0,a.useEffect)(()=>{ex||(ei("mousemove",eS,!0),ei("mousedown",eC,!0),ei("mouseup",eC,!0),ei("keydown",eC,!0),ei("scroll",eC,!0),ex=!0)},[]),ec(()=>eb)),s=i.onMouseMove,u=ev(r),c=ec(e=>{if((null==s||s(e),!e.defaultPrevented&&l())&&u(e)){if(!th(e.currentTarget)){let e=null==t?void 0:t.getState().baseElement;e&&!tf(e)&&e.focus()}null==t||t.setActiveId(e.currentTarget.id)}}),d=i.onMouseLeave,f=ev(n),v=ec(e=>{var r;null==d||d(e),!(e.defaultPrevented||!l()||function(e){let t=tm(e);return!!t&&z(e.currentTarget,t)}(e)||function(e){let t=tm(e);if(!t)return!1;do{if(T(t,tv)&&t[tv])return!0;t=t.parentElement}while(t);return!1}(e))&&u(e)&&f(e)&&(null==t||t.setActiveId(null),null==(r=null==t?void 0:t.getState().baseElement)||r.focus())}),g=(0,a.useCallback)(e=>{e&&(e[tv]=!0)},[]);return O(i=p(h({},i),{ref:ed(g,i.ref),onMouseMove:c,onMouseLeave:v}))});function ty(e,t){return t&&e.item(t)||null}ej(eE(function(e){return eT("div",tg(e))}));var tx=Symbol("FOCUS_SILENTLY");function tb(e,t,r){if(!t||t===r)return!1;let n=e.item(t.id);return!!n&&(!r||n.element!==r)}var tw=eA(function(e){var{store:t,shouldRegisterItem:r=!0,getItem:n=R,element:i}=e,o=m(e,["store","shouldRegisterItem","getItem","element"]);let l=eN();t=t||l;let s=ef(o.id),u=(0,a.useRef)(i);return(0,a.useEffect)(()=>{let e=u.current;if(!s||!e||!r)return;let a=n({id:s,element:e});return null==t?void 0:t.renderItem(a)},[s,r,n,t]),O(o=p(h({},o),{ref:ed(u,o.ref)}))});eE(function(e){return eT("div",tw(e))});var tk=(0,a.createContext)(!0),tS=Q(),tC=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],tE=Symbol("safariFocusAncestor");function tj(e){return"input"===e.tagName.toLowerCase()&&!!e.type&&("radio"===e.type||"checkbox"===e.type)}function tT(e,t){return ec(r=>{null==e||e(r),!r.defaultPrevented&&t&&(r.stopPropagation(),r.preventDefault())})}var tA=!1,tR=!0;function tP(e){let t=e.target;t&&"hasAttribute"in t&&!t.hasAttribute("data-focus-visible")&&(tR=!1)}function tN(e){e.metaKey||e.ctrlKey||e.altKey||(tR=!0)}var tM=eA(function(e){var t,r,n,i,o,{focusable:l=!0,accessibleWhenDisabled:s,autoFocus:u,onFocusVisible:c}=e,d=m(e,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);let f=(0,a.useRef)(null);(0,a.useEffect)(()=>{l&&(tA||(ei("mousedown",tP,!0),ei("keydown",tN,!0),tA=!0))},[l]),tS&&(0,a.useEffect)(()=>{if(!l)return;let e=f.current;if(!e||!tj(e))return;let t="labels"in e?e.labels:null;if(!t)return;let r=()=>queueMicrotask(()=>e.focus());for(let e of t)e.addEventListener("mouseup",r);return()=>{for(let e of t)e.removeEventListener("mouseup",r)}},[l]);let v=l&&M(d),g=!!v&&!s,[y,x]=(0,a.useState)(!1);(0,a.useEffect)(()=>{l&&g&&y&&x(!1)},[l,g,y]),(0,a.useEffect)(()=>{if(!l||!y)return;let e=f.current;if(!e||"undefined"==typeof IntersectionObserver)return;let t=new IntersectionObserver(()=>{to(e)||x(!1)});return t.observe(e),()=>t.disconnect()},[l,y]);let b=tT(d.onKeyPressCapture,v),w=tT(d.onMouseDownCapture,v),k=tT(d.onClickCapture,v),S=d.onMouseDown,C=ec(e=>{if(null==S||S(e),e.defaultPrevented||!l)return;let t=e.currentTarget;if(!tS||J(e)||!H(t)&&!tj(t))return;let r=!1,n=()=>{r=!0};t.addEventListener("focusin",n,{capture:!0,once:!0});let a=function(e){for(;e&&!to(e);)e=e.closest(ti);return e||null}(t.parentElement);a&&(a[tE]=!0),ea(t,"mouseup",()=>{t.removeEventListener("focusin",n,!0),a&&(a[tE]=!1),r||tp(t)})}),E=(e,t)=>{if(t&&(e.currentTarget=t),!l)return;let r=e.currentTarget;r&&tf(r)&&(null==c||c(e),e.defaultPrevented||(r.dataset.focusVisible="true",x(!0)))},j=d.onKeyDownCapture,T=ec(e=>{if(null==j||j(e),e.defaultPrevented||!l||y||e.metaKey||e.altKey||e.ctrlKey||!ee(e))return;let t=e.currentTarget;ea(t,"focusout",()=>E(e,t))}),A=d.onFocusCapture,R=ec(e=>{if(null==A||A(e),e.defaultPrevented||!l)return;if(!ee(e))return void x(!1);let t=e.currentTarget;tR||function(e){let{tagName:t,readOnly:r,type:n}=e;return"TEXTAREA"===t&&!r||"SELECT"===t&&!r||("INPUT"!==t||r?!!e.isContentEditable||"combobox"===e.getAttribute("role")&&!!e.dataset.name:tC.includes(n))}(e.target)?ea(e.target,"focusout",()=>E(e,t)):x(!1)}),P=d.onBlur,N=ec(e=>{null==P||P(e),l&&en(e)&&(e.currentTarget.removeAttribute("data-focus-visible"),x(!1))}),D=(0,a.useContext)(tk),L=ec(e=>{l&&u&&e&&D&&queueMicrotask(()=>{!tf(e)&&to(e)&&e.focus()})}),I=eh(f),V=l&&(!I||"button"===I||"summary"===I||"input"===I||"select"===I||"textarea"===I||"a"===I),F=l&&(!I||"button"===I||"input"===I||"select"===I||"textarea"===I),_=d.style,z=(0,a.useMemo)(()=>g?h({pointerEvents:"none"},_):_,[g,_]);return d=p(h({"data-focus-visible":l&&y||void 0,"data-autofocus":u||void 0,"aria-disabled":v||void 0},d),{ref:ed(f,L,d.ref),style:z,tabIndex:(t=l,r=g,n=V,i=F,o=d.tabIndex,t?r?n&&!i?-1:void 0:n?o:o||0:o),disabled:!!F&&!!g||void 0,contentEditable:v?void 0:d.contentEditable,onKeyPressCapture:b,onClickCapture:k,onMouseDownCapture:w,onMouseDown:C,onKeyDownCapture:T,onFocusCapture:R,onBlur:N}),O(d)});function tO(e){if(!e.isTrusted)return!1;let t=e.currentTarget;return"Enter"===e.key?H(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(H(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}eE(function(e){return eT("div",tM(e))});var tD=Symbol("command"),tL=eA(function(e){var{clickOnEnter:t=!0,clickOnSpace:r=!0}=e,n=m(e,["clickOnEnter","clickOnSpace"]);let i=(0,a.useRef)(null),[o,l]=(0,a.useState)(!1);(0,a.useEffect)(()=>{i.current&&l(H(i.current))},[]);let[s,u]=(0,a.useState)(!1),c=(0,a.useRef)(!1),d=M(n),[f,v]=function(e,t,r){let n=e.onLoadedMetadataCapture,i=(0,a.useMemo)(()=>Object.assign(()=>{},p(h({},n),{[t]:r})),[n,t,r]);return[null==n?void 0:n[t],{onLoadedMetadataCapture:i}]}(n,tD,!0),g=n.onKeyDown,y=ec(e=>{null==g||g(e);let n=e.currentTarget;if(e.defaultPrevented||f||d||!ee(e)||K(n)||n.isContentEditable)return;let a=t&&"Enter"===e.key,i=r&&" "===e.key,o="Enter"===e.key&&!t,l=" "===e.key&&!r;if(o||l)return void e.preventDefault();if(a||i){let t=tO(e);if(a){if(!t){e.preventDefault();let{view:t}=e,r=m(e,["view"]),a=()=>er(n,r);I&&/firefox\//i.test(navigator.userAgent)?ea(n,"keyup",a):queueMicrotask(a)}}else i&&(c.current=!0,t||(e.preventDefault(),u(!0)))}}),x=n.onKeyUp,b=ec(e=>{if(null==x||x(e),e.defaultPrevented||f||d||e.metaKey)return;let t=r&&" "===e.key;if(c.current&&t&&(c.current=!1,!tO(e))){e.preventDefault(),u(!1);let t=e.currentTarget,{view:r}=e,n=m(e,["view"]);queueMicrotask(()=>er(t,n))}});return n=p(h(h({"data-active":s||void 0,type:o?"button":void 0},v),n),{ref:ed(i,n.ref),onKeyDown:y,onKeyUp:b}),n=tM(n)});function tI(e,t,r){var n;let a,i,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!r)return;let{renderedItems:l}=t.getState(),s=G(e);if(!s)return;let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.clientHeight,{top:n}=e.getBoundingClientRect(),a=1.5*Math.max(.875*r,r-40),i=t?r-a+n:a+n;return"HTML"===e.tagName?i+e.scrollTop:i}(s,o);for(let e=0;e1&&void 0!==arguments[1]&&arguments[1],{top:r}=e.getBoundingClientRect();return t?r+e.clientHeight:r}(s,o)-u,d=Math.abs(c);if(o&&c<=0||!o&&c>=0){void 0!==i&&ir||(e&&(null==y?void 0:y.baseElement)&&y.baseElement===e.baseElement?y.id:void 0),baseElement:e=>(null==e?void 0:e.baseElement)||void 0,isActiveItem:e=>!!e&&e.activeId===v,ariaSetSize:e=>null!=u?u:e&&(null==y?void 0:y.ariaSetSize)&&y.baseElement===e.baseElement?y.ariaSetSize:void 0,ariaPosInSet(e){if(null!=c)return c;if(!e||!(null==y?void 0:y.ariaPosInSet)||y.baseElement!==e.baseElement)return;let t=e.renderedItems.filter(e=>e.rowId===b);return y.ariaPosInSet+t.findIndex(e=>e.id===v)},isTabbable(e){if(!(null==e?void 0:e.renderedItems.length))return!0;if(e.virtualFocus)return!1;if(l)return!0;if(null===e.activeId)return!1;let r=null==t?void 0:t.item(e.activeId);return null!=r&&!!r.disabled||null==r||!r.element||e.activeId===v}}),j=(0,a.useCallback)(e=>{var t;let r=p(h({},e),{id:v||e.id,rowId:b,disabled:!!x,children:null==(t=e.element)?void 0:t.textContent});return s?s(r):r},[v,b,x,s]),T=d.onFocus,A=(0,a.useRef)(!1),R=ec(e=>{var r,n;if(null==T||T(e),e.defaultPrevented||J(e)||!v||!t||(r=t,!ee(e)&&tb(r,e.target)))return;let{virtualFocus:a,baseElement:i}=t.getState();if(t.setActiveId(v),q(e.currentTarget)&&function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(K(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){let r=V(e).getSelection();null==r||r.selectAllChildren(e),t&&(null==r||r.collapseToEnd())}}(e.currentTarget),a&&ee(e))!q(n=e.currentTarget)&&("INPUT"!==n.tagName||H(n))&&(null==i?void 0:i.isConnected)&&((Q()&&e.currentTarget.hasAttribute("data-autofocus")&&e.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),A.current=!0,e.relatedTarget===i||tb(t,e.relatedTarget))?(i[tx]=!0,i.focus({preventScroll:!0})):i.focus())}),P=d.onBlurCapture,N=ec(e=>{if(null==P||P(e),e.defaultPrevented)return;let r=null==t?void 0:t.getState();(null==r?void 0:r.virtualFocus)&&A.current&&(A.current=!1,e.preventDefault(),e.stopPropagation())}),D=d.onKeyDown,L=ev(i),I=ev(o),F=ec(e=>{if(null==D||D(e),e.defaultPrevented||!ee(e)||!t)return;let{currentTarget:r}=e,n=t.getState(),a=t.item(v),i=!!(null==a?void 0:a.rowId),o="horizontal"!==n.orientation,l="vertical"!==n.orientation,s=()=>!(!i&&!l&&n.baseElement&&K(n.baseElement)),u={ArrowUp:(i||o)&&t.up,ArrowRight:(i||l)&&t.next,ArrowDown:(i||o)&&t.down,ArrowLeft:(i||l)&&t.previous,Home:()=>{if(s())return!i||e.ctrlKey?null==t?void 0:t.first():null==t?void 0:t.previous(-1)},End:()=>{if(s())return!i||e.ctrlKey?null==t?void 0:t.last():null==t?void 0:t.next(-1)},PageUp:()=>tI(r,t,null==t?void 0:t.up,!0),PageDown:()=>tI(r,t,null==t?void 0:t.down)}[e.key];if(u){if(q(r)){let t=$(r),n=l&&"ArrowLeft"===e.key,a=l&&"ArrowRight"===e.key,i=o&&"ArrowUp"===e.key,s=o&&"ArrowDown"===e.key;if(a||s){let{length:e}=function(e){if(K(e))return e.value;if(e.isContentEditable){let t=V(e).createRange();return t.selectNodeContents(e),t.toString()}return""}(r);if(t.end!==e)return}else if((n||i)&&0!==t.start)return}let n=u();if(L(e)||void 0!==n){if(!I(e))return;e.preventDefault(),t.move(n)}}}),_=(0,a.useMemo)(()=>({id:v,baseElement:w}),[v,w]);return d=tL(d=p(h({id:v,"data-active-item":k||void 0},d=eg(d,e=>(0,n.jsx)(eV.Provider,{value:_,children:e}),[_])),{ref:ed(g,d.ref),tabIndex:E?d.tabIndex:-1,onFocus:R,onBlurCapture:N,onKeyDown:F})),d=tw(p(h({store:t},d),{getItem:j,shouldRegisterItem:!!v&&d.shouldRegisterItem})),O(p(h({},d),{"aria-setsize":S,"aria-posinset":C}))});ej(eE(function(e){return eT("button",tV(e))}));var tF=eR();tF.useContext,tF.useScopedContext;var t_=tF.useProviderContext,tz=eR([tF.ContextProvider],[tF.ScopedContextProvider]);tz.useContext,tz.useScopedContext;var tB=tz.useProviderContext,tH=tz.ContextProvider,tU=tz.ScopedContextProvider,tW=(0,a.createContext)(void 0),tK=(0,a.createContext)(void 0),tq=eR([tH],[tU]);tq.useContext,tq.useScopedContext;var t$=tq.useProviderContext,tG=tq.ContextProvider,tY=tq.ScopedContextProvider,tX=(0,a.createContext)(void 0),tZ=eR([tG,eL],[tY,eI]),tQ=tZ.useContext,tJ=tZ.useScopedContext,t0=tZ.useProviderContext,t1=tZ.ContextProvider,t2=tZ.ScopedContextProvider,t5=(0,a.createContext)(void 0),t3=(0,a.createContext)(!1),t6=eA(function(e){var t,r,{store:i,value:o,hideOnClick:l,setValueOnClick:s,selectValueOnClick:u=!0,resetValueOnSelect:c,focusOnHover:d=!1,moveOnKeyPress:f=!0,getItem:v}=e,g=m(e,["store","value","hideOnClick","setValueOnClick","selectValueOnClick","resetValueOnSelect","focusOnHover","moveOnKeyPress","getItem"]);let y=tJ();P(i=i||y,!1);let{resetValueOnSelectState:x,multiSelectable:b,selected:w}=eJ(i,{resetValueOnSelectState:"resetValueOnSelect",multiSelectable:e=>Array.isArray(e.selectedValue),selected:e=>(function(e,t){if(null!=t)return null!=e&&(Array.isArray(e)?e.includes(t):e===t)})(e.selectedValue,o)}),k=(0,a.useCallback)(e=>{let t=p(h({},e),{value:o});return v?v(t):t},[o,v]);s=null!=s?s:!b,l=null!=l?l:null!=o&&!b;let S=g.onClick,C=ev(s),E=ev(u),j=ev(null!=(r=null!=c?c:x)?r:b),T=ev(l),A=ec(e=>{null==S||S(e),!(e.defaultPrevented||function(e){let t=e.currentTarget;if(!t)return!1;let r=t.tagName.toLowerCase();return!!e.altKey&&("a"===r||"button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type)}(e))&&!function(e){let t=e.currentTarget;if(!t)return!1;let r=Z();if(r&&!e.metaKey||!r&&!e.ctrlKey)return!1;let n=t.tagName.toLowerCase();return"a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type}(e)&&(null!=o&&(E(e)&&(j(e)&&(null==i||i.resetValue()),null==i||i.setSelectedValue(e=>Array.isArray(e)?e.includes(o)?e.filter(e=>e!==o):[...e,o]:o)),C(e)&&(null==i||i.setValue(o))),T(e)&&(null==i||i.hide()))}),R=g.onKeyDown,N=ec(e=>{if(null==R||R(e),e.defaultPrevented)return;let t=null==i?void 0:i.getState().baseElement;!(!t||tf(t))&&(1===e.key.length||"Backspace"===e.key||"Delete"===e.key)&&(queueMicrotask(()=>t.focus()),K(t)&&(null==i||i.setValue(t.value)))});b&&null!=w&&(g=h({"aria-selected":w},g)),g=eg(g,e=>(0,n.jsx)(t5.Provider,{value:o,children:(0,n.jsx)(t3.Provider,{value:null!=w&&w,children:e})}),[o,w]),g=p(h({role:null!=(t=({menu:"menuitem",listbox:"option",tree:"treeitem"})[(0,a.useContext)(tX)])?t:"option",children:o},g),{onClick:A,onKeyDown:N});let M=ev(f);return g=tV(p(h({store:i},g),{getItem:k,moveOnKeyPress:e=>{if(!M(e))return!1;let t=new Event("combobox-item-move"),r=null==i?void 0:i.getState().baseElement;return null==r||r.dispatchEvent(t),!0}})),g=tg(h({store:i,focusOnHover:d},g))}),t4=ej(eE(function(e){return eT("div",t6(e))}));function t7(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ta(e);return(0,n.jsx)(t1,{value:t,children:e.children})}function t8(e,t,r){return ec(n=>{var a;if(null==t||t(n),n.defaultPrevented||n.isPropagationStopped()||!ee(n)||"Shift"===n.key||"Control"===n.key||"Alt"===n.key||"Meta"===n.key||function(e){let t=e.target;return(!t||!!K(t))&&1===e.key.length&&!e.ctrlKey&&!e.metaKey}(n))return;let i=e.getState(),o=null==(a=ty(e,i.activeId))?void 0:a.element;if(!o)return;let{view:l}=n,s=m(n,["view"]);o!==(null==r?void 0:r.current)&&o.focus(),!function(e,t,r){let n=new KeyboardEvent(t,r);return e.dispatchEvent(n)}(o,n.type,s)&&n.preventDefault(),n.currentTarget.contains(o)&&n.stopPropagation()})}var t9=eA(function(e){var{store:t,composite:r=!0,focusOnMove:i=r,moveOnKeyPress:o=!0}=e,l=m(e,["store","composite","focusOnMove","moveOnKeyPress"]);let s=eD();P(t=t||s,!1);let u=(0,a.useRef)(null),c=(0,a.useRef)(null),d=function(e){let[t,r]=(0,a.useState)(!1),n=(0,a.useCallback)(()=>r(!0),[]),i=e.useState(t=>ty(e,t.activeId));return(0,a.useEffect)(()=>{let e=null==i?void 0:i.element;t&&e&&(r(!1),e.focus({preventScroll:!0}))},[i,t]),n}(t),f=t.useState("moves"),[,v]=function(e){let[t,r]=(0,a.useState)(null);return eu(()=>{if(null==t||!e)return;let r=null;return e(e=>(r=e,t)),()=>{e(r)}},[t,e]),[t,r]}(r?t.setBaseElement:null);(0,a.useEffect)(()=>{var e;if(!t||!f||!r||!i)return;let{activeId:n}=t.getState(),a=null==(e=ty(t,n))?void 0:e.element;a&&("scrollIntoView"in a?(a.focus({preventScroll:!0}),a.scrollIntoView(S({block:"nearest",inline:"nearest"},void 0))):a.focus())},[t,f,r,i]),eu(()=>{if(!t||!f||!r)return;let{baseElement:e,activeId:n}=t.getState();if(null!==n||!e)return;let a=c.current;c.current=null,a&&et(a,{relatedTarget:e}),tf(e)||e.focus()},[t,f,r]);let g=t.useState("activeId"),y=t.useState("virtualFocus");eu(()=>{var e;if(!t||!r||!y)return;let n=c.current;if(c.current=null,!n)return;let a=(null==(e=ty(t,g))?void 0:e.element)||_(n);a!==n&&et(n,{relatedTarget:a})},[t,g,y,r]);let x=t8(t,l.onKeyDownCapture,c),b=t8(t,l.onKeyUpCapture,c),w=l.onFocusCapture,k=ec(e=>{if(null==w||w(e),e.defaultPrevented||!t)return;let{virtualFocus:r}=t.getState();if(!r)return;let n=e.relatedTarget,a=function(e){let t=e[tx];return delete e[tx],t}(e.currentTarget);ee(e)&&a&&(e.stopPropagation(),c.current=n)}),C=l.onFocus,E=ec(e=>{if(null==C||C(e),e.defaultPrevented||!r||!t)return;let{relatedTarget:n}=e,{virtualFocus:a}=t.getState();a?ee(e)&&!tb(t,n)&&queueMicrotask(d):ee(e)&&t.setActiveId(null)}),j=l.onBlurCapture,T=ec(e=>{var r;if(null==j||j(e),e.defaultPrevented||!t)return;let{virtualFocus:n,activeId:a}=t.getState();if(!n)return;let i=null==(r=ty(t,a))?void 0:r.element,o=e.relatedTarget,l=tb(t,o),s=c.current;c.current=null,ee(e)&&l?(o===i?s&&s!==o&&et(s,e):i?et(i,e):s&&et(s,e),e.stopPropagation()):!tb(t,e.target)&&i&&et(i,e)}),A=l.onKeyDown,R=ev(o),N=ec(e=>{var r;if(null==A||A(e),e.nativeEvent.isComposing||e.defaultPrevented||!t||!ee(e))return;let{orientation:n,renderedItems:a,activeId:i}=t.getState(),o=ty(t,i);if(null==(r=null==o?void 0:o.element)?void 0:r.isConnected)return;let l="horizontal"!==n,s="vertical"!==n,u=a.some(e=>!!e.rowId);if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&K(e.currentTarget))return;let c={ArrowUp:(u||l)&&(()=>{if(u){let e=e6(e4(function(e){let t=[];for(let r of e){let e=t.find(e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===r.rowId});e?e.push(r):t.push([r])}return t}(a))).find(e=>!e.disabled);return null==e?void 0:e.id}return null==t?void 0:t.last()}),ArrowRight:(u||s)&&t.first,ArrowDown:(u||l)&&t.first,ArrowLeft:(u||s)&&t.last,Home:t.first,End:t.last,PageUp:t.first,PageDown:t.last}[e.key];if(c){let r=c();if(void 0!==r){if(!R(e))return;e.preventDefault(),t.move(r)}}});return l=eg(l,e=>(0,n.jsx)(eL,{value:t,children:e}),[t]),l=p(h({"aria-activedescendant":t.useState(e=>{var n;if(t&&r&&e.virtualFocus)return null==(n=ty(t,e.activeId))?void 0:n.id})},l),{ref:ed(u,v,l.ref),onKeyDownCapture:x,onKeyUpCapture:b,onFocusCapture:k,onFocus:E,onBlurCapture:T,onKeyDown:N}),l=tM(h({focusable:t.useState(e=>r&&(e.virtualFocus||null===e.activeId))},l))});eE(function(e){return eT("div",t9(e))});var re=eA(function(e){var{store:t}=e,r=m(e,["store"]);let n=t$();return t=t||n,r=p(h({},r),{ref:ed(null==t?void 0:t.setAnchorElement,r.ref)})});function rt(e,t,r){if(!r)return!1;let n=e.find(e=>!e.disabled&&e.value);return(null==n?void 0:n.value)===t}function rr(e,t){return!!t&&null!=e&&(e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),t.length>e.length&&0===t.toLowerCase().indexOf(e.toLowerCase()))}eE(function(e){return eT("div",re(e))});var rn=eA(function(e){var{store:t,focusable:r=!0,autoSelect:n=!1,getAutoSelectId:i,setValueOnChange:o,showMinLength:l=0,showOnChange:s,showOnMouseDown:u,showOnClick:c=u,showOnKeyDown:d,showOnKeyPress:f=d,blurActiveItemOnClick:v,setValueOnClick:g=!0,moveOnKeyPress:y=!0,autoComplete:x="list"}=e,b=m(e,["store","focusable","autoSelect","getAutoSelectId","setValueOnChange","showMinLength","showOnChange","showOnMouseDown","showOnClick","showOnKeyDown","showOnKeyPress","blurActiveItemOnClick","setValueOnClick","moveOnKeyPress","autoComplete"]);let w=t0();P(t=t||w,!1);let k=(0,a.useRef)(null),[S,C]=em(),E=(0,a.useRef)(!1),T=(0,a.useRef)(!1),A=t.useState(e=>e.virtualFocus&&n),R="inline"===x||"both"===x,[M,O]=(0,a.useState)(R);!function(e,t){let r=(0,a.useRef)(!1);eu(()=>{if(r.current)return e();r.current=!0},t),eu(()=>()=>{r.current=!1},[])}(()=>{R&&O(!0)},[R]);let D=t.useState("value"),L=(0,a.useRef)();(0,a.useEffect)(()=>eq(t,["selectedValue","activeId"],(e,t)=>{L.current=t.selectedValue}),[]);let I=t.useState(e=>{var t;if(R&&M){if(e.activeValue&&Array.isArray(e.selectedValue)&&(e.selectedValue.includes(e.activeValue)||(null==(t=L.current)?void 0:t.includes(e.activeValue))))return;return e.activeValue}}),V=t.useState("renderedItems"),F=t.useState("open"),_=t.useState("contentElement"),z=(0,a.useMemo)(()=>{if(!R||!M)return D;if(rt(V,I,A)){if(rr(D,I)){let e=(null==I?void 0:I.slice(D.length))||"";return D+e}return D}return I||D},[R,M,V,I,A,D]);(0,a.useEffect)(()=>{let e=k.current;if(!e)return;let t=()=>O(!0);return e.addEventListener("combobox-item-move",t),()=>{e.removeEventListener("combobox-item-move",t)}},[]),(0,a.useEffect)(()=>{if(!R||!M||!I||!rt(V,I,A)||!rr(D,I))return;let e=j;return queueMicrotask(()=>{let t=k.current;if(!t)return;let{start:r,end:n}=$(t),a=D.length,i=I.length;Y(t,a,i),e=()=>{if(!tf(t))return;let{start:e,end:o}=$(t);e===a&&o===i&&Y(t,r,n)}}),()=>e()},[S,R,M,I,V,A,D]);let B=(0,a.useRef)(null),H=ec(i),U=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!F||!_)return;let e=G(_);if(!e)return;B.current=e;let r=()=>{E.current=!1},n=()=>{if(!t||!E.current)return;let{activeId:e}=t.getState();null!==e&&e!==U.current&&(E.current=!1)},a={passive:!0,capture:!0};return e.addEventListener("wheel",r,a),e.addEventListener("touchmove",r,a),e.addEventListener("scroll",n,a),()=>{e.removeEventListener("wheel",r,!0),e.removeEventListener("touchmove",r,!0),e.removeEventListener("scroll",n,!0)}},[F,_,t]),eu(()=>{D&&(T.current||(E.current=!0))},[D]),eu(()=>{"always"!==A&&F||(E.current=F)},[A,F]);let W=t.useState("resetValueOnSelect");ep(()=>{var e,r;let n=E.current;if(!t||!F||!n&&!W)return;let{baseElement:a,contentElement:i,activeId:o}=t.getState();if(!a||tf(a)){if(null==i?void 0:i.hasAttribute("data-placing")){let e=new MutationObserver(C);return e.observe(i,{attributeFilter:["data-placing"]}),()=>e.disconnect()}if(A&&n){let r=H(V),n=void 0!==r?r:null!=(e=function(e){let t=e.find(e=>{var t;return!e.disabled&&(null==(t=e.element)?void 0:t.getAttribute("role"))!=="tab"});return null==t?void 0:t.id}(V))?e:t.first();U.current=n,t.move(null!=n?n:null)}else{let e=null==(r=t.item(o||t.first()))?void 0:r.element;e&&"scrollIntoView"in e&&e.scrollIntoView({block:"nearest",inline:"nearest"})}}},[t,F,S,D,A,W,H,V]),(0,a.useEffect)(()=>{if(!R)return;let e=k.current;if(!e)return;let r=[e,_].filter(e=>!!e),n=e=>{r.every(t=>en(e,t))&&(null==t||t.setValue(z))};for(let e of r)e.addEventListener("focusout",n);return()=>{for(let e of r)e.removeEventListener("focusout",n)}},[R,_,t,z]);let K=e=>e.currentTarget.value.length>=l,q=b.onChange,X=ev(null!=s?s:K),Z=ev(null!=o?o:!t.tag),Q=ec(e=>{if(null==q||q(e),e.defaultPrevented||!t)return;let r=e.currentTarget,{value:n,selectionStart:a,selectionEnd:i}=r,o=e.nativeEvent;if(E.current=!0,"input"===o.type&&(o.isComposing&&(E.current=!1,T.current=!0),R)){let e="insertText"===o.inputType||"insertCompositionText"===o.inputType,t=a===n.length;O(e&&t)}if(Z(e)){let e=n===t.getState().value;t.setValue(n),queueMicrotask(()=>{Y(r,a,i)}),R&&A&&e&&C()}X(e)&&t.show(),A&&E.current||t.setActiveId(null)}),J=b.onCompositionEnd,ee=ec(e=>{E.current=!0,T.current=!1,null==J||J(e),!e.defaultPrevented&&A&&C()}),et=b.onMouseDown,er=ev(null!=v?v:()=>!!(null==t?void 0:t.getState().includesBaseElement)),ei=ev(g),eo=ev(null!=c?c:K),el=ec(e=>{null==et||et(e),e.defaultPrevented||e.button||e.ctrlKey||t&&(er(e)&&t.setActiveId(null),ei(e)&&t.setValue(z),eo(e)&&ea(e.currentTarget,"mouseup",t.show))}),es=b.onKeyDown,eh=ev(null!=f?f:K),eg=ec(e=>{if(null==es||es(e),e.repeat||(E.current=!1),e.defaultPrevented||e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||!t)return;let{open:r}=t.getState();!r&&("ArrowUp"===e.key||"ArrowDown"===e.key)&&eh(e)&&(e.preventDefault(),t.show())}),ey=b.onBlur,ex=ec(e=>{if(E.current=!1,null==ey||ey(e),e.defaultPrevented)return}),eb=ef(b.id),ew=t.useState(e=>null===e.activeId);return b=p(h({id:eb,role:"combobox","aria-autocomplete":"inline"===x||"list"===x||"both"===x||"none"===x?x:void 0,"aria-haspopup":function(e,t){let r=null==e?void 0:e.getAttribute("role");return r&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(r)?r:t}(_,"listbox"),"aria-expanded":F,"aria-controls":null==_?void 0:_.id,"data-active-item":ew||void 0,value:z},b),{ref:ed(k,b.ref),onChange:Q,onCompositionEnd:ee,onMouseDown:el,onKeyDown:eg,onBlur:ex}),b=t9(p(h({store:t,focusable:r},b),{moveOnKeyPress:e=>!N(y,e)&&(R&&O(!0),!0)})),b=re(h({store:t},b)),h({autoComplete:"off"},b)}),ra=eE(function(e){return eT("input",rn(e))}),ri="button",ro=eA(function(e){let t=(0,a.useRef)(null),r=eh(t,ri),[n,i]=(0,a.useState)(()=>!!r&&H({tagName:r,type:e.type}));return(0,a.useEffect)(()=>{t.current&&i(H(t.current))},[]),e=tL(e=p(h({role:n||"a"===r?void 0:"button"},e),{ref:ed(t,e.ref)}))});eE(function(e){return eT(ri,ro(e))});var rl=(0,n.jsxs)("svg",{"aria-hidden":"true",display:"block",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,width:"1em",height:"1em",pointerEvents:"none",children:[(0,n.jsx)("line",{x1:"5",y1:"5",x2:"11",y2:"11"}),(0,n.jsx)("line",{x1:"5",y1:"11",x2:"11",y2:"5"})]}),rs=eA(function(e){var{store:t,hideWhenEmpty:r}=e,i=m(e,["store","hideWhenEmpty"]);let o=t0();P(t=t||o,!1);let l=i.onClick,s=ec(e=>{null==l||l(e),e.defaultPrevented||(null==t||t.setValue(""),null==t||t.move(null))}),u=t.useState(e=>{var t;return null==(t=e.baseElement)?void 0:t.id}),c=t.useState(e=>""===e.value);return ro(i=p(h({children:rl,"aria-label":"Clear input","aria-controls":u},i=eg(i,e=>r&&c?(0,n.jsx)(a.Fragment,{}):e,[r,c])),{onClick:s}))}),ru=eE(function(e){return eT("button",rs(e))}),rc=(0,a.createContext)(null),rd=eA(function(e){return e=p(h({},e),{style:h({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})});eE(function(e){return eT("span",rd(e))});var rf=eA(function(e){return e=rd(e=p(h({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:h({position:"fixed",top:0,left:0},e.style)}))}),rh=eE(function(e){return eT("span",rf(e))}),rp=r(47650);function rm(e){queueMicrotask(()=>{null==e||e.focus()})}var rv=eA(function(e){var{preserveTabOrder:t,preserveTabOrderAnchor:r,portalElement:i,portalRef:o,portal:l=!0}=e,s=m(e,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);let u=(0,a.useRef)(null),c=ed(u,s.ref),d=(0,a.useContext)(rc),[f,v]=(0,a.useState)(null),[g,y]=(0,a.useState)(null),x=(0,a.useRef)(null),b=(0,a.useRef)(null),w=(0,a.useRef)(null),k=(0,a.useRef)(null);return eu(()=>{let e=u.current;if(!e||!l)return void v(null);let t=i?"function"==typeof i?i(e):i:V(e).createElement("div");if(!t)return void v(null);let r=t.isConnected;if(r||(d||V(e).body).appendChild(t),t.id||(t.id=e.id?"portal/".concat(e.id):function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";return"".concat(e?"".concat(e,"-"):"").concat(Math.random().toString(36).slice(2,8))}()),v(t),L(o,t),!r)return()=>{t.remove(),L(o,null)}},[l,i,d,o]),eu(()=>{if(!l||!t||!r)return;let e=V(r).createElement("span");return e.style.position="fixed",r.insertAdjacentElement("afterend",e),y(e),()=>{e.remove(),y(null)}},[l,t,r]),(0,a.useEffect)(()=>{if(!f||!t)return;let e=0,r=t=>{if(!en(t))return;let r="focusin"===t.type;if(cancelAnimationFrame(e),r){let e=f.querySelectorAll("[data-tabindex]"),t=e=>{let t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};for(let r of(f.hasAttribute("data-tabindex")&&t(f),e))t(r);return}e=requestAnimationFrame(()=>{for(let e of tu(f,!0))!function(e){var t;let r=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",r),e.setAttribute("tabindex","-1")}(e)})};return f.addEventListener("focusin",r,!0),f.addEventListener("focusout",r,!0),()=>{cancelAnimationFrame(e),f.removeEventListener("focusin",r,!0),f.removeEventListener("focusout",r,!0)}},[f,t]),s=p(h({},s=eg(s,e=>{if(e=(0,n.jsx)(rc.Provider,{value:f||d,children:e}),!l)return e;if(!f)return(0,n.jsx)("span",{ref:c,id:s.id,style:{position:"fixed"},hidden:!0});e=(0,n.jsxs)(n.Fragment,{children:[t&&f&&(0,n.jsx)(rh,{ref:b,"data-focus-trap":s.id,className:"__focus-trap-inner-before",onFocus:e=>{en(e,f)?rm(tc()):rm(x.current)}}),e,t&&f&&(0,n.jsx)(rh,{ref:w,"data-focus-trap":s.id,className:"__focus-trap-inner-after",onFocus:e=>{en(e,f)?rm(td()):rm(k.current)}})]}),f&&(e=(0,rp.createPortal)(e,f));let r=(0,n.jsxs)(n.Fragment,{children:[t&&f&&(0,n.jsx)(rh,{ref:x,"data-focus-trap":s.id,className:"__focus-trap-outer-before",onFocus:e=>{e.relatedTarget!==k.current&&en(e,f)?rm(b.current):rm(td())}}),t&&(0,n.jsx)("span",{"aria-owns":null==f?void 0:f.id,style:{position:"fixed"}}),t&&f&&(0,n.jsx)(rh,{ref:k,"data-focus-trap":s.id,className:"__focus-trap-outer-after",onFocus:e=>{if(en(e,f))rm(w.current);else{let e=tc();if(e===b.current)return void requestAnimationFrame(()=>{var e;return null==(e=tc())?void 0:e.focus()});rm(e)}}})]});return g&&t&&(r=(0,rp.createPortal)(r,g)),(0,n.jsxs)(n.Fragment,{children:[r,e]})},[f,d,l,s.id,t,g])),{ref:c})});eE(function(e){return eT("div",rv(e))});var rg=(0,a.createContext)(0);function ry(e){let{level:t,children:r}=e,i=(0,a.useContext)(rg),o=Math.max(Math.min(t||i+1,6),1);return(0,n.jsx)(rg.Provider,{value:o,children:r})}var rx=eA(function(e){var{autoFocusOnShow:t=!0}=e,r=m(e,["autoFocusOnShow"]);return eg(r,e=>(0,n.jsx)(tk.Provider,{value:t,children:e}),[t])});eE(function(e){return eT("div",rx(e))});var rb=new WeakMap;function rw(e,t,r){rb.has(e)||rb.set(e,new Map);let n=rb.get(e),a=n.get(t);if(!a)return n.set(t,r()),()=>{var e;null==(e=n.get(t))||e(),n.delete(t)};let i=r(),o=()=>{i(),a(),n.delete(t)};return n.set(t,o),()=>{n.get(t)===o&&(i(),n.set(t,a))}}function rk(e,t,r){return rw(e,t,()=>{let n=e.getAttribute(t);return e.setAttribute(t,r),()=>{null==n?e.removeAttribute(t):e.setAttribute(t,n)}})}function rS(e,t,r){return rw(e,t,()=>{let n=t in e,a=e[t];return e[t]=r,()=>{n?e[t]=a:delete e[t]}})}function rC(e,t){return e?rw(e,"style",()=>{let r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}):()=>{}}var rE=["SCRIPT","STYLE"];function rj(e){return"__ariakit-dialog-snapshot-".concat(e)}function rT(e,t,r,n){for(let a of t){if(!(null==a?void 0:a.isConnected))continue;let i=t.some(e=>!!e&&e!==a&&e.contains(a)),o=V(a),l=a;for(;a.parentElement&&a!==o.body;){if(null==n||n(a.parentElement,l),!i)for(let n of a.parentElement.children)(function(e,t,r){return!rE.includes(t.tagName)&&!!function(e,t){let r=V(t),n=rj(e);if(!r.body[n])return!0;for(;;){if(t===r.body)return!1;if(t[n])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!r.some(e=>e&&z(t,e))})(e,n,t)&&r(n,l);a=a.parentElement}}}function rA(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;na===e))}function rR(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"__ariakit-dialog-".concat(t?"ancestor":"outside").concat(e?"-".concat(e):"")}function rP(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return A(rS(e,rR("",!0),!0),rS(e,rR(t,!0),!0))}function rN(e,t){if(e[rR(t,!0)])return!0;let r=rR(t);for(;;){if(e[r])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function rM(e,t){let r=[],n=t.map(e=>null==e?void 0:e.id);return rT(e,t,t=>{rA(t,...n)||r.unshift(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return A(rS(e,rR(),!0),rS(e,rR(t),!0))}(t,e))},(t,n)=>{n.hasAttribute("data-dialog")&&n.id!==e||r.unshift(rP(t,e))}),()=>{for(let e of r)e()}}function rO(e){let{store:t,type:r,listener:n,capture:i,domReady:o}=e,l=ec(n),s=eQ(t,"open"),u=(0,a.useRef)(!1);eu(()=>{if(!s||!o)return;let{contentElement:e}=t.getState();if(!e)return;let r=()=>{u.current=!0};return e.addEventListener("focusin",r,!0),()=>e.removeEventListener("focusin",r,!0)},[t,s,o]),(0,a.useEffect)(()=>{if(s)return ei(r,e=>{let{contentElement:r,disclosureElement:n}=t.getState(),a=e.target;if(r&&a)!(!("HTML"===a.tagName||z(V(a).body,a))||z(r,a)||function(e,t){if(!e)return!1;if(z(e,t))return!0;let r=t.getAttribute("aria-activedescendant");if(r){let t=V(e).getElementById(r);if(t)return z(e,t)}return!1}(n,a)||a.hasAttribute("data-focus-trap")||function(e,t){if(!("clientY"in e))return!1;let r=t.getBoundingClientRect();return 0!==r.width&&0!==r.height&&r.top<=e.clientY&&e.clientY<=r.top+r.height&&r.left<=e.clientX&&e.clientX<=r.left+r.width}(e,r))&&(!u.current||rN(a,r.id))&&(a&&a[tE]||l(e))},i)},[s,i])}function rD(e,t){return"function"==typeof e?e(t):!!e}var rL=(0,a.createContext)({});function rI(){return"inert"in HTMLElement.prototype}function rV(e,t){if(!("style"in e))return j;if(rI())return rS(e,"inert",!0);let r=tu(e,!0).map(e=>{if(null==t?void 0:t.some(t=>t&&z(t,e)))return j;let r=rw(e,"focus",()=>(e.focus=j,()=>{delete e.focus}));return A(rk(e,"tabindex","-1"),r)});return A(...r,rk(e,"aria-hidden","true"),rC(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function rF(e,t){let r=setTimeout(t,e);return()=>clearTimeout(r)}function r_(){for(var e=arguments.length,t=Array(e),r=0;r{let r=t.endsWith("ms")?1:1e3,n=Number.parseFloat(t||"0s")*r;return n>e?n:e},0)}function rz(e,t,r){return!r&&!1!==t&&(!e||!!t)}var rB=eA(function(e){var{store:t,alwaysVisible:r}=e,i=m(e,["store","alwaysVisible"]);let o=t_();P(t=t||o,!1);let l=(0,a.useRef)(null),s=ef(i.id),[u,c]=(0,a.useState)(null),d=t.useState("open"),f=t.useState("mounted"),v=t.useState("animated"),g=t.useState("contentElement"),y=eQ(t.disclosure,"contentElement");eu(()=>{l.current&&(null==t||t.setContentElement(l.current))},[t]),eu(()=>{let e;return null==t||t.setState("animated",t=>(e=t,!0)),()=>{void 0!==e&&(null==t||t.setState("animated",e))}},[t]),eu(()=>{if(v){var e;let t;return(null==g?void 0:g.isConnected)?(e=()=>{c(d?"enter":f?"leave":null)},t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)}),()=>cancelAnimationFrame(t)):void c(null)}},[v,g,d,f]),eu(()=>{if(!t||!v||!u||!g)return;let e=()=>null==t?void 0:t.setState("animating",!1),r=()=>(0,rp.flushSync)(e);if("leave"===u&&d||"enter"===u&&!d)return;if("number"==typeof v)return rF(v,r);let{transitionDuration:n,animationDuration:a,transitionDelay:i,animationDelay:o}=getComputedStyle(g),{transitionDuration:l="0",animationDuration:s="0",transitionDelay:c="0",animationDelay:f="0"}=y?getComputedStyle(y):{},h=r_(i,o,c,f)+r_(n,a,l,s);if(!h){"enter"===u&&t.setState("animated",!1),e();return}return rF(Math.max(h-1e3/60,0),r)},[t,v,g,y,d,u]);let x=rz(f,(i=eg(i,e=>(0,n.jsx)(tU,{value:t,children:e}),[t])).hidden,r),b=i.style,w=(0,a.useMemo)(()=>x?p(h({},b),{display:"none"}):b,[x,b]);return i=p(h({id:s,"data-open":d||void 0,"data-enter":"enter"===u||void 0,"data-leave":"leave"===u||void 0,hidden:x},i),{ref:ed(s?t.setContentElement:null,l,i.ref),style:w}),O(i)}),rH=eE(function(e){return eT("div",rB(e))});eE(function(e){var{unmountOnHide:t}=e,r=m(e,["unmountOnHide"]);let a=t_();return!1===eQ(r.store||a,e=>!t||(null==e?void 0:e.mounted))?null:(0,n.jsx)(rH,h({},r))}),eA(function(e){return e});var rU=eE(function(e){return eT("div",e)});function rW(e){let{store:t,backdrop:r,alwaysVisible:i,hidden:o}=e,l=(0,a.useRef)(null),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,r]=e1(e2,e);return e5(t,r,e)}({disclosure:t}),u=eQ(t,"contentElement");(0,a.useEffect)(()=>{let e=l.current;e&&u&&(e.style.zIndex=getComputedStyle(u).zIndex)},[u]),eu(()=>{let e=null==u?void 0:u.id;if(!e)return;let t=l.current;if(t)return rP(t,e)},[u]);let c=rB({ref:l,store:s,role:"presentation","data-backdrop":(null==u?void 0:u.id)||"",alwaysVisible:i,hidden:null!=o?o:void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!r)return null;if((0,a.isValidElement)(r))return(0,n.jsx)(rU,p(h({},c),{render:r}));let d="boolean"!=typeof r?r:"div";return(0,n.jsx)(rU,p(h({},c),{render:(0,n.jsx)(d,{})}))}Object.assign(rU,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"].reduce((e,t)=>(e[t]=eE(function(e){return eT(t,e)}),e),{}));var rK=Q();function rq(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;let r="current"in e?e.current:e;return r?t?to(r)?r:null:r:null}var r$=eA(function(e){var{store:t,open:r,onClose:i,focusable:o=!0,modal:l=!0,portal:s=!!l,backdrop:u=!!l,hideOnEscape:c=!0,hideOnInteractOutside:d=!0,getPersistentElements:f,preventBodyScroll:v=!!l,autoFocusOnShow:g=!0,autoFocusOnHide:y=!0,initialFocus:x,finalFocus:b,unmountOnHide:w,unstable_treeSnapshotKey:k}=e,S=m(e,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);let C=tB(),E=(0,a.useRef)(null),j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,r]=e1(e3,e);return e5(t,r,e)}({store:t||C,open:r,setOpen(e){if(e)return;let t=E.current;if(!t)return;let r=new Event("close",{bubbles:!1,cancelable:!0});i&&t.addEventListener("close",i,{once:!0}),t.dispatchEvent(r),r.defaultPrevented&&j.setOpen(!0)}}),{portalRef:T,domReady:R}=ey(s,S.portalRef),P=S.preserveTabOrder,N=eQ(j,e=>P&&!l&&e.mounted),M=ef(S.id),O=eQ(j,"open"),D=eQ(j,"mounted"),L=eQ(j,"contentElement"),B=rz(D,S.hidden,S.alwaysVisible),U=function(e){let{attribute:t,contentId:r,contentElement:n,enabled:i}=e,[o,l]=em(),s=(0,a.useCallback)(()=>{if(!i||!n)return!1;let{body:e}=V(n),a=e.getAttribute(t);return!a||a===r},[o,i,n,t,r]);return(0,a.useEffect)(()=>{if(!i||!r||!n)return;let{body:e}=V(n);if(s())return e.setAttribute(t,r),()=>e.removeAttribute(t);let a=new MutationObserver(()=>(0,rp.flushSync)(l));return a.observe(e,{attributeFilter:[t]}),()=>a.disconnect()},[o,i,r,n,s,t]),s}({attribute:"data-dialog-prevent-body-scroll",contentElement:L,contentId:M,enabled:v&&!B});(0,a.useEffect)(()=>{var e,t;if(!U()||!L)return;let r=V(L),n=F(L),{documentElement:a,body:i}=r,o=a.style.getPropertyValue("--scrollbar-width"),l=o?Number.parseInt(o,10):n.innerWidth-a.clientWidth,s=Math.round(a.getBoundingClientRect().left)+a.scrollLeft?"paddingLeft":"paddingRight",u=Z()&&!(I&&navigator.platform.startsWith("Mac")&&!X());return A((e="--scrollbar-width",t="".concat(l,"px"),a?rw(a,e,()=>{let r=a.style.getPropertyValue(e);return a.style.setProperty(e,t),()=>{r?a.style.setProperty(e,r):a.style.removeProperty(e)}}):()=>{}),u?(()=>{var e,t;let{scrollX:r,scrollY:a,visualViewport:o}=n,u=null!=(e=null==o?void 0:o.offsetLeft)?e:0,c=null!=(t=null==o?void 0:o.offsetTop)?t:0,d=rC(i,{position:"fixed",overflow:"hidden",top:"".concat(-(a-Math.floor(c)),"px"),left:"".concat(-(r-Math.floor(u)),"px"),right:"0",[s]:"".concat(l,"px")});return()=>{d(),n.scrollTo({left:r,top:a,behavior:"instant"})}})():rC(i,{overflow:"hidden",[s]:"".concat(l,"px")}))},[U,L]);let K=function(e){let t=(0,a.useRef)();return(0,a.useEffect)(()=>{if(!e){t.current=null;return}return ei("mousedown",e=>{t.current=e.target},!0)},[e]),t}(eQ(j,"open")),q={store:j,domReady:R,capture:!0};rO(p(h({},q),{type:"click",listener:e=>{let{contentElement:t}=j.getState(),r=K.current;r&&W(r)&&rN(r,null==t?void 0:t.id)&&rD(d,e)&&j.hide()}})),rO(p(h({},q),{type:"focusin",listener:e=>{let{contentElement:t}=j.getState();t&&e.target!==V(t)&&rD(d,e)&&j.hide()}})),rO(p(h({},q),{type:"contextmenu",listener:e=>{rD(d,e)&&j.hide()}}));let{wrapElement:$,nestedDialogs:G}=function(e){let t=(0,a.useContext)(rL),[r,i]=(0,a.useState)([]),o=(0,a.useCallback)(e=>{var r;return i(t=>[...t,e]),A(null==(r=t.add)?void 0:r.call(t,e),()=>{i(t=>t.filter(t=>t!==e))})},[t]);eu(()=>eq(e,["open","contentElement"],r=>{var n;if(r.open&&r.contentElement)return null==(n=t.add)?void 0:n.call(t,e)}),[e,t]);let l=(0,a.useMemo)(()=>({store:e,add:o}),[e,o]);return{wrapElement:(0,a.useCallback)(e=>(0,n.jsx)(rL.Provider,{value:l,children:e}),[l]),nestedDialogs:r}}(j);S=eg(S,$,[$]),eu(()=>{if(!O)return;let e=E.current,t=_(e,!0);t&&"BODY"!==t.tagName&&(e&&z(e,t)||j.setDisclosureElement(t))},[j,O]),rK&&(0,a.useEffect)(()=>{if(!D)return;let{disclosureElement:e}=j.getState();if(!e||!H(e))return;let t=()=>{let t=!1,r=()=>{t=!0};e.addEventListener("focusin",r,{capture:!0,once:!0}),ea(e,"mouseup",()=>{e.removeEventListener("focusin",r,!0),t||tp(e)})};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}},[j,D]),(0,a.useEffect)(()=>{if(!D||!R)return;let e=E.current;if(!e)return;let t=F(e),r=t.visualViewport||t,n=()=>{var r,n;let a=null!=(n=null==(r=t.visualViewport)?void 0:r.height)?n:t.innerHeight;e.style.setProperty("--dialog-viewport-height","".concat(a,"px"))};return n(),r.addEventListener("resize",n),()=>{r.removeEventListener("resize",n)}},[D,R]),(0,a.useEffect)(()=>{if(!l||!D||!R)return;let e=E.current;if(e&&!e.querySelector("[data-dialog-dismiss]")){var t=j.hide;let r=V(e).createElement("button");return r.type="button",r.tabIndex=-1,r.textContent="Dismiss popup",Object.assign(r.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),r.addEventListener("click",t),e.prepend(r),()=>{r.removeEventListener("click",t),r.remove()}}},[j,l,D,R]),eu(()=>{if(!rI()||O||!D||!R)return;let e=E.current;if(e)return rV(e)},[O,D,R]);let Y=O&&R;eu(()=>{if(!M||!Y)return;var e=[E.current];let{body:t}=V(e[0]),r=[];return rT(M,e,e=>{r.push(rS(e,rj(M),!0))}),A(rS(t,rj(M),!0),()=>{for(let e of r)e()})},[M,Y,k]);let Q=ec(f);eu(()=>{if(!M||!Y)return;let{disclosureElement:e}=j.getState(),t=[E.current,...Q()||[],...G.map(e=>e.getState().contentElement)];return l?A(rM(M,t),function(e,t){let r=[],n=t.map(e=>null==e?void 0:e.id);return rT(e,t,e=>{rA(e,...n)||!function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;na===e))}(e,...n)&&r.unshift(rV(e,t))},e=>{e.hasAttribute("role")&&(t.some(t=>t&&z(t,e))||r.unshift(rk(e,"role","none")))}),()=>{for(let e of r)e()}}(M,t)):rM(M,[e,...t])},[M,j,Y,Q,G,l,k]);let J=!!g,ee=ev(g),[et,er]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!O||!J||!R||!(null==L?void 0:L.isConnected))return;let e=rq(x,!0)||L.querySelector("[data-autofocus=true],[autofocus]")||function(e,t,r){let[n]=tu(e,t,r);return n||null}(L,!0,s&&N)||L,t=to(e);ee(t?e:null)&&(er(!0),queueMicrotask(()=>{e.focus(),rK&&t&&e.scrollIntoView({block:"nearest",inline:"nearest"})}))},[O,J,R,L,x,s,N,ee]);let en=!!y,eo=ev(y),[el,es]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(O)return es(!0),()=>es(!1)},[O]);let eh=(0,a.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{disclosureElement:r}=j.getState();if(function(e){let t=_();return!(!t||e&&z(e,t))&&!!to(t)}(e))return;let n=rq(b)||r;if(null==n?void 0:n.id){let e=V(n),t='[aria-activedescendant="'.concat(n.id,'"]'),r=e.querySelector(t);r&&(n=r)}if(n&&!to(n)){let e=n.closest("[data-dialog]");if(null==e?void 0:e.id){let t=V(e),r='[aria-controls~="'.concat(e.id,'"]'),a=t.querySelector(r);a&&(n=a)}}let a=n&&to(n);if(!a&&t)return void requestAnimationFrame(()=>eh(e,!1));eo(a?n:null)&&a&&(null==n||n.focus({preventScroll:!0}))},[j,b,eo]),ep=(0,a.useRef)(!1);eu(()=>{if(O||!el||!en)return;let e=E.current;ep.current=!0,eh(e)},[O,el,R,en,eh]),(0,a.useEffect)(()=>{if(!el||!en)return;let e=E.current;return()=>{if(ep.current){ep.current=!1;return}eh(e)}},[el,en,eh]);let ex=ev(c);(0,a.useEffect)(()=>{if(R&&D)return ei("keydown",e=>{if("Escape"!==e.key||e.defaultPrevented)return;let t=E.current;if(!t||rN(t))return;let r=e.target;if(!r)return;let{disclosureElement:n}=j.getState();("BODY"===r.tagName||z(t,r)||!n||z(n,r))&&ex(e)&&j.hide()},!0)},[j,R,D,ex]);let eb=(S=eg(S,e=>(0,n.jsx)(ry,{level:l?1:void 0,children:e}),[l])).hidden,ew=S.alwaysVisible;S=eg(S,e=>u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(rW,{store:j,backdrop:u,hidden:eb,alwaysVisible:ew}),e]}):e,[j,u,eb,ew]);let[ek,eS]=(0,a.useState)(),[eC,eE]=(0,a.useState)();return S=p(h({id:M,"data-dialog":"",role:"dialog",tabIndex:o?-1:void 0,"aria-labelledby":ek,"aria-describedby":eC},S=eg(S,e=>(0,n.jsx)(tU,{value:j,children:(0,n.jsx)(tW.Provider,{value:eS,children:(0,n.jsx)(tK.Provider,{value:eE,children:e})})}),[j])),{ref:ed(E,S.ref)}),S=rx(p(h({},S),{autoFocusOnShow:et})),S=rB(h({store:j},S)),S=tM(p(h({},S),{focusable:o})),S=rv(p(h({portal:s},S),{portalRef:T,preserveTabOrder:N}))});function rG(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tB;return eE(function(r){let a=t();return eQ(r.store||a,e=>!r.unmountOnHide||(null==e?void 0:e.mounted)||!!r.open)?(0,n.jsx)(e,h({},r)):null})}rG(eE(function(e){return eT("div",r$(e))}),tB);let rY=Math.min,rX=Math.max,rZ=Math.round,rQ=Math.floor,rJ=e=>({x:e,y:e}),r0={left:"right",right:"left",bottom:"top",top:"bottom"},r1={start:"end",end:"start"};function r2(e,t){return"function"==typeof e?e(t):e}function r5(e){return e.split("-")[0]}function r3(e){return e.split("-")[1]}function r6(e){return"x"===e?"y":"x"}function r4(e){return"y"===e?"height":"width"}let r7=new Set(["top","bottom"]);function r8(e){return r7.has(r5(e))?"y":"x"}function r9(e){return e.replace(/start|end/g,e=>r1[e])}let ne=["left","right"],nt=["right","left"],nr=["top","bottom"],nn=["bottom","top"];function na(e){return e.replace(/left|right|bottom|top/g,e=>r0[e])}function ni(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function no(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function nl(e,t,r){let n,{reference:a,floating:i}=e,o=r8(t),l=r6(r8(t)),s=r4(l),u=r5(t),c="y"===o,d=a.x+a.width/2-i.width/2,f=a.y+a.height/2-i.height/2,h=a[s]/2-i[s]/2;switch(u){case"top":n={x:d,y:a.y-i.height};break;case"bottom":n={x:d,y:a.y+a.height};break;case"right":n={x:a.x+a.width,y:f};break;case"left":n={x:a.x-i.width,y:f};break;default:n={x:a.x,y:a.y}}switch(r3(t)){case"start":n[l]-=h*(r&&c?-1:1);break;case"end":n[l]+=h*(r&&c?-1:1)}return n}let ns=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,l=i.filter(Boolean),s=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=nl(u,n,s),f=n,h={},p=0;for(let r=0;r{try{return e.matches(t)}catch(e){return!1}})}let nE=["transform","translate","scale","rotate","perspective"],nj=["transform","translate","scale","rotate","perspective","filter"],nT=["paint","layout","strict","content"];function nA(e){let t=nR(),r=ng(e)?nM(e):e;return nE.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||nj.some(e=>(r.willChange||"").includes(e))||nT.some(e=>(r.contain||"").includes(e))}function nR(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let nP=new Set(["html","body","#document"]);function nN(e){return nP.has(nh(e))}function nM(e){return np(e).getComputedStyle(e)}function nO(e){return ng(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nD(e){if("html"===nh(e))return e;let t=e.assignedSlot||e.parentNode||nx(e)&&e.host||nm(e);return nx(t)?t.host:t}function nL(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let a=function e(t){let r=nD(t);return nN(r)?t.ownerDocument?t.ownerDocument.body:t.body:ny(r)&&nw(r)?r:e(r)}(e),i=a===(null==(n=e.ownerDocument)?void 0:n.body),o=np(a);if(i){let e=nI(o);return t.concat(o,o.visualViewport||[],nw(a)?a:[],e&&r?nL(e):[])}return t.concat(a,nL(a,[],r))}function nI(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nV(e){let t=nM(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=ny(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,l=rZ(r)!==i||rZ(n)!==o;return l&&(r=i,n=o),{width:r,height:n,$:l}}function nF(e){return ng(e)?e:e.contextElement}function n_(e){let t=nF(e);if(!ny(t))return rJ(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:i}=nV(t),o=(i?rZ(r.width):r.width)/n,l=(i?rZ(r.height):r.height)/a;return o&&Number.isFinite(o)||(o=1),l&&Number.isFinite(l)||(l=1),{x:o,y:l}}let nz=rJ(0);function nB(e){let t=np(e);return nR()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:nz}function nH(e,t,r,n){var a;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),o=nF(e),l=rJ(1);t&&(n?ng(n)&&(l=n_(n)):l=n_(e));let s=(void 0===(a=r)&&(a=!1),n&&(!a||n===np(o))&&a)?nB(o):rJ(0),u=(i.left+s.x)/l.x,c=(i.top+s.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(o){let e=np(o),t=n&&ng(n)?np(n):n,r=e,a=nI(r);for(;a&&n&&t!==r;){let e=n_(a),t=a.getBoundingClientRect(),n=nM(a),i=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=o,a=nI(r=np(a))}}return no({width:d,height:f,x:u,y:c})}function nU(e,t){let r=nO(e).scrollLeft;return t?t.left+r:nH(nm(e)).left+r}function nW(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-nU(e,r),y:r.top+t.scrollTop}}let nK=new Set(["absolute","fixed"]);function nq(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=np(e),n=nm(e),a=r.visualViewport,i=n.clientWidth,o=n.clientHeight,l=0,s=0;if(a){i=a.width,o=a.height;let e=nR();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}let u=nU(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(n.clientWidth-t.clientWidth-a);o<=25&&(i-=o)}else u<=25&&(i+=u);return{width:i,height:o,x:l,y:s}}(e,r);else if("document"===t)n=function(e){let t=nm(e),r=nO(e),n=e.ownerDocument.body,a=rX(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=rX(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-r.scrollLeft+nU(e),l=-r.scrollTop;return"rtl"===nM(n).direction&&(o+=rX(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:l}}(nm(e));else if(ng(t))n=function(e,t){let r=nH(e,!0,"fixed"===t),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=ny(e)?n_(e):rJ(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y;return{width:o,height:l,x:a*i.x,y:n*i.y}}(t,r);else{let r=nB(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return no(n)}function n$(e){return"static"===nM(e).position}function nG(e,t){if(!ny(e)||"fixed"===nM(e).position)return null;if(t)return t(e);let r=e.offsetParent;return nm(e)===r&&(r=r.ownerDocument.body),r}function nY(e,t){var r;let n=np(e);if(nC(e))return n;if(!ny(e)){let t=nD(e);for(;t&&!nN(t);){if(ng(t)&&!n$(t))return t;t=nD(t)}return n}let a=nG(e,t);for(;a&&(r=a,nk.has(nh(r)))&&n$(a);)a=nG(a,t);return a&&nN(a)&&n$(a)&&!nA(a)?n:a||function(e){let t=nD(e);for(;ny(t)&&!nN(t);){if(nA(t))return t;if(nC(t))break;t=nD(t)}return null}(e)||n}let nX=async function(e){let t=this.getOffsetParent||nY,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=ny(t),a=nm(t),i="fixed"===r,o=nH(e,!0,i,t),l={scrollLeft:0,scrollTop:0},s=rJ(0);if(n||!n&&!i)if(("body"!==nh(t)||nw(a))&&(l=nO(t)),n){let e=nH(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=nU(a));i&&!n&&a&&(s.x=nU(a));let u=!a||n||i?rJ(0):nW(a,l);return{x:o.left+l.scrollLeft-s.x-u.x,y:o.top+l.scrollTop-s.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},nZ={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,i="fixed"===a,o=nm(n),l=!!t&&nC(t.floating);if(n===o||l&&i)return r;let s={scrollLeft:0,scrollTop:0},u=rJ(1),c=rJ(0),d=ny(n);if((d||!d&&!i)&&(("body"!==nh(n)||nw(o))&&(s=nO(n)),ny(n))){let e=nH(n);u=n_(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let f=!o||d||i?rJ(0):nW(o,s);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:nm,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,i=[..."clippingAncestors"===r?nC(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=nL(e,[],!1).filter(e=>ng(e)&&"body"!==nh(e)),a=null,i="fixed"===nM(e).position,o=i?nD(e):e;for(;ng(o)&&!nN(o);){let t=nM(o),r=nA(o);r||"fixed"!==t.position||(a=null),(i?!r&&!a:!r&&"static"===t.position&&!!a&&nK.has(a.position)||nw(o)&&!r&&function e(t,r){let n=nD(t);return!(n===r||!ng(n)||nN(n))&&("fixed"===nM(n).position||e(n,r))}(e,o))?n=n.filter(e=>e!==o):a=t,o=nD(o)}return t.set(e,n),n}(t,this._c):[].concat(r),n],o=i[0],l=i.reduce((e,r)=>{let n=nq(t,r,a);return e.top=rX(n.top,e.top),e.right=rY(n.right,e.right),e.bottom=rY(n.bottom,e.bottom),e.left=rX(n.left,e.left),e},nq(t,o,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:nY,getElementRects:nX,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=nV(e);return{width:t,height:r}},getScale:n_,isElement:ng,isRTL:function(e){return"rtl"===nM(e).direction}};function nQ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nJ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if("function"==typeof DOMRect)return new DOMRect(e,t,r,n);let a={x:e,y:t,width:r,height:n,top:t,right:e+r,bottom:t+n,left:e};return p(h({},a),{toJSON:()=>a})}function n0(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function n1(e){let t=window.devicePixelRatio||1;return Math.round(e*t)/t}var n2=eA(function(e){var{store:t,modal:r=!1,portal:i=!!r,preserveTabOrder:o=!0,autoFocusOnShow:l=!0,wrapperProps:s,fixed:u=!1,flip:c=!0,shift:d=0,slide:f=!0,overlap:v=!1,sameWidth:g=!1,fitViewport:y=!1,gutter:x,arrowPadding:b=4,overflowPadding:w=8,getAnchorRect:k,updatePosition:S}=e,C=m(e,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);let E=t$();P(t=t||E,!1);let j=t.useState("arrowElement"),T=t.useState("anchorElement"),A=t.useState("disclosureElement"),R=t.useState("popoverElement"),N=t.useState("contentElement"),M=t.useState("placement"),O=t.useState("mounted"),D=t.useState("rendered"),L=(0,a.useRef)(null),[I,V]=(0,a.useState)(!1),{portalRef:F,domReady:_}=ey(i,C.portalRef),z=ec(k),B=ec(S),H=!!S;eu(()=>{if(!(null==R?void 0:R.isConnected))return;R.style.setProperty("--popover-overflow-padding","".concat(w,"px"));let e={contextElement:T||void 0,getBoundingClientRect:()=>{let e=null==z?void 0:z(T);if(e||!T){if(!e)return nJ();let{x:t,y:r,width:n,height:a}=e;return nJ(t,r,n,a)}return T.getBoundingClientRect()}},r=async()=>{var r,n,a,i;if(!O)return;j||(L.current=L.current||document.createElement("div"));let o=j||L.current,l=[(r={gutter:x,shift:d},void 0===(n=e=>{var t;let{placement:n}=e,a=((null==o?void 0:o.clientHeight)||0)/2,i="number"==typeof r.gutter?r.gutter+a:null!=(t=r.gutter)?t:a;return{crossAxis:n.split("-")[1]?void 0:r.shift,mainAxis:i,alignmentAxis:r.shift}})&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:a,y:i,placement:o,middlewareData:l}=e,s=await nd(e,n);return o===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:a+s.x,y:i+s.y,data:{...s,placement:o}}}}),function(e){var t;if(!1===e.flip)return;let r="string"==typeof e.flip?e.flip.split(" "):void 0;return P(!r||r.every(n0),!1),{name:"flip",options:t={padding:e.overflowPadding,fallbackPlacements:r},async fn(e){var r,n,a,i,o;let{placement:l,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...x}=r2(t,e);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};let b=r5(l),w=r8(c),k=r5(c)===c,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),C=m||(k||!y?[na(c)]:function(e){let t=na(e);return[r9(e),t,r9(t)]}(c)),E="none"!==g;!m&&E&&C.push(...function(e,t,r,n){let a=r3(e),i=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?nt:ne;return t?ne:nt;case"left":case"right":return t?nr:nn;default:return[]}}(r5(e),"start"===r,n);return a&&(i=i.map(e=>e+"-"+a),t&&(i=i.concat(i.map(r9)))),i}(c,y,g,S));let j=[c,...C],T=await nu(e,x),A=[],R=(null==(n=s.flip)?void 0:n.overflows)||[];if(h&&A.push(T[b]),p){let e=function(e,t,r){void 0===r&&(r=!1);let n=r3(e),a=r6(r8(e)),i=r4(a),o="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=na(o)),[o,na(o)]}(l,u,S);A.push(T[e[0]],T[e[1]])}if(R=[...R,{placement:l,overflows:A}],!A.every(e=>e<=0)){let e=((null==(a=s.flip)?void 0:a.index)||0)+1,t=j[e];if(t&&("alignment"!==p||w===r8(t)||R.every(e=>r8(e.placement)!==w||e.overflows[0]>0)))return{data:{index:e,overflows:R},reset:{placement:t}};let r=null==(i=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(v){case"bestFit":{let e=null==(o=R.filter(e=>{if(E){let t=r8(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=c}if(l!==r)return{reset:{placement:r}}}return{}}}}({flip:c,overflowPadding:w}),function(e){if(e.slide||e.overlap){var t,r;return{name:"shift",options:r={mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:(void 0===t&&(t={}),{options:t,fn(e){let{x:r,y:n,placement:a,rects:i,middlewareData:o}=e,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=r2(t,e),c={x:r,y:n},d=r8(a),f=r6(d),h=c[f],p=c[d],m=r2(l,e),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,r=i.reference[f]+i.reference[e]-v.mainAxis;hr&&(h=r)}if(u){var g,y;let e="y"===f?"width":"height",t=nc.has(r5(a)),r=i.reference[d]-i.floating[e]+(t&&(null==(g=o.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),n=i.reference[d]+i.reference[e]+(t?0:(null==(y=o.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);pn&&(p=n)}return{[f]:h,[d]:p}}})},async fn(e){let{x:t,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=r2(r,e),u={x:t,y:n},c=await nu(e,s),d=r8(r5(a)),f=r6(d),h=u[f],p=u[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=h+c[e],n=h-c[t];h=rX(r,rY(h,n))}if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=p+c[e],n=p-c[t];p=rX(r,rY(p,n))}let m=l.fn({...e,[f]:h,[d]:p});return{...m,data:{x:m.x-t,y:m.y-n,enabled:{[f]:i,[d]:o}}}}}}}({slide:f,shift:d,overlap:v,overflowPadding:w}),function(e,t){if(e){let r;return{name:"arrow",options:r={element:e,padding:t.arrowPadding},async fn(e){let{x:t,y:n,placement:a,rects:i,platform:o,elements:l,middlewareData:s}=e,{element:u,padding:c=0}=r2(r,e)||{};if(null==u)return{};let d=ni(c),f={x:t,y:n},h=r6(r8(a)),p=r4(h),m=await o.getDimensions(u),v="y"===h,g=v?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[h]-f[h]-i.floating[p],x=f[h]-i.reference[h],b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(u)),w=b?b[g]:0;w&&await (null==o.isElement?void 0:o.isElement(b))||(w=l.floating[g]||i.floating[p]);let k=w/2-m[p]/2-1,S=rY(d[v?"top":"left"],k),C=rY(d[v?"bottom":"right"],k),E=w-m[p]-C,j=w/2-m[p]/2+(y/2-x/2),T=rX(S,rY(j,E)),A=!s.arrow&&null!=r3(a)&&j!==T&&i.reference[p]/2-(j{},...d}=r2(i,e),f=await nu(e,d),h=r5(o),p=r3(o),m="y"===r8(o),{width:v,height:g}=l.floating;"top"===h||"bottom"===h?(n=h,a=p===(await (null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(a=h,n="end"===p?"top":"bottom");let y=g-f.top-f.bottom,x=v-f.left-f.right,b=rY(g-f[n],y),w=rY(v-f[a],x),k=!e.middlewareData.shift,S=b,C=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(C=x),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(S=y),k&&!p){let e=rX(f.left,0),t=rX(f.right,0),r=rX(f.top,0),n=rX(f.bottom,0);m?C=v-2*(0!==e||0!==t?e+t:rX(f.left,f.right)):S=g-2*(0!==r||0!==n?r+n:rX(f.top,f.bottom))}await c({...e,availableWidth:C,availableHeight:S});let E=await s.getDimensions(u.floating);return v!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}],s=await ((e,t,r)=>{let n=new Map,a={platform:nZ,...r},i={...a.platform,_c:n};return ns(e,t,{...a,platform:i})})(e,R,{placement:M,strategy:u?"fixed":"absolute",middleware:l});null==t||t.setState("currentPlacement",s.placement),V(!0);let h=n1(s.x),p=n1(s.y);if(Object.assign(R.style,{top:"0",left:"0",transform:"translate3d(".concat(h,"px,").concat(p,"px,0)")}),o&&s.middlewareData.arrow){let{x:e,y:t}=s.middlewareData.arrow,r=s.placement.split("-")[0],n=o.clientWidth/2,a=o.clientHeight/2,i=null!=e?e+n:-n,l=null!=t?t+a:-a;R.style.setProperty("--popover-transform-origin",{top:"".concat(i,"px calc(100% + ").concat(a,"px)"),bottom:"".concat(i,"px ").concat(-a,"px"),left:"calc(100% + ".concat(n,"px) ").concat(l,"px"),right:"".concat(-n,"px ").concat(l,"px")}[r]),Object.assign(o.style,{left:null!=e?"".concat(e,"px"):"",top:null!=t?"".concat(t,"px"):"",[r]:"100%"})}},n=function(e,t,r,n){let a;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=nF(e),d=i||o?[...c?nL(c):[],...nL(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",r,{passive:!0}),o&&e.addEventListener("resize",r)});let f=c&&s?function(e,t){let r,n=null,a=nm(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function o(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(l||t(),!f||!h)return;let p=rQ(d),m=rQ(a.clientWidth-(c+f)),v={rootMargin:-p+"px "+-m+"px "+-rQ(a.clientHeight-(d+h))+"px "+-rQ(c)+"px",threshold:rX(0,rY(1,s))||1},g=!0;function y(t){let n=t[0].intersectionRatio;if(n!==s){if(!g)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==n||nQ(u,e.getBoundingClientRect())||o(),g=!1}try{n=new IntersectionObserver(y,{...v,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(y,v)}n.observe(e)}(!0),i}(c,r):null,h=-1,p=null;l&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),c&&!u&&p.observe(c),p.observe(t));let m=u?nH(e):null;return u&&function t(){let n=nH(e);m&&!nQ(m,n)&&r(),m=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(a)}}(e,R,async()=>{H?(await B({updatePosition:r}),V(!0)):await r()},{elementResize:"function"==typeof ResizeObserver});return()=>{V(!1),n()}},[t,D,R,j,T,R,M,O,_,u,c,d,f,v,g,y,x,b,w,z,H,B]),eu(()=>{if(!O||!_||!(null==R?void 0:R.isConnected)||!(null==N?void 0:N.isConnected))return;let e=()=>{R.style.zIndex=getComputedStyle(N).zIndex};e();let t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>cancelAnimationFrame(t)},[O,_,R,N]);let U=u?"fixed":"absolute";return C=eg(C,e=>(0,n.jsx)("div",p(h({},s),{style:h({position:U,top:0,left:0,width:"max-content"},null==s?void 0:s.style),ref:null==t?void 0:t.setPopoverElement,children:e})),[t,U,s]),C=p(h({"data-placing":!I||void 0},C=eg(C,e=>(0,n.jsx)(tY,{value:t,children:e}),[t])),{style:h({position:"relative"},C.style)}),C=r$(p(h({store:t,modal:r,portal:i,preserveTabOrder:o,preserveTabOrderAnchor:A||T,autoFocusOnShow:I&&l},C),{portalRef:F}))});rG(eE(function(e){return eT("div",n2(e))}),t$);var n5=eA(function(e){var{store:t,alwaysVisible:r}=e,i=m(e,["store","alwaysVisible"]);let o=tJ(!0),l=tQ(),s=!!(t=t||l)&&t===o;P(t,!1);let u=(0,a.useRef)(null),c=ef(i.id),d=t.useState("mounted"),f=rz(d,i.hidden,r),v=f?p(h({},i.style),{display:"none"}):i.style,g=t.useState(e=>Array.isArray(e.selectedValue)),y=function(e,t,r){let n=function(e){let[t]=(0,a.useState)(e);return t}(r),[i,o]=(0,a.useState)(n);return(0,a.useEffect)(()=>{let r=e&&"current"in e?e.current:e;if(!r)return;let a=()=>{let e=r.getAttribute(t);o(null==e?n:e)},i=new MutationObserver(a);return i.observe(r,{attributeFilter:[t]}),a(),()=>i.disconnect()},[e,t,n]),i}(u,"role",i.role),[x,b]=(0,a.useState)(!1),w=t.useState("contentElement");eu(()=>{if(!d)return;let e=u.current;if(!e||w!==e)return;let t=()=>{b(!!e.querySelector("[role='listbox']"))},r=new MutationObserver(t);return r.observe(e,{subtree:!0,childList:!0,attributeFilter:["role"]}),t(),()=>r.disconnect()},[d,w]),x||(i=h({role:"listbox","aria-multiselectable":("listbox"===y||"tree"===y||"grid"===y)&&g||void 0},i)),i=eg(i,e=>(0,n.jsx)(t2,{value:t,children:(0,n.jsx)(tX.Provider,{value:y,children:e})}),[t,y]);let k=!c||o&&s?null:t.setContentElement;return i=p(h({id:c,hidden:f},i),{ref:ed(k,u,i.ref),style:v}),O(i)}),n3=eE(function(e){return eT("div",n5(e))}),n6=eA(function(e){var{store:t,modal:r,tabIndex:n,alwaysVisible:i,autoFocusOnHide:o=!0,hideOnInteractOutside:l=!0}=e,s=m(e,["store","modal","tabIndex","alwaysVisible","autoFocusOnHide","hideOnInteractOutside"]);let u=t0();P(t=t||u,!1);let c=t.useState("baseElement"),d=(0,a.useRef)(!1),f=eQ(t.tag,e=>null==e?void 0:e.renderedItems.length);return s=n5(h({store:t,alwaysVisible:i},s)),s=n2(p(h({store:t,modal:r,alwaysVisible:i,backdrop:!1,autoFocusOnShow:!1,finalFocus:c,preserveTabOrderAnchor:null,unstable_treeSnapshotKey:f},s),{getPersistentElements(){var e;let n=(null==(e=s.getPersistentElements)?void 0:e.call(s))||[];if(!r||!t)return n;let{contentElement:a,baseElement:i}=t.getState();if(!i)return n;let o=V(i),l=[];if((null==a?void 0:a.id)&&l.push('[aria-controls~="'.concat(a.id,'"]')),(null==i?void 0:i.id)&&l.push('[aria-controls~="'.concat(i.id,'"]')),!l.length)return[...n,i];let u=l.join(",");return[...n,...o.querySelectorAll(u)]},autoFocusOnHide:e=>!N(o,e)&&(!d.current||(d.current=!1,!1)),hideOnInteractOutside(e){var r,n;let a=null==t?void 0:t.getState(),i=null==(r=null==a?void 0:a.contentElement)?void 0:r.id,o=null==(n=null==a?void 0:a.baseElement)?void 0:n.id;if(function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n'[aria-controls~="'.concat(e,'"]')).join(", ");return!!t&&e.matches(t)}return!1}(e.target,i,o))return!1;let s="function"==typeof l?l(e):l;return s&&(d.current="click"===e.type),s}}))}),n4=rG(eE(function(e){return eT("div",n6(e))}),t0),n7=r(5036),n8=r(1773),n9=r.n(n8),ae=r(74466),at=r(6168),ar=r(59439),an=r(56345),aa=r(75109),ai=r(72107),ao=r(31206);let al=e=>{let{"aria-label":t,autoFocus:r=!1,autoSelect:i=!1,className:o,"data-parent":l,hideSearchIcon:s=!1,name:u,onItemSelect:c=()=>{},placeholder:d="Search",ref:f,suggestionHandler:h,suggestions:p=[],...m}=e,v=ta(),g=(0,a.useRef)(null),y=(0,a.useRef)(null),x=(0,a.useRef)(!1),b=(0,a.useRef)(null);(0,a.useImperativeHandle)(f,()=>b.current,[]);let[w,k]=(0,a.useState)(!1),[S,C]=(0,a.useState)(!1),[E,j]=(0,a.useState)(""),[T,A]=(0,a.useState)(p),R=(0,ao.default)(E,250);return h?(0,a.useEffect)(()=>{let e=async()=>{k(!0),C(!0),A(await h(R)),C(!1)};if(x.current){x.current=!1;return}""!==R&&e()},[R]):(0,a.useEffect)(()=>{A(p.filter(e=>e.value.toLowerCase().includes(E.toLowerCase())))},[E]),(0,n.jsx)("div",{className:o,...m,"data-ids":"Autosuggest",ref:b,children:(0,n.jsxs)(t7,{open:w,setOpen:k,setValue:j,store:v,children:[(0,n.jsx)(ra,{"aria-label":t,autoFocus:r,autoSelect:i,placeholder:d,ref:g,render:e=>(0,n.jsx)(aa.TextField,{endAdornment:(0,n.jsx)(ru,{hideWhenEmpty:!0,onClick:()=>{k(!1),A(p)},render:(0,n.jsx)(at.K,{"aria-label":"Clear value",className:"!p-1",colorScheme:"transparent",compact:!0,rounded:!0,size:"small",children:(0,n.jsx)(n9(),{className:"size-5",path:n7.hyP})})}),name:u,startAdornment:!s&&(0,n.jsx)(n9(),{className:"size-5",path:n7.U4M}),...e}),showOnChange:!h,showOnClick:!1}),(0,n.jsx)(n4,{className:"z-top",gutter:14,modal:!0,portalElement:b.current,preventBodyScroll:!1,sameWidth:!0,shift:s?-17:-41,children:(0,n.jsx)(n3,{className:(0,ae.cx)((0,ar.n)({collapsePadding:!1,theme:"auto"}),{hidden:""===R,"w-[calc(var(--popover-anchor-width)+4.3rem)]":s,"w-[calc(var(--popover-anchor-width)+5.9rem)]":!s}),ref:y,role:"listbox",children:S?(0,n.jsx)(ai.o5,{as:t4,className:(0,an.j)(),disabled:!0,variant:"caption1",children:"Searching..."}):T.length||""===R?T.map(e=>(0,n.jsx)(ai.o5,{as:t4,className:(0,ae.cx)((0,an.j)(),"dark:data-[active-item]:bg-neutral-3","data-[active-item]:bg-neutral-6","outline-hidden"),"data-id":e["data-id"]||e.id,"data-parent":l||u,focusOnHover:!0,onClick:()=>{x.current=!0,c({...e,"data-parent":l||u}),A(p)},value:e.value,variant:"caption1",children:e.value},e.id)):(0,n.jsx)(ai.o5,{as:t4,className:(0,an.j)(),disabled:!0,variant:"caption1",children:"No results"})})})]})})};al.displayName="Autosuggest"},17721:(e,t,r)=>{"use strict";r.d(t,{AccordionItem:()=>o});var n=r(95155),a=r(59576);let i=(0,r(74466).F)([],{compoundVariants:[],defaultVariants:{},variants:{}}),o=e=>{let{className:t,...r}=e;return(0,n.jsx)(a.q7,{className:i({className:t}),...r,"data-ids":"AccordionItem"})};o.displayName="AccordionItem"},18476:(e,t,r)=>{"use strict";r.d(t,{V:()=>l});var n=r(57887),a=r(34158),i=r(11557),o=r(55920);let l={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+a.KN.transform((0,i.a)(t))+", "+a.KN.transform((0,i.a)(r))+", "+(0,i.a)(n.X4.transform(o))+")"}},19110:e=>{!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,a){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(r);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u=0?(c=p.substr(0,m),d=p.substr(m+1)):(c=p,d=""),f=decodeURIComponent(c),h=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(i,f))?t(i[f])?i[f].push(h):i[f]=[i[f],h]:i[f]=h}return i};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,o,l){return(i=i||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e)?n(a(e),function(a){var l=encodeURIComponent(t(a))+o;return r(e[a])?n(e[a],function(e){return l+encodeURIComponent(t(e))}).join(i):l+encodeURIComponent(t(e[a]))}).join(i):l?encodeURIComponent(t(l))+o+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n{"use strict";r.d(t,{MosaicImageGallery:()=>y});var n=r(95155),a=r(5036),i=r(1773),o=r.n(i),l=r(74466),s=r(36946),u=r(29753);r(71337),r(31073);var c=r(68442);r(50072);var d=r(10491),f=r(58881);r(29163);var h=r(55062),p=r(25538),m=r(72107),v=r(37943);let g=(0,l.F)(["@container/mosaic"],{compoundVariants:[],defaultVariants:{},variants:{}}),y=e=>{let{categories:t=[],className:r,dataParent:i,images:y=[],linkElement:x="a",loading:b=!1,onCategoryChange:w=()=>{},showAll:k=!1,showFeatured:S=!1,showFeaturedBreakpoint:C="@6xl",title:E,titleTypographyProps:j={},...T}=e,A=[{aspectRatio:"1/1",grow:"grow"},{aspectRatio:"16/9",grow:"grow-[1.777]"}],R=b?Array.from(Array("boolean"==typeof b?4:Math.floor(b))):[],{ref:P,result:N}=(0,v.default)(C),M=!k&&S&&N&&y.length>4,{featuredImage:O,images:D}=(()=>{if(k||!y.length)return{images:y};if(y.length<4)return{images:[y[0]]};if(M){let[e,...t]=y;return{featuredImage:e,images:t.slice(0,4)}}return{images:y.slice(0,4)}})(),L=(b?R:D).flatMap((e,t,r)=>t%2?[]:[r.slice(t,t+2)]),I=(e,t,r,l)=>{let{aspectRatio:f,grow:h}=A[t%2?r:1-r];if(l)return(0,n.jsx)(d.E,{className:"".concat(h," rounded-sm @2xl/mosaic:rounded-lg"),style:{aspectRatio:f},variant:"rectangular"},"r-".concat(t,"-c-").concat(r));let{alt:p,dataId:v,dataParent:g=i,galleryCount:y=0,href:b,linkElement:w=x,src:k,title:S}=e;return(0,n.jsx)(u.Z,{as:b?w:void 0,className:"group basis-0 ".concat(h),"data-id":b?v:void 0,"data-parent":b?g:void 0,href:b,variant:"hero",children:(0,n.jsx)(c.CardMedia,{alt:p,aspectRatio:f,className:"[&>div]:rounded-sm [&>div]:@2xl/mosaic:rounded-lg",src:k,zoomOnHover:!0,children:(0,n.jsxs)("div",{className:"flex h-full flex-col justify-between",children:[(0,n.jsx)("div",{className:"flex w-full justify-end",children:y>0&&b&&(0,n.jsxs)(s.$,{colorScheme:"neutral-3",ignoreTheme:!0,size:"small",startIcon:(0,n.jsx)(o(),{className:"size-5",path:a.M6T}),tabIndex:-1,typographyProps:{variant:"caption2"},children:[(0,n.jsx)("span",{className:"hidden @xl/gallery:inline",children:"See All "}),y,(0,n.jsx)("span",{className:"hidden @xl/gallery:inline",children:" Photos"})]})}),S&&(0,n.jsx)("div",{className:"from-neutral-1/80 -m-2 flex bg-transparent from-30% to-transparent p-4 @lg/gallery:bg-gradient-to-t",children:(0,n.jsx)(m.o5,{className:"text-neutral-8 hidden pt-4 group-hover:underline @lg/gallery:block",disableColorScheme:!0,variant:"subtitle1",children:S})})]})})},"r-".concat(t,"-c-").concat(r))};return(0,n.jsx)("div",{className:g({className:r}),...T,"data-ids":"MosaicImageGallery",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4 @3xl/mosaic:gap-6",children:[(()=>{if(!E)return null;let{className:e,...t}=j;return(0,n.jsx)(m.o5,{as:"h2",className:(0,l.cx)("@3xl/mosaic:typography-h4",e),variant:"h5",...t,children:E})})(),(()=>{if(!t.length)return null;let e=t.find(e=>e.selected);return(0,n.jsx)(f.Tabs,{className:"-mt-4",defaultValue:null==e?void 0:e.id,onValueChange:w,children:(0,n.jsx)(p.TabsList,{children:t.map(e=>(0,n.jsx)(h.TabsItem,{value:e.id,children:e.name},e.id))})})})(),(0,n.jsxs)("div",{className:(0,l.cx)("flex flex-row",{"cursor-wait":b}),ref:P,children:[M?(0,n.jsx)("div",{className:"@container/gallery grow-[1.3] pr-6",children:I(O,1,1,b)}):null,(0,n.jsx)("div",{className:"@container/gallery flex grow flex-col justify-between gap-4 @3xl/mosaic:gap-6",children:L.map((e,t)=>{let r=t%2;return(0,n.jsxs)("div",{className:"flex gap-4 @3xl/mosaic:gap-6",children:[e.map((e,r)=>I(e,t,r,b)),1===e.length&&D.length>1&&(0,n.jsx)("div",{className:"basis-0 ".concat(A[r].grow)})]},"r-".concat(t))})})]})]})})};y.displayName="MosaicImageGallery"},19717:(e,t,r)=>{"use strict";r.d(t,{h:()=>u});var n,a,i,o=r(12115),l=["title","titleId"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";r.d(t,{l:()=>n});let n=e=>e},19958:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let n=(0,r(12115).createContext)(null)},20102:(e,t,r)=>{"use strict";let n;r.d(t,{reducer:()=>c,toast:()=>p,useToast:()=>m});var a=r(12115);let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},o=new Uint8Array(16),l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).slice(1));let s=function(e,t,r){if(i.randomUUID&&!t&&!e)return i.randomUUID();var a=e,s=r;let u=(a=a||{}).random??a.rng?.()??function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(o)}();if(u.length<16)throw Error("Random bytes length must be >= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){if((s=s||0)<0||s+16>t.length)throw RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[s+e]=u[e];return t}return function(e,t=0){return(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase()}(u)},u=new Map,c=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return(r?[{id:r}]:e.toasts).forEach(e=>{let{id:t}=e;if(u.has(t))return;let n=setTimeout(()=>{u.delete(t),h({toastId:r,type:"REMOVE_TOAST"})},1e6);u.set(t,n)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],f={toasts:[]},h=e=>{f=c(f,e),d.forEach(e=>{e(f)})},p=e=>{let{...t}=e,r=s(),n=()=>h({toastId:r,type:"DISMISS_TOAST"});return h({toast:{...t,id:r,onOpenChange:e=>{e||n()},open:!0},type:"ADD_TOAST"}),{dismiss:n,id:r,update:e=>h({toast:{...e,id:r},type:"UPDATE_TOAST"})}},m=()=>{let[e,t]=(0,a.useState)(f);return(0,a.useEffect)(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,dismiss:e=>h({toastId:e,type:"DISMISS_TOAST"}),toast:p}}},21629:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(12115);function a(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},22426:(e,t,r)=>{"use strict";r.d(t,{Slider:()=>ee});var n=r(95155),a=r(12115),i=r(12269),o=r(65749),l=r(73595),s=r(66801),u=r(46135),c=r(98303),d=r(21629),f=r(83793),h=r(2279),p=r(66896),m=["PageUp","PageDown"],v=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],g={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},y="Slider",[x,b,w]=(0,p.N)(y),[k]=(0,s.A)(y,[w]),[S,C]=k(y),E=a.forwardRef((e,t)=>{let{name:r,min:l=0,max:s=100,step:c=1,orientation:d="horizontal",disabled:f=!1,minStepsBetweenThumbs:h=0,defaultValue:p=[l],value:g,onValueChange:y=()=>{},onValueCommit:b=()=>{},inverted:w=!1,form:k,...C}=e,E=a.useRef(new Set),j=a.useRef(0),T="horizontal"===d,[P=[],N]=(0,u.i)({prop:g,defaultProp:p,onChange:e=>{var t;null==(t=[...E.current][j.current])||t.focus(),y(e)}}),M=a.useRef(P);function O(e,t){let{commit:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},n=(String(c).split(".")[1]||"").length,a=function(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-l)/c)*c+l,n),o=(0,i.q)(a,[l,s]);N(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(e,o,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=t;return!0}(n,h*c))return e;{j.current=n.indexOf(o);let t=String(n)!==String(e);return t&&r&&b(n),t?n:e}})}return(0,n.jsx)(S,{scope:e.__scopeSlider,name:r,disabled:f,min:l,max:s,valueIndexToChangeRef:j,thumbs:E.current,values:P,orientation:d,form:k,children:(0,n.jsx)(x.Provider,{scope:e.__scopeSlider,children:(0,n.jsx)(x.Slot,{scope:e.__scopeSlider,children:(0,n.jsx)(T?A:R,{"aria-disabled":f,"data-disabled":f?"":void 0,...C,ref:t,onPointerDown:(0,o.m)(C.onPointerDown,()=>{f||(M.current=P)}),min:l,max:s,inverted:w,onSlideStart:f?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}(P,e);O(e,t)},onSlideMove:f?void 0:function(e){O(e,j.current)},onSlideEnd:f?void 0:function(){let e=M.current[j.current];P[j.current]!==e&&b(P)},onHomeKeyDown:()=>!f&&O(l,0,{commit:!0}),onEndKeyDown:()=>!f&&O(s,P.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:r}=e;if(!f){let e=m.includes(t.key)||t.shiftKey&&v.includes(t.key),n=j.current;O(P[n]+c*(e?10:1)*r,n,{commit:!0})}}})})})})});E.displayName=y;var[j,T]=k(y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),A=a.forwardRef((e,t)=>{let{min:r,max:i,dir:o,inverted:s,onSlideStart:u,onSlideMove:d,onSlideEnd:f,onStepKeyDown:h,...p}=e,[m,v]=a.useState(null),y=(0,l.s)(t,e=>v(e)),x=a.useRef(void 0),b=(0,c.j)(o),w="ltr"===b,k=w&&!s||!w&&s;function S(e){let t=x.current||m.getBoundingClientRect(),n=z([0,t.width],k?[r,i]:[i,r]);return x.current=t,n(e-t.left)}return(0,n.jsx)(j,{scope:e.__scopeSlider,startEdge:k?"left":"right",endEdge:k?"right":"left",direction:k?1:-1,size:"width",children:(0,n.jsx)(P,{dir:b,"data-orientation":"horizontal",...p,ref:y,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=S(e.clientX);null==u||u(t)},onSlideMove:e=>{let t=S(e.clientX);null==d||d(t)},onSlideEnd:()=>{x.current=void 0,null==f||f()},onStepKeyDown:e=>{let t=g[k?"from-left":"from-right"].includes(e.key);null==h||h({event:e,direction:t?-1:1})}})})}),R=a.forwardRef((e,t)=>{let{min:r,max:i,inverted:o,onSlideStart:s,onSlideMove:u,onSlideEnd:c,onStepKeyDown:d,...f}=e,h=a.useRef(null),p=(0,l.s)(t,h),m=a.useRef(void 0),v=!o;function y(e){let t=m.current||h.current.getBoundingClientRect(),n=z([0,t.height],v?[i,r]:[r,i]);return m.current=t,n(e-t.top)}return(0,n.jsx)(j,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:(0,n.jsx)(P,{"data-orientation":"vertical",...f,ref:p,style:{...f.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=y(e.clientY);null==s||s(t)},onSlideMove:e=>{let t=y(e.clientY);null==u||u(t)},onSlideEnd:()=>{m.current=void 0,null==c||c()},onStepKeyDown:e=>{let t=g[v?"from-bottom":"from-top"].includes(e.key);null==d||d({event:e,direction:t?-1:1})}})})}),P=a.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:a,onSlideMove:i,onSlideEnd:l,onHomeKeyDown:s,onEndKeyDown:u,onStepKeyDown:c,...d}=e,f=C(y,r);return(0,n.jsx)(h.s.span,{...d,ref:t,onKeyDown:(0,o.m)(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(u(e),e.preventDefault()):m.concat(v).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:(0,o.m)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),f.thumbs.has(t)?t.focus():a(e)}),onPointerMove:(0,o.m)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,o.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),l(e))})})}),N="SliderTrack",M=a.forwardRef((e,t)=>{let{__scopeSlider:r,...a}=e,i=C(N,r);return(0,n.jsx)(h.s.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...a,ref:t})});M.displayName=N;var O="SliderRange",D=a.forwardRef((e,t)=>{let{__scopeSlider:r,...i}=e,o=C(O,r),s=T(O,r),u=a.useRef(null),c=(0,l.s)(t,u),d=o.values.length,f=o.values.map(e=>_(e,o.min,o.max)),p=d>1?Math.min(...f):0,m=100-Math.max(...f);return(0,n.jsx)(h.s.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...i,ref:c,style:{...e.style,[s.startEdge]:p+"%",[s.endEdge]:m+"%"}})});D.displayName=O;var L="SliderThumb",I=a.forwardRef((e,t)=>{let r=b(e.__scopeSlider),[i,o]=a.useState(null),s=(0,l.s)(t,e=>o(e)),u=a.useMemo(()=>i?r().findIndex(e=>e.ref.current===i):-1,[r,i]);return(0,n.jsx)(V,{...e,ref:s,index:u})}),V=a.forwardRef((e,t)=>{let{__scopeSlider:r,index:i,name:s,...u}=e,c=C(L,r),d=T(L,r),[p,m]=a.useState(null),v=(0,l.s)(t,e=>m(e)),g=!p||c.form||!!p.closest("form"),y=(0,f.X)(p),b=c.values[i],w=void 0===b?0:_(b,c.min,c.max),k=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(i,c.values.length),S=null==y?void 0:y[d.size],E=S?function(e,t,r){let n=e/2,a=z([0,50],[0,n]);return(n-a(t)*r)*r}(S,w,d.direction):0;return a.useEffect(()=>{if(p)return c.thumbs.add(p),()=>{c.thumbs.delete(p)}},[p,c.thumbs]),(0,n.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:"calc(".concat(w,"% + ").concat(E,"px)")},children:[(0,n.jsx)(x.ItemSlot,{scope:e.__scopeSlider,children:(0,n.jsx)(h.s.span,{role:"slider","aria-label":e["aria-label"]||k,"aria-valuemin":c.min,"aria-valuenow":b,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0,...u,ref:v,style:void 0===b?{display:"none"}:e.style,onFocus:(0,o.m)(e.onFocus,()=>{c.valueIndexToChangeRef.current=i})})}),g&&(0,n.jsx)(F,{name:null!=s?s:c.name?c.name+(c.values.length>1?"[]":""):void 0,form:c.form,value:b},i)]})});I.displayName=L;var F=a.forwardRef((e,t)=>{let{__scopeSlider:r,value:i,...o}=e,s=a.useRef(null),u=(0,l.s)(s,t),c=(0,d.Z)(i);return a.useEffect(()=>{let e=s.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(c!==i&&t){let r=new Event("input",{bubbles:!0});t.call(e,i),e.dispatchEvent(r)}},[c,i]),(0,n.jsx)(h.s.input,{style:{display:"none"},...o,ref:u,defaultValue:i})});function _(e,t,r){return(0,i.q)(100/(r-t)*(e-t),[0,100])}function z(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}F.displayName="RadioBubbleInput";var B=r(83429),H=r(66714),U=r.n(H),W=r(74466);let K=(0,W.F)(["relative","flex","touch-none","select-none","items-center"],{defaultVariants:{colorScheme:"primary",disabled:!1,orientation:"horizontal",size:"medium"},variants:{colorScheme:{neutral:[],primary:[],secondary:[]},disabled:{false:[],true:["cursor-not-allowed","opacity-50"]},orientation:{horizontal:["w-full"],vertical:["flex-col","w-5","h-24"]},size:{medium:""}}}),q=(0,W.F)(["before:bg-neutral-5",'before:content[""]',"before:rounded-full","dark:before:bg-neutral-4","flex","grow","items-center","justify-center","relative"],{defaultVariants:{orientation:"horizontal"},variants:{orientation:{horizontal:["before:h-1","before:w-full","h-4","w-full"],vertical:["before:h-full","before:w-1","h-full","w-1"]}}}),$=(0,W.F)(["absolute","rounded-full"],{defaultVariants:{colorScheme:"primary",orientation:"horizontal"},variants:{colorScheme:{neutral:["bg-neutral-1","dark:bg-neutral-8"],primary:["bg-primary-2"],secondary:["bg-secondary-2"]},orientation:{horizontal:["h-1"],vertical:["w-full"]}}}),G=(0,W.F)(["active:ring-8","block","focus:hover:ring-8","focus:outline-hidden","focus:ring-4","hover:ring-8","rounded-full","shadow-md","shadow-neutral-1/40","size-4","transition-shadow"],{defaultVariants:{colorScheme:"primary",disabled:!1,dragging:!1},variants:{colorScheme:{neutral:["bg-neutral-1","dark:bg-neutral-8","dark:ring-neutral-7/40","ring-neutral-2/40"],primary:["bg-primary-2","ring-primary-3/40"],secondary:["bg-secondary-2","ring-secondary-3/40"]},disabled:{false:[],true:"pointer-events-none"},dragging:{false:"cursor-grab",true:"cursor-grabbing"}}});var Y=r(72107);let X=(0,W.F)(["absolute","size-0.5"],{compoundVariants:[{className:"",hideActiveTicks:!0,withinActive:!0},{className:"bg-neutral-8",hideActiveTicks:!1,withinActive:!0}],defaultVariants:{hideActiveTicks:!1,withinActive:!1},variants:{hideActiveTicks:{false:[],true:[]},withinActive:{false:["bg-neutral-4","dark:bg-neutral-3"],true:[]}}}),Z=(0,W.F)(["absolute"],{compoundVariants:[{className:["translate-x-1/2"],inverted:!0,orientation:"horizontal"},{className:["-translate-x-1/2"],inverted:!1,orientation:"horizontal"},{className:["translate-y-1/2"],inverted:!0,orientation:"vertical"},{className:["-translate-y-1/2"],inverted:!1,orientation:"vertical"}],defaultVariants:{inverted:!1,orientation:"horizontal"},variants:{inverted:{false:[],true:[]},orientation:{horizontal:["top-5"],vertical:["left-5"]}}}),Q={medium:16},J=({className:e,hideActiveTicks:t,inverted:r,marks:i,max:o,min:l,orientation:s,setValue:u,size:c,step:d,track:f,typographyProps:h={},value:p=[]})=>!i||Array.isArray(i)&&!i.length?null:(Array.isArray(i)?i:Array(Math.floor(o/d)).fill({})).map(({label:i,value:m},v)=>{let g=m||v*d,y="horizontal"===s?g:o-g,x=((e,t,r)=>{let n=e/2,a=((e,t)=>r=>{if(t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])})([0,50],[0,n]);return(n-a(t)*r)*r})(Q[c??"medium"],y,1),b={["horizontal"===s?r?"right":"left":r?"bottom":"top"]:`calc(${y}% + ${x}px)`},{as:w="span",className:k,variant:S="caption1",...C}=h;return(0,n.jsxs)(a.Fragment,{children:[y>l&&y{if(!p.length||!f)return!1;let t="horizontal"===s?e:o-e;return 1===p.length?t<=p[0]:t>=p[0]&&t<=p[p.length-1]})(y)}),"data-index":v,"data-value":y,role:"presentation",style:b}),i&&(0,n.jsx)(Y.o5,{...C,"aria-hidden":"true",as:w,className:Z({className:k,inverted:r,orientation:s}),"data-index":v,onPointerDown:e=>{e.preventDefault(),p?.length>1||u?.([y])},style:b,variant:S,children:i})]},`mark-${v}`)});J.displayName="SliderMarks";let ee=e=>{let{"aria-label":t,"aria-labelledby":r,className:i,colorScheme:o="primary",defaultValue:l,disableSwap:s=!1,disabled:u=!1,hideActiveTicks:c=!1,inverted:d=!1,marks:f,marksTypographyProps:h,max:p=100,min:m=0,minStepsBetweenThumbs:v=0,onValueChange:g,orientation:y="horizontal",showValueTooltip:x=!1,size:b="medium",step:w=1,track:k=!0,value:S,valueTooltipFormat:C=e=>e.toString(),valueTooltipSide:j,...T}=e,A="function"==typeof g,R=(0,a.useRef)(null),P=(0,a.useRef)([]),[N,O]=(0,a.useState)((A?null==S?void 0:S.slice(0,2):null==l?void 0:l.slice(0,2))||[]),[L,V]=(0,a.useState)(!1),[F,_]=(0,a.useState)(null),z=e=>{null==g||g(e),O(e)},H=e=>{if(s&&null!==R.current){if(2===N.length){var t;let r=1-R.current,n=N[r]+(0===r?1:-1)*v,a=Math[0===R.current?"min":"max"](e[R.current],n);return null==(t=P.current[R.current])||t.focus(),z(N.toSpliced(R.current,1,a))}return z(N.toSpliced(R.current,1,e[R.current]))}z(e)},W=e=>{"auto"===x&&V(e)},Y=()=>{V(!1)};return(0,n.jsxs)(E,{className:K({className:i,disabled:u,orientation:y,size:b}),defaultValue:A?void 0:l,disabled:u,inverted:d,max:p,min:m,minStepsBetweenThumbs:v,onValueChange:H,orientation:y,step:w,value:A?S:N,...T,"data-ids":"Slider",children:[(0,n.jsxs)(M,{className:q({orientation:y}),children:[k&&(0,n.jsx)(D,{className:$({colorScheme:o,orientation:y})}),(0,n.jsx)(J,{hideActiveTicks:c,inverted:d,marks:f,max:p,min:m,orientation:y,setValue:H,size:b,step:w,track:k,typographyProps:h,value:N})]}),null==N?void 0:N.map((e,a)=>(0,n.jsx)(U(),{condition:!!x,wrapper:e=>(0,n.jsx)(B.Tooltip,{content:C(N[a]),open:!0===x||L===a,side:j||"horizontal"===y?"top":"right",children:e}),children:(0,n.jsx)(I,{"aria-label":t,"aria-labelledby":r,className:G({colorScheme:o,disabled:u,dragging:F===a}),onBlurCapture:Y,onFocusCapture:()=>W(a),onPointerDown:()=>{R.current=a,_(a)},onPointerEnter:()=>W(a),onPointerLeave:Y,onPointerUp:()=>{_(null)},ref:e=>{P.current[a]=e}})},"thumb-".concat(a)))]})};ee.displayName="Slider"},22436:(e,t,r)=>{"use strict";var n=r(12115),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,o=n.useEffect,l=n.useLayoutEffect,s=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),a=n[0].inst,c=n[1];return l(function(){a.value=r,a.getSnapshot=t,u(a)&&c({inst:a})},[e,r,t]),o(function(){return u(a)&&c({inst:a}),e(function(){u(a)&&c({inst:a})})},[e]),s(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},23387:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});let n={}},24744:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});let n={value:null,addProjectionMetrics:null}},24877:(e,t,r)=>{"use strict";r.d(t,{AccordionContent:()=>o});var n=r(95155),a=r(59576);let i=(0,r(74466).F)(["overflow-hidden","transition-all","data-[state=closed]:animate-accordion-up","data-[state=open]:animate-accordion-down"],{compoundVariants:[],defaultVariants:{},variants:{}}),o=e=>{let{children:t,className:r,...o}=e;return(0,n.jsx)(a.UC,{className:i({className:r}),...o,"data-ids":"AccordionContent",children:(0,n.jsx)("div",{className:"pt-0 pb-4",children:t})})};o.displayName="AccordionContent"},25003:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(12115),a=r(73595),i=r(2279),o=r(62067),l=r(95155),s="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...y}=e,[x,b]=n.useState(null),w=(0,o.c)(v),k=(0,o.c)(g),S=n.useRef(null),C=(0,a.s)(t,e=>b(e)),E=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(E.paused||!x)return;let t=e.target;x.contains(t)?S.current=t:p(S.current,{select:!0})},t=function(e){if(E.paused||!x)return;let t=e.relatedTarget;null!==t&&(x.contains(t)||p(S.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(x)});return x&&r.observe(x,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,x,E.paused]),n.useEffect(()=>{if(x){m.add(E);let e=document.activeElement;if(!x.contains(e)){let t=new CustomEvent(s,c);x.addEventListener(s,w),x.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(p(n,{select:t}),document.activeElement!==r)return}(f(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(x))}return()=>{x.removeEventListener(s,w),setTimeout(()=>{let t=new CustomEvent(u,c);x.addEventListener(u,k),x.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),x.removeEventListener(u,k),m.remove(E)},0)}}},[x,w,k,E]);let j=n.useCallback(e=>{if(!r&&!d||E.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[a,i]=function(e){let t=f(e);return[h(t,e),h(t.reverse(),e)]}(t);a&&i?e.shiftKey||n!==i?e.shiftKey&&n===a&&(e.preventDefault(),r&&p(i,{select:!0})):(e.preventDefault(),r&&p(a,{select:!0})):n===t&&e.preventDefault()}},[r,d,E.paused]);return(0,l.jsx)(i.s.div,{tabIndex:-1,...y,ref:C,onKeyDown:j})});function f(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function h(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=v(e,t)).unshift(t)},remove(t){var r;null==(r=(e=v(e,t))[0])||r.resume()}}}();function v(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},25538:(e,t,r)=>{"use strict";r.d(t,{TabsList:()=>p});var n=r(95155),a=r(12115),i=r(55e3),o=r(87969),l=r(8928);r(93051);var s=r(50676),u=r(52149),c=r(77046),d=r(74466);let f=(0,d.F)(["-mb-4","[&>[data-ids=CarouselContent]]:border-transparent","[&>[data-ids=CarouselContent]]:border","[&>[data-ids=CarouselContent]]:px-px","[&>[data-ids=CarouselContent]]:rounded-full","[&>[data-ids=CarouselContent]>div]:!gap-2","py-4"],{defaultVariants:{jumpList:!1},variants:{jumpList:{false:[],true:["bg-neutral-8/80","dark:bg-neutral-2/80","sticky","top-0","z-high"]}}}),h=(0,d.F)(["-translate-y-1/2","absolute","bg-neutral-8","border-neutral-4","border","dark:bg-neutral-2","dark:border-neutral-5","dark:hover:border-neutral-8","dark:hover:text-neutral-8","dark:text-neutral-5","hover:border-neutral-3","hover:text-neutral-3","motion-reduce:transition-none","p-1","rounded-full","text-neutral-4","top-1/2","transition-colors"],{defaultVariants:{tabSize:"small"},variants:{action:{next:"right-0",prev:"left-0"},tabSize:{large:"size-12",medium:"size-10",small:"size-8"}}}),p=e=>{let{children:t,className:r,disableDrag:d=!1,...p}=e,{activeTab:m,isJumpList:v,tabSize:g,valuePrefix:y}=(0,c.u)(),[x,b]=(0,a.useState)(),w=(0,a.useCallback)(e=>{if(!x)return;let{scrollTarget:t,scrollTo:r}=x.internalEngine(),{distance:n}=t.byIndex(e,1);isNaN(n)?r.index(e,0):r.distance(n+38*(e>0),!1)},[x]);return(0,a.useEffect)(()=>{Array.isArray(t)&&t.length>1&&x&&w(t.findIndex(e=>{var t,r;let n=(null==e?void 0:e.props)||(null==e||null==(r=e._payload)||null==(t=r.value)?void 0:t.props);return m==="".concat(y,"-").concat(n.value)}))},[m]),(0,n.jsx)(i.B8,{asChild:!0,className:f({className:r,jumpList:v}),...p,"data-ids":"TabsList",role:"tablist",children:(0,n.jsxs)(o.Carousel,{as:"nav",disableKeyboardControl:!0,opts:{watchDrag:e=>{let{canScrollNext:t,canScrollPrev:r}=e;return!d&&(t()||r())}},setApi:b,children:[(0,n.jsx)(l.CarouselContent,{children:t}),(0,n.jsx)(u.CarouselPrevious,{"aria-hidden":!0,className:h({action:"prev",tabSize:g}),tabIndex:-1,title:"Scroll tabs to the left"}),(0,n.jsx)(s.CarouselNext,{"aria-hidden":!0,className:h({action:"next",tabSize:g}),tabIndex:-1,title:"Scroll tabs to the right"})]})})};p.displayName="TabsList"},26087:(e,t,r)=>{"use strict";r.d(t,{j:()=>C});var n=r(53191),a=r(54542),i=r(78606),o=r(4272),l=r(60010),s=r(1335),u=r(18476);function c(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var d=r(9064);function f(e,t){return r=>r>0?t:e}var h=r(33210);let p=(e,t,r)=>{let n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},m=[s.u,d.B,u.V];function v(e){let t=m.find(t=>t.test(e));if((0,a.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===u.V&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let a=0,i=0,o=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,l=2*r-n;a=c(l,n,e+1/3),i=c(l,n,e),o=c(l,n,e-1/3)}else a=i=o=r;return{red:Math.round(255*a),green:Math.round(255*i),blue:Math.round(255*o),alpha:n}}(r)),r}let g=(e,t)=>{let r=v(e),n=v(t);if(!r||!n)return f(e,t);let a={...r};return e=>(a.red=p(r.red,n.red,e),a.green=p(r.green,n.green,e),a.blue=p(r.blue,n.blue,e),a.alpha=(0,h.k)(r.alpha,n.alpha,e),d.B.transform(a))},y=new Set(["none","hidden"]);function x(e,t){return r=>(0,h.k)(e,t,r)}function b(e){return"number"==typeof e?x:"string"==typeof e?(0,i.p)(e)?f:o.y.test(e)?g:S:Array.isArray(e)?w:"object"==typeof e?o.y.test(e)?g:k:f}function w(e,t){let r=[...e],n=r.length,a=e.map((e,r)=>b(e)(e,t[r]));return e=>{for(let t=0;t{for(let t in n)r[t]=n[t](e);return r}}let S=(e,t)=>{let r=l.f.createTransformer(t),i=(0,l.V)(e),o=(0,l.V)(t);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?y.has(e)&&!o.values.length||y.has(t)&&!i.values.length?function(e,t){return y.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):(0,n.F)(w(function(e,t){let r=[],n={color:0,var:0,number:0};for(let a=0;a{"use strict";r.d(t,{s:()=>a});var n=r(6983);function a(e){return(0,n.G)(e)&&"offsetHeight"in e}},28217:(e,t,r)=>{"use strict";r.d(t,{DialogFooter:()=>l});var n=r(95155),a=r(12115),i=r(19958);let o=(0,r(74466).F)(["px-6","flex","gap-4","justify-end","pt-2","sm:pt-0"],{compoundVariants:[],defaultVariants:{},variants:{}}),l=e=>{let{children:t,className:r,...l}=e;if(!(0,a.useContext)(i.M))throw Error("DialogFooter must be used within Dialog.");return(0,n.jsx)("div",{className:o({className:r}),...l,"data-ids":"DialogFooter",children:t})};l.displayName="DialogFooter"},28635:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>e1,i3:()=>e5,UC:()=>e2,bL:()=>e0,Bk:()=>eF});var n=r(12115);let a=["top","right","bottom","left"],i=Math.min,o=Math.max,l=Math.round,s=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}let g=new Set(["top","bottom"]);function y(e){return g.has(h(e))?"y":"x"}function x(e){return e.replace(/start|end/g,e=>d[e])}let b=["left","right"],w=["right","left"],k=["top","bottom"],S=["bottom","top"];function C(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function E(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function j(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function T(e,t,r){let n,{reference:a,floating:i}=e,o=y(t),l=m(y(t)),s=v(l),u=h(t),c="y"===o,d=a.x+a.width/2-i.width/2,f=a.y+a.height/2-i.height/2,g=a[s]/2-i[s]/2;switch(u){case"top":n={x:d,y:a.y-i.height};break;case"bottom":n={x:d,y:a.y+a.height};break;case"right":n={x:a.x+a.width,y:f};break;case"left":n={x:a.x-i.width,y:f};break;default:n={x:a.x,y:a.y}}switch(p(t)){case"start":n[l]-=g*(r&&c?-1:1);break;case"end":n[l]+=g*(r&&c?-1:1)}return n}let A=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,l=i.filter(Boolean),s=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=T(u,n,s),f=n,h={},p=0;for(let r=0;re[t]>=0)}let M=new Set(["left","top"]);async function O(e,t){let{placement:r,platform:n,elements:a}=e,i=await (null==n.isRTL?void 0:n.isRTL(a.floating)),o=h(r),l=p(r),s="y"===y(r),u=M.has(o)?-1:1,c=i&&s?-1:1,d=f(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof g&&(v="end"===l?-1*g:g),s?{x:v*c,y:m*u}:{x:m*u,y:v*c}}function D(){return"undefined"!=typeof window}function L(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!D()&&(e instanceof Node||e instanceof I(e).Node)}function _(e){return!!D()&&(e instanceof Element||e instanceof I(e).Element)}function z(e){return!!D()&&(e instanceof HTMLElement||e instanceof I(e).HTMLElement)}function B(e){return!!D()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof I(e).ShadowRoot)}let H=new Set(["inline","contents"]);function U(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!H.has(a)}let W=new Set(["table","td","th"]),K=[":popover-open",":modal"];function q(e){return K.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let $=["transform","translate","scale","rotate","perspective"],G=["transform","translate","scale","rotate","perspective","filter"],Y=["paint","layout","strict","content"];function X(e){let t=Z(),r=_(e)?ee(e):e;return $.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||G.some(e=>(r.willChange||"").includes(e))||Y.some(e=>(r.contain||"").includes(e))}function Z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Q=new Set(["html","body","#document"]);function J(e){return Q.has(L(e))}function ee(e){return I(e).getComputedStyle(e)}function et(e){return _(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if("html"===L(e))return e;let t=e.assignedSlot||e.parentNode||B(e)&&e.host||V(e);return B(t)?t.host:t}function en(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let a=function e(t){let r=er(t);return J(r)?t.ownerDocument?t.ownerDocument.body:t.body:z(r)&&U(r)?r:e(r)}(e),i=a===(null==(n=e.ownerDocument)?void 0:n.body),o=I(a);if(i){let e=ea(o);return t.concat(o,o.visualViewport||[],U(a)?a:[],e&&r?en(e):[])}return t.concat(a,en(a,[],r))}function ea(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ei(e){let t=ee(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=z(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,s=l(r)!==i||l(n)!==o;return s&&(r=i,n=o),{width:r,height:n,$:s}}function eo(e){return _(e)?e:e.contextElement}function el(e){let t=eo(e);if(!z(t))return u(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:i}=ei(t),o=(i?l(r.width):r.width)/n,s=(i?l(r.height):r.height)/a;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let es=u(0);function eu(e){let t=I(e);return Z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:es}function ec(e,t,r,n){var a;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),o=eo(e),l=u(1);t&&(n?_(n)&&(l=el(n)):l=el(e));let s=(void 0===(a=r)&&(a=!1),n&&(!a||n===I(o))&&a)?eu(o):u(0),c=(i.left+s.x)/l.x,d=(i.top+s.y)/l.y,f=i.width/l.x,h=i.height/l.y;if(o){let e=I(o),t=n&&_(n)?I(n):n,r=e,a=ea(r);for(;a&&n&&t!==r;){let e=el(a),t=a.getBoundingClientRect(),n=ee(a),i=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,h*=e.y,c+=i,d+=o,a=ea(r=I(a))}}return j({width:f,height:h,x:c,y:d})}function ed(e,t){let r=et(e).scrollLeft;return t?t.left+r:ec(V(e)).left+r}function ef(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ed(e,r),y:r.top+t.scrollTop}}let eh=new Set(["absolute","fixed"]);function ep(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=I(e),n=V(e),a=r.visualViewport,i=n.clientWidth,o=n.clientHeight,l=0,s=0;if(a){i=a.width,o=a.height;let e=Z();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}let u=ed(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(n.clientWidth-t.clientWidth-a);o<=25&&(i-=o)}else u<=25&&(i+=u);return{width:i,height:o,x:l,y:s}}(e,r);else if("document"===t)n=function(e){let t=V(e),r=et(e),n=e.ownerDocument.body,a=o(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=o(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),l=-r.scrollLeft+ed(e),s=-r.scrollTop;return"rtl"===ee(n).direction&&(l+=o(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:s}}(V(e));else if(_(t))n=function(e,t){let r=ec(e,!0,"fixed"===t),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=z(e)?el(e):u(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y;return{width:o,height:l,x:a*i.x,y:n*i.y}}(t,r);else{let r=eu(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return j(n)}function em(e){return"static"===ee(e).position}function ev(e,t){if(!z(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let r=e.offsetParent;return V(e)===r&&(r=r.ownerDocument.body),r}function eg(e,t){var r;let n=I(e);if(q(e))return n;if(!z(e)){let t=er(e);for(;t&&!J(t);){if(_(t)&&!em(t))return t;t=er(t)}return n}let a=ev(e,t);for(;a&&(r=a,W.has(L(r)))&&em(a);)a=ev(a,t);return a&&J(a)&&em(a)&&!X(a)?n:a||function(e){let t=er(e);for(;z(t)&&!J(t);){if(X(t))return t;if(q(t))break;t=er(t)}return null}(e)||n}let ey=async function(e){let t=this.getOffsetParent||eg,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=z(t),a=V(t),i="fixed"===r,o=ec(e,!0,i,t),l={scrollLeft:0,scrollTop:0},s=u(0);if(n||!n&&!i)if(("body"!==L(t)||U(a))&&(l=et(t)),n){let e=ec(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=ed(a));i&&!n&&a&&(s.x=ed(a));let c=!a||n||i?u(0):ef(a,l);return{x:o.left+l.scrollLeft-s.x-c.x,y:o.top+l.scrollTop-s.y-c.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ex={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,i="fixed"===a,o=V(n),l=!!t&&q(t.floating);if(n===o||l&&i)return r;let s={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),f=z(n);if((f||!f&&!i)&&(("body"!==L(n)||U(o))&&(s=et(n)),z(n))){let e=ec(n);c=el(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let h=!o||f||i?u(0):ef(o,s);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-s.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-s.scrollTop*c.y+d.y+h.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,l=[..."clippingAncestors"===r?q(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=en(e,[],!1).filter(e=>_(e)&&"body"!==L(e)),a=null,i="fixed"===ee(e).position,o=i?er(e):e;for(;_(o)&&!J(o);){let t=ee(o),r=X(o);r||"fixed"!==t.position||(a=null),(i?!r&&!a:!r&&"static"===t.position&&!!a&&eh.has(a.position)||U(o)&&!r&&function e(t,r){let n=er(t);return!(n===r||!_(n)||J(n))&&("fixed"===ee(n).position||e(n,r))}(e,o))?n=n.filter(e=>e!==o):a=t,o=er(o)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=l[0],u=l.reduce((e,r)=>{let n=ep(t,r,a);return e.top=o(n.top,e.top),e.right=i(n.right,e.right),e.bottom=i(n.bottom,e.bottom),e.left=o(n.left,e.left),e},ep(t,s,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:eg,getElementRects:ey,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ei(e);return{width:t,height:r}},getScale:el,isElement:_,isRTL:function(e){return"rtl"===ee(e).direction}};function eb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ew=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:a,rects:l,platform:s,elements:u,middlewareData:c}=t,{element:d,padding:h=0}=f(e,t)||{};if(null==d)return{};let g=E(h),x={x:r,y:n},b=m(y(a)),w=v(b),k=await s.getDimensions(d),S="y"===b,C=S?"clientHeight":"clientWidth",j=l.reference[w]+l.reference[b]-x[b]-l.floating[w],T=x[b]-l.reference[b],A=await (null==s.getOffsetParent?void 0:s.getOffsetParent(d)),R=A?A[C]:0;R&&await (null==s.isElement?void 0:s.isElement(A))||(R=u.floating[C]||l.floating[w]);let P=R/2-k[w]/2-1,N=i(g[S?"top":"left"],P),M=i(g[S?"bottom":"right"],P),O=R-k[w]-M,D=R/2-k[w]/2+(j/2-T/2),L=o(N,i(D,O)),I=!c.arrow&&null!=p(a)&&D!==L&&l.reference[w]/2-(D{t.current=e}),t}var eA=r(2279),eR=r(95155),eP=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:a=5,...i}=e;return(0,eR.jsx)(eA.s.svg,{...i,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eR.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eP.displayName="Arrow";var eN=r(73595),eM=r(66801),eO=r(62067),eD=r(64730),eL=r(83793),eI="Popper",[eV,eF]=(0,eM.A)(eI),[e_,ez]=eV(eI),eB=e=>{let{__scopePopper:t,children:r}=e,[a,i]=n.useState(null);return(0,eR.jsx)(e_,{scope:t,anchor:a,onAnchorChange:i,children:r})};eB.displayName=eI;var eH="PopperAnchor",eU=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:a,...i}=e,o=ez(eH,r),l=n.useRef(null),s=(0,eN.s)(t,l),u=n.useRef(null);return n.useEffect(()=>{let e=u.current;u.current=(null==a?void 0:a.current)||l.current,e!==u.current&&o.onAnchorChange(u.current)}),a?null:(0,eR.jsx)(eA.s.div,{...i,ref:s})});eU.displayName=eH;var eW="PopperContent",[eK,eq]=eV(eW),e$=n.forwardRef((e,t)=>{var r,a,l,u,c,d,g,E;let{__scopePopper:j,side:T="bottom",sideOffset:D=0,align:L="center",alignOffset:I=0,arrowPadding:F=0,avoidCollisions:_=!0,collisionBoundary:z=[],collisionPadding:B=0,sticky:H="partial",hideWhenDetached:U=!1,updatePositionStrategy:W="optimized",onPlaced:K,...q}=e,$=ez(eW,j),[G,Y]=n.useState(null),X=(0,eN.s)(t,e=>Y(e)),[Z,Q]=n.useState(null),J=(0,eL.X)(Z),ee=null!=(g=null==J?void 0:J.width)?g:0,et=null!=(E=null==J?void 0:J.height)?E:0,er="number"==typeof B?B:{top:0,right:0,bottom:0,left:0,...B},ea=Array.isArray(z)?z:[z],ei=ea.length>0,el={padding:er,boundary:ea.filter(eZ),altBoundary:ei},{refs:es,floatingStyles:eu,placement:ed,isPositioned:ef,middlewareData:eh}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:i,elements:{reference:o,floating:l}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,f]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=n.useState(a);eC(h,a)||p(a);let[m,v]=n.useState(null),[g,y]=n.useState(null),x=n.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),b=n.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),w=o||m,k=l||g,S=n.useRef(null),C=n.useRef(null),E=n.useRef(d),j=null!=u,T=eT(u),R=eT(i),P=eT(c),N=n.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:r,middleware:h};R.current&&(e.platform=R.current),((e,t,r)=>{let n=new Map,a={platform:ex,...r},i={...a.platform,_c:n};return A(e,t,{...a,platform:i})})(S.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};M.current&&!eC(E.current,t)&&(E.current=t,ek.flushSync(()=>{f(t)}))})},[h,t,r,R,P]);eS(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let M=n.useRef(!1);eS(()=>(M.current=!0,()=>{M.current=!1}),[]),eS(()=>{if(w&&(S.current=w),k&&(C.current=k),w&&k){if(T.current)return T.current(w,k,N);N()}},[w,k,N,T,j]);let O=n.useMemo(()=>({reference:S,floating:C,setReference:x,setFloating:b}),[x,b]),D=n.useMemo(()=>({reference:w,floating:k}),[w,k]),L=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!D.floating)return e;let t=ej(D.floating,d.x),n=ej(D.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...eE(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,D.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:N,refs:O,elements:D,floatingStyles:L}),[d,N,O,D,L])}({strategy:"fixed",placement:T+("center"!==L?"-"+L:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let m=h&&d?function(e,t){let r,n=null,a=V(e);function l(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let f=e.getBoundingClientRect(),{left:h,top:p,width:m,height:v}=f;if(c||t(),!m||!v)return;let g=s(p),y=s(a.clientWidth-(h+m)),x={rootMargin:-g+"px "+-y+"px "+-s(a.clientHeight-(p+v))+"px "+-s(h)+"px",threshold:o(0,i(1,d))||1},b=!0;function w(t){let n=t[0].intersectionRatio;if(n!==d){if(!b)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==n||eb(f,e.getBoundingClientRect())||u(),b=!1}try{n=new IntersectionObserver(w,{...x,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(w,x)}n.observe(e)}(!0),l}(h,r):null,v=-1,g=null;c&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===h&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),h&&!f&&g.observe(h),g.observe(t));let y=f?ec(e):null;return f&&function t(){let n=ec(e);y&&!eb(y,n)&&r(),y=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(a)}}(...t,{animationFrame:"always"===W})},elements:{reference:$.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:a,y:i,placement:o,middlewareData:l}=t,s=await O(t,e);return o===(null==(r=l.offset)?void 0:r.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:a+s.x,y:i+s.y,data:{...s,placement:o}}}}}(e),options:[e,t]}))({mainAxis:D+et,alignmentAxis:I}),_&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:a}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=f(e,t),d={x:r,y:n},p=await R(t,c),v=y(h(a)),g=m(v),x=d[g],b=d[v];if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",r=x+p[e],n=x-p[t];x=o(r,i(x,n))}if(s){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",r=b+p[e],n=b-p[t];b=o(r,i(b,n))}let w=u.fn({...t,[g]:x,[v]:b});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[g]:l,[v]:s}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===H?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:a,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=f(e,t),c={x:r,y:n},d=y(a),p=m(d),v=c[p],g=c[d],x=f(l,t),b="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){let e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+b.mainAxis,r=i.reference[p]+i.reference[e]-b.mainAxis;vr&&(v=r)}if(u){var w,k;let e="y"===p?"width":"height",t=M.has(h(a)),r=i.reference[d]-i.floating[e]+(t&&(null==(w=o.offset)?void 0:w[d])||0)+(t?0:b.crossAxis),n=i.reference[d]+i.reference[e]+(t?0:(null==(k=o.offset)?void 0:k[d])||0)-(t?b.crossAxis:0);gn&&(g=n)}return{[p]:v,[d]:g}}}}(e),options:[e,t]}))():void 0,...el}),_&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,a,i,o;let{placement:l,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:g}=t,{mainAxis:E=!0,crossAxis:j=!0,fallbackPlacements:T,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:N=!0,...M}=f(e,t);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};let O=h(l),D=y(c),L=h(c)===c,I=await (null==d.isRTL?void 0:d.isRTL(g.floating)),V=T||(L||!N?[C(c)]:function(e){let t=C(e);return[x(e),t,x(t)]}(c)),F="none"!==P;!T&&F&&V.push(...function(e,t,r,n){let a=p(e),i=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?w:b;return t?b:w;case"left":case"right":return t?k:S;default:return[]}}(h(e),"start"===r,n);return a&&(i=i.map(e=>e+"-"+a),t&&(i=i.concat(i.map(x)))),i}(c,N,P,I));let _=[c,...V],z=await R(t,M),B=[],H=(null==(n=s.flip)?void 0:n.overflows)||[];if(E&&B.push(z[O]),j){let e=function(e,t,r){void 0===r&&(r=!1);let n=p(e),a=m(y(e)),i=v(a),o="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=C(o)),[o,C(o)]}(l,u,I);B.push(z[e[0]],z[e[1]])}if(H=[...H,{placement:l,overflows:B}],!B.every(e=>e<=0)){let e=((null==(a=s.flip)?void 0:a.index)||0)+1,t=_[e];if(t&&("alignment"!==j||D===y(t)||H.every(e=>y(e.placement)!==D||e.overflows[0]>0)))return{data:{index:e,overflows:H},reset:{placement:t}};let r=null==(i=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(A){case"bestFit":{let e=null==(o=H.filter(e=>{if(F){let t=y(e.placement);return t===D||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=c}if(l!==r)return{reset:{placement:r}}}return{}}}}(e),options:[e,t]}))({...el}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let a,l,{placement:s,rects:u,platform:c,elements:d}=t,{apply:m=()=>{},...v}=f(e,t),g=await R(t,v),x=h(s),b=p(s),w="y"===y(s),{width:k,height:S}=u.floating;"top"===x||"bottom"===x?(a=x,l=b===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(l=x,a="end"===b?"top":"bottom");let C=S-g.top-g.bottom,E=k-g.left-g.right,j=i(S-g[a],C),T=i(k-g[l],E),A=!t.middlewareData.shift,P=j,N=T;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(N=E),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(P=C),A&&!b){let e=o(g.left,0),t=o(g.right,0),r=o(g.top,0),n=o(g.bottom,0);w?N=k-2*(0!==e||0!==t?e+t:o(g.left,g.right)):P=S-2*(0!==r||0!==n?r+n:o(g.top,g.bottom))}await m({...t,availableWidth:N,availableHeight:P});let M=await c.getDimensions(d.floating);return k!==M.width||S!==M.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...el,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:a}=e,{width:i,height:o}=r.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(n,"px")),l.setProperty("--radix-popper-available-height","".concat(a,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}}),Z&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?ew({element:r.current,padding:n}).fn(t):{}:r?ew({element:r,padding:n}).fn(t):{}}}))(e),options:[e,t]}))({element:Z,padding:F}),eQ({arrowWidth:ee,arrowHeight:et}),U&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...a}=f(e,t);switch(n){case"referenceHidden":{let e=P(await R(t,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:N(e)}}}case"escaped":{let e=P(await R(t,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:N(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...el})]}),[ep,em]=eJ(ed),ev=(0,eO.c)(K);(0,eD.N)(()=>{ef&&(null==ev||ev())},[ef,ev]);let eg=null==(r=eh.arrow)?void 0:r.x,ey=null==(a=eh.arrow)?void 0:a.y,eP=(null==(l=eh.arrow)?void 0:l.centerOffset)!==0,[eM,eI]=n.useState();return(0,eD.N)(()=>{G&&eI(window.getComputedStyle(G).zIndex)},[G]),(0,eR.jsx)("div",{ref:es.setFloating,"data-radix-popper-content-wrapper":"",style:{...eu,transform:ef?eu.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eM,"--radix-popper-transform-origin":[null==(u=eh.transformOrigin)?void 0:u.x,null==(c=eh.transformOrigin)?void 0:c.y].join(" "),...(null==(d=eh.hide)?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eR.jsx)(eK,{scope:j,placedSide:ep,onArrowChange:Q,arrowX:eg,arrowY:ey,shouldHideArrow:eP,children:(0,eR.jsx)(eA.s.div,{"data-side":ep,"data-align":em,...q,ref:X,style:{...q.style,animation:ef?void 0:"none"}})})})});e$.displayName=eW;var eG="PopperArrow",eY={top:"bottom",right:"left",bottom:"top",left:"right"},eX=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,a=eq(eG,r),i=eY[a.placedSide];return(0,eR.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,eR.jsx)(eP,{...n,ref:t,style:{...n.style,display:"block"}})})});function eZ(e){return null!==e}eX.displayName=eG;var eQ=e=>({name:"transformOrigin",options:e,fn(t){var r,n,a,i,o;let{placement:l,rects:s,middlewareData:u}=t,c=(null==(r=u.arrow)?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=eJ(l),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(i=null==(n=u.arrow)?void 0:n.x)?i:0)+d/2,g=(null!=(o=null==(a=u.arrow)?void 0:a.y)?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:"".concat(v,"px"),x="".concat(-f,"px")):"top"===h?(y=c?m:"".concat(v,"px"),x="".concat(s.floating.height+f,"px")):"right"===h?(y="".concat(-f,"px"),x=c?m:"".concat(g,"px")):"left"===h&&(y="".concat(s.floating.width+f,"px"),x=c?m:"".concat(g,"px")),{data:{x:y,y:x}}}});function eJ(e){let[t,r="center"]=e.split("-");return[t,r]}var e0=eB,e1=eU,e2=e$,e5=eX},28970:(e,t,r)=>{"use strict";r.d(t,{DialogContent:()=>s});var n=r(95155),a=r(12115),i=r(72107),o=r(19958);let l=(0,r(74466).F)(["max-h-[50vh]","overflow-y-auto","sm:mt-auto"],{compoundVariants:[],defaultVariants:{},variants:{collapsePadding:{false:["px-6","py-2"],true:[]}}}),s=e=>{let{children:t,className:r,collapsePadding:s=!1,variant:u="body2",...c}=e,d=(0,a.useContext)(o.M);if(!d)throw Error("DialogContent must be used within Dialog.");let{setDescribedBy:f}=d,h=(0,a.useId)(),p=!Array.isArray(t);return(0,a.useEffect)(()=>{p&&f(h)},[h]),(0,n.jsx)(i.o5,{as:"div",className:l({className:r,collapsePadding:s}),id:h,variant:u,...c,"data-ids":"DialogContent",children:t})};s.displayName="DialogContent"},29163:(e,t,r)=>{"use strict";r.d(t,{TabsContent:()=>u});var n=r(95155),a=r(12115),i=r(55e3),o=r(86950),l=r(77046);let s=(0,r(74466).F)(["scroll-mt-20"],{defaultVariants:{jumpList:!1},variants:{jumpList:{false:["data-[state=inactive]:hidden","@3xl/tabs:-mt-4","@5xl/tabs:-mt-6","-mt-2"],true:["@3xl/tabs:first-of-type:-mt-4","@5xl/tabs:first-of-type:-mt-6","first-of-type:-mt-2"]}}}),u=e=>{let{children:t,className:r,ref:u,value:c,...d}=e,f=(0,a.useRef)(null);(0,a.useImperativeHandle)(u,()=>f.current,[]);let{isJumpList:h,setTabContentVisibility:p,valuePrefix:m}=(0,l.u)(),v="".concat(m,"-").concat(c);if(h){let e=(0,o.default)(f,{rootMargin:"-66px",threshold:0});(0,a.useEffect)(()=>{if(h&&f.current){let t=window.innerHeight/f.current.getBoundingClientRect().height;p(v,(null==e?void 0:e.isIntersecting)&&e.intersectionRatio>=(t<0?.99*t:0)||!1)}},[null==e?void 0:e.intersectionRatio])}return(0,n.jsx)(i.UC,{className:s({className:r,jumpList:h}),"data-value":v,forceMount:!0,value:v,...d,"data-ids":"TabsContent",ref:f,children:t})};u.displayName="TabsContent"},29385:(e,t,r)=>{"use strict";r.d(t,{E:()=>u});var n=new WeakMap,a=new WeakMap,i={},o=0,l=function(e){return e&&(e.host||l(e.parentNode))},s=function(e,t,r,s){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=l(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var c=i[r],d=[],f=new Set,h=new Set(u),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(s),i=null!==t&&"false"!==t,o=(n.get(e)||0)+1,l=(c.get(e)||0)+1;n.set(e,o),c.set(e,l),d.push(e),1===o&&i&&a.set(e,!0),1===l&&e.setAttribute(r,"true"),i||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),o++,function(){d.forEach(function(e){var t=n.get(e)-1,i=c.get(e)-1;n.set(e,t),c.set(e,i),t||(a.has(e)||e.removeAttribute(s),a.delete(e)),i||e.removeAttribute(r)}),--o||(n=new WeakMap,n=new WeakMap,a=new WeakMap,i={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body;return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),s(n,a,r,"aria-hidden")):function(){return null}}},29753:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(95155),a=r(12115),i=r(74466);let o=(0,i.F)(["flex","relative","h-full"],{compoundVariants:[{className:["[&>[data-ids=CardContent]_[data-card-subtitle]]:transition-colors","[&>[data-ids=CardContent]_[data-card-title]]:transition-colors","dark:hover:bg-neutral-6","dark:hover:bg-neutral-8","dark:hover:text-neutral-1","hover:[&>[data-ids=CardContent]_[data-card-subtitle]]:text-neutral-6","hover:[&>[data-ids=CardContent]_[data-card-title]]:!no-underline","hover:[&>[data-ids=CardContent]_[data-card-title]]:text-neutral-8","hover:bg-neutral-3","hover:border-transparent","hover:dark:[&>[data-ids=CardContent]_[data-card-subtitle]]:text-neutral-3","hover:dark:[&>[data-ids=CardContent]_[data-card-title]]:text-neutral-2","hover:shadow-none","hover:text-neutral-8","transition-colors"],interactive:!0,variant:"tile"}],defaultVariants:{orientation:"auto"},variants:{interactive:{true:["hover:[&>[data-ids=CardContent]_[data-card-title]]:underline"]},orientation:{auto:["gap-4","@sm:gap-6","[&>[data-ids=CardMedia]]:flex-1","[&>[data-ids=CardMedia]]:@sm:flex-[1.5]","[&>[data-ids=CardContent]]:flex-[2]","@md:flex-col","@md:[&>[data-ids=CardMedia]]:flex-none","@md:[&>[data-ids=CardContent]]:flex-none","@md:gap-2"],horizontal:["gap-4","@sm:gap-6","[&>[data-ids=CardMedia]]:flex-1","[&>[data-ids=CardMedia]]:@sm:flex-[1.5]","[&>[data-ids=CardContent]]:flex-[2]"],vertical:["flex-col","gap-2"]},variant:{hero:["[&>[data-ids=CardContent]_[data-card-title]]:!typography-h5","[&>[data-ids=CardContent]_[data-card-title]]:@lg:!typography-h4","[&>[data-ids=CardContent]_[data-card-title]]:@xl:!typography-h3","[&>[data-ids=CardContent]_[data-card-title]]:text-neutral-2","[&>[data-ids=CardContent]_[data-card-subtitle]]:text-neutral-3","[&>[data-ids=CardContent]_[data-card-label]]:text-neutral-3","[&>[data-ids=CardContent]_[data-card-title]]:dark:text-neutral-8","[&>[data-ids=CardContent]_[data-card-subtitle]]:dark:text-neutral-6","[&>[data-ids=CardContent]_[data-card-label]]:dark:text-neutral-6","[&>[data-ids=CardContent]_[data-card-title]]:@md:text-neutral-8","[&>[data-ids=CardContent]_[data-card-subtitle]]:@md:text-neutral-6","[&>[data-ids=CardContent]_[data-card-label]]:@md:text-neutral-6","[&>[data-ids=CardContent]>[data-ids=CardTitle]]:@md:bg-gradient-to-t","[&>[data-ids=CardContent]>[data-ids=CardTitle]]:@md:from-neutral-1/80","[&>[data-ids=CardContent]>[data-ids=CardTitle]]:@md:from-30%","[&>[data-ids=CardContent]>[data-ids=CardTitle]]:@md:p-8","[&>[data-ids=CardContent]>[data-ids=CardTitle]]:@md:rounded-b-lg","[&>[data-ids=CardContent]>[data-ids=CardTitle]]:@md:to-transparent","[&>[data-ids=CardContent]]:@md:absolute","[&>[data-ids=CardContent]]:@md:flex-col-reverse","[&>[data-ids=CardContent]]:@md:flex","[&>[data-ids=CardContent]]:@md:inset-0"],tile:["[&:not(div)]:bg-primary-1","[&>[data-ids=CardContent]_[data-card-subtitle]]:text-neutral-3","[&>[data-ids=CardContent]_[data-card-title]]:text-neutral-2","[&>[data-ids=CardContent]]:text-center","[&>[data-ids=CardMedia]]:self-center","bg-neutral-8","border-neutral-6","border","dark:[&>[data-ids=CardContent]_[data-card-subtitle]]:text-neutral-6","dark:[&>[data-ids=CardContent]_[data-card-title]]:text-neutral-8","dark:bg-neutral-3","dark:border-transparent","dark:shadow-none","justify-center","p-4","rounded-lg","shadow-[0px_4px_20px_0px_rgba(0,0,0,0.06)]"]}}}),l=(0,a.forwardRef)(({as:e="div",children:t,className:r,orientation:a="auto",variant:l,...s},u)=>{let c=["hero","tile"].includes(l||"")?"vertical":a;return(0,n.jsx)(e,{className:(0,i.cx)("group/card block w-full text-left",r,{"@container":"auto"!==c,"@container-normal":"auto"===c}),...s,"data-ids":"Card",ref:u,children:(0,n.jsx)("div",{className:o({interactive:"div"!==e,orientation:c,variant:l}),children:t})})});l.displayName="Card"},30614:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},31073:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var n=r(95155),a=r(74466);let i=e=>Array.from(Array(12)).reduce((t,r,n)=>{let a=n+1;return t[a]=`${e?`${e}:`:""}grid-cols-${a}`,t},{}),o=(0,a.F)(["grid","grid-flow-row"],{defaultVariants:{columns:1},variants:{columns:i(),xs:i("@xs"),sm:i("@sm"),md:i("@md"),lg:i("@lg"),xl:i("@xl")}}),l=({children:e,className:t,columns:r=1,lg:a,md:i,sm:l,spacing:s=1,xl:u,xs:c,...d})=>(0,n.jsx)("div",{className:"@container",...d,"data-ids":"CardGrid",children:(0,n.jsx)("div",{className:o({className:t,columns:r,lg:a,md:i,sm:l,xl:u,xs:c}),style:{gap:`${s}rem`},children:e})});l.displayName="CardGrid"},31206:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(12115);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,[r,a]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let r=setTimeout(()=>{a(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}},31513:(e,t,r)=>{"use strict";r.d(t,{Drawer:()=>l});var n=r(95155),a=r(74466),i=r(58438);let o=(0,a.F)(["data-[state=closed]:animate-out","data-[state=open]:animate-in","duration-200","fixed","overflow-y-auto"],{compoundVariants:[],defaultVariants:{anchor:"left",theme:"auto"},variants:{anchor:{bottom:["data-[state=closed]:slide-out-to-bottom","data-[state=open]:slide-in-from-bottom","bottom-0","left-0","w-full"],left:["data-[state=closed]:slide-out-to-left","data-[state=open]:slide-in-from-left","h-full","left-0","top-0"],right:["data-[state=closed]:slide-out-to-right","data-[state=open]:slide-in-from-right","right-0","top-0","h-full"],top:["data-[state=closed]:slide-out-to-top","data-[state=open]:slide-in-from-top","top-0","left-0","w-full"]},theme:{auto:["bg-neutral-8","dark:bg-neutral-2","dark:scheme-dark","dark:scrollbar-dark","dark:text-neutral-8","text-neutral-1"],dark:["bg-neutral-2","text-neutral-8","scrollbar-dark","scheme-dark"],light:["bg-neutral-8","text-neutral-1"]}}}),l=e=>{let{anchor:t="left",children:r,className:l,theme:s="auto",...u}=e;return(0,n.jsx)(i.Modal,{className:o({anchor:t,className:l,theme:s}),...u,"data-ids":"Drawer",children:(0,n.jsx)("div",{className:(0,a.cx)(l,{dark:"dark"===s}),...u,children:r})})};l.displayName="Drawer"},32082:(e,t,r)=>{"use strict";r.d(t,{xQ:()=>i});var n=r(12115),a=r(80845);function i(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,n.useContext)(a.t);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:i,register:o}=t,l=(0,n.useId)();(0,n.useEffect)(()=>{if(e)return o(l)},[e]);let s=(0,n.useCallback)(()=>e&&i&&i(l),[l,i,e]);return!r&&i?[!1,s]:[!0]}},32242:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Avatar:()=>P,default:()=>P});var n,a,i=r(95155),o=r(5036),l=r(1773),s=r.n(l),u=r(12115),c=r(66801),d=r(62067),f=r(64730),h=r(2279),p={exports:{}},m={},v=(a||(a=1,p.exports=function(){if(n)return m;n=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=u.useState,r=u.useEffect,a=u.useLayoutEffect,i=u.useDebugValue;function o(t){var r=t.getSnapshot;t=t.value;try{var n=r();return!e(t,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,n){var l=n(),s=t({inst:{value:l,getSnapshot:n}}),u=s[0].inst,c=s[1];return a(function(){u.value=l,u.getSnapshot=n,o(u)&&c({inst:u})},[e,l,n]),r(function(){return o(u)&&c({inst:u}),e(function(){o(u)&&c({inst:u})})},[e]),i(l),l};return m.useSyncExternalStore=void 0!==u.useSyncExternalStore?u.useSyncExternalStore:l,m}()),p.exports);function g(){return()=>{}}var y="Avatar",[x]=(0,c.A)(y),[b,w]=x(y),k=u.forwardRef((e,t)=>{let{__scopeAvatar:r,...n}=e,[a,o]=u.useState("idle");return(0,i.jsx)(b,{scope:r,imageLoadingStatus:a,onImageLoadingStatusChange:o,children:(0,i.jsx)(h.s.span,{...n,ref:t})})});k.displayName=y;var S="AvatarImage",C=u.forwardRef((e,t)=>{let{__scopeAvatar:r,src:n,onLoadingStatusChange:a=()=>{},...o}=e,l=w(S,r),s=function(e,t){let{referrerPolicy:r,crossOrigin:n}=t,a=v.useSyncExternalStore(g,()=>!0,()=>!1),i=u.useRef(null),o=a?(i.current||(i.current=new window.Image),i.current):null,[l,s]=u.useState(()=>T(o,e));return(0,f.N)(()=>{s(T(o,e))},[o,e]),(0,f.N)(()=>{let e=e=>()=>{s(e)};if(!o)return;let t=e("loaded"),a=e("error");return o.addEventListener("load",t),o.addEventListener("error",a),r&&(o.referrerPolicy=r),"string"==typeof n&&(o.crossOrigin=n),()=>{o.removeEventListener("load",t),o.removeEventListener("error",a)}},[o,n,r]),l}(n,o),c=(0,d.c)(e=>{a(e),l.onImageLoadingStatusChange(e)});return(0,f.N)(()=>{"idle"!==s&&c(s)},[s,c]),"loaded"===s?(0,i.jsx)(h.s.img,{...o,ref:t,src:n}):null});C.displayName=S;var E="AvatarFallback",j=u.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:n,...a}=e,o=w(E,r),[l,s]=u.useState(void 0===n);return u.useEffect(()=>{if(void 0!==n){let e=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(e)}},[n]),l&&"loaded"!==o.imageLoadingStatus?(0,i.jsx)(h.s.span,{...a,ref:t}):null});function T(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}j.displayName=E;var A=r(72107);let R=(0,r(74466).F)(["@container","flex","h-10","overflow-hidden","relative","select-none","shrink-0","w-10"],{compoundVariants:[{class:["bg-neutral-3","text-neutral-8","dark:bg-neutral-6","dark:text-neutral-1"],colorScheme:"neutral-3",ignoreTheme:!1},{class:["bg-neutral-3","text-neutral-8"],colorScheme:"neutral-3",ignoreTheme:!0},{class:["bg-neutral-6","text-neutral-1","dark:bg-neutral-3","dark:text-neutral-8"],colorScheme:"neutral-6",ignoreTheme:!1},{class:["bg-neutral-6","text-neutral-1"],colorScheme:"neutral-6",ignoreTheme:!0}],defaultVariants:{colorScheme:"neutral-3",ignoreTheme:!1,variant:"circular"},variants:{colorScheme:{"neutral-3":[],"neutral-6":[]},ignoreTheme:{false:[],true:[]},variant:{circular:["rounded-full"],rounded:["rounded-md"]}}}),P=e=>{let{alt:t,children:r,className:n,colorScheme:a="neutral-3",height:l,ignoreTheme:u=!1,src:c,variant:d="circular",width:f,...h}=e,p=e=>e.replace(/([A-Z])/g," $1").split(" ").map(e=>e[0]).join("").toUpperCase(),m=()=>"string"==typeof r?(0,i.jsx)(A.o5,{className:"!text-[50cqw]",disableColorScheme:!0,children:p(r)}):t?(0,i.jsx)(A.o5,{className:"!text-[50cqw]",disableColorScheme:!0,children:p(t)}):void 0!==r?r:(0,i.jsx)(s(),{path:o.gXw,size:"80%"});return(0,i.jsx)(k,{className:R({className:n,colorScheme:a,ignoreTheme:u,variant:d}),style:l||f?{height:"".concat(l||f,"rem"),width:"".concat(f||l,"rem")}:{},...h,"data-ids":"Avatar",children:c?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C,{alt:t||("string"==typeof r?r:""),className:"aspect-square h-full w-full object-cover",src:c}),(0,i.jsx)(j,{className:"flex h-full w-full items-center justify-center",children:m()})]}):(0,i.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:m()})})};P.displayName="Avatar"},33210:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});let n=(e,t,r)=>e+(t-e)*r},34158:(e,t,r)=>{"use strict";r.d(t,{KN:()=>i,gQ:()=>u,px:()=>o,uj:()=>a,vh:()=>l,vw:()=>s});let n=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),a=n("deg"),i=n("%"),o=n("px"),l=n("vh"),s=n("vw"),u={...i,parse:e=>i.parse(e)/100,transform:e=>i.transform(100*e)}},34466:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a,g:()=>i});var n=r(12115);let a=(0,n.createContext)(null),i=()=>{let e=(0,n.useContext)(a);if(!e)throw Error("useCarousel must be used within a ");return e}},35760:(e,t,r)=>{"use strict";r.d(t,{GlobalHeaderNavigationMenu:()=>eh});var n=r(95155),a=r(12115),i=r(47650),o=r(66801),l=r(65749),s=r(2279),u=r(46135),c=r(73595),d=r(98303),f=r(49619),h=r(74539),p=r(66896),m=r(68991),v=r(21629),g=r(64730),y=r(62067),x=r(50190),b="NavigationMenu",[w,k,S]=(0,p.N)(b),[C,E,j]=(0,p.N)(b),[T]=(0,o.A)(b,[S,j]),[A,R]=T(b),[P,N]=T(b),M=a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:l,delayDuration:f=200,skipDelayDuration:h=300,orientation:p="horizontal",dir:m,...v}=e,[g,y]=a.useState(null),x=(0,c.s)(t,e=>y(e)),w=(0,d.j)(m),k=a.useRef(0),S=a.useRef(0),C=a.useRef(0),[E,j]=a.useState(!0),[T,A]=(0,u.i)({prop:i,onChange:e=>{let t=h>0;""!==e?(window.clearTimeout(C.current),t&&j(!1)):(window.clearTimeout(C.current),C.current=window.setTimeout(()=>j(!0),h)),null==o||o(e)},defaultProp:null!=l?l:"",caller:b}),R=a.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>A(""),150)},[A]),P=a.useCallback(e=>{window.clearTimeout(S.current),A(e)},[A]),N=a.useCallback(e=>{T===e?window.clearTimeout(S.current):k.current=window.setTimeout(()=>{window.clearTimeout(S.current),A(e)},f)},[T,A,f]);return a.useEffect(()=>()=>{window.clearTimeout(k.current),window.clearTimeout(S.current),window.clearTimeout(C.current)},[]),(0,n.jsx)(D,{scope:r,isRootMenu:!0,value:T,dir:w,orientation:p,rootNavigationMenu:g,onTriggerEnter:e=>{window.clearTimeout(k.current),E?N(e):P(e)},onTriggerLeave:()=>{window.clearTimeout(k.current),R()},onContentEnter:()=>window.clearTimeout(S.current),onContentLeave:R,onItemSelect:e=>{A(t=>t===e?"":e)},onItemDismiss:()=>A(""),children:(0,n.jsx)(s.s.nav,{"aria-label":"Main","data-orientation":p,dir:w,...v,ref:x})})});M.displayName=b;var O="NavigationMenuSub";a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:a,onValueChange:i,defaultValue:o,orientation:l="horizontal",...c}=e,d=R(O,r),[f,h]=(0,u.i)({prop:a,onChange:i,defaultProp:null!=o?o:"",caller:O});return(0,n.jsx)(D,{scope:r,isRootMenu:!1,value:f,dir:d.dir,orientation:l,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:e=>h(e),onItemSelect:e=>h(e),onItemDismiss:()=>h(""),children:(0,n.jsx)(s.s.div,{"data-orientation":l,...c,ref:t})})}).displayName=O;var D=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:i,dir:o,orientation:l,children:s,value:u,onItemSelect:c,onItemDismiss:d,onTriggerEnter:f,onTriggerLeave:p,onContentEnter:m,onContentLeave:g}=e,[x,b]=a.useState(null),[k,S]=a.useState(new Map),[C,E]=a.useState(null);return(0,n.jsx)(A,{scope:t,isRootMenu:r,rootNavigationMenu:i,value:u,previousValue:(0,v.Z)(u),baseId:(0,h.B)(),dir:o,orientation:l,viewport:x,onViewportChange:b,indicatorTrack:C,onIndicatorTrackChange:E,onTriggerEnter:(0,y.c)(f),onTriggerLeave:(0,y.c)(p),onContentEnter:(0,y.c)(m),onContentLeave:(0,y.c)(g),onItemSelect:(0,y.c)(c),onItemDismiss:(0,y.c)(d),onViewportContentChange:a.useCallback((e,t)=>{S(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:a.useCallback(e=>{S(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,n.jsx)(w.Provider,{scope:t,children:(0,n.jsx)(P,{scope:t,items:k,children:s})})})},L="NavigationMenuList",I=a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...a}=e,i=R(L,r),o=(0,n.jsx)(s.s.ul,{"data-orientation":i.orientation,...a,ref:t});return(0,n.jsx)(s.s.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,n.jsx)(w.Slot,{scope:r,children:i.isRootMenu?(0,n.jsx)(J,{asChild:!0,children:o}):o})})});I.displayName=L;var V="NavigationMenuItem",[F,_]=T(V),z=a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,...o}=e,l=(0,h.B)(),u=a.useRef(null),c=a.useRef(null),d=a.useRef(null),f=a.useRef(()=>{}),p=a.useRef(!1),m=a.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(u.current){f.current();let t=er(u.current);t.length&&en("start"===e?t:t.reverse())}},[]),v=a.useCallback(()=>{if(u.current){let e=er(u.current);e.length&&(f.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,n.jsx)(F,{scope:r,value:i||l||"LEGACY_REACT_AUTO_VALUE",triggerRef:c,contentRef:u,focusProxyRef:d,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:v,onContentFocusOutside:v,children:(0,n.jsx)(s.s.li,{...o,ref:t})})});z.displayName=V;var B="NavigationMenuTrigger",H=a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,disabled:i,...o}=e,u=R(B,e.__scopeNavigationMenu),d=_(B,e.__scopeNavigationMenu),f=a.useRef(null),h=(0,c.s)(f,d.triggerRef,t),p=eo(u.baseId,d.value),m=el(u.baseId,d.value),v=a.useRef(!1),g=a.useRef(!1),y=d.value===u.value;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w.ItemSlot,{scope:r,value:d.value,children:(0,n.jsx)(et,{asChild:!0,children:(0,n.jsx)(s.s.button,{id:p,disabled:i,"data-disabled":i?"":void 0,"data-state":ei(y),"aria-expanded":y,"aria-controls":m,...o,ref:h,onPointerEnter:(0,l.m)(e.onPointerEnter,()=>{g.current=!1,d.wasEscapeCloseRef.current=!1}),onPointerMove:(0,l.m)(e.onPointerMove,es(()=>{i||g.current||d.wasEscapeCloseRef.current||v.current||(u.onTriggerEnter(d.value),v.current=!0)})),onPointerLeave:(0,l.m)(e.onPointerLeave,es(()=>{i||(u.onTriggerLeave(),v.current=!1)})),onClick:(0,l.m)(e.onClick,()=>{u.onItemSelect(d.value),g.current=y}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===u.dir?"ArrowLeft":"ArrowRight"}[u.orientation];y&&e.key===t&&(d.onEntryKeyDown(),e.preventDefault())})})})}),y&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.bL,{"aria-hidden":!0,tabIndex:0,ref:d.focusProxyRef,onFocus:e=>{let t=d.contentRef.current,r=e.relatedTarget,n=r===f.current,a=null==t?void 0:t.contains(r);(n||!a)&&d.onFocusProxyEnter(n?"start":"end")}}),u.viewport&&(0,n.jsx)("span",{"aria-owns":m})]})]})});H.displayName=B;var U="navigationMenu.linkSelect";a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,active:a,onSelect:i,...o}=e;return(0,n.jsx)(et,{asChild:!0,children:(0,n.jsx)(s.s.a,{"data-active":a?"":void 0,"aria-current":a?"page":void 0,...o,ref:t,onClick:(0,l.m)(e.onClick,e=>{let t=e.target,r=new CustomEvent(U,{bubbles:!0,cancelable:!0});if(t.addEventListener(U,e=>null==i?void 0:i(e),{once:!0}),(0,s.h)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Y,{bubbles:!0,cancelable:!0});(0,s.h)(t,e)}},{checkForDefaultPrevented:!1})})})}).displayName="NavigationMenuLink";var W="NavigationMenuIndicator";a.forwardRef((e,t)=>{let{forceMount:r,...a}=e,o=R(W,e.__scopeNavigationMenu),l=!!o.value;return o.indicatorTrack?i.createPortal((0,n.jsx)(f.C,{present:r||l,children:(0,n.jsx)(K,{...a,ref:t})}),o.indicatorTrack):null}).displayName=W;var K=a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...i}=e,o=R(W,r),l=k(r),[u,c]=a.useState(null),[d,f]=a.useState(null),h="horizontal"===o.orientation,p=!!o.value;a.useEffect(()=>{var e;let t=null==(e=l().find(e=>e.value===o.value))?void 0:e.ref.current;t&&c(t)},[l,o.value]);let m=()=>{u&&f({size:h?u.offsetWidth:u.offsetHeight,offset:h?u.offsetLeft:u.offsetTop})};return ea(u,m),ea(o.indicatorTrack,m),d?(0,n.jsx)(s.s.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":o.orientation,...i,ref:t,style:{position:"absolute",...h?{left:0,width:d.size+"px",transform:"translateX(".concat(d.offset,"px)")}:{top:0,height:d.size+"px",transform:"translateY(".concat(d.offset,"px)")},...i.style}}):null}),q="NavigationMenuContent",$=a.forwardRef((e,t)=>{let{forceMount:r,...a}=e,i=R(q,e.__scopeNavigationMenu),o=_(q,e.__scopeNavigationMenu),s=(0,c.s)(o.contentRef,t),u=o.value===i.value,d={value:o.value,triggerRef:o.triggerRef,focusProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...a};return i.viewport?(0,n.jsx)(G,{forceMount:r,...d,ref:s}):(0,n.jsx)(f.C,{present:r||u,children:(0,n.jsx)(X,{"data-state":ei(u),...d,ref:s,onPointerEnter:(0,l.m)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,l.m)(e.onPointerLeave,es(i.onContentLeave)),style:{pointerEvents:!u&&i.isRootMenu?"none":void 0,...d.style}})})});$.displayName=q;var G=a.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=R(q,e.__scopeNavigationMenu);return(0,g.N)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,g.N)(()=>()=>n(e.value),[e.value,n]),null}),Y="navigationMenu.rootContentDismiss",X=a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:u,onRootContentClose:d,onContentFocusOutside:f,...h}=e,p=R(q,r),v=a.useRef(null),g=(0,c.s)(v,t),y=eo(p.baseId,i),x=el(p.baseId,i),b=k(r),w=a.useRef(null),{onItemDismiss:S}=p;a.useEffect(()=>{let e=v.current;if(p.isRootMenu&&e){let t=()=>{var t;S(),d(),e.contains(document.activeElement)&&(null==(t=o.current)||t.focus())};return e.addEventListener(Y,t),()=>e.removeEventListener(Y,t)}},[p.isRootMenu,e.value,o,S,d]);let C=a.useMemo(()=>{let e=b().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),r=e.indexOf(p.previousValue),n=i===p.value,a=r===e.indexOf(i);if(!n&&!a)return w.current;let o=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(a&&-1!==t)return t>r?"to-start":"to-end"}return null})();return w.current=o,o},[p.previousValue,p.value,p.dir,b,i]);return(0,n.jsx)(J,{asChild:!0,children:(0,n.jsx)(m.qW,{id:x,"aria-labelledby":y,"data-motion":C,"data-orientation":p.orientation,...h,ref:g,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(Y,{bubbles:!0,cancelable:!0});null==(e=v.current)||e.dispatchEvent(t)},onFocusOutside:(0,l.m)(e.onFocusOutside,e=>{var t;f();let r=e.target;(null==(t=p.rootNavigationMenu)?void 0:t.contains(r))&&e.preventDefault()}),onPointerDownOutside:(0,l.m)(e.onPointerDownOutside,e=>{var t;let r=e.target,n=b().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(r)}),a=p.isRootMenu&&(null==(t=p.viewport)?void 0:t.contains(r));(n||a||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=er(e.currentTarget),n=document.activeElement,a=t.findIndex(e=>e===n);if(en(e.shiftKey?t.slice(0,a).reverse():t.slice(a+1,t.length)))e.preventDefault();else{var r;null==(r=s.current)||r.focus()}}}),onEscapeKeyDown:(0,l.m)(e.onEscapeKeyDown,e=>{u.current=!0})})})}),Z="NavigationMenuViewport";a.forwardRef((e,t)=>{let{forceMount:r,...a}=e,i=!!R(Z,e.__scopeNavigationMenu).value;return(0,n.jsx)(f.C,{present:r||i,children:(0,n.jsx)(Q,{...a,ref:t})})}).displayName=Z;var Q=a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:i,...o}=e,u=R(Z,r),d=(0,c.s)(t,u.onViewportChange),h=N(q,e.__scopeNavigationMenu),[p,m]=a.useState(null),[v,g]=a.useState(null),y=p?(null==p?void 0:p.width)+"px":void 0,x=p?(null==p?void 0:p.height)+"px":void 0,b=!!u.value,w=b?u.value:u.previousValue;return ea(v,()=>{v&&m({width:v.offsetWidth,height:v.offsetHeight})}),(0,n.jsx)(s.s.div,{"data-state":ei(b),"data-orientation":u.orientation,...o,ref:d,style:{pointerEvents:!b&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":y,"--radix-navigation-menu-viewport-height":x,...o.style},onPointerEnter:(0,l.m)(e.onPointerEnter,u.onContentEnter),onPointerLeave:(0,l.m)(e.onPointerLeave,es(u.onContentLeave)),children:Array.from(h.items).map(e=>{let[t,{ref:r,forceMount:a,...i}]=e,o=w===t;return(0,n.jsx)(f.C,{present:a||o,children:(0,n.jsx)(X,{...i,ref:(0,c.t)(r,e=>{o&&e&&g(e)})})},t)})})}),J=a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...a}=e,i=R("FocusGroup",r);return(0,n.jsx)(C.Provider,{scope:r,children:(0,n.jsx)(C.Slot,{scope:r,children:(0,n.jsx)(s.s.div,{dir:i.dir,...a,ref:t})})})}),ee=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],et=a.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...a}=e,i=E(r),o=R("FocusGroupItem",r);return(0,n.jsx)(C.ItemSlot,{scope:r,children:(0,n.jsx)(s.s.button,{...a,ref:t,onKeyDown:(0,l.m)(e.onKeyDown,e=>{if(["Home","End",...ee].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ee.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>en(t)),e.preventDefault()}})})})});function er(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function en(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ea(e,t){let r=(0,y.c)(t);(0,g.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function ei(e){return e?"open":"closed"}function eo(e,t){return"".concat(e,"-trigger-").concat(t)}function el(e,t){return"".concat(e,"-content-").concat(t)}function es(e){return t=>"mouse"===t.pointerType?e(t):void 0}var eu=r(72107),ec=r(74466);let ed=(0,ec.F)(["[&>div:first-child]:h-full"],{compoundVariants:[],defaultVariants:{theme:"auto"},variants:{theme:{auto:["scheme-normal"],dark:["scheme-dark"],light:["scheme-light"]}}}),ef=(0,ec.F)(["border-b-4","flex","focus:outline-0","h-full","items-center","min-h-8","pt-1","px-3","ripple","select-none","whitespace-nowrap"],{compoundVariants:[{active:!1,className:"border-transparent",open:!1},{active:!1,brand:"motortrend",className:["focus-visible:border-primary-2","hover:border-primary-2","hover:text-neutral-8"]},{active:!0,brand:"motortrend",className:["border-primary-2","focus-visible:border-primary-3","hover:border-primary-3","text-neutral-8"]},{brand:"motortrend",className:["border-primary-2","text-neutral-8"],open:!0},{active:!1,brand:"hotrod",className:["focus-visible:border-neutral-8","hover:border-neutral-8"]},{active:!0,brand:"hotrod",className:["border-neutral-8","focus-visible:border-neutral-6","hover:border-neutral-6"]},{brand:"hotrod",className:["border-neutral-8"],open:!0}],defaultVariants:{active:!1,open:!1},variants:{active:{false:[],true:[]},brand:{caranddriver:["text-neutral-1","dark:text-neutral-8"],hotrod:["text-neutral-8"],motortrend:["text-neutral-5"]},open:{false:[],true:[]}}}),eh=e=>{let{activePath:t,brand:r="motortrend",className:i,items:o,linkElement:l="a",theme:s="auto",...u}=e,[c,d]=(0,a.useState)(void 0);return(0,n.jsx)(M,{className:ed({className:i,theme:s}),onValueChange:d,value:c,...u,"data-ids":"GlobalHeaderNavigationMenu",children:(0,n.jsx)(I,{className:"group flex h-full flex-1 list-none items-center",children:o.map((e,a)=>{var i,o;if(!e.displayInHeader)return;let s=a.toString(),u=("string"==typeof e.href?e.href:null==(i=e.href)?void 0:i.pathname)||"",f=null==t?void 0:t.startsWith(u),h=(null==e?void 0:e.linkElement)||l;return(0,n.jsxs)(z,{className:"h-full",value:s,children:[(0,n.jsx)(H,{asChild:!0,onFocus:()=>d(s),children:(0,n.jsx)(h,{className:ef({active:f,brand:r,open:c===s}),"data-id":"global-header-link","data-parent":"global-header",href:e.href||"#",onClick:()=>d("none"),target:e.target||void 0,children:(0,n.jsx)(eu.o5,{disableColorScheme:!0,noWrap:!0,variant:"caption1",children:e.title})})}),!!(null==e||null==(o=e.children)?void 0:o.length)&&(0,n.jsx)($,{className:"z-top bg-neutral-1 absolute mt-1 w-64 rounded-lg p-2",children:(0,n.jsx)("ul",{className:"scrollbar-dark max-h-[70vh] overflow-y-auto",role:"menu",children:e.children.map((e,t)=>{let r=(null==e?void 0:e.linkElement)||l;return(0,n.jsx)(eu.o5,{as:"li",variant:"caption1",children:(0,n.jsx)(r,{className:"text-neutral-5 hover:bg-neutral-2 hover:text-neutral-8 focus:bg-neutral-2 block rounded-lg p-2 focus:outline-0","data-id":"global-header-link","data-parent":"global-header",href:e.href,role:"menuitem",target:e.target||void 0,children:e.title})},"".concat(a,"-").concat(t))})})})]},a)})})})};eh.displayName="GlobalHeaderNavigationMenu"},35846:(e,t,r)=>{"use strict";r.d(t,{SelectItem:()=>s});var n=r(95155),a=r(2668),i=r(74466),o=r(56345),l=r(72107);let s=e=>{let{children:t,className:r,disabled:s=!1,truncate:u=!1,typographyVariant:c="caption1",value:d,...f}=e;return(0,n.jsx)(a.q7,{asChild:!0,className:(0,i.cx)((0,o.j)({className:r}),"[&[data-state=checked][data-highlighted]]:bg-neutral-5/50","[&[data-state=checked][data-highlighted]]:dark:bg-neutral-4/50","dark:data-[state=checked]:bg-neutral-3","data-[state=checked]:bg-neutral-6"),disabled:s,value:d,...f,"data-ids":"SelectItem",children:(0,n.jsx)(l.o5,{maxLines:u?1:void 0,variant:c,children:(0,n.jsx)(a.p4,{children:t})})})};s.displayName="SelectItem"},36946:(e,t,r)=>{"use strict";r.d(t,{$:()=>l});var n=r(95155),a=r(12115),i=r(72107);let o=(0,r(74466).F)(["cursor-pointer","duration-200","ease-in-out","focus-visible:dark:ring-offset-neutral-1","focus-visible:dark:ring-secondary-3","focus-visible:outline-hidden","focus-visible:ring-2","focus-visible:ring-offset-2","focus-visible:ring-offset-neutral-8","focus-visible:ring-secondary-2","font-semibold","inline-flex","items-center","justify-center","m-0","min-w-fit","motion-reduce:transition-none","no-underline","rounded-lg","select-none","transition-colors"],{compoundVariants:[{class:["bg-primary-2","dark:aria-disabled:text-neutral-8/75","aria-disabled:bg-primary-1/50","aria-disabled:text-neutral-8","hover:bg-primary-1","text-neutral-8","visited:text-neutral-8"],colorScheme:"primary-2",variant:"contained"},{class:["border-primary-2","aria-disabled:border-primary-2/50","aria-disabled:text-primary-2/50","hover:bg-primary-3/20","text-primary-2","visited:text-primary-2"],colorScheme:"primary-2",variant:"outlined"},{class:["bg-secondary-1","dark:aria-disabled:text-neutral-8/75","aria-disabled:bg-secondary-1/50","aria-disabled:text-neutral-8","hover:bg-secondary-1/90","text-neutral-8","visited:text-neutral-8"],colorScheme:"secondary-1",variant:"contained"},{class:["border-secondary-1","aria-disabled:border-secondary-1/50","aria-disabled:text-secondary-1/50","hover:bg-secondary-3/20","text-secondary-1","visited:text-secondary-1"],colorScheme:"secondary-1",variant:"outlined"},{class:["bg-neutral-2","dark:bg-neutral-6","dark:aria-disabled:bg-neutral-6/50","dark:aria-disabled:text-neutral-2/90","dark:hover:bg-neutral-8","dark:text-neutral-2","dark:visited:text-neutral-2","aria-disabled:bg-neutral-2/50","aria-disabled:text-neutral-6","hover:bg-neutral-3","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-2",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-2","aria-disabled:bg-neutral-2/50","aria-disabled:text-neutral-6","hover:bg-neutral-3","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-2",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-2","dark:border-neutral-6","dark:aria-disabled:border-neutral-6/50","dark:aria-disabled:text-neutral-6/50","dark:hover:bg-neutral-6/20","dark:text-neutral-6","dark:visited:text-neutral-6","aria-disabled:border-neutral-2/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-6","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-2",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-2","aria-disabled:border-neutral-2/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-6","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-2",ignoreTheme:!0,variant:"outlined"},{class:["bg-neutral-3","dark:bg-neutral-8","dark:aria-disabled:bg-neutral-8/50","dark:aria-disabled:text-neutral-3/90","dark:hover:bg-neutral-6","dark:text-neutral-3","dark:visited:text-neutral-3","aria-disabled:bg-neutral-3/50","aria-disabled:text-neutral-8","hover:bg-neutral-2","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-3",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-3","aria-disabled:bg-neutral-3/50","aria-disabled:text-neutral-8","hover:bg-neutral-2","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-3",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-3","dark:border-neutral-8","dark:aria-disabled:border-neutral-8/50","dark:aria-disabled:text-neutral-8/50","dark:hover:bg-neutral-8/20","dark:text-neutral-8","dark:visited:text-neutral-8","aria-disabled:border-neutral-3/50","aria-disabled:text-neutral-3/50","hover:bg-neutral-6","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-3",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-3","aria-disabled:border-neutral-3/50","aria-disabled:text-neutral-3/50","hover:bg-neutral-6","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-3",ignoreTheme:!0,variant:"outlined"},{class:["bg-neutral-6","dark:bg-neutral-2","dark:aria-disabled:bg-neutral-2/50","dark:aria-disabled:text-neutral-6/50","dark:hover:bg-neutral-3","dark:text-neutral-6","dark:visited:text-neutral-6","aria-disabled:bg-neutral-6/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-5","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-6",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-6","aria-disabled:bg-neutral-6/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-5","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-6",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-6","dark:border-neutral-2","dark:aria-disabled:border-neutral-2/50","dark:aria-disabled:text-neutral-2/50","dark:hover:bg-neutral-3","dark:text-neutral-2","dark:visited:text-neutral-2","aria-disabled:border-neutral-6/50","aria-disabled:text-neutral-6/50","hover:bg-neutral-8","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-6",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-6","aria-disabled:border-neutral-6/50","aria-disabled:text-neutral-6/50","hover:bg-neutral-8","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-6",ignoreTheme:!0,variant:"outlined"},{class:["bg-neutral-8","dark:bg-neutral-3","dark:aria-disabled:bg-neutral-3/50","dark:aria-disabled:text-neutral-8/70","dark:hover:bg-neutral-4","dark:outline-0","dark:shadow-none","dark:text-neutral-8","dark:visited:text-neutral-8","aria-disabled:bg-neutral-8/50","aria-disabled:outline-neutral-6/70","aria-disabled:shadow-[0px_4px_20px_0px_rgba(0,0,0,0.03)]","aria-disabled:text-neutral-3/70","hover:bg-neutral-6","outline-1","outline-neutral-6","shadow-[0px_4px_20px_0px_rgba(0,0,0,0.06)]","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-8",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-8","aria-disabled:bg-neutral-8/50","aria-disabled:outline-neutral-6/70","aria-disabled:shadow-[0_4px_20px_0_rgba(0,0,0,0.03)]","aria-disabled:text-neutral-3/70","hover:bg-neutral-6","outline-1","outline-neutral-6","shadow-[0_4px_20px_0_rgba(0,0,0,0.06)]","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-8",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-8","dark:border-neutral-3","dark:aria-disabled:border-neutral-3/50","dark:aria-disabled:text-neutral-3/50","dark:hover:bg-neutral-8/20","dark:text-neutral-3","dark:visited:text-neutral-3","aria-disabled:border-neutral-8/50","aria-disabled:text-neutral-8/50","hover:bg-neutral-7","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-8",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-8","aria-disabled:border-neutral-8/50","aria-disabled:text-neutral-8/50","hover:bg-neutral-7","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-8",ignoreTheme:!0,variant:"outlined"},{class:["after:!from-neutral-3","dark:after:!from-neutral-8"],ripple:!0,variant:"outlined"},{class:["after:!from-neutral-3","dark:after:!from-neutral-8"],colorScheme:["neutral-6","neutral-8"],ripple:!0}],defaultVariants:{colorScheme:"primary-2",disabled:!1,ignoreTheme:!1,ripple:!0,size:"medium",variant:"contained"},variants:{colorScheme:{"neutral-2":[],"neutral-3":[],"neutral-6":[],"neutral-8":[],"primary-2":[],"secondary-1":[],transparent:["bg-transparent","aria-disabled:opacity-50","dark:aria-disabled:opacity-50","hover:bg-neutral-1/25","dark:hover:bg-neutral-8/25"]},disabled:{true:"pointer-events-none"},ignoreTheme:{false:[],true:[]},ripple:{true:"ripple"},size:{large:["max-h-12","px-8","py-4"],medium:["max-h-10","px-6","py-3"],small:["max-h-8","px-4","py-2"]},variant:{contained:["border-solid","border","border-transparent"],outlined:["bg-transparent","border-solid","border","aria-disabled:bg-transparent","aria-disabled:dark:bg-transparent","aria-disabled:hover:bg-transparent"]}}}),l=(0,a.forwardRef)(({as:e="button",children:t,className:r,colorScheme:a="primary-2",disabled:l=!1,endIcon:s,ignoreTheme:u=!1,opacity:c=100,ripple:d=!0,size:f="medium",startIcon:h,typographyProps:p={},variant:m="contained",...v},g)=>{let y={variant:"button1",...p},x=v.style||{};return c<100&&(x.opacity=.01*c),(0,n.jsxs)(e,{"aria-disabled":l,className:o({className:r,colorScheme:a,disabled:l,ignoreTheme:u,ripple:d,size:f,variant:m}),disabled:l,...v,"data-ids":"Button",ref:g,style:x,children:[h&&(0,n.jsx)("span",{className:"-ml-1 pr-2",children:h}),(0,n.jsx)(i.o5,{disableColorScheme:!0,disableTransitionColors:!0,...y,children:t}),s&&(0,n.jsx)("span",{className:"-mr-1 pl-2",children:s})]})});l.displayName="Button"},37943:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var n=r(12115);let a={container:{"@3xs":"16rem","@2xs":"18rem","@xs":"20rem","@sm":"24rem","@md":"28rem","@lg":"32rem","@xl":"36rem","@2xl":"42rem","@3xl":"48rem","@4xl":"56rem","@5xl":"64rem","@6xl":"72rem","@7xl":"80rem"}};function i(e){let t=(0,n.useRef)(null),r=(0,n.useRef)(null),{container:i}=a;if(e&&!i[e])return{ref:e=>{r.current=e},result:!1};let[o,l]=(0,n.useState)("unavailable"),s=(e=>{let t=Object.keys(e).sort((t,r)=>parseInt(e[t])-parseInt(e[r]));return t.reduce((r,n,a)=>{let i=[],o=parseInt(e[n]),l=t[a+1],s=l?parseInt(e[l]):null;return o>=0&&i.push(o),s&&i.push(s-1),r[n]=i,r},{})})(i),u=(0,n.useCallback)((e,t)=>{let r,n=t/16;for(let[e,[t,a]]of Object.entries(s))if(n>=t){if(void 0===a){r=e;break}else if(n<=a){r=e;break}}return r||e},[s]),c=(0,n.useCallback)(e=>{let[t]=e;l(u(o,Math.round(t.borderBoxSize[0].inlineSize)))},[o,u]);return(0,n.useLayoutEffect)(()=>{if("object"==typeof window)return t.current||(t.current=new ResizeObserver(c)),r.current&&t.current.observe(r.current,{box:"border-box"}),()=>{var e;null==(e=t.current)||e.disconnect(),t.current=null}},[c]),{ref:(0,n.useCallback)(e=>{var n,a;r.current&&(null==(n=t.current)||n.unobserve(r.current)),r.current=e,e&&(null==(a=t.current)||a.observe(e))},[]),result:e?parseInt(i[o])>=parseInt(i[e]):o}}},38637:(e,t,r)=>{e.exports=r(79399)()},40458:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ReportIssueDialog:()=>m,default:()=>m});var n=r(95155),a=r(12115),i=r(74466),o=r(6369),l=r(36946),s=r(74056),u=r(28970),c=r(28217),d=r(45952),f=r(75109),h=r(72107);let p=(0,i.F)([],{defaultVariants:{trigger:"button"},variants:{trigger:{button:[],link:"inline-block"}}}),m=e=>{let{action:t=()=>{},className:r,"data-id":m="report-issue","data-parent":v,promptText:g="Please describe the issue you are experiencing.",title:y="Report Issue",trigger:x="button",triggerText:b="Report Issue",...w}=e,k=(0,a.useRef)(null),[S,C]=(0,a.useState)(!1),[E,j]=(0,a.useState)(""),[T,A]=(0,a.useState)(!1),[R,P]=(0,a.useState)(!1),N=()=>{j(""),A(!1),P(!1),C(!0)};return(0,n.jsxs)("div",{className:p({className:r,trigger:x}),...w,"data-ids":"ReportIssueDialog",children:["button"===x?(0,n.jsx)(l.$,{className:"[&>p]:!typography-button2 [&>p]:sm:!typography-button1 max-h-8 px-4 py-2 text-nowrap sm:max-h-10 sm:px-6 sm:py-3",colorScheme:"neutral-3","data-id":m,"data-parent":v,ignoreTheme:!0,onClick:N,children:b}):(0,n.jsx)("button",{className:"cursor-pointer underline","data-id":m,"data-parent":v,onClick:N,children:b}),(0,n.jsxs)(s.Dialog,{closeOnActionOnly:!0,onClose:()=>{C(!1)},open:S,children:[(0,n.jsx)(d.DialogTitle,{className:(0,i.cx)("transition-opacity",{"pointer-events-none opacity-0":R}),children:y}),(0,n.jsxs)(u.DialogContent,{className:"overflow-hidden",collapsePadding:!0,children:[R&&(0,n.jsxs)("div",{className:"animate-in slide-in-from-bottom-8 absolute -mt-0 flex w-full flex-col items-center duration-500 sm:-mt-8",children:[(()=>{let e={hidden:{opacity:0,pathLength:0},visible:e=>{let t=e/3;return{opacity:1,pathLength:1,transition:{opacity:{delay:t,duration:.01},pathLength:{bounce:0,delay:t,duration:1.5,type:"spring"}}}}};return(0,n.jsxs)(o.P.svg,{animate:"visible",className:"text-success-2 size-16",fill:"transparent",height:"24",initial:"hidden",stroke:"currentColor",viewBox:"0 0 24 24",width:"24",children:[(0,n.jsx)(o.P.circle,{custom:0,cx:"12",cy:"12",r:"10",strokeLinecap:"round",strokeWidth:"1.25",variants:e}),(0,n.jsx)(o.P.path,{className:"origin-center",custom:1,d:"M4.2,12.8l4.8,4.8L20.3,6.3",height:"20",strokeWidth:"2",transform:"scale(0.7)",variants:e,width:"20"})]})})(),(0,n.jsx)(h.o5,{className:"mt-2",gutterBottom:!0,variant:"h4",children:"Success"}),(0,n.jsx)(h.o5,{align:"center",className:"px-4",variant:"body2",children:"Your message has been received. Thank you for your feedback."})]}),(0,n.jsxs)("div",{className:(0,i.cx)("mx-6 flex flex-col gap-4 pb-2 transition-opacity sm:gap-6",{"pointer-events-none opacity-0":R}),children:[(0,n.jsx)(h.o5,{className:(0,i.cx)({"!text-error-2 dark:!text-error-3":T}),variant:"body2",children:g}),(0,n.jsx)(f.TextField,{as:"textarea",autoFocus:!0,error:T,maxRows:5,minRows:5,name:"data",onChange:e=>j(e.target.value),ref:k,value:E})]})]}),(0,n.jsx)(c.DialogFooter,{className:(0,i.cx)("transition-opacity",{"pointer-events-none opacity-0":R}),children:(0,n.jsx)(l.$,{onClick:()=>{if(!E||""===E){var e;return null==(e=k.current)||e.focus(),A(!0)}try{t(E),P(!0)}catch(e){console.error(e),A(!0)}},children:"Send"})})]})]})};m.displayName="ReportIssueDialog"},42680:(e,t,r)=>{"use strict";r.d(t,{BreadcrumbItem:()=>i});var n=r(95155);let a=(0,r(74466).F)(["text-nowrap","whitespace-nowrap"],{compoundVariants:[],defaultVariants:{currentPage:!1},variants:{currentPage:{false:["[&_a:hover]:underline","[&_a]:no-underline"],true:["[&_a]:no-underline","[&_span]:block","[&_span]:truncate","dark:text-neutral-7","min-w-0","pointer-events-none","text-neutral-2"]}}}),i=e=>{let{children:t,className:r,currentPage:i=!1,...o}=e;return(0,n.jsx)("li",{"aria-current":i?"page":void 0,className:a({className:r,currentPage:i}),...o,"data-ids":"BreadcrumbItem",children:(0,n.jsx)("span",{children:t})})};i.displayName="BreadcrumbItem"},43250:(e,t,r)=>{"use strict";r.d(t,{RadioGroupItem:()=>d});var n=r(95155),a=r(12115),i=r(5036),o=r(1773),l=r.n(o),s=r(78699),u=r(91546);let c=(0,r(74466).F)(["aspect-square","bg-neutral-8","border-neutral-5","border","dark:bg-neutral-2","dark:border-neutral-4","disabled:cursor-not-allowed","disabled:opacity-50","flex","focus-visible:dark:ring-offset-neutral-1","focus-visible:outline-hidden","focus-visible:ring-2","focus-visible:ring-offset-2","focus-visible:ring-offset-neutral-8","focus-visible:ring-neutral-5","h-6","items-center","justify-center","rounded-full","w-6"],{defaultVariants:{colorScheme:"neutral",disableAnimation:!1},variants:{colorScheme:{neutral:["text-neutral-1","dark:text-neutral-8"],primary:"text-primary-2",secondary:"text-secondary-2"},disableAnimation:{false:["[&[data-state=checked]>span]:animate-in","[&[data-state=checked]>span]:zoom-in"],true:[]}}}),d=e=>{let{className:t,colorScheme:r,disableAnimation:o,...d}=e,f=(0,a.useContext)(u._),h=r||(null==f?void 0:f.colorScheme)||"neutral",p=o||(null==f?void 0:f.disableAnimation);return(0,n.jsx)(s.q7,{className:c({className:t,colorScheme:h,disableAnimation:p}),...d,"data-ids":"Radio",children:(0,n.jsx)(s.C1,{children:(0,n.jsx)(l(),{className:"size-3.5",path:i.jwx})})})};d.displayName="RadioGroupItem"},43750:(e,t,r)=>{"use strict";r.d(t,{Breadcrumbs:()=>m});var n=r(95155),a=r(12115),i=r(5036),o=r(1773),l=r.n(o),s=r(74466),u=r(7225),c=r(95397);r(689);var d=r(48199),f=r(88541),h=r(72107);let p=(0,s.F)(["dark:text-neutral-5","flex-row","gap-1.5","items-center","list-none","select-none","text-neutral-4"],{defaultVariants:{collapse:!1},variants:{collapse:{false:["inline-flex"],true:["flex"]}}}),m=e=>{let{"aria-label":t="breadcrumbs",children:r,className:o,collapse:m=!0,ref:v,separator:g="/",typographyProps:y={},...x}=e,[b,w]=(0,a.useState)(!0),[k,S]=(0,a.useState)(!1),C=(0,a.useRef)(k),E=(0,a.useRef)(null),j=(0,a.useRef)(null),T=(0,a.useRef)(null);(0,a.useImperativeHandle)(v,()=>T.current,[]);let A=()=>{if(!m||!T.current||!E.current)return;let{width:e}=T.current.getBoundingClientRect(),{width:t}=E.current.getBoundingClientRect();return C.current&&e>((null==j?void 0:j.current)||0)?(j.current=null,S(!1)):!C.current&&t>e?(j.current||(j.current=t),S(!0)):void 0};(0,a.useEffect)(()=>{C.current=k},[k]),(0,a.useLayoutEffect)(()=>((async()=>{await document.fonts.ready,A(),w(!1)})(),window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)),[k]);let R=()=>(0,n.jsx)("li",{"aria-hidden":"true",role:"separator",children:g}),P={disableColorScheme:!0,variant:"caption2",...y};return(0,n.jsx)("nav",{"aria-label":t,className:(0,s.cx)("w-full leading-none",{invisible:b}),...x,"data-ids":"Breadcrumbs",ref:T,children:(0,n.jsx)(h.o5,{...P,as:"ol",className:p({className:o,collapse:m&&k||!m}),ref:E,role:"list",children:(()=>{let e=[...Array.isArray(r)?r:[r]];if(m&&k){let t=e.shift(),r=e.pop();return[t,(0,n.jsx)(R,{},"separator-first"),(0,n.jsxs)(u.Menu,{children:[(0,n.jsx)(f.MenuTrigger,{children:(0,n.jsx)("li",{className:"flex justify-center",children:(0,n.jsx)("button",{"aria-label":"See all breadcrumbs",children:(0,n.jsx)(l(),{path:i.fA1,size:.75})})})}),(0,n.jsx)(c.MenuContent,{children:e.map((e,t)=>(0,n.jsx)(d.MenuItem,{as:"ul",className:"[&_a]:hover:no-underline",children:e},"menu-".concat(t)))})]},"overflow-menu"),(0,n.jsx)(R,{},"separator-last"),r]}return e.flatMap((e,t,r)=>r.length-1!==t?[e,(0,n.jsx)(R,{},"separator-".concat(t))]:e)})()})})};m.displayName="Breadcrumbs"},44507:(e,t,r)=>{"use strict";r.d(t,{Switch:()=>C});var n=r(95155),a=r(12115),i=r(65749),o=r(73595),l=r(66801),s=r(46135),u=r(21629),c=r(83793),d=r(2279),f="Switch",[h]=(0,l.A)(f),[p,m]=h(f),v=a.forwardRef((e,t)=>{let{__scopeSwitch:r,name:l,checked:u,defaultChecked:c,required:h,disabled:m,value:v="on",onCheckedChange:g,form:y,...w}=e,[k,S]=a.useState(null),C=(0,o.s)(t,e=>S(e)),E=a.useRef(!1),j=!k||y||!!k.closest("form"),[T,A]=(0,s.i)({prop:u,defaultProp:null!=c&&c,onChange:g,caller:f});return(0,n.jsxs)(p,{scope:r,checked:T,disabled:m,children:[(0,n.jsx)(d.s.button,{type:"button",role:"switch","aria-checked":T,"aria-required":h,"data-state":b(T),"data-disabled":m?"":void 0,disabled:m,value:v,...w,ref:C,onClick:(0,i.m)(e.onClick,e=>{A(e=>!e),j&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})}),j&&(0,n.jsx)(x,{control:k,bubbles:!E.current,name:l,value:v,checked:T,required:h,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});v.displayName=f;var g="SwitchThumb",y=a.forwardRef((e,t)=>{let{__scopeSwitch:r,...a}=e,i=m(g,r);return(0,n.jsx)(d.s.span,{"data-state":b(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t})});y.displayName=g;var x=a.forwardRef((e,t)=>{let{__scopeSwitch:r,control:i,checked:l,bubbles:s=!0,...d}=e,f=a.useRef(null),h=(0,o.s)(f,t),p=(0,u.Z)(l),m=(0,c.X)(i);return a.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==l&&t){let r=new Event("click",{bubbles:s});t.call(e,l),e.dispatchEvent(r)}},[p,l,s]),(0,n.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:l,...d,tabIndex:-1,ref:h,style:{...d.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function b(e){return e?"checked":"unchecked"}x.displayName="SwitchBubbleInput";var w=r(74466);let k=(0,w.F)(["border-2","border-transparent","cursor-pointer","data-[state=unchecked]:bg-neutral-5","data-[state=unchecked]:dark:bg-neutral-3","disabled:cursor-not-allowed","disabled:opacity-50","focus-visible:outline-hidden","focus-visible:ring-2","focus-visible:ring-offset-2","focus-visible:ring-offset-neutral-8","focus-visible:dark:ring-offset-neutral-2","focus-visible:ring-neutral-4","inline-flex","items-center","rounded-full","shrink-0","transition-colors"],{compoundVariants:[],defaultVariants:{colorScheme:"primary",size:"medium"},variants:{colorScheme:{neutral:["data-[state=checked]:bg-neutral-3","data-[state=checked]:focus-visible:ring-neutral-3","data-[state=checked]:dark:bg-neutral-4","data-[state=checked]:dark:focus-visible:ring-neutral-4"],primary:["data-[state=checked]:bg-primary-2","data-[state=checked]:focus-visible:ring-primary-1"],secondary:["data-[state=checked]:bg-secondary-2","data-[state=checked]:focus-visible:ring-secondary-1"],success:["data-[state=checked]:bg-success-3","data-[state=checked]:focus-visible:ring-success-2"]},size:{medium:["h-8","w-16"],small:["h-6","w-12"]}}}),S=(0,w.F)(["bg-neutral-8","block","data-[state=unchecked]:translate-x-0","pointer-events-none","ring-0","rounded-full","transition-transform"],{compoundVariants:[],defaultVariants:{size:"medium"},variants:{size:{medium:["data-[state=checked]:translate-x-8","h-7","w-7"],small:["data-[state=checked]:translate-x-6","h-5","w-5"]}}}),C=e=>{let{className:t,colorScheme:r="primary",size:a="medium",...i}=e;return(0,n.jsx)(v,{className:k({className:t,colorScheme:r,size:a}),...i,"data-ids":"Switch",children:(0,n.jsx)(y,{className:S({size:a})})})};C.displayName="Switch"},45818:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});let n=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n}},45952:(e,t,r)=>{"use strict";r.d(t,{DialogTitle:()=>s});var n=r(95155),a=r(12115),i=r(72107),o=r(19958);let l=(0,r(74466).F)(["mx-6"],{compoundVariants:[],defaultVariants:{},variants:{hideBorder:{false:["border-b","border-neutral-6","dark:border-neutral-4","pb-4","sm:pb-6"],true:[]},showCloseButton:{false:[],true:["pr-6"]}}}),s=e=>{let{children:t,className:r,hideBorder:s=!1,variant:u="h6",...c}=e,d=(0,a.useContext)(o.M);if(!d)throw Error("DialogTitle must be used within Dialog.");let{setLabelledBy:f,showCloseButton:h}=d,p=(0,a.useId)();return(0,a.useEffect)(()=>{f(p)},[p]),(0,n.jsx)(i.o5,{as:"h1",className:l({className:r,hideBorder:s,showCloseButton:h}),id:p,variant:u,...c,"data-ids":"DialogTitle",children:t})};s.displayName="DialogTitle"},46135:(e,t,r)=>{"use strict";r.d(t,{i:()=>l});var n,a=r(12115),i=r(64730),o=(n||(n=r.t(a,2)))[" useInsertionEffect ".trim().toString()]||i.N;function l({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[i,l,s]=function({defaultProp:e,onChange:t}){let[r,n]=a.useState(e),i=a.useRef(r),l=a.useRef(t);return o(()=>{l.current=t},[t]),a.useEffect(()=>{i.current!==r&&(l.current?.(r),i.current=r)},[r,i]),[r,n,l]}({defaultProp:t,onChange:r}),u=void 0!==e,c=u?e:i;{let t=a.useRef(void 0!==e);a.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,n])}return[c,a.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else l(t)},[u,e,l,s])]}},48199:(e,t,r)=>{"use strict";r.d(t,{MenuItem:()=>s});var n=r(95155),a=r(92031),i=r(74466),o=r(72107),l=r(56345);let s=e=>{let{as:t,children:r,className:s,disabled:u=!1,endAdornment:c,href:d,inset:f=!1,startAdornment:h,target:p,truncate:m=!1,typographyVariant:v="caption1",...g}=e;return(0,n.jsx)(a.q7,{asChild:!0,className:(0,l.j)({className:s}),disabled:u,...g,"data-ids":"MenuItem",children:(0,n.jsxs)(t||(d?"a":"div"),{href:d,target:p,children:[h?"string"==typeof h?(0,n.jsx)(o.o5,{as:"div",className:"pr-2",disableColorScheme:!0,variant:"caption1",children:h}):(0,n.jsx)("div",{className:"self-start pr-2",children:h}):f?(0,n.jsx)("div",{className:(0,i.cx)({"pr-8":!0===f}),style:{width:"number"==typeof f?"".concat(f,"rem"):void 0}}):void 0,(0,n.jsx)(o.o5,{as:"div",className:"flex-1",disableColorScheme:!0,maxLines:m?1:void 0,variant:v,children:r}),c?"string"==typeof c?(0,n.jsx)(o.o5,{as:"div",className:"pl-2",disableColorScheme:!0,variant:"caption1",children:c}):(0,n.jsx)("div",{className:"self-start pl-2",children:c}):null]})})};s.displayName="MenuItem"},48451:(e,t,r)=>{"use strict";r.d(t,{y:()=>n});let n=(0,r(74466).F)(["bg-neutral-7","dark:bg-neutral-2","font-bold","px-4","py-2","select-none","uppercase"])},49033:(e,t,r)=>{"use strict";e.exports=r(22436)},49619:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});var n=r(12115),a=r(73595),i=r(64730),o=e=>{let{present:t,children:r}=e,o=function(e){var t,r;let[a,o]=n.useState(),s=n.useRef(null),u=n.useRef(e),c=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=l(s.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=s.current,r=u.current;if(r!==e){let n=c.current,a=l(t);e?f("MOUNT"):"none"===a||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==a?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,i.N)(()=>{if(a){var e;let t,r=null!=(e=a.ownerDocument.defaultView)?e:window,n=e=>{let n=l(s.current).includes(CSS.escape(e.animationName));if(e.target===a&&n&&(f("ANIMATION_END"),!u.current)){let e=a.style.animationFillMode;a.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=e)})}},i=e=>{e.target===a&&(c.current=l(s.current))};return a.addEventListener("animationstart",i),a.addEventListener("animationcancel",n),a.addEventListener("animationend",n),()=>{r.clearTimeout(t),a.removeEventListener("animationstart",i),a.removeEventListener("animationcancel",n),a.removeEventListener("animationend",n)}}f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{s.current=e?getComputedStyle(e):null,o(e)},[])}}(t),s="function"==typeof r?r({present:o.isPresent}):n.Children.only(r),u=(0,a.s)(o.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=n&&"isReactWarning"in n&&n.isReactWarning;return a?e.ref:(a=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof r||o.isPresent?n.cloneElement(s,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence"},50072:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(95155),a=r(74466),i=r(72107),o=r(66714),l=r.n(o);let s=(0,a.F)(["flex","gap-4","justify-between"],{compoundVariants:[],defaultVariants:{},variants:{}}),u=({action:e,className:t,disableTypography:r=!1,label:o,labelTypographyProps:u={},subtitle:c,subtitleTypographyProps:d={},title:f,titleTypographyProps:h={},...p})=>(0,n.jsxs)("div",{className:s({className:t}),...p,"data-ids":"CardTitle",children:[(0,n.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,n.jsx)(l(),{condition:null!=o&&"string"==typeof o&&!r,wrapper:e=>{let{className:t,...r}=u;return(0,n.jsx)(i.o5,{className:(0,a.cx)("mt-1",t),sm:"caption1",variant:"caption2",...r,"data-card-label":!0,children:e})},children:o}),(0,n.jsx)(l(),{condition:null!=f&&"string"==typeof f&&!r,wrapper:e=>{let{className:t,disableColorScheme:r,...a}=h;return(0,n.jsx)(i.o5,{className:t,"data-card-title":!0,disableColorScheme:r,sm:"subtitle1",variant:"subtitle2",...a,children:e})},children:f}),(0,n.jsx)(l(),{condition:null!=c&&"string"==typeof c&&!r,wrapper:e=>{let{className:t,...r}=d;return(0,n.jsx)(i.o5,{className:t,"data-card-subtitle":!0,sm:"caption1",variant:"caption2",...r,children:e})},children:c})]}),(0,n.jsx)(l(),{condition:!!e,wrapper:e=>(0,n.jsx)("div",{children:e}),children:e})]});u.displayName="CardTitle"},50190:(e,t,r)=>{"use strict";r.d(t,{Qg:()=>o,bL:()=>s,s6:()=>l});var n=r(12115),a=r(2279),i=r(95155),o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l=n.forwardRef((e,t)=>(0,i.jsx)(a.s.span,{...e,ref:t,style:{...o,...e.style}}));l.displayName="VisuallyHidden";var s=l},50676:(e,t,r)=>{"use strict";r.d(t,{CarouselNext:()=>u});var n=r(95155),a=r(5036),i=r(1773),o=r.n(i),l=r(34466);let s=(0,r(74466).F)(["-translate-y-1/2","@md/carousel:rounded-lg","@md/carousel:h-20","@md/carousel:w-10","absolute","bg-neutral-3","dark:bg-neutral-8","dark:text-neutral-3","h-12","hover:opacity-100","opacity-70","p-0","right-2","rounded-sm","text-neutral-8","top-1/2","transition-opacity","w-6"],{compoundVariants:[],defaultVariants:{variant:"filmstrip"},variants:{variant:{filmstrip:["@md/carousel:visible","invisible"],slideshow:[]}}}),u=e=>{let{children:t=(0,n.jsx)(o(),{path:a.mI8}),className:r,title:i="Next slide",...u}=e,{canScrollNext:c,scrollNext:d,variant:f}=(0,l.g)();if(c)return(0,n.jsx)("button",{className:r||s({variant:f}),title:i,...u,"data-ids":"CarouselNext",onClick:d,children:t})};u.displayName="CarouselNext"},51508:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});let n=(0,r(12115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},52090:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(12115),a=r(47650),i=r(2279),o=r(64730),l=r(95155),s=n.forwardRef((e,t)=>{var r,s;let{container:u,...c}=e,[d,f]=n.useState(!1);(0,o.N)(()=>f(!0),[]);let h=u||d&&(null==(s=globalThis)||null==(r=s.document)?void 0:r.body);return h?a.createPortal((0,l.jsx)(i.s.div,{...c,ref:t}),h):null});s.displayName="Portal"},52149:(e,t,r)=>{"use strict";r.d(t,{CarouselPrevious:()=>u});var n=r(95155),a=r(5036),i=r(1773),o=r.n(i),l=r(34466);let s=(0,r(74466).F)(["-translate-y-1/2","@md/carousel:rounded-lg","@md/carousel:h-20","@md/carousel:w-10","absolute","bg-neutral-3","dark:bg-neutral-8","dark:text-neutral-3","h-12","hover:opacity-100","left-2","opacity-70","p-0","rounded-sm","text-neutral-8","top-1/2","transition-opacity","w-6"],{compoundVariants:[],defaultVariants:{variant:"filmstrip"},variants:{variant:{filmstrip:["@md/carousel:visible","invisible"],slideshow:[]}}}),u=e=>{let{children:t=(0,n.jsx)(o(),{path:a.LyG}),className:r,title:i="Previous slide",...u}=e,{canScrollPrev:c,scrollPrev:d,variant:f}=(0,l.g)();if(c)return(0,n.jsx)("button",{className:r||s({variant:f}),title:i,...u,"data-ids":"CarouselPrevious",onClick:d,children:t})};u.displayName="CarouselPrevious"},52596:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",a=arguments.length;rn,A:()=>a});let a=n},52794:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(12115);let a=(e,t)=>{if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return e.toString();if(!e)return"";if(Array.isArray(e))return e.map(e=>a(e,t)).join(" ");let[r,i]=(0,n.isValidElement)(e)?[e.type,e.props]:[null,null];if(r&&t?.has(r))return t.get(r)(i);let o=e.props?e.props:{};return o&&o.children?a(o.children,t):""}},53191:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});let n=(e,t)=>r=>t(e(r)),a=(...e)=>e.reduce(n)},53407:(e,t,r)=>{"use strict";r.d(t,{Accordion:()=>o});var n=r(95155),a=r(59576);let i=(0,r(74466).F)([],{compoundVariants:[],defaultVariants:{},variants:{}}),o=e=>{let{children:t,className:r,...o}=e;return(0,n.jsx)(a.bL,{className:i({className:r}),...o,"data-ids":"Accordion",children:t})};o.displayName="Accordion"},53678:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});let n=(e,t,r)=>r>t?t:r{"use strict";r.d(t,{$:()=>n,V:()=>a});let n=()=>{},a=()=>{}},55e3:(e,t,r)=>{"use strict";r.d(t,{B8:()=>A,UC:()=>P,bL:()=>T,l9:()=>R});var n=r(12115),a=r(65749),i=r(66801),o=r(62824),l=r(49619),s=r(2279),u=r(98303),c=r(46135),d=r(74539),f=r(95155),h="Tabs",[p]=(0,i.A)(h,[o.RG]),m=(0,o.RG)(),[v,g]=p(h),y=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:p="automatic",...m}=e,g=(0,u.j)(l),[y,x]=(0,c.i)({prop:n,onChange:a,defaultProp:null!=i?i:"",caller:h});return(0,f.jsx)(v,{scope:r,baseId:(0,d.B)(),value:y,onValueChange:x,orientation:o,dir:g,activationMode:p,children:(0,f.jsx)(s.s.div,{dir:g,"data-orientation":o,...m,ref:t})})});y.displayName=h;var x="TabsList",b=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...a}=e,i=g(x,r),l=m(r);return(0,f.jsx)(o.bL,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:n,children:(0,f.jsx)(s.s.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});b.displayName=x;var w="TabsTrigger",k=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:i=!1,...l}=e,u=g(w,r),c=m(r),d=E(u.baseId,n),h=j(u.baseId,n),p=n===u.value;return(0,f.jsx)(o.q7,{asChild:!0,...c,focusable:!i,active:p,children:(0,f.jsx)(s.s.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":h,"data-state":p?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:d,...l,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(n)}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(n)}),onFocus:(0,a.m)(e.onFocus,()=>{let e="manual"!==u.activationMode;p||i||!e||u.onValueChange(n)})})})});k.displayName=w;var S="TabsContent",C=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:a,forceMount:i,children:o,...u}=e,c=g(S,r),d=E(c.baseId,a),h=j(c.baseId,a),p=a===c.value,m=n.useRef(p);return n.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(l.C,{present:i||p,children:r=>{let{present:n}=r;return(0,f.jsx)(s.s.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:h,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:n&&o})}})});function E(e,t){return"".concat(e,"-trigger-").concat(t)}function j(e,t){return"".concat(e,"-content-").concat(t)}C.displayName=S;var T=y,A=b,R=k,P=C},55062:(e,t,r)=>{"use strict";r.d(t,{TabsItem:()=>u});var n=r(95155),a=r(12115),i=r(55e3),o=r(72107),l=r(77046);let s=(0,r(74466).F)(["!leading-[inherit]","[&[data-state=active]]:bg-neutral-3","[&[data-state=active]]:border-neutral-3","[&[data-state=active]]:dark:bg-neutral-8","[&[data-state=active]]:dark:border-neutral-8","[&[data-state=active]]:dark:focus:bg-neutral-6","[&[data-state=active]]:dark:focus:border-neutral-6","[&[data-state=active]]:dark:hover:bg-neutral-6","[&[data-state=active]]:dark:hover:border-neutral-6","[&[data-state=active]]:dark:text-neutral-2","[&[data-state=active]]:focus:bg-neutral-1","[&[data-state=active]]:focus:border-neutral-1","[&[data-state=active]]:hover:bg-neutral-1","[&[data-state=active]]:hover:border-neutral-1","[&[data-state=active]]:text-neutral-8","bg-neutral-8","border","dark:bg-neutral-2","flex","focus:outline-hidden","items-center","rounded-full","select-none","whitespace-nowrap"],{defaultVariants:{disabled:!1,tabSize:"small"},variants:{disabled:{false:["border-neutral-5","dark:border-neutral-4","dark:focus:border-neutral-8","dark:focus:text-neutral-8","dark:hover:border-neutral-8","dark:hover:text-neutral-8","dark:text-neutral-5","hover:border-neutral-3","hover:text-neutral-2","text-neutral-4"],true:["text-neutral-5","border-transparent","cursor-not-allowed","dark:text-neutral-4"]},tabSize:{large:["max-h-12","px-5","py-4"],medium:["max-h-10","px-4","py-3"],small:["max-h-8","px-3","py-2"]}}}),u=e=>{let{children:t,className:r,disabled:u=!1,ref:c,value:d,...f}=e,{registerTab:h,tabSize:p,unregisterTab:m,valuePrefix:v}=(0,l.u)(),g="".concat(v,"-").concat(d);return(0,a.useEffect)(()=>(h(g),()=>m(g)),[]),(0,n.jsx)(i.l9,{asChild:!0,"data-ids":"TabsItem",disabled:u,ref:c,value:g,children:(0,n.jsx)(o.o5,{as:"button",className:s({className:r,disabled:u,tabSize:p}),...f,disableColorScheme:!0,variant:"button2",children:t})})};u.displayName="TabsItem"},55920:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,q:()=>o});var n=r(30614);let a=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,i=(e,t)=>r=>!!("string"==typeof r&&a.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),o=(e,t,r)=>a=>{if("string"!=typeof a)return a;let[i,o,l,s]=a.match(n.S);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(l),alpha:void 0!==s?parseFloat(s):1}}},56345:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});let n=(0,r(74466).F)(["aria-disabled:opacity-50","aria-disabled:pointer-events-none","cursor-pointer","dark:data-[highlighted]:bg-neutral-2","data-[disabled]:opacity-50","data-[disabled]:pointer-events-none","data-[highlighted]:bg-neutral-7","data-[highlighted]:outline-hidden","flex","items-center","min-h-10","mx-2","p-2","rounded-lg","select-none"])},56668:(e,t,r)=>{"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}function a(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{Ai:()=>a,Kq:()=>n})},57170:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(95155);let a=(0,r(74466).F)(["shrink-0","bg-neutral-6","dark:bg-neutral-3"],{compoundVariants:[],defaultVariants:{orientation:"horizontal"},variants:{orientation:{horizontal:["h-px","w-full"],vertical:["h-full","w-px"]}}}),i=({className:e,decorative:t=!0,orientation:r="horizontal",...i})=>{let o=t?{role:"none"}:{"aria-orientation":r,role:"separator"};return(0,n.jsx)("div",{className:a({className:e,orientation:r}),"data-orientation":r,...o,...i,"data-ids":"Divider"})};i.displayName="Divider"},57887:(e,t,r)=>{"use strict";r.d(t,{X4:()=>i,ai:()=>a,hs:()=>o});var n=r(53678);let a={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},i={...a,transform:e=>(0,n.q)(0,1,e)},o={...a,default:1}},58437:(e,t,r)=>{"use strict";r.d(t,{I:()=>o});var n=r(23387);let a=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var i=r(24744);function o(e,t){let r=!1,o=!0,l={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,u=a.reduce((e,r)=>(e[r]=function(e,t){let r=new Set,n=new Set,a=!1,o=!1,l=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},u=0;function c(t){l.has(t)&&(d.schedule(t),e()),u++,t(s)}let d={schedule:(e,t=!1,i=!1)=>{let o=i&&a?r:n;return t&&l.add(e),o.has(e)||o.add(e),e},cancel:e=>{n.delete(e),l.delete(e)},process:e=>{if(s=e,a){o=!0;return}a=!0,[r,n]=[n,r],r.forEach(c),t&&i.Q.value&&i.Q.value.frameloop[t].push(u),u=0,r.clear(),a=!1,o&&(o=!1,d.process(e))}};return d}(s,t?r:void 0),e),{}),{setup:c,read:d,resolveKeyframes:f,preUpdate:h,update:p,preRender:m,render:v,postRender:g}=u,y=()=>{let a=n.W.useManualTiming?l.timestamp:performance.now();r=!1,n.W.useManualTiming||(l.delta=o?1e3/60:Math.max(Math.min(a-l.timestamp,40),1)),l.timestamp=a,l.isProcessing=!0,c.process(l),d.process(l),f.process(l),h.process(l),p.process(l),m.process(l),v.process(l),g.process(l),l.isProcessing=!1,r&&t&&(o=!1,e(y))};return{schedule:a.reduce((t,n)=>{let a=u[n];return t[n]=(t,n=!1,i=!1)=>(!r&&(r=!0,o=!0,l.isProcessing||e(y)),a.schedule(t,n,i)),t},{}),cancel:e=>{for(let t=0;t{"use strict";r.d(t,{Modal:()=>G});var n=r(95155),a=r(12115),i=r(65749),o=r(73595),l=r(66801),s=r(74539),u=r(46135),c=r(68991),d=r(25003),f=r(52090),h=r(49619),p=r(2279),m=r(6507),v=r(7156),g=r(29385),y=r(77280),x="Dialog",[b]=(0,l.A)(x),[w,k]=b(x),S=e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:o,onOpenChange:l,modal:c=!0}=e,d=a.useRef(null),f=a.useRef(null),[h,p]=(0,u.i)({prop:i,defaultProp:null!=o&&o,onChange:l,caller:x});return(0,n.jsx)(w,{scope:t,triggerRef:d,contentRef:f,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:h,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(e=>!e),[p]),modal:c,children:r})};S.displayName=x;var C="DialogTrigger";a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,l=k(C,r),s=(0,o.s)(t,l.triggerRef);return(0,n.jsx)(p.s.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":B(l.open),...a,ref:s,onClick:(0,i.m)(e.onClick,l.onOpenToggle)})}).displayName=C;var E="DialogPortal",[j,T]=b(E,{forceMount:void 0}),A=e=>{let{__scopeDialog:t,forceMount:r,children:i,container:o}=e,l=k(E,t);return(0,n.jsx)(j,{scope:t,forceMount:r,children:a.Children.map(i,e=>(0,n.jsx)(h.C,{present:r||l.open,children:(0,n.jsx)(f.Z,{asChild:!0,container:o,children:e})}))})};A.displayName=E;var R="DialogOverlay",P=a.forwardRef((e,t)=>{let r=T(R,e.__scopeDialog),{forceMount:a=r.forceMount,...i}=e,o=k(R,e.__scopeDialog);return o.modal?(0,n.jsx)(h.C,{present:a||o.open,children:(0,n.jsx)(M,{...i,ref:t})}):null});P.displayName=R;var N=(0,y.T)("DialogOverlay.RemoveScroll"),M=a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,i=k(R,r);return(0,n.jsx)(v.A,{as:N,allowPinchZoom:!0,shards:[i.contentRef],children:(0,n.jsx)(p.s.div,{"data-state":B(i.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),O="DialogContent",D=a.forwardRef((e,t)=>{let r=T(O,e.__scopeDialog),{forceMount:a=r.forceMount,...i}=e,o=k(O,e.__scopeDialog);return(0,n.jsx)(h.C,{present:a||o.open,children:o.modal?(0,n.jsx)(L,{...i,ref:t}):(0,n.jsx)(I,{...i,ref:t})})});D.displayName=O;var L=a.forwardRef((e,t)=>{let r=k(O,e.__scopeDialog),l=a.useRef(null),s=(0,o.s)(t,r.contentRef,l);return a.useEffect(()=>{let e=l.current;if(e)return(0,g.E)(e)},[]),(0,n.jsx)(V,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),I=a.forwardRef((e,t)=>{let r=k(O,e.__scopeDialog),i=a.useRef(!1),o=a.useRef(!1);return(0,n.jsx)(V,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(i.current||null==(a=r.triggerRef.current)||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var n,a;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let l=t.target;(null==(a=r.triggerRef.current)?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),V=a.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:s,...u}=e,f=k(O,r),h=a.useRef(null),p=(0,o.s)(t,h);return(0,m.O)(),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:s,children:(0,n.jsx)(c.qW,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":B(f.open),...u,ref:p,onDismiss:()=>f.onOpenChange(!1)})}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(K,{titleId:f.titleId}),(0,n.jsx)(q,{contentRef:h,descriptionId:f.descriptionId})]})]})}),F="DialogTitle";a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,i=k(F,r);return(0,n.jsx)(p.s.h2,{id:i.titleId,...a,ref:t})}).displayName=F;var _="DialogDescription";a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,i=k(_,r);return(0,n.jsx)(p.s.p,{id:i.descriptionId,...a,ref:t})}).displayName=_;var z="DialogClose";function B(e){return e?"open":"closed"}a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=k(z,r);return(0,n.jsx)(p.s.button,{type:"button",...a,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=z;var H="DialogTitleWarning",[U,W]=(0,l.q)(H,{contentName:O,titleName:F,docsSlug:"dialog"}),K=e=>{let{titleId:t}=e,r=W(H),n="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return a.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},q=e=>{let{contentRef:t,descriptionId:r}=e,n=W("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(n.contentName,"}.");return a.useEffect(()=>{var e;let n=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");r&&n&&(document.getElementById(r)||console.warn(i))},[i,t,r]),null},$=r(74466);let G=e=>{let{children:t,className:r,container:a,disabledEscapeKeyDown:i=!1,hideBackdrop:o=!1,onClose:l=()=>{},open:s=!1,role:u="dialog",...c}=e;return(0,n.jsx)(S,{open:s,children:(0,n.jsxs)(A,{container:a,children:[!o&&(0,n.jsx)(P,{className:"z-top bg-neutral-1/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 backdrop-blur-xs","data-ids":"ModalOverlay"}),(0,n.jsx)(D,{className:(0,$.cx)("z-top fixed outline-hidden",r),"data-ids":"ModalContent",onEscapeKeyDown:e=>i?e.preventDefault():l(e,"escapeKeyDown"),onOpenAutoFocus:e=>{e.preventDefault(),e.target.focus()},onPointerDownOutside:e=>l(e,"backdropClick"),role:u,...c,tabIndex:-1,children:t})]})})};G.displayName="Modal"},58881:(e,t,r)=>{"use strict";r.d(t,{Tabs:()=>s});var n=r(95155),a=r(12115),i=r(55e3),o=r(77046);let l=(0,r(74466).F)(["flex","flex-col","gap-6","@3xl/tabs:gap-8","@5xl/tabs:gap-12"],{defaultVariants:{},variants:{jumpList:{false:[],true:["overflow-visible"]},tabSize:{large:[],medium:[],small:[]}}}),s=e=>{let{children:t,className:r,defaultValue:s,id:u,jumpList:c=!1,onValueChange:d,tabSize:f="small",...h}=e,p=u||(0,a.useId)(),[m,v]=(0,a.useState)(()=>new Set),[g,y]=(0,a.useState)({}),[x,b]=(0,a.useState)("".concat(p,"-").concat(s)),w=(0,a.useRef)(!1);c&&(0,a.useEffect)(()=>{let e=[...m].find(e=>null==g?void 0:g[e]);e&&!w.current&&b(e)},[g]);let k=async e=>{let t=e.replace("".concat(p,"-"),"");if(null==d||d(t),c){w.current=!0,(e=>{let t=document.querySelector('[data-ids="TabsContent"][data-value="'.concat(e,'"]'));null==t||t.scrollIntoView({behavior:"smooth",block:"start"})})(e);let t=()=>w.current=!1;"onscrollend"in window?document.onscrollend=t:document.onscroll=()=>{clearTimeout(window.scrollEndTimer),window.scrollEndTimer=setTimeout(t,100)}}b(e)};return(0,n.jsx)(o.w.Provider,{value:{activeTab:x,isJumpList:c,registerTab:e=>{v(t=>new Set(t).add(e))},setTabContentVisibility:(e,t)=>{y(r=>{let n={...r};return n[e]=t,n})},tabSize:f,unregisterTab:e=>{v(t=>{let r=new Set(t);return r.delete(e),r})},valuePrefix:p},children:(0,n.jsx)("div",{className:"@container/tabs","data-ids":"Tabs",id:u,children:(0,n.jsx)(i.bL,{className:l({className:r,jumpList:c}),onValueChange:k,...h,value:x,children:t})})})};s.displayName="Tabs"},59439:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});let n=(0,r(74466).F)(["border","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2","data-[state=closed]:animate-out","data-[state=closed]:fade-out-0","data-[state=closed]:zoom-out-95","data-[state=open]:animate-in","data-[state=open]:fade-in-0","data-[state=open]:zoom-in-95","flex-col","flex","overflow-hidden","rounded-lg","w-64","z-top"],{compoundVariants:[],defaultVariants:{},variants:{collapsePadding:{false:["gap-2","py-2"],true:[]},theme:{auto:["[&_[data-ids*=Heading]]:dark:text-neutral-6","[&_[data-ids*=Heading]]:text-neutral-3","[&_[data-ids*=Item][data-highlighted]]:dark:text-neutral-8","[&_[data-ids*=Item]]:dark:text-neutral-6","[&_[data-ids*=Item]]:text-neutral-3","bg-neutral-8","border-neutral-6","dark:bg-neutral-1","dark:border-transparent","dark:shadow-none","shadow-md"],dark:["[&_[data-ids*=Heading]]:text-neutral-6","[&_[data-ids*=Item][data-highlighted]]:text-neutral-8","[&_[data-ids*=Item]]:text-neutral-6","bg-neutral-1","border-transparent","dark","shadow-none"],light:["[&_[data-ids*=Heading]]:bg-neutral-7","[&_[data-ids*=Heading]]:text-neutral-3","[&_[data-ids*=Item][data-highlighted][data-state=checked]]:bg-neutral-5/50","[&_[data-ids*=Item][data-highlighted]]:bg-neutral-7","[&_[data-ids*=Item][data-state=checked]]:bg-neutral-6","[&_[data-ids*=Item]]:text-neutral-3","[&_[data-ids=Divider]]:bg-neutral-6","bg-neutral-8","border-neutral-6","shadow-md"]}}})},59576:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ei,Y9:()=>en,q7:()=>er,bL:()=>et,l9:()=>ea});var n=r(12115),a=r(66801),i=r(66896),o=r(73595),l=r(65749),s=r(46135),u=r(2279),c=r(64730),d=r(49619),f=r(74539),h=r(95155),p="Collapsible",[m,v]=(0,a.A)(p),[g,y]=m(p),x=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:a,defaultOpen:i,disabled:o,onOpenChange:l,...c}=e,[d,m]=(0,s.i)({prop:a,defaultProp:null!=i&&i,onChange:l,caller:p});return(0,h.jsx)(g,{scope:r,disabled:o,contentId:(0,f.B)(),open:d,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),children:(0,h.jsx)(u.s.div,{"data-state":E(d),"data-disabled":o?"":void 0,...c,ref:t})})});x.displayName=p;var b="CollapsibleTrigger",w=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,a=y(b,r);return(0,h.jsx)(u.s.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":E(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:t,onClick:(0,l.m)(e.onClick,a.onOpenToggle)})});w.displayName=b;var k="CollapsibleContent",S=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=y(k,e.__scopeCollapsible);return(0,h.jsx)(d.C,{present:r||a.open,children:e=>{let{present:r}=e;return(0,h.jsx)(C,{...n,ref:t,present:r})}})});S.displayName=k;var C=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:a,children:i,...l}=e,s=y(k,r),[d,f]=n.useState(a),p=n.useRef(null),m=(0,o.s)(t,p),v=n.useRef(0),g=v.current,x=n.useRef(0),b=x.current,w=s.open||d,S=n.useRef(w),C=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=p.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,x.current=t.width,S.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),f(a)}},[s.open,a]),(0,h.jsx)(u.s.div,{"data-state":E(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!w,...l,ref:m,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0,...e.style},children:w&&i})});function E(e){return e?"open":"closed"}var j=r(98303),T="Accordion",A=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[R,P,N]=(0,i.N)(T),[M]=(0,a.A)(T,[N,v]),O=v(),D=n.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,h.jsx)(R.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,h.jsx)(z,{...n,ref:t}):(0,h.jsx)(_,{...n,ref:t})})});D.displayName=T;var[L,I]=M(T),[V,F]=M(T,{collapsible:!1}),_=n.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:i=()=>{},collapsible:o=!1,...l}=e,[u,c]=(0,s.i)({prop:r,defaultProp:null!=a?a:"",onChange:i,caller:T});return(0,h.jsx)(L,{scope:e.__scopeAccordion,value:n.useMemo(()=>u?[u]:[],[u]),onItemOpen:c,onItemClose:n.useCallback(()=>o&&c(""),[o,c]),children:(0,h.jsx)(V,{scope:e.__scopeAccordion,collapsible:o,children:(0,h.jsx)(U,{...l,ref:t})})})}),z=n.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:i=()=>{},...o}=e,[l,u]=(0,s.i)({prop:r,defaultProp:null!=a?a:[],onChange:i,caller:T}),c=n.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),d=n.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,h.jsx)(L,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:d,children:(0,h.jsx)(V,{scope:e.__scopeAccordion,collapsible:!0,children:(0,h.jsx)(U,{...o,ref:t})})})}),[B,H]=M(T),U=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:a,dir:i,orientation:s="vertical",...c}=e,d=n.useRef(null),f=(0,o.s)(d,t),p=P(r),m="ltr"===(0,j.j)(i),v=(0,l.m)(e.onKeyDown,e=>{var t;if(!A.includes(e.key))return;let r=e.target,n=p().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),a=n.findIndex(e=>e.ref.current===r),i=n.length;if(-1===a)return;e.preventDefault();let o=a,l=i-1,u=()=>{(o=a+1)>l&&(o=0)},c=()=>{(o=a-1)<0&&(o=l)};switch(e.key){case"Home":o=0;break;case"End":o=l;break;case"ArrowRight":"horizontal"===s&&(m?u():c());break;case"ArrowDown":"vertical"===s&&u();break;case"ArrowLeft":"horizontal"===s&&(m?c():u());break;case"ArrowUp":"vertical"===s&&c()}null==(t=n[o%i].ref.current)||t.focus()});return(0,h.jsx)(B,{scope:r,disabled:a,direction:i,orientation:s,children:(0,h.jsx)(R.Slot,{scope:r,children:(0,h.jsx)(u.s.div,{...c,"data-orientation":s,ref:f,onKeyDown:a?void 0:v})})})}),W="AccordionItem",[K,q]=M(W),$=n.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...a}=e,i=H(W,r),o=I(W,r),l=O(r),s=(0,f.B)(),u=n&&o.value.includes(n)||!1,c=i.disabled||e.disabled;return(0,h.jsx)(K,{scope:r,open:u,disabled:c,triggerId:s,children:(0,h.jsx)(x,{"data-orientation":i.orientation,"data-state":ee(u),...l,...a,ref:t,disabled:c,open:u,onOpenChange:e=>{e?o.onItemOpen(n):o.onItemClose(n)}})})});$.displayName=W;var G="AccordionHeader",Y=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,a=H(T,r),i=q(G,r);return(0,h.jsx)(u.s.h3,{"data-orientation":a.orientation,"data-state":ee(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});Y.displayName=G;var X="AccordionTrigger",Z=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,a=H(T,r),i=q(X,r),o=F(X,r),l=O(r);return(0,h.jsx)(R.ItemSlot,{scope:r,children:(0,h.jsx)(w,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...l,...n,ref:t})})});Z.displayName=X;var Q="AccordionContent",J=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,a=H(T,r),i=q(Q,r),o=O(r);return(0,h.jsx)(S,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function ee(e){return e?"open":"closed"}J.displayName=Q;var et=D,er=$,en=Y,ea=Z,ei=J},60010:(e,t,r)=>{"use strict";r.d(t,{V:()=>c,f:()=>p});var n=r(4272);let a=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var i=r(30614),o=r(11557);let l="number",s="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c(e){let t=e.toString(),r=[],a={color:[],number:[],var:[]},i=[],o=0,c=t.replace(u,e=>(n.y.test(e)?(a.color.push(o),i.push(s),r.push(n.y.parse(e))):e.startsWith("var(")?(a.var.push(o),i.push("var"),r.push(e)):(a.number.push(o),i.push(l),r.push(parseFloat(e))),++o,"${}")).split("${}");return{values:r,split:c,indexes:a,types:i}}function d(e){return c(e).values}function f(e){let{split:t,types:r}=c(e),a=t.length;return e=>{let i="";for(let u=0;u"number"==typeof e?0:n.y.test(e)?n.y.getAnimatableNone(e):e,p={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(i.S)?.length||0)+(e.match(a)?.length||0)>0},parse:d,createTransformer:f,getAnimatableNone:function(e){let t=d(e);return f(e)(t.map(h))}}},60098:(e,t,r)=>{"use strict";r.d(t,{OQ:()=>u,bt:()=>l});var n=r(75626),a=r(62923),i=r(74261),o=r(69515);let l={current:void 0};class s{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=i.k.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=i.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new n.v);let r=this.events[e].add(t);return"change"===e?()=>{r(),o.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=i.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,a.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(e,t){return new s(e,t)}},62067:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(12115);function a(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},62824:(e,t,r)=>{"use strict";r.d(t,{RG:()=>w,bL:()=>P,q7:()=>N});var n=r(12115),a=r(65749),i=r(66896),o=r(73595),l=r(66801),s=r(74539),u=r(2279),c=r(62067),d=r(46135),f=r(98303),h=r(95155),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[g,y,x]=(0,i.N)(v),[b,w]=(0,l.A)(v,[x]),[k,S]=b(v),C=n.forwardRef((e,t)=>(0,h.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(E,{...e,ref:t})})}));C.displayName=v;var E=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:l=!1,dir:s,currentTabStopId:g,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:b,onEntryFocus:w,preventScrollOnEntryFocus:S=!1,...C}=e,E=n.useRef(null),j=(0,o.s)(t,E),T=(0,f.j)(s),[A,P]=(0,d.i)({prop:g,defaultProp:null!=x?x:null,onChange:b,caller:v}),[N,M]=n.useState(!1),O=(0,c.c)(w),D=y(r),L=n.useRef(!1),[I,V]=n.useState(0);return n.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(p,O),()=>e.removeEventListener(p,O)},[O]),(0,h.jsx)(k,{scope:r,orientation:i,dir:T,loop:l,currentTabStopId:A,onItemFocus:n.useCallback(e=>P(e),[P]),onItemShiftTab:n.useCallback(()=>M(!0),[]),onFocusableItemAdd:n.useCallback(()=>V(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>V(e=>e-1),[]),children:(0,h.jsx)(u.s.div,{tabIndex:N||0===I?-1:0,"data-orientation":i,...C,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,a.m)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,a.m)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!N){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);R([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),S)}}L.current=!1}),onBlur:(0,a.m)(e.onBlur,()=>M(!1))})})}),j="RovingFocusGroupItem",T=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:o=!1,tabStopId:l,children:c,...d}=e,f=(0,s.B)(),p=l||f,m=S(j,r),v=m.currentTabStopId===p,x=y(r),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:k}=m;return n.useEffect(()=>{if(i)return b(),()=>w()},[i,b,w]),(0,h.jsx)(g.ItemSlot,{scope:r,id:p,focusable:i,active:o,children:(0,h.jsx)(u.s.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{i?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,a.m)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,a.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return A[a]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=x().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>R(r))}}),children:"function"==typeof c?c({isCurrentTabStop:v,hasTabStop:null!=k}):c})})});T.displayName=j;var A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var P=C,N=T},62923:(e,t,r)=>{"use strict";function n(e,t){return t?1e3/t*e:0}r.d(t,{f:()=>n})},64730:(e,t,r)=>{"use strict";r.d(t,{N:()=>a});var n=r(12115),a=globalThis?.document?n.useLayoutEffect:()=>{}},65749:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{m:()=>n})},66714:e=>{"use strict";let t=({children:e,condition:t,wrapper:r})=>t?r(e):e;t.displayName="ConditionalWrapper",e.exports=t},66801:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,q:()=>i});var n=r(12115),a=r(95155);function i(e,t){let r=n.createContext(t),i=e=>{let{children:t,...i}=e,o=n.useMemo(()=>i,Object.values(i));return(0,a.jsx)(r.Provider,{value:o,children:t})};return i.displayName=e+"Provider",[i,function(a){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${a}\` must be used within \`${e}\``)}]}function o(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let a=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:a}}),[r,a])}};return i.scopeName=e,[function(t,i){let o=n.createContext(i),l=r.length;r=[...r,i];let s=t=>{let{scope:r,children:i,...s}=t,u=r?.[e]?.[l]||o,c=n.useMemo(()=>s,Object.values(s));return(0,a.jsx)(u.Provider,{value:c,children:i})};return s.displayName=t+"Provider",[s,function(r,a){let s=a?.[e]?.[l]||o,u=n.useContext(s);if(u)return u;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}(i,...t)]}},66896:(e,t,r)=>{"use strict";r.d(t,{N:()=>s});var n=r(12115),a=r(66801),i=r(73595),o=r(77280),l=r(95155);function s(e){let t=e+"CollectionProvider",[r,s]=(0,a.A)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,a=n.useRef(null),i=n.useRef(new Map).current;return(0,l.jsx)(u,{scope:t,itemMap:i,collectionRef:a,children:r})};d.displayName=t;let f=e+"CollectionSlot",h=(0,o.T)(f),p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,a=c(f,r),o=(0,i.s)(t,a.collectionRef);return(0,l.jsx)(h,{ref:o,children:n})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,o.T)(m),y=n.forwardRef((e,t)=>{let{scope:r,children:a,...o}=e,s=n.useRef(null),u=(0,i.s)(t,s),d=c(m,r);return n.useEffect(()=>(d.itemMap.set(s,{ref:s,...o}),()=>void d.itemMap.delete(s))),(0,l.jsx)(g,{...{[v]:""},ref:u,children:a})});return y.displayName=m,[{Provider:d,Slot:p,ItemSlot:y},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}},68442:(e,t,r)=>{"use strict";r.d(t,{CardMedia:()=>u});var n=r(95155),a=r(12115),i=r(74466),o=r(47207);let l=(0,i.F)(["relative","w-full"],{compoundVariants:[{aspectRatio:"16/9",class:["aspect-square","@sm:aspect-video"],responsiveAspectRatio:!0},{aspectRatio:"16/9",class:"aspect-video",responsiveAspectRatio:!1},{aspectRatio:"9/16",class:["aspect-square","@sm:aspect-vertical"],responsiveAspectRatio:!0},{aspectRatio:"9/16",class:"aspect-vertical",responsiveAspectRatio:!1}],defaultVariants:{aspectRatio:"16/9",responsiveAspectRatio:!1,variant:"rounded"},variants:{aspectRatio:{"1/1":["overflow-hidden","aspect-square"],"16/9":"overflow-hidden","3/4":["overflow-hidden","aspect-[3/4]"],"8.5/11":["overflow-hidden","aspect-paper"],"9/16":"overflow-hidden",auto:""},responsiveAspectRatio:{false:[],true:[]},variant:{rounded:"rounded-lg","rounded-bottom":"rounded-b-lg","rounded-left":"rounded-l-lg","rounded-right":"rounded-r-lg","rounded-top":"rounded-t-lg",square:"rounded-none"}}}),s=(0,i.F)([],{compoundVariants:[{aspectRatio:"16/9",class:["aspect-square","@sm:aspect-video"],responsiveAspectRatio:!0},{aspectRatio:"16/9",class:"aspect-video",responsiveAspectRatio:!1},{aspectRatio:"9/16",class:["aspect-square","@sm:aspect-vertical"],responsiveAspectRatio:!0},{aspectRatio:"9/16",class:"aspect-vertical w-full",responsiveAspectRatio:!1}],defaultVariants:{aspectRatio:"16/9",responsiveAspectRatio:!1,zoomOnHover:!1},variants:{aspectRatio:{"1/1":[],"16/9":[],"3/4":"aspect-[3/4]","8.5/11":"aspect-paper","9/16":[],auto:[]},responsiveAspectRatio:{false:[],true:[]},zoomOnHover:{false:[],true:["group-focus/card:scale-105","group-hover/card:scale-105","motion-reduce:group-hover/card:transform-none","motion-reduce:group-focus/card:transform-none","transition-transform"]}}}),u=(0,a.forwardRef)((e,t)=>{let{alt:r="",as:u="img",aspectRatio:c="auto",children:d,className:f,disableImageOverflow:h=!1,imageProps:p={},responsiveAspectRatio:m=!1,src:v,variant:g="rounded",videoProps:y={},zoomOnHover:x=!1,...b}=e,w=(0,a.useRef)(null);return(0,a.useImperativeHandle)(t,()=>w.current,[]),(0,a.useEffect)(()=>{if("video"===u&&w.current){let e=w.current;if(o.Ay.isSupported()){let t=new o.Ay;t.loadSource(v),t.attachMedia(e)}else e.canPlayType("application/vnd.apple.mpegurl")&&(e.src=v)}},[v,u,w]),(0,n.jsx)("div",{className:(0,i.cx)("min-w-20",f),"data-ids":"CardMedia",children:(0,n.jsxs)("div",{className:(0,i.cx)(l({aspectRatio:c,responsiveAspectRatio:m,variant:g}),{"bg-neutral-1":"video"===u}),...b,children:["video"===u?(()=>{let{className:e,...t}=y;return(0,n.jsx)("video",{className:s({aspectRatio:c,className:(0,i.cx)("m-auto max-h-full",e),responsiveAspectRatio:m}),controls:!0,src:v,...t,ref:w})})():(()=>{let{className:e,...t}=p,a=(0,i.cx)(e,{"@sm:object-cover object-contain":m&&h,"object-cover":!m||m&&!h}),o="img"===u?{className:s({aspectRatio:c,className:(0,i.cx)("absolute h-full w-full inset-0",a),responsiveAspectRatio:m,zoomOnHover:x})}:{blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mN89uJNPQAIsQM7E+c3WAAAAABJRU5ErkJggg==",className:s({className:a,zoomOnHover:x}),fill:!0,placeholder:"blur",priority:!1,quality:75};return(0,n.jsx)(u,{alt:r,ref:w,sizes:"100vw",src:v,...o,...t})})(),d&&(0,n.jsx)("div",{className:"absolute inset-0 h-full w-full p-2",children:d})]})})});u.displayName="CardMedia"},68833:(e,t,r)=>{"use strict";r.d(t,{default:()=>g});var n=r(12115),a={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}},i=new Uint8Array(256),o=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/;function l(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function s(e){return{__BARE_VALUE__:e}}RegExp(`^${o.source}$`),RegExp(`^${o.source}%$`),RegExp(`^${o.source}s*/s*${o.source}$`),RegExp(`^${o.source}(cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cqw|cqh|cqi|cqb|cqmin|cqmax)$`),RegExp(`^${o.source}(deg|rad|grad|turn)$`),RegExp(`^${o.source} +${o.source} +${o.source}$`);var u=s(e=>{if(l(e.value))return e.value}),c=s(e=>{if(l(e.value))return`${e.value}%`}),d=s(e=>{if(l(e.value))return`${e.value}px`}),f=s(e=>{if(l(e.value))return`${e.value}ms`}),h=s(e=>{if(l(e.value))return`${e.value}deg`}),p=s(e=>{if(null===e.fraction)return;let[t,r]=function(e,t){let r=0,n=[],a=0,o=e.length;for(let t=0;t0&&l===i[r-1]&&r--}}return n.push(e.slice(a)),n}(e.fraction,0);if(!(!l(t)||!l(r)))return e.fraction}),m=s(e=>{if(l(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),v={accentColor:({theme:e})=>e("colors"),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...p},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...c}),backdropContrast:({theme:e})=>({...e("contrast"),...c}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...c}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...h}),backdropInvert:({theme:e})=>({...e("invert"),...c}),backdropOpacity:({theme:e})=>({...e("opacity"),...c}),backdropSaturate:({theme:e})=>({...e("saturate"),...c}),backdropSepia:({theme:e})=>({...e("sepia"),...c}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...d},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...c},caretColor:({theme:e})=>e("colors"),colors:()=>({...a}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...u},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...c},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...d}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...u},flexShrink:{0:"0",DEFAULT:"1",...u},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...c},grayscale:{0:"0",DEFAULT:"100%",...c},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...u},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...u},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...u},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...u},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...m},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...m},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...h},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...c},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...u},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...c},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...u},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...d},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...d},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...d},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...d},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...h},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...c},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...c},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...c},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...h},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...u},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...d},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...d},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...f},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...f},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...u}};let g=e=>{let{screens:t}=v;if(e&&!t[e])return!1;let r=((e,t)=>{if(t)return{[t]:`(min-width: ${e[t]})`};let r=Object.keys(e).sort((t,r)=>parseInt(e[t])-parseInt(e[r]));return r.reduce((t,n,a)=>{let i=[],o=parseInt(e[n]),l=r[a+1],s=l?parseInt(e[l]):null;return o>=0&&i.push(`(min-width: ${o}rem)`),s&&i.push(`(max-width: ${s-1}rem)`),t[n]=i.join(" and "),t},{})})(t,e),a=e=>{if("object"==typeof window){let t=Object.keys(e).find(t=>window.matchMedia(e[t]).matches);return null!=t&&t}return"unavailable"},[i,o]=(0,n.useState)(a(r)),l=()=>o(a(r));return(0,n.useEffect)(()=>{let e=Object.keys(r).map(e=>{let t=window.matchMedia(r[e]);return t.addEventListener("change",l),()=>t.removeEventListener("change",l)});return()=>e.forEach(e=>e())},[e]),i}},68972:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});let n="undefined"!=typeof window},68991:(e,t,r)=>{"use strict";r.d(t,{lg:()=>g,qW:()=>f,bL:()=>v});var n,a=r(12115),i=r(65749),o=r(2279),l=r(73595),s=r(62067),u=r(95155),c="dismissableLayer.update",d=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=a.forwardRef((e,t)=>{var r,f;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:x,onDismiss:b,...w}=e,k=a.useContext(d),[S,C]=a.useState(null),E=null!=(f=null==S?void 0:S.ownerDocument)?f:null==(r=globalThis)?void 0:r.document,[,j]=a.useState({}),T=(0,l.s)(t,e=>C(e)),A=Array.from(k.layers),[R]=[...k.layersWithOutsidePointerEventsDisabled].slice(-1),P=A.indexOf(R),N=S?A.indexOf(S):-1,M=k.layersWithOutsidePointerEventsDisabled.size>0,O=N>=P,D=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,s.c)(e),i=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){m("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...k.branches].some(e=>e.contains(t));O&&!r&&(null==g||g(e),null==x||x(e),e.defaultPrevented||null==b||b())},E),L=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,s.c)(e),i=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...k.branches].some(e=>e.contains(t))&&(null==y||y(e),null==x||x(e),e.defaultPrevented||null==b||b())},E);return!function(e,t=globalThis?.document){let r=(0,s.c)(e);a.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{N===k.layers.size-1&&(null==v||v(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},E),a.useEffect(()=>{if(S)return h&&(0===k.layersWithOutsidePointerEventsDisabled.size&&(n=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),k.layersWithOutsidePointerEventsDisabled.add(S)),k.layers.add(S),p(),()=>{h&&1===k.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=n)}},[S,E,h,k]),a.useEffect(()=>()=>{S&&(k.layers.delete(S),k.layersWithOutsidePointerEventsDisabled.delete(S),p())},[S,k]),a.useEffect(()=>{let e=()=>j({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(o.s.div,{...w,ref:T,style:{pointerEvents:M?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,D.onPointerDownCapture)})});f.displayName="DismissableLayer";var h=a.forwardRef((e,t)=>{let r=a.useContext(d),n=a.useRef(null),i=(0,l.s)(t,n);return a.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(o.s.div,{...e,ref:i})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,r,n){let{discrete:a}=n,i=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),a?(0,o.h)(i,l):i.dispatchEvent(l)}h.displayName="DismissableLayerBranch";var v=f,g=h},69515:(e,t,r)=>{"use strict";r.d(t,{Gt:()=>a,PP:()=>l,WG:()=>i,uv:()=>o});var n=r(19827);let{schedule:a,cancel:i,state:o,steps:l}=(0,r(58437).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},71337:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(95155);let a=(0,r(74466).F)([],{compoundVariants:[],defaultVariants:{},variants:{}}),i=({children:e,className:t,...r})=>(0,n.jsx)("div",{className:a({className:t}),...r,"data-ids":"CardContent",children:e});i.displayName="CardContent"},72107:(e,t,r)=>{"use strict";r.d(t,{o5:()=>s});var n=r(95155),a=r(12115);let i=(0,r(74466).F)([],{compoundVariants:[{className:["text-neutral-2","dark:text-neutral-6"],disableColorScheme:!1,variant:"body1"},{className:["sm:text-neutral-2","dark:sm:text-neutral-6"],disableColorScheme:!1,sm:"body1"},{className:["md:text-neutral-2","dark:md:text-neutral-6"],disableColorScheme:!1,md:"body1"},{className:["lg:text-neutral-2","dark:lg:text-neutral-6"],disableColorScheme:!1,lg:"body1"},{className:["xl:text-neutral-2","dark:xl:text-neutral-6"],disableColorScheme:!1,xl:"body1"},{className:["text-neutral-2","dark:text-neutral-6"],disableColorScheme:!1,variant:"body2"},{className:["sm:text-neutral-2","dark:sm:text-neutral-6"],disableColorScheme:!1,sm:"body2"},{className:["md:text-neutral-2","dark:md:text-neutral-6"],disableColorScheme:!1,md:"body2"},{className:["lg:text-neutral-2","dark:lg:text-neutral-6"],disableColorScheme:!1,lg:"body2"},{className:["xl:text-neutral-2","dark:xl:text-neutral-6"],disableColorScheme:!1,xl:"body2"},{className:["text-neutral-2","dark:text-neutral-6"],disableColorScheme:!1,variant:"body3"},{className:["sm:text-neutral-2","dark:sm:text-neutral-6"],disableColorScheme:!1,sm:"body3"},{className:["md:text-neutral-2","dark:md:text-neutral-6"],disableColorScheme:!1,md:"body3"},{className:["lg:text-neutral-2","dark:lg:text-neutral-6"],disableColorScheme:!1,lg:"body3"},{className:["xl:text-neutral-2","dark:xl:text-neutral-6"],disableColorScheme:!1,xl:"body3"},{className:["text-neutral-3","dark:text-neutral-6"],disableColorScheme:!1,variant:"caption1"},{className:["sm:text-neutral-3","dark:sm:text-neutral-6"],disableColorScheme:!1,sm:"caption1"},{className:["md:text-neutral-3","dark:md:text-neutral-6"],disableColorScheme:!1,md:"caption1"},{className:["lg:text-neutral-3","dark:lg:text-neutral-6"],disableColorScheme:!1,lg:"caption1"},{className:["xl:text-neutral-3","dark:xl:text-neutral-6"],disableColorScheme:!1,xl:"caption1"},{className:["text-neutral-3","dark:text-neutral-6"],disableColorScheme:!1,variant:"caption2"},{className:["sm:text-neutral-3","dark:sm:text-neutral-6"],disableColorScheme:!1,sm:"caption2"},{className:["md:text-neutral-3","dark:md:text-neutral-6"],disableColorScheme:!1,md:"caption2"},{className:["lg:text-neutral-3","dark:lg:text-neutral-6"],disableColorScheme:!1,lg:"caption2"},{className:["xl:text-neutral-3","dark:xl:text-neutral-6"],disableColorScheme:!1,xl:"caption2"},{className:["text-neutral-1","dark:text-neutral-8"],disableColorScheme:!1,variant:"h1"},{className:["sm:text-neutral-1","dark:sm:text-neutral-8"],disableColorScheme:!1,sm:"h1"},{className:["md:text-neutral-1","dark:md:text-neutral-8"],disableColorScheme:!1,md:"h1"},{className:["lg:text-neutral-1","dark:lg:text-neutral-8"],disableColorScheme:!1,lg:"h1"},{className:["xl:text-neutral-1","dark:xl:text-neutral-8"],disableColorScheme:!1,xl:"h1"},{className:["text-neutral-1","dark:text-neutral-8"],disableColorScheme:!1,variant:"h2"},{className:["sm:text-neutral-1","dark:sm:text-neutral-8"],disableColorScheme:!1,sm:"h2"},{className:["md:text-neutral-1","dark:md:text-neutral-8"],disableColorScheme:!1,md:"h2"},{className:["lg:text-neutral-1","dark:lg:text-neutral-8"],disableColorScheme:!1,lg:"h2"},{className:["xl:text-neutral-1","dark:xl:text-neutral-8"],disableColorScheme:!1,xl:"h2"},{className:["text-neutral-1","dark:text-neutral-8"],disableColorScheme:!1,variant:"h3"},{className:["sm:text-neutral-1","dark:sm:text-neutral-8"],disableColorScheme:!1,sm:"h3"},{className:["md:text-neutral-1","dark:md:text-neutral-8"],disableColorScheme:!1,md:"h3"},{className:["lg:text-neutral-1","dark:lg:text-neutral-8"],disableColorScheme:!1,lg:"h3"},{className:["xl:text-neutral-1","dark:xl:text-neutral-8"],disableColorScheme:!1,xl:"h3"},{className:["text-neutral-1","dark:text-neutral-8"],disableColorScheme:!1,variant:"h4"},{className:["sm:text-neutral-1","dark:sm:text-neutral-8"],disableColorScheme:!1,sm:"h4"},{className:["md:text-neutral-1","dark:md:text-neutral-8"],disableColorScheme:!1,md:"h4"},{className:["lg:text-neutral-1","dark:lg:text-neutral-8"],disableColorScheme:!1,lg:"h4"},{className:["xl:text-neutral-1","dark:xl:text-neutral-8"],disableColorScheme:!1,xl:"h4"},{className:["text-neutral-1","dark:text-neutral-8"],disableColorScheme:!1,variant:"h5"},{className:["sm:text-neutral-1","dark:sm:text-neutral-8"],disableColorScheme:!1,sm:"h5"},{className:["md:text-neutral-1","dark:md:text-neutral-8"],disableColorScheme:!1,md:"h5"},{className:["lg:text-neutral-1","dark:lg:text-neutral-8"],disableColorScheme:!1,lg:"h5"},{className:["xl:text-neutral-1","dark:xl:text-neutral-8"],disableColorScheme:!1,xl:"h5"},{className:["text-neutral-1","dark:text-neutral-8"],disableColorScheme:!1,variant:"h6"},{className:["sm:text-neutral-1","dark:sm:text-neutral-8"],disableColorScheme:!1,sm:"h6"},{className:["md:text-neutral-1","dark:md:text-neutral-8"],disableColorScheme:!1,md:"h6"},{className:["lg:text-neutral-1","dark:lg:text-neutral-8"],disableColorScheme:!1,lg:"h6"},{className:["xl:text-neutral-1","dark:xl:text-neutral-8"],disableColorScheme:!1,xl:"h6"},{className:["text-neutral-1","dark:text-neutral-8"],disableColorScheme:!1,variant:"hero"},{className:["sm:text-neutral-1","dark:sm:text-neutral-8"],disableColorScheme:!1,sm:"hero"},{className:["md:text-neutral-1","dark:md:text-neutral-8"],disableColorScheme:!1,md:"hero"},{className:["lg:text-neutral-1","dark:lg:text-neutral-8"],disableColorScheme:!1,lg:"hero"},{className:["xl:text-neutral-1","dark:xl:text-neutral-8"],disableColorScheme:!1,xl:"hero"},{className:["text-neutral-2","dark:text-neutral-7"],disableColorScheme:!1,variant:"subtitle1"},{className:["sm:text-neutral-2","dark:sm:text-neutral-7"],disableColorScheme:!1,sm:"subtitle1"},{className:["md:text-neutral-2","dark:md:text-neutral-7"],disableColorScheme:!1,md:"subtitle1"},{className:["lg:text-neutral-2","dark:lg:text-neutral-7"],disableColorScheme:!1,lg:"subtitle1"},{className:["xl:text-neutral-2","dark:xl:text-neutral-7"],disableColorScheme:!1,xl:"subtitle1"},{className:["text-neutral-2","dark:text-neutral-7"],disableColorScheme:!1,variant:"subtitle2"},{className:["sm:text-neutral-2","dark:sm:text-neutral-7"],disableColorScheme:!1,sm:"subtitle2"},{className:["md:text-neutral-2","dark:md:text-neutral-7"],disableColorScheme:!1,md:"subtitle2"},{className:["lg:text-neutral-2","dark:lg:text-neutral-7"],disableColorScheme:!1,lg:"subtitle2"},{className:["xl:text-neutral-2","dark:xl:text-neutral-7"],disableColorScheme:!1,xl:"subtitle2"}],defaultVariants:{align:"inherit",disableColorScheme:!1,gutterBottom:!1,noWrap:!1,variant:"body1"},variants:{align:{center:"text-center",inherit:"",justify:"text-justify",left:"text-left",right:"text-right"},disableColorScheme:{false:"",true:""},disableTransitionColors:{false:["transition-colors","motion-reduce:transition-none"],true:""},gutterBottom:{true:"mb-6"},maxLines:{1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3",4:"line-clamp-4",5:"line-clamp-5",6:"line-clamp-6"},noWrap:{true:["overflow-hidden","text-ellipsis","whitespace-nowrap","!text-nowrap"]},variant:{body1:"typography-body1",body2:"typography-body2",body3:"typography-body3",button1:"typography-button1",button2:"typography-button2",caption1:"typography-caption1",caption2:"typography-caption2",h1:"typography-h1",h2:"typography-h2",h3:"typography-h3",h4:"typography-h4",h5:"typography-h5",h6:"typography-h6",hero:"typography-hero",subtitle1:"typography-subtitle1",subtitle2:"typography-subtitle2",unset:""},sm:{body1:"sm:typography-body1",body2:"sm:typography-body2",body3:"sm:typography-body3",button1:"sm:typography-button1",button2:"sm:typography-button2",caption1:"sm:typography-caption1",caption2:"sm:typography-caption2",h1:"sm:typography-h1",h2:"sm:typography-h2",h3:"sm:typography-h3",h4:"sm:typography-h4",h5:"sm:typography-h5",h6:"sm:typography-h6",hero:"sm:typography-hero",subtitle1:"sm:typography-subtitle1",subtitle2:"sm:typography-subtitle2",unset:""},md:{body1:"md:typography-body1",body2:"md:typography-body2",body3:"md:typography-body3",button1:"md:typography-button1",button2:"md:typography-button2",caption1:"md:typography-caption1",caption2:"md:typography-caption2",h1:"md:typography-h1",h2:"md:typography-h2",h3:"md:typography-h3",h4:"md:typography-h4",h5:"md:typography-h5",h6:"md:typography-h6",hero:"md:typography-hero",subtitle1:"md:typography-subtitle1",subtitle2:"md:typography-subtitle2",unset:""},lg:{body1:"lg:typography-body1",body2:"lg:typography-body2",body3:"lg:typography-body3",button1:"lg:typography-button1",button2:"lg:typography-button2",caption1:"lg:typography-caption1",caption2:"lg:typography-caption2",h1:"lg:typography-h1",h2:"lg:typography-h2",h3:"lg:typography-h3",h4:"lg:typography-h4",h5:"lg:typography-h5",h6:"lg:typography-h6",hero:"lg:typography-hero",subtitle1:"lg:typography-subtitle1",subtitle2:"lg:typography-subtitle2",unset:""},xl:{body1:"xl:typography-body1",body2:"xl:typography-body2",body3:"xl:typography-body3",button1:"xl:typography-button1",button2:"xl:typography-button2",caption1:"xl:typography-caption1",caption2:"xl:typography-caption2",h1:"xl:typography-h1",h2:"xl:typography-h2",h3:"xl:typography-h3",h4:"xl:typography-h4",h5:"xl:typography-h5",h6:"xl:typography-h6",hero:"xl:typography-hero",subtitle1:"xl:typography-subtitle1",subtitle2:"xl:typography-subtitle2",unset:""}}}),o=a.forwardRef,l={hero:"p",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",subtitle1:"p",subtitle2:"p",button1:"p",button2:"p",caption1:"p",caption2:"p",inherit:"p",unset:"p"},s=o(({align:e="inherit",as:t,children:r,className:a,disableColorScheme:o=!1,disableTransitionColors:s=!1,gutterBottom:u=!1,lg:c,maxLines:d,md:f,noWrap:h=!1,sm:p,variant:m="body1",xl:v,...g},y)=>{let x=t||l[m]||"span";return(0,n.jsx)(x,{className:i({align:e,className:a,disableColorScheme:o,disableTransitionColors:s,gutterBottom:u,lg:c,maxLines:d,md:f,noWrap:h,sm:p,variant:m,xl:v}),"data-ids":"Typography",...g,ref:y,children:r})});s.displayName="Typography"},72142:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(12115);let a=()=>{let[e,t]=(0,n.useState)("up"),r=(0,n.useRef)(!1),a=(0,n.useRef)(0);return(0,n.useEffect)(()=>{a.current=window.scrollY;let e=()=>{let{scrollY:e}=window;Math.abs(e-a.current)>=0&&(t(e>a.current?"down":"up"),a.current=e>0?e:0),r.current=!1},n=()=>{r.current||(r.current=!0,window.requestAnimationFrame(e))};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[e]),e}},72640:(e,t,r)=>{"use strict";r.d(t,{Pagination:()=>f});var n=r(95155),a=r(75356),i=r.n(a),o=r(5036),l=r(1773),s=r.n(l),u=r(74466);let c=(0,u.F)(["[&>ul]:flex","[&>ul]:gap-2","[&>ul]:justify-center","[&>ul]:typography-subtitle2","@container/pagination","dark:text-neutral-5","select-none","text-neutral-4","w-full"],{defaultVariants:{disabled:!1},variants:{disabled:{false:[],true:"pointer-events-none"}}}),d=(0,u.F)(["flex","items-center","justify-center","leading-[normal]","rounded-full","shrink-0","size-8","transition-colors","outline-hidden"],{defaultVariants:{disabled:!1,selected:!1},variants:{disabled:{false:[],true:["dark:text-neutral-4","text-neutral-5"]},selected:{false:["dark:focus:bg-neutral-3","dark:hover:bg-neutral-3","focus:bg-neutral-7","hover:bg-neutral-7"],true:["bg-neutral-6","dark:bg-neutral-3","dark:focus:bg-neutral-4","dark:hover:bg-neutral-4","dark:text-neutral-6","focus:bg-neutral-5","hover:bg-neutral-5","text-neutral-2"]}}}),f=e=>{let{boundaryCount:t=1,className:r,disabled:a=!1,hideNextButton:l=!1,hidePrevButton:f=!1,linkBase:h,linkElement:p="a",linkParameter:m="page",onChange:v,page:g=1,siblingCount:y=1,totalPages:x=1,...b}=e,w=(e,t)=>Array.from({length:t-e+1},(t,r)=>e+r),k=w(1,Math.min(t,x)),S=w(Math.max(x-t+1,t+1),x),C=Math.max(Math.min(g-y,x-t-2*y-1),t+2),E=Math.min(Math.max(g+y,t+2*y+2),x-t-1),j=[...f?[]:["previous"],...k,...C>t+2?["ellipsis"]:t+1t?[x-t]:[],...S,...l?[]:["next"]],T=e=>"number"==typeof e?"Go to page ".concat(e):"next"===e||"previous"===e?"Go to ".concat(e," page"):void 0,A=(e,t)=>{if("number"!=typeof t){let r="next"===t?1:-1;return null==v?void 0:v(e,g+r)}null==v||v(e,t)};return(0,n.jsx)("nav",{"aria-disabled":a,"aria-label":"pagination navigation",className:c({className:r,disabled:a}),...b,"data-ids":"Pagination",children:(0,n.jsx)("ul",{children:j.map((e,t)=>{let r=(e=>{if(a)return!0;if("number"!=typeof e)if("ellipsis"===e)return!1;else if("next"===e)return g>=x;else return g<=1})(e),l="number"==typeof e&&e===g,{className:c,href:f,key:v,...y}={"aria-current":!!l||void 0,children:(e=>{if("number"==typeof e)return e;let t={ellipsis:o.fA1,next:o.mI8,previous:o.LyG};return(0,n.jsx)(s(),{path:t[e],size:1})})(e),className:d({disabled:r,selected:l}),href:(e=>{let{pathname:t,query:r}=i().parse(h||"/",!0);if("number"==typeof e)r[m]=e.toString();else{let t="next"===e?1:-1;r[m]=(g+t).toString()}return i().format({pathname:t,query:r})})(e),key:"".concat(e,"-").concat(t)};return r?(0,n.jsx)("li",{className:c,...y},v):"ellipsis"===e?(0,n.jsx)("li",{className:(0,u.cx)(c,"pointer-events-none"),children:(0,n.jsx)("span",{"aria-hidden":"true",children:y.children})},v):h?(0,n.jsx)("li",{children:(0,n.jsx)(p,{"aria-label":T(e),className:c,href:f,onClick:t=>A(t,e),...y})},v):(0,n.jsx)("li",{children:(0,n.jsx)("button",{"aria-label":T(e),className:c,onClick:t=>A(t,e),...y})},v)})})})};f.displayName="Pagination"},72948:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},73595:(e,t,r)=>{"use strict";r.d(t,{s:()=>o,t:()=>i});var n=r(12115);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{"use strict";r.d(t,{Dialog:()=>f});var n=r(95155),a=r(12115),i=r(5036),o=r(1773),l=r.n(o),s=r(6168),u=r(58438),c=r(19958);let d=(0,r(74466).F)(["bottom-0","gap-4","grid","left-0","lg:w-1/2","max-w-screen-md","py-6","right-0","rounded-t-3xl","sm:-translate-x-1/2","sm:-translate-y-1/2","sm:bottom-auto","sm:gap-6","sm:left-1/2","sm:right-auto","sm:rounded-lg","sm:shadow-lg","sm:top-1/2","sm:w-3/4","w-full"],{compoundVariants:[],defaultVariants:{disableAnimation:!1,theme:"auto"},variants:{disableAnimation:{false:["data-[state=closed]:animate-out","data-[state=closed]:slide-out-to-bottom","data-[state=open]:animate-in","data-[state=open]:slide-in-from-bottom","duration-1000","sm:data-[state=closed]:[--tw-exit-translate-x:0]","sm:data-[state=closed]:[--tw-exit-translate-y:0]","sm:data-[state=closed]:fade-out-0","sm:data-[state=closed]:zoom-out-95","sm:data-[state=open]:[--tw-enter-translate-x:0]","sm:data-[state=open]:[--tw-enter-translate-y:0]","sm:data-[state=open]:fade-in-0","sm:data-[state=open]:zoom-in-95","sm:duration-500"],true:[]},theme:{auto:["bg-neutral-8","dark:bg-neutral-3","dark:scheme-dark","dark:scrollbar-dark"],dark:["dark","bg-neutral-3","scheme-dark","scollbar-dark"],light:["bg-neutral-8"]}}}),f=e=>{let{children:t,className:r,closeOnActionOnly:o=!1,disableAnimation:f=!1,onClose:h=()=>{},showCloseButton:p=!0,theme:m="auto",...v}=e,[g,y]=(0,a.useState)(),[x,b]=(0,a.useState)();return(0,n.jsx)(c.M.Provider,{value:{setDescribedBy:b,setLabelledBy:y,showCloseButton:p},children:(0,n.jsxs)(u.Modal,{"aria-describedby":x,"aria-label":g?void 0:o?"Alert":"Dialog","aria-labelledby":g,className:d({className:r,disableAnimation:f,theme:m}),onClose:(e,t)=>{o&&["backdropClick","escapeKeyDown"].includes(t)||null==h||h(e)},...v,"data-ids":"Dialog",role:o?"alertdialog":void 0,children:[p&&(0,n.jsx)(s.K,{"aria-label":"Close",className:"text-neutral-1 dark:text-neutral-8 absolute top-4 right-3",colorScheme:"transparent",onClick:h,ripple:!1,rounded:!0,children:(0,n.jsx)(l(),{className:"size-[24px]",path:i.hyP})}),t]})})};f.displayName="Dialog"},74241:(e,t,r)=>{"use strict";r.d(t,{ToastProvider:()=>ea});var n=r(95155),a=r(5036),i=r(1773),o=r.n(i),l=r(12115),s=r(47650),u=r(65749),c=r(73595),d=r(66896),f=r(66801),h=r(68991),p=r(52090),m=r(49619),v=r(2279),g=r(62067),y=r(46135),x=r(64730),b=r(50190),w="ToastProvider",[k,S,C]=(0,d.N)("Toast"),[E]=(0,f.A)("Toast",[C]),[j,T]=E(w),A=e=>{let{__scopeToast:t,label:r="Notification",duration:a=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:s}=e,[u,c]=l.useState(null),[d,f]=l.useState(0),h=l.useRef(!1),p=l.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(w,"`. Expected non-empty `string`.")),(0,n.jsx)(k.Provider,{scope:t,children:(0,n.jsx)(j,{scope:t,label:r,duration:a,swipeDirection:i,swipeThreshold:o,toastCount:d,viewport:u,onViewportChange:c,onToastAdd:l.useCallback(()=>f(e=>e+1),[]),onToastRemove:l.useCallback(()=>f(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:s})})};A.displayName=w;var R="ToastViewport",P=["F8"],N="toast.viewportPause",M="toast.viewportResume",O=l.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:a=P,label:i="Notifications ({hotkey})",...o}=e,s=T(R,r),u=S(r),d=l.useRef(null),f=l.useRef(null),p=l.useRef(null),m=l.useRef(null),g=(0,c.s)(t,m,s.onViewportChange),y=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;l.useEffect(()=>{let e=e=>{var t;0!==a.length&&a.every(t=>e[t]||e.code===t)&&(null==(t=m.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),l.useEffect(()=>{let e=d.current,t=m.current;if(x&&e&&t){let r=()=>{if(!s.isClosePausedRef.current){let e=new CustomEvent(N);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},n=()=>{if(s.isClosePausedRef.current){let e=new CustomEvent(M);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},a=t=>{e.contains(t.relatedTarget)||n()},i=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",a),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",i),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",a),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[x,s.isClosePausedRef]);let b=l.useCallback(e=>{let{tabbingDirection:t}=e,r=u().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[u]);return l.useEffect(()=>{let e=m.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,a,i;let r=document.activeElement,o=t.shiftKey;if(t.target===e&&o){null==(n=f.current)||n.focus();return}let l=b({tabbingDirection:o?"backwards":"forwards"}),s=l.findIndex(e=>e===r);X(l.slice(s+1))?t.preventDefault():o?null==(a=f.current)||a.focus():null==(i=p.current)||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[u,b]),(0,n.jsxs)(h.lg,{ref:d,role:"region","aria-label":i.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&(0,n.jsx)(L,{ref:f,onFocusFromOutsideViewport:()=>{X(b({tabbingDirection:"forwards"}))}}),(0,n.jsx)(k.Slot,{scope:r,children:(0,n.jsx)(v.s.ol,{tabIndex:-1,...o,ref:g})}),x&&(0,n.jsx)(L,{ref:p,onFocusFromOutsideViewport:()=>{X(b({tabbingDirection:"backwards"}))}})]})});O.displayName=R;var D="ToastFocusProxy",L=l.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:a,...i}=e,o=T(D,r);return(0,n.jsx)(b.s6,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null==(t=o.viewport)?void 0:t.contains(r))||a()}})});L.displayName=D;var I="Toast",V=l.forwardRef((e,t)=>{let{forceMount:r,open:a,defaultOpen:i,onOpenChange:o,...l}=e,[s,c]=(0,y.i)({prop:a,defaultProp:null==i||i,onChange:o,caller:I});return(0,n.jsx)(m.C,{present:r||s,children:(0,n.jsx)(z,{open:s,...l,ref:t,onClose:()=>c(!1),onPause:(0,g.c)(e.onPause),onResume:(0,g.c)(e.onResume),onSwipeStart:(0,u.m)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,u.m)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))}),onSwipeCancel:(0,u.m)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,u.m)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),c(!1)})})})});V.displayName=I;var[F,_]=E(I,{onClose(){}}),z=l.forwardRef((e,t)=>{let{__scopeToast:r,type:a="foreground",duration:i,open:o,onClose:d,onEscapeKeyDown:f,onPause:p,onResume:m,onSwipeStart:y,onSwipeMove:x,onSwipeCancel:b,onSwipeEnd:w,...S}=e,C=T(I,r),[E,j]=l.useState(null),A=(0,c.s)(t,e=>j(e)),R=l.useRef(null),P=l.useRef(null),O=i||C.duration,D=l.useRef(0),L=l.useRef(O),V=l.useRef(0),{onToastAdd:_,onToastRemove:z}=C,H=(0,g.c)(()=>{var e;(null==E?void 0:E.contains(document.activeElement))&&(null==(e=C.viewport)||e.focus()),d()}),U=l.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(V.current),D.current=new Date().getTime(),V.current=window.setTimeout(H,e))},[H]);l.useEffect(()=>{let e=C.viewport;if(e){let t=()=>{U(L.current),null==m||m()},r=()=>{let e=new Date().getTime()-D.current;L.current=L.current-e,window.clearTimeout(V.current),null==p||p()};return e.addEventListener(N,r),e.addEventListener(M,t),()=>{e.removeEventListener(N,r),e.removeEventListener(M,t)}}},[C.viewport,O,p,m,U]),l.useEffect(()=>{o&&!C.isClosePausedRef.current&&U(O)},[o,O,C.isClosePausedRef,U]),l.useEffect(()=>(_(),()=>z()),[_,z]);let W=l.useMemo(()=>E?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{var n;if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),(n=t).nodeType===n.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,a=""===t.dataset.radixToastAnnounceExclude;if(!n)if(a){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(E):null,[E]);return C.viewport?(0,n.jsxs)(n.Fragment,{children:[W&&(0,n.jsx)(B,{__scopeToast:r,role:"status","aria-live":"foreground"===a?"assertive":"polite",children:W}),(0,n.jsx)(F,{scope:r,onClose:H,children:s.createPortal((0,n.jsx)(k.ItemSlot,{scope:r,children:(0,n.jsx)(h.bL,{asChild:!0,onEscapeKeyDown:(0,u.m)(f,()=>{C.isFocusedToastEscapeKeyDownRef.current||H(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,n.jsx)(v.s.li,{tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":C.swipeDirection,...S,ref:A,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,u.m)(e.onKeyDown,e=>{"Escape"===e.key&&(null==f||f(e.nativeEvent),e.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:(0,u.m)(e.onPointerDown,e=>{0===e.button&&(R.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,u.m)(e.onPointerMove,e=>{if(!R.current)return;let t=e.clientX-R.current.x,r=e.clientY-R.current.y,n=!!P.current,a=["left","right"].includes(C.swipeDirection),i=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,o=a?i(0,t):0,l=a?0:i(0,r),s="touch"===e.pointerType?10:2,u={x:o,y:l},c={originalEvent:e,delta:u};n?(P.current=u,G("toast.swipeMove",x,c,{discrete:!1})):Y(u,C.swipeDirection,s)?(P.current=u,G("toast.swipeStart",y,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>s||Math.abs(r)>s)&&(R.current=null)}),onPointerUp:(0,u.m)(e.onPointerUp,e=>{let t=P.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),P.current=null,R.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};Y(t,C.swipeDirection,C.swipeThreshold)?G("toast.swipeEnd",w,n,{discrete:!0}):G("toast.swipeCancel",b,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),B=e=>{let{__scopeToast:t,children:r,...a}=e,i=T(I,t),[o,s]=l.useState(!1),[u,c]=l.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,g.c)(e);(0,x.N)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>s(!0)),l.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),u?null:(0,n.jsx)(p.Z,{asChild:!0,children:(0,n.jsx)(b.s6,{...a,children:o&&(0,n.jsxs)(n.Fragment,{children:[i.label," ",r]})})})},H=l.forwardRef((e,t)=>{let{__scopeToast:r,...a}=e;return(0,n.jsx)(v.s.div,{...a,ref:t})});H.displayName="ToastTitle";var U=l.forwardRef((e,t)=>{let{__scopeToast:r,...a}=e;return(0,n.jsx)(v.s.div,{...a,ref:t})});U.displayName="ToastDescription";var W="ToastAction";l.forwardRef((e,t)=>{let{altText:r,...a}=e;return r.trim()?(0,n.jsx)($,{altText:r,asChild:!0,children:(0,n.jsx)(q,{...a,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(W,"`. Expected non-empty `string`.")),null)}).displayName=W;var K="ToastClose",q=l.forwardRef((e,t)=>{let{__scopeToast:r,...a}=e,i=_(K,r);return(0,n.jsx)($,{asChild:!0,children:(0,n.jsx)(v.s.button,{type:"button",...a,ref:t,onClick:(0,u.m)(e.onClick,i.onClose)})})});q.displayName=K;var $=l.forwardRef((e,t)=>{let{__scopeToast:r,altText:a,...i}=e;return(0,n.jsx)(v.s.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...i,ref:t})});function G(e,t,r,n){let{discrete:a}=n,i=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),a?(0,v.h)(i,o):i.dispatchEvent(o)}var Y=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),a=Math.abs(e.y),i=n>a;return"left"===t||"right"===t?i&&n>r:!i&&a>r};function X(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var Z=r(6168),Q=r(72107),J=r(66714),ee=r.n(J),et=r(68833);let er=(0,r(74466).F)(["data-[state=closed]:animate-out","data-[state=closed]:fade-out-80","data-[state=open]:animate-in","data-[swipe=cancel]:translate-x-0","data-[swipe=end]:animate-out","data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)]","data-[swipe=move]:transition-none","data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)]","fixed","flex","items-center","justify-between","m-6","overflow-hidden","p-6","pointer-events-auto","rounded-lg","shadow-[0px_4px_20px_0px_rgba(0,0,0,0.06)]","sm:w-[520px]","transition-all","w-full"],{compoundVariants:[{class:["bg-neutral-3","dark:bg-neutral-8","dark:text-neutral-1","text-neutral-8"],severity:null}],defaultVariants:{horizontal:"right",severity:null,vertical:"bottom"},variants:{horizontal:{left:["left-0","data-[state=closed]:slide-out-to-right-full","data-[state=closed]:sm:slide-out-to-left-full"],right:["right-0","data-[state=closed]:slide-out-to-right-full"]},severity:{error:["bg-error-2","text-neutral-8"],info:["bg-info-2","text-neutral-8"],success:["bg-success-2","text-neutral-8"],warning:["bg-warning-2","text-neutral-8"]},vertical:{bottom:["bottom-0","data-[state=open]:slide-in-from-bottom-full"],top:["top-0","data-[state=open]:slide-in-from-top-full"]}}});var en=r(20102);let ea=()=>{let{toasts:e}=(0,en.useToast)(),t=!(0,et.default)("sm");return e.map(e=>{let{className:r,description:i,duration:l=5e3,horizontal:s="right",id:u,severity:c,startAdornment:d,title:f,type:h="foreground",vertical:p="bottom",...m}=e;return(0,n.jsxs)(A,{duration:l,swipeDirection:t?"right":s,children:[(0,n.jsxs)(V,{className:er({className:r,horizontal:s,severity:c,vertical:p}),type:h,...m,"data-ids":"Toast","data-severity":c,role:void 0,children:[(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[d&&(0,n.jsx)("div",{className:"min-w-12",children:d}),(0,n.jsxs)("div",{className:"flex flex-col gap-2 pr-6",children:[f&&(0,n.jsx)(H,{children:(0,n.jsx)(ee(),{condition:"string"==typeof f,wrapper:e=>(0,n.jsx)(Q.o5,{disableColorScheme:!0,variant:"h6",children:e}),children:f})}),i&&(0,n.jsx)(U,{children:(0,n.jsx)(ee(),{condition:"string"==typeof i,wrapper:e=>(0,n.jsx)(Q.o5,{disableColorScheme:!0,variant:"body3",children:e}),children:i})})]})]}),(0,n.jsx)(q,{asChild:!0,children:(0,n.jsx)(Z.K,{"aria-label":"Close",className:"absolute top-4 right-4",colorScheme:"transparent",compact:!0,ripple:!1,rounded:!0,children:(0,n.jsx)(o(),{path:a.hyP,size:1})})})]}),(0,n.jsx)(O,{className:"z-top pointer-events-none fixed inset-0 h-full w-full"})]},u)})};ea.displayName="ToastProvider"},74261:(e,t,r)=>{"use strict";let n;r.d(t,{k:()=>l});var a=r(23387),i=r(69515);function o(){n=void 0}let l={now:()=>(void 0===n&&l.set(i.uv.isProcessing||a.W.useManualTiming?i.uv.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(o)}}},74466:(e,t,r)=>{"use strict";r.d(t,{F:()=>o,cx:()=>i});var n=r(52596);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=n.$,o=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:o,defaultVariants:l}=t,s=Object.keys(o).map(e=>{let t=null==r?void 0:r[e],n=null==l?void 0:l[e];if(null===t)return null;let i=a(t)||a(n);return o[e][i]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,s,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...u}[t]):({...l,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},74539:(e,t,r)=>{"use strict";r.d(t,{B:()=>s});var n,a=r(12115),i=r(64730),o=(n||(n=r.t(a,2)))[" useId ".trim().toString()]||(()=>void 0),l=0;function s(e){let[t,r]=a.useState(o());return(0,i.N)(()=>{r(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},75109:(e,t,r)=>{"use strict";r.d(t,{TextField:()=>s});var n=r(95155),a=r(12115),i=r(74466),o=r(90794);let l=(0,i.F)(["[&>input]:bg-transparent","[&>input]:placeholder:text-neutral-5","[&>textarea]:bg-transparent","[&>textarea]:placeholder:text-neutral-5","bg-neutral-8","border","dark:bg-neutral-2","flex","focus-within:dark:ring-offset-neutral-1","focus-within:outline-hidden","focus-within:ring-2","focus-within:ring-neutral-5","focus-within:ring-offset-2","focus-within:ring-offset-neutral-8","font-body","items-center","rounded-lg","text-base"],{compoundVariants:[{class:["cursor-text","text-neutral-3","dark:text-neutral-6"],disabled:!1,error:!1}],defaultVariants:{disabled:!1,error:!1},variants:{compact:{false:["px-4","py-[7px]","min-h-10"],true:["px-3","py-[3px]","min-h-8"]},disabled:{true:["[&>input]:cursor-not-allowed","cursor-not-allowed","opacity-50"]},error:{false:["bg-neutral-8","border-neutral-5","dark:bg-neutral-2","dark:border-neutral-4"],true:["border-error-2","cursor-text","dark:border-error-3"]}}}),s=(0,a.forwardRef)((e,t)=>{let{as:r="input",autoFocus:s=!1,className:u,compact:c=!1,disabled:d=!1,endAdornment:f,error:h=!1,id:p,label:m,maxRows:v,minRows:g=1,name:y,onBlur:x,onChange:b,onFocus:w,parentRef:k,required:S=!1,startAdornment:C,...E}=e,j=p||(0,a.useId)(),T=(0,a.useRef)(null),A=(0,a.useRef)(0),R=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,()=>T.current,[]),(0,a.useLayoutEffect)(()=>{if(s){var e;null==(e=T.current)||e.focus()}T.current&&(A.current=T.current.offsetHeight/g,v&&(R.current=A.current*v),P())},[]);let P=()=>{if("textarea"===r&&T.current){T.current.style.height="inherit";let{scrollHeight:e}=T.current;R.current?T.current.style.height="".concat(Math.min(e,R.current+1),"px"):T.current.style.height="".concat(e,"px")}};return(0,n.jsxs)("div",{className:(0,i.cx)("group",u),"data-ids":"TextField",onBlur:x,onClick:()=>{if(document.activeElement!==T.current){var e;null==(e=T.current)||e.focus()}},onFocus:w,ref:k,tabIndex:-1,children:[m&&(0,n.jsxs)(o.l,{className:"mb-3 block",disabled:d,error:h,htmlFor:j,children:[m,S&&(0,n.jsx)("span",{className:"text-error-2 dark:text-error-3 ml-1",children:"*"})]}),(0,n.jsxs)("div",{className:(0,i.cx)(l({compact:c,disabled:d,error:h}),{"max-h-10":"input"===r&&!c,"max-h-2":"input"===r&&c}),children:[C&&(0,n.jsx)("span",{className:(0,i.cx)("-ml-1 leading-[0]",{"pr-1":c,"pr-2":!c}),children:C}),(0,n.jsx)(r,{"aria-invalid":h,className:"scrollbar-dark w-full resize-none text-[1rem] leading-4 placeholder-shown:text-ellipsis focus:outline-hidden",disabled:d,id:j,name:y,onChange:e=>{P(),null==b||b(e)},ref:T,required:S,rows:"textarea"===r?g:void 0,...E}),f&&(0,n.jsx)("span",{className:(0,i.cx)("-mr-1 leading-[0]",{"pl-1":c,"pl-2":!c}),children:f})]})]})});s.displayName="TextField"},75356:(e,t,r)=>{!function(){var t={452:function(e){"use strict";e.exports=r(19110)}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}},o=!0;try{t[e](i,i.exports,a),o=!1}finally{o&&delete n[e]}return i.exports}a.ab="//";var i={};!function(){var e,t=(e=a(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=g(e));var n,a,i,o,l,s,u,c,d,f=(a=(n=e).auth,i=n.hostname,o=n.protocol||"",l=n.pathname||"",s=n.hash||"",u=n.query||"",c=!1,a=a?encodeURIComponent(a).replace(/%3A/i,":")+"@":"",n.host?c=a+n.host:i&&(c=a+(~i.indexOf(":")?"["+i+"]":i),n.port&&(c+=":"+n.port)),u&&"object"==typeof u&&(u=t.encode(u)),d=n.search||u&&"?"+u||"",o&&":"!==o.substr(-1)&&(o+=":"),n.slashes||(!o||r.test(o))&&!1!==c?(c="//"+(c||""),l&&"/"!==l[0]&&(l="/"+l)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),d&&"?"!==d[0]&&(d="?"+d),{protocol:o,host:c,pathname:l=l.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:s});return""+f.protocol+f.host+f.pathname+f.search+f.hash}var o="http://",l=o+"w.w",s=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function c(e,t){var r="string"==typeof e?g(e):e;e="object"==typeof e?n(e):e;var a=g(t),i="";r.protocol&&!r.slashes&&(i=r.protocol,e=e.replace(r.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&a.protocol&&(i="",a.slashes||(i=a.protocol,t=t.replace(a.protocol,"")));var c=e.match(s);c&&!a.protocol&&(e=e.substr((i=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var d=new URL(e,l+"/"),f=new URL(t,d).toString().replace(l,""),h=a.protocol||r.protocol;return h+=r.slashes||a.slashes?"//":"",!i&&h?f=f.replace(o,h):i&&(f=f.replace(o,"")),u.test(f)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==f.slice(-1)||(f=f.slice(0,-1)),i&&(f=i+("/"===f[0]?f.substr(1):f)),f}function d(){}d.prototype.parse=g,d.prototype.format=n,d.prototype.resolve=c,d.prototype.resolveObject=c;var f=/^https?|ftp|gopher|file/,h=/^(.*?)([#?].*)/,p=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function g(e,r,a){if(void 0===r&&(r=!1),void 0===a&&(a=!1),e&&"object"==typeof e&&e instanceof d)return e;var i=(e=e.trim()).match(h);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var o=!/(^javascript)/.test(e)&&e.match(p),s=m.test(e),u="";o&&(f.test(o[1])||(u=o[1].toLowerCase(),e=""+o[2]+o[3]),o[2]||(s=!1,f.test(o[1])?(u=o[1],e=""+o[3]):e="//"+o[3]),3!==o[2].length&&1!==o[2].length||(u=o[1],e="/"+o[3]));var c,g=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),y=g&&g[1],x=new d,b="",w="";try{c=new URL(e)}catch(t){b=t,u||a||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{c=new URL(e,l)}catch(e){return x.protocol=u,x.href=u,x}}x.slashes=s&&!w,x.host="w.w"===c.host?"":c.host,x.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),x.protocol=b?u||null:c.protocol,x.search=c.search.replace(/\\/g,"%5C"),x.hash=c.hash.replace(/\\/g,"%5C");var k=e.split("#");!x.search&&~k[0].indexOf("?")&&(x.search="?"),x.hash||""!==k[1]||(x.hash="#"),x.query=r?t.decode(c.search.substr(1)):x.search.substr(1),x.pathname=w+(o?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===x.protocol&&"blank"===x.pathname&&(x.protocol="",x.pathname=""),b&&"/"!==e[0]&&(x.pathname=x.pathname.substr(1)),u&&!f.test(u)&&"/"!==e.slice(-1)&&"/"===x.pathname&&(x.pathname=""),x.path=x.pathname+x.search,x.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),x.port=c.port,y&&!x.host.endsWith(y)&&(x.host+=y,x.port=y.slice(1)),x.href=w?""+x.pathname+x.search+x.hash:n(x);var S=/^(file)/.test(x.href)?["host","hostname"]:[];return Object.keys(x).forEach(function(e){~S.indexOf(e)||(x[e]=x[e]||null)}),x}i.parse=g,i.format=n,i.resolve=c,i.resolveObject=function(e,t){return g(c(e,t))},i.Url=d}(),e.exports=i}()},75626:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(56668);class a{constructor(){this.subscriptions=[]}add(e){return(0,n.Kq)(this.subscriptions,e),()=>(0,n.Ai)(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let a=0;a{"use strict";r.d(t,{h:()=>l});var n,a=r(12115),i=["title","titleId"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";r.d(t,{AccordionHeader:()=>c});var n=r(95155),a=r(5036),i=r(1773),o=r.n(i),l=r(59576),s=r(72107);let u=(0,r(74466).F)(["flex","flex-1","items-center","justify-between","py-3","[&[data-state=open]>svg]:rotate-180"],{compoundVariants:[],defaultVariants:{},variants:{}}),c=e=>{let{children:t,className:r,hideIcon:i=!1,icon:c=a.W5x,typographyProps:d,...f}=e;return(0,n.jsx)(l.Y9,{asChild:!0,className:"flex","data-ids":"AccordionHeader",children:(0,n.jsx)(s.o5,{as:"h3",variant:"button1",...d,children:(0,n.jsxs)(l.l9,{className:u({className:r}),...f,children:[t,!i&&(0,n.jsx)(o(),{className:"h-4 w-4 shrink-0 transition-transform duration-200",path:c,size:1})]})})})};c.displayName="AccordionHeader"},77046:(e,t,r)=>{"use strict";r.d(t,{u:()=>i,w:()=>a});var n=r(12115);let a=(0,n.createContext)(null),i=()=>{let e=(0,n.useContext)(a);if(!e)throw Error("useTabs must be used within a element");return e}},77280:(e,t,r)=>{"use strict";r.d(t,{D:()=>s,T:()=>o});var n=r(12115),a=r(73595),i=r(95155);function o(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var o;let e,l,s=(o=r,(l=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(l=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,a.t)(t,s):s),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:a,...o}=e,l=n.Children.toArray(a),s=l.find(u);if(s){let e=s.props.children,a=l.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,a):null})}return(0,i.jsx)(t,{...o,ref:r,children:a})});return r.displayName=`${e}.Slot`,r}var l=Symbol("radix.slottable");function s(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=l,t}function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},78090:(e,t,r)=>{"use strict";r.d(t,{SelectHeading:()=>l});var n=r(95155),a=r(2668),i=r(48451),o=r(72107);let l=e=>{let{children:t,className:r,truncate:l=!1,typographyVariant:s="caption2",...u}=e;return(0,n.jsx)(a.JU,{className:(0,i.y)({className:r}),...u,"data-ids":"SelectHeading",children:(0,n.jsx)(o.o5,{disableColorScheme:!0,maxLines:l?1:void 0,variant:s,children:t})})};l.displayName="SelectHeading"},78606:(e,t,r)=>{"use strict";r.d(t,{j:()=>a,p:()=>o});let n=e=>t=>"string"==typeof t&&t.startsWith(e),a=n("--"),i=n("var(--"),o=e=>!!i(e)&&l.test(e.split("/*")[0].trim()),l=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},78699:(e,t,r)=>{"use strict";r.d(t,{C1:()=>F,bL:()=>I,q7:()=>V});var n=r(12115),a=r(65749),i=r(73595),o=r(66801),l=r(2279),s=r(62824),u=r(46135),c=r(98303),d=r(83793),f=r(21629),h=r(49619),p=r(95155),m="Radio",[v,g]=(0,o.A)(m),[y,x]=v(m),b=n.forwardRef((e,t)=>{let{__scopeRadio:r,name:o,checked:s=!1,required:u,disabled:c,value:d="on",onCheck:f,form:h,...m}=e,[v,g]=n.useState(null),x=(0,i.s)(t,e=>g(e)),b=n.useRef(!1),w=!v||h||!!v.closest("form");return(0,p.jsxs)(y,{scope:r,checked:s,disabled:c,children:[(0,p.jsx)(l.s.button,{type:"button",role:"radio","aria-checked":s,"data-state":C(s),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:x,onClick:(0,a.m)(e.onClick,e=>{s||null==f||f(),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),w&&(0,p.jsx)(S,{control:v,bubbles:!b.current,name:o,value:d,checked:s,required:u,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});b.displayName=m;var w="RadioIndicator",k=n.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...a}=e,i=x(w,r);return(0,p.jsx)(h.C,{present:n||i.checked,children:(0,p.jsx)(l.s.span,{"data-state":C(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t})})});k.displayName=w;var S=n.forwardRef((e,t)=>{let{__scopeRadio:r,control:a,checked:o,bubbles:s=!0,...u}=e,c=n.useRef(null),h=(0,i.s)(c,t),m=(0,f.Z)(o),v=(0,d.X)(a);return n.useEffect(()=>{let e=c.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(m!==o&&t){let r=new Event("click",{bubbles:s});t.call(e,o),e.dispatchEvent(r)}},[m,o,s]),(0,p.jsx)(l.s.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...u,tabIndex:-1,ref:h,style:{...u.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function C(e){return e?"checked":"unchecked"}S.displayName="RadioBubbleInput";var E=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],j="RadioGroup",[T]=(0,o.A)(j,[s.RG,g]),A=(0,s.RG)(),R=g(),[P,N]=T(j),M=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:n,defaultValue:a,value:i,required:o=!1,disabled:d=!1,orientation:f,dir:h,loop:m=!0,onValueChange:v,...g}=e,y=A(r),x=(0,c.j)(h),[b,w]=(0,u.i)({prop:i,defaultProp:null!=a?a:null,onChange:v,caller:j});return(0,p.jsx)(P,{scope:r,name:n,required:o,disabled:d,value:b,onValueChange:w,children:(0,p.jsx)(s.bL,{asChild:!0,...y,orientation:f,dir:x,loop:m,children:(0,p.jsx)(l.s.div,{role:"radiogroup","aria-required":o,"aria-orientation":f,"data-disabled":d?"":void 0,dir:x,...g,ref:t})})})});M.displayName=j;var O="RadioGroupItem",D=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:o,...l}=e,u=N(O,r),c=u.disabled||o,d=A(r),f=R(r),h=n.useRef(null),m=(0,i.s)(t,h),v=u.value===l.value,g=n.useRef(!1);return n.useEffect(()=>{let e=e=>{E.includes(e.key)&&(g.current=!0)},t=()=>g.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,p.jsx)(s.q7,{asChild:!0,...d,focusable:!c,active:v,children:(0,p.jsx)(b,{disabled:c,required:u.required,checked:v,...f,...l,name:u.name,ref:m,onCheck:()=>u.onValueChange(l.value),onKeyDown:(0,a.m)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,a.m)(l.onFocus,()=>{var e;g.current&&(null==(e=h.current)||e.click())})})})});D.displayName=O;var L=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,a=R(r);return(0,p.jsx)(k,{...a,...n,ref:t})});L.displayName="RadioGroupIndicator";var I=M,V=D,F=L},79399:(e,t,r)=>{"use strict";var n=r(72948);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return r.PropTypes=r,r}},80261:(e,t,r)=>{"use strict";r.d(t,{Checkbox:()=>H});var n=r(95155),a=r(12115),i=r(5036),o=r(1773),l=r.n(o),s=r(73595),u=r(66801),c=r(65749),d=r(46135),f=r(21629),h=r(83793),p=r(49619),m=r(2279),v="Checkbox",[g]=(0,u.A)(v),[y,x]=g(v);function b(e){let{__scopeCheckbox:t,checked:r,children:i,defaultChecked:o,disabled:l,form:s,name:u,onCheckedChange:c,required:f,value:h="on",internal_do_not_use_render:p}=e,[m,g]=(0,d.i)({prop:r,defaultProp:null!=o&&o,onChange:c,caller:v}),[x,b]=a.useState(null),[w,k]=a.useState(null),S=a.useRef(!1),C=!x||!!s||!!x.closest("form"),E={checked:m,disabled:l,setChecked:g,control:x,setControl:b,name:u,form:s,value:h,hasConsumerStoppedPropagationRef:S,required:f,defaultChecked:!A(o)&&o,isFormControl:C,bubbleInput:w,setBubbleInput:k};return(0,n.jsx)(y,{scope:t,...E,children:"function"==typeof p?p(E):i})}var w="CheckboxTrigger",k=a.forwardRef((e,t)=>{let{__scopeCheckbox:r,onKeyDown:i,onClick:o,...l}=e,{control:u,value:d,disabled:f,checked:h,required:p,setControl:v,setChecked:g,hasConsumerStoppedPropagationRef:y,isFormControl:b,bubbleInput:k}=x(w,r),S=(0,s.s)(t,v),C=a.useRef(h);return a.useEffect(()=>{let e=null==u?void 0:u.form;if(e){let t=()=>g(C.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,g]),(0,n.jsx)(m.s.button,{type:"button",role:"checkbox","aria-checked":A(h)?"mixed":h,"aria-required":p,"data-state":R(h),"data-disabled":f?"":void 0,disabled:f,value:d,...l,ref:S,onKeyDown:(0,c.m)(i,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,c.m)(o,e=>{g(e=>!!A(e)||!e),k&&b&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})});k.displayName=w;var S=a.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:a,checked:i,defaultChecked:o,required:l,disabled:s,value:u,onCheckedChange:c,form:d,...f}=e;return(0,n.jsx)(b,{__scopeCheckbox:r,checked:i,defaultChecked:o,disabled:s,required:l,onCheckedChange:c,name:a,form:d,value:u,internal_do_not_use_render:e=>{let{isFormControl:a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k,{...f,ref:t,__scopeCheckbox:r}),a&&(0,n.jsx)(T,{__scopeCheckbox:r})]})}})});S.displayName=v;var C="CheckboxIndicator",E=a.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:a,...i}=e,o=x(C,r);return(0,n.jsx)(p.C,{present:a||A(o.checked)||!0===o.checked,children:(0,n.jsx)(m.s.span,{"data-state":R(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});E.displayName=C;var j="CheckboxBubbleInput",T=a.forwardRef((e,t)=>{let{__scopeCheckbox:r,...i}=e,{control:o,hasConsumerStoppedPropagationRef:l,checked:u,defaultChecked:c,required:d,disabled:p,name:v,value:g,form:y,bubbleInput:b,setBubbleInput:w}=x(j,r),k=(0,s.s)(t,w),S=(0,f.Z)(u),C=(0,h.X)(o);a.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!l.current;if(S!==u&&e){let r=new Event("click",{bubbles:t});b.indeterminate=A(u),e.call(b,!A(u)&&u),b.dispatchEvent(r)}},[b,S,u,l]);let E=a.useRef(!A(u)&&u);return(0,n.jsx)(m.s.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=c?c:E.current,required:d,disabled:p,name:v,value:g,form:y,...i,tabIndex:-1,ref:k,style:{...i.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function A(e){return"indeterminate"===e}function R(e){return A(e)?"indeterminate":e?"checked":"unchecked"}T.displayName=j;var P=r(60098),N=r(51508),M=r(82885);function O(e){let t=(0,M.M)(()=>(0,P.OQ)(e)),{isStatic:r}=(0,a.useContext)(N.Q);if(r){let[,r]=(0,a.useState)(e);(0,a.useEffect)(()=>t.on("change",r),[])}return t}var D=r(6775),L=r(69515),I=r(97494);function V(e,t){let r=O(t()),n=()=>r.set(t());return n(),(0,I.E)(()=>{let t=()=>L.Gt.preRender(n,!1,!0),r=e.map(e=>e.on("change",t));return()=>{r.forEach(e=>e()),(0,L.WG)(n)}}),r}function F(e,t){let r=(0,M.M)(()=>[]);return V(e,()=>{r.length=0;let n=e.length;for(let t=0;t{let{checked:t,disableAnimation:r,indeterminate:a}=e,o=O(0),s=function(e,t,r,n){if("function"==typeof e){P.bt.current=[],e();let t=V(P.bt.current,e);return P.bt.current=void 0,t}let a="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),r=t?0:-1,n=e[0+r],a=e[1+r],i=e[2+r],o=e[3+r],l=(0,D.G)(a,i,o);return t?l(n):l}(t,r,void 0);return Array.isArray(e)?F(e,a):F([e],e=>{let[t]=e;return a(t)})}(o,[.05,.15],[0,1]);return a?(0,n.jsx)(l(),{className:"size-5",path:i.XzY}):r?(0,n.jsx)(l(),{className:"size-5",path:i.Tfj}):(0,n.jsx)(_.P.svg,{animate:t?"checked":"unchecked",className:"size-5",fill:"none",stroke:"currentColor",strokeWidth:"2",tabIndex:-1,viewBox:"0 0 24 24",whileHover:"hover",whileTap:"pressed",children:(0,n.jsx)(_.P.path,{custom:t,d:"M4.2,12.8l4.8,4.8L20.3,6.3",style:{opacity:s,pathLength:o},variants:{checked:{pathLength:1},pressed:e=>({pathLength:+!!e}),unchecked:{pathLength:0}}})})},H=e=>{let{checked:t=!1,className:r,colorScheme:i="neutral",defaultChecked:o=!1,disableAnimation:l=!1,onCheckedChange:s,...u}=e,c="function"==typeof s,[d,f]=(0,a.useState)(c?t:o);return(0,n.jsx)(S,{checked:c?t:d,className:z({className:r,colorScheme:i}),defaultChecked:c?void 0:o,onCheckedChange:e=>{f(e),null==s||s(e)},...u,"data-ids":"Checkbox",children:(0,n.jsx)(E,{children:(0,n.jsx)(B,{checked:c?t:d,disableAnimation:l,indeterminate:c?"indeterminate"===t:"indeterminate"===d})})})};H.displayName="Checkbox"},80845:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});let n=(0,r(12115).createContext)(null)},81176:(e,t,r)=>{"use strict";r.d(t,{h:()=>l});var n,a=r(12115),i=["title","titleId"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";r.d(t,{M:()=>a});var n=r(12115);function a(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},83429:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Tooltip:()=>G,default:()=>G});var n=r(95155),a=r(12115),i=r(65749),o=r(73595),l=r(66801),s=r(68991),u=r(74539),c=r(28635),d=r(52090),f=r(49619),h=r(2279),p=r(77280),m=r(46135),v=r(50190),[g]=(0,l.A)("Tooltip",[c.Bk]),y=(0,c.Bk)(),x="TooltipProvider",b="tooltip.open",[w,k]=g(x),S=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:l}=e,s=a.useRef(!0),u=a.useRef(!1),c=a.useRef(0);return a.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,n.jsx)(w,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:a.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:u,onPointerInTransitChange:a.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:l})};S.displayName=x;var C="Tooltip",[E,j]=g(C),T=e=>{let{__scopeTooltip:t,children:r,open:i,defaultOpen:o,onOpenChange:l,disableHoverableContent:s,delayDuration:d}=e,f=k(C,e.__scopeTooltip),h=y(t),[p,v]=a.useState(null),g=(0,u.B)(),x=a.useRef(0),w=null!=s?s:f.disableHoverableContent,S=null!=d?d:f.delayDuration,j=a.useRef(!1),[T,A]=(0,m.i)({prop:i,defaultProp:null!=o&&o,onChange:e=>{e?(f.onOpen(),document.dispatchEvent(new CustomEvent(b))):f.onClose(),null==l||l(e)},caller:C}),R=a.useMemo(()=>T?j.current?"delayed-open":"instant-open":"closed",[T]),P=a.useCallback(()=>{window.clearTimeout(x.current),x.current=0,j.current=!1,A(!0)},[A]),N=a.useCallback(()=>{window.clearTimeout(x.current),x.current=0,A(!1)},[A]),M=a.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{j.current=!0,A(!0),x.current=0},S)},[S,A]);return a.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),(0,n.jsx)(c.bL,{...h,children:(0,n.jsx)(E,{scope:t,contentId:g,open:T,stateAttribute:R,trigger:p,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{f.isOpenDelayedRef.current?M():P()},[f.isOpenDelayedRef,M,P]),onTriggerLeave:a.useCallback(()=>{w?N():(window.clearTimeout(x.current),x.current=0)},[N,w]),onOpen:P,onClose:N,disableHoverableContent:w,children:r})})};T.displayName=C;var A="TooltipTrigger",R=a.forwardRef((e,t)=>{let{__scopeTooltip:r,...l}=e,s=j(A,r),u=k(A,r),d=y(r),f=a.useRef(null),p=(0,o.s)(t,f,s.onTriggerChange),m=a.useRef(!1),v=a.useRef(!1),g=a.useCallback(()=>m.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,n.jsx)(c.Mz,{asChild:!0,...d,children:(0,n.jsx)(h.s.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...l,ref:p,onPointerMove:(0,i.m)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(v.current||u.isPointerInTransitRef.current||(s.onTriggerEnter(),v.current=!0))}),onPointerLeave:(0,i.m)(e.onPointerLeave,()=>{s.onTriggerLeave(),v.current=!1}),onPointerDown:(0,i.m)(e.onPointerDown,()=>{s.open&&s.onClose(),m.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,i.m)(e.onFocus,()=>{m.current||s.onOpen()}),onBlur:(0,i.m)(e.onBlur,s.onClose),onClick:(0,i.m)(e.onClick,s.onClose)})})});R.displayName=A;var P="TooltipPortal",[N,M]=g(P,{forceMount:void 0}),O=e=>{let{__scopeTooltip:t,forceMount:r,children:a,container:i}=e,o=j(P,t);return(0,n.jsx)(N,{scope:t,forceMount:r,children:(0,n.jsx)(f.C,{present:r||o.open,children:(0,n.jsx)(d.Z,{asChild:!0,container:i,children:a})})})};O.displayName=P;var D="TooltipContent",L=a.forwardRef((e,t)=>{let r=M(D,e.__scopeTooltip),{forceMount:a=r.forceMount,side:i="top",...o}=e,l=j(D,e.__scopeTooltip);return(0,n.jsx)(f.C,{present:a||l.open,children:l.disableHoverableContent?(0,n.jsx)(z,{side:i,...o,ref:t}):(0,n.jsx)(I,{side:i,...o,ref:t})})}),I=a.forwardRef((e,t)=>{let r=j(D,e.__scopeTooltip),i=k(D,e.__scopeTooltip),l=a.useRef(null),s=(0,o.s)(t,l),[u,c]=a.useState(null),{trigger:d,onClose:f}=r,h=l.current,{onPointerInTransitChange:p}=i,m=a.useCallback(()=>{c(null),p(!1)},[p]),v=a.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},a=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,a,i)){case i:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,a),...function(e){let{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}(t.getBoundingClientRect())])),p(!0)},[p]);return a.useEffect(()=>()=>m(),[m]),a.useEffect(()=>{if(d&&h){let e=e=>v(e,h),t=e=>v(e,d);return d.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[d,h,v,m]),a.useEffect(()=>{if(u){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==d?void 0:d.contains(t))||(null==h?void 0:h.contains(t)),a=!function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,i=t.length-1;en!=d>n&&r<(c-s)*(n-u)/(d-u)+s&&(a=!a)}return a}(r,u);n?m():a&&(m(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,h,u,f,m]),(0,n.jsx)(z,{...e,ref:s})}),[V,F]=g(C,{isInside:!1}),_=(0,p.D)("TooltipContent"),z=a.forwardRef((e,t)=>{let{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:u,...d}=e,f=j(D,r),h=y(r),{onClose:p}=f;return a.useEffect(()=>(document.addEventListener(b,p),()=>document.removeEventListener(b,p)),[p]),a.useEffect(()=>{if(f.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(f.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,p]),(0,n.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,n.jsxs)(c.UC,{"data-state":f.stateAttribute,...h,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,n.jsx)(_,{children:i}),(0,n.jsx)(V,{scope:r,isInside:!0,children:(0,n.jsx)(v.bL,{id:f.contentId,role:"tooltip",children:o||i})})]})})});L.displayName=D;var B="TooltipArrow",H=a.forwardRef((e,t)=>{let{__scopeTooltip:r,...a}=e,i=y(r);return F(B,r).isInside?null:(0,n.jsx)(c.i3,{...i,...a,ref:t})});H.displayName=B;var U=r(72107),W=r(66714),K=r.n(W),q=r(52794);let $=(0,r(74466).F)(["rounded-md","z-top","max-w-(--radix-tooltip-content-available-width)"],{compoundVariants:[],defaultVariants:{compact:!1,theme:"auto"},variants:{compact:{false:["px-6","py-4"],true:["px-2","py-1"]},disableAnimation:{false:["animate-in","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2","data-[state=closed]:animate-out","data-[state=closed]:fade-out-0","data-[state=closed]:zoom-out-95","fade-in-0","zoom-in-95"],true:[]},theme:{auto:["scheme-normal","bg-neutral-3","dark:bg-neutral-6","dark:fill-neutral-6","dark:text-neutral-1","fill-neutral-3","text-neutral-8"],dark:["scheme-dark","bg-neutral-6","fill-neutral-6","text-neutral-1"],light:["scheme-light","bg-neutral-3","fill-neutral-3","text-neutral-8"]}}}),G=e=>{let{align:t="center",arrow:r=!0,children:a,className:i,container:o,content:l,disableAnimation:s=!1,enterDelay:u=100,enterNextDelay:c=0,onOpenChange:d,open:f,side:h="top",theme:p="auto",typographyVariant:m="caption1",...v}=e,g=["string","number"].includes(typeof l);return(0,n.jsx)(S,{delayDuration:u,skipDelayDuration:c,children:(0,n.jsxs)(T,{onOpenChange:d,open:f,children:[(0,n.jsx)(R,{"aria-label":(0,q.A)(l),asChild:!0,children:a}),(0,n.jsx)(O,{container:o,children:(0,n.jsxs)(L,{align:t,className:$({className:i,compact:g,disableAnimation:s,theme:p}),"data-testid":"tooltip-content",side:h,sideOffset:5,...v,"data-ids":"Tooltip",children:[(0,n.jsx)(K(),{condition:g,wrapper:e=>(0,n.jsx)(U.o5,{disableColorScheme:!0,variant:m,children:e}),children:l}),r&&(0,n.jsx)(H,{})]})})]})})};G.displayName="Tooltip"},83793:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=r(12115),a=r(64730);function i(e){let[t,r]=n.useState(void 0);return(0,a.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,a;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,a=t.blockSize}else n=e.offsetWidth,a=e.offsetHeight;r({width:n,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},84240:(e,t,r)=>{"use strict";r.d(t,{GlobalHeaderHamburgerMenu:()=>$});var n,a,i,o,l,s=r(95155),u=r(12115),c=r(5036),d=r(1773),f=r.n(d),h=r(74466),p=r(8310),m=r(6401),v=r(53407),g=r(24877),y=r(76326),x=r(17721),b=r(57170),w=r(31513),k=r(6168),S=r(44507),C=r(83429),E=r(72107),j=r(66714),T=r.n(j),A=["title","titleId"];function R(){return(R=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{activePath:t,activeTheme:r="light",brand:n="motortrend",className:a,hideSubBrands:i=!1,items:o=[],joinNewsletterLink:l,linkElement:d="a",toggleTheme:j,...A}=e,[R,M]=(0,u.useState)(!1),O=()=>M(!1);(0,p.vC)("shift+alt+d",()=>null==j?void 0:j());let I=e=>{var r;let n=(("string"==typeof e.href?e.href:null==(r=e.href)?void 0:r.pathname)||"")===t;return{"border-primary-2":n,"border-transparent":!n,"focus-visible:border-primary-2":!n,"focus-visible:border-primary-3":n,"hover:border-primary-2":!n,"hover:border-primary-3":n,"hover:text-primary-7":!n}},V=[{id:"motortrend",link:"https://inskrt.com/",logo:_.h,title:"MotorTrend"},{id:"hotrod",link:"https://www.hotrod.com/",logo:L.h,title:"Hot Rod"},{id:"automobile",link:"https://inskrt.com/automobilemag/",logo:P,title:"Automobile"},{id:"fourwheeler",link:"https://inskrt.com/fourwheeler/",logo:D,title:"Fourwheeler"},{id:"trucktrend",link:"https://inskrt.com/trucktrend/",logo:K,title:"TruckTrend"},{id:"superstreet",link:"https://inskrt.com/superstreetonline/",logo:H,title:"Super Street"},{id:"lowrider",link:"https://inskrt.com/lowrider/",logo:F,title:"Lowrider"}];return(0,s.jsxs)("div",{...A,"data-ids":"GlobalHeaderHamburgerMenu",children:[(0,s.jsx)(k.K,{"aria-label":"Open Menu",colorScheme:"transparent","data-id":"open-hamburger-menu","data-parent":"hamburger-menu",onClick:()=>M(!0),rounded:!0,children:(0,s.jsx)(f(),{path:c.ExW,size:1})}),(0,s.jsx)(w.Drawer,{"aria-label":"Menu",className:q({brand:n,className:a}),onClose:O,open:R,theme:"dark",children:(0,s.jsxs)("div",{className:"w-screen sm:w-[360px]",children:[(0,s.jsxs)("div",{className:"bg-neutral-2/60 sticky top-0 z-10 flex items-center justify-between py-10 pr-6 pl-8 backdrop-blur-md",children:[(()=>{let e={"data-parent":"hamburger-menu",href:"/",onClick:O};switch(n){case"caranddriver":return(0,s.jsx)(d,{className:"text-neutral-8 hover:text-neutral-6 transition-colors","data-id":"caranddriver-logo",...e,children:(0,s.jsx)(N.h,{className:"w-full max-w-32",title:"Car and Driver"})});case"hotrod":return(0,s.jsx)(d,{className:"text-neutral-8 hover:text-primary-1 transition-colors","data-id":"hotrod-logo",...e,children:(0,s.jsx)(L.h,{className:"w-full max-w-32",title:"Hot Rod"})});default:return(0,s.jsx)(d,{className:"text-primary-2 hover:text-neutral-8 transition-colors","data-id":"motortrend-logo",...e,children:(0,s.jsx)(_.h,{className:"w-full max-w-32",title:"MotorTrend"})})}})(),(0,s.jsx)(C.Tooltip,{content:"Close Menu",side:"right",theme:"dark",children:(0,s.jsx)(k.K,{className:"!border-transparent",colorScheme:"neutral-3","data-id":"close-hamburger-menu","data-parent":"hamburger-menu",onClick:O,rounded:!0,variant:"outlined",children:(0,s.jsx)(f(),{path:c.hyP,size:1})})})]}),r&&j&&(0,s.jsxs)("div",{className:"mx-8 flex flex-wrap",children:[(0,s.jsx)(b.c,{className:"mb-6"}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)(E.o5,{as:"p",className:"text-neutral-5 select-none",disableColorScheme:!0,variant:"subtitle1",children:"Theme"}),(0,s.jsx)(C.Tooltip,{content:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)(E.o5,{disableColorScheme:!0,variant:"caption1",children:"Switch to ".concat("dark"===r?"Light":"Dark"," Mode")}),(0,s.jsx)(E.o5,{disableColorScheme:!0,variant:"caption2",children:"Shift+Alt+D"})]}),theme:"dark",children:(0,s.jsxs)("div",{className:"flex items-center justify-end gap-4",children:[(0,s.jsx)(f(),{className:(0,h.cx)({"text-neutral-5":"light"!==r}),path:c.Uxc,size:1}),(0,s.jsx)(S.Switch,{checked:"light"===r,className:"rotate-180",colorScheme:"neutral","data-id":"theme-toggle","data-parent":"hamburger-menu",onCheckedChange:j,size:"small"}),(0,s.jsx)(f(),{className:(0,h.cx)({"text-neutral-5":"dark"!==r}),path:c.nx1,size:1})]})})]}),(0,s.jsx)(b.c,{className:"my-6"})]}),(()=>{if(i)return;let e=V.map(e=>{let{id:t,link:r,logo:a,title:i}=e;return t===n?null:(0,s.jsx)(d,{className:"hover:text-neutral-8 my-2 flex w-2/4 items-center justify-center p-4","data-id":"hamburger-menu-link","data-parent":"hamburger-menu",href:r,onClick:O,children:(0,s.jsx)(a,{className:"max-h-6 min-w-[104px]",title:i})},i)});return(0,s.jsxs)("div",{className:"text-neutral-5 mx-8 flex flex-wrap pb-4",children:[e,(0,s.jsx)(b.c,{className:"my-6"})]})})(),(0,s.jsx)(v.Accordion,{className:"text-neutral-5 pb-6",type:"multiple",children:o.map(e=>{var t,r,n;let a=(null==e?void 0:e.linkElement)||d;return(0,s.jsxs)(x.AccordionItem,{value:e.title,children:[(0,s.jsx)(y.AccordionHeader,{className:(0,h.cx)("ripple data-[state=open]:text-neutral-8 border-l-4 px-8",I(e)),"data-id":"toggle-hamburger-menu-accordion","data-parent":"hamburger-menu",disabled:!(null==(t=e.children)?void 0:t.length),hideIcon:!(null==(r=e.children)?void 0:r.length),children:(0,s.jsx)(T(),{condition:!!e.href,wrapper:t=>(0,s.jsx)(a,{"data-id":"hamburger-menu-link","data-parent":"hamburger-menu",href:e.href,onClick:O,target:e.target||void 0,children:t}),children:(0,s.jsx)(E.o5,{as:"p",className:"hover:text-neutral-8 focus:text-neutral-8",disableColorScheme:!0,variant:"subtitle1",children:e.title})})}),!!(null==(n=e.children)?void 0:n.length)&&(0,s.jsx)(g.AccordionContent,{children:e.children.map(e=>{let t=(null==e?void 0:e.linkElement)||d;return(0,s.jsx)(t,{className:(0,h.cx)("ripple block border-l-4 px-10 py-1.5",I(e)),"data-id":"hamburger-menu-link","data-parent":"hamburger-menu",href:e.href,onClick:O,target:e.target||void 0,children:(0,s.jsx)(E.o5,{className:"hover:text-neutral-8 focus:text-neutral-8",disableColorScheme:!0,variant:"body2",children:e.title})},e.title)})})]},e.title)})}),!!l&&(0,s.jsxs)("div",{className:"text-neutral-5 mx-8 flex flex-wrap pb-4",children:[(0,s.jsx)(b.c,{className:"mb-8"}),(0,s.jsx)(m.q,{className:"mb-8","data-parent":"hamburger-menu",href:l,linkElement:d,onClick:O})]})]})})]})};$.displayName="GlobalHeaderHamburgerMenu"},85016:(e,t,r)=>{"use strict";r.d(t,{Select:()=>v});var n=r(95155),a=r(12115),i=r(5036),o=r(1773),l=r.n(o),s=r(2668),u=r(74466),c=r(90794),d=r(59439),f=r(72107);let h=["h-8","px-2","py-0.5","rounded-sm"],p=(0,u.F)(["[&>span]:line-clamp-1","border","flex","focus-visible:dark:ring-offset-neutral-1","focus-visible:outline-hidden","focus-visible:ring-2","focus-visible:ring-offset-2","focus-visible:ring-offset-neutral-8","focus-visible:ring-neutral-5","items-center","justify-between","outline-hidden","select-none","text-left","w-full"],{compoundVariants:[{className:["[&[data-placeholder]>span]:text-error-3","bg-error-1","border-error-3/25"],error:!0,theme:"dark",variant:"contained"},{className:["bg-neutral-3","border-neutral-3","shadow-none"],error:!1,theme:"dark",variant:"contained"},{className:["[&[data-placeholder]>span]:text-error-3","bg-neutral-2","border-error-3"],error:!0,theme:"dark",variant:"outlined"},{className:["bg-neutral-2","border-neutral-4"],error:!1,theme:"dark",variant:"outlined"},{className:["[&[data-placeholder]>span]:text-error-2","bg-error-2/5","border-error-2/10","shadow-[0px_4px_20px_0px_rgba(0,0,0,0.06)]"],error:!0,theme:"light",variant:"contained"},{className:["bg-neutral-8","border-neutral-6","shadow-[0px_4px_20px_0px_rgba(0,0,0,0.06)]"],error:!1,theme:"light",variant:"contained"},{className:["[&[data-placeholder]>span]:text-error-2","bg-neutral-8","border-error-2"],error:!0,theme:"light",variant:"outlined"},{className:["bg-neutral-8","border-neutral-5"],error:!1,theme:"light",variant:"outlined"},{className:["[&[data-placeholder]>span]:text-error-2","bg-error-2/5","border-error-2/10","dark:[&[data-placeholder]>span]:text-error-3","dark:bg-error-1","dark:border-error-3/25","dark:shadow-none","shadow-[0px_4px_20px_0px_rgba(0,0,0,0.06)]"],error:!0,theme:"auto",variant:"contained"},{className:["bg-neutral-8","border-neutral-6","dark:bg-neutral-3","dark:border-neutral-3","dark:shadow-none","shadow-[0px_4px_20px_0px_rgba(0,0,0,0.06)]"],error:!1,theme:"auto",variant:"contained"},{className:["[&[data-placeholder]>span]:text-error-2","bg-neutral-8","border-error-2","dark:[&[data-placeholder]>span]:text-error-3","dark:bg-neutral-2","dark:border-error-3"],error:!0,theme:"auto",variant:"outlined"},{className:["bg-neutral-8","border-neutral-5","dark:bg-neutral-2","dark:border-neutral-4"],error:!1,theme:"auto",variant:"outlined"}],defaultVariants:{disabled:!1,error:!1,theme:"auto",variant:"outlined"},variants:{compact:{"@lg":[...h,"@lg:h-10","@lg:px-4","@lg:py-1.5","@lg:rounded-lg"],"@md":[...h,"@md:h-10","@md:px-4","@md:py-1.5","@md:rounded-lg"],"@sm":[...h,"@sm:h-10","@sm:px-4","@sm:py-1.5","@sm:rounded-lg"],"@xl":[...h,"@xl:h-10","@xl:px-4","@xl:py-1.5","@xl:rounded-lg"],"@xs":[...h,"@xs:h-10","@xs:px-4","@xs:py-1.5","@xs:rounded-lg"],false:["h-10","px-4","py-1.5","rounded-lg"],lg:[...h,"lg:h-10","lg:px-4","lg:py-1.5","lg:rounded-lg"],md:[...h,"md:h-10","md:px-4","md:py-1.5","md:rounded-lg"],sm:[...h,"sm:h-10","sm:px-4","sm:py-1.5","sm:rounded-lg"],true:h,xl:[...h,"xl:h-10","xl:px-4","xl:py-1.5","xl:rounded-lg"]},disabled:{false:[],true:["cursor-not-allowed","opacity-50"]},error:{false:"[&[data-placeholder]>span]:opacity-70",true:[]},theme:{auto:["text-neutral-2","dark:text-neutral-6"],dark:"text-neutral-6",light:["text-neutral-2"]},variant:{contained:[],outlined:[]}}}),m=(0,u.F)(["cursor-default","flex","items-center","justify-center"],{defaultVariants:{theme:"auto"},variants:{theme:{auto:["text-neutral-2","dark:text-neutral-6"],dark:"text-neutral-6",light:"text-neutral-2"}}}),v=e=>{let{"aria-label":t,children:r,className:o,compact:h=!1,container:v,disabled:g=!1,error:y=!1,id:x,label:b,name:w,onCloseAutoFocus:k,onEscapeKeyDown:S,onOpenChange:C,onPointerDownOutside:E,parentRef:j,placeholder:T="Select an option",ref:A,required:R=!1,scrollable:P=!0,theme:N="auto",variant:M="outlined",...O}=e,D=x||(0,a.useId)();return(0,n.jsxs)("div",{className:(0,u.cx)(o,{dark:"dark"===N}),"data-ids":"Select",ref:j,children:[b&&(0,n.jsxs)(c.l,{className:"mb-3 block",disabled:g,error:y,htmlFor:D,children:[b,R&&(0,n.jsx)("span",{className:"text-error-2 dark:text-error-3 ml-1",children:"*"})]}),(0,n.jsxs)(s.bL,{disabled:g,name:w,required:R,...O,children:[(0,n.jsx)(s.l9,{"aria-label":t||b,asChild:!0,ref:A,children:(0,n.jsxs)(f.o5,{as:"button",className:p({compact:h,disabled:g,error:y,theme:N,variant:M}),disableColorScheme:!0,id:D,variant:"body2",children:[(0,n.jsx)(s.WT,{placeholder:T}),(0,n.jsx)(l(),{className:"min-w-6",path:i.W5x,size:1})]})}),(0,n.jsx)(s.ZL,{container:v,children:(0,n.jsxs)(s.UC,{className:(0,u.cx)((0,d.n)({collapsePadding:!0,theme:N}),"w-(--radix-select-trigger-width)",{"max-h-96":P}),onCloseAutoFocus:k,onEscapeKeyDown:S,onPointerDownOutside:E,position:"popper",sideOffset:4,children:[P&&(0,n.jsx)(s.PP,{className:m({theme:N}),children:(0,n.jsx)(l(),{path:i.Fb5,size:1})}),(0,n.jsx)(s.LM,{children:(0,n.jsx)(s.YJ,{className:"flex flex-col gap-2 py-2",children:r})}),P&&(0,n.jsx)(s.wn,{className:m({theme:N}),children:(0,n.jsx)(l(),{path:i.W5x,size:1})})]})})]})]})};v.displayName="Select"},86950:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(12115);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{threshold:0},[r,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if((null==e?void 0:e.current)&&"function"==typeof IntersectionObserver){let r=new IntersectionObserver(e=>{a(e[0])},t);return r.observe(e.current),()=>{a(null),r.disconnect()}}return()=>{}},[null==e?void 0:e.current,t.threshold,t.root,t.rootMargin]),r}},87969:(e,t,r)=>{"use strict";r.d(t,{Carousel:()=>P});var n=r(95155),a=r(12115),i=r(74466);function o(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function l(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{let n=e[r],a=t[r];return"function"==typeof n?`${n}`==`${a}`:o(n)&&o(a)?l(n,a):n===a})}function s(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function u(e){return"number"==typeof e}function c(e){return"string"==typeof e}function d(e){return"boolean"==typeof e}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function h(e){return Math.abs(e)}function p(e){return Math.sign(e)}function m(e){return x(e).map(Number)}function v(e){return e[g(e)]}function g(e){return Math.max(0,e.length-1)}function y(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function x(e){return Object.keys(e)}function b(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function w(){let e=[],t={add:function(r,n,a,i={passive:!0}){let o;return"addEventListener"in r?(r.addEventListener(n,a,i),o=()=>r.removeEventListener(n,a,i)):(r.addListener(a),o=()=>r.removeListener(a)),e.push(o),t},clear:function(){e=e.filter(e=>e())}};return t}function k(e=0,t=0){let r=h(e-t);function n(r){return rt}return{length:r,max:t,min:e,constrain:function(r){return n(r)?rt},reachedMin:function(t){return t(x(r).forEach(n=>{let a=t[n],i=r[n],o=f(a)&&f(i);t[n]=o?e(a,i):i}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){let n=r.breakpoints||{},a=x(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,a)},optionsMediaQueries:function(t){return t.map(e=>x(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(T),R=(l=[],{init:function(e,t){return(l=t.filter(({options:e})=>!1!==A.optionsAtMedia(e).active)).forEach(t=>t.init(e,A)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){l=l.filter(e=>e.destroy())}}),P=w(),N=function(){let e,t={},r={init:function(t){e=t},emit:function(n){return(t[n]||[]).forEach(t=>t(e,n)),r},off:function(e,n){return t[e]=(t[e]||[]).filter(e=>e!==n),r},on:function(e,n){return t[e]=(t[e]||[]).concat([n]),r},clear:function(){t={}}};return r}(),{mergeOptions:M,optionsAtMedia:O,optionsMediaQueries:D}=A,{on:L,off:I,emit:V}=N,F=!1,_=M(E,j.globalOptions),z=M(_),B=[];function H(t,r){if(F)return;z=O(_=M(_,t)),B=r||B;let{container:l,slides:f}=z;i=(c(l)?e.querySelector(l):l)||e.children[0];let E=c(f)?i.querySelectorAll(f):f;o=[].slice.call(E||i.children),n=function t(r){let n=function(e,t,r,n,a,i,o){let l,s,{align:f,axis:E,direction:j,startIndex:T,loop:A,duration:R,dragFree:P,dragThreshold:N,inViewThreshold:M,slidesToScroll:O,skipSnaps:D,containScroll:L,watchResize:I,watchSlides:V,watchDrag:F,watchFocus:_}=i,z={measure:function(e){let{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:a}=e;return{top:t,right:r+n,bottom:t+a,left:r,width:n,height:a}}},B=z.measure(t),H=r.map(z.measure),U=function(e,t){let r="rtl"===t,n="y"===e,a=!n&&r?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":r?"right":"left",endEdge:n?"bottom":r?"left":"right",measureSize:function(e){let{height:t,width:r}=e;return n?t:r},direction:function(e){return e*a}}}(E,j),W=U.measureSize(B),K={measure:function(e){return e/100*W}},q=function(e,t){let r={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(n,a){return c(e)?r[e](n):e(t,n,a)}}}(f,W),$=!A&&!!L,{slideSizes:G,slideSizesWithGaps:Y,startGap:X,endGap:Z}=function(e,t,r,n,a,i){let{measureSize:o,startEdge:l,endEdge:s}=e,u=r[0]&&a,c=function(){if(!u)return 0;let e=r[0];return h(t[l]-e[l])}(),d=u?parseFloat(i.getComputedStyle(v(n)).getPropertyValue(`margin-${s}`)):0,f=r.map(o),p=r.map((e,t,r)=>{let n=t===g(r);return t?n?f[t]+d:r[t+1][l]-e[l]:f[t]+c}).map(h);return{slideSizes:f,slideSizesWithGaps:p,startGap:c,endGap:d}}(U,B,H,r,A||!!L,a),Q=function(e,t,r,n,a,i,o,l,s){let{startEdge:c,endEdge:d,direction:f}=e,p=u(r);return{groupSlides:function(e){return p?m(e).filter(e=>e%r==0).map(t=>e.slice(t,t+r)):e.length?m(e).reduce((r,s,u)=>{let p=v(r)||0,m=s===g(e),y=a[c]-i[p][c],x=a[c]-i[s][d],b=n||0!==p?0:f(o),w=h(x-(!n&&m?f(l):0)-(y+b));return u&&w>t+2&&r.push(s),m&&r.push(e.length),r},[]).map((t,r,n)=>{let a=Math.max(n[r-1]||0);return e.slice(a,t)}):[]}}}(U,W,O,A,B,H,X,Z,0),{snaps:J,snapsAligned:ee}=function(e,t,r,n,a){let{startEdge:i,endEdge:o}=e,{groupSlides:l}=a,s=l(n).map(e=>v(e)[o]-e[0][i]).map(h).map(t.measure),u=n.map(e=>r[i]-e[i]).map(e=>-h(e)),c=l(u).map(e=>e[0]).map((e,t)=>e+s[t]);return{snaps:u,snapsAligned:c}}(U,q,B,H,Q),et=-v(J)+v(Y),{snapsContained:er,scrollContainLimit:en}=function(e,t,r,n,a){let i=k(-t+e,0),o=r.map((e,t)=>{let{min:n,max:a}=i,o=i.constrain(e),l=t===g(r);return t?l||function(e,t){return 1>=h(e-t)}(n,o)?n:function(e,t){return 1>=h(e-t)}(a,o)?a:o:a}).map(e=>parseFloat(e.toFixed(3))),l=function(){let e=o[0],t=v(o);return k(o.lastIndexOf(e),o.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[i.max];if("keepSnaps"===n)return o;let{min:r,max:a}=l;return o.slice(r,a)}(),scrollContainLimit:l}}(W,et,ee,L,0),ea=$?er:ee,{limit:ei}=function(e,t,r){let n=t[0];return{limit:k(r?n-e:v(t),n)}}(et,ea,A),eo=function e(t,r,n){let{constrain:a}=k(0,t),i=t+1,o=l(r);function l(e){return n?h((i+e)%i):a(e)}function s(){return e(t,o,n)}let u={get:function(){return o},set:function(e){return o=l(e),u},add:function(e){return s().set(o+e)},clone:s};return u}(g(ea),T,A),el=eo.clone(),es=m(r),eu=function(e,t,r,n){let a=w(),i=1e3/60,o=null,l=0,s=0;function u(e){if(!s)return;o||(o=e,r(),r());let a=e-o;for(o=e,l+=a;l>=i;)r(),l-=i;n(l/i),s&&(s=t.requestAnimationFrame(u))}function c(){t.cancelAnimationFrame(s),o=null,l=0,s=0}return{init:function(){a.add(e,"visibilitychange",()=>{e.hidden&&(o=null,l=0)})},destroy:function(){c(),a.clear()},start:function(){s||(s=t.requestAnimationFrame(u))},stop:c,update:r,render:n}}(n,a,()=>(({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()})(eS),e=>(({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:a,scrollLooper:i,slideLooper:o,dragHandler:l,animation:s,eventHandler:u,scrollBounds:c,options:{loop:d}},f)=>{let h=e.settled(),p=!c.shouldConstrain(),m=d?h:h&&p,v=m&&!l.pointerDown();v&&s.stop();let g=r.get()*f+a.get()*(1-f);n.set(g),d&&(i.loop(e.direction()),o.loop()),t.to(n.get()),v&&u.emit("settle"),m||u.emit("scroll")})(eS,e)),ec=ea[eo.get()],ed=S(ec),ef=S(ec),eh=S(ec),ep=S(ec),em=function(e,t,r,n,a,i){let o=0,l=0,s=a,u=.68,c=e.get(),d=0;function f(e){return s=e,v}function m(e){return u=e,v}let v={direction:function(){return l},duration:function(){return s},velocity:function(){return o},seek:function(){let t=n.get()-e.get(),a=0;return s?(r.set(e),o+=t/s,o*=u,c+=o,e.add(o),a=c-d):(o=0,r.set(n),e.set(n),a=t),l=p(a),d=c,v},settled:function(){return .001>h(n.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return f(a)},useFriction:m,useDuration:f};return v}(ed,eh,ef,ep,R,.68),ev=function(e,t,r,n,a){let{reachedAny:i,removeOffset:o,constrain:l}=n;function s(e){return e.concat().sort((e,t)=>h(e)-h(t))[0]}function u(t,n){let a=[t,t+r,t-r];if(!e)return t;if(!n)return s(a);let i=a.filter(e=>p(e)===n);return i.length?s(i):v(a)-r}return{byDistance:function(r,n){let s=a.get()+r,{index:c,distance:d}=function(r){let n=e?o(r):l(r),{index:a}=t.map((e,t)=>({diff:u(e-n,0),index:t})).sort((e,t)=>h(e.diff)-h(t.diff))[0];return{index:a,distance:n}}(s),f=!e&&i(s);if(!n||f)return{index:c,distance:r};let p=r+u(t[c]-d,0);return{index:c,distance:p}},byIndex:function(e,r){let n=u(t[e]-a.get(),r);return{index:e,distance:n}},shortcut:u}}(A,ea,et,ei,ep),eg=function(e,t,r,n,a,i,o){function l(a){let l=a.distance,s=a.index!==t.get();i.add(l),l&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),s&&(r.set(t.get()),t.set(a.index),o.emit("select"))}return{distance:function(e,t){l(a.byDistance(e,t))},index:function(e,r){let n=t.clone().set(e);l(a.byIndex(n.get(),r))}}}(eu,eo,el,em,ev,ep,o),ey=function(e){let{max:t,length:r}=e;return{get:function(e){return r?-((e-t)/r):0}}}(ei),ex=w(),eb=function(e,t,r,n){let a,i={},o=null,l=null,s=!1;return{init:function(){a=new IntersectionObserver(e=>{s||(e.forEach(e=>{i[t.indexOf(e.target)]=e}),o=null,l=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>a.observe(e))},destroy:function(){a&&a.disconnect(),s=!0},get:function(e=!0){if(e&&o)return o;if(!e&&l)return l;let t=x(i).reduce((t,r)=>{let n=parseInt(r),{isIntersecting:a}=i[n];return(e&&a||!e&&!a)&&t.push(n),t},[]);return e&&(o=t),e||(l=t),t}}}(t,r,o,M),{slideRegistry:ew}=function(e,t,r,n,a,i){let{groupSlides:o}=a,{min:l,max:s}=n;return{slideRegistry:function(){let n=o(i);return 1===r.length?[i]:e&&"keepSnaps"!==t?n.slice(l,s).map((e,t,r)=>{let n=t===g(r);return t?n?y(g(i)-v(r)[0]+1,v(r)[0]):e:y(v(r[0])+1)}):n}()}}($,L,ea,en,Q,es),ek=function(e,t,r,n,a,i,o,l){let s={passive:!0,capture:!0},c=0;function f(e){"Tab"===e.code&&(c=new Date().getTime())}return{init:function(h){l&&(i.add(document,"keydown",f,!1),t.forEach((t,f)=>{i.add(t,"focus",t=>{(d(l)||l(h,t))&&function(t){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;let i=r.findIndex(e=>e.includes(t));u(i)&&(a.useDuration(0),n.index(i,0),o.emit("slideFocus"))}(f)},s)}))}}}(e,r,ew,eg,em,ex,o,_),eS={ownerDocument:n,ownerWindow:a,eventHandler:o,containerRect:B,slideRects:H,animation:eu,axis:U,dragHandler:function(e,t,r,n,a,i,o,l,s,u,c,f,m,v,g,y,x,S,C){let{cross:E,direction:j}=e,T=["INPUT","SELECT","TEXTAREA"],A={passive:!1},R=w(),P=w(),N=k(50,225).constrain(v.measure(20)),M={mouse:300,touch:400},O={mouse:500,touch:600},D=g?43:25,L=!1,I=0,V=0,F=!1,_=!1,z=!1,B=!1;function H(e){if(!b(e,n)&&e.touches.length>=2)return U(e);let t=i.readPoint(e),r=i.readPoint(e,E),o=h(t-I),s=h(r-V);if(!_&&!B&&(!e.cancelable||!(_=o>s)))return U(e);let c=i.pointerMove(e);o>y&&(z=!0),u.useFriction(.3).useDuration(.75),l.start(),a.add(j(c)),e.preventDefault()}function U(e){let t=c.byDistance(0,!1).index!==f.get(),r=i.pointerUp(e)*(g?O:M)[B?"mouse":"touch"],n=function(e,t){let r=f.add(-1*p(e)),n=c.byDistance(e,!g).distance;return g||h(e)e.preventDefault(),A).add(t,"touchmove",()=>void 0,A).add(t,"touchend",()=>void 0).add(t,"touchstart",l).add(t,"mousedown",l).add(t,"touchcancel",U).add(t,"contextmenu",U).add(t,"click",W,!0);function l(l){(d(C)||C(e,l))&&function(e){let l=b(e,n);if((B=l,z=g&&l&&!e.buttons&&L,L=h(a.get()-o.get())>=2,!l||0===e.button)&&!function(e){let t=e.nodeName||"";return T.includes(t)}(e.target)){F=!0,i.pointerDown(e),u.useFriction(0).useDuration(0),a.set(o);let n=B?r:t;P.add(n,"touchmove",H,A).add(n,"touchend",U).add(n,"mousemove",H,A).add(n,"mouseup",U),I=i.readPoint(e),V=i.readPoint(e,E),m.emit("pointerDown")}}(l)}},destroy:function(){R.clear(),P.clear()},pointerDown:function(){return F}}}(U,e,n,a,ep,function(e,t){let r,n;function a(e){return e.timeStamp}function i(r,n){let a=n||e.scroll,i=`client${"x"===a?"X":"Y"}`;return(b(r,t)?r:r.touches[0])[i]}return{pointerDown:function(e){return r=e,n=e,i(e)},pointerMove:function(e){let t=i(e)-i(n),o=a(e)-a(r)>170;return n=e,o&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;let t=i(n)-i(r),o=a(e)-a(r),l=a(e)-a(n)>170,s=t/o;return o&&!l&&h(s)>.1?s:0},readPoint:i}}(U,a),ed,eu,eg,em,ev,eo,o,K,P,N,D,0,F),eventStore:ex,percentOfView:K,index:eo,indexPrevious:el,limit:ei,location:ed,offsetLocation:eh,previousLocation:ef,options:i,resizeHandler:function(e,t,r,n,a,i,o){let l,s,u=[e].concat(n),c=[],f=!1;function p(e){return a.measureSize(o.measure(e))}return{init:function(a){i&&(s=p(e),c=n.map(p),l=new ResizeObserver(r=>{(d(i)||i(a,r))&&function(r){for(let i of r){if(f)return;let r=i.target===e,o=n.indexOf(i.target),l=r?s:c[o];if(h(p(r?e:n[o])-l)>=.5){a.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>{u.forEach(e=>l.observe(e))}))},destroy:function(){f=!0,l&&l.disconnect()}}}(t,o,a,r,U,I,z),scrollBody:em,scrollBounds:function(e,t,r,n,a){let i=a.measure(10),o=a.measure(50),l=k(.1,.99),s=!1;function u(){return!s&&!!e.reachedAny(r.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(a){if(!u())return;let s=e.reachedMin(t.get())?"min":"max",c=h(e[s]-t.get()),d=r.get()-t.get(),f=l.constrain(c/o);r.subtract(d*f),!a&&h(d)e.add(o))}}}(et,ei,eh,[ed,eh,ef,ep]),scrollProgress:ey,scrollSnapList:ea.map(ey.get),scrollSnaps:ea,scrollTarget:ev,scrollTo:eg,slideLooper:function(e,t,r,n,a,i,o,l,s){let u=m(a),c=m(a).reverse(),d=p(h(c,o[0]),r,!1).concat(p(h(u,t-o[0]-1),-r,!0));function f(e,t){return e.reduce((e,t)=>e-a[t],t)}function h(e,t){return e.reduce((e,r)=>f(e,t)>0?e.concat([r]):e,[])}function p(a,o,u){let c=i.map((e,r)=>({start:e-n[r]+.5+o,end:e+t-.5+o}));return a.map(t=>{let n=u?0:-r,a=u?r:0,i=c[t][u?"end":"start"];return{index:t,loopPoint:i,slideLocation:S(-1),translate:C(e,s[t]),target:()=>l.get()>i?n:a}})}return{canLoop:function(){return d.every(({index:e})=>.1>=f(u.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:r,slideLocation:n}=e,a=t();a!==n.get()&&(r.to(a),n.set(a))})},loopPoints:d}}(U,W,et,G,Y,J,ea,eh,r),slideFocus:ek,slidesHandler:(s=!1,{init:function(e){V&&(l=new MutationObserver(t=>{!s&&(d(V)||V(e,t))&&function(t){for(let r of t)if("childList"===r.type){e.reInit(),o.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){l&&l.disconnect(),s=!0}}),slidesInView:eb,slideIndexes:es,slideRegistry:ew,slidesToScroll:Q,target:ep,translate:C(U,t)};return eS}(e,i,o,s,T,r,N);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}(z),D([_,...B.map(({options:e})=>e)]).forEach(e=>P.add(e,"change",U)),z.active&&(n.translate.to(n.location.get()),n.animation.init(),n.slidesInView.init(),n.slideFocus.init($),n.eventHandler.init($),n.resizeHandler.init($),n.slidesHandler.init($),n.options.loop&&n.slideLooper.loop(),i.offsetParent&&o.length&&n.dragHandler.init($),a=R.init($,B))}function U(e,t){let r=q();W(),H(M({startIndex:r},e),t),N.emit("reInit")}function W(){n.dragHandler.destroy(),n.eventStore.clear(),n.translate.clear(),n.slideLooper.clear(),n.resizeHandler.destroy(),n.slidesHandler.destroy(),n.slidesInView.destroy(),n.animation.destroy(),R.destroy(),P.clear()}function K(e,t,r){z.active&&!F&&(n.scrollBody.useBaseFriction().useDuration(!0===t?0:z.duration),n.scrollTo.index(e,r||0))}function q(){return n.index.get()}let $={canScrollNext:function(){return n.index.add(1).get()!==q()},canScrollPrev:function(){return n.index.add(-1).get()!==q()},containerNode:function(){return i},internalEngine:function(){return n},destroy:function(){F||(F=!0,P.clear(),W(),N.emit("destroy"),N.clear())},off:I,on:L,emit:V,plugins:function(){return a},previousScrollSnap:function(){return n.indexPrevious.get()},reInit:U,rootNode:function(){return e},scrollNext:function(e){K(n.index.add(1).get(),e,-1)},scrollPrev:function(e){K(n.index.add(-1).get(),e,1)},scrollProgress:function(){return n.scrollProgress.get(n.offsetLocation.get())},scrollSnapList:function(){return n.scrollSnapList},scrollTo:K,selectedScrollSnap:q,slideNodes:function(){return o},slidesInView:function(){return n.slidesInView.get()},slidesNotInView:function(){return n.slidesInView.get(!1)}};return H(t,r),setTimeout(()=>N.emit("init"),0),$}function T(e={},t=[]){let r=(0,a.useRef)(e),n=(0,a.useRef)(t),[i,o]=(0,a.useState)(),[u,c]=(0,a.useState)(),d=(0,a.useCallback)(()=>{i&&i.reInit(r.current,n.current)},[i]);return(0,a.useEffect)(()=>{l(r.current,e)||(r.current=e,d())},[e,d]),(0,a.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let r=s(e),n=s(t);return r.every((e,t)=>l(e,n[t]))}(n.current,t)&&(n.current=t,d())},[t,d]),(0,a.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){j.globalOptions=T.globalOptions;let e=j(u,r.current,n.current);return o(e),()=>e.destroy()}o(void 0)},[u,o]),[c,i]}j.globalOptions=void 0,T.globalOptions=void 0;var A=r(34466);let R=(0,i.F)(["@container/carousel","relative"],{compoundVariants:[],defaultVariants:{},variants:{variant:{filmstrip:[],slideshow:[]}}}),P=e=>{let{as:t="div",children:r,className:o,disableKeyboardControl:l=!1,loop:s=!1,opts:u,plugins:c,scroll:d="page",setApi:f,variant:h="filmstrip",...p}=e,[m,v]=T({align:"start",dragFree:"page"===d&&"filmstrip"===h,loop:s,...u,axis:"x"},c),[g,y]=(0,a.useState)(!1),[x,b]=(0,a.useState)(!1),[w,k]=(0,a.useState)(!1),S=(0,a.useCallback)(e=>{e&&(y(e.canScrollPrev()),b(e.canScrollNext()))},[]),C=(0,a.useCallback)(()=>{k(!0)},[]),E=(0,a.useCallback)(()=>{k(!1)},[]),j=(0,a.useCallback)(()=>{if("page"===d&&"filmstrip"===h){let e=(null==v?void 0:v.slidesInView())||[0],t=e.length,r=Math.max((e.shift()||0)-(t-1),0);null==v||v.scrollTo(r);return}null==v||v.scrollPrev()},[v]),P=(0,a.useCallback)(()=>{if("page"===d&&"filmstrip"===h){let e=(null==v?void 0:v.slidesInView())||[0];null==v||v.scrollTo(e.pop()||0);return}null==v||v.scrollNext()},[v]),N=(0,a.useCallback)(e=>{"ArrowLeft"===e.key?(e.preventDefault(),j()):"ArrowRight"===e.key&&(e.preventDefault(),P())},[j,P]);(0,a.useEffect)(()=>{v&&f&&f(v)},[v,f]),(0,a.useEffect)(()=>{if(v)return S(v),v.on("reInit",S),v.on("select",S),v.on("pointerDown",C),v.on("pointerUp",E),()=>{null==v||v.off("select",S),null==v||v.off("pointerDown",C),null==v||v.off("pointerUp",E)}},[v,S]);let M=x||g;return(0,n.jsx)(A.Y.Provider,{value:{api:v,canScrollNext:x,canScrollPrev:g,carouselRef:m,opts:u,scrollNext:P,scrollPrev:j,variant:h},children:(0,n.jsx)(t,{"aria-roledescription":"carousel",className:(0,i.cx)(R({className:o}),{"cursor-grab":M&&!w,"cursor-grabbing":M&&w}),onKeyDownCapture:l?void 0:N,role:"region",...p,"data-ids":"Carousel",children:r})})};P.displayName="Carousel"},88541:(e,t,r)=>{"use strict";r.d(t,{MenuTrigger:()=>i});var n=r(95155),a=r(92031);let i=e=>{let{asChild:t=!0,className:r,...i}=e;return(0,n.jsx)(a.l9,{asChild:t,className:r,...i,"data-ids":"MenuTrigger"})};i.displayName="MenuTrigger"},90794:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(95155),a=r(72107);let i=(0,r(74466).F)(["select-none"],{compoundVariants:[{class:["text-neutral-3","dark:text-neutral-5"],disabled:!1,error:!1}],defaultVariants:{disabled:!1,error:!1},variants:{disabled:{true:["cursor-not-allowed","text-neutral-5","dark:text-neutral-4"]},error:{true:["text-error-2","dark:text-error-3"]}}}),o=({children:e,className:t,disabled:r=!1,error:o=!1,typographyVariant:l="subtitle1",...s})=>(0,n.jsx)(a.o5,{"aria-disabled":!!r,as:"label",className:i({className:t,disabled:r,error:o}),disableColorScheme:!0,variant:l,...s,"data-ids":"InputLabel",children:e});o.displayName="InputLabel"},90869:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});let n=(0,r(12115).createContext)({})},91546:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n=(0,r(12115).createContext)(null)},92031:(e,t,r)=>{"use strict";r.d(t,{UC:()=>eq,q7:()=>eG,JU:()=>e$,ZL:()=>eK,bL:()=>eU,l9:()=>eW});var n=r(12115),a=r(65749),i=r(73595),o=r(66801),l=r(46135),s=r(2279),u=r(66896),c=r(98303),d=r(68991),f=r(6507),h=r(25003),p=r(28635),m=r(52090),v=r(49619),g=r(62824),y=r(77280),x=r(62067),b=r(29385),w=r(7156),k=r(95155),S=["Enter"," "],C=["ArrowUp","PageDown","End"],E=["ArrowDown","PageUp","Home",...C],j={ltr:[...S,"ArrowRight"],rtl:[...S,"ArrowLeft"]},T={ltr:["ArrowLeft"],rtl:["ArrowRight"]},A="Menu",[R,P,N]=(0,u.N)(A),[M,O]=(0,o.A)(A,[N,p.Bk,g.RG]),D=(0,p.Bk)(),L=(0,g.RG)(),[I,V]=M(A),[F,_]=M(A),z=e=>{let{__scopeMenu:t,open:r=!1,children:a,dir:i,onOpenChange:o,modal:l=!0}=e,s=D(t),[u,d]=n.useState(null),f=n.useRef(!1),h=(0,x.c)(o),m=(0,c.j)(i);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,k.jsx)(p.bL,{...s,children:(0,k.jsx)(I,{scope:t,open:r,onOpenChange:h,content:u,onContentChange:d,children:(0,k.jsx)(F,{scope:t,onClose:n.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:f,dir:m,modal:l,children:a})})})};z.displayName=A;var B=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=D(r);return(0,k.jsx)(p.Mz,{...a,...n,ref:t})});B.displayName="MenuAnchor";var H="MenuPortal",[U,W]=M(H,{forceMount:void 0}),K=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:a}=e,i=V(H,t);return(0,k.jsx)(U,{scope:t,forceMount:r,children:(0,k.jsx)(v.C,{present:r||i.open,children:(0,k.jsx)(m.Z,{asChild:!0,container:a,children:n})})})};K.displayName=H;var q="MenuContent",[$,G]=M(q),Y=n.forwardRef((e,t)=>{let r=W(q,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,i=V(q,e.__scopeMenu),o=_(q,e.__scopeMenu);return(0,k.jsx)(R.Provider,{scope:e.__scopeMenu,children:(0,k.jsx)(v.C,{present:n||i.open,children:(0,k.jsx)(R.Slot,{scope:e.__scopeMenu,children:o.modal?(0,k.jsx)(X,{...a,ref:t}):(0,k.jsx)(Z,{...a,ref:t})})})})}),X=n.forwardRef((e,t)=>{let r=V(q,e.__scopeMenu),o=n.useRef(null),l=(0,i.s)(t,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,b.E)(e)},[]),(0,k.jsx)(J,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Z=n.forwardRef((e,t)=>{let r=V(q,e.__scopeMenu);return(0,k.jsx)(J,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Q=(0,y.T)("MenuContent.ScrollLock"),J=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:o=!1,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:m,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:b,onDismiss:S,disableOutsideScroll:j,...T}=e,A=V(q,r),R=_(q,r),N=D(r),M=L(r),O=P(r),[I,F]=n.useState(null),z=n.useRef(null),B=(0,i.s)(t,z,A.onContentChange),H=n.useRef(0),U=n.useRef(""),W=n.useRef(0),K=n.useRef(null),G=n.useRef("right"),Y=n.useRef(0),X=j?w.A:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(H.current),[]),(0,f.O)();let Z=n.useCallback(e=>{var t,r;return G.current===(null==(t=K.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,i=t.length-1;en!=d>n&&r<(c-s)*(n-u)/(d-u)+s&&(a=!a)}return a}({x:e.clientX,y:e.clientY},t)}(e,null==(r=K.current)?void 0:r.area)},[]);return(0,k.jsx)($,{scope:r,searchRef:U,onItemEnter:n.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),onItemLeave:n.useCallback(e=>{var t;Z(e)||(null==(t=z.current)||t.focus(),F(null))},[Z]),onTriggerLeave:n.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),pointerGraceTimerRef:W,onPointerGraceIntentChange:n.useCallback(e=>{K.current=e},[]),children:(0,k.jsx)(X,{...j?{as:Q,allowPinchZoom:!0}:void 0,children:(0,k.jsx)(h.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,a.m)(s,e=>{var t;e.preventDefault(),null==(t=z.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,k.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:b,onDismiss:S,children:(0,k.jsx)(g.bL,{asChild:!0,...M,dir:R.dir,orientation:"vertical",loop:o,currentTabStopId:I,onCurrentTabStopIdChange:F,onEntryFocus:(0,a.m)(m,e=>{R.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,k.jsx)(p.UC,{role:"menu","aria-orientation":"vertical","data-state":eE(A.open),"data-radix-menu-content":"",dir:R.dir,...N,...T,ref:B,style:{outline:"none",...T.style},onKeyDown:(0,a.m)(T.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&(e=>{var t,r;let n=U.current+e,a=O().filter(e=>!e.disabled),i=document.activeElement,o=null==(t=a.find(e=>e.ref.current===i))?void 0:t.textValue,l=function(e,t,r){var n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,o=(n=Math.max(i,0),e.map((t,r)=>e[(n+r)%e.length]));1===a.length&&(o=o.filter(e=>e!==r));let l=o.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}(a.map(e=>e.textValue),n,o),s=null==(r=a.find(e=>e.textValue===l))?void 0:r.ref.current;!function e(t){U.current=t,window.clearTimeout(H.current),""!==t&&(H.current=window.setTimeout(()=>e(""),1e3))}(n),s&&setTimeout(()=>s.focus())})(e.key));let a=z.current;if(e.target!==a||!E.includes(e.key))return;e.preventDefault();let i=O().filter(e=>!e.disabled).map(e=>e.ref.current);C.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,a.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(H.current),U.current="")}),onPointerMove:(0,a.m)(e.onPointerMove,eA(e=>{let t=e.target,r=Y.current!==e.clientX;e.currentTarget.contains(t)&&r&&(G.current=e.clientX>Y.current?"right":"left",Y.current=e.clientX)}))})})})})})})});Y.displayName=q;var ee=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,k.jsx)(s.s.div,{role:"group",...n,ref:t})});ee.displayName="MenuGroup";var et=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,k.jsx)(s.s.div,{...n,ref:t})});et.displayName="MenuLabel";var er="MenuItem",en="menu.itemSelect",ea=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:o,...l}=e,u=n.useRef(null),c=_(er,e.__scopeMenu),d=G(er,e.__scopeMenu),f=(0,i.s)(t,u),h=n.useRef(!1);return(0,k.jsx)(ei,{...l,ref:f,disabled:r,onClick:(0,a.m)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(en,{bubbles:!0,cancelable:!0});e.addEventListener(en,e=>null==o?void 0:o(e),{once:!0}),(0,s.h)(e,t),t.defaultPrevented?h.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),h.current=!0},onPointerUp:(0,a.m)(e.onPointerUp,e=>{var t;h.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;r||t&&" "===e.key||S.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ea.displayName=er;var ei=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:o=!1,textValue:l,...u}=e,c=G(er,r),d=L(r),f=n.useRef(null),h=(0,i.s)(t,f),[p,m]=n.useState(!1),[v,y]=n.useState("");return n.useEffect(()=>{let e=f.current;if(e){var t;y((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,k.jsx)(R.ItemSlot,{scope:r,disabled:o,textValue:null!=l?l:v,children:(0,k.jsx)(g.q7,{asChild:!0,...d,focusable:!o,children:(0,k.jsx)(s.s.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...u,ref:h,onPointerMove:(0,a.m)(e.onPointerMove,eA(e=>{o?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,a.m)(e.onPointerLeave,eA(e=>c.onItemLeave(e))),onFocus:(0,a.m)(e.onFocus,()=>m(!0)),onBlur:(0,a.m)(e.onBlur,()=>m(!1))})})})}),eo=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...i}=e;return(0,k.jsx)(ep,{scope:e.__scopeMenu,checked:r,children:(0,k.jsx)(ea,{role:"menuitemcheckbox","aria-checked":ej(r)?"mixed":r,...i,ref:t,"data-state":eT(r),onSelect:(0,a.m)(i.onSelect,()=>null==n?void 0:n(!!ej(r)||!r),{checkForDefaultPrevented:!1})})})});eo.displayName="MenuCheckboxItem";var el="MenuRadioGroup",[es,eu]=M(el,{value:void 0,onValueChange:()=>{}}),ec=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...a}=e,i=(0,x.c)(n);return(0,k.jsx)(es,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,k.jsx)(ee,{...a,ref:t})})});ec.displayName=el;var ed="MenuRadioItem",ef=n.forwardRef((e,t)=>{let{value:r,...n}=e,i=eu(ed,e.__scopeMenu),o=r===i.value;return(0,k.jsx)(ep,{scope:e.__scopeMenu,checked:o,children:(0,k.jsx)(ea,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":eT(o),onSelect:(0,a.m)(n.onSelect,()=>{var e;return null==(e=i.onValueChange)?void 0:e.call(i,r)},{checkForDefaultPrevented:!1})})})});ef.displayName=ed;var eh="MenuItemIndicator",[ep,em]=M(eh,{checked:!1}),ev=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...a}=e,i=em(eh,r);return(0,k.jsx)(v.C,{present:n||ej(i.checked)||!0===i.checked,children:(0,k.jsx)(s.s.span,{...a,ref:t,"data-state":eT(i.checked)})})});ev.displayName=eh;var eg=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,k.jsx)(s.s.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eg.displayName="MenuSeparator";var ey=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=D(r);return(0,k.jsx)(p.i3,{...a,...n,ref:t})});ey.displayName="MenuArrow";var[ex,eb]=M("MenuSub"),ew="MenuSubTrigger",ek=n.forwardRef((e,t)=>{let r=V(ew,e.__scopeMenu),o=_(ew,e.__scopeMenu),l=eb(ew,e.__scopeMenu),s=G(ew,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,f={__scopeMenu:e.__scopeMenu},h=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>h,[h]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,k.jsx)(B,{asChild:!0,...f,children:(0,k.jsx)(ei,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":eE(r.open),...e,ref:(0,i.t)(t,l.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.m)(e.onPointerMove,eA(t=>{s.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||u.current||(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),h()},100)))})),onPointerLeave:(0,a.m)(e.onPointerLeave,eA(e=>{var t,n;h();let a=null==(t=r.content)?void 0:t.getBoundingClientRect();if(a){let t=null==(n=r.content)?void 0:n.dataset.side,i="right"===t,o=a[i?"left":"right"],l=a[i?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:o,y:a.top},{x:l,y:a.top},{x:l,y:a.bottom},{x:o,y:a.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.m)(e.onKeyDown,t=>{let n=""!==s.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&j[o.dir].includes(t.key)){var a;r.onOpenChange(!0),null==(a=r.content)||a.focus(),t.preventDefault()}})})})});ek.displayName=ew;var eS="MenuSubContent",eC=n.forwardRef((e,t)=>{let r=W(q,e.__scopeMenu),{forceMount:o=r.forceMount,...l}=e,s=V(q,e.__scopeMenu),u=_(q,e.__scopeMenu),c=eb(eS,e.__scopeMenu),d=n.useRef(null),f=(0,i.s)(t,d);return(0,k.jsx)(R.Provider,{scope:e.__scopeMenu,children:(0,k.jsx)(v.C,{present:o||s.open,children:(0,k.jsx)(R.Slot,{scope:e.__scopeMenu,children:(0,k.jsx)(J,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=T[u.dir].includes(e.key);if(t&&r){var n;s.onOpenChange(!1),null==(n=c.trigger)||n.focus(),e.preventDefault()}})})})})})});function eE(e){return e?"open":"closed"}function ej(e){return"indeterminate"===e}function eT(e){return ej(e)?"indeterminate":e?"checked":"unchecked"}function eA(e){return t=>"mouse"===t.pointerType?e(t):void 0}eC.displayName=eS;var eR=r(74539),eP="DropdownMenu",[eN]=(0,o.A)(eP,[O]),eM=O(),[eO,eD]=eN(eP),eL=e=>{let{__scopeDropdownMenu:t,children:r,dir:a,open:i,defaultOpen:o,onOpenChange:s,modal:u=!0}=e,c=eM(t),d=n.useRef(null),[f,h]=(0,l.i)({prop:i,defaultProp:null!=o&&o,onChange:s,caller:eP});return(0,k.jsx)(eO,{scope:t,triggerId:(0,eR.B)(),triggerRef:d,contentId:(0,eR.B)(),open:f,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),modal:u,children:(0,k.jsx)(z,{...c,open:f,onOpenChange:h,dir:a,modal:u,children:r})})};eL.displayName=eP;var eI="DropdownMenuTrigger",eV=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,l=eD(eI,r),u=eM(r);return(0,k.jsx)(B,{asChild:!0,...u,children:(0,k.jsx)(s.s.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,i.t)(t,l.triggerRef),onPointerDown:(0,a.m)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eV.displayName=eI;var eF=e=>{let{__scopeDropdownMenu:t,...r}=e,n=eM(t);return(0,k.jsx)(K,{...n,...r})};eF.displayName="DropdownMenuPortal";var e_="DropdownMenuContent",ez=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...i}=e,o=eD(e_,r),l=eM(r),s=n.useRef(!1);return(0,k.jsx)(Y,{id:o.contentId,"aria-labelledby":o.triggerId,...l,...i,ref:t,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{var t;s.current||null==(t=o.triggerRef.current)||t.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,a.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ez.displayName=e_,n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(ee,{...a,...n,ref:t})}).displayName="DropdownMenuGroup";var eB=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(et,{...a,...n,ref:t})});eB.displayName="DropdownMenuLabel";var eH=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(ea,{...a,...n,ref:t})});eH.displayName="DropdownMenuItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(eo,{...a,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(ec,{...a,...n,ref:t})}).displayName="DropdownMenuRadioGroup",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(ef,{...a,...n,ref:t})}).displayName="DropdownMenuRadioItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(ev,{...a,...n,ref:t})}).displayName="DropdownMenuItemIndicator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(eg,{...a,...n,ref:t})}).displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(ey,{...a,...n,ref:t})}).displayName="DropdownMenuArrow",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(ek,{...a,...n,ref:t})}).displayName="DropdownMenuSubTrigger",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eM(r);return(0,k.jsx)(eC,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var eU=eL,eW=eV,eK=eF,eq=ez,e$=eB,eG=eH},93051:(e,t,r)=>{"use strict";r.d(t,{CarouselItem:()=>o});var n=r(95155),a=r(34466);let i=(0,r(74466).F)(["basis-full","grow-0","min-w-0","shrink-0"],{compoundVariants:[],defaultVariants:{variant:"filmstrip"},variants:{variant:{filmstrip:["@4xl/carousel:basis-1/4","@3xl/carousel:basis-2/6","@2xl/carousel:basis-2/6","@md/carousel:basis-3/6","@xs/carousel:basis-3/5"],slideshow:["last:mr-2","@md/carousel:last:mr-4"]}}}),o=e=>{let{children:t,className:r,...o}=e,{variant:l}=(0,a.g)();return(0,n.jsx)("div",{"aria-roledescription":"slide",className:i({className:r,variant:l}),role:"group",...o,"data-ids":"CarouselItem",children:t})};o.displayName="CarouselItem"},94544:(e,t,r)=>{"use strict";r.d(t,{RadioGroup:()=>l});var n=r(95155),a=r(78699),i=r(91546);let o=(0,r(74466).F)(["flex","gap-4"],{defaultVariants:{colorScheme:"neutral"},variants:{colorScheme:{neutral:[],primary:[],secondary:[]},orientation:{horizontal:"flex-wrap",vertical:"flex-col"}}}),l=e=>{let{children:t,className:r,colorScheme:l="neutral",disableAnimation:s=!1,loop:u=!0,orientation:c="vertical",...d}=e;return(0,n.jsx)(i._.Provider,{value:{colorScheme:l,disableAnimation:s},children:(0,n.jsx)(a.bL,{className:o({className:r,colorScheme:l,orientation:c}),loop:u,...d,"data-ids":"RadioGroup",children:t})})};l.displayName="RadioGroup"},95397:(e,t,r)=>{"use strict";r.d(t,{MenuContent:()=>s});var n=r(95155),a=r(92031),i=r(66714),o=r.n(i),l=r(59439);let s=e=>{let{align:t="center",alignOffset:r=0,avoidCollisions:i=!0,children:s,className:u,collapsePadding:c=!1,container:d,hideWhenDetached:f=!1,loop:h=!1,side:p="bottom",sideOffset:m=4,theme:v="auto",...g}=e;return(0,n.jsx)(o(),{condition:!1!==d,wrapper:e=>(0,n.jsx)(a.ZL,{container:d,children:e}),children:(0,n.jsx)(a.UC,{align:t,alignOffset:r,avoidCollisions:i,className:(0,l.n)({className:u,collapsePadding:c,theme:v}),hideWhenDetached:f,loop:h,side:p,sideOffset:m,...g,"data-ids":"MenuContent",children:s})})};s.displayName="MenuContent"},97494:(e,t,r)=>{"use strict";r.d(t,{E:()=>a});var n=r(12115);let a=r(68972).B?n.useLayoutEffect:n.useEffect},98303:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(12115);r(95155);var a=n.createContext(void 0);function i(e){let t=n.useContext(a);return e||t||"ltr"}}}]); //# sourceMappingURL=4747-ea2e5f25b2e7b8d1.js.map