1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="d5805e63-e042-dade-fc06-694417a759f3")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,610190,e=>{"use strict";var t=e.i(501133),r=e.i(167881),n=e.i(116631),o=e.i(72791);e.s(["default",0,()=>{let e=(0,n.useTranslations)("Home"),{openAuthModal:a}=(0,o.useAuthModal)();return(0,t.jsx)(r.Button,{className:"bg-foreground text-background hover:bg-foreground/90 transition-colors duration-200 rounded-full font-bold px-6 h-9 text-[14px] font-neurokit-body tracking-wide",onClick:a,children:e("login")})}])},25486,e=>{"use strict";var t=e.i(131163);e.i(501133);var r=t.createContext(void 0);e.s(["useDirection",0,function(e){let n=t.useContext(r);return e||n||"ltr"}])},463415,e=>{"use strict";let t;var r=e.i(501133),n=e.i(131163),o=e.i(291967),a=e.i(967928),i=e.i(543250),s=e.i(417256),l=e.i(335859),d=e.i(27894),c=e.i(25486),u=e.i(839166),f=e.i(539340),p=e.i(290041),m=e.i(433616);let h=["top","right","bottom","left"],g=Math.min,x=Math.max,v=Math.round,y=Math.floor,w=e=>({x:e,y:e}
2),b={left:"right",right:"left",bottom:"top",top:"bottom"};function j(e,t){return"function"==typeof e?e(t):e}function k(e){return e.split("-")[0]}function C(e){return e.split("-")[1]}function R(e){return"x"===e?"y":"x"}function N(e){return"y"===e?"height":"width"}function E(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function M(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let P=["left","right"],T=["right","left"],D=["top","bottom"],S=["bottom","top"];function A(e){let t=k(e);return b[t]+e.slice(t.length)}function L(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function I(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function H(e,t,r){let n,{reference:o,floating:a}=e,i=E(t),s=R(E(t)),l=N(s),d=k(t),c="y"===i,u=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,p=o[l]/2-a[l]/2;switch(d){case"top":n={x:u,y:o.y-a.height};break;case"bottom":n={x:u,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:f};break;case"left":n={x:o.x-a.width,y:f};break;default:n={x:o.x,y:o.y}}switch(C(t)){case"start":n[s]-=p*(r&&c?-1:1);break;case"end":n[s]+=p*(r&&c?-1:1)}return n}async function O(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=j(t,e),m=L(p),h=s[f?"floating"===u?"reference":"floating":u],g=I(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(h)))||r?h:h.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:l})),x="floating"===u?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await (null==a.isElement?void 0:a.isElement(v))&&await (null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=I(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:v,strategy:l}):x);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}let F=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=i.detectOverflow?i:{...i,detectOverflow:O},l=await (null==i.isRTL?void 0:i.isRTL(t)),d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=H(d,n,l),f=n,p=0,m={};for(let r=0;r<a.length;r++){let h=a[r];if(!h)continue;let{name:g,fn:x}=h,{x:v,y:y,data:w,reset:b}=await x({x:c,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:m,rects:d,platform:s,elements:{reference:e,floating:t}});c=null!=v?v:c,u=null!=y?y:u,m[g]={...m[g],...w},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(d=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:u}=H(d,f,l)),r=-1)}return{x:c,y:u,placement:f,strategy:o,middlewareData:m}};function _(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function z(e){return h.some(t=>e[t]>=0)}let K=new Set(["left","top"]);async function V(e,t){let{placement:r,platform:n,elements:o}=e,a=await (null==n.isRTL?void 0:n.isRTL(o.floating)),i=k(r),s=C(r),l="y"===E(r),d=K.has(i)?-1:1,c=a&&l?-1:1,u=j(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*c,y:f*d}:{x:f*d,y:p*c}}function $(){return"u">typeof window}function B(e){return U(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function G(e){var t;return null==(t=(U(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function U(e){return!!$()&&(e instanceof Node||e instanceof W(e).Node)}function Y(e){return!!$()&&(e instanceof Element||e instanceof W(e).Element)}function X(e){return!!$()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function q(e){return!(!$()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}function Z(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function J(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let Q=/transform|translate|scale|rotate|perspective|filter/,ee=/paint|layout|strict|content/,et=e=>!!e&&"none"!==e;function er(e){let t=Y(e)?ea(e):e;return et(t.transform)||et(t.translate)||et(t.scale)||et(t.rotate)||et(t.perspective)||!en()&&(et(t.backdropFilter)||et(t.filter))||Q.test(t.willChange||"")||ee.test(t.contain||"")}function en(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function eo(e){return/^(html|body|#document)$/.test(B(e))}function ea(e){return W(e).getComputedStyle(e)}function ei(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function es(e){if("html"===B(e))return e;let t=e.assignedSlot||e.parentNode||q(e)&&e.host||G(e);return q(t)?t.host:t}function el(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=es(t);return eo(r)?t.ownerDocument?t.ownerDocument.body:t.body:X(r)&&Z(r)?r:e(r)}(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),i=W(o);if(!a)return t.concat(o,el(o,[],r));{let e=ed(i);
2return t.concat(i,i.visualViewport||[],Z(o)?o:[],e&&r?el(e):[])}}function ed(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ec(e){let t=ea(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=X(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=v(r)!==a||v(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function eu(e){return Y(e)?e:e.contextElement}function ef(e){let t=eu(e);if(!X(t))return w(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ec(t),i=(a?v(r.width):r.width)/n,s=(a?v(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}let ep=w(0);function em(e){let t=W(e);return en()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ep}function eh(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),i=eu(e),s=w(1);t&&(n?Y(n)&&(s=ef(n)):s=ef(e));let l=(void 0===(o=r)&&(o=!1),n&&(!o||n===W(i))&&o)?em(i):w(0),d=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,u=a.width/s.x,f=a.height/s.y;if(i){let e=W(i),t=n&&Y(n)?W(n):n,r=e,o=ed(r);for(;o&&n&&t!==r;){let e=ef(o),t=o.getBoundingClientRect(),n=ea(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;d*=e.x,c*=e.y,u*=e.x,f*=e.y,d+=a,c+=i,o=ed(r=W(o))}}return I({width:u,height:f,x:d,y:c})}function eg(e,t){let r=ei(e).scrollLeft;return t?t.left+r:eh(G(e)).left+r}function ex(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-eg(e,r),y:r.top+t.scrollTop}}function ev(e,t,r){var n;let o;if("viewport"===t)o=function(e,t){let r=W(e),n=G(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;let e=en();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}let d=eg(n);if(d<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else d<=25&&(a+=d);return{width:a,height:i,x:s,y:l}}(e,r);else if("document"===t){let t,r,a,i,s,l,d;n=G(e),t=G(n),r=ei(n),a=n.ownerDocument.body,i=x(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),s=x(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),l=-r.scrollLeft+eg(n),d=-r.scrollTop,"rtl"===ea(a).direction&&(l+=x(t.clientWidth,a.clientWidth)-i),o={width:i,height:s,x:l,y:d}}else if(Y(t)){let e,n,a,i,s,l;n=(e=eh(t,!0,"fixed"===r)).top+t.clientTop,a=e.left+t.clientLeft,i=X(t)?ef(t):w(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,o={width:s,height:l,x:a*i.x,y:n*i.y}}else{let r=em(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return I(o)}function ey(e){return"static"===ea(e).position}function ew(e,t){if(!X(e)||"fixed"===ea(e).position)return null;if(t)return t(e);let r=e.offsetParent;return G(e)===r&&(r=r.ownerDocument.body),r}function eb(e,t){var r;let n=W(e);if(J(e))return n;if(!X(e)){let t=es(e);for(;t&&!eo(t);){if(Y(t)&&!ey(t))return t;t=es(t)}return n}let o=ew(e,t);for(;o&&(r=o,/^(table|td|th)$/.test(B(r)))&&ey(o);)o=ew(o,t);return o&&eo(o)&&ey(o)&&!er(o)?n:o||function(e){let t=es(e);for(;X(t)&&!eo(t);){if(er(t))return t;if(J(t))break;t=es(t)}return null}(e)||n}let ej=async function(e){let t=this.getOffsetParent||eb,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=X(t),o=G(t),a="fixed"===r,i=eh(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=w(0);if(n||!n&&!a)if(("body"!==B(t)||Z(o))&&(s=ei(t)),n){let e=eh(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=eg(o));a&&!n&&o&&(l.x=eg(o));let d=!o||n||a?w(0):ex(o,s);return{x:i.left+s.scrollLeft-l.x-d.x,y:i.top+s.scrollTop-l.y-d.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ek={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,a="fixed"===o,i=G(n),s=!!t&&J(t.floating);if(n===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},d=w(1),c=w(0),u=X(n);if((u||!u&&!a)&&(("body"!==B(n)||Z(i))&&(l=ei(n)),u)){let e=eh(n);d=ef(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let f=!i||u||a?w(0):ex(i,l);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+f.x,y:r.y*d.y-l.scrollTop*d.y+c.y+f.y}},getDocumentElement:G,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,a=[..."clippingAncestors"===r?J(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=el(e,[],!1).filter(e=>Y(e)&&"body"!==B(e)),o=null,a="fixed"===ea(e).position,i=a?es(e):e;for(;Y(i)&&!eo(i);){let t=ea(i),r=er(i);r||"fixed"!==t.position||(o=null),(a?r||o:!(!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Z(i)&&!r&&function e(t,r){let n=es(t);return!(n===r||!Y(n)||eo(n))&&("fixed"===ea(n).position||e(n,r))}(e,i)))?o=t:n=n.filter(e=>e!==i),i=es(i)}return t.set(e,n),n}(t,this._c):[].concat(r),n],i=ev(t,a[0],o),s=i.top,l=i.right,d=i.bottom,c=i.left;for(let e=1;e<a.length;e++){let r=ev(t,a[e],o);s=x(r.top,s),l=g(r.right,l),d=g(r.bottom,d),c=x(r.left,c)}return{width:l-c,height:d-s,x:c,y:s}},getOffsetParent:eb,getElementRects:ej,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ec(e);return{width:t,height:r}},getScale:ef,isElement:Y,isRTL:function(e){return"rtl"===ea(e).direction}};function eC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eR=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:d,padding:c=0}=j(e,t)||{};if(null==d)return{};let u=L(c),f={x:r,y:n},p=R(E(o)),m=N(p),h=await i.getDimensions(d),v="y"===p,y=v?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],b=f[p]-a.reference[p],k=await (null==i.getOffsetParent?void 0:i.getOffsetParent(d)),M=k?k[y]:0;M&&await (null==i.isElement?void 0:i.isElement(k))||(M=s.floating[y]||a.floating[m]);let P=M/2-h[m]/2-1,T=g(u[v?"top":"left"],P),D=g(u[v?"bottom":"right"],P),S=M-h[m]-D,A=
2M/2-h[m]/2+(w/2-b/2),I=x(T,g(A,S)),H=!l.arrow&&null!=C(o)&&A!==I&&a.reference[m]/2-(A<T?T:D)-h[m]/2<0,O=H?A<T?A-T:A-S:0;return{[p]:f[p]+O,data:{[p]:I,centerOffset:A-I-O,...H&&{alignmentOffset:O}},reset:H}}});var eN=e.i(864374),eE="u">typeof document?n.useLayoutEffect:function(){};function eM(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!eM(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!eM(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eP(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eT(e,t){let r=eP(e);return Math.round(t*r)/r}function eD(e){let t=n.useRef(e);return eE(()=>{t.current=e}),t}var eS=n.forwardRef((e,t)=>{let{children:n,width:o=10,height:a=5,...i}=e;return(0,r.jsx)(l.Primitive.svg,{...i,ref:t,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,r.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eS.displayName="Arrow";var eA=e.i(136131),eL=e.i(672687),eI="Popper",[eH,eO]=(0,i.createContextScope)(eI),[eF,e_]=eH(eI),ez=e=>{let{__scopePopper:t,children:o}=e,[a,i]=n.useState(null);return(0,r.jsx)(eF,{scope:t,anchor:a,onAnchorChange:i,children:o})};ez.displayName=eI;var eK="PopperAnchor",eV=n.forwardRef((e,t)=>{let{__scopePopper:o,virtualRef:i,...s}=e,d=e_(eK,o),c=n.useRef(null),u=(0,a.useComposedRefs)(t,c),f=n.useRef(null);return n.useEffect(()=>{let e=f.current;f.current=i?.current||c.current,e!==f.current&&d.onAnchorChange(f.current)}),i?null:(0,r.jsx)(l.Primitive.div,{...s,ref:u})});eV.displayName=eK;var e$="PopperContent",[eB,eW]=eH(e$),eG=n.forwardRef((e,t)=>{var o,i,s,d,c,u,f,p,m,h,v,w,b;let L,I,H,O,$,B,{__scopePopper:W,side:U="bottom",sideOffset:Y=0,align:X="center",alignOffset:q=0,arrowPadding:Z=0,avoidCollisions:J=!0,collisionBoundary:Q=[],collisionPadding:ee=0,sticky:et="partial",hideWhenDetached:er=!1,updatePositionStrategy:en="optimized",onPlaced:eo,...ea}=e,ei=e_(e$,W),[es,ed]=n.useState(null),ec=(0,a.useComposedRefs)(t,e=>ed(e)),[ef,ep]=n.useState(null),em=function(e){let[t,r]=n.useState(void 0);return(0,eL.useLayoutEffect)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(ef),eg=em?.width??0,ex=em?.height??0,ev="number"==typeof ee?ee:{top:0,right:0,bottom:0,left:0,...ee},ey=Array.isArray(Q)?Q:[Q],ew=ey.length>0,eb={padding:ev,boundary:ey.filter(eq),altBoundary:ew},{refs:ej,floatingStyles:eS,placement:eI,isPositioned:eH,middlewareData:eO}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:d,open:c}=e,[u,f]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=n.useState(o);eM(p,o)||m(o);let[h,g]=n.useState(null),[x,v]=n.useState(null),y=n.useCallback(e=>{e!==k.current&&(k.current=e,g(e))},[]),w=n.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),b=i||h,j=s||x,k=n.useRef(null),C=n.useRef(null),R=n.useRef(u),N=null!=d,E=eD(d),M=eD(a),P=eD(c),T=n.useCallback(()=>{var e,n;let o,a,i;if(!k.current||!C.current)return;let s={placement:t,strategy:r,middleware:p};M.current&&(s.platform=M.current),(e=k.current,n=C.current,o=new Map,i={...(a={platform:ek,...s}).platform,_c:o},F(e,n,{...a,platform:i})).then(e=>{let t={...e,isPositioned:!1!==P.current};D.current&&!eM(R.current,t)&&(R.current=t,eN.flushSync(()=>{f(t)}))})},[p,t,r,M,P]);eE(()=>{!1===c&&R.current.isPositioned&&(R.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let D=n.useRef(!1);eE(()=>(D.current=!0,()=>{D.current=!1}),[]),eE(()=>
2{if(b&&(k.current=b),j&&(C.current=j),b&&j){if(E.current)return E.current(b,j,T);T()}},[b,j,T,E,N]);let S=n.useMemo(()=>({reference:k,floating:C,setReference:y,setFloating:w}),[y,w]),A=n.useMemo(()=>({reference:b,floating:j}),[b,j]),L=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!A.floating)return e;let t=eT(A.floating,u.x),n=eT(A.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...eP(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,A.floating,u.x,u.y]);return n.useMemo(()=>({...u,update:T,refs:S,elements:A,floatingStyles:L}),[u,T,S,A,L])}({strategy:"fixed",placement:U+("center"!==X?"-"+X:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:d=!1}=n,c=eu(e),u=a||i?[...c?el(c):[],...t?el(t):[]]:[];u.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});let f=c&&l?function(e,t){let r,n=null,o=G(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();let d=e.getBoundingClientRect(),{left:c,top:u,width:f,height:p}=d;if(s||t(),!f||!p)return;let m={rootMargin:-y(u)+"px "+-y(o.clientWidth-(c+f))+"px "+-y(o.clientHeight-(u+p))+"px "+-y(c)+"px",threshold:x(0,g(1,l))||1},h=!0;function v(t){let n=t[0].intersectionRatio;if(n!==l){if(!h)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||eC(d,e.getBoundingClientRect())||i(),h=!1}try{n=new IntersectionObserver(v,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(v,m)}n.observe(e)}(!0),a}(c,r):null,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!d&&m.observe(c),t&&m.observe(t));let h=d?eh(e):null;return d&&function t(){let n=eh(e);h&&!eC(h,n)&&r(),h=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{a&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,d&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===en}),elements:{reference:ei.anchor},middleware:[{name:(L={name:"offset",options:i=o={mainAxis:Y+ex,alignmentAxis:q},async fn(e){var t,r;let{x:n,y:o,placement:a,middlewareData:s}=e,l=await V(e,i);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:o+l.y,data:{...l,placement:a}}}}).name,fn:L.fn,options:[o,void 0]},J&&{name:(I={name:"shift",options:c=d={mainAxis:!0,crossAxis:!1,limiter:"partial"===et?{fn:(s=void 0,{options:s={},fn(e){let{x:t,y:r,placement:n,rects:o,middlewareData:a}=e,{offset:i=0,mainAxis:l=!0,crossAxis:d=!0}=j(s,e),c={x:t,y:r},u=E(n),f=R(u),p=c[f],m=c[u],h=j(i,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){let e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+g.mainAxis,r=o.reference[f]+o.reference[e]-g.mainAxis;p<t?p=t:p>r&&(p=r)}if(d){var x,v;let e="y"===f?"width":"height",t=K.has(k(n)),r=o.reference[u]-o.floating[e]+(t&&(null==(x=a.offset)?void 0:x[u])||0)+(t?0:g.crossAxis),i=o.reference[u]+o.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[u])||0)-(t?g.crossAxis:0);m<r?m=r:m>i&&(m=i)}return{[f]:p,[u]:m}}}).fn,options:[void 0,void 0]}:void 0,...eb},async fn(e){let{x:t,y:r,placement:n,platform:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=j(c,e),d={x:t,y:r},u=await o.detectOverflow(e,l),f=E(k(n)),p=R(f),m=d[p],h=d[f];
2if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=m+u[e],n=m-u[t];m=x(r,g(m,n))}if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=h+u[e],n=h-u[t];h=x(r,g(h,n))}let v=s.fn({...e,[p]:m,[f]:h});return{...v,data:{x:v.x-t,y:v.y-r,enabled:{[p]:a,[f]:i}}}}}).name,fn:I.fn,options:[d,void 0]},J&&{name:(H={name:"flip",options:f=u={...eb},async fn(e){var t,r,n,o,a,i,s,l;let d,c,u,{placement:p,middlewareData:m,rects:h,initialPlacement:g,platform:x,elements:v}=e,{mainAxis:y=!0,crossAxis:w=!0,fallbackPlacements:b,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:I="none",flipAlignment:H=!0,...O}=j(f,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let F=k(p),_=E(g),z=k(g)===g,K=await (null==x.isRTL?void 0:x.isRTL(v.floating)),V=b||(z||!H?[A(g)]:(d=A(g),[M(g),d,M(d)])),$="none"!==I;!b&&$&&V.push(...(c=C(g),u=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?T:P;return t?P:T;case"left":case"right":return t?D:S;default:return[]}}(k(g),"start"===I,K),c&&(u=u.map(e=>e+"-"+c),H&&(u=u.concat(u.map(M)))),u));let B=[g,...V],W=await x.detectOverflow(e,O),G=[],U=(null==(r=m.flip)?void 0:r.overflows)||[];if(y&&G.push(W[F]),w){let e,t,r,n,o=(i=p,s=h,void 0===(l=K)&&(l=!1),e=C(i),r=N(t=R(E(i))),n="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[r]>s.floating[r]&&(n=A(n)),[n,A(n)]);G.push(W[o[0]],W[o[1]])}if(U=[...U,{placement:p,overflows:G}],!G.every(e=>e<=0)){let e=((null==(n=m.flip)?void 0:n.index)||0)+1,t=B[e];if(t&&("alignment"!==w||_===E(t)||U.every(e=>E(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let r=null==(o=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(L){case"bestFit":{let e=null==(a=U.filter(e=>{if($){let t=E(e.placement);return t===_||"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:a[0];e&&(r=e);break}case"initialPlacement":r=g}if(p!==r)return{reset:{placement:r}}}return{}}}).name,fn:H.fn,options:[u,void 0]},{name:(O={name:"size",options:m=p={...eb,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${r}px`),i.setProperty("--radix-popper-available-height",`${n}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){var t,r;let n,o,{placement:a,rects:i,platform:s,elements:l}=e,{apply:d=()=>{},...c}=j(m,e),u=await s.detectOverflow(e,c),f=k(a),p=C(a),h="y"===E(a),{width:v,height:y}=i.floating;"top"===f||"bottom"===f?(n=f,o=p===(await (null==s.isRTL?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(o=f,n="end"===p?"top":"bottom");let w=y-u.top-u.bottom,b=v-u.left-u.right,R=g(y-u[n],w),N=g(v-u[o],b),M=!e.middlewareData.shift,P=R,T=N;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(T=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(P=w),M&&!p){let e=x(u.left,0),t=x(u.right,0),r=x(u.top,0),n=x(u.bottom,0);h?T=v-2*(0!==e||0!==t?e+t:x(u.left,u.right)):P=y-2*(0!==r||0!==n?r+n:x(u.top,u.bottom))}await d({...e,availableWidth:T,availableHeight:P});let D=await s.getDimensions(l.floating);return v!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}).name,fn:O.fn,options:[p,void 0]},ef&&{name:($={name:"arrow",options:v=h={element:ef,padding:Z},fn(e){let{element:t,padding:r}="function"==typeof v?v(e):v;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eR({element:t.current,padding:r}).fn(e):{}:t?eR({element:t,padding:r}).fn(e):{}}}).name,fn:$.fn,options:[h,void 0]},eZ({arrowWidth:eg,arrowHeight:ex}),er&&{name:(B={name:"hide",options:b=w={strategy:"referenceHidden",...eb},async fn(e){let{rects:t,platform:r}=e,{strategy:n="referenceHidden",...o}=j(b,e);switch(n){case"referenceHidden":{let n=_(await r.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:z(n)}}}case"escaped":{let n=_(await r.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:z(n)}}}default:return{}}}}).name,fn:B.fn,options:[w,void 0]}]}),[eF,ez]=eJ(eI),eK=(0,eA.useCallbackRef)(eo);(0,eL.useLayoutEffect)(()=>{eH&&eK?.()},[eH,eK]);let eV=eO.arrow?.x,eW=eO.arrow?.y,eG=eO.arrow?.centerOffset!==0,[eU,eY]=n.useState();return(0,eL.useLayoutEffect)(()=>{es&&eY(window.getComputedStyle(es).zIndex)},[es]),(0,r.jsx)("div",{ref:ej.setFloating,"data-radix-popper-content-wrapper":"",style:{...eS,transform:eH?eS.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eU,"--radix-popper-transform-origin":[eO.transformOrigin?.x,eO.transformOrigin?.y].join(" "),...eO.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,r.jsx)(eB,{scope:W,placedSide:eF,onArrowChange:ep,arrowX:eV,arrowY:eW,shouldHideArrow:eG,children:(0,r.jsx)(l.Primitive.div,{"data-side":eF,"data-align":ez,...ea,ref:ec,style:{...ea.style,animation:eH?void 0:"none"}})})})});eG.displayName=e$;
2var eU="PopperArrow",eY={top:"bottom",right:"left",bottom:"top",left:"right"},eX=n.forwardRef(function(e,t){let{__scopePopper:n,...o}=e,a=eW(eU,n),i=eY[a.placedSide];return(0,r.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,r.jsx)(eS,{...o,ref:t,style:{...o.style,display:"block"}})})});function eq(e){return null!==e}eX.displayName=eU;var eZ=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,d]=eJ(r),c={start:"0%",center:"50%",end:"100%"}[d],u=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2,p="",m="";return"bottom"===l?(p=a?c:`${u}px`,m=`${-s}px`):"top"===l?(p=a?c:`${u}px`,m=`${n.floating.height+s}px`):"right"===l?(p=`${-s}px`,m=a?c:`${f}px`):"left"===l&&(p=`${n.floating.width+s}px`,m=a?c:`${f}px`),{data:{x:p,y:m}}}});function eJ(e){let[t,r="center"]=e.split("-");return[t,r]}var eQ=e.i(442110),e0=e.i(754265),e1="rovingFocusGroup.onEntryFocus",e2={bubbles:!1,cancelable:!0},e3="RovingFocusGroup",[e5,e4,e7]=(0,d.createCollection)(e3),[e8,e6]=(0,i.createContextScope)(e3,[e7]),[e9,te]=e8(e3),tt=n.forwardRef((e,t)=>(0,r.jsx)(e5.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(e5.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(tr,{...e,ref:t})})}));tt.displayName=e3;var tr=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:i,orientation:d,loop:u=!1,dir:f,currentTabStopId:p,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:h,onEntryFocus:g,preventScrollOnEntryFocus:x=!1,...v}=e,y=n.useRef(null),w=(0,a.useComposedRefs)(t,y),b=(0,c.useDirection)(f),[j,k]=(0,s.useControllableState)({prop:p,defaultProp:m??null,onChange:h,caller:e3}),[C,R]=n.useState(!1),N=(0,eA.useCallbackRef)(g),E=e4(i),M=n.useRef(!1),[P,T]=n.useState(0);return n.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(e1,N),()=>e.removeEventListener(e1,N)},[N]),(0,r.jsx)(e9,{scope:i,orientation:d,dir:b,loop:u,currentTabStopId:j,onItemFocus:n.useCallback(e=>k(e),[k]),onItemShiftTab:n.useCallback(()=>R(!0),[]),onFocusableItemAdd:n.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>T(e=>e-1),[]),children:(0,r.jsx)(l.Primitive.div,{tabIndex:C||0===P?-1:0,"data-orientation":d,...v,ref:w,style:{outline:"none",...e.style},onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,o.composeEventHandlers)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(e1,e2);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=E().filter(e=>e.focusable);ti([e.find(e=>e.active),e.find(e=>e.id===j),...e].filter(Boolean).map(e=>e.ref.current),x)}}M.current=!1}),onBlur:(0,o.composeEventHandlers)(e.onBlur,()=>R(!1))})})}),tn="RovingFocusGroupItem",to=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:i=!0,active:s=!1,tabStopId:d,children:c,...u}=e,f=(0,m.useId)(),p=d||f,h=te(tn,a),g=h.currentTabStopId===p,x=e4(a),{onFocusableItemAdd:v,onFocusableItemRemove:y,currentTabStopId:w}=h;return n.useEffect(()=>{if(i)return v(),()=>y()},[i,v,y]),(0,r.jsx)(e5.ItemSlot,{scope:a,id:p,focusable:i,active:s,children:(0,r.jsx)(l.Primitive.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,e=>{i?h.onItemFocus(p):e.preventDefault()}),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(p)),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return ta[o]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=x().filter(e=>
2e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=h.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>ti(o))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=w}):c})})});to.displayName=tn;var ta={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ti(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var ts=e.i(652053),tl=e.i(73772),td=e.i(206500),tc=["Enter"," "],tu=["ArrowUp","PageDown","End"],tf=["ArrowDown","PageUp","Home",...tu],tp={ltr:[...tc,"ArrowRight"],rtl:[...tc,"ArrowLeft"]},tm={ltr:["ArrowLeft"],rtl:["ArrowRight"]},th="Menu",[tg,tx,tv]=(0,d.createCollection)(th),[ty,tw]=(0,i.createContextScope)(th,[tv,eO,e6]),tb=eO(),tj=e6(),[tk,tC]=ty(th),[tR,tN]=ty(th),tE=e=>{let{__scopeMenu:t,open:o=!1,children:a,dir:i,onOpenChange:s,modal:l=!0}=e,d=tb(t),[u,f]=n.useState(null),p=n.useRef(!1),m=(0,eA.useCallbackRef)(s),h=(0,c.useDirection)(i);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.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,r.jsx)(ez,{...d,children:(0,r.jsx)(tk,{scope:t,open:o,onOpenChange:m,content:u,onContentChange:f,children:(0,r.jsx)(tR,{scope:t,onClose:n.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:h,modal:l,children:a})})})};tE.displayName=th;var tM=n.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e,a=tb(n);return(0,r.jsx)(eV,{...a,...o,ref:t})});tM.displayName="MenuAnchor";var tP="MenuPortal",[tT,tD]=ty(tP,{forceMount:void 0}),tS=e=>{let{__scopeMenu:t,forceMount:n,children:o,container:a}=e,i=tC(tP,t);return(0,r.jsx)(tT,{scope:t,forceMount:n,children:(0,r.jsx)(e0.Presence,{present:n||i.open,children:(0,r.jsx)(eQ.Portal,{asChild:!0,container:a,children:o})})})};tS.displayName=tP;var tA="MenuContent",[tL,tI]=ty(tA),tH=n.forwardRef((e,t)=>{let n=tD(tA,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,i=tC(tA,e.__scopeMenu),s=tN(tA,e.__scopeMenu);return(0,r.jsx)(tg.Provider,{scope:e.__scopeMenu,children:(0,r.jsx)(e0.Presence,{present:o||i.open,children:(0,r.jsx)(tg.Slot,{scope:e.__scopeMenu,children:s.modal?(0,r.jsx)(tO,{...a,ref:t}):(0,r.jsx)(tF,{...a,ref:t})})})})}),tO=n.forwardRef((e,t)=>{let i=tC(tA,e.__scopeMenu),s=n.useRef(null),l=(0,a.useComposedRefs)(t,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,tl.hideOthers)(e)},[]),(0,r.jsx)(tz,{...e,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})}),tF=n.forwardRef((e,t)=>{let n=tC(tA,e.__scopeMenu);return(0,r.jsx)(tz,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),t_=(0,ts.createSlot)("MenuContent.ScrollLock"),tz=n.forwardRef((e,t)=>{let{__scopeMenu:i,loop:s=!1,trapFocus:l,onOpenAutoFocus:d,onCloseAutoFocus:c,disableOutsidePointerEvents:m,onEntryFocus:h,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:v,onInteractOutside:y,onDismiss:w,disableOutsideScroll:b,...j}=e,k=tC(tA,i),C=tN(tA,i),R=tb(i),N=tj(i),E=tx(i),[M,P]=n.useState(null),T=n.useRef(null),D=(0,a.useComposedRefs)(t,T,k.onContentChange),S=n.useRef(0),A=n.useRef(""),L=n.useRef(0),I=n.useRef(null),H=n.useRef("right"),O=n.useRef(0),F=b?td.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(S.current),[]),(0,f.useFocusGuards)();let _=n.useCallback(e=>{var t,r;return H.current===I.current?.side&&(t=e,!!(r=I.current?.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e],s=t[a],l=i.x,d=i.y,c=s.x,u=s.y;d>n!=u>n&&r<(c-l)*(n-d)/(u-d)+l&&(o=!o)}return o}({x:t.clientX,y:t.clientY},r))},[]);return(0,r.jsx)(tL,{scope:i,searchRef:A,onItemEnter:n.useCallback(e=>{_(e)&&e.preventDefault()},[_]),onItemLeave:n.useCallback(e=>{_(e)||(T.current?.focus(),P(null))},[_]),onTriggerLeave:n.useCallback(e=>{_(e)&&e.preventDefault()},[_]),pointerGraceTimerRef:L,onPointerGraceIntentChange:n.useCallback(e=>{I.current=e},[]),children:(0,r.jsx)(F,{...b?{as:t_,allowPinchZoom:!0}:void 0,children:(0,r.jsx)(p.FocusScope,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.composeEventHandlers)(d,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,r.jsx)(u.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:v,onInteractOutside:y,onDismiss:w,children:(0,r.jsx)(tt,{asChild:!0,...
2N,dir:C.dir,orientation:"vertical",loop:s,currentTabStopId:M,onCurrentTabStopIdChange:P,onEntryFocus:(0,o.composeEventHandlers)(h,e=>{C.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,r.jsx)(eG,{role:"menu","aria-orientation":"vertical","data-state":rr(k.open),"data-radix-menu-content":"",dir:C.dir,...R,...j,ref:D,style:{outline:"none",...j.style},onKeyDown:(0,o.composeEventHandlers)(j.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;if(t){var o;let t,a,i,s,l,d;"Tab"===e.key&&e.preventDefault(),!r&&n&&(o=e.key,t=A.current+o,a=E().filter(e=>!e.disabled),i=document.activeElement,s=a.find(e=>e.ref.current===i)?.textValue,l=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,i=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(i=i.filter(e=>e!==r));let s=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return s!==r?s:void 0}(a.map(e=>e.textValue),t,s),d=a.find(e=>e.textValue===l)?.ref.current,function e(t){A.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout(()=>e(""),1e3))}(t),d&&setTimeout(()=>d.focus()))}let a=T.current;if(e.target!==a||!tf.includes(e.key))return;e.preventDefault();let i=E().filter(e=>!e.disabled).map(e=>e.ref.current);tu.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,o.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),A.current="")}),onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,ra(e=>{let t=e.target,r=O.current!==e.clientX;e.currentTarget.contains(t)&&r&&(H.current=e.clientX>O.current?"right":"left",O.current=e.clientX)}))})})})})})})});tH.displayName=tA;var tK=n.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e;return(0,r.jsx)(l.Primitive.div,{role:"group",...o,ref:t})});tK.displayName="MenuGroup";var tV=n.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e;return(0,r.jsx)(l.Primitive.div,{...o,ref:t})});tV.displayName="MenuLabel";var t$="MenuItem",tB="menu.itemSelect",tW=n.forwardRef((e,t)=>{let{disabled:i=!1,onSelect:s,...d}=e,c=n.useRef(null),u=tN(t$,e.__scopeMenu),f=tI(t$,e.__scopeMenu),p=(0,a.useComposedRefs)(t,c),m=n.useRef(!1);return(0,r.jsx)(tG,{...d,ref:p,disabled:i,onClick:(0,o.composeEventHandlers)(e.onClick,()=>{let e=c.current;if(!i&&e){let t=new CustomEvent(tB,{bubbles:!0,cancelable:!0});e.addEventListener(tB,e=>s?.(e),{once:!0}),(0,l.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?m.current=!1:u.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),m.current=!0},onPointerUp:(0,o.composeEventHandlers)(e.onPointerUp,e=>{m.current||e.currentTarget?.click()}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;i||t&&" "===e.key||tc.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tW.displayName=t$;var tG=n.forwardRef((e,t)=>{let{__scopeMenu:i,disabled:s=!1,textValue:d,...c}=e,u=tI(t$,i),f=tj(i),p=n.useRef(null),m=(0,a.useComposedRefs)(t,p),[h,g]=n.useState(!1),[x,v]=n.useState("");return n.useEffect(()=>{let e=p.current;e&&v((e.textContent??"").trim())},[c.children]),(0,r.jsx)(tg.ItemSlot,{scope:i,disabled:s,textValue:d??x,children:(0,r.jsx)(to,{asChild:!0,...f,focusable:!s,children:(0,r.jsx)(l.Primitive.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...c,ref:m,onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,ra(e=>{s?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,ra(e=>u.onItemLeave(e))),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>g(!0)),onBlur:(0,o.composeEventHandlers)(e.onBlur,()=>g(!1))})})})}),tU=n.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:a,...i}=e;return(0,r.jsx)(t1,{scope:e.__scopeMenu,checked:n,children:(0,r.jsx)(tW,{role:"menuitemcheckbox","aria-checked":rn(n)?"mixed":n,...i,ref:t,"data-state":ro(n),onSelect:(0,o.composeEventHandlers)(i.onSelect,()=>a?.(!!rn(n)||!n),{checkForDefaultPrevented:!1})})})});tU.displayName="MenuCheckboxItem";var tY="MenuRadioGroup",[tX,tq]=ty(tY,{value:void 0,onValueChange:()=>{}}),tZ=n.forwardRef((e,t)=>
2{let{value:n,onValueChange:o,...a}=e,i=(0,eA.useCallbackRef)(o);return(0,r.jsx)(tX,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,r.jsx)(tK,{...a,ref:t})})});tZ.displayName=tY;var tJ="MenuRadioItem",tQ=n.forwardRef((e,t)=>{let{value:n,...a}=e,i=tq(tJ,e.__scopeMenu),s=n===i.value;return(0,r.jsx)(t1,{scope:e.__scopeMenu,checked:s,children:(0,r.jsx)(tW,{role:"menuitemradio","aria-checked":s,...a,ref:t,"data-state":ro(s),onSelect:(0,o.composeEventHandlers)(a.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});tQ.displayName=tJ;var t0="MenuItemIndicator",[t1,t2]=ty(t0,{checked:!1}),t3=n.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:o,...a}=e,i=t2(t0,n);return(0,r.jsx)(e0.Presence,{present:o||rn(i.checked)||!0===i.checked,children:(0,r.jsx)(l.Primitive.span,{...a,ref:t,"data-state":ro(i.checked)})})});t3.displayName=t0;var t5=n.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e;return(0,r.jsx)(l.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});t5.displayName="MenuSeparator";var t4=n.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e,a=tb(n);return(0,r.jsx)(eX,{...a,...o,ref:t})});t4.displayName="MenuArrow";var[t7,t8]=ty("MenuSub"),t6="MenuSubTrigger",t9=n.forwardRef((e,t)=>{let i=tC(t6,e.__scopeMenu),s=tN(t6,e.__scopeMenu),l=t8(t6,e.__scopeMenu),d=tI(t6,e.__scopeMenu),c=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:f}=d,p={__scopeMenu:e.__scopeMenu},m=n.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return n.useEffect(()=>m,[m]),n.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),f(null)}},[u,f]),(0,r.jsx)(tM,{asChild:!0,...p,children:(0,r.jsx)(tG,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":l.contentId,"data-state":rr(i.open),...e,ref:(0,a.composeRefs)(t,l.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,ra(t=>{d.onItemEnter(t),!t.defaultPrevented&&(e.disabled||i.open||c.current||(d.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{i.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,ra(e=>{m();let t=i.content?.getBoundingClientRect();if(t){let r=i.content?.dataset.side,n="right"===r,o=t[n?"left":"right"],a=t[n?"right":"left"];d.onPointerGraceIntentChange({area:[{x:e.clientX+(n?-5:5),y:e.clientY},{x:o,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:o,y:t.bottom}],side:r}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>d.onPointerGraceIntentChange(null),300)}else{if(d.onTriggerLeave(e),e.defaultPrevented)return;d.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,t=>{let r=""!==d.searchRef.current;e.disabled||r&&" "===t.key||tp[s.dir].includes(t.key)&&(i.onOpenChange(!0),i.content?.focus(),t.preventDefault())})})})});t9.displayName=t6;var re="MenuSubContent",rt=n.forwardRef((e,t)=>{let i=tD(tA,e.__scopeMenu),{forceMount:s=i.forceMount,...l}=e,d=tC(tA,e.__scopeMenu),c=tN(tA,e.__scopeMenu),u=t8(re,e.__scopeMenu),f=n.useRef(null),p=(0,a.useComposedRefs)(t,f);return(0,r.jsx)(tg.Provider,{scope:e.__scopeMenu,children:(0,r.jsx)(e0.Presence,{present:s||d.open,children:(0,r.jsx)(tg.Slot,{scope:e.__scopeMenu,children:(0,r.jsx)(tz,{id:u.contentId,"aria-labelledby":u.triggerId,...l,ref:p,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{c.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==u.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:(0,o.composeEventHandlers)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=tm[c.dir].includes(e.key);t&&r&&(d.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function rr(e){return e?"open":"closed"}function rn(e){return"indeterminate"===e}function ro(e){return rn(e)?"indeterminate":e?"checked":"unchecked"}function ra(e){return t=>
2"mouse"===t.pointerType?e(t):void 0}rt.displayName=re;var ri="DropdownMenu",[rs,rl]=(0,i.createContextScope)(ri,[tw]),rd=tw(),[rc,ru]=rs(ri),rf=e=>{let{__scopeDropdownMenu:t,children:o,dir:a,open:i,defaultOpen:l,onOpenChange:d,modal:c=!0}=e,u=rd(t),f=n.useRef(null),[p,h]=(0,s.useControllableState)({prop:i,defaultProp:l??!1,onChange:d,caller:ri});return(0,r.jsx)(rc,{scope:t,triggerId:(0,m.useId)(),triggerRef:f,contentId:(0,m.useId)(),open:p,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),modal:c,children:(0,r.jsx)(tE,{...u,open:p,onOpenChange:h,dir:a,modal:c,children:o})})};rf.displayName=ri;var rp="DropdownMenuTrigger",rm=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:i=!1,...s}=e,d=ru(rp,n),c=rd(n);return(0,r.jsx)(tM,{asChild:!0,...c,children:(0,r.jsx)(l.Primitive.button,{type:"button",id:d.triggerId,"aria-haspopup":"menu","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":d.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:(0,a.composeRefs)(t,d.triggerRef),onPointerDown:(0,o.composeEventHandlers)(e.onPointerDown,e=>{!i&&0===e.button&&!1===e.ctrlKey&&(d.onOpenToggle(),d.open||e.preventDefault())}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{!i&&(["Enter"," "].includes(e.key)&&d.onOpenToggle(),"ArrowDown"===e.key&&d.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});rm.displayName=rp;var rh=e=>{let{__scopeDropdownMenu:t,...n}=e,o=rd(t);return(0,r.jsx)(tS,{...o,...n})};rh.displayName="DropdownMenuPortal";var rg="DropdownMenuContent",rx=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...i}=e,s=ru(rg,a),l=rd(a),d=n.useRef(!1);return(0,r.jsx)(tH,{id:s.contentId,"aria-labelledby":s.triggerId,...l,...i,ref:t,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{d.current||s.triggerRef.current?.focus(),d.current=!1,e.preventDefault()}),onInteractOutside:(0,o.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!s.modal||n)&&(d.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)"}})});rx.displayName=rg,n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(tK,{...a,...o,ref:t})}).displayName="DropdownMenuGroup";var rv=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(tV,{...a,...o,ref:t})});rv.displayName="DropdownMenuLabel";var ry=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(tW,{...a,...o,ref:t})});ry.displayName="DropdownMenuItem";var rw=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(tU,{...a,...o,ref:t})});rw.displayName="DropdownMenuCheckboxItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(tZ,{...a,...o,ref:t})}).displayName="DropdownMenuRadioGroup";var rb=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(tQ,{...a,...o,ref:t})});rb.displayName="DropdownMenuRadioItem";var rj=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(t3,{...a,...o,ref:t})});rj.displayName="DropdownMenuItemIndicator";var rk=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(t5,{...a,...o,ref:t})});rk.displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(t4,{...a,...o,ref:t})}).displayName="DropdownMenuArrow";var rC=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(t9,{...a,...o,ref:t})});rC.displayName="DropdownMenuSubTrigger";var rR=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=rd(n);return(0,r.jsx)(rt,{...a,...o,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)"}})});rR.displayName="DropdownMenuSubContent";var rN=e.i(24901),rE=e.i(647163);n.forwardRef(({className:e,inset:t,children:n,...o},a)=>
2(0,r.jsxs)(rC,{ref:a,className:(0,rE.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[n,(0,r.jsx)(rN.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]})).displayName=rC.displayName,n.forwardRef(({className:e,...t},n)=>(0,r.jsx)(rR,{ref:n,className:(0,rE.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",e),...t})).displayName=rR.displayName;let rM=n.forwardRef(({className:e,sideOffset:t=4,...n},o)=>(0,r.jsx)(rh,{children:(0,r.jsx)(rx,{ref:o,sideOffset:t,className:(0,rE.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",e),...n})}));rM.displayName=rx.displayName;let rP=n.forwardRef(({className:e,inset:t,...n},o)=>(0,r.jsx)(ry,{ref:o,className:(0,rE.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));rP.displayName=ry.displayName,n.forwardRef(({className:e,children:t,checked:n,...o},a)=>(0,r.jsxs)(rw,{ref:a,className:(0,rE.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(rj,{children:(0,r.jsx)(rN.CheckIcon,{className:"h-4 w-4"})})}),t]})).displayName=rw.displayName,n.forwardRef(({className:e,children:t,...n},o)=>(0,r.jsxs)(rb,{ref:o,className:(0,rE.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(rj,{children:(0,r.jsx)(rN.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]})).displayName=rb.displayName,n.forwardRef(({className:e,inset:t,...n},o)=>(0,r.jsx)(rv,{ref:o,className:(0,rE.cn)("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})).displayName=rv.displayName;let rT=n.forwardRef(({className:e,...t},n)=>(0,r.jsx)(rk,{ref:n,className:(0,rE.cn)("-mx-1 my-1 h-px bg-border",e),...t}));rT.displayName=rk.displayName,e.s(["DropdownMenu",0,rf,"DropdownMenuContent",0,rM,"DropdownMenuItem",0,rP,"DropdownMenuSeparator",0,rT,"DropdownMenuTrigger",0,rm],463415)},389563,224192,362583,e=>{"use strict";var t=e.i(374638);let r=(0,t.default)("FolderHeart",[["path",{d:"M11 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v1.5",key:"6hud8k"}],["path",{d:"M13.9 17.45c-1.2-1.2-1.14-2.8-.2-3.73a2.43 2.43 0 0 1 3.44 0l.36.34.34-.34a2.43 2.43 0 0 1 3.45-.01c.95.95 1 2.53-.2 3.74L17.5 21Z",key:"wpff58"}]]);e.s(["FolderHeart",0,r],389563);let n=(0,t.default)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);e.s(["LogOut",0,n],224192);let o=(0,t.default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,o],362583)},787032,e=>{"use strict";var t=e.i(501133),r=e.i(63270),n=e.i(463415),o=e.i(907341),a=e.i(551010),i=e.i(116631),s=e.i(239347),l=e.i(389563),d=e.i(224192),c=e.i(362583);e.s(["default",0,function({user:e}){let u=(0,i.useTranslations)("Home"),f=(0,a.useLocale)(),p=e?.name||"User",m=e?.email||"",h=e?.image||"",g=e?.id||"";return(0,t.jsxs)(n.DropdownMenu,{children:[(0,t.jsx)(n.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)("button",{"data-replay-private":"true","data-clarity-mask":"true",className:"relative rounded-full focus:outline-none focus:ring-2 focus:ring-[#56d27a] dark:focus:ring-[#e0a96d] focus:ring-offset-2 transition-all",children:(0,t.jsxs)(r.Avatar,{className:"w-8 h-8 border border-zinc-200 dark:border-zinc-800",children:[(0,t.jsx)(r.AvatarImage,{src:h,alt:"avatar"}),(0,t.jsx)(r.AvatarFallback,{children:p.slice(0,2).toUpperCase()})]})})}),(0,t.jsxs)(n.DropdownMenuContent,{className:"w-72 bg-white dark:bg-[#0c0c0b] border border-zinc-200 dark:border-[#d4af37]/20 shadow-2xl rounded-2xl p-2 mt-2 transition-all duration-300",children:[(0,t.jsxs)("div",{"data-replay-private":"true","data-clarity-mask":"true",className:"flex items-center gap-3 p-3",children:[(0,t.jsxs)(r.Avatar,{className:"w-11 h-11 border-2 border-zinc-200 dark:border-[#d4af37]/30",children:[(0,t.jsx)(r.AvatarImage,{src:h,alt:"avatar"}),(0,t.jsx)(r.AvatarFallback,{className:"bg-zinc-100 dark:bg-zinc-900 font-bold text-sm",children:p.slice(0,2).toUpperCase()})]}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,t.jsx)("span",{className:"text-sm font-black text-zinc-900 dark:text-[#efe7d3] truncate",children:p}),g&&(0,t.jsxs)("span",{className:"text-[10px] font-mono text-zinc-400 dark:text-zinc-500 mt-0.5",children:["ID: ",g]}),m&&(0,t.jsx)("span",{className:"text-[11px] text-zinc-500 dark:text-zinc-400 truncate",children:m})]})]}),(0,t.jsx)(n.DropdownMenuSeparator,{className:"bg-zinc-100 dark:bg-zinc-900 my-1"}),(0,t.jsx)(n.DropdownMenuItem,{asChild:!0,className:"focus:bg-zinc-50 dark:focus:bg-[#181816] rounded-xl cursor-pointer",children:(0,t.jsxs)(o.default,{href:`/${f}/favorites`,className:"flex items-center justify-between w-full p-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5 text-zinc-700 dark:text-zinc-200",children:[(0,t.jsx)(l.FolderHeart,{className:"w-4 h-4 text-zinc-400 dark:text-zinc-500"}),(0,t.jsx)("span",{className:"text-sm font-bold",children:u("favorites")})]}),(0,t.jsx)(c.ChevronRight,{className:"w-4 h-4 text-zinc-400 dark:text-zinc-600"})]})}),(0,t.jsx)(n.DropdownMenuSeparator,{className:"bg-zinc-100 dark:bg-zinc-900 my-1"}),(0,t.jsx)(n.DropdownMenuItem,{onClick:()=>(0,s.signOut)(),className:"focus:bg-red-50 dark:focus:bg-red-950/20 rounded-xl cursor-pointer",children:(0,t.jsxs)("div",{className:"flex items-center justify-between w-full p-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5 text-red-500 dark:text-red-400",children:[(0,t.jsx)(d.LogOut,{className:"w-4 h-4 text-red-500 dark:text-red-400"}),(0,t.jsx)("span",{className:"text-sm font-bold",children:u("signout")})]}),(0,t.jsx)(c.ChevronRight,{className:"w-4 h-4 text-red-500 dark:text-red-400"})]})})]})]})}])},664379,e=>{"use strict";var t=e.i(501133),r=e.i(167881),n=e.i(160889),o=e.i(463415),a=e.i(306019);let i=(0,e.i(374638).default)("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);var s=e.i(551010);e.s(["default",0,function(){let e=(0,n.usePathname)(),l=(0,s.useLocale)();return(0,t.jsxs)(o.DropdownMenu,{children:[(0,t.jsx)(o.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(r.Button,{variant:"ghost",size:"icon",className:"h-9 w-9 rounded-md border border-gray-200 bg-gray-100/70 hover:bg-gray-200/80 text-gray-500 hover:text-gray-900 dark:border-[#3b372e]/60 dark:bg-[#1d1b17]/50 dark:hover:bg-[#3b372e]/30 dark:text-[#8e8772] dark:hover:text-[#efe7d3] transition-colors",children:[(0,t.jsx)(i,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Change language"})]})}),(0,t.jsx)(o.DropdownMenuContent,{align:"end",className:"border-gray-200 bg-white text-gray-900 dark:border-[#3b372e]/80 dark:bg-[#13120f] dark:text-[#efe7d3] min-w-[12rem] p-1.5 rounded-[8px] shadow-2xl z-50",children:a.locales.map(r=>{let a=r===l;return(0,t.jsx)(o.DropdownMenuItem,{asChild:!0,className:`flex items-center justify-between rounded-[6px] px-3 py-2 text-[13px] font-neurokit-body tracking-wide transition-colors outline-none cursor-pointer my-[2px] ${a?"bg-gray-100 text-gray-900 font-medium dark:bg-[#2a2720]/60 dark:text-[#efe7d3]":"text-gray-600 hover:text-gray-900 focus:bg-gray-50 focus:text-gray-900 dark:text-[#8e8772] dark:hover:text-[#efe7d3] dark:focus:bg-[#3b372e]/30 dark:focus:text-[#efe7d3]"}`,children:(0,t.jsxs)(n.Link,{href:e,locale:r,children:[(0,t.jsx)("span",{children:{en:"English",zh:"䏿",es:"Español",ar:"Ø§ÙØ¹Ø±Ø¨ÙØ©",hi:"हिनà¥à¤¦à¥",pt:"Português",ja:"æ¥æ¬èª",ru:"Ð ÑÑÑкий",id:"Bahasa Indonesia",tr:"Türkçe"}[r]}),a&&(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-primary dark:bg-[#e0a96d] animate-pulse"})]})},r)})})]})}],664379)},620392,e=>{"use strict";var t=e.i(131163),r=e.i(864374),n=e.i(543250),o=e.i(291967),a=e.i(335859),i=e.i(417256),s=e.i(967928),l=e.i(25486),d=e.i(754265),c=e.i(433616),u=e.i(27894),f=e.i(839166),p=e.i(672687),m=e.i(136131),h=e.i(595162),g=e.i(501133),x="NavigationMenu",[v,y,w]=(0,u.createCollection)(x),[b,j,k]=(0,u.createCollection)(x),[C,R]=(0,n.createContextScope)(x,[w,k]),[N,E]=C(x),[M,P]=C(x),T=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:o,onValueChange:d,defaultValue:c,delayDuration:u=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:m,...h}=e,[v,y]=t.useState(null),w=(0,s.useComposedRefs)(r,e=>y(e)),b=(0,l.useDirection)(m),j=t.useRef(0),k=t.useRef(0),C=t.useRef(0),[R,N]=t.useState(!0),[E,M]=(0,i.useControllableState)({prop:o,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(C.current),t&&N(!1)):(window.clearTimeout(C.current),C.current=window.setTimeout(()=>N(!0),f)),d?.(e)},defaultProp:c??"",caller:x}),P=t.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>M(""),150)},[M]),T=t.useCallback(e=>{window.clearTimeout(k.current),M(e)},[M]),D=t.useCallback(e=>{E===e?window.clearTimeout(k.current):j.current=window.setTimeout(()=>{window.clearTimeout(k.current),M(e)},u)},[E,M,u]);return t.useEffect(()=>()=>{window.clearTimeout(j.current),window.clearTimeout(k.current),window.clearTimeout(C.current)},[]),(0,g.jsx)(A,{scope:n,isRootMenu:!0,value:E,dir:b,orientation:p,rootNavigationMenu:v,onTriggerEnter:e=>{window.clearTimeout(j.current),R?D(e):T(e)},onTriggerLeave:()=>{window.clearTimeout(j.current),P()},onContentEnter:()=>window.clearTimeout(k.current),onContentLeave:P,onItemSelect:e=>{M(t=>t===e?"":e)},onItemDismiss:()=>M(""),children:(0,g.jsx)(a.Primitive.nav,{"aria-label":"Main","data-orientation":p,dir:b,...h,ref:w})})});T.displayName=x;var D="NavigationMenuSub",S=t.forwardRef((e,t)=>
2{let{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:s,orientation:l="horizontal",...d}=e,c=E(D,r),[u,f]=(0,i.useControllableState)({prop:n,onChange:o,defaultProp:s??"",caller:D});return(0,g.jsx)(A,{scope:r,isRootMenu:!1,value:u,dir:c.dir,orientation:l,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,g.jsx)(a.Primitive.div,{"data-orientation":l,...d,ref:t})})});S.displayName=D;var A=e=>{let r,{scope:n,isRootMenu:o,rootNavigationMenu:a,dir:i,orientation:s,children:l,value:d,onItemSelect:u,onItemDismiss:f,onTriggerEnter:p,onTriggerLeave:h,onContentEnter:x,onContentLeave:y}=e,[w,b]=t.useState(null),[j,k]=t.useState(new Map),[C,R]=t.useState(null);return(0,g.jsx)(N,{scope:n,isRootMenu:o,rootNavigationMenu:a,value:d,previousValue:(r=t.useRef({value:d,previous:d}),t.useMemo(()=>(r.current.value!==d&&(r.current.previous=r.current.value,r.current.value=d),r.current.previous),[d])),baseId:(0,c.useId)(),dir:i,orientation:s,viewport:w,onViewportChange:b,indicatorTrack:C,onIndicatorTrackChange:R,onTriggerEnter:(0,m.useCallbackRef)(p),onTriggerLeave:(0,m.useCallbackRef)(h),onContentEnter:(0,m.useCallbackRef)(x),onContentLeave:(0,m.useCallbackRef)(y),onItemSelect:(0,m.useCallbackRef)(u),onItemDismiss:(0,m.useCallbackRef)(f),onViewportContentChange:t.useCallback((e,t)=>{k(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:t.useCallback(e=>{k(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,g.jsx)(v.Provider,{scope:n,children:(0,g.jsx)(M,{scope:n,items:j,children:l})})})},L="NavigationMenuList",I=t.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=E(L,r),i=(0,g.jsx)(a.Primitive.ul,{"data-orientation":o.orientation,...n,ref:t});return(0,g.jsx)(a.Primitive.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,g.jsx)(v.Slot,{scope:r,children:o.isRootMenu?(0,g.jsx)(et,{asChild:!0,children:i}):i})})});I.displayName=L;var H="NavigationMenuItem",[O,F]=C(H),_=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:o,...i}=e,s=(0,c.useId)(),l=t.useRef(null),d=t.useRef(null),u=t.useRef(null),f=t.useRef(()=>{}),p=t.useRef(!1),m=t.useCallback((e="start")=>{if(l.current){f.current();let t=eo(l.current);t.length&&ea("start"===e?t:t.reverse())}},[]),h=t.useCallback(()=>{if(l.current){var e;let t=eo(l.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),f.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,g.jsx)(O,{scope:n,value:o||s||"LEGACY_REACT_AUTO_VALUE",triggerRef:d,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:h,onContentFocusOutside:h,children:(0,g.jsx)(a.Primitive.li,{...i,ref:r})})});_.displayName=H;var z="NavigationMenuTrigger",K=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,disabled:i,...l}=e,d=E(z,e.__scopeNavigationMenu),c=F(z,e.__scopeNavigationMenu),u=t.useRef(null),f=(0,s.useComposedRefs)(u,c.triggerRef,r),p=el(d.baseId,c.value),m=ed(d.baseId,c.value),x=t.useRef(!1),y=t.useRef(!1),w=c.value===d.value;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v.ItemSlot,{scope:n,value:c.value,children:(0,g.jsx)(en,{asChild:!0,children:(0,g.jsx)(a.Primitive.button,{id:p,disabled:i,"data-disabled":i?"":void 0,"data-state":es(w),"aria-expanded":w,"aria-controls":m,...l,ref:f,onPointerEnter:(0,o.composeEventHandlers)(e.onPointerEnter,()=>{y.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,ec(()=>{i||y.current||c.wasEscapeCloseRef.current||x.current||(d.onTriggerEnter(c.value),x.current=!0)})),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,ec(()=>{i||(d.onTriggerLeave(),x.current=!1)})),onClick:(0,o.composeEventHandlers)(e.onClick,()=>{d.onItemSelect(c.value),y.current=w}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===d.dir?"ArrowLeft":"ArrowRight"}[d.orientation];w&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),w&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(h.Root,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,r=e.relatedTarget,n=r===u.current,o=t?.contains(r);(n||!o)&&c.onFocusProxyEnter(n?"start":"end")}}),d.viewport&&(0,g.jsx)("span",{"aria-owns":m})]})]})});K.displayName=z;var V="navigationMenu.linkSelect",$=t.forwardRef((e,t)=>
2{let{__scopeNavigationMenu:r,active:n,onSelect:i,...s}=e;return(0,g.jsx)(en,{asChild:!0,children:(0,g.jsx)(a.Primitive.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...s,ref:t,onClick:(0,o.composeEventHandlers)(e.onClick,e=>{let t=e.target,r=new CustomEvent(V,{bubbles:!0,cancelable:!0});if(t.addEventListener(V,e=>i?.(e),{once:!0}),(0,a.dispatchDiscreteCustomEvent)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(q,{bubbles:!0,cancelable:!0});(0,a.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});$.displayName="NavigationMenuLink";var B="NavigationMenuIndicator",W=t.forwardRef((e,t)=>{let{forceMount:n,...o}=e,a=E(B,e.__scopeNavigationMenu),i=!!a.value;return a.indicatorTrack?r.default.createPortal((0,g.jsx)(d.Presence,{present:n||i,children:(0,g.jsx)(G,{...o,ref:t})}),a.indicatorTrack):null});W.displayName=B;var G=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...o}=e,i=E(B,n),s=y(n),[l,d]=t.useState(null),[c,u]=t.useState(null),f="horizontal"===i.orientation,p=!!i.value;t.useEffect(()=>{let e=s(),t=e.find(e=>e.value===i.value)?.ref.current;t&&d(t)},[s,i.value]);let m=()=>{l&&u({size:f?l.offsetWidth:l.offsetHeight,offset:f?l.offsetLeft:l.offsetTop})};return ei(l,m),ei(i.indicatorTrack,m),c?(0,g.jsx)(a.Primitive.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":i.orientation,...o,ref:r,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...o.style}}):null}),U="NavigationMenuContent",Y=t.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=E(U,e.__scopeNavigationMenu),i=F(U,e.__scopeNavigationMenu),l=(0,s.useComposedRefs)(i.contentRef,t),c=i.value===a.value,u={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...n};return a.viewport?(0,g.jsx)(X,{forceMount:r,...u,ref:l}):(0,g.jsx)(d.Presence,{present:r||c,children:(0,g.jsx)(Z,{"data-state":es(c),...u,ref:l,onPointerEnter:(0,o.composeEventHandlers)(e.onPointerEnter,a.onContentEnter),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,ec(a.onContentLeave)),style:{pointerEvents:!c&&a.isRootMenu?"none":void 0,...u.style}})})});Y.displayName=U;var X=t.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=E(U,e.__scopeNavigationMenu);return(0,p.useLayoutEffect)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,p.useLayoutEffect)(()=>()=>n(e.value),[e.value,n]),null}),q="navigationMenu.rootContentDismiss",Z=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:a,triggerRef:i,focusProxyRef:l,wasEscapeCloseRef:d,onRootContentClose:c,onContentFocusOutside:u,...p}=e,m=E(U,n),h=t.useRef(null),x=(0,s.useComposedRefs)(h,r),v=el(m.baseId,a),w=ed(m.baseId,a),b=y(n),j=t.useRef(null),{onItemDismiss:k}=m;t.useEffect(()=>{let e=h.current;if(m.isRootMenu&&e){let t=()=>{k(),c(),e.contains(document.activeElement)&&i.current?.focus()};return e.addEventListener(q,t),()=>e.removeEventListener(q,t)}},[m.isRootMenu,e.value,i,k,c]);let C=t.useMemo(()=>{let e=b().map(e=>e.value);"rtl"===m.dir&&e.reverse();let t=e.indexOf(m.value),r=e.indexOf(m.previousValue),n=a===m.value,o=r===e.indexOf(a);if(!n&&!o)return j.current;let i=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(o&&-1!==t)return t>r?"to-start":"to-end"}return null})();return j.current=i,i},[m.previousValue,m.value,m.dir,b,a]);return(0,g.jsx)(et,{asChild:!0,children:(0,g.jsx)(f.DismissableLayer,{id:w,"aria-labelledby":v,"data-motion":C,"data-orientation":m.orientation,...p,ref:x,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(q,{bubbles:!0,cancelable:!0});h.current?.dispatchEvent(e)},onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>{u();let t=e.target;m.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,o.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,r=b().some(e=>e.ref.current?.contains(t)),n=m.isRootMenu&&m.viewport?.contains(t);(r||n||!m.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eo(e.currentTarget),r=document.activeElement,n=t.findIndex(e=>e===r);ea(e.shiftKey?t.slice(0,n).reverse():t.slice(n+1,t.length))?e.preventDefault():l.current?.focus()}}),onEscapeKeyDown:(0,o.composeEventHandlers)(e.onEscapeKeyDown,e=>{d.current=!0})})})}),J="NavigationMenuViewport",Q=t.forwardRef((e,t)=>
2{let{forceMount:r,...n}=e,o=!!E(J,e.__scopeNavigationMenu).value;return(0,g.jsx)(d.Presence,{present:r||o,children:(0,g.jsx)(ee,{...n,ref:t})})});Q.displayName=J;var ee=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,children:i,...l}=e,c=E(J,n),u=(0,s.useComposedRefs)(r,c.onViewportChange),f=P(U,e.__scopeNavigationMenu),[p,m]=t.useState(null),[h,x]=t.useState(null),v=p?p?.width+"px":void 0,y=p?p?.height+"px":void 0,w=!!c.value,b=w?c.value:c.previousValue;return ei(h,()=>{h&&m({width:h.offsetWidth,height:h.offsetHeight})}),(0,g.jsx)(a.Primitive.div,{"data-state":es(w),"data-orientation":c.orientation,...l,ref:u,style:{pointerEvents:!w&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":y,...l.style},onPointerEnter:(0,o.composeEventHandlers)(e.onPointerEnter,c.onContentEnter),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,ec(c.onContentLeave)),children:Array.from(f.items).map(([e,{ref:t,forceMount:r,...n}])=>{let o=b===e;return(0,g.jsx)(d.Presence,{present:r||o,children:(0,g.jsx)(Z,{...n,ref:(0,s.composeRefs)(t,e=>{o&&e&&x(e)})})},e)})})}),et=t.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=E("FocusGroup",r);return(0,g.jsx)(b.Provider,{scope:r,children:(0,g.jsx)(b.Slot,{scope:r,children:(0,g.jsx)(a.Primitive.div,{dir:o.dir,...n,ref:t})})})}),er=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],en=t.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=j(r),s=E("FocusGroupItem",r);return(0,g.jsx)(b.ItemSlot,{scope:r,children:(0,g.jsx)(a.Primitive.button,{...n,ref:t,onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...er].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),er.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>ea(t)),e.preventDefault()}})})})});function eo(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 ea(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ei(e,t){let r=(0,m.useCallbackRef)(t);(0,p.useLayoutEffect)(()=>{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 es(e){return e?"open":"closed"}function el(e,t){return`${e}-trigger-${t}`}function ed(e,t){return`${e}-content-${t}`}function ec(e){return t=>"mouse"===t.pointerType?e(t):void 0}e.s(["Content",0,Y,"Indicator",0,W,"Item",0,_,"Link",0,$,"List",0,I,"NavigationMenu",0,T,"NavigationMenuContent",0,Y,"NavigationMenuIndicator",0,W,"NavigationMenuItem",0,_,"NavigationMenuLink",0,$,"NavigationMenuList",0,I,"NavigationMenuSub",0,S,"NavigationMenuTrigger",0,K,"NavigationMenuViewport",0,Q,"Root",0,T,"Sub",0,S,"Trigger",0,K,"Viewport",0,Q,"createNavigationMenuScope",0,R],620392)},232834,(e,t,r)=>{t.exports=[{maincategory:{en:"Just Launched",zh:"æ°ä¸çº¿",es:"Recién Lanzado",ar:"تÙ
Ø¥Ø·ÙØ§ÙÙ ÙÙØªÙ",hi:"à¤
à¤à¥ लà¥à¤¨à¥à¤ हà¥à¤",pt:"Recém-Lançado",ja:"æ°ç»å ´",ru:"ТолÑко ÐапÑÑено",id:"Baru Diluncurkan",tr:"Yeni Ãıkan"},slug:"just-launched",emoji:"ð"},{maincategory:{en:"Productivity",zh:"ç产å",es:"Productividad",ar:"Ø§ÙØ¥ÙØªØ§Ø¬ÙØ©",hi:"à¤à¤¤à¥à¤ªà¤¾à¤¦à¤à¤¤à¤¾",pt:"Produtividade",ja:"çç£æ§",ru:"ÐÑодÑкÑивноÑÑÑ",id:"Produktivitas",tr:"Ãretkenlik"},slug:"productivity",emoji:"â±ï¸"},{maincategory:{en:"Video",zh:"è§é¢",es:"Video",ar:"ÙÙØ¯ÙÙ",hi:"वà¥à¤¡à¤¿à¤¯à¥",pt:"VÃdeo",ja:"ãããª",ru:"Ðидео",id:"Video",tr:"Video"},slug:"video",emoji:"ð¥"},{maincategory:{en:"Audio",zh:"é³é¢",es:"Audio",ar:"ØµÙØª",hi:"à¤à¤¡à¤¿à¤¯à¥",pt:"Ãudio",ja:"ãªã¼ãã£ãª",ru:"ÐÑдио",id:"Audio",tr:"Ses"},slug:"audio",emoji:"ð§"},{maincategory:{en:"Image",zh:"å¾å",es:"Imagen",ar:"ØµÙØ±Ø©",hi:"à¤à¤µà¤¿",pt:"Imagem",ja:"ç»å",ru:"ÐзобÑажение",id:"Gambar",tr:"Görüntü"},slug:"image",emoji:"ð¼ï¸"},{maincategory:{en:"Text & Writing",zh:"æåä¸åä½",es:"Texto y Escritura",ar:"اÙÙØµ ÙØ§ÙÙØªØ§Ø¨Ø©",hi:"पाठà¤à¤° लà¥à¤à¤¨",pt:"Texto e Escrita",ja:"ããã¹ãã¨æç« ",ru:"ТекÑÑ Ð¸ ÐиÑÑмо",id:"Teks dan Penulisan",tr:"Metin ve Yazı"},slug:"text-writing",emoji:"âï¸"},{maincategory:{en:"Design & Art",zh:"设计ä¸èºæ¯",es:"Diseño y Arte",ar:"Ø§ÙØªØµÙ
ÙÙ
ÙØ§ÙÙÙ",hi:"डिà¤à¤¾à¤à¤¨ à¤à¤° à¤à¤²à¤¾",pt:"Design e Arte",ja:"ãã¶ã¤ã³ã¨ã¢ã¼ã",ru:"Ðизайн и ÐÑкÑÑÑÑво",id:"Desain dan Seni",tr:"Tasarım ve Sanat"},slug:"design-art",emoji:"ð¨"},{maincategory:{en:"Business",zh:"åä¸",es:"Negocios",ar:"Ø§ÙØ£Ø¹Ù
اÙ",hi:"वà¥à¤¯à¤¾à¤ªà¤¾à¤°",pt:"Negócios",ja:"ãã¸ãã¹",ru:"ÐизнеÑ",id:"Bisnis",tr:"İÅ"},slug:"business",emoji:"ð¼"},{maincategory:{en:"Finance",zh:"éè",es:"Finanzas",ar:"اÙÙ
اÙÙØ©",hi:"वितà¥à¤¤",pt:"Finanças",ja:"ãã¡ã¤ãã³ã¹",ru:"ФинанÑÑ",id:"Keuangan",tr:"Finans"},slug:"finance",emoji:"ð°"},{maincategory:{en:"Marketing",zh:"è¥é",es:"Marketing",ar:"Ø§ÙØªØ³ÙÙÙ",hi:"विपणन",pt:"Marketing",ja:"ãã¼ã±ãã£ã³ã°",ru:"ÐаÑкеÑинг",id:"Pemasaran",tr:"Pazarlama"},slug:"marketing",emoji:"ð¢"},{maincategory:{en:"E-commerce",zh:"çµååå¡",es:"Comercio Electrónico",ar:"Ø§ÙØªØ¬Ø§Ø±Ø© Ø§ÙØ¥ÙÙØªØ±ÙÙÙØ©",hi:"à¤-à¤à¥à¤®à¤°à¥à¤¸",pt:"E-commerce",ja:"Eã³ãã¼ã¹",ru:"ÐлекÑÑÐ¾Ð½Ð½Ð°Ñ ÐоммеÑÑиÑ",id:"E-commerce",tr:"E-ticaret"},slug:"e-commerce",emoji:"ð"},{maincategory:{en:"Developer Tools",zh:"å¼åè
å·¥å
·",es:"Herramientas de Desarrollo",ar:"Ø£Ø¯ÙØ§Øª اÙÙ
Ø·ÙØ±",hi:"डà¥à¤µà¤²à¤ªà¤° à¤à¥à¤²à¥à¤¸",pt:"Ferramentas de Desenvolvimento",ja:"éçºè
ãã¼ã«",ru:"ÐнÑÑÑÑменÑÑ Ð Ð°Ð·ÑабоÑÑика",id:"Alat Pengembang",tr:"GeliÅtirici Araçları"},slug:"developer-tools",emoji:"ð ï¸"},{maincategory:{en:"Research",zh:"ç ç©¶",es:"Investigación",ar:"Ø§ÙØ¨ØØ«",hi:"à¤
नà¥à¤¸à¤à¤
2§à¤¾à¤¨",pt:"Pesquisa",ja:"ç ç©¶",ru:"ÐÑÑледованиÑ",id:"Penelitian",tr:"AraÅtırma"},slug:"research",emoji:"ð¬"},{maincategory:{en:"Education",zh:"æè²",es:"Educación",ar:"Ø§ÙØªØ¹ÙÙÙ
",hi:"शिà¤à¥à¤·à¤¾",pt:"Educação",ja:"æè²",ru:"ÐбÑазование",id:"Pendidikan",tr:"EÄitim"},slug:"education",emoji:"ð"},{maincategory:{en:"Entertainment",zh:"娱ä¹",es:"Entretenimiento",ar:"Ø§ÙØªØ±ÙÙÙ",hi:"मनà¥à¤°à¤à¤à¤¨",pt:"Entretenimento",ja:"ã¨ã³ã¿ã¼ãã¤ã¡ã³ã",ru:"РазвлеÑениÑ",id:"Hiburan",tr:"EÄlence"},slug:"entertainment",emoji:"ð"},{maincategory:{en:"Life Assistant",zh:"çæ´»å©æ",es:"Asistente de Vida",ar:"Ù
ساعد Ø§ÙØÙØ§Ø©",hi:"à¤à¥à¤µà¤¨ सहायà¤",pt:"Assistente de Vida",ja:"ã©ã¤ãã¢ã·ã¹ã¿ã³ã",ru:"ÐомоÑник по Ðизни",id:"Asisten Kehidupan",tr:"YaÅam Asistanı"},slug:"life-assistant",emoji:"ð¤"},{maincategory:{en:"Health & Wellness",zh:"å¥åº·ä¸å
»ç",es:"Salud y Bienestar",ar:"Ø§ÙØµØØ© ÙØ§ÙعاÙÙØ©",hi:"सà¥à¤µà¤¾à¤¸à¥à¤¥à¥à¤¯ à¤à¤° à¤à¤²à¥à¤¯à¤¾à¤£",pt:"Saúde e Bem-estar",ja:"å¥åº·ã¨ã¦ã§ã«ãã¹",ru:"ÐдоÑовÑе и ÐлагополÑÑие",id:"Kesehatan & Kebugaran",tr:"SaÄlık ve Zindelik"},slug:"health-wellness",emoji:"ð§"},{maincategory:{en:"Travel",zh:"æ
è¡",es:"Viajes",ar:"Ø§ÙØ³Ùر",hi:"यातà¥à¤°à¤¾",pt:"Viagem",ja:"æ
è¡",ru:"ÐÑÑеÑеÑÑвиÑ",id:"Perjalanan",tr:"Seyahat"},slug:"travel",emoji:"âï¸"},{maincategory:{en:"Plugins",zh:"æä»¶",es:"Complementos",ar:"Ø§ÙØ¥Ø¶Ø§Ùات",hi:"पà¥à¤²à¤à¤à¤¨à¥à¤¸",pt:"Plugins",ja:"ãã©ã°ã¤ã³",ru:"ÐлагинÑ",id:"Plugin",tr:"Eklentiler"},slug:"plugins",emoji:"ð"},{maincategory:{en:"Chatbots",zh:"è天æºå¨äºº",es:"Chatbots",ar:"Ø±ÙØ¨Ùتات Ø§ÙØ¯Ø±Ø¯Ø´Ø©",hi:"à¤à¥à¤à¤¬à¥à¤à¥à¤¸",pt:"Chatbots",ja:"ãã£ããããã",ru:"ЧаÑбоÑÑ",id:"Chatbot",tr:"Sohbet Botları"},slug:"chatbots",emoji:"ð¬"},{maincategory:{en:"Inspiration",zh:"çµæ",es:"Inspiración",ar:"Ø§ÙØ¥ÙÙØ§Ù
",hi:"पà¥à¤°à¥à¤°à¤£à¤¾",pt:"Inspiração",ja:"ã¤ã³ã¹ãã¬ã¼ã·ã§ã³",ru:"ÐдоÑ
новение",id:"Inspirasi",tr:"İlham"},slug:"inspiration",emoji:"ð¡"},{maincategory:{en:"Consumer Tech",zh:"æ¶è´¹ç§æ",es:"TecnologÃa de Consumo",ar:"تÙÙÙÙÙØ¬Ùا اÙÙ
ستÙÙÙ",hi:"à¤à¤ªà¤à¥à¤à¥à¤¤à¤¾ तà¤à¤¨à¥à¤",pt:"Tecnologia de Consumo",ja:"ã³ã³ã·ã¥ã¼ãã¼ããã¯",ru:"ÐоÑÑебиÑелÑÑкие ТеÑ
нологии",id:"Teknologi Konsumen",tr:"Tüketici Teknolojisi"},slug:"consumer-tech",emoji:"ð±"}]},459765,e=>{"use strict";var t=e.i(501133),r=e.i(160889),n=e.i(551010),o=e.i(232834);e.s(["default",0,function({onClick:e}){let a=(0,n.useLocale)(),i=(0,r.usePathname)();return(0,t.jsx)("div",{className:"flex-grow overflow-y-auto no-scrollbar px-4",children:(0,t.jsx)("div",{className:"pb-10 flex flex-col gap-[2px]",children:o.default.map((n,o)=>{let s=i.includes(`/category/${n.slug}`);return(0,t.jsx)(r.Link,{href:`/category/${n.slug}`,onClick:e,children:(0,t.jsxs)("div",{className:`flex items-center justify-between py-2.5 px-3 rounded-[6px] border transition-all duration-200 cursor-pointer ${s?"bg-gray-100 border-gray-200 text-gray-900 dark:bg-[#2a2720]/40 dark:border-[#3b372e]/60 dark:text-[#efe7d3]":"bg-transparent border-transparent text-[#8e8772] hover:bg-gray-50 hover:text-gray-900 dark:hover:bg-[#3b372e]/20 dark:hover:text-[#efe7d3]"}`,children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("span",{className:"mr-3 text-base flex items-center justify-center",children:n.emoji}),(0,t.jsx)("span",{className:`text-[15px] font-neurokit-body tracking-wide ${s?"font-medium":"font-light"}`,children:n.maincategory[a]})]}),s&&(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-primary dark:bg-[#e0a96d] animate-pulse"})]})},o)})})})}])},270425,e=>{"use strict";var t=e.i(501133),r=e.i(131163),n=e.i(917356),o=e.i(941419),a=e.i(374638);let i=(0,a.default)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),s=(0,a.default)("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);var l=e.i(864374);e.s(["ModeToggle",0,function(){let{theme:e,setTheme:a}=(0,n.useTheme)(),[d,c]=(0,r.useState)(!1);(0,r.useEffect)(()=>{c(!0)},[]);let u=(e,t)=>
2{if(!document.startViewTransition||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void a(e);let r=t.currentTarget.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,i=Math.hypot(Math.max(n,window.innerWidth-n),Math.max(o,window.innerHeight-o)),s=document.documentElement;s.dataset.magicuiThemeVt="active",s.style.setProperty("--magicui-theme-toggle-vt-duration","400ms");let d=`circle(0px at ${n}px ${o}px)`,c=`circle(${i}px at ${n}px ${o}px)`;s.style.setProperty("--magicui-theme-vt-clip-from",d);let u=()=>{delete s.dataset.magicuiThemeVt,s.style.removeProperty("--magicui-theme-toggle-vt-duration"),s.style.removeProperty("--magicui-theme-vt-clip-from")},f=document.startViewTransition(()=>{(0,l.flushSync)(()=>{a(e)})});f?.finished&&"function"==typeof f.finished.finally?f.finished.finally(u):u(),f?.ready?.then(()=>{s.animate({clipPath:[d,c]},{duration:400,easing:"ease-in-out",fill:"forwards",pseudoElement:"::view-transition-new(root)"})})};if(!d)return(0,t.jsxs)("div",{className:"relative flex items-center p-1 bg-gray-100 dark:bg-[#1d1b17]/90 border border-gray-200 dark:border-[#3b372e]/60 rounded-full w-[100px] h-[36px] opacity-50 shrink-0",children:[(0,t.jsx)("div",{className:"w-[30px] h-[28px] rounded-full flex items-center justify-center text-gray-400 dark:text-[#8e8772]",children:(0,t.jsx)(o.Sun,{className:"h-4 w-4"})}),(0,t.jsx)("div",{className:"w-[30px] h-[28px] rounded-full flex items-center justify-center text-gray-400 dark:text-[#8e8772]",children:(0,t.jsx)(i,{className:"h-4 w-4"})}),(0,t.jsx)("div",{className:"w-[30px] h-[28px] rounded-full flex items-center justify-center text-gray-400 dark:text-[#8e8772]",children:(0,t.jsx)(s,{className:"h-4 w-4"})})]});let f=2;return"light"===e&&(f=0),"dark"===e&&(f=1),(0,t.jsxs)("div",{className:"relative flex items-center p-1 bg-gray-100 dark:bg-[#1d1b17]/90 border border-gray-200 dark:border-[#3b372e]/60 rounded-full w-[100px] h-[36px] select-none transition-all shrink-0",children:[(0,t.jsx)("div",{className:`absolute top-[3px] left-[4px] w-[30px] h-[28px] rounded-full bg-white dark:bg-[#efe7d3] shadow-sm dark:shadow-none transition-transform duration-300 ease-out ${0===f?"translate-x-0":1===f?"translate-x-[30px]":"translate-x-[60px]"}`}),(0,t.jsx)("button",{onClick:e=>u("light",e),title:"Light Mode",className:`relative z-10 w-[30px] h-[28px] rounded-full flex items-center justify-center transition-colors ${0===f?"text-gray-900 dark:text-[#13120f]":"text-gray-400 hover:text-gray-600 dark:text-[#8e8772] dark:hover:text-[#efe7d3]"}`,children:(0,t.jsx)(o.Sun,{className:"h-4 w-4 shrink-0"})}),(0,t.jsx)("button",{onClick:e=>u("dark",e),title:"Dark Mode",className:`relative z-10 w-[30px] h-[28px] rounded-full flex items-center justify-center transition-colors ${1===f?"text-gray-900 dark:text-[#13120f]":"text-gray-400 hover:text-gray-600 dark:text-[#8e8772] dark:hover:text-[#efe7d3]"}`,children:(0,t.jsx)(i,{className:"h-4 w-4 shrink-0"})}),(0,t.jsx)("button",{onClick:e=>u("system",e),title:"Follow System Theme",className:`relative z-10 w-[30px] h-[28px] rounded-full flex items-center justify-center transition-colors ${2===f?"text-gray-900 dark:text-[#13120f]":"text-gray-400 hover:text-gray-600 dark:text-[#8e8772] dark:hover:text-[#efe7d3]"}`,children:(0,t.jsx)(s,{className:"h-4 w-4 shrink-0"})})]})}],270425)},27531,e=>{"use strict";var t=e.i(501133),r=e.i(131163),n=e.i(761694),o=e.i(24901),a=e.i(294237),i=e.i(647163);let s=n.Root,l=n.Trigger;n.Close;let d=n.Portal,c=r.forwardRef(({className:e,...r},o)=>(0,t.jsx)(n.Overlay,{className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...r,ref:o}));c.displayName=n.Overlay.displayName;let u=(0,a.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),f=r.forwardRef(({side:e="right",className:r,children:a,...s},l)=>(0,t.jsxs)(d,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)(n.Content,{ref:l,className:(0,i.cn)(u({side:e}),r),...s,children:[(0,t.jsxs)(n.Close,{className:"absolute right-4 top-4 roun
2ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,t.jsx)(o.Cross2Icon,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));f.displayName=n.Content.displayName,r.forwardRef(({className:e,...r},o)=>(0,t.jsx)(n.Title,{ref:o,className:(0,i.cn)("text-lg font-semibold text-foreground",e),...r})).displayName=n.Title.displayName,r.forwardRef(({className:e,...r},o)=>(0,t.jsx)(n.Description,{ref:o,className:(0,i.cn)("text-sm text-muted-foreground",e),...r})).displayName=n.Description.displayName;var p=e.i(459765),m=e.i(167881),h=e.i(63270),g=e.i(116631),x=e.i(551010),v=e.i(160889),y=e.i(72791),w=e.i(239347),b=e.i(664379),j=e.i(270425),k=e.i(374638);let C=(0,k.default)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);var R=e.i(389563);let N=(0,k.default)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),E=(0,k.default)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);var M=e.i(224192),P=e.i(362583),T=e.i(214090);let D=(0,k.default)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);e.s(["default",0,function({user:e}){let[n,o]=(0,r.useState)(!1),[a,i]=(0,r.useState)(!1),d=(0,g.useTranslations)("Home"),c=(0,g.useTranslations)("Showcase");(0,x.useLocale)();let{openAuthModal:u}=(0,y.useAuthModal)(),k=!!e,S=e?.name||"",A=e?.email||"",L=e?.image||"",I=e?.i
2d||"";return(0,t.jsxs)(s,{open:n,onOpenChange:o,children:[(0,t.jsx)(l,{asChild:!0,children:(0,t.jsx)(m.Button,{variant:"ghost",size:"icon",className:"h-9 w-9 border border-gray-200 bg-gray-100/70 hover:bg-gray-200/80 text-gray-500 hover:text-gray-900 dark:border-[#3b372e]/60 dark:bg-[#1d1b17]/50 dark:hover:bg-[#3b372e]/30 dark:text-[#8e8772] dark:hover:text-[#efe7d3] transition-colors",children:(0,t.jsx)(D,{className:"w-4.5 h-4.5"})})}),(0,t.jsxs)(f,{side:"right",className:"w-[310px] sm:w-[360px] p-0 flex flex-col justify-between border-l border-gray-200 bg-white text-gray-900 shadow-2xl dark:border-[#3b372e]/80 dark:bg-[#13120f] dark:text-[#efe7d3]",children:[(0,t.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[k?(0,t.jsx)("div",{"data-clarity-mask":"true","data-replay-private":"true",className:"p-5 border-b border-gray-100 dark:border-[#3b372e]/30 bg-gray-50/50 dark:bg-[#1d1b17]/10 flex flex-col gap-4 select-none",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute -inset-0.5 bg-gradient-to-tr from-[#56d27a] to-emerald-400 dark:from-[#e0a96d] dark:to-[#efe7d3] rounded-full blur-[1px] opacity-75"}),(0,t.jsxs)(h.Avatar,{className:"relative w-12 h-12 border-2 border-white dark:border-[#13120f]",children:[(0,t.jsx)(h.AvatarImage,{src:L,alt:"avatar"}),(0,t.jsx)(h.AvatarFallback,{className:"bg-gray-100 dark:bg-gray-900 font-bold text-sm",children:S.slice(0,2).toUpperCase()})]})]}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,t.jsx)("span",{className:"text-sm font-bold text-gray-900 dark:text-[#efe7d3] truncate",children:S}),I&&(0,t.jsxs)("span",{className:"text-[9px] font-mono text-gray-400 dark:text-[#8e8772] mt-0.5 bg-gray-100 dark:bg-[#1d1b17]/80 px-1.5 py-0.5 rounded w-max",children:["ID: ",I]}),A&&(0,t.jsx)("span",{className:"text-[11px] text-gray-500 dark:text-[#8e8772] truncate mt-0.5",children:A})]})]})}):(0,t.jsx)("div",{className:"h-12 shrink-0"}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto custom-scrollbar p-4 flex flex-col gap-1.5",children:[(0,t.jsxs)(v.Link,{href:"/",onClick:()=>o(!1),className:"flex items-center gap-3.5 py-3 px-3.5 text-gray-700 dark:text-[#efe7d3] hover:bg-gray-100/80 dark:hover:bg-[#2a2720]/25 rounded-[8px] transition-colors",children:[(0,t.jsx)(C,{className:"w-4.5 h-4.5 text-gray-400 dark:text-[#8e8772]"}),(0,t.jsx)("span",{className:"text-sm font-bold font-neurokit-title",children:c("Home")||"Home"})]}),(0,t.jsxs)(v.Link,{href:"/submit","data-business-event":"submit_entry_click","data-placement":"mobile_menu",onClick:()=>o(!1),className:"flex items-center gap-3.5 py-3 px-3.5 text-gray-700 dark:text-[#efe7d3] hover:bg-gray-100/80 dark:hover:bg-[#2a2720]/25 rounded-[8px] transition-colors",children:[(0,t.jsx)(E,{className:"w-4.5 h-4.5 text-gray-400 dark:text-[#8e8772]"}),(0,t.jsx)("span",{className:"text-sm font-bold font-neurokit-title",children:d("submit")||"Submit"})]}),(0,t.jsxs)(v.Link,{href:"/blog",onClick:()=>o(!1),className:"flex items-center gap-3.5 py-3 px-3.5 text-gray-700 dark:text-[#efe7d3] hover:bg-gray-100/80 dark:hover:bg-[#2a2720]/25 rounded-[8px] transition-colors",children:[(0,t.jsx)(N,{className:"w-4.5 h-4.5 text-gray-400 dark:text-[#8e8772]"}),(0,t.jsx)("span",{className:"text-sm font-bold font-neurokit-title",children:d("blog")||"Blog"})]}),k&&(0,t.jsxs)(v.Link,{href:"/favorites",onClick:()=>o(!1),className:"flex items-center gap-3.5 py-3 px-3.5 text-gray-700 dark:text-[#efe7d3] hover:bg-gray-100/80 dark:hover:bg-[#2a2720]/25 rounded-[8px] transition-colors",children:[(0,t.jsx)(R.FolderHeart,{className:"w-4.5 h-4.5 text-gray-400 dark:text-[#8e8772]"}),(0,t.jsx)("span",{className:"text-sm font-bold font-neurokit-title",children:d("favorites")||"My Favorites"})]}),(0,t.jsx)("div",{className:"h-px bg-gray-100 dark:bg-[#3b372e]/30 my-2"}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("button",{onClick:()=>i(!a),className:"flex items-center justify-between w-full py-3 px-3.5 text-gray-700 dark:text-[#efe7d3] hover:bg-gray-100/80 dark:hover:bg-[#2a2720]/25 rounded-[8px] transition-colors text-left",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3.5",children:[(0,t.jsx)(D,{className:"w-4.5 h-4.5 text-gray-400 dark:text-[#8e8772]"}),(0,t.jsx)("span",{className:"text-sm font-bold font-neurokit-title",children:d("categories")||"Categories"})]}),a?(0,t.jsx)(T.ChevronDown,{className:"w-4 h-4 text-gray-400 dark:text-[#8e8772]"}):(0,t.jsx)(P.ChevronRight,{className:"w-4 h-4 text-gray-400 dark:text-[#8e8772]"})]}),a&&(0,t.jsx)("div",{className:"mt-1 pl-4.5 ml-2 border-l-2 border-dashed border-gray-200 dark:border-[#3b372e]/30 max-h-[300px] overflow-y-auto custom-scrollbar",children:(0,t.jsx)(p.default,{onClick:()=>{o(!1)}})})]})]})]}),(0,t.jsxs)("div",{className:"p-4 border-t border-gray-100 dark:border-[#3b372e]/30 bg-gray-50/30 dark:bg-[#1d1b17]/10 flex flex-col gap-3",children:[(0,t.jsx)("div",{className:"flex items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(b.default,{}),(0,t.jsx)(j.ModeToggle,{})]})}),k?(0,t.jsxs)("button",{onClick:()=>{o(!1),(0,w.signOut)()},className:"flex items-center justify-center gap-2 py-2 px-4 w-full text-red-500 dark:text-red-400 hover:bg-red-50/50 dark:hover:bg-red-950/10 rounded-[8px] transition-colors cursor-pointer text-xs font-bold font-neurokit-title border border-red-100 dark:border-red-950/30",children:[(0,t.jsx)(M.LogOut,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:d("signout")||"Sign Out"})]}):(0,t.jsx)("button",{onClick:()=>{o(!1),u()},className:"w-full h-9 rounded-full bg-gradient-to-r from-[#56d27a] to-emerald-400 dark:from-[#e0a96d] dark:to-[#cbb47e] text-white dark:text-[#13120f] font-bold text-xs hover:opacity-95 transition-all shadow-md dark:shadow-none font-neurokit-title uppercase tracking-wider cursor-pointer",children:d("login")||"Log In"})]})]})]})}],27531)},559347,e=>{"use strict";var t=e.i(501133),r=e.i(131163),n=e.i(647163);e.s(["default",0,function({children:e,className:o}){let[a,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>{i(window.scrollY>20)};return window.addEventListener("scroll",e,{passive:!0}
2),e(),()=>window.removeEventListener("scroll",e)},[]),(0,t.jsx)("div",{className:(0,n.cn)("sticky top-0 z-50 w-full transition-all duration-300 ease-in-out",a?"bg-transparent py-3 px-4 md:px-6":"bg-background py-0 px-6",o),children:(0,t.jsx)("div",{className:(0,n.cn)("w-full flex justify-between items-center transition-all duration-300 ease-in-out",a?"max-w-[1280px] mx-auto h-[56px] px-6 rounded-full border border-gray-200 dark:border-[#3b372e]/40 bg-white/80 dark:bg-[#13120f]/85 backdrop-blur-md shadow-[0_12px_30px_-10px_rgba(0,0,0,0.05)] dark:shadow-[0_12px_30px_-10px_rgba(0,0,0,0.7)]":"max-w-[1280px] mx-auto h-[70px] px-0 rounded-none border-transparent bg-transparent"),children:e})})}])}]); 3 4//# debugId=d5805e63-e042-dade-fc06-694417a759f3
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.