1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54943,e=>{"use strict";let t=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,t])},555436,e=>{"use strict";var t=e.i(54943);e.s(["Search",()=>t.default])},755838,(e,t,r)=>{"use strict";var n=e.r(271645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,l=n.useLayoutEffect,s=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var u="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return l(function(){i.value=r,i.getSnapshot=t,c(i)&&u({inst:i})},[e,r,t]),a(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),s(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},802239,(e,t,r)=>{"use strict";t.exports=e.r(755838)},129625,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(502738),i=e.i(271645),o=e.i(30030),a=e.i(30207),l=e.i(934620);e.i(174080);var s=e.i(991918),c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=(0,s.createSlot)(`Primitive.${r}`),o=i.forwardRef((e,i)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?n:r,{...a,ref:i})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{}),u=e.i(802239);function d(){return()=>{}}var f="Avatar",[p,m]=(0,o.createContextScope)(f),[h,x]=p(f),g=i.forwardRef((e,r)=>{let{__scopeAvatar:n,...o}=e,[a,l]=i.useState("idle");return(0,t.jsx)(h,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:l,children:(0,t.jsx)(c.span,{...o,ref:r})})});g.displayName=f;var v="AvatarImage",w=i.forwardRef((e,r)=>{let{__scopeAvatar:n,src:o,onLoadingStatusChange:s=()=>{},...f}=e,p=x(v,n),m=function(e,{referrerPolicy:t,crossOrigin:r}){let n=(0,u.useSyncExternalStore)(d,()=>!0,()=>!1),o=i.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,c]=i.useState(()=>j(a,e));return(0,l.useLayoutEffect)(()=>{c(j(a,e))},[a,e]),(0,l.useLayoutEffect)(()=>{let e=e=>()=>{c(e)};if(!a)return;let n=e("loaded"),i=e("error");return a.addEventListener("load",n),a.addEventListener("error",i),t&&(a.referrerPolicy=t),"string"==typeof r&&(a.crossOrigin=r),()=>{a.removeEventListener("load",n),a.removeEventListener("error",i)}},[a,r,t]),s}(o,f),h=(0,a.useCallbackRef)(e=>{s(e),p.onImageLoadingStatusChange(e)});return(0,l.useLayoutEffect)(()=>{"idle"!==m&&h(m)},[m,h]),"loaded"===m?(0,t.jsx)(c.img,{...f,ref:r,src:o}):null});w.displayName=v;var y="AvatarFallback",b=i.forwardRef((e,r)=>{let{__scopeAvatar:n,delayMs:o,...a}=e,l=x(y,n),[s,u]=i.useState(void 0===o);return i.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>u(!0),o);return()=>window.clearTimeout(e)}},[o]),s&&"loaded"!==l.imageLoadingStatus?(0,t.jsx)(c.span,{...a,ref:r}):null});function j(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}b.displayName=y,e.s(["Avatar",0,g,"AvatarFallback",0,b,"AvatarImage",0,w,"Fallback",0,b,"Image",0,w,"Root",0,g,"createAvatarScope",0,m],97456);var C=e.i(97456),C=C;e.s(["Avatar",0,function(e){let i,o,a,l,s,c=(0,r.c)(10);c[0]!==e?({className:i,size:a,...o}=e,c[0]=e,c[1]=i,c[2]=o,c[3]=a):(i=c[1],o=c[2],a=c[3]);let u=void 0===a?"default":a;return c[4]!==i?(l=(0,n.cn)("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",i),c[4]=i,c[5]=l):l=c[5],c[6]!==o||c[7]!==u||c[8]!==l?(s=(0,t.jsx)(C.Root,{"data-slot":"avatar","data-size":u,className:l,...o}),c[6]=o,c[7]=u,c[8]=l,c[9]=s):s=c[9],s},"AvatarFallback",0,function(e){let i,o,a,l,s=(0,r.c)(8);return s[0]!==e?({className:i,...o}=e,s[0]=e,s[1]=i,s[2]=o):(i=s[1],o=s[2]),s[3]!==i?(a=(0,n.cn)("bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs",i),s[3]=i,s[4]=a):a=s[4],s[5]!==o||s[6]!==a?(l=(0,t.jsx)(C.Fallback,{"data-slot":"avatar-fallback",className:a,...o}),s[5]=o,s[6]=a,s[7]=l):l=s[7],l},"AvatarImage",0,function(e){let i,o,a,l,s=(0,r.c)(8);return s[0]!==e?({className:i,...o}=e,s[0]=e,s[1]=i,s[2]=o):(i=s[1],o=s[2]),s[3]!==i?(a=(0,n.cn)("aspect-square size-full",i),s[3]=i,s[4]=a):a=s[4],s[5]!==o||s[6]!==a?(l=(0,t.jsx)(C.Image,{"data-slot":"avatar-image",className:a,...o}),s[5]=o,s[6]=a,s[7]=l):l=s[7],l}],129625)},853660,343084,229315,953760,258950,635804,e=>{"use strict";var t=e.i(271645);let r=["top","right","bottom","left"],n=r.reduce((e,t)=>
1e.concat(t,t+"-start",t+"-end"),[]),i=Math.min,o=Math.max,a=Math.round,l=Math.floor,s=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function d(e,t,r){return o(e,i(t,r))}function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function x(e){return"y"===e?"height":"width"}let g=new Set(["top","bottom"]);function v(e){return g.has(p(e))?"y":"x"}function w(e){return h(v(e))}function y(e,t,r){void 0===r&&(r=!1);let n=m(e),i=w(e),o=x(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=E(a)),[a,E(a)]}function b(e){let t=E(e);return[j(e),t,j(t)]}function j(e){return e.replace(/start|end/g,e=>u[e])}let C=["left","right"],P=["right","left"],R=["top","bottom"],k=["bottom","top"];function S(e,t,r,n){let i=m(e),o=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?P:C;return t?C:P;case"left":case"right":return t?R:k;default:return[]}}(p(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(j)))),o}function E(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function T(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function N(e,t,r){let n,{reference:i,floating:o}=e,a=v(t),l=w(t),s=x(l),c=p(t),u="y"===a,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;switch(c){case"top":n={x:d,y:i.y-o.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:f};break;case"left":n={x:i.x-o.width,y:f};break;default:n={x:i.x,y:i.y}}switch(m(t)){case"start":n[l]-=h*(r&&u?-1:1);break;case"end":n[l]+=h*(r&&u?-1:1)}return n}async function L(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=f(t,e),h=T(m),x=l[p?"floating"===d?"reference":"floating":d],g=A(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(x)))||r?x:x.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),y=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},b=A(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:w,strategy:s}):v);return{top:(g.top-b.top+h.top)/y.y,bottom:(b.bottom-g.bottom+h.bottom)/y.y,left:(g.left-b.left+h.left)/y.x,right:(b.right-g.right+h.right)/y.x}}e.s(["clamp",0,d,"createCoords",0,s,"evaluate",0,f,"floor",0,l,"getAlignment",0,m,"getAlignmentAxis",0,w,"getAlignmentSides",0,y,"getAxisLength",0,x,"getExpandedPlacements",0,b,"getOppositeAlignmentPlacement",0,j,"getOppositeAxis",0,h,"getOppositeAxisPlacements",0,S,"getOppositePlacement",0,E,"getPaddingObject",0,T,"getSide",0,p,"getSideAxis",0,v,"max",0,o,"min",0,i,"placements",0,n,"rectToClientRect",0,A,"round",0,a,"sides",0,r],343084);let z=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,l=o.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=N(c,n,s),f=n,p={},m=0;for(let r=0;r<l.length;r++){var h;let{name:o,fn:x}=l[r],{x:g,y:v,data:w,reset:y}=await x({x:u,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:p,rects:c,platform:{...a,detectOverflow:null!=(h=a.detectOverflow)?h:L},elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[o]:{...p[o],...w}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:i}
1):y.rects),{x:u,y:d}=N(c,f,s)),r=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};function O(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return r.some(t=>e[t]>=0)}function M(e){let t=i(...e.map(e=>e.left)),r=i(...e.map(e=>e.top));return{x:t,y:r,width:o(...e.map(e=>e.right))-t,height:o(...e.map(e=>e.bottom))-r}}let H=new Set(["left","top"]);async function I(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=p(r),l=m(r),s="y"===v(r),c=H.has(a)?-1:1,u=o&&s?-1:1,d=f(t,e),{mainAxis:h,crossAxis:x,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof g&&(x="end"===l?-1*g:g),s?{x:x*u,y:h*c}:{x:h*c,y:x*u}}function F(){return"u">typeof window}function _(e){return $(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){var t;return null==(t=($(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $(e){return!!F()&&(e instanceof Node||e instanceof W(e).Node)}function U(e){return!!F()&&(e instanceof Element||e instanceof W(e).Element)}function V(e){return!!F()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function X(e){return!(!F()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}let Y=new Set(["inline","contents"]);function K(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=el(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Y.has(i)}let q=new Set(["table","td","th"]);function G(e){return q.has(_(e))}let Q=[":popover-open",":modal"];function J(e){return Q.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let Z=["transform","translate","scale","rotate","perspective"],ee=["transform","translate","scale","rotate","perspective","filter"],et=["paint","layout","strict","content"];function er(e){let t=ei(),r=U(e)?el(e):e;return Z.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||ee.some(e=>(r.willChange||"").includes(e))||et.some(e=>(r.contain||"").includes(e))}function en(e){let t=ec(e);for(;V(t)&&!ea(t);){if(er(t))return t;if(J(t))break;t=ec(t)}return null}function ei(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eo=new Set(["html","body","#document"]);function ea(e){return eo.has(_(e))}function el(e){return W(e).getComputedStyle(e)}function es(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ec(e){if("html"===_(e))return e;let t=e.assignedSlot||e.parentNode||X(e)&&e.host||B(e);return X(t)?t.host:t}function eu(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=ec(t);return ea(r)?t.ownerDocument?t.ownerDocument.body:t.body:V(r)&&K(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=W(i);if(o){let e=ed(a);return t.concat(a,a.visualViewport||[],K(i)?i:[],e&&r?eu(e):[])}return t.concat(i,eu(i,[],r))}function ed(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ef(e){let t=el(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=V(e),o=i?e.offsetWidth:r,l=i?e.offsetHeight:n,s=a(r)!==o||a(n)!==l;return s&&(r=o,n=l),{width:r,height:n,$:s}}function ep(e){return U(e)?e:e.contextElement}function em(e){let t=ep(e);if(!V(t))return s(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=ef(t),l=(o?a(r.width):r.width)/n,c=(o?a(r.height):r.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}e.s(["getComputedStyle",0,el,"getContainingBlock",0,en,"getDocumentElement",0,B,"getFrameElement",0,ed,"getNodeName",0,_,"getNodeScroll",0,es,"getOverflowAncestors",0,eu,"getParentNode",0,ec,"getWindow",0,W,"isContainingBlock",0,er,"isElement",0,U,"isHTMLElement",0,V,"isLastTraversableNode",0,ea,"isNode",0,$,"isOverflowElement",0,K,"isShadowRoot",0,X,"isTableElement",0,G,"isTopLayer",0,J,"isWebKit",0,ei],229315);let eh=s(0);function ex(e){let t=W(e);
1return ei()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eh}function eg(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=ep(e),l=s(1);t&&(n?U(n)&&(l=em(n)):l=em(e));let c=(void 0===(i=r)&&(i=!1),n&&(!i||n===W(a))&&i)?ex(a):s(0),u=(o.left+c.x)/l.x,d=(o.top+c.y)/l.y,f=o.width/l.x,p=o.height/l.y;if(a){let e=W(a),t=n&&U(n)?W(n):n,r=e,i=ed(r);for(;i&&n&&t!==r;){let e=em(i),t=i.getBoundingClientRect(),n=el(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,d*=e.y,f*=e.x,p*=e.y,u+=o,d+=a,i=ed(r=W(i))}}return A({width:f,height:p,x:u,y:d})}function ev(e,t){let r=es(e).scrollLeft;return t?t.left+r:eg(B(e)).left+r}function ew(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ev(e,r),y:r.top+t.scrollTop}}let ey=new Set(["absolute","fixed"]);function eb(e,t,r){var n;let i;if("viewport"===t)i=function(e,t){let r=W(e),n=B(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;let e=ei();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}let c=ev(n);if(c<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else c<=25&&(o+=c);return{width:o,height:a,x:l,y:s}}(e,r);else if("document"===t){let t,r,a,l,s,c,u;n=B(e),t=B(n),r=es(n),a=n.ownerDocument.body,l=o(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),s=o(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),c=-r.scrollLeft+ev(n),u=-r.scrollTop,"rtl"===el(a).direction&&(c+=o(t.clientWidth,a.clientWidth)-l),i={width:l,height:s,x:c,y:u}}else if(U(t)){let e,n,o,a,l,c;n=(e=eg(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,a=V(t)?em(t):s(1),l=t.clientWidth*a.x,c=t.clientHeight*a.y,i={width:l,height:c,x:o*a.x,y:n*a.y}}else{let r=ex(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return A(i)}function ej(e){return"static"===el(e).position}function eC(e,t){if(!V(e)||"fixed"===el(e).position)return null;if(t)return t(e);let r=e.offsetParent;return B(e)===r&&(r=r.ownerDocument.body),r}function eP(e,t){let r=W(e);if(J(e))return r;if(!V(e)){let t=ec(e);for(;t&&!ea(t);){if(U(t)&&!ej(t))return t;t=ec(t)}return r}let n=eC(e,t);for(;n&&G(n)&&ej(n);)n=eC(n,t);return n&&ea(n)&&ej(n)&&!er(n)?r:n||en(e)||r}let eR=async function(e){let t=this.getOffsetParent||eP,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=V(t),i=B(t),o="fixed"===r,a=eg(e,!0,o,t),l={scrollLeft:0,scrollTop:0},c=s(0);if(n||!n&&!o)if(("body"!==_(t)||K(i))&&(l=es(t)),n){let e=eg(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=ev(i));o&&!n&&i&&(c.x=ev(i));let u=!i||n||o?s(0):ew(i,l);return{x:a.left+l.scrollLeft-c.x-u.x,y:a.top+l.scrollTop-c.y-u.y,width:a.width,height:a.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:i}=e,o="fixed"===i,a=B(n),l=!!t&&J(t.floating);if(n===a||l&&o)return r;let c={scrollLeft:0,scrollTop:0},u=s(1),d=s(0),f=V(n);if((f||!f&&!o)&&(("body"!==_(n)||K(a))&&(c=es(n)),V(n))){let e=eg(n);u=em(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let p=!a||f||o?s(0):ew(a,c);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:r.y*u.y-c.scrollTop*u.y+d.y+p.y}},getDocumentElement:B,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,l=[..."clippingAncestors"===r?J(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=eu(e,[],!1).filter(e=>U(e)&&"body"!==_(e)),i=null,o="fixed"===el(e).position,a=o?ec(e):e;for(;U(a)&&!ea(a);){let t=el(a),r=er(a);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&ey.has(i.position)||K(a)&&!r&&function e(t,r){let n=ec(t);return!(n===r||!U(n)||ea(n))&&("fixed"===el(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):i=t,a=ec(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=l[0],c=l.reduce((e,r)=>{let n=eb(t,r,a);return e.top=o(n.top,e.top),e.right=i(n.right,e.right),e.bottom=i(n.bottom,e.bottom),e.left=o(n.left,e.left),e},eb(t,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:eP,getElementRects:eR,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ef(e);return{width:t,height:r}},getScale:em,isElement:U,isRTL:function(e){return"rtl"===el(e).direction}};function eS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eE(e,t,r,n){let a;void 0===n&&(n={});let{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=n,p=ep(e),m=s||c?[...p?eu(p):[],...eu(t)]:[];
1m.forEach(e=>{s&&e.addEventListener("scroll",r,{passive:!0}),c&&e.addEventListener("resize",r)});let h=p&&d?function(e,t){let r,n=null,a=B(e);function s(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function c(u,d){void 0===u&&(u=!1),void 0===d&&(d=1),s();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:x}=f;if(u||t(),!h||!x)return;let g={rootMargin:-l(m)+"px "+-l(a.clientWidth-(p+h))+"px "+-l(a.clientHeight-(m+x))+"px "+-l(p)+"px",threshold:o(0,i(1,d))||1},v=!0;function w(t){let n=t[0].intersectionRatio;if(n!==d){if(!v)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==n||eS(f,e.getBoundingClientRect())||c(),v=!1}try{n=new IntersectionObserver(w,{...g,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(w,g)}n.observe(e)}(!0),s}(p,r):null,x=-1,g=null;u&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),p&&!f&&g.observe(p),g.observe(t));let v=f?eg(e):null;return f&&function t(){let n=eg(e);v&&!eS(v,n)&&r(),v=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;m.forEach(e=>{s&&e.removeEventListener("scroll",r),c&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(a)}}let eT=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:a,middlewareData:l}=t,s=await I(t,e);return a===(null==(r=l.offset)?void 0:r.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:a}}}}},eA=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=f(e,t),u={x:r,y:n},m=await o.detectOverflow(t,c),x=v(p(i)),g=h(x),w=u[g],y=u[x];if(a){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",r=w+m[e],n=w-m[t];w=d(r,w,n)}if(l){let e="y"===x?"top":"left",t="y"===x?"bottom":"right",r=y+m[e],n=y-m[t];y=d(r,y,n)}let b=s.fn({...t,[g]:w,[x]:y});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[g]:a,[x]:l}}}}}},eN=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o,a;let{placement:l,middlewareData:s,rects:c,initialPlacement:u,platform:d,elements:m}=t,{mainAxis:h=!0,crossAxis:x=!0,fallbackPlacements:g,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:C=!0,...P}=f(e,t);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};let R=p(l),k=v(u),T=p(u)===u,A=await (null==d.isRTL?void 0:d.isRTL(m.floating)),N=g||(T||!C?[E(u)]:b(u)),L="none"!==j;!g&&L&&N.push(...S(u,C,j,A));let z=[u,...N],O=await d.detectOverflow(t,P),D=[],M=(null==(n=s.flip)?void 0:n.overflows)||[];if(h&&D.push(O[R]),x){let e=y(l,c,A);D.push(O[e[0]],O[e[1]])}if(M=[...M,{placement:l,overflows:D}],!D.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=z[e];if(t&&("alignment"!==x||k===v(t)||M.every(e=>v(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let r=null==(o=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(w){case"bestFit":{let e=null==(a=M.filter(e=>{if(L){let t=v(e.placement);return t===k||"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=u}if(l!==r)return{reset:{placement:r}}}return{}}}},eL=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let a,l,{placement:s,rects:c,platform:u,elements:d}=t,{apply:h=()=>{},...x}=f(e,t),g=await u.detectOverflow(t,x),w=p(s),y=m(s),b="y"===v(s),{width:j,height:C}=c.floating;"top"===w||"bottom"===w?(a=w,l=y===(await (null==u.isRTL?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(l=w,a="end"===y?"top":"bottom");let P=C-g.top-g.bottom,R=j-g.left-g.right,k=i(C-g[a],P),S=i(j-g[l],R),E=!t.middlewareData.shift,T=k,A=S;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(A=R),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(T=P),E&&!y){let e=o(g.left,0),t=o(g.right,0),r=o(g.top,0),n=o(g.bottom,0);b?A=j-2*(0!==e||0!==t?e+t:o(g.left,g.right)):T=C-2*(0!==r||0!==n?r+n:o(g.top,g.bottom))}await h({...t,availableWidth:A,availableHeight:T});let N=await u.getDimensions(d.floating);return j!==N.width||C!==N.height?{reset:{rects:!0}}:{}}}},ez=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:n}=t,{strategy:i="referenceHidden",...o}=f(e,t);switch(i){case"referenceHidden":{let e=O(await n.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:D(e)}}}case"escaped":{let e=O(await n.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:D(e)}}}default:return{}}}}},eO=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:a,platform:l,elements:s,middlewareData:c}=t,{element:u,padding:p=0}=f(e,t)||{};if(null==u)return{};let h=T(p),g={x:r,y:n},v=w(o),y=x(v),b=await l.getDimensions(u),j="y"===v,C=j?"clientHeight":"clientWidth",P=a.reference[y]+a.reference[v]-g[v]-a.floating[y],R=g[v]-a.reference[v],k=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u)),S=k?k[C]:0;S&&await (null==l.isElement?void 0:l.isElement(k))||(S=s.floating[C]||a.floating[y]);let E=S/2-b[y]/2-1,A=i(h[j?"top":"left"],E),N=i(h[j?"bottom":"right"],E),L=S-b[y]-N,z=S/2-b[y]/2+(P/2-R/2),O=d(A,z,L),D=!c.arrow&&null!=m(o)&&z!==O&&a.reference[y]/2-(z<A?A:N)-b[y]/2<0,M=D?z<A?z-A:z-L:0;return{[v]:g[v]+M,data:{[v]:O,centerOffset:z-O-M,...D&&{alignmentOffset:M}},reset:D}}}),eD=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=f(e,t),u={x:r,y:n},d=v(i),m=h(d),x=u[m],g=u[d],w=f(l,t),y="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(s){let e="y"===m?"height":"width",t=o.reference[m]-o.floating[e]+y.mainAxis,r=o.reference[m]+o.reference[e]-y.mainAxis;x<t?x=t:x>r&&(x=r)}if(c){var b,j;let e="y"===m?"width":"height",t=H.has(p(i)),r=o.reference[d]-o.floating[e]+(t&&(null==(b=a.offset)?void 0:b[d])||0)+(t?0:y.crossAxis),n=o.reference[d]+o.reference[e]+(t?0:(null==(j=a.offset)?void 0:j[d])||0)-(t?y.crossAxis:0);g<r?g=r:g>n&&(g=n)}return{[m]:x,[d]:g}}}},eM=(e,t,r)=>{let n=new Map,i={platform:ek,...r},o={...i.platform,_c:n};return z(e,t,{...i,platform:o})};e.s(["arrow",0,eO,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,o,a;let{rects:l,middlewareData:s,placement:c,platform:u,elements:d}=t,{crossAxis:h=!1,alignment:x,allowedPlacements:g=n,autoAlignment:v=!0,...w}=f(e,t),b=void 0!==x||g===n?((a=x||null)?[...g.filter(e=>
1m(e)===a),...g.filter(e=>m(e)!==a)]:g.filter(e=>p(e)===e)).filter(e=>!a||m(e)===a||!!v&&j(e)!==e):g,C=await u.detectOverflow(t,w),P=(null==(r=s.autoPlacement)?void 0:r.index)||0,R=b[P];if(null==R)return{};let k=y(R,l,await (null==u.isRTL?void 0:u.isRTL(d.floating)));if(c!==R)return{reset:{placement:b[0]}};let S=[C[p(R)],C[k[0]],C[k[1]]],E=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:R,overflows:S}],T=b[P+1];if(T)return{data:{index:P+1,overflows:E},reset:{placement:T}};let A=E.map(e=>{let t=m(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),N=(null==(o=A.filter(e=>e[2].slice(0,m(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||A[0][0];return N!==c?{data:{index:P+1,overflows:E},reset:{placement:N}}:{}}}},"autoUpdate",0,eE,"computePosition",0,eM,"flip",0,eN,"hide",0,ez,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:r,elements:n,rects:a,platform:l,strategy:s}=t,{padding:c=2,x:u,y:d}=f(e,t),m=Array.from(await (null==l.getClientRects?void 0:l.getClientRects(n.reference))||[]),h=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),r=[],n=null;for(let e=0;e<t.length;e++){let i=t[e];!n||i.y-n.y>n.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(e=>A(M(e)))}(m),x=A(M(m)),g=T(c),w=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=u&&null!=d)return h.find(e=>u>e.left-g.left&&u<e.right+g.right&&d>e.top-g.top&&d<e.bottom+g.bottom)||x;if(h.length>=2){if("y"===v(r)){let e=h[0],t=h[h.length-1],n="top"===p(r),i=e.top,o=t.bottom,a=n?e.left:t.left,l=n?e.right:t.right;return{top:i,bottom:o,left:a,right:l,width:l-a,height:o-i,x:a,y:i}}let e="left"===p(r),t=o(...h.map(e=>e.right)),n=i(...h.map(e=>e.left)),a=h.filter(r=>e?r.left===n:r.right===t),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:n,right:t,width:t-n,height:s-l,x:n,y:l}}return x}},floating:n.floating,strategy:s});return a.reference.x!==w.reference.x||a.reference.y!==w.reference.y||a.reference.width!==w.reference.width||a.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},"limitShift",0,eD,"offset",0,eT,"shift",0,eA,"size",0,eL],953760);var eH=e.i(174080),eI="u">typeof document?t.useLayoutEffect:function(){};function eF(e,t){let r,n,i;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(!eF(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!eF(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function e_(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eW(e,t){let r=e_(e);return Math.round(t*r)/r}function eB(e){let r=t.useRef(e);return eI(()=>{r.current=e}),r}function e$(e){void 0===e&&(e={});let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=t.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[p,m]=t.useState(i);eF(p,i)||m(i);let[h,x]=t.useState(null),[g,v]=t.useState(null),w=t.useCallback(e=>{e!==C.current&&(C.current=e,x(e))},[]),y=t.useCallback(e=>{e!==P.current&&(P.current=e,v(e))},[]),b=a||h,j=l||g,C=t.useRef(null),P=t.useRef(null),R=t.useRef(d),k=null!=c,S=eB(c),E=eB(o),T=eB(u),A=t.useCallback(()=>{if(!C.current||!P.current)return;let e={placement:r,strategy:n,middleware:p};E.current&&(e.platform=E.current),eM(C.current,P.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};N.current&&!eF(R.current,t)&&(R.current=t,eH.flushSync(()=>{f(t)}))})},[p,r,n,E,T]);eI(()=>{!1===u&&R.current.isPositioned&&(R.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let N=t.useRef(!1);eI(()=>(N.current=!0,()=>{N.current=!1}),[]),eI(()=>
1{if(b&&(C.current=b),j&&(P.current=j),b&&j){if(S.current)return S.current(b,j,A);A()}},[b,j,A,S,k]);let L=t.useMemo(()=>({reference:C,floating:P,setReference:w,setFloating:y}),[w,y]),z=t.useMemo(()=>({reference:b,floating:j}),[b,j]),O=t.useMemo(()=>{let e={position:n,left:0,top:0};if(!z.floating)return e;let t=eW(z.floating,d.x),r=eW(z.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...e_(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,z.floating,d.x,d.y]);return t.useMemo(()=>({...d,update:A,refs:L,elements:z,floatingStyles:O}),[d,A,L,z,O])}let eU=(e,t)=>({...eT(e),options:[e,t]}),eV=(e,t)=>({...eA(e),options:[e,t]}),eX=(e,t)=>({...eD(e),options:[e,t]}),eY=(e,t)=>({...eN(e),options:[e,t]}),eK=(e,t)=>({...eL(e),options:[e,t]}),eq=(e,t)=>({...ez(e),options:[e,t]}),eG=(e,t)=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?eO({element:r.current,padding:n}).fn(t):{}:r?eO({element:r,padding:n}).fn(t):{}},options:[e,t]});e.s(["arrow",0,eG,"flip",0,eY,"hide",0,eq,"limitShift",0,eX,"offset",0,eU,"shift",0,eV,"size",0,eK,"useFloating",0,e$],258950);var eQ=e.i(991918),eJ=e.i(843476),eZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=(0,eQ.createSlot)(`Primitive.${r}`),i=t.forwardRef((e,t)=>{let{asChild:i,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,eJ.jsx)(i?n:r,{...o,ref:t})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{}),e0=t.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,eJ.jsx)(eZ.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eJ.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e0.displayName="Arrow";var e1=e.i(820783),e2=e.i(30030),e5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=(0,eQ.createSlot)(`Primitive.${r}`),i=t.forwardRef((e,t)=>{let{asChild:i,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,eJ.jsx)(i?n:r,{...o,ref:t})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{}),e3=e.i(30207),e4=e.i(934620);function e6(e){let[r,n]=t.useState(void 0);return(0,e4.useLayoutEffect)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),r}e.s(["useSize",0,e6],635804);var e7="Popper",[e8,e9]=(0,e2.createContextScope)(e7),[te,tt]=e8(e7),tr=e=>{let{__scopePopper:r,children:n}=e,[i,o]=t.useState(null);return(0,eJ.jsx)(te,{scope:r,anchor:i,onAnchorChange:o,children:n})};tr.displayName=e7;var tn="PopperAnchor",ti=t.forwardRef((e,r)=>{let{__scopePopper:n,virtualRef:i,...o}=e,a=tt(tn,n),l=t.useRef(null),s=(0,e1.useComposedRefs)(r,l),c=t.useRef(null);return t.useEffect(()=>{let e=c.current;c.current=i?.current||l.current,e!==c.current&&a.onAnchorChange(c.current)}),i?null:(0,eJ.jsx)(e5.div,{...o,ref:s})});ti.displayName=tn;var to="PopperContent",[ta,tl]=e8(to),ts=t.forwardRef((e,r)=>{let{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:a="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:h,...x}=e,g=tt(to,n),[v,w]=t.useState(null),y=(0,e1.useComposedRefs)(r,e=>w(e)),[b,j]=t.useState(null),C=e6(b),P=C?.width??0,R=C?.height??0,k="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},S=Array.isArray(u)?u:[u],E=S.length>0,T={padding:k,boundary:S.filter(tf),altBoundary:E},{refs:A,floatingStyles:N,placement:L,isPositioned:z,middlewareData:O}=e$({strategy:"fixed",placement:i+("center"!==a?"-"+a:""),whileElementsMounted:(...e)=>eE(...e,{animationFrame:"always"===m}),elements:{reference:g.anchor},middleware:[eU({mainAxis:o+R,alignmentAxis:l}),c&&eV({mainAxis:!0,crossAxis:!1,limiter:"partial"===f?eX():void 0,...T}
1),c&&eY({...T}),eK({...T,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),b&&eG({element:b,padding:s}),tp({arrowWidth:P,arrowHeight:R}),p&&eq({strategy:"referenceHidden",...T})]}),[D,M]=tm(L),H=(0,e3.useCallbackRef)(h);(0,e4.useLayoutEffect)(()=>{z&&H?.()},[z,H]);let I=O.arrow?.x,F=O.arrow?.y,_=O.arrow?.centerOffset!==0,[W,B]=t.useState();return(0,e4.useLayoutEffect)(()=>{v&&B(window.getComputedStyle(v).zIndex)},[v]),(0,eJ.jsx)("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:z?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eJ.jsx)(ta,{scope:n,placedSide:D,onArrowChange:j,arrowX:I,arrowY:F,shouldHideArrow:_,children:(0,eJ.jsx)(e5.div,{"data-side":D,"data-align":M,...x,ref:y,style:{...x.style,animation:z?void 0:"none"}})})})});ts.displayName=to;var tc="PopperArrow",tu={top:"bottom",right:"left",bottom:"top",left:"right"},td=t.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=tl(tc,r),o=tu[i.placedSide];return(0,eJ.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eJ.jsx)(e0,{...n,ref:t,style:{...n.style,display:"block"}})})});function tf(e){return null!==e}td.displayName=tc;var tp=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[s,c]=tm(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+l/2,p="",m="";return"bottom"===s?(p=o?u:`${d}px`,m=`${-l}px`):"top"===s?(p=o?u:`${d}px`,m=`${n.floating.height+l}px`):"right"===s?(p=`${-l}px`,m=o?u:`${f}px`):"left"===s&&(p=`${n.floating.width+l}px`,m=o?u:`${f}px`),{data:{x:p,y:m}}}});function tm(e){let[t,r="center"]=e.split("-");return[t,r]}e.s(["Anchor",0,ti,"Arrow",0,td,"Content",0,ts,"Root",0,tr,"createPopperScope",0,e9],853660)},959411,e=>{"use strict";var t=e.i(271645);e.i(174080);var r=e.i(991918),n=e.i(843476),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,i)=>{let o=(0,r.createSlot)(`Primitive.${i}`),a=t.forwardRef((e,t)=>{let{asChild:r,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(r?o:i,{...a,ref:t})});return a.displayName=`Primitive.${i}`,{...e,[i]:a}},{}),o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=t.forwardRef((e,t)=>(0,n.jsx)(i.span,{...e,ref:t,style:{...o,...e.style}}));a.displayName="VisuallyHidden",e.s(["Root",0,a,"VISUALLY_HIDDEN_STYLES",0,o],959411)},582713,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(502738),i=e.i(271645),o=e.i(981140),a=e.i(820783),l=e.i(30030),s=e.i(726330),c=e.i(610772),u=e.i(853660),d=e.i(774606),f=e.i(296626);e.i(174080);var p=e.i(991918),m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=(0,p.createSlot)(`Primitive.${r}`),o=i.forwardRef((e,i)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?n:r,{...a,ref:i})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{}),h=e.i(369340),x=e.i(959411),[g,v]=(0,l.createContextScope)("Tooltip",[u.createPopperScope]),w=(0,u.createPopperScope)(),y="TooltipProvider",b="tooltip.open",[j,
1C]=g(y),P=e=>{let{__scopeTooltip:r,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:l}=e,s=i.useRef(!0),c=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(j,{scope:r,isOpenDelayedRef:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:i.useCallback(e=>{c.current=e},[]),disableHoverableContent:a,children:l})};P.displayName=y;var R="Tooltip",[k,S]=g(R),E=e=>{let{__scopeTooltip:r,children:n,open:o,defaultOpen:a,onOpenChange:l,disableHoverableContent:s,delayDuration:d}=e,f=C(R,e.__scopeTooltip),p=w(r),[m,x]=i.useState(null),g=(0,c.useId)(),v=i.useRef(0),y=s??f.disableHoverableContent,j=d??f.delayDuration,P=i.useRef(!1),[S,E]=(0,h.useControllableState)({prop:o,defaultProp:a??!1,onChange:e=>{e?(f.onOpen(),document.dispatchEvent(new CustomEvent(b))):f.onClose(),l?.(e)},caller:R}),T=i.useMemo(()=>S?P.current?"delayed-open":"instant-open":"closed",[S]),A=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,P.current=!1,E(!0)},[E]),N=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,E(!1)},[E]),L=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{P.current=!0,E(!0),v.current=0},j)},[j,E]);return i.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,t.jsx)(u.Root,{...p,children:(0,t.jsx)(k,{scope:r,contentId:g,open:S,stateAttribute:T,trigger:m,onTriggerChange:x,onTriggerEnter:i.useCallback(()=>{f.isOpenDelayedRef.current?L():A()},[f.isOpenDelayedRef,L,A]),onTriggerLeave:i.useCallback(()=>{y?N():(window.clearTimeout(v.current),v.current=0)},[N,y]),onOpen:A,onClose:N,disableHoverableContent:y,children:n})})};E.displayName=R;var T="TooltipTrigger",A=i.forwardRef((e,r)=>{let{__scopeTooltip:n,...l}=e,s=S(T,n),c=C(T,n),d=w(n),f=i.useRef(null),p=(0,a.useComposedRefs)(r,f,s.onTriggerChange),h=i.useRef(!1),x=i.useRef(!1),g=i.useCallback(()=>h.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,t.jsx)(u.Anchor,{asChild:!0,...d,children:(0,t.jsx)(m.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...l,ref:p,onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(x.current||c.isPointerInTransitRef.current||(s.onTriggerEnter(),x.current=!0))}),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,()=>{s.onTriggerLeave(),x.current=!1}),onPointerDown:(0,o.composeEventHandlers)(e.onPointerDown,()=>{s.open&&s.onClose(),h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>{h.current||s.onOpen()}),onBlur:(0,o.composeEventHandlers)(e.onBlur,s.onClose),onClick:(0,o.composeEventHandlers)(e.onClick,s.onClose)})})});A.displayName=T;var N="TooltipPortal",[L,z]=g(N,{forceMount:void 0}),O=e=>{let{__scopeTooltip:r,forceMount:n,children:i,container:o}=e,a=S(N,r);return(0,t.jsx)(L,{scope:r,forceMount:n,children:(0,t.jsx)(f.Presence,{present:n||a.open,children:(0,t.jsx)(d.Portal,{asChild:!0,container:o,children:i})})})};O.displayName=N;var D="TooltipContent",M=i.forwardRef((e,r)=>{let n=z(D,e.__scopeTooltip),{forceMount:i=n.forceMount,side:o="top",...a}=e,l=S(D,e.__scopeTooltip);return(0,t.jsx)(f.Presence,{present:i||l.open,children:l.disableHoverableContent?(0,t.jsx)(W,{side:o,...a,ref:r}):(0,t.jsx)(H,{side:o,...a,ref:r})})}),H=i.forwardRef((e,r)=>{let n=S(D,e.__scopeTooltip),o=C(D,e.__scopeTooltip),l=i.useRef(null),s=(0,a.useComposedRefs)(r,l),[c,u]=i.useState(null),{trigger:d,onClose:f}=n,p=l.current,{onPointerInTransitChange:m}=o,h=i.useCallback(()=>{u(null),m(!1)},[m]),x=i.useCallback((e,t)=>{let r,n=e.currentTarget,i={x:e.clientX,y:e.clientY},o=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(i,n.getBoundingClientRect());u(((r=[...function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(i,o),...function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>
1e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),m(!0)},[m]);return i.useEffect(()=>()=>h(),[h]),i.useEffect(()=>{if(d&&p){let e=e=>x(e,p),t=e=>x(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[d,p,x,h]),i.useEffect(()=>{if(c){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=d?.contains(t)||p?.contains(t),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],l=t[o],s=a.x,c=a.y,u=l.x,d=l.y;c>n!=d>n&&r<(u-s)*(n-c)/(d-c)+s&&(i=!i)}return i}(r,c);n?h():i&&(h(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,p,c,f,h]),(0,t.jsx)(W,{...e,ref:s})}),[I,F]=g(R,{isInside:!1}),_=(0,p.createSlottable)("TooltipContent"),W=i.forwardRef((e,r)=>{let{__scopeTooltip:n,children:o,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:c,...d}=e,f=S(D,n),p=w(n),{onClose:m}=f;return i.useEffect(()=>(document.addEventListener(b,m),()=>document.removeEventListener(b,m)),[m]),i.useEffect(()=>{if(f.trigger){let e=e=>{let t=e.target;t?.contains(f.trigger)&&m()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,m]),(0,t.jsx)(s.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:m,children:(0,t.jsxs)(u.Content,{"data-state":f.stateAttribute,...p,...d,ref:r,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)(_,{children:o}),(0,t.jsx)(I,{scope:n,isInside:!0,children:(0,t.jsx)(x.Root,{id:f.contentId,role:"tooltip",children:a||o})})]})})});M.displayName=D;var B="TooltipArrow",$=i.forwardRef((e,r)=>{let{__scopeTooltip:n,...i}=e,o=w(n);return F(B,n).isInside?null:(0,t.jsx)(u.Arrow,{...o,...i,ref:r})});$.displayName=B,e.s(["Arrow",0,$,"Content",0,M,"Portal",0,O,"Provider",0,P,"Root",0,E,"Tooltip",0,E,"TooltipArrow",0,$,"TooltipContent",0,M,"TooltipPortal",0,O,"TooltipProvider",0,P,"TooltipTrigger",0,A,"Trigger",0,A,"createTooltipScope",0,v],186336);var U=e.i(186336),U=U;e.s(["Tooltip",0,function(e){let n,i,o=(0,r.c)(4);return o[0]!==e?({...n}=e,o[0]=e,o[1]=n):n=o[1],o[2]!==n?(i=(0,t.jsx)(U.Root,{"data-slot":"tooltip",...n}),o[2]=n,o[3]=i):i=o[3],i},"TooltipContent",0,function(e){let i,o,a,l,s,c,u,d=(0,r.c)(13);d[0]!==e?({className:o,sideOffset:l,children:i,...a}=e,d[0]=e,d[1]=i,d[2]=o,d[3]=a,d[4]=l):(i=d[1],o=d[2],a=d[3],l=d[4]);let f=void 0===l?0:l;return d[5]!==o?(s=(0,n.cn)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",o),d[5]=o,d[6]=s):s=d[6],d[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(U.Arrow,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),d[7]=c):c=d[7],d[8]!==i||d[9]!==a||d[10]!==f||d[11]!==s?(u=(0,t.jsx)(U.Portal,{children:(0,t.jsxs)(U.Content,{"data-slot":"tooltip-content",sideOffset:f,className:s,...a,children:[i,c]})}),d[8]=i,d[9]=a,d[10]=f,d[11]=s,d[12]=u):u=d[12],u},"TooltipProvider",0,function(e){let n,i,o,a=(0,r.c)(6);a[0]!==e?({delayDuration:i,...n}=e,a[0]=e,a[1]=n,a[2]=i):(n=a[1],i=a[2]);let l=void 0===i?0:i;return a[3]!==l||a[4]!==n?(o=(0,t.jsx)(U.Provider,{"data-slot":"tooltip-provider",delayDuration:l,...n}),a[3]=l,a[4]=n,a[5]=o):o=a[5],o},"TooltipTrigger",0,function(e){let n,i,o=(0,r.c)(4);return o[0]!==e?({...n}=e,o[0]=e,o[1]=n):n=o[1],o[2]!==n?(i=(0,t.jsx)(U.Trigger,{"data-slot":"tooltip-trigger",...n}),o[2]=n,o[3]=i):i=o[3],i}],582713)},932171,741374,685244,e=>{"use strict";e.i(34231),e.i(621774),e.s([],932171);var t=e.i(500932);e.i(250711);var r=e.i(982045),n=e.i(883394);let i=["Warszawa","Kraków","WrocÅaw","PoznaÅ","GdaÅsk","Åódź","Szczecin","Bydgoszcz","Lublin","BiaÅystok","Katowice","Gdynia","CzÄstochowa","Radom","ToruÅ","Rzeszów","Kielce","Olsztyn","Opole","Bielsko-BiaÅa"];function o(e){return e.name}function a(e){return e.specializations??[]}e.s(["CITIES",0,i],741374),e.s(["useGhostAutocomplete",0,function(e){let l,s,c,u=(0,t.c)(7),d=(0,r.useQuery)(n.api.midwifeProfiles.listPublished);if(u[0]!==d||u[1]!==e){let t=d?[...new Set(d.flatMap(a))].sort():[],r=d?[...new Set(d.map(o))].sort():[],n=e.toLowerCase().trim();s=(l=n.length>=2?[...i,...t,...r].find(e=>e.toLowerCase().startsWith(n)):null)?l.slice(e.length):"",u[0]=d,u[1]=e,u[2]=l,u[3]=s}else l=u[2],s=u[3];let f=s;return u[4]!==l||u[5]!==f?(c={ghostMatch:l,ghostSuffix:f},u[4]=l,u[5]=f,u[6]=c):c=u[6],c}],685244)},37319,e=>{"use strict";var t=e.i(247167),r=e.i(843476),n=e.i(500932),i=e.i(271645),o=e.i(618566),a=e.i(522016);let l=(0,e.i(475254).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var s=e.i(37727),c=e.i(555436),u=e.i(846932),d=e.i(88653),f=e.i(900467),p=e.i(685803);e.i(250711);var m=e.i(982045),h=e.i(883394),x=e.i(129625),g=e.i(582713),v=e.i(674765),w=e.i(502738);e.i(932171);var y=e.i(621774),b=e.i(685244),j=e.i(861745),C=i["use".trim()],P=e.i(549092),R=e.i(77105),k=e.i(489790),S=e.i(33165);let{Link:E,redirect:T,usePathname:A,useRouter:N,getPathname:L}=function(e){let{Link:t,config:n,getPathname:a,...l}=function(e,t){var n,a,l;let s={...n=t||{},localePrefix:"object"==typeof(l=n.localePrefix)?l:{mode:l||"always"}
1,localeCookie:!!((a=n.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof a&&a},localeDetection:n.localeDetection??!0,alternateLinks:n.alternateLinks??!0},c=s.pathnames,u=(0,i.forwardRef)(function({href:t,locale:n,...i},o){let a,l;"object"==typeof t?(a=t.pathname,l=t.params):a=t;let u=(0,P.isLocalizableHref)(t),f=e(),p=(0,P.isPromise)(f)?C(f):f,m=u?d({locale:n||p,href:null==c?a:{pathname:a,params:l},forcePrefix:null!=n||void 0}):a;return(0,r.jsx)(R.default,{ref:o,href:"object"==typeof t?{...t,pathname:m}:m,locale:n,localeCookie:s.localeCookie,...i})});function d(e){let t,{forcePrefix:r,href:n,locale:i}=e;return null==c?"object"==typeof n?(t=n.pathname,n.query&&(t+=(0,k.serializeSearchParams)(n.query))):t=n:t=(0,k.compileLocalizedPathname)({locale:i,...(0,k.normalizeNameOrNameWithParams)(n),pathnames:s.pathnames}),(0,k.applyPathnamePrefix)(t,i,s,r)}function f(e){return function(t,...r){return e(d(t),...r)}}return{config:s,Link:u,redirect:f(o.redirect),permanentRedirect:f(o.permanentRedirect),getPathname:d}}(j.useLocale,e);return{...l,Link:t,usePathname:function(){let e,t,r=(e=(0,o.usePathname)(),t=(0,j.useLocale)(),(0,i.useMemo)(()=>{if(!e)return e;let r=e,i=(0,P.getLocalePrefix)(t,n.localePrefix);if((0,P.hasPathnamePrefixed)(i,e))r=(0,P.unprefixPathname)(e,i);else if("never"!==n.localePrefix.mode&&n.localePrefix.prefixes){let n=(0,P.getLocaleAsPrefix)(t);(0,P.hasPathnamePrefixed)(n,e)&&(r=(0,P.unprefixPathname)(e,n))}return r},[n.localePrefix,t,e])),a=(0,j.useLocale)();return(0,i.useMemo)(()=>r&&n.pathnames?(0,k.getRoute)(a,r,n.pathnames):r,[a,r])},useRouter:function(){let e=(0,o.useRouter)(),t=(0,j.useLocale)(),r=(0,o.usePathname)();return(0,i.useMemo)(()=>{function i(e){return function(i,o){let{locale:l,...s}=o||{},c=[a({href:i,locale:l||t,forcePrefix:null!=l||void 0})];Object.keys(s).length>0&&c.push(s),(0,S.default)(n.localeCookie,r,t,l),e(...c)}}return{...e,push:i(e.push),replace:i(e.replace),prefetch:i(e.prefetch)}},[t,r,e])},getPathname:a}}({locales:["pl","en"],defaultLocale:"pl"});var z=e.i(948148);let O=new Date("2026-04-07T12:00:00+02:00").getTime();function D(){let e,t,i,o,a,l,s,c=(0,n.c)(17),u=(0,j.useLocale)(),d=N(),f=A(),p="pl"===u?"en":"pl";c[0]!==d||c[1]!==p||c[2]!==f?(e=()=>d.replace(f,{locale:p}),c[0]=d,c[1]=p,c[2]=f,c[3]=e):e=c[3];let m="pl"===u&&"font-semibold text-foreground";c[4]!==m?(t=(0,w.cn)(m),c[4]=m,c[5]=t):t=c[5],c[6]!==t?(i=(0,r.jsx)("span",{className:t,children:"PL"}),c[6]=t,c[7]=i):i=c[7],c[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)("span",{className:"text-border",children:"/"}),c[8]=o):o=c[8];let h="en"===u&&"font-semibold text-foreground";return c[9]!==h?(a=(0,w.cn)(h),c[9]=h,c[10]=a):a=c[10],c[11]!==a?(l=(0,r.jsx)("span",{className:a,children:"EN"}),c[11]=a,c[12]=l):l=c[12],c[13]!==e||c[14]!==i||c[15]!==l?(s=(0,r.jsxs)("button",{type:"button",onClick:e,className:"flex h-[36px] items-center gap-1 rounded-[10px] border border-border px-2.5 text-[13px] font-medium text-muted-foreground transition-colors duration-300 hover:border-[#f0c6dd] hover:bg-white hover:text-foreground",children:[i,o,l]}),c[13]=e,c[14]=i,c[15]=l,c[16]=s):s=c[16],s}e.s(["default",0,function({user:e,sticky:n=!0,animated:C=!0}){let P=(0,z.useTranslations)("nav"),R=(0,j.useLocale)(),k=(0,o.useRouter)(),{openRegistration:S}=(0,p.useRegistrationModal)(),{isPreviewMode:E,isCountdownActive:T}=(0,y.useCountdown)(),A="true"===t.default.env.NEXT_PUBLIC_LIVE_MODE,N=E&&T||!A&&Date.now()<O,L=(0,m.useQuery)(h.api.users.getByEmail,e?{email:e.email}:"skip"),M=L?.avatarUrl??null,[H,I]=(0,i.useState)(!1),[F,_]=(0,i.useState)(!1),[W,B]=(0,i.useState)(""),[$,U]=(0,i.useState)(!1),[V,X]=(0,i.useState)(!1),Y=(0,i.useRef)(null),{ghostMatch:K,ghostSuffix:q}=(0,b.useGhostAutocomplete)(W),G=e=>{let t=(e??W).trim(),r=t?`${v.APP_ROUTES.PUBLIC.FIND_MIDWIFE()}?q=${encodeURIComponent(t)}`:v.APP_ROUTES.PUBLIC.FIND_MIDWIFE();_(!1),B(""),k.push(r)};return(0,i.useEffect)(()=>{let e=requestAnimationFrame(()=>U(!0));return()=>cancelAnimationFrame(e)},[]),(0,i.useEffect)(()=>{let e=()=>X(window.innerWidth<1024||window.scrollY>50);return e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[]),(0,i.useEffect)(()=>{F&&setTimeout(()=>Y.current?.focus(),150)},[F]),(0,r.jsx)("div",{className:(0,w.cn)("z-50 w-full",n&&"sticky top-0"),children:(0,r.jsx)(u.motion.nav,{initial:!!C&&{opacity:0,y:-40},animate:C?{opacity:+!!$,y:$?0:-40}:void 0,transition:C?{duration:.6,ease:[.25,.1,.25,1]}:void 0,className:"relative w-full",children:(0,r.jsxs)(u.motion.div,{animate:C?{maxWidth:V?800:960,paddingTop:8*!!V}:void 0,transition:C?{duration:.5,ease:[.25,.1,.25,1]}:void 0,className:"relative mx-auto w-full",style:C?void 0:{},children:[(0,r.jsx)(u.motion.div,{animate:C?{backgroundColor:V?"rgba(255,255,255,0.75)":"var(--background)",backdropFilter:V?"blur(40px)":"blur(0px)",borderRadius:16*!!V,boxShadow:V?"0 4px 30px -4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04)":"0 0px 0px 0px rgba(0,0,0,0)",borderColor:V?"rgba(0,0,0,0.05)":"rgba(0,0,0,0)"}:void 0,transition:C?{duration:.5,ease:[.25,.1,.25,1]}:void 0,className:C?"border":"",style:C?{borderWidth:1,borderColor:"rgba(0,0,0,0)"}:{backgroundColor:"var(--background)"},children:(0,r.jsxs)(u.motion.div,{animate:C?{paddingLeft:28*!!V,paddingRight:28*!!V}:void 0,transition:C?{duration:.5,ease:[.25,.1,.25,1]}:void 0,className:"mx-auto max-w-[1200px] px-[18px] lg:px-[120px]",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-6",style:{height:60},children:[(0,r.jsx)(a.default,{href:v.APP_ROUTES.PUBLIC.HOME(),className:"flex flex-shrink-0 items-center",children:(0,r.jsx)("img",{src:"/logos.svg",alt:"MyMidwife",className:"h-7"})}),(0,r.jsxs)("div",{className:"hidden items-center gap-6 lg:flex",children:[(0,r.jsx)("a",{href:"#dla-pacjentek",className:"whitespace-nowrap text-[13px] font-medium tracking-[-0.2px] text-muted-foreground transition-colors duration-300 hover:text-foreground",children:P("forPatients")}),(0,r.jsx)("a",{href:"#dla-poloznych",className:"whitespace-nowrap text-[13px] font-medium tracking-[-0.2px] text-muted-foreground transition-colors duration-300 hover:text-foreground",children:P("forMidwives")}),(0,r.jsx)("a",{href:"#baza-wiedzy",className:"whitespace-nowrap text-[13px] font-medium tracking-[-0.2px] text-muted-foreground transition-colors duration-300 hover:text-foreground",children:P("knowledgeBase")}),(0,r.jsx)("a",{href:v.EXTERNAL_ROUTES.SHOP.HOME(R),className:"whitespace-nowrap text-[13px] font-medium tracking-[-0.2px] text-muted-foreground transition-colors duration-300 hover:text-foreground",children:P("shop")})]}),(0,r.jsxs)("div",{className:"hidden items-center gap-3 lg:flex",children:[(0,r.jsx)("button",{onClick:()=>{N||_(!F)},disabled:N,className:(0,w.cn)("flex h-[36px] w-[36px] items-center justify-center rounded-[10px] border border-border transition-colors duration-300 hover:border-[#f0c6dd] hover:bg-white",N&&"cursor-not-allowed opacity-50"),"aria-label":"Szukaj",children:(0,r.jsx)(c.Search,{size:15,className:"text-muted-foreground",strokeWidth:1.8})}),(0,r.jsx)(D,{}),e?(0,r.jsx)(g.TooltipProvider,{children:(0,r.jsxs)(g.Tooltip,{children:[(0,r.jsx)(g.TooltipTrigger,{asChild:!0,children:(0,r.jsx)(a.default,{href:v.APP_ROUTES.AUTH.PROFILE(),children:(0,r.jsxs)(x.Avatar,{size:"default",className:"size-[36px] rounded-[10px] border border-border transition-colors duration-300 hover:border-[#f0c6dd] hover:bg-white",children:[M&&(0,r.jsx)(x.AvatarImage,{src:M,alt:"",className:"rounded-[10px]"}),(0,r.jsx)(x.AvatarFallback,{className:"rounded-[10px]",children:(e.firstName?.charAt(0)??"").toUpperCase()+(e.lastName?.charAt(0)??"").toUpperCase()||e.email.charAt(0).toUpperCase()})]})})}),(0,r.jsx)(g.TooltipContent,{side:"bottom",sideOffset:8,children:"Przejdź do panelu użytkownika"})]})}):(0,r.jsx)(f.InteractiveHoverButton,{size:"sm",className:"whitespace-nowrap",onClick:S,children:P("joinNow")})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 lg:hidden",children:[(0,r.jsx)(D,{}),(0,r.jsx)("button",{className:"flex h-10 w-10 items-center justify-center rounded-[11px] bg-white/60","aria-label":"Menu",onClick:()=>I(!H),children:H?(0,r.jsx)(s.X,{size:20,className:"text-foreground"}):(0,r.jsx)(l,{size:20,className:"text-foreground"})})]})]}),(0,r.jsx)(d.AnimatePresence,{children:H&&(0,r.jsx)(u.motion.div,{initial:{height:0,opacity:0}
1,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.35,ease:[.25,.1,.25,1]},className:"overflow-hidden lg:hidden",children:(0,r.jsx)("div",{className:"border-t border-border/30 pb-5 pt-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("a",{href:"#dla-pacjentek",onClick:()=>I(!1),className:"text-[16px] font-medium tracking-[-0.3px] text-foreground",children:P("forPatients")}),(0,r.jsx)("a",{href:"#dla-poloznych",onClick:()=>I(!1),className:"text-[16px] font-medium tracking-[-0.3px] text-foreground",children:P("forMidwives")}),(0,r.jsx)("a",{href:"#baza-wiedzy",onClick:()=>I(!1),className:"text-[16px] font-medium tracking-[-0.3px] text-foreground",children:P("knowledgeBase")}),(0,r.jsx)("a",{href:v.EXTERNAL_ROUTES.SHOP.HOME(R),onClick:()=>I(!1),className:"text-[16px] font-medium tracking-[-0.3px] text-foreground",children:P("shop")}),(0,r.jsxs)("div",{className:"mt-2 flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("div",{className:"relative flex-1",children:[q&&!N&&(0,r.jsxs)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-0 flex h-[46px] items-center overflow-hidden rounded-[11px] bg-white px-5 text-[15px]",children:[(0,r.jsx)("span",{className:"invisible",children:W}),(0,r.jsx)("span",{className:"text-muted-foreground/40",children:q})]}),(0,r.jsx)("input",{type:"text",value:W,onChange:e=>{N||B(e.target.value)},onKeyDown:e=>{if(!N){if(("Tab"===e.key||"ArrowRight"===e.key)&&K&&q){e.preventDefault(),B(K);return}"Enter"===e.key&&(G(),I(!1))}},disabled:N,placeholder:N?"Wyszukiwanie dostÄpne wkrótce...":"specjalizacja, miasto lub nazwisko...",className:(0,w.cn)("relative z-[1] h-[46px] w-full rounded-[11px] border border-border px-5 text-[15px] text-foreground outline-none placeholder:text-muted-foreground/60",q&&!N?"bg-transparent":"bg-white",N&&"cursor-not-allowed opacity-50"),autoComplete:"off"})]}),(0,r.jsx)("button",{onClick:()=>{N||(G(),I(!1))},disabled:N,className:(0,w.cn)("flex h-[46px] w-[46px] flex-shrink-0 items-center justify-center rounded-[11px] bg-primary",N&&"cursor-not-allowed opacity-50"),"aria-label":"Szukaj",children:(0,r.jsx)(c.Search,{size:18,className:"text-white"})})]}),e?(0,r.jsxs)(a.default,{href:v.APP_ROUTES.AUTH.PROFILE(),onClick:()=>I(!1),className:"flex h-[46px] w-full items-center justify-center gap-3 rounded-[11px] bg-primary/15 text-[15px] font-medium tracking-[-0.2px] text-primary",children:[(0,r.jsxs)(x.Avatar,{size:"sm",children:[M&&(0,r.jsx)(x.AvatarImage,{src:M,alt:""}),(0,r.jsx)(x.AvatarFallback,{className:"bg-primary/20 text-primary",children:(e.firstName?.charAt(0)??"").toUpperCase()+(e.lastName?.charAt(0)??"").toUpperCase()||e.email.charAt(0).toUpperCase()})]}),"Mój profil"]}):N?(0,r.jsx)("button",{onClick:()=>{S(),I(!1)},className:"flex h-[46px] w-full items-center justify-center rounded-[11px] bg-primary text-[15px] font-medium tracking-[-0.2px] text-white",children:P("joinNow")}):(0,r.jsx)("button",{onClick:()=>{S(),I(!1)},className:"flex h-[46px] w-full items-center justify-center rounded-[11px] bg-primary text-[15px] font-medium tracking-[-0.2px] text-white",children:P("joinNow")})]})]})})})})]})}),(0,r.jsx)(d.AnimatePresence,{children:F&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-[-1]",onClick:()=>_(!1)}),(0,r.jsx)("div",{className:"absolute left-1/2 z-[60] hidden w-full max-w-[600px] -translate-x-1/2 px-4 lg:block",children:(0,r.jsxs)(u.motion.div,{initial:{opacity:0,y:-10,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.97},transition:{duration:.3,ease:[.25,.1,.25,1]},className:"mt-2 rounded-[14px] border border-black/[0.06] bg-white/90 p-4 shadow-[0_8px_40px_-8px_rgba(0,0,0,0.08)] backdrop-blur-2xl",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)("div",{className:"relative flex-1",children:[(0,r.jsx)(c.Search,{size:15,stroke:"#999",strokeWidth:1.8,className:"absolute left-4 top-1/2 z-10 -translate-y-1/2"}),q&&(0,r.jsxs)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-0 flex h-[44px] items-center overflow-hidden rounded-[11px] bg-white pl-10 pr-5 text-[14px]",children:[(0,r.jsx)("span",{className:"invisible",children:W}),(0,r.jsx)("span",{className:"text-muted-foreground/40",children:q})]}),(0,r.jsx)("input",{ref:Y,type:"text",value:W,onChange:e=>B(e.target.value),onKeyDown:e=>{if(("Tab"===e.key||"ArrowRight"===e.key)&&K&&q){e.preventDefault(),B(K);return}"Enter"===e.key&&G()},placeholder:"specjalizacja, miasto lub nazwisko...",className:(0,w.cn)("relative z-[1] h-[44px] w-full rounded-[11px] border border-border pl-10 pr-5 text-[14px] text-foreground outline-none transition-colors duration-300 placeholder:text-muted-foreground/60 focus:border-[#f0c6dd]",q?"bg-transparent":"bg-white"),autoComplete:"off"})]}),(0,r.jsxs)("button",{onClick:()=>G(),className:"flex h-[44px] items-center gap-2 rounded-[11px] bg-primary px-6 text-[13px] font-medium text-white transition-colors duration-300 hover:bg-primary/90",children:[(0,r.jsx)(c.Search,{size:14}),"Szukaj"]})]}),(0,r.jsxs)("div",{className:"mt-3 flex items-center gap-2 px-1",children:[(0,r.jsx)("span",{className:"text-[12px] text-muted-foreground",children:"Popularne:"}),["poÅożna laktacyjna","Warszawa","wizyta patronażowa"].map(e=>(0,r.jsx)("button",{onClick:()=>G(e),className:"rounded-[8px] bg-secondary px-3 py-1 text-[12px] font-medium text-muted-foreground transition-colors duration-200 hover:bg-[#f0c6dd]/30",children:e},e))]})]})})]})})]})})})}],37319)}]);
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.