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]="18a5aa4e-4dd2-c74a-cf85-de01d5386046")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37521,e=>{"use strict";e.s(["ThemeProvider",()=>x,"applyColorTheme",()=>m,"getActiveColorTheme",()=>p,"migrateTheme",()=>u,"setCachedColorTheme",()=>f,"syncColorThemeToProfileStore",()=>h,"syncThemeModeToProfileStore",()=>g,"useMode",()=>w]);var t=e.i(843476),r=e.i(271645),n=e.i(363178),o=e.i(513082),i=e.i(54597),a=e.i(376256);{let e=console.error.bind(console);console.error=(...t)=>{"string"==typeof t[0]&&t[0].includes("script tag")||e(...t)}}let l="roleready-color-theme",s=Object.keys(a.COLOR_THEMES),c="forest";function u(e){return s.includes(e)?e:Object.prototype.hasOwnProperty.call(a.LEGACY_THEME_MIGRATION,e)?a.LEGACY_THEME_MIGRATION[e]:c}function d(){try{let e=localStorage.getItem(l);if(e)return u(e)}catch{}return null}function f(e){try{localStorage.setItem(l,e)}catch{}}function p(){let e=d();if(e)return e;let t=document.documentElement;for(let e of s)if(e!==c&&t.classList.contains(`theme-${e}`))return e;return c}function m(e){let t=document.documentElement,r=s.filter(e=>e!==c).map(e=>`theme-${e}`),n=Object.keys(a.LEGACY_THEME_MIGRATION).map(e=>`theme-${e}`);t.classList.remove(...r,...n);let o=e?u(e):c;o&&o!==c&&s.includes(o)&&t.classList.add(`theme-${o}`)}function h(e){let{profile:t}=o.useProfileStore.getState();t&&o.useProfileStore.setState({profile:{...t,colorTheme:e}})}function g(e){let{profile:t}=o.useProfileStore.getState();t&&o.useProfileStore.setState({profile:{...t,theme:e}})}async function y(e){try{await (0,i.authenticatedFetch)("/api/profile/preferences",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({theme:e})},"theme-mode")}catch{}}function w(){let{setTheme:e,...t}=(0,n.useTheme)(),o=(0,r.useCallback)(t=>{e(t),g(t),y(t)},[e]);return{...t,setTheme:o}}let b=r.useLayoutEffect;function v(){let e=(0,o.useProfileStore)(e=>e.profile?.theme),{setTheme:t}=(0,n.useTheme)();return b(()=>{if("light"!==e&&"dark"!==e&&"system"!==e)return;let r=!1;try{r=null!==localStorage.getItem("theme")}catch{return}r||"system"===e||t(e)},[e,t]),null}function x({children:e}){let r=(0,o.useProfileStore)(e=>e.profile?.colorTheme);return b(()=>{let e=d(),t=r?u(r):null;m(t||e),t&&s.includes(t)&&f(t)},[r]),(0,t.jsxs)(n.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:[(0,t.jsx)(v,{}),e]})}},334636,431674,971757,78117,852861,e=>{"use strict";let t;e.s(["CompanyLogo",()=>I],334636);var r=e.i(843476),n=e.i(271645),o=e.i(607486),i=e.i(37521),a=e.i(647163),l=e.i(758472),s=e.i(120286),c=e.i(187378),u=e.i(32095),d=e.i(150965),f=e.i(715788),p=e.i(647780),m=e.i(98919),h=e.i(39312),g=e.i(63727),y=e.i(580555),w=e.i(475254);let b=(0,w.default)("gamepad-2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]),v=(0,w.default)("leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);e.s(["Leaf",0,v],431674);let x=(0,w.default)("plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);e.s(["Plane",0,x],971757);let E={technology:{icon:l.Code,bgColor:"bg-primary",iconColor:"text-primary-foreground",name:"Technology"},healthcare:{icon:s.Stethoscope,bgColor:"bg-destructive",iconColor:"text-destructive-foreground",name:"Healthcare"},finance:{icon:c.Banknote,bgColor:"bg-success",iconColor:"text-success-foreground",name:"Finance"},education:{icon:u.GraduationCap,bgColor:"bg-secondary",iconColor:"text-secondary-foreground",name:"Education"},retail:{icon:d.ShoppingBag,bgColor:"bg-warning",iconColor:"text-warning-foreground",name:"Retail"},logistics:{icon:f.Truck,bgColor:"bg-info",iconColor:"text-info-foreground",name:"Logistics"}
2,marketing:{icon:p.Palette,bgColor:"bg-accent",iconColor:"text-accent-foreground",name:"Marketing"},security:{icon:m.Shield,bgColor:"bg-muted",iconColor:"text-muted-foreground",name:"Security"},energy:{icon:h.Zap,bgColor:"bg-warning",iconColor:"text-warning-foreground",name:"Energy"},consulting:{icon:g.Briefcase,bgColor:"bg-primary/80",iconColor:"text-primary-foreground",name:"Consulting"},manufacturing:{icon:y.Factory,bgColor:"bg-muted/80",iconColor:"text-foreground",name:"Manufacturing"},gaming:{icon:b,bgColor:"bg-secondary/80",iconColor:"text-secondary-foreground",name:"Gaming"},sustainability:{icon:v,bgColor:"bg-success/80",iconColor:"text-success-foreground",name:"Sustainability"},travel:{icon:x,bgColor:"bg-info/80",iconColor:"text-info-foreground",name:"Travel"},default:{icon:o.Building2,bgColor:"bg-primary",iconColor:"text-primary-foreground",name:"Business"}},C={technology:["tech","software","app","platform","digital","cloud","data","ai","ml","artificial intelligence","machine learning","saas","api","blockchain","crypto","startup","dev","engineer","programmer","developer","coding","web","mobile","ios","android","javascript","python","java","react","node","database","backend","frontend","fullstack","devops","aws","google","microsoft","apple","meta","facebook","amazon","netflix","uber","airbnb","stripe","shopify","slack","zoom","salesforce"],healthcare:["health","medical","hospital","clinic","pharma","biotech","medicine","doctor","nurse","patient","therapy","dental","surgery","care","wellness","fitness","nutrition","mental health","telehealth"],finance:["bank","finance","financial","investment","trading","fintech","credit","loan","mortgage","insurance","wealth","asset","portfolio","equity","capital","fund","wall street","goldman","morgan","jpmorgan","visa","mastercard","paypal","square","robinhood","coinbase"],education:["education","school","university","college","learning","student","teacher","academic","research","training","course","online learning","edtech","curriculum","classroom"],retail:["retail","store","shop","ecommerce","e-commerce","fashion","clothing","apparel","brand","consumer","merchandise","sales","marketplace","walmart","target","costco","amazon","ebay","etsy"],logistics:["logistics","shipping","delivery","transportation","supply chain","warehouse","freight","courier","distribution","fulfillment","fedex","ups","dhl","postal"],marketing:["marketing","advertising","agency","creative","brand","campaign","digital marketing","social media","content","design","graphics","media","communications","pr","public relations"],security:["security","cybersecurity","cyber","safety","protection","defense","risk","compliance","audit","privacy","encryption","firewall"],energy:["energy","oil","gas","renew
2able","solar","wind","power","electric","utility","grid","battery","nuclear","coal","petroleum"],consulting:["consulting","consultant","advisory","strategy","management","business","professional services","mckinsey","bcg","bain","deloitte","pwc","kpmg","ey","accenture"],manufacturing:["manufacturing","factory","production","industrial","automotive","aerospace","chemical","steel","construction","engineering","machinery"],gaming:["gaming","game","video game","esports","entertainment","streaming","twitch","youtube","content creator","unity","unreal"],sustainability:["sustainability","environmental","green","eco","climate","carbon","renewable","recycling","conservation","sustainable"],travel:["travel","tourism","hotel","hospitality","airline","flight","booking","vacation","resort","restaurant","food","beverage"],default:[]},T={PENDING_DESCRIPTION:"pending extraction...",UNKNOWN_COMPANY:"unknown company",PLACEHOLDER_TITLE_PREFIX:"job from",APP_IMPORTING_TITLES:["importing job","importing job from url"],EXTRACTION_FAILED_TITLE:"extraction failed"};e.s(["JOB_PLACEHOLDER_SENTINELS",0,T],78117);let k=new Set(["","company",T.UNKNOWN_COMPANY]);function S(e,t){if(e)try{return new URL(e).hostname.replace(/^www\./,"")}catch{}if(t&&!k.has(t.trim().toLowerCase())){let e=t.trim(),r=e.replace(/^https?:\/\//,"").replace(/\/.*$/,"");if(/^[a-zA-Z0-9][a-zA-Z0-9.-]*\.[a-zA-Z]{2,}$/.test(r))return r.toLowerCase().replace(/^www\./,"");let n=e.toLowerCase().replace(/[^a-z0-9]/g,"");if(n)return`${n}.com`}return null}t=["Welcome to the Jungle (formerly Otta)","Welcome to the Jungle","LinkedIn","Indeed","Glassdoor","ZipRecruiter","Monster","CareerBuilder","SimplyHired","Lever","Greenhouse"].map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),RegExp(`\\s*(?:[|\xb7ââ]|-{1,2})\\s*(?:${t})\\s*$`,"i");let R=new Set(["linkedin.com","indeed.com","glassdoor.com","glassdoor.co.uk","ziprecruiter.com","monster.com","careerbuilder.com","simplyhired.com","welcometothe
2jungle.com","wttj.co","otta.com","wellfound.com","job-boards.greenhouse.io","boards.greenhouse.io","jobs.lever.co","jobs.ashbyhq.com","myworkdayjobs.com"]);function A(e,t){return!function(e){if(!e)return!1;let t=e.toLowerCase().replace(/^www\./,"");for(let e of R)if(t===e||t.endsWith(`.${e}`))return!0;return!1}(S(e??void 0,void 0))?S(e??void 0,t??void 0):S(void 0,t??void 0)}e.s(["extractDomain",0,S,"extractEmployerDomain",0,A,"extractRootNameFromDomain",0,function(e){let t=e.replace(/^www\./,"").split("."),r=t.at(-1)??"",n=t.at(-2)??"";return/^(co|com|org|net|gov|edu)$/.test(n)&&2===r.length?t.at(-3)??t[0]??e:n||t[0]||e},"normalizeWebsiteUrlForLogo",0,function(e){let t=e.trim();return t?/^https?:\/\//i.test(t)?t:`https://${t.replace(/^\/+/,"")}`:null}],852861);var _=e.i(249438),L=e.i(600437),j=e.i(728231);let M={icon:o.Building2,bgColor:"bg-muted",iconColor:"text-muted-foreground",name:"Organization"},P={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-16 h-16"},N={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6",xl:"w-8 h-8"},O={xs:24,sm:32,md:40,lg:48,xl:64},I=(0,n.memo)(function({company:e,jobTitle:t,companyUrl:o,directLogoUrl:l,size:s="md",className:c,onFallbackClick:u,isEditable:d=!1,noWrapperBorder:f=!1,fallbackMode:p="industry",loading:m,logoVisibility:h}){let g,{theme:y,resolvedTheme:w}=(0,i.useMode)(),b=L.LOGO_DEV_PUBLISHABLE_KEY,v="string"==typeof b&&b.length>0&&"undefined"!==b,x=A(o??null,e),T=!!x&&/^[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$/.test(x),[k,S]=(0,n.useState)(!1),R=(g=l?.trim())&&/^https?:\/\//i.test(g)?l.trim():null,I=x&&T&&v&&b?(0,_.buildLogoDevCdnUrl)({domain:x,token:b,theme:"dark"===w?"dark":"light"===w?"light":"dark"===y?"dark":"light",fallback:"monogram"}):null,$=k?I:R??I,D=(0,a.cn)("flex items-center justify-center shadow-xs shrink-0 overflow-hidden rounded-lg",P[s],c),F=(0,a.cn)(D,f?"relative bg-transparent":"bg-card border relative");if($)return(0,r.jsx)("div",{className:F,children:(0,r.jsx)("img",{src:$,alt:`${e} logo`,"data-testid":R&&!k?"company-logo-direct-image":"company-logo-image",width:O[s],height:O[s],loading:m??h??"lazy",decoding:"async",referrerPolicy:"no-referrer",className:"h-full w-full object-contain",...R&&!k?{onError:()=>{S(!0)}}:{}})});let U="neutral"===p?M:E[function(e,t){let r=`${e} ${t||""}`.toLowerCase(),n="default",o=0;for(let[e,t]of Object.entries(C)){if("default"===e)continue;let i=t.filter(e=>r.includes(e.toLowerCase())).length;i>o&&(o=i,n=e)}return n}(e,t)],H=U.icon,V=(0,a.cn)(D,U.bgColor,"relative",d&&u&&"cursor-pointer transition-all duration-200 hover:ring-2 hover:ring-primary/30 hover:scale-105"),W=(0,r.jsxs)("div",{className:V,onClick:e=>{d&&u&&(e.stopPropagation(),u())},role:d&&u?"button":void 0,tabIndex:d&&u?0:void 0,onKeyDown:d&&u?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),u())}:void 0,children:[(0,r.jsx)(H,{className:(0,a.cn)(N[s],U.iconColor)}),d&&(0,r.jsx)("span",{"aria-hidden":"true","data-testid":"company-logo-edit-badge",className:(0,a.cn)("absolute bottom-0.5 right-0.5 flex items-center justify-center","h-3 w-3 rounded-full bg-primary/90 text-primary-foreground shadow-xs",("xs"===s||"sm"===s)&&"h-2.5 w-2.5 bottom-px right-px"),children:(0,r.jsx)("svg",{width:"xs"===s||"sm"===s?6:7,height:"xs"===s||"sm"===s?6:7,viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M8.5 1.5l2 2L4 10H2v-2z"})})})]});return d&&u?(0,r.jsx)(j.Tooltip,{content:"Fix company logo",children:W}):W});I.displayName="CompanyLogo"},728231,205331,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(676615),o=e.i(958271),i=e.i(878256),a=e.i(726330),l=e.i(610772),s=e.i(853660),c=e.i(774606),u=e.i(60834),d=e.i(69395),f=e.i(939547),p=e.i(469120),m=e.i(959411),[h,g]=(0,i.createContextScope)("Tooltip",[s.createPopperScope]),y=(0,s.createPopperScope)(),w="TooltipProvider",b="tooltip.open",[v,x]=h(w),E=e=>{let{__scopeTooltip:n,delayDuration:o=700,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:l}=e,s=r.useRef(!0),c=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(v,{scope:n,isOpenDelayedRef:s,delayDuration:o,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback(e=>{c.current=e},[]),disableHoverableContent:a,children:l})};E.displayName=w;var C="Tooltip",[T,k]=h(C),S=e=>{let{__scopeTooltip:n,children:o,open:i,defaultOpen:a,onOpenChange:c,disableHoverableContent:u,delayDuration:d}=e,f=x(C,e.__scopeTooltip),m=y(n),[h,g]=r.useState(null),w=(0,l.useId)(),v=r.useRef(0),E=u??f.disableHoverableContent,k=d??f.delayDuration,S=r.useRef(!1),[R,A]=(0,p.useControllableState)({prop:i,defaultProp:a??!1,onChange:e=>{e?(f.onOpen(),document.dispatchEvent(new CustomEvent(b))):f.onClose(),c?.(e)},caller:C}),_=r.useMemo(()=>R?S.current?"delayed-open":"instant-open":"closed",[R]),L=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,S.current=!1,A(!0)},[A]),j=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,A(!1)},[A]),M=r.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{S.current=!0,A(!0),v.current=0},k)},[k,A]);return r.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,t.jsx)(s.Root,{...m,children:(0,t.jsx)(T,{scope:n,contentId:w,open:R,stateAttribute:_,trigger:h,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{f.isOpenDelayedRef.current?M():L()},[f.isOpenDelayedRef,M,L]),onTriggerLeave:r.useCallback(()=>{E?j():(window.clearTimeout(v.current),v.current=0)},[j,E]),onOpen:L,onClose:j,disableHoverableContent:E,children:o})})};S.displayName=C;var R="TooltipTrigger",A=r.forwardRef((e,i)=>{let{__scopeTooltip:a,...l}=e,c=k(R,a),u=x(R,a),f=y(a),p=r.useRef(null),m=(0,o.useComposedRefs)(i,p,c.onTriggerChange),h=r.useRef(!1),g=r.useRef(!1),w=r.useCallback(()=>h.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",w),[w]),(0,t.jsx)(s.Anchor,{asChild:!0,...f,children:(0,t.jsx)(d.Primitive.button,{"aria-describedby":c.open?c.c
2ontentId:void 0,"data-state":c.stateAttribute,...l,ref:m,onPointerMove:(0,n.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(g.current||u.isPointerInTransitRef.current||(c.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,n.composeEventHandlers)(e.onPointerLeave,()=>{c.onTriggerLeave(),g.current=!1}),onPointerDown:(0,n.composeEventHandlers)(e.onPointerDown,()=>{c.open&&c.onClose(),h.current=!0,document.addEventListener("pointerup",w,{once:!0})}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>{h.current||c.onOpen()}),onBlur:(0,n.composeEventHandlers)(e.onBlur,c.onClose),onClick:(0,n.composeEventHandlers)(e.onClick,c.onClose)})})});A.displayName=R;var _="TooltipPortal",[L,j]=h(_,{forceMount:void 0}),M=e=>{let{__scopeTooltip:r,forceMount:n,children:o,container:i}=e,a=k(_,r);return(0,t.jsx)(L,{scope:r,forceMount:n,children:(0,t.jsx)(u.Presence,{present:n||a.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:i,children:o})})})};M.displayName=_;var P="TooltipContent",N=r.forwardRef((e,r)=>{let n=j(P,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...a}=e,l=k(P,e.__scopeTooltip);return(0,t.jsx)(u.Presence,{present:o||l.open,children:l.disableHoverableContent?(0,t.jsx)(F,{side:i,...a,ref:r}):(0,t.jsx)(O,{side:i,...a,ref:r})})}),O=r.forwardRef((e,n)=>{let i=k(P,e.__scopeTooltip),a=x(P,e.__scopeTooltip),l=r.useRef(null),s=(0,o.useComposedRefs)(n,l),[c,u]=r.useState(null),{trigger:d,onClose:f}=i,p=l.current,{onPointerInTransitChange:m}=a,h=r.useCallback(()=>{u(null),m(!1)},[m]),g=r.useCallback((e,t)=>{let r,n=e.currentTarget,o={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(o,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}(o,i),...function(e){let{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.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 r.useEffect(()=>()=>h(),[h]),r.useEffect(()=>{if(d&&p){let e=e=>g(e,p),t=e=>g(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[d,p,g,h]),r.useEffect(()=>{if(c){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=d?.contains(t)||p?.contains(t),o=!function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],l=t[i],s=a.x,c=a.y,u=l.x,d=l.y;c>n!=d>n&&r<(u-s)*(n-c)/(d-c)+s&&(o=!o)}return o}(r,c);n?h():o&&(h(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,p,c,f,h]),(0,t.jsx)(F,{...e,ref:s})}),[I,$]=h(C,{isInside:!1}),D=(0,f.createSlottable)("TooltipContent"),F=r.forwardRef((e,n)=>{let{__scopeTooltip:o,children:i,"aria-label":l,onEscapeKeyDown:c,onPointerDownOutside:u,...d}=e,f=k(P,o),p=y(o),{onClose:h}=f;return r.useEffect(()=>(document.addEventListener(b,h),()=>document.removeEventListener(b,h)),[h]),r.useEffect(()=>{if(f.trigger){let e=e=>{let t=e.target;t?.contains(f.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,h]),(0,t.jsx)(a.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,t.jsxs)(s.Content,{"data-state":f.stateAttribute,...p,...d,ref:n,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)(D,{children:i}),(0,t.jsx)(I,{scope:o,isInside:!0,children:(0,t.jsx)(m.Root,{id:f.contentId,role:"tooltip",children:l||i})})]})})});N.displayName=P;var U="TooltipArrow";r.forwardRef((e,r)=>{let{__scopeTooltip:n,...o}=e,i=y(n);return $(U,n).isInside?null:(0,t.jsx)(s.Arrow,{...i,...o,ref:r})}).displayName=U;var H=e.i(647163);function V(){let[e,t]=(0,r.useState)(null),n=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{let e=window.matchMedia("(hover: hover)");t(e.matches);let r=e=>{clearTimeout(n.current),n.current=setTimeout(()=>{t(e.matches)},100)};return e.addEventListener("change",r),()=>{e.removeEventListener("change",r),clearTimeout(n.current)}},[]),e??!0}e.s(["useCanHover",0,V],205331);let W=r.forwardRef(({className:e,sideOffset:r=4,...n},o)=>(0,t.jsx)(M,{children:(0,t.jsx)(N,{ref:o,sideOffset:r,className:(0,H.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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]:sli
2de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));W.displayName=N.displayName;let z="max-w-[220px] px-3 py-2 text-xs font-medium bg-popover/95 backdrop-blur-sm border border-border/60 shadow-lg rounded-md text-center",B={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},q={top:"bottom-[-5px] left-1/2 -translate-x-1/2 border-b-border/60 border-r-border/60",bottom:"top-[-5px] left-1/2 -translate-x-1/2 border-t-border/60 border-l-border/60",left:"right-[-5px] top-1/2 -translate-y-1/2 border-t-border/60 border-r-border/60",right:"left-[-5px] top-1/2 -translate-y-1/2 border-b-border/60 border-l-border/60"};function J({content:e,children:n,side:o,align:i,delayMs:a,className:l}){let[s,c]=(0,r.useState)(!1);if(!s&&r.isValidElement(n)){let e=n.props;return r.cloneElement(n,{onPointerEnter:t=>{e.onPointerEnter?.(t),c(!0)},onFocus:t=>{e.onFocus?.(t),c(!0)}})}return(0,t.jsxs)(S,{delayDuration:a,children:[(0,t.jsx)(A,{asChild:!0,children:n}),(0,t.jsx)(W,{side:o,align:i,className:(0,H.cn)(z,l),children:e})]})}function G({content:e,children:n,side:o="top",align:i="center",delayMs:a=700,mobileBehavior:l="tap",className:s}){let c=V(),[u,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useId)(),m=(0,r.useCallback)(()=>{f.current&&(clearTimeout(f.current),f.current=null)},[]),h=(0,r.useCallback)(()=>{m(),f.current=setTimeout(()=>d(!1),2e3)},[m]),g=(0,r.useCallback)(()=>{"tap"===l&&(d(!0),h())},[l,h]);if((0,r.useEffect)(()=>m,[m]),c)return(0,t.jsx)(J,{side:o,align:i,delayMs:a,content:e,className:s,children:n});if("disabled"===l)return(0,t.jsx)(t.Fragment,{children:n});let y=(()=>{if(!r.isValidElement(n))return!1;let e=n.props;return"string"==typeof n.type&&/^(button|a|input|select|textarea)$/i.test(n.type)||"button"===e.role||"link"===e.role||"number"==typeof e.tabIndex})();return(0,t.jsxs)("div",{className:"relative inline-block",children:[(0,t.jsx)("div",{onClick:g,onKeyDown:y?void 0:e=>{("Enter"===e.key||" "===e.key||"Spacebar"===e.key)&&(e.preventDefault(),g())},className:"inline-block",role:y?void 0:"button",tabIndex:y?void 0:0,"aria-describedby":u?p:void 0,children:n}),u&&(0,t.jsxs)("div",{id:p,role:"tooltip",className:(0,H.cn)("absolute z-50 animate-in fade-in-0 zoom-in-95",z,B[o],s),children:[e,(0,t.jsx)("div",{className:(0,H.cn)("absolute h-2 w-2 rotate-45 border border-transparent bg-popover/95",q[o])})]})]})}e.s(["Tooltip",0,function(e){if("content"in e&&void 0!==e.content)return(0,t.jsx)(G,{...e});let{content:r,...n}=e;return(0,t.jsx)(S,{...n})},"TooltipContent",0,W,"TooltipProvider",0,E,"TooltipRoot",0,S,"TooltipTrigger",0,A],728231)},44215,e=>{"use strict";var t=e.i(262911);class r extends Error{status;details;constructor(e,t,r){super(t),this.status=e,this.details=r,this.name="APIError"}}function n(e){return e instanceof r}let o=new class{baseURL;constructor(e="/api"){this.baseURL=e}async request(e,n={}){let{timeout:o=3e4,skipAuth:i=!1,headers:a={},...l}=n,s=`${this.baseURL}${e}`,c=l.body instanceof FormData?{...a}:{"Content-Type":"application/json",...a},u=new AbortController,d=setTimeout(()=>u.abort(),o);try{let n=await fetch(s,{...l,headers:c,credentials:i?"omit":"include",signal:u.signal});if(clearTimeout(d),!n.ok){let o;401!==n.status||i||(0,t.handleAuthRejected)({source:`api:${e}`});let a=`HTTP ${n.status}: ${n.statusText}`,l=function(e){if(!e)return;let t=Number(e);if(Number.isFinite(t))return Math.max(1,Math.ceil(t));let r=Date.parse(e);if(Number.isFinite(r))return Math.max(1,Math.ceil((r-Date.now())/1e3))}(n.headers.get("Retry-After"));try{let e=await n.json();e&&"object"==typeof e&&"error"in e&&"string"==typeof e.error&&(a=e.error),o=e&&"object"==typeof e?e:void 0}catch{}throw new r(n.status,a,function(e,t){if(void 0===t)return e;let r=e?{...e}:{},n=r.details,o=n&&"object"==typeof n?{...n}:{};return"number"!=typeof o.retryAfterSec&&(o.retryAfterSec=t),r.details=o,r}(o,l))}let o=n.headers.get("content-type");if(!o?.includes("application/json"))return{};return await n.json()}catch(e){if(clearTimeout(d),e instanceof r)throw e;if(e instanceof DOMException&&"AbortError"===e.name)throw new r(408,"Request timeout");throw new r(0,e instanceof Error?e.message:"Network error")}}async get(e,t){return this.request(e,{...t,method:"GET"})}async post(e,t,r){return this.request(e,{...r,method:"POST",body:t?JSON.stringify(t):void 0})}async put(e,t,r){return this.request(e,{...r,method:"PUT",body:t?JSON.stringify(t):void 0})}async patch(e,t,r){return this.request(e,{...r,method:"PATCH",body:t?JSON.stringify(t):void 0})}async delete(e,t){return this.request(e,{...t,method:"DELETE"})}async upload(e,t,r){let{headers:n,...o}=r||{};return this.request(e,{...o,method:"POST",body:t,headers:n?Object.fromEntries(Object.entries(n).filter(([e])=>"content-type"!==e.toLowerCase())):void 0})}},i={get:o.get.bind(o),post:o.post.bind(o),put:o.put.bind(o),patch:o.patch.bind(o),delete:o.delete.bind(o),upload:o.upload.bind(o)};function a(e){if(e&&"object"==typeof e&&"success"in e&&!0===e.success&&"data"in e||e&&"object"==typeof e&&"data"in e)return e.data;let t=null===e?"null":void 0===e?"undefined":Array.isArray(e)?"array":typeof e;return console.warn(`unwrapAPIResponse: response did not match expected { success, data } or { data } envelope (got ${t}). Returning as-is. If this is a new endpoint shape, update the response wrapper.`,e),e}
2e.s(["APIError",0,r,"api",0,i,"getAPIErrorCode",0,function(e){if(!n(e))return null;let t=e.details?.code;return"string"==typeof t?t:null},"getAPIErrorRetryAfterSec",0,function(e){if(!n(e))return;let t=e.details;if(!t||"object"!=typeof t)return;let r=t.details;if(!r||"object"!=typeof r)return;let o=r.retryAfterSec;return"number"==typeof o&&Number.isFinite(o)?Math.max(1,Math.ceil(o)):void 0},"isAPIError",0,n,"isRateLimitedError",0,function(e){return n(e)&&429===e.status},"unwrapAPIResponse",0,a,"unwrapAPIResponseArray",0,function(e){let t=a(e);return Array.isArray(t)?t:null!=t?[t]:[]}])},54597,e=>{"use strict";e.s(["authenticatedFetch",()=>r]);var t=e.i(262911);async function r(e,n={},o="fetch"){let i=await fetch(e,{...n,credentials:n.credentials??"include"});return 401===i.status&&(0,t.handleAuthRejected)({source:o}),i}e.i(128347)},501897,e=>{"use strict";var t=e.i(44215);function r(e,t,r){let n=r?.baseMs??500,o=r?.maxMs??5e3,i=r?.maxRetryAfterMs??1e4;if(null!=t&&Number.isFinite(t)&&t>0)return Math.min(1e3*t,i);let a=Math.max(0,Math.floor(e)),l=Math.min(n*2**a,o),s=r?.jitter??Math.random(),c=r?.jitter!=null?.25*s*l:.25*Math.random()*l;return Math.min(o,Math.round(l+c))}let n=e=>new Promise(t=>setTimeout(t,e));async function o(e,i={}){let a=i.maxRetries??2,l=i.maxRetryAfterMs??3e4,s=i.sleep??n;for(let n=0;;n++)try{return await e()}catch(c){if(!(0,t.isRateLimitedError)(c)||n>=a)throw c;let e=(0,t.getAPIErrorRetryAfterSec)(c)??null,o=r(n,e,{maxRetryAfterMs:l});i.onRetry?.({attempt:n,delayMs:o,retryAfterSec:e}),await s(o)}}e.s(["RATE_LIMIT_MAX_RETRIES",0,3,"computeRateLimitBackoffMs",0,r,"parseRetryAfterHeader",0,function(e,t=new Date){if(null==e||""===e)return null;let r=e.trim(),n=Number(r);if(Number.isFinite(n))return Math.max(0,Math.floor(n));let o=new Date(r);if(!isNaN(o.getTime())){let e=Math.floor((o.getTime()-t.getTime())/1e3);return e>0?e:0}return null},"withRateLimitRetry",0,o])},262911,e=>{"use strict";let t=null,r=!1,n=()=>void 0!==globalThis.window,o=e=>{globalThis.window.location.replace(e)},i=async()=>{let{authClient:t}=await e.A(779873);return t.getSession({query:{disableCookieCache:!0}})},a=async()=>{let{resetUserScopedClientState:t}=await e.A(107856);await t()},l=async()=>{let{authClient:t}=await e.A(779873);await t.signOut()},s=async()=>{let t=await e.A(452064).catch(()=>null);t?.notify?.info?.("Session expired")};async function c({source:e}){if(!n()||r)return;let t=!1;try{let r=await i();if(r&&"object"==typeof r&&null!=r.error)return void console.warn("[auth] Session revalidation failed (server error); treating 401 as transient",{source:e});t=function(e){if(!e||"object"!=typeof e)return!1;let t=e.user;if(t&&"object"==typeof t&&"id"in t)return"string"==typeof t.id;let r=e.data;if(r&&"object"==typeof r&&"user"in r){let e=r.user;return!!(e&&"object"==typeof e&&"string"==typeof e.id)}return!1}(r)}catch{return}if(!t&&!r){r=!0;try{await l()}catch(e){console.error("[auth] Failed to clear rejected session cookies",e)}try{await a()}catch(e){console.error("[auth] Failed to reset user-scoped client state",e)}try{await s()}catch(e){console.error("[auth] Failed to show session expiration notice",e)}console.warn("[auth] Server rejected session; redirecting to login",{source:e}),o(function(){let e=globalThis.window;if(!e)return"/login";let t=`${e.location.pathname}${e.location.search}`,r=new URL("/login",e.location.origin);return t&&"/login"!==e.location.pathname&&r.searchParams.set("next",t),`${r.pathname}${r.search}`}())}}e.s(["handleAuthRejected",0,function(e){return t||(t=c(e).finally(()=>{t=null})),t},"resetSessionInvalidationForTests",0,function(){t=null,r=!1,n=()=>void 0!==globalThis.window,o=e=>{globalThis.window.location.replace(e)},i=async()=>{let{authClient:t}=await e.A(779873);return t.getSession({query:{disableCookieCache:!0}})},a=async()=>{let{resetUserScopedClientState:t}=await e.A(107856);await t()},l=async()=>{let{authClient:t}=await e.A(779873);await t.signOut()},s=async()=>{let t=await e.A(452064).catch(()=>null);t?.notify?.info?.("Session expired")}},"setSessionInvalidationHooksForTests",0,function(e){e.isBrowser&&(n=e.isBrowser),e.revalidate&&(i=e.revalidate),e.reset&&(a=e.reset),e.notify&&(s=e.notify),e.clearCookies&&(l=e.clearCookies)},"setSessionInvalidationRedirectForTests",0,function(e){o=e}])},985413,e=>{"use strict";e.i(247167),e.s(["buildUserAvatarUrl",0,function(e){var t,r;return t=e.size,r=e.revision,`/api/avatars/me?size=${t}&v=${r}`},"oauthAvatarUrl",0,function(e,t){let r;if("string"!=typeof e)return null;let n=e.trim();if(!n)return null;let o=n.toLowerCase();if("null"===o||"undefined"===o)return null;try{r=new URL(n)}catch{return null}if("https:"===r.protocol)return r.toString();let i="localhost"===r.hostname||"0.0.0.0"===r.hostname||"127.0.0.1"===r.hostname||"::1"===r.hostname||r.hostname.endsWith(".localhost")||r.hostname.endsWith(".local"),a=t?.nodeEnv??"production";return"http:"===r.protocol&&"production"!==a&&i?r.toString():null}])},675151,e=>{"use strict";var t=e.i(319910);let r={interview_prep_strategy:"Interview prep is a Pro feature. Upgrade to unlock it.",interview_answer_
2coach:"Mock interviews are a Pro feature. Upgrade to unlock them.",interview_question_detail:"STAR answer guides are a Pro feature. Upgrade to unlock them.",interview_cheat_sheet:`The ${t.INTERVIEW_BRIEF.sentence} is a Pro feature. Upgrade to unlock it.`};function n(e){var t;if(null===e.remaining)return{state:"unlimited",primaryText:null,secondaryText:null,ctaLabel:null,showUsageChrome:!1,actionMode:"default",remainingLabel:null};if(e.requiresUpgrade||0===e.remaining)return{state:"upgrade_required",primaryText:"Upgrade to continue",secondaryText:"Keep going on Pro.",ctaLabel:"Upgrade to continue",showUsageChrome:!0,actionMode:"upgrade",remainingLabel:"Upgrade to continue"};let r=null===(t=e.limit)||t<=1?null:Math.max(1,Math.ceil(t/3)),n=null!==r&&e.remaining<=r;return{state:n?"low_remaining":"available",primaryText:`${e.remaining} left`,secondaryText:n?"Keep the momentum going.":null,ctaLabel:null,showUsageChrome:!0,actionMode:"default",remainingLabel:`${e.remaining} left`}}e.s(["getAiFeatureReviewDetail",0,function(e){return null===e.remaining?"Full access is active.":`${e.label} continues on Pro.`},"getAiFeatureReviewLabel",0,function(e){return null===e.remaining?"Unlimited":"Upgrade to continue"},"getAiFeatureToastCopy",0,function(e){let t="featureLabel"in e?e.featureLabel:e.label;return{title:"Upgrade to continue",description:`${t} continues on Pro.`}},"getAiUsageChromeTooltip",0,function(e){return null===e.remaining?"":r[e.featureKey]??`${e.label} is a Pro feature. Upgrade to unlock it.`},"getAiUsageDiamondMeter",0,function(e){let t,r=n(e);if(!r.showUsageChrome||e.isProOnly)return null;let o=e.limit,i=null===e.remaining?0:Math.max(0,e.remaining);return t="upgrade"===r.actionMode&&0===i?0:"number"==typeof o&&o>0?Math.min(i,o):0,{slots:"number"==typeof o&&o>0?o:1,filled:t,ariaLabel:`${e.label}: upgrade to continue on Pro.`}},"getAiUsagePresentation",0,n])},128347,e=>{"use strict";e.s(["MUTATION_SOURCE_META",()=>o,"discardAllQueuedMutations",()=>x,"enqueueQueuedMutation",()=>v,"isOfflineOrNetworkError",()=>u,"useQueuedMutations",()=>S]);var t=e.i(271645),r=e.i(88922),n=e.i(529218);let o={job_notes:{label:"Job notes",description:"Notes you saved to a tracked job."},status_change:{label:"Status change",description:"A pipeline status move (applied / interviewing / decided)."},interview_prep_answer:{label:"Interview prep answer",description:"Notes or study-state on an interview-prep question."}},i="roleready:offline-mutation-queue:v1",a="roleready:offline-mutation-queue-changed",l=new Set(["POST","PATCH","PUT","DELETE"]),s=new Set(["job_notes","status_change","interview_prep_answer"]),c=new Set([409,412]);function u(e){return!!function(e){if(null==e)return!1;if(e instanceof TypeError)return!0;if(e instanceof DOMException)return"AbortError"!==e.name&&("NetworkError"===e.name||"TimeoutError"===e.name||e.message.toLowerCase().includes("network"));if(e instanceof Error){let t=e.message.toLowerCase();return t.includes("failed to fetch")||t.includes("network")||t.includes("load failed")}return!1}(e)||!!e&&"object"==typeof e&&"APIError"===e.name&&0===e.status||!1}function d(e){return JSON.stringify(e)}let f=null,p=new Set;function m(){try{return!!window.localStorage}catch{return!1}}function h(){if(f)return f;if(!m())return f=[];try{let e=window.localStorage.getItem(i);e&&JSON.parse(e),f=function(e){let t;if(!e)return[];try{t=JSON.parse(e)}catch{return[]}if(!Array.isArray(t))return[];let r=[];for(let e of t){let t;if(!e||"object"!=typeof e)continue;let n="string"==typeof e.id?e.id:null,o="string"==typeof e.method&&l.has(e.method)?e.method:null,i="string"==typeof e.url&&e.url.startsWith("/api/")?e.url:null,a="string"==typeof e.source&&s.has(e.source)?e.source:null,c="number"==typeof e.createdAt?e.createdAt:null;if(!n||!o||!i||!a||null==c)continue;let u="number"==typeof e.attempts&&Number.isFinite(e.attempts)?Math.max(0,Math.floor(e.attempts)):0,d="number"==typeof e.lastAttemptedAt?e.lastAttemptedAt:void 0,f="string"==typeof e.label?e.label:void 0,p=e.conflict;if(p&&"object"==typeof p){let e="number"==typeof p.status?p.status:0,r="string"==typeof p.message?p.message:"",n="number"==typeof p.detectedAt?p.detectedAt:Date.now();e>0&&(t={status:e,message:r,detectedAt:n,...void 0!==p.serverState?{serverState:p.serverState}:{}})}r.push({id:n,createdAt:c,method:o,url:i,source:a,...f?{label:f}:{},body:e.body,attempts:u,...void 0!==d?{lastAttemptedAt:d}:{},...t?{conflict:t}:{}})}return r.slice(0,200)}(e),e&&d(f)!==e&&window.localStorage.setItem(i,d(f))}catch{(0,n.removeCorruptStorageValue)(i),f=[]}return f}let g=[];function y(e){if(f=e,m())try{window.localStorage.setItem(i,d(e))}catch{}
2p.forEach(e=>e())}function w(e){p.add(e);let t=t=>{t instanceof StorageEvent&&(t.key&&t.key!==i||(f=null,e()))};return window.addEventListener("storage",t),window.addEventListener(a,t),()=>{p.delete(e),window.removeEventListener("storage",t),window.removeEventListener(a,t)}}function b(){window.dispatchEvent(new Event(a))}function v(e){let t={id:function(){try{if("u">typeof crypto&&"randomUUID"in crypto)return crypto.randomUUID()}catch{}return`mq_${Date.now().toString(36)}_${Math.floor(1e9*Math.random()).toString(36)}`}(),createdAt:Date.now(),method:e.method,url:e.url,source:e.source,attempts:0,...void 0!==e.body?{body:e.body}:{},...e.label?{label:e.label}:{}},n=h();return n.length>=200?r.notify.warning("Offline edit queue is full. Reconnect and sync, or discard old edits, before saving more."):(y([...n,t].slice(-200)),b()),t}function x(){0!==h().length&&(y([]),b())}let E=null;async function C(e=fetch){return E||(E=(async()=>{try{let n=h(),o=[],i=0,a=0,l=0,s=0,u=!1;for(let d of n){var t,r;let n,f,p={id:d.id,outcome:"ok"};try{n=await e(d.url,{method:d.method,credentials:"include",headers:null!=d.body?{"Content-Type":"application/json"}:{},body:function(e){if(null!=e)try{return"string"==typeof e?e:JSON.stringify(e)}catch{return}}(d.body)})}catch(e){p.outcome="network",p.message=e instanceof Error?e.message:"Network error",a+=1,o.push(p),k(d.id,{outcome:"network"}),u=!0;break}if(n.ok){i+=1,o.push(p),function(e){y(h().filter(t=>t.id!==e)),b()}(d.id);continue}try{f=await n.text()}catch{f=void 0}let m=(t=n,r=f,!!c.has(t.status)||400===t.status&&"string"==typeof r&&(r.includes('"code":"conflict"')||r.includes('"code":"stale_state"')||r.includes('"code":"version_mismatch"'))),g=function(e){if(e)try{let t=JSON.parse(e);if(t&&"object"==typeof t){let e=t.message??t.error;if("string"==typeof e)return e}}catch{}}(f)||`HTTP ${n.status} ${n.statusText}`.trim();if(m){p.outcome="conflict",p.status=n.status,p.message=g,l+=1,o.push(p),k(d.id,{outcome:"conflict",status:n.status,message:g,serverState:T(f)}),u=!0;break}p.outcome="conflict",p.status=n.status,p.message=g,s+=1,o.push(p),k(d.id,{outcome:"conflict",status:n.status,message:g,serverState:T(f)}),u=!0;break}return{replayed:i,networkFailures:a,conflicts:l,otherFailures:s,results:o,stopped:u}}finally{E=null}})())}function T(e){if(e)try{let t=JSON.parse(e);if(t&&"object"==typeof t){let e=t.details??t.serverState??t.state;if(void 0!==e)return e}}catch{}}function k(e,t){let r=h(),n=r.findIndex(t=>t.id===e);if(-1===n)return;let o=r[n],i=r.slice(),a={...o,attempts:o.attempts+1,lastAttemptedAt:Date.now()};"conflict"===t.outcome&&(a.conflict={status:t.status,message:t.message,detectedAt:Date.now(),...void 0!==t.serverState?{serverState:t.serverState}:{}}),i[n]=a,y(i),b()}function S(){let e=(0,t.useSyncExternalStore)(w,h,()=>g),r=(0,t.useCallback)(()=>C(),[]),n=(0,t.useCallback)(e=>{let t;(t=h().filter(t=>t.id!==e)).length!==h().length&&(y(t),b())},[]),o=(0,t.useCallback)(()=>x(),[]),i=(0,t.useCallback)(e=>(function(e){let t=h(),r=t.findIndex(t=>t.id===e);if(-1===r||!t[r].conflict)return;let n=t.slice();n[r]={...t[r],conflict:void 0},y(n),b()})(e),[]);return{items:e,hasPending:e.length>0,conflictCount:e.filter(e=>!!e.conflict).length,replay:r,discard:n,discardAll:o,clearConflict:i}}},513082,e=>{"use strict";e.s(["useProfileStore",()=>c]);var t=e.i(768834),r=e.i(579473),n=e.i(529218),o=e.i(44215),i=e.i(54597),a=e.i(501897),l=e.i(985413);class s extends Error{constructor(){super("Rate limit exceeded"),this.name="RateLimitError"}}let c=(0,t.create)()((0,r.persist)((t,r)=>({loadedUserId:null,account:null,displayAvatarUrl:null,profile:null,links:[],preferences:null,activityLog:[],analytics:null,recentJobs:[],currentTab:"overview",isLoading:!1,error:null,errorType:null,isEditing:!1,hasUnsavedChanges:!1,loadProfile:async n=>{if(!r().isLoading){t({isLoading:!0,error:null,errorType:null});try{let l=null;for(let e=0;e<=a.RATE_LIMIT_MAX_RETRIES&&(l=await (0,i.authenticatedFetch)("/api/profile",{cache:"no-store"},"profile:load"),429===l.status&&e!==a.RATE_LIMIT_MAX_RETRIES);e++){let t=(0,a.parseRetryAfterHeader)(l.headers.get("Retry-After")),r=(0,a.computeRateLimitBackoffMs)(e,t);await new Promise(e=>setTimeout(e,r))}if(!l||!l.ok){if(l?.status===429)throw new s;throw Error("Failed to load profile")}let c=await l.json(),u=(0,o.unwrapAPIResponse)(c);if(n&&u.account.id!==n){r().clearStore(),t({error:"Loaded profile does not match the expected user",errorType:null,isLoading:!1});return}t({loadedUserId:u.account.id,account:u.account,displayAvatarUrl:u.displayAvatarUrl??null,profile:u.info,links:u.links??[],preferences:u.info.preferences??null,activityLog:[],analytics:u.analytics,error:null,errorType:null,isLoading:!1}),e.A(623746).then(({useUIStore:e})=>{let t=u.info.preferences?.ui;e.getState().setBoardCardOpenMode(t?.boardCardOpenMode==="page"?"page":"modal"),e.getState().setBookmarkCardOpenMode(t?.bookmarkCardOpenMode==="page"?"page":"modal")}).catch(()=>{})}catch(r){let e=r instanceof s;t({error:e?"We're catching up. Give it a moment and try again.":r instanceof Error?r.message:"Failed to load profile",errorType:e?"rate_limit":null,isLoading:!1})}}},updateProfile:async e=>{t({isLoading:!0,error:null});try{let r=await (0,i.authenticatedFetch)("/api/profile",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},"profile:update");if(!r.ok)throw Error("Failed to update profile");let n=await r.json(),a=(0,o.unwrapAPIResponse)(n);t({profile:a,isLoading:!1,hasUnsavedChanges:!1})}catch(e){t({error:e instanceof Error?e.message:"Failed to update profile",isLoading:!1})}},deleteProfile:async()=>{t({isLoading:!0,error:null});try{if(!(await (0,i.authenticatedFetch)("/api/profile",{method:"DELETE"},"profile:delete")).ok)throw Error("Failed to delete profile");t({profile:null,preferences:null,activityLog:[],analytics:null,isLoading:!1})}catch(e){t({error:e instanceof Error?e.message:"Failed to delete profile",isLoading:!1})}},verifyProfile:async()=>{t({isLoading:!0,error:null});try{let e=await (0,i.authenticatedFetch)("/api/profile/verify",{method:"POST"},"profile:verify");if(!e.ok)throw Error("Failed to verify profile");let r=await e.json(),n=(0,o.unwrapAPIResponse)(r);return t({isLoading:!1}),{success:!0,...n}}catch(r){let e=r instanceof Error?r.message:"Failed to verify profile";return t({error:e,isLoading:!1}),{success:!1,message:e}}},updatePreferences:async e=>{t({isLoading:!0,error:null});try{let r=await (0,i.authenticatedFetch)("/api/profile/preferences",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},"profile:preferences");if(!r.ok)throw Error("Failed to update preferences");let n=await r.json(),a=(0,o.unwrapAPIResponse)(n);t({preferences:a,isLoading:!1})}catch(e){t({error:e instanceof Error?e.message:"Failed to update preferences",isLoading:!1})}},refreshAnalytics:async()=>{await r().loadProfile()},setRecentJobs:e=>{t({recentJobs:[...e].sort((e,t)=>
2{let r=e.userJob.createdAt??0;return(t.userJob.createdAt??0)-r}).slice(0,5)})},setCurrentTab:e=>t({currentTab:e}),setIsEditing:e=>t({isEditing:e}),setHasUnsavedChanges:e=>t({hasUnsavedChanges:e}),clearError:()=>t({error:null,errorType:null}),clearStore:()=>t(e=>({loadedUserId:null,account:null,displayAvatarUrl:null,profile:null,links:[],preferences:null,activityLog:[],analytics:null,recentJobs:[],isLoading:!1,error:null,errorType:null,isEditing:!1,hasUnsavedChanges:!1,currentTab:e.currentTab})),getCompleteProfile:e=>{let t=r(),n=e??t.recentJobs;return{account:t.account??{id:"",email:"",name:null,emailVerified:!1,firstName:null,lastName:null,hasCompletedWelcomeTour:!1,welcomeTourVersion:1,welcomeTourCompletedAt:null,welcomeTourSkippedAt:null,createdAt:new Date(0).toISOString(),updatedAt:new Date(0).toISOString()},info:t.profile??{userId:"",headline:null,bio:null,location:null,city:null,stateOrProvince:null,stateOrProvinceCode:null,country:null,countryCode:null,experienceLevel:null,phone:null,currentRole:null,currentCompany:null,preferredSalaryMin:null,preferredSalaryMax:null,preferredWorkType:null,targetRoles:null,targetCompanies:null,targetLocations:null,availability:null,noticePeriod:null,theme:"system",defaultView:"board",compactMode:!1,colorTheme:"forest",hasUploadedResume:!1,hasAddedJob:!1,hasVisitedResumeBuilder:!1,hasVisitedJobBank:!1,hasVisitedKnowledgeBank:!1,hasCelebratedOnboardingCompletion:!1,preferences:null,avatarRevision:0,desiredJobTitle:null,createdAt:0,updatedAt:0},analytics:t.analytics||{totalApplications:0,activeApplications:0,responseRate:0,averageTimeToResponse:null,interviewConversionRate:0,offerConversionRate:0,applicationsByStatus:{},applicationsByMonth:[],topCompanies:[],salaryRangeAnalysis:{averageOffered:0,highestOffered:0,lowestOffered:0,marketComparison:0}},defaultResume:null,links:t.links,recentJobs:n,displayAvatarUrl:t.displayAvatarUrl??(t.profile&&t.profile.avatarRevision>0?(0,l.buildUserAvatarUrl)({size:96,revision:t.profile.avatarRevision}):null)}},calculateCompletionScore:()=>{let e=r(),t=0;return e.profile&&(e.profile.headline&&(t+=15),e.profile.bio&&(t+=15),e.profile.currentRole&&(t+=10),e.profile.location&&(t+=10)),e.preferences&&(t+=25),e.profile?.desiredJobTitle&&(t+=25),Math.min(100,Math.round(t))},exportProfileData:async()=>new Blob([JSON.stringify(r().getCompleteProfile(),null,2)],{type:"application/json"})}),{name:"roleready-profile",storage:(0,r.createJSONStorage)(()=>n.safeLocalStorage),partialize:e=>({currentTab:e.currentTab})}))},88922,e=>{"use strict";e.s(["getJobToastIcon",()=>T,"notify",()=>S,"notifyRateLimited",()=>R,"notifyRateLimitedError",()=>A,"withCountdownRing",()=>x]);var t=e.i(843476),r=e.i(862911),n=e.i(354385),o=e.i(503116),i=e.i(448876),a=e.i(788699),l=e.i(356909),s=e.i(727612),c=e.i(950216),u=e.i(653911),d=e.i(334636),f=e.i(44215),p=e.i(675151),m=e.i(647163);let h=0,g=0,y={info:2600,success:3200,warning:3800,error:4600,loading:1/0,progressStart:2200},w={success:"Done",error:"Something went wrong",info:"Heads up",warning:"Heads up"};function b(e){return e.trim().replace(/!+$/u,"")}function v(e,t){return"number"==typeof t?.duration?t.duration:y[e]}function x(e,t){if(!("number"==typeof t&&Number.isFinite(t)&&t>0))return e;let r=e??{},n={...r.style};n["--toast-duration"]=`${t}ms`;let o=r.classNames??{},i=o.toast??"";return{...r,style:n,classNames:{...o,toast:(0,m.cn)(i,"rr-toast-timed")}}}function E(e,t,r){let n=v(e,r),o=r?.id??(0,u.nextToastId)();return(0,u.withSonnerToast)(o,i=>{let a;i[e]((a=b(t)).length>0?a:w[e],{...x(r,n),duration:n,id:o})}),o}function C({companyName:e,jobTitle:t}){let r=e?.trim(),n=t?.trim();return n&&r?`${n} at ${r}`:r??n??void 0}function T({companyName:e,fallbackIcon:n}){let o=e?.trim();return o?(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center overflow-hidden rounded-lg border border-border/60 bg-card shadow-sm",children:(0,t.jsx)(d.CompanyLogo,{company:o,size:"sm",className:"h-8 w-8 rounded-lg shadow-none",noWrapperBorder:!0})}):(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:n??(0,t.jsx)(r.BriefcaseBusiness,{className:"h-4 w-4"})})}function k(e,t,r,n){return E(e,t,{...n,description:n?.description??C(r),icon:n?.icon??T(r)})}let S={success:(e,t)=>E("success",e,t),error:(e,t)=>
2E("error",e,t),info:(e,t)=>E("info",e,t),warning:(e,t)=>E("warning",e,t),featureLocked(e,t){let{title:r,description:n}=(0,p.getAiFeatureToastCopy)(e);return E("warning",r,{...t,description:n,action:{label:"Upgrade",onClick:()=>{window.location.href=e.upgradePath}}})},loading:function(e,t){let r=b(e),n=t?.id??(0,u.nextToastId)();return(0,u.withSonnerToast)(n,e=>{e.loading(r.length>0?r:"Loadingâ¦",{...t,duration:v("loading",t),id:n})}),n},dismiss(e){(0,u.dropQueuedToast)(e),(0,u.withSonnerToast)(void 0,t=>{t.dismiss(e)})},copySuccess:(e="Copied",r)=>E("success",e,{...r,icon:r?.icon??(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:(0,t.jsx)(n.ClipboardCheck,{className:"h-4 w-4"})})}),saved:(e="Saved",r)=>E("success",e,{...r,icon:r?.icon??(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:(0,t.jsx)(l.Save,{className:"h-4 w-4"})})}),updated:(e="Updated",r)=>E("success",e,{...r,icon:r?.icon??(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:(0,t.jsx)(a.Pencil,{className:"h-4 w-4"})})}),deleted:(e="Deleted",r)=>E("success",e,{...r,icon:r?.icon??(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:(0,t.jsx)(s.Trash2,{className:"h-4 w-4"})})}),rateLimited(e,r){let n="number"==typeof e&&e>0?Math.ceil(e):null;return E("warning",n?`Slow down. Try again in ${n}s`:"Slow down. Try again shortly",{...r,icon:r?.icon??(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:(0,t.jsx)(o.Clock,{className:"h-4 w-4"})})})},rateLimitRetrying(e,r){let n=Math.max(1,Math.round(e/1e3));return E("info","Taking a breather",{duration:8e3,...r,description:r?.description??`Holding this for a moment. Retrying in about ${n}s.`,icon:r?.icon??(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:(0,t.jsx)(o.Clock,{className:"h-4 w-4"})})})},jobSuccess:(e,t,r)=>k("success",e,t,r),jobError:(e,t,r)=>k("error",e,t,r),jobInfo:(e,t,r)=>k("info",e,t,r),progress:{start:(e,r)=>E("info",e,{...r,duration:"number"==typeof r?.duration?r.duration:y.progressStart,icon:r?.icon??(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:(0,t.jsx)(c.Spinner,{size:"sm"})})}),done:(e,t)=>E("success",e,t),failed:(e,t)=>E("error",e,t),jobStart:(e,t,r)=>E("info",e,{...r,duration:"number"==typeof r?.duration?r.duration:y.progressStart,description:r?.description??C(t),icon:r?.icon??T(t)}),jobDone:(e,t,r)=>k("success",e,t,r),jobFailed:(e,t,r)=>k("error",e,t,r)},jobBank:{aiRankingFallback:e=>E("info","Using standard job order",{...e,description:e?.description??"Smart ranking didn't apply. You can still browse and add roles.",icon:e?.icon??(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:(0,t.jsx)(i.ListOrdered,{className:"h-4 w-4"})})}),rapidApiSeedRateLimited(e,r){let n=Date.now();if(n-h<55e3)return;h=n;let i="number"==typeof e&&e>0?Math.ceil(e):60;return E("warning","Live listings are on a short pause",{...r,description:r?.description??`Showing saved matches for now. New postings refresh about once a minute. Try again in ${i}s.`,duration:"number"==typeof r?.duration?r.duration:Math.min(12e3,5e3+80*Math.min(i,120)),icon:r?.icon??(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:(0,t.jsx)(o.Clock,{className:"h-4 w-4"})})})},searchPostRateLimited(e,r){let n=Date.now();if(n-g<55e3)return;g=n;let i="number"==typeof e&&e>0?Math.ceil(e):60;return E("warning","Too many searches",{...r,description:r?.description??`Give it about ${i}s before searching again.`,duration:"number"==typeof r?.duration?r.duration:Math.min(12e3,5e3+80*Math.min(i,120)),icon:r?.icon??(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center self-center rounded-lg border border-border/60 bg-muted text-muted-foreground shadow-sm",children:(0,t.jsx)(o.Clock,{className:"h-4 w-4"})})})}}};function R(e,t){return S.rateLimited(e,t)}function A(e,t){return!!(0,f.isRateLimitedError)(e)&&(R((0,f.getAPIErrorRetryAfterSec)(e),t),!0)}},376256,212675,e=>{"use strict";let t=["recruiter_screen","phone_screen","screening","technical_1","technical_2","technical_3","system_design","case_study","portfolio_review","behavioral","cultural_fit","onsite_panel","onsite","take_home","panel","final_round","final","group","other"],r=t.filter(e=>"other"!==e);e.s(["ACCOMPLISHMENT_CATEGORIES",0,["patent","publication","speaking","open_source","military","competition","certification","award","other"],"CONTACT_TYPES",0,["recruiter","hiring_manager","peer","leadership","referral","other"],"CURATED_INTERVIEW_TYPES",0,r,"EVENT_PRIORITIES",0,["low","medium","high"],"EVENT_STATUSES",0,["scheduled","completed","cancelled","rescheduled"],"EVENT_TYPES",0,["interview","follow_up","deadline","networking","assessment","offer_call","custom"],"EXPERIENCE_LEVELS",0,["Entry","Mid","Senior","Staff","Principal","Director","VP","C-Level"],"FILE_CATEGORIES",0,["job_posting","resume","cover_letter","portfolio","certificate","transcript","writing_sample","reference","other"],"INTERVIEW_TAGS",0,["recruiter","hiring_manager","peer","leadership","live_coding","system_design","debugging","deep_dive","panel","onsite","virtual_onsite","phone","video","culture","values","cross_functional","take_home","case_study","presentation","timeboxed","pair_programming"],"INTERVIEW_TYPES",0,t,"LANGUAGE_PROFICIENCY_LEVELS",0,["elementary","conversational","professional","fluent","native"],"REJECTION_REASONS",0,["skills_gap","experience_level","culture_fit","compensation","role_filled","role_cancelled","no_reason_given","other"],"SKILL_LEVELS",0,["Beginner","Intermediate","Advanced","Expert"],"STATUS_CATEGORIES",0,["interested","applied","interviewing","decided"],"WITHDRAWAL_REASONS",0,["accepted_other_offer","compensation","lost_interest","bad_experience","role_mismatch","personal","other"],"WORK_TYPES",0,["Remote","Hybrid","Onsite"]],212675),e.s(["AI_TASK_TYPES",0,["rewrite","extraction","job_intelligence","interview_question_generation","interview_question_single_chips","interview_question_detail","company_research","starter_interview_generation","tailor_resume","profile_extraction","offer_extraction","linkedin_import","resume_builder_ai_assistant","cover_letter_generation","job_letter_generation","knowledge_bank_extraction","interview_prep_strategy","interview_prep_strategy_accept","interview_prep_category_expand","interview_prep_category_question","job_search_synthesis","resume_intelligence_analysis","offer_advisor","job_fit_analysis","interview_answer_
2coach","interview_mock_session","interview_cheat_sheet","interview_readiness_brief","knowledge_bio_generation"],"COLOR_THEMES",0,{forest:{name:"Quiet Craft",description:"Warm, crafted, calm",previewColor:"174 58% 48%",icon:"Leaf"}},"LEGACY_THEME_MIGRATION",0,{blue:"forest",violet:"forest",amber:"forest",rose:"forest",neutral:"forest",moss:"forest",ember:"forest",slate:"forest",dusk:"forest",uncolored:"forest",emerald:"forest",terracotta:"forest",sage:"forest",indigo:"forest",paper:"forest"},"ROLE_SEMANTICS_VERSION",0,1],376256)},258950,953760,e=>{"use strict";let t,r=["top","right","bottom","left"],n=r.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),o=Math.min,i=Math.max,a=Math.round,l=Math.floor,s=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function h(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e,t,r){void 0===r&&(r=!1);let n=f(e),o=p(h(e)),i=m(o),a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=E(a)),[a,E(a)]}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],b=["right","left"],v=["top","bottom"],x=["bottom","top"];function E(e){let t=d(e);return c[t]+e.slice(t.length)}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function T(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 k(e,t,r){let n,{reference:o,floating:i}=e,a=h(t),l=p(h(t)),s=m(l),c=d(t),u="y"===a,g=o.x+o.width/2-i.width/2,y=o.y+o.height/2-i.height/2,w=o[s]/2-i[s]/2;switch(c){case"top":n={x:g,y:o.y-i.height};break;case"bottom":n={x:g,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:y};break;case"left":n={x:o.x-i.width,y:y};break;default:n={x:o.x,y:o.y}}switch(f(t)){case"start":n[l]-=w*(r&&u?-1:1);break;case"end":n[l]+=w*(r&&u?-1:1)}return n}async function S(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=u(t,e),h=C(m),g=l[p?"floating"===f?"reference":"floating":f],y=T(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(g)))||r?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),w="floating"===f?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await (null==i.isElement?void 0:i.isElement(b))&&await (null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=T(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:b,strategy:s}):w);return{top:(y.top-x.top+h.top)/v.y,bottom:(x.bottom-y.bottom+h.bottom)/v.y,left:(y.left-x.left+h.left)/v.x,right:(x.right-y.right+h.right)/v.x}}let R=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=a.detectOverflow?a:{...a,detectOverflow:S},s=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=k(c,n,s),f=n,p=0,m={};for(let r=0;r<i.length;r++){let h=i[r];if(!h)continue;let{name:g,fn:y}=h,{x:w,y:b,data:v,reset:x}=await y({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:t}});u=null!=w?w:u,d=null!=b?b:d,m[g]={...m[g],...v},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:u,y:d}=k(c,f,s)),r=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}};function A(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _(e){return r.some(t=>e[t]>=0)}function L(e){let t=o(...e.map(e=>e.left)),r=o(...e.map(e=>e.top));return{x:t,y:r,width:i(...e.map(e=>e.right))-t,height:i(...e.map(e=>e.bottom))-r}}let j=new Set(["left","top"]);async function M(e,t){let{placement:r,platform:n,elements:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),a=d(r),l=f(r),s="y"===h(r),c=j.has(a)?-1:1,p=i&&s?-1:1,m=u(t,e),{mainAxis:g,crossAxis:y,alignmentAxis:w}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}
2:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&"number"==typeof w&&(y="end"===l?-1*w:w),s?{x:y*p,y:g*c}:{x:g*c,y:y*p}}function P(){return"u">typeof window}function N(e){return $(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=($(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $(e){return!!P()&&(e instanceof Node||e instanceof O(e).Node)}function D(e){return!!P()&&(e instanceof Element||e instanceof O(e).Element)}function F(e){return!!P()&&(e instanceof HTMLElement||e instanceof O(e).HTMLElement)}function U(e){return!(!P()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof O(e).ShadowRoot)}function H(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function V(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let W=/transform|translate|scale|rotate|perspective|filter/,z=/paint|layout|strict|content/,B=e=>!!e&&"none"!==e;function q(e){let t=D(e)?Y(e):e;return B(t.transform)||B(t.translate)||B(t.scale)||B(t.rotate)||B(t.perspective)||!J()&&(B(t.backdropFilter)||B(t.filter))||W.test(t.willChange||"")||z.test(t.contain||"")}function J(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function G(e){return/^(html|body|#document)$/.test(N(e))}function Y(e){return O(e).getComputedStyle(e)}function K(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if("html"===N(e))return e;let t=e.assignedSlot||e.parentNode||U(e)&&e.host||I(e);return U(t)?t.host:t}function Z(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=X(t);return G(r)?t.ownerDocument?t.ownerDocument.body:t.body:F(r)&&H(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=O(o);if(!i)return t.concat(o,Z(o,[],r));{let e=Q(a);return t.concat(a,a.visualViewport||[],H(o)?o:[],e&&r?Z(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=Y(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=F(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,s=a(r)!==i||a(n)!==l;return s&&(r=i,n=l),{width:r,height:n,$:s}}function et(e){return D(e)?e:e.contextElement}function er(e){let t=et(e);if(!F(t))return s(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ee(t),l=(i?a(r.width):r.width)/n,c=(i?a(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}let en=s(0);function eo(e){let t=O(e);return J()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function ei(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),a=et(e),l=s(1);t&&(n?D(n)&&(l=er(n)):l=er(e));let c=(void 0===(o=r)&&(o=!1),n&&(!o||n===O(a))&&o)?eo(a):s(0),u=(i.left+c.x)/l.x,d=(i.top+c.y)/l.y,f=i.width/l.x,p=i.height/l.y;if(a){let e=O(a),t=n&&D(n)?O(n):n,r=e,o=Q(r);for(;o&&n&&t!==r;){let e=er(o),t=o.getBoundingClientRect(),n=Y(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,d*=e.y,f*=e.x,p*=e.y,u+=i,d+=a,o=Q(r=O(o))}}return T({width:f,height:p,x:u,y:d})}function ea(e,t){let r=K(e).scrollLeft;return t?t.left+r:ei(I(e)).left+r}function el(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ea(e,r),y:r.top+t.scrollTop}}function es(e,t,r){var n;let o;if("viewport"===t)o=function(e,t){let r=O(e),n=I(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;let e=J();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}let c=ea(n);if(c<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:l,y:s}}(e,r);else if("document"===t){let t,r,a,l,s,c,u;n=I(e),t=I(n),r=K(n),a=n.ownerDocument.body,l=i(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),s=i(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),c=-r.scrollLeft+ea(n),u=-r.scrollTop,"rtl"===Y(a).direction&&(c+=i(t.clientWidth,a.clientWidth)-l),o={width:l,height:s,x:c,y:u}}else if(D(t)){let e,n,i,a,l,c;n=(e=ei(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,a=F(t)?er(t):s(1),l=t.clientWidth*a.x,c=t.clientHeight*a.y,o={width:l,height:c,x:i*a.x,y:n*a.y}}else{let r=eo(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return T(o)}function ec(e){return"static"===Y(e).position}function eu(e,t){if(!F(e)||"fixed"===Y(e).position)return null;if(t)return t(e);let r=e.offsetParent;return I(e)===r&&(r=r.ownerDocument.body),r}function ed(e,t){var r;let n=O(e);
2if(V(e))return n;if(!F(e)){let t=X(e);for(;t&&!G(t);){if(D(t)&&!ec(t))return t;t=X(t)}return n}let o=eu(e,t);for(;o&&(r=o,/^(table|td|th)$/.test(N(r)))&&ec(o);)o=eu(o,t);return o&&G(o)&&ec(o)&&!q(o)?n:o||function(e){let t=X(e);for(;F(t)&&!G(t);){if(q(t))return t;if(V(t))break;t=X(t)}return null}(e)||n}let ef=async function(e){let t=this.getOffsetParent||ed,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=F(t),o=I(t),i="fixed"===r,a=ei(e,!0,i,t),l={scrollLeft:0,scrollTop:0},c=s(0);if(n||!n&&!i)if(("body"!==N(t)||H(o))&&(l=K(t)),n){let e=ei(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=ea(o));i&&!n&&o&&(c.x=ea(o));let u=!o||n||i?s(0):el(o,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}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i="fixed"===o,a=I(n),l=!!t&&V(t.floating);if(n===a||l&&i)return r;let c={scrollLeft:0,scrollTop:0},u=s(1),d=s(0),f=F(n);if((f||!f&&!i)&&(("body"!==N(n)||H(a))&&(c=K(n)),f)){let e=ei(n);u=er(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let p=!a||f||i?s(0):el(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:I,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,l=[..."clippingAncestors"===r?V(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=Z(e,[],!1).filter(e=>D(e)&&"body"!==N(e)),o=null,i="fixed"===Y(e).position,a=i?X(e):e;for(;D(a)&&!G(a);){let t=Y(a),r=q(a);r||"fixed"!==t.position||(o=null),(i?r||o:!(!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||H(a)&&!r&&function e(t,r){let n=X(t);return!(n===r||!D(n)||G(n))&&("fixed"===Y(n).position||e(n,r))}(e,a)))?o=t:n=n.filter(e=>e!==a),a=X(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=es(t,l[0],a),c=s.top,u=s.right,d=s.bottom,f=s.left;for(let e=1;e<l.length;e++){let r=es(t,l[e],a);c=i(r.top,c),u=o(r.right,u),d=o(r.bottom,d),f=i(r.left,f)}return{width:u-f,height:d-c,x:f,y:c}},getOffsetParent:ed,getElementRects:ef,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ee(e);return{width:t,height:r}},getScale:er,isElement:D,isRTL:function(e){return"rtl"===Y(e).direction}};function em(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eh=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:i,placement:a,middlewareData:l}=t,s=await M(t,e);return a===(null==(r=l.offset)?void 0:r.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},eg=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:a,platform:l}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...m}=u(e,t),g={x:r,y:n},y=await l.detectOverflow(t,m),w=h(d(a)),b=p(w),v=g[b],x=g[w];if(s){let e="y"===b?"top":"left",t="y"===b?"bottom":"right",r=v+y[e],n=v-y[t];v=i(r,o(v,n))}if(c){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",r=x+y[e],n=x-y[t];x=i(r,o(x,n))}let E=f.fn({...t,[b]:v,[w]:x});return{...E,data:{x:E.x-r,y:E.y-n,enabled:{[b]:s,[w]:c}}}}}},ey=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,o,i,a;let l,s,c,{placement:p,middlewareData:m,rects:C,initialPlacement:T,platform:k,elements:S}=t,{mainAxis:R=!0,crossAxis:A=!0,fallbackPlacements:_,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:M=!0,...P}=u(e,t);if(null!=(r=m.arrow)&&r.alignmentOffset)return{};let N=d(p),O=h(T),I=d(T)===T,$=await (null==k.isRTL?void 0:k.isRTL(S.floating)),D=_||(I||!M?[E(T)]:(l=E(T),[y(T),l,y(l)])),F="none"!==j;!_&&F&&D.push(...(s=f(T),c=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?b:w;return t?w:b;case"left":case"right":return t?v:x;default:return[]}}(d(T),"start"===j,$),s&&(c=c.map(e=>e+"-"+s),M&&(c=c.concat(c.map(y)))),c));let U=[T,...D],H=await k.detectOverflow(t,P),V=[],W=(null==(n=m.flip)?void 0:n.overflows)||[];if(R&&V.push(H[N]),A){let e=g(p,C,$);V.push(H[e[0]],H[e[1]])}if(W=[...W,{placement:p,overflows:V}],!V.every(e=>e<=0)){let e=((null==(o=m.flip)?void 0:o.index)||0)+1,t=U[e];if(t&&("alignment"!==A||O===h(t)||W.every(e=>h(e.placement)!==O||e.overflows[0]>0)))return{data:{index:e,overflows:W},reset:{placement:t}};let r=null==(i=W.filter(e=>e.overflows[0]<=0).sort((e,t)=>
2e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(L){case"bestFit":{let e=null==(a=W.filter(e=>{if(F){let t=h(e.placement);return t===O||"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=T}if(p!==r)return{reset:{placement:r}}}return{}}}},ew=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:p,elements:m}=t,{apply:g=()=>{},...y}=u(e,t),w=await p.detectOverflow(t,y),b=d(s),v=f(s),x="y"===h(s),{width:E,height:C}=c.floating;"top"===b||"bottom"===b?(a=b,l=v===(await (null==p.isRTL?void 0:p.isRTL(m.floating))?"start":"end")?"left":"right"):(l=b,a="end"===v?"top":"bottom");let T=C-w.top-w.bottom,k=E-w.left-w.right,S=o(C-w[a],T),R=o(E-w[l],k),A=!t.middlewareData.shift,_=S,L=R;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(L=k),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(_=T),A&&!v){let e=i(w.left,0),t=i(w.right,0),r=i(w.top,0),n=i(w.bottom,0);x?L=E-2*(0!==e||0!==t?e+t:i(w.left,w.right)):_=C-2*(0!==r||0!==n?r+n:i(w.top,w.bottom))}await g({...t,availableWidth:L,availableHeight:_});let j=await p.getDimensions(m.floating);return E!==j.width||C!==j.height?{reset:{rects:!0}}:{}}}},eb=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=u(e,t);switch(o){case"referenceHidden":{let e=A(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_(e)}}}case"escaped":{let e=A(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:_(e)}}}default:return{}}}}},ev=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:a,rects:l,platform:s,elements:c,middlewareData:d}=t,{element:g,padding:y=0}=u(e,t)||{};if(null==g)return{};let w=C(y),b={x:r,y:n},v=p(h(a)),x=m(v),E=await s.getDimensions(g),T="y"===v,k=T?"clientHeight":"clientWidth",S=l.reference[x]+l.reference[v]-b[v]-l.floating[x],R=b[v]-l.reference[v],A=await (null==s.getOffsetParent?void 0:s.getOffsetParent(g)),_=A?A[k]:0;_&&await (null==s.isElement?void 0:s.isElement(A))||(_=c.floating[k]||l.floating[x]);let L=_/2-E[x]/2-1,j=o(w[T?"top":"left"],L),M=o(w[T?"bottom":"right"],L),P=_-E[x]-M,N=_/2-E[x]/2+(S/2-R/2),O=i(j,o(N,P)),I=!d.arrow&&null!=f(a)&&N!==O&&l.reference[x]/2-(N<j?j:M)-E[x]/2<0,$=I?N<j?N-j:N-P:0;return{[v]:b[v]+$,data:{[v]:O,centerOffset:N-O-$,...I&&{alignmentOffset:$}},reset:I}}}),ex=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=u(e,t),f={x:r,y:n},m=h(o),g=p(m),y=f[g],w=f[m],b=u(l,t),v="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(s){let e="y"===g?"height":"width",t=i.reference[g]-i.floating[e]+v.mainAxis,r=i.reference[g]+i.reference[e]-v.mainAxis;y<t?y=t:y>r&&(y=r)}if(c){var x,E;let e="y"===g?"width":"height",t=j.has(d(o)),r=i.reference[m]-i.floating[e]+(t&&(null==(x=a.offset)?void 0:x[m])||0)+(t?0:v.crossAxis),n=i.reference[m]+i.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[m])||0)-(t?v.crossAxis:0);w<r?w=r:w>n&&(w=n)}return{[g]:y,[m]:w}}}},eE=(e,t,r)=>{let n=new Map,o={platform:ep,...r},i={...o.platform,_c:n};return R(e,t,{...o,platform:i})};e.s(["arrow",0,ev,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,i,a;let{rects:l,middlewareData:s,placement:c,platform:p,elements:m}=t,{crossAxis:h=!1,alignment:w,allowedPlacements:b=n,autoAlignment:v=!0,...x}=u(e,t),E=void 0!==w||b===n?((a=w||null)?[...b.filter(e=>f(e)===a),...b.filter(e=>f(e)!==a)]:b.filter(e=>d(e)===e)).filter(e=>!a||f(e)===a||!!v&&y(e)!==e):b,C=await p.detectOverflow(t,x),T=(null==(r=s.autoPlacement)?void 0:r.index)||0,k=E[T];if(null==k)return{};let S=g(k,l,await (null==p.isRTL?void 0:p.isRTL(m.floating)));if(c!==k)return{reset:{placement:E[0]}};let R=[C[d(k)],C[S[0]],C[S[1]]],A=[...(null==(o=s.autoPlacement)?void 0:o.overflows)||[],{placement:k,overflows:R}],_=E[T+1];if(_)return{data:{index:T+1,overflows:A},reset:{placement:_}};let L=A.map(e=>{let t=f(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>
2e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),j=(null==(i=L.filter(e=>e[2].slice(0,f(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||L[0][0];return j!==c?{data:{index:T+1,overflows:A},reset:{placement:j}}:{}}}},"autoUpdate",0,function(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=et(e),m=s||c?[...p?Z(p):[],...t?Z(t):[]]:[];m.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=I(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:g}=f;if(u||t(),!h||!g)return;let y={rootMargin:-l(m)+"px "+-l(a.clientWidth-(p+h))+"px "+-l(a.clientHeight-(m+g))+"px "+-l(p)+"px",threshold:i(0,o(1,d))||1},w=!0;function b(t){let n=t[0].intersectionRatio;if(n!==d){if(!w)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==n||em(f,e.getBoundingClientRect())||c(),w=!1}try{n=new IntersectionObserver(b,{...y,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(b,y)}n.observe(e)}(!0),s}(p,r):null,g=-1,y=null;u&&(y=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),r()}),p&&!f&&y.observe(p),t&&y.observe(t));let w=f?ei(e):null;return f&&function t(){let n=ei(e);w&&!em(w,n)&&r(),w=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=y)||e.disconnect(),y=null,f&&cancelAnimationFrame(a)}},"computePosition",0,eE,"flip",0,ey,"hide",0,eb,"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:f,y:p}=u(e,t),m=Array.from(await (null==l.getClientRects?void 0:l.getClientRects(n.reference))||[]),g=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 o=t[e];!n||o.y-n.y>n.height/2?r.push([o]):r[r.length-1].push(o),n=o}return r.map(e=>T(L(e)))}(m),y=T(L(m)),w=C(c),b=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&g[0].left>g[1].right&&null!=f&&null!=p)return g.find(e=>f>e.left-w.left&&f<e.right+w.right&&p>e.top-w.top&&p<e.bottom+w.bottom)||y;if(g.length>=2){if("y"===h(r)){let e=g[0],t=g[g.length-1],n="top"===d(r),o=e.top,i=t.bottom,a=n?e.left:t.left,l=n?e.right:t.right;return{top:o,bottom:i,left:a,right:l,width:l-a,height:i-o,x:a,y:o}}let e="left"===d(r),t=i(...g.map(e=>e.right)),n=o(...g.map(e=>e.left)),a=g.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 y}},floating:n.floating,strategy:s});return a.reference.x!==b.reference.x||a.reference.y!==b.reference.y||a.reference.width!==b.reference.width||a.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},"limitShift",0,ex,"offset",0,eh,"shift",0,eg,"size",0,ew],953760);var eC=e.i(271645),eT=e.i(174080),ek="u">typeof document?eC.useLayoutEffect:function(){};function eS(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(!eS(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)&&!eS(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eR(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eA(e,t){let r=eR(e);return Math.round(t*r)/r}function e_(e){let t=eC.useRef(e);return ek(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let r={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?ev({element:r.current,padding:n}).fn(t):{}:r?ev({element:r,padding:n}).fn(t):{}}};return{name:r.name,fn:r.fn,options:[e,t]}},"flip",0,(e,t)=>{let r=ey(e);return{name:r.name,fn:r.fn,options:[e,t]}},"hide",0,(e,t)=>{let r=eb(e);return{name:r.name,fn:r.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:ex(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let r=eh(e);return{name:r.name,fn:r.fn,options:[e,t]}},"shift",0,(e,t)=>{let r=eg(e);return{name:r.name,fn:r.fn,options:[e,t]}},"size",0,(e,t)=>{let r=ew(e);return{name:r.name,fn:r.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[u,d]=eC.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=eC.useState(n);eS(f,n)||p(n);let[m,h]=eC.useState(null),[g,y]=eC.useState(null),w=eC.useCallback(e=>
2{e!==E.current&&(E.current=e,h(e))},[]),b=eC.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),v=i||m,x=a||g,E=eC.useRef(null),C=eC.useRef(null),T=eC.useRef(u),k=null!=s,S=e_(s),R=e_(o),A=e_(c),_=eC.useCallback(()=>{if(!E.current||!C.current)return;let e={placement:t,strategy:r,middleware:f};R.current&&(e.platform=R.current),eE(E.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};L.current&&!eS(T.current,t)&&(T.current=t,eT.flushSync(()=>{d(t)}))})},[f,t,r,R,A]);ek(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let L=eC.useRef(!1);ek(()=>(L.current=!0,()=>{L.current=!1}),[]),ek(()=>{if(v&&(E.current=v),x&&(C.current=x),v&&x){if(S.current)return S.current(v,x,_);_()}},[v,x,_,S,k]);let j=eC.useMemo(()=>({reference:E,floating:C,setReference:w,setFloating:b}),[w,b]),M=eC.useMemo(()=>({reference:v,floating:x}),[v,x]),P=eC.useMemo(()=>{let e={position:r,left:0,top:0};if(!M.floating)return e;let t=eA(M.floating,u.x),n=eA(M.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...eR(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,M.floating,u.x,u.y]);return eC.useMemo(()=>({...u,update:_,refs:j,elements:M,floatingStyles:P}),[u,_,j,M,P])}],258950)},853660,e=>{"use strict";var t=e.i(271645),r=e.i(258950),n=e.i(953760);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.i(174080);var i=e.i(843476),a=Symbol("radix.slottable");function l(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}var s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var n,a;let s,c,u,d=(a=n=`Primitive.${r}`,(s=t.forwardRef((e,r)=>{let{children:n,...i}=e;if(t.isValidElement(n)){var a;let e,l,s=(a=n,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,n.props);return n.type!==t.Fragment&&(c.ref=r?function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}(r,s):s),t.cloneElement(n,c)}return t.Children.count(n)>1?t.Children.only(null):null})).displayName=`${a}.SlotClone`,c=s,(u=t.forwardRef((e,r)=>{let{children:n,...o}=e,a=t.Children.toArray(n),s=a.find(l);if(s){let e=s.props.children,n=a.map(r=>r!==s?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,i.jsx)(c,{...o,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,i.jsx)(c,{...o,ref:r,children:n})})).displayName=`${n}.Slot`,u),f=t.forwardRef((e,t)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(n?d:r,{...o,ref:t})});return f.displayName=`Primitive.${r}`,{...e,[r]:f}},{}),c=t.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return(0,i.jsx)(s.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,i.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){return t=>{let r=!1,n=e.map(e=>{let n=u(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():u(e[t],null)}}}}function f(...e){return t.useCallback(d(...e),e)}c.displayName="Arrow";var p=Symbol("radix.slottable");function m(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var n,o;let a,l,s,c=(o=n=`Primitive.${r}`,(a=t.forwardRef((e,r)=>{let{children:n,...o}=e;if(t.isValidElement(n)){var i;let e,a,l=(i=n,(a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.
2isReactWarning)?i.ref:(a=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,n.props);return n.type!==t.Fragment&&(s.ref=r?d(r,l):l),t.cloneElement(n,s)}return t.Children.count(n)>1?t.Children.only(null):null})).displayName=`${o}.SlotClone`,l=a,(s=t.forwardRef((e,r)=>{let{children:n,...o}=e,a=t.Children.toArray(n),s=a.find(m);if(s){let e=s.props.children,n=a.map(r=>r!==s?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,i.jsx)(l,{...o,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,i.jsx)(l,{...o,ref:r,children:n})})).displayName=`${n}.Slot`,s),u=t.forwardRef((e,t)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(n?c:r,{...o,ref:t})});return u.displayName=`Primitive.${r}`,{...e,[r]:u}},{}),g=e.i(30207),y=e.i(934620),w="Popper",[b,v]=function(e,r=[]){let n=[],o=()=>{let r=n.map(e=>t.createContext(e));return function(n){let o=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(r,o){let a=t.createContext(o),l=n.length;n=[...n,o];let s=r=>{let{scope:n,children:o,...s}=r,c=n?.[e]?.[l]||a,u=t.useMemo(()=>s,Object.values(s));return(0,i.jsx)(c.Provider,{value:u,children:o})};return s.displayName=r+"Provider",[s,function(n,i){let s=i?.[e]?.[l]||a,c=t.useContext(s);if(c)return c;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${r}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}(o,...r)]}(w),[x,E]=b(w),C=e=>{let{__scopePopper:r,children:n}=e,[o,a]=t.useState(null);return(0,i.jsx)(x,{scope:r,anchor:o,onAnchorChange:a,children:n})};C.displayName=w;var T="PopperAnchor",k=t.forwardRef((e,r)=>{let{__scopePopper:n,virtualRef:o,...a}=e,l=E(T,n),s=t.useRef(null),c=f(r,s),u=t.useRef(null);return t.useEffect(()=>{let e=u.current;u.current=o?.current||s.current,e!==u.current&&l.onAnchorChange(u.current)}),o?null:(0,i.jsx)(h.div,{...a,ref:c})});k.displayName=T;var S="PopperContent",[R,A]=b(S),_=t.forwardRef((e,o)=>{let{__scopePopper:a,side:l="bottom",sideOffset:s=0,align:c="center",alignOffset:u=0,arrowPadding:d=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:w=0,sticky:b="partial",hideWhenDetached:v=!1,updatePositionStrategy:x="optimized",onPlaced:C,...T}=e,k=E(S,a),[A,_]=t.useState(null),L=f(o,e=>_(e)),[j,M]=t.useState(null),I=function(e){let[r,n]=t.useState(void 0);return(0,y.useLayoutEffect)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),r}(j),$=I?.width??0,D=I?.height??0,F="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},U=Array.isArray(m)?m:[m],H=U.length>0,V={padding:F,boundary:U.filter(P),altBoundary:H},{refs:W,floatingStyles:z,placement:B,isPositioned:q,middlewareData:J}=(0,r.useFloating)({strategy:"fixed",placement:l+("center"!==c?"-"+c:""),whileElementsMounted:(...e)=>(0,n.autoUpdate)(...e,{animationFrame:"always"===x}),elements:{reference:k.anchor},middleware:[(0,r.offset)({mainAxis:s+D,alignmentAxis:u}),p&&(0,r.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?(0,r.limitShift)():void 0,...V}),p&&(0,r.flip)({...V}),(0,r.size)({...V,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:i}=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",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),j&&(0,r.arrow)({element:j,padding:d}),N({arrowWidth:$,arrowHeight:D}),v&&(0,r.hide)({strategy:"referenceHidden",...V})]}),[G,Y]=O(B),K=(0,g.useCallbackRef)(C);(0,y.useLayoutEffect)(()=>{q&&K?.()},[q,K]);let X=J.arrow?.x,Z=J.arrow?.y,Q=J.arrow?.centerOffset!==0,[ee,et]=t.useState();return(0,y.useLayoutEffect)(()=>{A&&et(window.getComputedStyle(A).zIndex)},[A]),(0,i.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:q?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[J.transformOrigin?.x,J.transformOrigin?.y].join(" "),...J.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,i.jsx)(R,{scope:a,placedSide:G,onArrowChange:M,arrowX:X,arrowY:Z,shouldHideArrow:Q,children:(0,i.jsx)(h.div,{"data-side":G,"data-align":Y,...T,ref:L,style:{...T.
2style,animation:q?void 0:"none"}})})})});_.displayName=S;var L="PopperArrow",j={top:"bottom",right:"left",bottom:"top",left:"right"},M=t.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=A(L,r),a=j[o.placedSide];return(0,i.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,i.jsx)(c,{...n,ref:t,style:{...n.style,display:"block"}})})});function P(e){return null!==e}M.displayName=L;var N=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[s,c]=O(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+l/2,p="",m="";return"bottom"===s?(p=i?u:`${d}px`,m=`${-l}px`):"top"===s?(p=i?u:`${d}px`,m=`${n.floating.height+l}px`):"right"===s?(p=`${-l}px`,m=i?u:`${f}px`):"left"===s&&(p=`${n.floating.width+l}px`,m=i?u:`${f}px`),{data:{x:p,y:m}}}});function O(e){let[t,r="center"]=e.split("-");return[t,r]}e.s(["Anchor",0,k,"Arrow",0,M,"Content",0,_,"Root",0,C,"createPopperScope",0,v],853660)},676615,958271,878256,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}],676615);var t=e.i(271645);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let n=!1,o=e.map(e=>{let o=r(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){let n=o[t];"function"==typeof n?n():r(e[t],null)}}}}e.s(["composeRefs",0,n,"useComposedRefs",0,function(...e){return t.useCallback(n(...e),e)}],958271);var o=e.i(843476);e.s(["createContextScope",0,function(e,r=[]){let n=[],i=()=>{let r=n.map(e=>t.createContext(e));return function(n){let o=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(r,i){let a=t.createContext(i),l=n.length;n=[...n,i];let s=r=>{let{scope:n,children:i,...s}=r,c=n?.[e]?.[l]||a,u=t.useMemo(()=>s,Object.values(s));return(0,o.jsx)(c.Provider,{value:u,children:i})};return s.displayName=r+"Provider",[s,function(n,o){let s=o?.[e]?.[l]||a,c=t.useContext(s);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${r}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}(i,...r)]}],878256)},60834,939547,69395,469120,e=>{"use strict";var t=e.i(271645),r=e.i(958271),n=e.i(934620),o=e=>{var o;let a,l,{present:s,children:c}=e,u=function(e){var r,o;let[a,l]=t.useState(),s=t.useRef(null),c=t.useRef(e),u=t.useRef("none"),[d,f]=(r=e?"mounted":"unmounted",o={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>o[e][t]??e,r));return t.useEffect(()=>{let e=i(s.current);u.current="mounted"===d?e:"none"},[d]),(0,n.useLayoutEffect)(()=>{let t=s.current,r=c.current;if(r!==e){let n=u.current,o=i(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,n.useLayoutEffect)(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,r=r=>{let n=i(s.current).includes(CSS.escape(r.animationName));if(r.target===a&&n&&(f("ANIMATION_END"),!c.current)){let r=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=r)})}},n=e=>{e.target===a&&(u.current=i(s.current))};return a.addEventListener("animationstart",n),a.addEventListener("animationcancel",r),a.addEventListener("animationend",r),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",n),a.removeEventListener("animationcancel",r),a.removeEventListener("animationend",r)}}f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(s),d="function"==typeof c?c({present:u.isPresent}):t.Children.only(c),f=(0,r.useComposedRefs)(u.ref,(o=d,(l=(a=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.ref:(l=(a=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.props.ref:o.props.ref||o.ref));return"function"==typeof c||u.isPresent?t.cloneElement(d,{ref:f}):null};function i(e){return e?.animationName||"none"}o.displayName="Presence",e.s(["Presence",0,o],60834),e.i(174080);var a=e.i(843476);function l(e){var n;
2let o,i=(n=e,(o=t.forwardRef((e,n)=>{let{children:o,...i}=e;if(t.isValidElement(o)){var a;let e,l,s=(a=o,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,o.props);return o.type!==t.Fragment&&(c.ref=n?(0,r.composeRefs)(n,s):s),t.cloneElement(o,c)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${n}.SlotClone`,o),l=t.forwardRef((e,r)=>{let{children:n,...o}=e,l=t.Children.toArray(n),s=l.find(c);if(s){let e=s.props.children,n=l.map(r=>r!==s?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,a.jsx)(i,{...o,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,a.jsx)(i,{...o,ref:r,children:n})});return l.displayName=`${e}.Slot`,l}var s=Symbol("radix.slottable");function c(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}e.s(["createSlot",0,l,"createSlottable",0,function(e){let t=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=s,t}],939547);var u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=l(`Primitive.${r}`),o=t.forwardRef((e,t)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:r,{...i,ref:t})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});e.s(["Primitive",0,u],69395),t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var d=t[" useInsertionEffect ".trim().toString()]||n.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:r,onChange:n=()=>{},caller:o}){let[i,a,l]=function({defaultProp:e,onChange:r}){let[n,o]=t.useState(e),i=t.useRef(n),a=t.useRef(r);return d(()=>{a.current=r},[r]),t.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,o,a]}({defaultProp:r,onChange:n}),s=void 0!==e,c=s?e:i;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=s},[s,o])}return[c,t.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else a(t)},[s,e,a,l])]}],469120)},959411,e=>{"use strict";var t=e.i(271645);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.i(174080);var n=e.i(843476),o=Symbol("radix.slottable");function i(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}var a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{var a,l;let s,c,u,d=(l=a=`Primitive.${o}`,(s=t.forwardRef((e,n)=>{let{children:o,...i}=e;if(t.isValidElement(o)){var a;let e,l,s=(a=o,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,o.props);return o.type!==t.Fragment&&(c.ref=n?function(...e){return t=>{let n=!1,o=e.map(e=>{let o=r(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){let n=o[t];"function"==typeof n?n():r(e[t],null)}}}}(n,s):s),t.cloneElement(o,c)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${l}.SlotClone`,c=s,(u=t.forwardRef((e,r)=>{let{children:o,...a}=e,l=t.Children.toArray(o),s=l.find(i);if(s){let e=s.props.children,o=l.map(r=>r!==s?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,n.jsx)(c,{...a,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,o):null})}return(0,n.jsx)(c,{...a,ref:r,children:o})})).displayName=`${a}.Slot`,u),f=t.forwardRef((e,t)=>
2{let{asChild:r,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(r?d:o,{...i,ref:t})});return f.displayName=`Primitive.${o}`,{...e,[o]:f}},{}),l=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"}),s=t.forwardRef((e,t)=>(0,n.jsx)(a.span,{...e,ref:t,style:{...l,...e.style}}));s.displayName="VisuallyHidden",e.s(["Root",0,s,"VISUALLY_HIDDEN_STYLES",0,l],959411)},187378,e=>{"use strict";let t=(0,e.i(475254).default)("banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);e.s(["Banknote",0,t],187378)},862911,e=>{"use strict";let t=(0,e.i(475254).default)("briefcase-business",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);e.s(["BriefcaseBusiness",0,t],862911)},354385,e=>{"use strict";let t=(0,e.i(475254).default)("clipboard-check",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);e.s(["ClipboardCheck",0,t],354385)},503116,e=>{"use strict";let t=(0,e.i(475254).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,t],503116)},758472,120286,e=>{"use strict";var t=e.i(475254);let r=(0,t.default)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);e.s(["Code",0,r],758472);let n=(0,t.default)("stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);e.s(["Stethoscope",0,n],120286)},580555,e=>{"use strict";let t=(0,e.i(475254).default)("factory",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z",key:"1iv0i2"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);e.s(["Factory",0,t],580555)},32095,e=>{"use strict";let t=(0,e.i(475254).default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);e.s(["GraduationCap",0,t],32095)},448876,e=>{"use strict";let t=(0,e.i(475254).default)("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]);e.s(["ListOrdered",0,t],448876)},788699,e=>{"use strict";let t=(0,e.i(475254).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],788699)},356909,e=>{"use strict";let t=(0,e.i(475254).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],356909)},98919,e=>{"use strict";let t=(0,e.i(475254).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
2y:"oel41y"}]]);e.s(["Shield",0,t],98919)},150965,715788,647780,e=>{"use strict";var t=e.i(475254);let r=(0,t.default)("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]]);e.s(["ShoppingBag",0,r],150965);let n=(0,t.default)("truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);e.s(["Truck",0,n],715788);let o=(0,t.default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);e.s(["Palette",0,o],647780)},727612,e=>{"use strict";let t=(0,e.i(475254).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],727612)},39312,e=>{"use strict";let t=(0,e.i(475254).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,t],39312)},363178,e=>{"use strict";var t=e.i(271645),r=(e,t,r,n,o,i,a,l)=>{let s=document.documentElement,c=["light","dark"];function u(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&i?o.map(e=>i[e]||e):o;r?(s.classList.remove(...n),s.classList.add(i&&i[t]?i[t]:t)):s.setAttribute(e,t)}),r=t,l&&c.includes(r)&&(s.style.colorScheme=r)}if(n)u(n);else try{let e=localStorage.getItem(t)||r,n=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(n)}catch(e){}},n=["light","dark"],o="(prefers-color-scheme: dark)",i="u"<typeof window,a=t.createContext(void 0),l={setTheme:e=>{},themes:[]},s=["light","dark"],c=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:i=!0,enableColorScheme:l=!0,storageKey:c="theme",themes:m=s,defaultTheme:h=i?"system":"light",attribute:g="data-theme",value:y,children:w,nonce:b,scriptProps:v})=>{let[x,E]=t.useState(()=>d(c,h)),[C,T]=t.useState(()=>"system"===x?p():x),k=y?Object.values(y):m,S=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&i&&(t=p());let o=y?y[t]:t,a=r?f(b):null,s=document.documentElement,c=e=>{"class"===e?(s.classList.remove(...k),o&&s.classList.add(o)):e.startsWith("data-")&&(o?s.setAttribute(e,o):s.removeAttribute(e))};if(Array.isArray(g)?g.forEach(c):c(g),l){let e=n.includes(h)?h:null,r=n.includes(t)?t:e;s.style.colorScheme=r}null==a||a()},[b]),R=t.useCallback(e=>{let t="function"==typeof e?e(x):e;E(t);try{localStorage.setItem(c,t)}catch(e){}},[x]),A=t.useCallback(t=>{T(p(t)),"system"===x&&i&&!e&&S("system")},[x,e]);t.useEffect(()=>{let e=window.matchMedia(o);return e.addListener(A),A(e),()=>e.removeListener(A)},[A]),t.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?E(e.newValue):R(h))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[R]),t.useEffect(()=>{S(null!=e?e:x)},[e,x]);let _=t.useMemo(()=>({theme:x,setTheme:R,forcedTheme:e,resolvedTheme:"system"===x?C:x,themes:i?[...m,"system"]:m,systemTheme:i?C:void 0}),[x,R,e,C,i,m]);return t.createElement(a.Provider,{value:_},t.createElement(u,{forcedTheme:e,storageKey:c,attribute:g,enableSystem:i,enableColorScheme:l,defaultTheme:h,value:y,themes:m,nonce:b,scriptProps:v}),w)},u=t.memo(({forcedTheme:e,storageKey:n,attribute:o,enableSystem:i,enableColorScheme:a,defaultTheme:l,value:s,themes:c,nonce:u,scriptProps:d})=>{let f=JSON.stringify([o,n,l,e,c,s,i,a]).slice(1,-1);return t.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"<typeof window?u:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${f})`}})}),d=(e,t)=>{let r;if(!i){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},f=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}}
2,p=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light");e.s(["ThemeProvider",0,e=>t.useContext(a)?t.createElement(t.Fragment,null,e.children):t.createElement(c,{...e}),"useTheme",0,()=>{var e;return null!=(e=t.useContext(a))?e:l}])}]); 3 4//# debugId=18a5aa4e-4dd2-c74a-cf85-de01d5386046
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.